115k views
4 votes
In an IP datagram, a TCP segment is present. The header length field in the IP datagram is 5. The total length of the IP datagram is 1000 bytes. The header length field in the TCP header is 6. What is the size of TCP data present in the datagram?

(a) 576 bytes
(b) 652 bytes
(c) 700 bytes
(d) 760 bytes

User Agrafix
by
7.0k points

1 Answer

3 votes

Final answer:

The size of the TCP data present in the datagram is 956 bytes.

Step-by-step explanation:

The size of the TCP data present in the datagram can be calculated by subtracting the total length of the IP datagram from the sum of the header lengths of the IP datagram and the TCP segment. The header length field in the IP datagram is 5, so the IP header length is 5 * 4 = 20 bytes. The header length field in the TCP header is 6, so the TCP header length is 6 * 4 = 24 bytes.

To calculate the size of the TCP data, subtract the IP header length and TCP header length from the total length of the IP datagram:

  1. IP header length = 20 bytes
  2. TCP header length = 24 bytes
  3. Total length of the IP datagram = 1000 bytes
  4. TCP data size = Total length of the IP datagram - IP header length - TCP header length
  5. TCP data size = 1000 - 20 - 24 = 956 bytes

Therefore, the size of the TCP data present in the datagram is 956 bytes.

User Ed Stephenson
by
7.7k points