0
$\begingroup$

When 54 bytes of data is transferred using the UDP protocol, the efficiency is? (In per cent)

IN UDP, the maximum datagram size can be $2^{16}-1 \, bytes$

Now to this, 8 Bytes of UDP header is included and this together must fit within $65535\, bytes$ IPv4 packet limit(Including 20B IP Header size).

So, maximum data that we can send in 1 UDP datagram-> $65535-8-20=65507\,Bytes$

We could have sent this amount of data, but we are actually sending 54 Bytes, so the efficiency of the protocol is $\frac{54}{65507} \times 100(\,in\,\%)$

Am I correct?

$\endgroup$
2
  • 2
    $\begingroup$ We discourage "please check whether my answer is correct" questions, as only "yes/no" answers are possible, which won't help you or future visitors. See here and here. Can you edit your post to ask about a specific conceptual issue you're uncertain about? As a rule of thumb, a good conceptual question should be useful even to someone who isn't looking at the problem you happen to be working on. If you just need someone to check your work, you might seek out a friend, classmate, or teacher. $\endgroup$ – Discrete lizard Jan 22 '19 at 8:32
  • $\begingroup$ But the answer is "no". It is absurd. If the packet limit was 4 gigabyte, why would that affect the efficiency of sending a small block? $\endgroup$ – gnasher729 Jan 22 '19 at 8:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.