Update 'Test_Cases/Test_Case3/readme'
This commit is contained in:
parent
c95ddb8ac6
commit
0ba0245392
@ -26,3 +26,28 @@ This folder contains details for Test_Case3.
|
|||||||
(i) Concatenate TCP Pseudo header (Protocol, Source IP, Destination IP, Total Length) with TCP header and TCP data. This creates a big integer.
|
(i) Concatenate TCP Pseudo header (Protocol, Source IP, Destination IP, Total Length) with TCP header and TCP data. This creates a big integer.
|
||||||
(ii) Convert this integer to binary and compute bit wise 1's complement.
|
(ii) Convert this integer to binary and compute bit wise 1's complement.
|
||||||
22. Urgent Pointer = 0 for now.
|
22. Urgent Pointer = 0 for now.
|
||||||
|
|
||||||
|
The value of header comes out to be:
|
||||||
|
header = {}
|
||||||
|
header[0] = 0x45, Version, IHL
|
||||||
|
header[1] = 0x00, TOS,
|
||||||
|
header[2] = 0x00, Total Length,
|
||||||
|
header[3] = 0x28, Total Length,
|
||||||
|
header[4] = 0x00, Identification,
|
||||||
|
header[5] = 0x03, Identification,
|
||||||
|
header[6] = 0x00, Flags + Fragment Offset,
|
||||||
|
header[7] = 0x00, Flags + Fragment Offset,
|
||||||
|
header[8] = 0x28, TTL
|
||||||
|
header[9] = 0x06, Protocol
|
||||||
|
header[10] = 0x00, Header Checksum
|
||||||
|
header[11] = 0x00, Header Checksum
|
||||||
|
header[12] = 0xac, Source IP,
|
||||||
|
header[13] = 0xa8, Source IP,
|
||||||
|
header[14] = 0x05, Source IP,
|
||||||
|
header[15] = 0x03, Source IP,
|
||||||
|
header[16] = 0xac, Destination IP,
|
||||||
|
header[17] = 0xa8, Destination IP,
|
||||||
|
header[18] = 0x05, Destination IP,
|
||||||
|
header[19] = 0x04, Destination IP,
|
||||||
|
|
||||||
|
The value of IP_Header_Checksum comes out to be: .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user