An application is sending a 1 Mbyte file to another machine. The transport layer
ID: 3544370 • Letter: A
Question
An application is sending a 1 Mbyte file to another machine. The transport layer segments the application layer message into 800 byte segments and then adds a 20 byte header to each segment. The network layer adds a 20 byte header also and the data link layer adds another 24 byte header. Each segment is acknowledged with a 10 byte message from the destination application with the same headers added at each layer.
a) How many bytes total are sent over the network in order to transfer the whole file?
b) What percentage of the total is overhead (headers or control messages)?
Explanation / Answer
A)
Length of each segment = 1024/800 =1.28
So there will be total 2 segments one of 800 bytes and another 1024-800 = 224 bytes
first segment size becomes after addition of bytes by defferent layers = 800+ 20 + 20 + 24 = 864 bytes
second segment size becomes after addition of bytes by defferent layers = 224+ 20 + 20 + 24 = 288 bytes
For each segment acknowledgement size = 10 + 20 +20 + 24 =74 bytes
Since thre are 2 segments: 74 *2 =148 bytes
Total bytes sent = 864+288+148 = 1300 bytes
B)percentage of the total is overhead = 100*[(1300-1024)/1024] = 26.95 %
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.