Docsity

introduction to network questions, Assignments of Computer Networks

Partial preview of the text

Download introduction to network questions and more Assignments Computer Networks in PDF only on Docsity!

Problem (1-1) 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 /sec. Host A is to send a packet of size Z bits to Host B. a b) Determine the transmission time of the packet, dirin: in terms of L and R. Express the propagation delay, djyoy in terms of m and s. ) 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 f=0. At time f=dyons Where is the last bit of the packet? ¢) Suppose drop is greater than drans. At time (dears, Where is the first bit of the packet? f) Suppose dpop is less than dyyans . At time ¢=dirauns, Where is the first bit of the packct? 2) Suppose s=2.5x10* m/s, L=120 bits, and R=56 kbps. Find the distance m so that dprp equals derans. Problem (1-2) Consider sending real-time voice from Host A to Host B over a packet switched network (VoIP). Host A converts analog voice to a digital 64 kbps bit stream on the fly. Host A then groups the bits into S6-byte packets. There is one link between Hosts A and B; its transmission rate is 2 Mbps and its propagation delay is 10 msec. 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 bi an analog signal. How much time clapses from the time a created (from the o1 analog signal at Host A) until the bit is decoded (as part of the analog signal at Host BY? Problem (1-3) Consider a packet of length £ that begins at end system A and travels over three links to a destination cnd system. These three links are connceted by two packet switches. Let d; R; denote the length, propagation speed, and the transmission rate of link i, for =1,2.3. The packet switch delays cach packet by dpc. Assuming no queuing delays, in terms of d., sv, (é=1,2.3), and L, what is the total end-to-end delay for the packet? Suppose now the packet is 1,500 bytes, the propagation speed on all three links is the transmission rates of all three links are 2 Mbps, the packet switch processing delay is 3 mscc, the length of the first link is 5,000 km, the length of the second link is 4.000 km, and the length of the last link is 1,000 km. For these values, what is the end-to-end delay? 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 1 packets are already in the queue? Problem (1-5) Suppose two hosts, A and B, are separated by 20,000 kilometers and are connected by a direct link of R=2 Mbps. Suppose the propagation speed over the link is 2.5x 10* m/sec. a) Calculate the bandwidth-delay product (R-djo,). What does it mean? b) Consider sending a file of 800,000 bits from Host A to Host B. Suppose the file is sent continuously as one large message, how long does it take to send the file? c) Suppose now the file is broken up into 20 packets with each packet containing 40,000 bits. Suppose that each packet is acknowledged by the receiver and the transmission time of an acknowledgment packet is negligible. Finally, assume that the sender cannot send a packet until the preceding one is acknowledged. How long does it take to send the file? d) Comment on the results of b) and ec). Problem (1-6) 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-6) illustrates the end-to-end transport of a message with and without message segmentation. Consider a message that is §x10° bits long that is to be sent from source to destination in Figure (1-6). Suppose each link in the figure is 2 Mbps. Ignore propagation, queuing, and processing delays. (SS Mesa: a Source Packet ewtch Packet switch Destination = a -_ = —— Sy Source Packet switch Packet switch Destination Figure 1-6 End-to-end message transport: (a) without message segmentation: (b) With message segmentation 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?