Consider sending 1 million bytes of data from Host A and Host B by using a certa
ID: 3745793 • Letter: C
Question
Consider sending 1 million bytes of data from Host A and Host B by using a certain communication protocol that involves a per-packet overhead of 100 bytes for headers. When one data byte is corrupted, the entire packet containing it is lost. Give the total number of overhead + loss bytes for packet data sizes of 1000, 5000, 10000, and 20000 bytes. Assuming that the connection between A and B loses a single byte of data and Host A does not retransmit lost packets, which size is optimal among the four different data sizes?
Explanation / Answer
Given that, 1 million bytes of data is sent. i.e., 106 bytes
If N is the size of the packet, then
The number of packets transmitted say P = 106 / N
Given, overhead per one packet = 100 bytes.
So the total overhead = 100 x P
= 100 x 106 / N
Loss = entire packet.
Since the size of the packet is N, Loss = N
Therefore for each packet,
Overhead + loss = (100 x 106 / N) + N
For a packet size (N) = 1000, Overhead + loss = 101000
For a packet size (N) = 5000, Overhead + loss = 25000
For a packet size (N) = 10000, Overhead + loss = 20000
For a packet size (N) = 20000, Overhead + loss = 25000
Out of all the packet sizes, the overhead + loss of the packet size 10000 are less. So it is considered as optimal.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.