SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Linda Null ,julia Lobur
Chapter:
Network Organization And Architecture
Exercise:
Exercises
Question:12 | ISBN:9780763704445 | Edition: 3

Question

12. A station running TCP/IP needs to transfer a file to a host. The file contains 2048 bytes. How many bytes, including all of the TCP/IP overhead, would be sent, assuming a payload size of 512 bytes and that both systems are running IPv4? (Also assume that the three-way handshake and window size negotiation have been completed and that no errors occur during transmission.)

a) What is the protocol overhead (stated as a percentage)?

b) Perform the same calculation, this time assuming both clients are using IPv6.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

a)

 

Assuming IPv4 and a payload size of 512 bytes, then calculate the total number of bytes sent, including all TCP/IP overhead.

TCP/IP overhead consists of the IP header, TCP header, and any additional protocol-specific headers. Here is a breakdown of the overhead for IPv4:

  • IP header: 20 bytes
  • TCP header: 20 bytes

Total overhead = IP header + TCP header = 20 bytes + 20 bytes = 40 bytes

Payload size = 512 bytes

Total bytes sent = Payload size + Total overhead

                          = 512 bytes + 40 bytes

                           = 552 bytes

To calculate the protocol overhead as a percentage, divide the overhead by the total bytes sent and multiply by 100:

Protocol overhead = (Total overhead / Total bytes sent) * 100 Protocol overhead

                              = (40 bytes / 552 bytes) * 100 Protocol overhead

                              ≈ 7.25%

Hence, the protocol overhead for the IPv4 transmission is approximately 7.25%.

 

b)

 

Now, let's perform the same calculation, assuming both clients are using IPv6.

For IPv6, the IP header size increases to 40 bytes, while the TCP header size remains the same at 20 bytes.

Total overhead = IP header + TCP header

                         = 40 bytes + 20 bytes = 60 bytes

Payload size = 512 bytes

Total bytes sent = Payload size + Total overhead

                           = 512 bytes + 60 bytes

                            = 572 bytes

Protocol overhead = (Total overhead / Total bytes sent) * 100 Protocol overhead

                               = (60 bytes / 572 bytes) * 100 Protocol overhead

                              ≈ 10.49%

Hence, with IPv6, the protocol overhead for the transmission would be approximately 10.49%.

0 0

Discussions

Post the discussion to improve the above solution.