How do I calculate how long a packet will reach its destination?

1

2

I am stuck with this homework question. I honestly have no clue what it is talking about.

The question asked: You are transmitting 100 bit packets over a long distance link of 40 km. I assume that the data rate is 1 Mbps and the propagation delay on the link is 2 * 10^8 m/sec.
How long will it take the packet to reach the destination from the source?

  1. .1 ms
  2. .3 ms
  3. .4 ms
  4. .2 ms

Will it be .4 ms?

parvez

Posted 2011-05-06T20:47:24.933

Reputation: 19

2Thanks for asking your homework question appropriately and letting us know that it's for school! Just a word of advice from a fellow student, you might want to go in and talk to your professor if you've having trouble. While you can get help from the internet, believe me from experience that if you just go in and have a chat with your prof, it'll make like much easier in the long run :) – nhinkle – 2011-05-07T19:10:44.000

Answers

7

Given a link speed of c and a bandwidth of b, the one-way time T to transfer a packet of s length is:

size of packet / bandwidth + link distance / link speed

or to be short:

s / b + d / c

The math, you can do yourself!

Why does this formula give you the time needed to transmit? The whole thing is explainable as:

  • The first part is the time needed to push all Bits onto the link. The link has a certain bandwidth (bits per second that can be pushed on it). You're dividing Bits through Bits/sec, which ultimately gives you seconds.
  • The second part is the time needed to transfer the whole thing. The link distance is meters, divided by the speed in meters/sec, which again gives us seconds.

We can then just add both components and get the whole time.

Note: This formula is assuming that there is no constant routing delay, including the IP stack, and no variable queueing delay in the links, which you would have to simply add in more realistic calculations.

slhck

Posted 2011-05-06T20:47:24.933

Reputation: 182 472

1

propagation delay = d/s = 40km/2x10^5km/s = 0.2ms

Transmission delay = 100bits/2^20bits/s = 0.09ms

total time = propagation delay + Transmission delay = 0.2ms + 0.09ms == 0.3ms

ganesh

Posted 2011-05-06T20:47:24.933

Reputation: 11