Question: Problem 1 (Circuit Switching and Packet Switching) Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit
Problem 1 (Circuit Switching and Packet Switching) Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit of data every k time units, where k is small and fixed). Also, when such an application starts, it will continue running for a relatively long period of time. Answer the following questions, briefly justifying your answer: a. Would a packet-switched network or a circuit-switched network be more appropriate for this application? Why? b. Suppose that a packet-switched network is used and the only traffic in this network comes from such applications as described above. Further more, assume that the sum of the application data rates is less than the capacities of each and every link. Is some form of congestion control needed? Why? Hint: Congestion control is a network function at the hosts to control the injected traffic to the network. This is necessary as routers in the backbone network have limited capacity and are shared by a multitude of connections simultaneously. If overwhelming traffic is sent to the network at each host, the backbone network can be heavily congested, resulting in the performance degradation of all hosts. To do the congestion control can be difficult. This is because that the hosts would have no pre-knowledge about the available bandwidth of routers in the backbone network, and, more importantly, the available bandwidth of routers is changing over time due to the random cross traffic, suggesting that the hosts should adaptively adjust the injected traffic to the network from time to time. Problem 2 (Statistical Multiplexing) Consider the discussion of statistical multiplexing in which an example is provided with a 1 Mbps link. Users are generating data at a rate of 100 kbps when busy, but are busy generating data only with probability p = 0:1. Suppose that the 1 Mbps link is replaced by a 1 Gbps link. a. What is N1, the maximum number of users that can be supported simultaneously under circuit switching? b. What is N2, the maximum number of users that can be supported simultaneously by packet switching? c. Now consider packet switching and a user population of M users. Give a formula (in terms of p, M, N1) for the probability that more than N1 users are sending data. Problem 3 (Delay) This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two 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. a. Express the propagation delay, dprop, in terms of m and s. b. Determine the transmission time of the packet, dtrans, in term of L and R. c. Ignoring processing and queuing delays, obtain an expression for the end-to-end delay. d. Suppose Host A begins to transmit the packet at time t = 0. At time t = dtrans, where is the last bit of the packet? e. Suppose dprop is greater than dtrans. At time t = dtrans, where is the first bit of the packet? f. Suppose dprop is less than dtrans. At time t = dtrans, where is the first bit of the packet? g. Suppose s = 2:5 108, L = 120 bits, and R = 56 kbps. Find the distance m so that dprop equals dtrans. Page 1 of 2 COMP 3270, Fall 2017 Assignment 1 Figure 1: End-to-end message transport: (a)without message segmentation; (b)with message segmentation Problem 4 (Segmentation) In modern packet-switched networks, 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 illustrates the end-to-end transport of a message with and without message segmentation. Consider a message that is 8 106 bits long that is to be sent from source to destination in Figure 1. 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 form 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 form source host to destination host? b. Now suppose that the message is segmented into 4,000 packets, with each packet being 2,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? 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. d. Discuss the drawbacks of message segmentation.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
