|
|
@ -2,22 +2,28 @@ This folder contains detail for Test_Case1. |
|
|
|
|
|
|
|
The values for the header fields are: |
|
|
|
|
|
|
|
Verison = 4, to indicate IPv4 version is used. |
|
|
|
IHL = 5, which indicates 20 bytes. |
|
|
|
Type of Service = 0, |
|
|
|
Total Window size = 40, which is 28 in hex. The total windows size contains the total lenght of IP header plus data. |
|
|
|
Identification = 0001, |
|
|
|
Flags = All flags are set to zero, |
|
|
|
Fragment Offset = For now, there is no fragment offset so, this value is set to 0. |
|
|
|
|
|
|
|
|
|
|
|
Source IP = 200.204.10.12, which is c8cc 0a0c in hex |
|
|
|
Destination IP = 200.204.10.14, which is c8cc 0a0e in hex |
|
|
|
Source Port = 1234, which is 04D2 in hex, |
|
|
|
Destination Port = 4444, which is 115c in hex. |
|
|
|
|
|
|
|
1. Verison = 4, to indicate IPv4 version is used. |
|
|
|
2. IHL = 5, which indicates 20 bytes. |
|
|
|
3. Type of Service = 0, |
|
|
|
4. Total Window size = 40, which is 28 in hex. The total windows size contains the total lenght of IP header plus data. |
|
|
|
5. Identification = 0001, |
|
|
|
6. Flags = All flags are set to zero, |
|
|
|
7. Fragment Offset = For now, there is no fragment offset so, this value is set to 0. |
|
|
|
8. TTL = 40s, which is 28 in hex. |
|
|
|
9. Protocol = 6, which indicates TCP. |
|
|
|
10. Header Checksum = initially zero and then changed to the sum of 16 bit values of header + data. |
|
|
|
11. Source IP = 200.204.10.12, which is c8cc 0a0c in hex |
|
|
|
12. Destination IP = 200.204.10.14, which is c8cc 0a0e in hex |
|
|
|
13. Source Port = 1234, which is 04D2 in hex, |
|
|
|
14. Destination Port = 4444, which is 115c in hex. |
|
|
|
15. Sequence Number = 0 for now, |
|
|
|
16. Acknowledgement Number = 0, |
|
|
|
17. Flags: |
|
|
|
For the SYN packet, the SYN Flag in the header has a value of 1. |
|
|
|
For the SYN+ACK packet, the SYN and ACK flags in the header have a value of 1. |
|
|
|
For the ACK packet, the ACK flag in the header has a value of 1. |
|
|
|
For the FIN packet, the FIN flag in the header has a value of 1. |
|
|
|
For the FIN+ACK packet, the FIN and ACK flags in the header have a value of 1. |
|
|
|
For the FIN+ACK packet, the FIN and ACK flags in the header have a value of 1. |
|
|
|
18. TCP Checksum = initially zero, then: |
|
|
|
(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. |