The following is a dump of a TCP header hexadecimal format 0

The following is a dump of a TCP header hexadecimal format 05320017 00000001 00000000 500207FF 00000000 What is the source port number? What is the destination port number? What is sequence number? What is the acknowledgment number? What is the length of the header? What is the type of the segment? What is the window size?

Solution

Given dump of tcp header:-

05320017 00000001 00000000 500207FF 00000000

1.) Source Port for the given header:-

first two bytes are for source port so take first two byte from the given header

each number in hex is four bits so 1 byte is two hex number and 2 bytes is four hex numbers.

so take 0532 and (0532)16 = (1330)10

answer is 1330.

2.)destination port number

next two byes are destination port number after source port number.

so take four hex digits again 0017. (0017)16 = (23)10

answer is 23

3.)sequence number

After destination port next four bytes as sequence number.

For two bytes four hex digits so for four bytes take eight hex digits.

00000001. converting to decimal (00000001)16 = (1)10

4. )Acknowledment number in header is next four byes after sequence number

so 00000000. (00000000)16 = (0)10

5. )length of the header

next four bits is length of header so take 1 hex digit i.e 5.

5* 4 bytes = 20 bytes. or 5 * 8 = 40 hex digits.(see the header for checking)

6.)type of segment.

After length of tcp header, next 6 bits are reserved. four bits for 0 and two bits from next hex digit i.e 0 (here)

After reserve bits. next 6 bits are control bits. In our solution these will indicate type of segment.

2 remaining bits from predecessor i.e 0 here and four bits from 2.

so those are 00 0010. here last but one bit is SYN bit, is set to 1. so type of segment is SYN.

Synchronize sequence numbers.

7.) window size

next two bytes are for window size so two bytes meansfour hex digits. 07 FF

decimal equivalent is (07ff)16 = (2047)10

so answer is 2047.

For your information next 2 bytes are for check sum and last 2 bytes are for urgent pointer.

// comment your response and if any additional information needed also.

 The following is a dump of a TCP header hexadecimal format 05320017 00000001 00000000 500207FF 00000000 What is the source port number? What is the destination
 The following is a dump of a TCP header hexadecimal format 05320017 00000001 00000000 500207FF 00000000 What is the source port number? What is the destination

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site