Professional Documents
Culture Documents
A) The end to end delay for sending one packet is: N*L/R
Therefore the end to end delay for P such packets will be: P * (delay for
one packet)
i.e. P * N * L / R
Or more simply L / R *
i
i=0
Q2.
i
i=0
)/N
A) With store and forward packet switching the message will reach the
destination from source in 3 hops.
The time for message to hop one step is (message size)/ (transmission
rate) = 9*10^6/3*10^6 = 3 seconds.
Since message requires 3 hops total time will be 3*3 = 9 seconds.
B) Time required for the first packet to reach first switch = 9*10^3 /
3*10^6 = 3*10^-3 s = 3 ms
When the first packet moves from 1st switch to 2nd switch 2nd packet
moves in parallel from source to fist switch so it will reach the first
switch when packet 1 reaches 2nd switch i.e. at T = 6 ms.
C) Time for fist packet to reach destination was 9 ms after that every
subsequent packet reaches the destination every 3ms. So total time for
1000 packets to reach destination will be: 9ms + 999* 3ms = 3.006
seconds.
It is clear that with message segmentation much less time is required
to transfer the message. In this case it required almost one-third the
time in A (since three hops were used)
D) 1. If any error occurs at certain point in time the whole message does
not need to be re-transmitted only the erroneous packets need to be
re-transmitted.
2. Time division multiplexing can be used to send messages of multiple
users in parallel.
E) 1. Requires overhead of message segmentation at source and message
re-assembling at destination.
2. At destination the packets need to be put in a sequence.
3. Since there are multiple packets with segmentation there are
multiple headers which increase the overall size of the message more
than the without-message-segmentation technique in which the
header is added only once.
Q3.
A) The transmission time for transmitting an object = L/R. And the
average time can be calculated by dividing average size of the object
by R:
Therefore = (1000000 bits) / (1000000 bits/sec)=1 sec.
The traffic intensity arriving at the link is equal to:
=1 * 2 = 2
Thus, we can say that the persistent HTTP does not have substantial gain
over the non-persistent HTTP with parallel download.
Q5.
a) Yes, the parallel connections will help Bob get web pages quicker because
Bob has more connections, therefore his share of the link bandwidth will
be greater hence he will get web pages quicker than others.