/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Problem 13 Two users, one using Telnet and ... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Two users, one using Telnet and one sending files with FTP, both send their traffic out via router \(R\). The outbound link from \(R\) is slow enough that both users keep packets in R's queue at all times. Discuss the relative performance seen by the Telnet user if \(\mathrm{R}\) 's queuing policy for these two flows is (a) round-robin service (b) fair queuing (c) modified fair queuing, where we count the cost only of data bytes, and not IP or TCP headers Consider outbound traffic only. Assume Telnet packets have 1 byte of data, FTP packets have 512 bytes of data, and all packets have 40 bytes of headers.

Short Answer

Expert verified
Telnet: Poor with round-robin, better with fair queuing, best with modified fair queuing.

Step by step solution

01

- Understand the Packet Sizes

Identify the sizes of the packets for both Telnet and FTP. Telnet packets have 1 byte of data and 40 bytes of headers, totaling 41 bytes. FTP packets have 512 bytes of data and 40 bytes of headers, totaling 552 bytes.
02

- Round-Robin Service

In the round-robin queuing policy, each flow gets an equal opportunity to send packets. For every Telnet packet (41 bytes), one FTP packet (552 bytes) is also sent. Telnet user will face higher delays because FTP packets are much larger.
03

- Fair Queuing

In fair queuing, the system allocates equal bandwidth to each user. Since Telnet packets are smaller (41 bytes) than FTP packets (552 bytes), Telnet user will send more packets per unit time, leading to better performance for the Telnet user compared to round-robin.
04

- Modified Fair Queuing

If modified fair queuing is applied, and only data bytes are counted, the Telnet packets (1 byte of data) will face less competition compared to FTP packets (512 bytes of data). This gives Telnet packets even more frequent transmission opportunities, improving performance for the Telnet user significantly.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

Key Concepts

These are the key concepts you need to understand to accurately answer the question.

round-robin queuing
Round-robin queuing is a scheduling technique where each flow of data gets its turn to send a packet in a circular order. Imagine a round table with the Telnet and FTP users as participants. The router serves one packet from Telnet, then one from FTP, and so on. This method is designed to ensure a fair distribution of service time among users.
However, because Telnet packets are much smaller (41 bytes) compared to FTP packets (552 bytes), the Telnet user can experience higher delays. Every FTP packet takes longer to send, causing the Telnet user to wait more. This can be quite frustrating for the Telnet user, as their smaller packets are often stuck behind the larger FTP packets.
fair queuing
Fair queuing is a more sophisticated method compared to round-robin queuing. It aims to provide a fair share of the bandwidth to each user. Here, the system considers the size of the packets and provides service accordingly. For instance, since Telnet packets are smaller, more Telnet packets will be delivered in the same time it takes to send a few large FTP packets.
This means that the Telnet user will see better performance because their smaller packets can be transmitted more frequently. Overall, fair queuing helps to balance the service each user gets, ensuring a more equitable experience.
modified fair queuing
Modified fair queuing takes fairness a step further by focusing only on the data bytes, ignoring the headers. In TCP/IP, headers add extra bytes to each packet: 40 bytes in our example. In this method, for Telnet, only the 1 byte of data is counted and for FTP, the 512 bytes of data are considered.
This adjustment gives an edge to the Telnet user as they have very little data per packet. As a result, Telnet packets face much less competition and are transmitted more often. This greatly enhances the Telnet user's experience, providing them with quicker and more reliable service.
packet sizes
Packet size plays a crucial role in network performance. A packet contains both data and protocol headers. The sizes for our example are:
  • Telnet: 1 byte data + 40 bytes headers = 41 bytes
  • FTP: 512 bytes data + 40 bytes headers = 552 bytes
The larger the packet, the longer it takes for the router to send it. This difference in packet size between Telnet and FTP impacts their performance under different queuing policies. Smaller packets, such as those from Telnet, can be handled more quickly, reducing latency. This is why understanding packet sizes is so important when considering network performance and queuing policies.
network performance
Network performance is a measure of how well data is transmitted across the network. Key factors influencing it include:
  • Bandwidth: The maximum rate of data transfer across a network path.
  • Latency: The delay before data transfer begins following an instruction.
  • Throughput: The actual amount of data successfully transferred.
Queuing policies directly impact these factors. Round-robin may increase latency for smaller packets, while fair and modified fair queuing can improve throughput and reduce latency for all users. In scenarios where packet sizes vary significantly, like between Telnet and FTP, choosing the right queuing policy can drastically improve overall network performance and user satisfaction.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Discuss the relative advantages and disadvantages of marking a packet (as in the DECbit mechanism) versus dropping a packet (as in RED gateways).

Consider a router that is managing three flows, on which packets of constant size arrive at the following wall clock times: flow A: \(1,3,5,6,8,9,11\) flow B: \(1,4,7,8,9,13,15\) flow C: \(1,2,4,6,7,12\) All three flows share the same outbound link, on which the router can transmit one packet per time unit. Assume that there is an infinite amount of buffer space. (a) Suppose the router implements fair queuing. For each packet, give the wall clock time when it is transmitted by the router. Arrival time ties are to be resolved in order \(\mathrm{A}, \mathrm{B}, \mathrm{C}\). Note that wall clock time \(T=2\) is FQ-clock time \(A_{i}=1.333 .\) (b) Suppose the router implements weighted fair queuing, where flows \(\mathrm{A}\) and \(\mathrm{C}\) are given an equal share of the capacity, and flow B is given twice the capacity of flow A. For each packet, give the wall clock time when it is transmitted.

During linear increase, TCP computes an increment to the congestion window as Increment \(=\mathrm{MSS} \times(\mathrm{MSS} /\) CongestionWindow \()\) Explain why computing this increment each time an ACK arrives may not result in the correct increment. Give a more precise definition for this increment. (Hint: A given ACK can acknowledge more or less than one MSS's worth of data.)

Suppose a TCP connection has a window size of eight segments, an RTT of \(800 \mathrm{~ms}\), the sender sends segments at a regular rate of one every \(100 \mathrm{~ms}\), and the receiver sends ACKs back at the same rate without delay. A segment is lost, and the loss is detected by the fast retransmit algorithm on the receipt of the third duplicate \(\mathrm{ACK}\). At the point when the ACK of the retransmitted segment finally arrives, how much total time has the sender lost (compared to lossless transmission) if (a) the sender waits for the ACK from the retransmitted lost packet before sliding the window forward again? (b) the sender uses the continued arrival of each duplicate ACK as an indication it may slide the window forward one segment?

In TCP Vegas, the calculation of ActualRate is done by dividing the amount of data transmitted in one RTT interval by the length of the RTT. (a) Show that for any TCP, if the window size remains constant, then the amount of data transmitted in one RTT interval is constant once a full window is sent. Assume that the sender transmits each segment instantly upon receiving an ACK, packets are not lost and are delivered in order, segments are all the same size, and the first link along the path is not the slowest. (b) Give a timeline sketch showing that the amount of data per RTT above can be less than CongestionWindow.

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.