Professional Documents
Culture Documents
=
|
|
.
|
\
|
1
Hence, if - at least (N+1) users are sending at the same time, the probability will be:
( ) | |
+ =
=
|
|
.
|
\
|
M
N i
i M
i
p P
i
M
1
1
P12. A packet switch receives a packet and determines the outbound link to
which the packet should be forwarded. When the packet arrives, one other
packet is halfway done being transmitted on this outbound link and four other
packets are waiting to be transmitted. Packets are transmitted in order of
arrival. Suppose all packets are 1,500 bytes and the link rate is 2 Mbps. What is
the queuing delay for the packet? More generally, what is the queuing delay
when all packets have length L, the transmission rate is R, x bits of the currently-
being-transmitted packet have been transmitted, and n packets are already in
the queue?
The arriving packet has to wait for the link that is transmitting 4.5 packets = 6,750 Bytes =
54,000 Bits.
Transmission Speed = 2 Mbps
Thus, Queuing Delay =
54,000
2
= 27 .
As a rule, we can say that the General Queuing Delay =
R
x L nL ) ( +
P31. In modern packet-switched networks, including the Internet, the source
host segments long, application-layer messages (for example, an image or a
music file) into smaller packets and sends the packets into the network. The
receiver then reassembles the packets back into the original message. We refer
to this process as message segmentation. Figure 1.27 illustrates the end-to-end
transport of a message with and without message segmentation. Consider a
message that is 8 10
6
bits long that is to be sent from source to destination in
Figure 1.27. Suppose each link in the figure is 2 Mbps. Ignore propagation,
queuing, and processing delays.
a. Consider sending the message from source to destination without message
segmentation. How long does it take to move the message from the source host
to the first packet switch? Keeping in mind that each switch uses store-and-
forward packet switching, what is the total time to move the message from
source host to destination host?
Message Length = 8 10
6
Bits
Transmission Rate = 2 Mbps = 2 10
6
Bits/Sec.
Time for the message to be sent from source to the 1
st
switch =
810
6
210
6
= 4 .
Since we have a Store-and-Forward packet switching, and 3 links. Therefore:
The total time to move message from source host to destination host = 4 Sec x 3 Links = 12 Sec.
b. Now suppose that the message is segmented into 800 packets, with each
packet being 10,000 bits long. How long does it take to move the first packet
from source host to the first switch? When the first packet is being sent from
the first switch to the second switch, the second packet is being sent from the
source host to the first switch. At what time will the second packet be fully
received at the first switch?
Time to send 1
st
packet from source host to 1
st
packet switch =
110
4
210
6
= 5 .
The 2
nd
packet will take the same time as the 1
st
one, so it would be = 2 5 = 10 .
c. How long does it take to move the file from source host to destination host
when message segmentation is used? Compare this result with your answer in
part (a) and comment.
Time for 1
st
packet to be received at the destination host = 5 . 3 = 15.
From there, each packet will take 5 mSec. to be received. Hence, the time for the 800
th
packet
to be received is = 15 +(5 799) = 4.01 .
It is obvious as we can observe that the delay of the message using segmentation has been
significantly reduced by about 66.6 % one third of the time for sending without message
segmentation.
d. In addition to reducing delay, what are reasons to use message
segmentation?
Couple of reasons can be found:
- If any failure of delivery message, only a small portion has to be retransmit instead of
having the entire message to be resent.
- Segmentation comes of a benefit when the packet(s) encounters any congestions on its
way.
- Without Message Segmentation the network will be facing some severe delays
(depends on the sizes of transmitted messages). Each message will have to wait for the
other to get through. Let us consider sending Videos vs. Text!
e. Discuss the drawbacks of message segmentation.
- The total amount of packets' headers bytes is relatively large and more than the ones
we find in packets without segmentation.
- If one segmented packet is missing, then the overall message cannot be read.
- Packets has to be organized in sequence at the destination.
- Consumes more bandwidth (Overhead).