You are on page 1of 2

Assignment-2

A TCP header in Hexadecimal looks like:


06 DD 00 17 FC 96 A6 82 53 B3 6F E5 50 18 44 DC
Determine the values for the following fields:
Source port number
Destination Port number
Sequence Number
ACK Number
FLAGS, which flags are set?
Window size
What is the header length in bytes?
Suppose that the TCP segment had 3 bytes data with the following Hexadecimal representation:
FF FB 01
What value should the checksum field in the TCP header have in this case (Bear in mind the urgent
pointer is set to 0 and no options are used)?
The TCP checksum is calculated on TCP segment (TCP header + Data) + a pseudo-header. The pseudo
header contains the following fields:

128

Assignment-2
Source IP address
Destination IP address
Protocol (from IP header) which in this case is TCP with Hex representation of 06
TCP segment length in bytes
The source IP address is 192.168.2.100 (with hex representation of C0 A8 02 64)
Destination IP address: 192.168.1.1

129

You might also like