Module-2.1-Switching Problems
Module-2.1-Switching Problems
1. Consider two hosts, Hosts A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by
m meters, and suppose the propagation speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host
B.
ii. Determine the transmission time of the packet, dtrans in terms of L and R.
iii. Ignoring processing and queuing delays, obtain an expression for the end-to- end delay.
iv. Suppose Host A begins to transmit the packet at time t=0. At time t=dtrans, where is the last bit of the packet?
Answer: The first bit is in the link (it has not reached B yet)
vi. Suppose dprop is less than dtrans . At time t=dtrans, where is the first bit of the packet?
vii. Suppose s=2.5*108, L=100 bits and R=28 kbps. Find the distance m so that dprop equals dtrans
Solution:
B. The delay X bandwidth product for the link is the Delay X bandwidth = 23.5Mb
C. After a picture is taken, it must be transmitted on the link and completely propagated, before Mission
Control can interpret it. Transmit delay for 5Mb of data is 39 secs
Hence, total delay = transmit delay + propagation delay = 223 secs
4. Consider sending voice from host A to host B over a packet-switched network (for example, Internet phone). Host A converts
analog voice to a digital 64 Kbps bit stream on the fly. Host A then groups the bits into 48-byte packets. There is one link
between host A and B; its transmission rate is 1 Mbps and its propagation delay is 2 ms. As soon as host A gathers a packet, it
sends it to host B. As soon as host B receives an entire packet, it converts the packet's bits to an analog signal. How much time
elapses from the time a bit is created (from the original analog signal at host A) until the bit is decoded (as part of the analog
signal at host B)
Solution:
Before the first bit of a packet can be transmitted, all the other bits belonging to the same packet need to be generated. This
requires: 48x8 / 64x10^3 = 7.6 ms
Therefore, the delay until decoding is: 6ms + 0.384ms + 2ms = 8.384 ms
5. A path in a digital circuit-switched network has a data rate of I Mbps. The exchange of 1,000 bits is required for
the setup and teardown phases. The distance between two parties is 3,000 km. Answer the following questions if the
propagation speed is 2x108 m/s:
a. What is the total delay if 1,000 bits of data are exchanged during the data transfer phase?
b. What is the total delay if 100,000 bits of data are exchanged during the data transfer phase?
c. What is the total delay if 1,000,000 bits of data are exchanged during the data transfer phase?
Find the delay per 1,000 bits of data for each of the above cases and compare them. What can you infer?
Solution
Total delay (t) = delay of setup and tear down (d1) + delay of data transfer (d2)
Delay of setup and tear down (d1) = 3 * propagation delay + 3 * transmission delay
Delay of data transfer = propagation delay + transmission delay
= (3X15) ms + (3X1) ms
= 48 ms
= 48 ms + 15 ms + 1 ms = 64 ms
= 48 ms + 15 ms + 100 ms = 163 ms
= 48 ms + 15 ms + 1000 ms = 1053 ms
d. For a = 64 ms, for b = 163 ms, and for c =1053 ms.
Five equal-size datagrams belonging to the same message leave for the destination one after another. However, they travel
through different paths as shown in the following table:
1 3200 Km 1,3,5
2 11,700 Km 1,2,5
3 12,200 Km 1,2,3,5
4 10,200 Km 1,4,5
5 10,700 Km 1,4,3,5
We assume that the delay for each switch (including waiting and processing) is 3, 10, 20, 7, and 20 ms respectively.
Assuming that the propagation speed is 2x108 m/s, find the order the datagrams arrive at the destination and the delay for
each. Ignore any other delays in transmission.
Solution:
Assuming a negligible transmission time (i.e. all datagrams start at time 0). The
arrival times are calculated as:
2 10
3 20
4 7
5 20
Third: (12.200 km / 2 x 108 m/s) + 3 + 10 + 20 + 20 = 114 ms
1. We transmit data directly between two servers 6,000 km apart through a geostationary satellite situated 10,000 km
from Earth exactly between the two servers. The data enters this network at 100Mb/s.
c. Determine how long it takes to send 10 bytes of data and to receive 2.5 bytes of acknowledgment back.
2. Analyze a variation of Exercise 1 where servers are placed in substantially closer proximity to each other still using
satellite for communication. We transmit data directly between two servers 60 m apart through a geostationary satellite
situated 10,000 km from Earth exactly between the two servers. The data enters this network at 100Mb/s.
3. Stored on a flash memory device is a 200 megabyte (MB) message to be transmitted by an e- mail from one server to
another, passing three nodes of a connectionless network. This network forces packets to be of size 10KB, excluding a packet
header of 40 bytes. Nodes are 400 miles apart, and servers are 50 miles away from their corresponding nodes. All
transmission links are
of type 100Mb/s. The processing time at each node is 0.2 seconds.
a. Find the propagation delays per packet between a server and a node and between nodes.
b. Find the total time required to send this message.
3. Suppose that a 200MB message stored on a flash memory device attached to a server is to be uploaded to a destination
server through a connection-oriented packet-switched network with three serially connected nodes. This network forces
packets to be of size 10KB, including a packet header of 40 bytes. Nodes are 400 miles apart from each other and each server
is 50 miles away from its corresponding node. All transmission links are of type 100Mb/s. The processing time at each node is
0.2 seconds. For this purpose, the signaling packet is 500 bits long.
4. Suppose there is a 10 Mbps microwave link between a geostationary satellite and its base station on Earth. Every minute the
satellite takes a digital photo and send it to the base station. Assume a propagation speed of 2.4 * 108 meters/sec.
c. Let x denote the size of the photo. What is the minimum value of x for the microwave link to be continuously
transmitting?
a. 150 bits
b. 1,500,000 bits
c. 600,000,000 bits
Hint: Recall geostationary satellite is 36,000 kilometers away from earth surface