Queuing Disciplines: Order of Packet Transmission and Dropping
Queuing Disciplines: Order of Packet Transmission and Dropping
Queuing Disciplines
Order of Packet Transmission and Dropping
OBJECTIVES
The objective of this lab is to examine the effect of various queuing disciplines on packet
delivery and delay for different services.
OVERVIEW
As part of the resource allocation mechanisms, each router must implement some queuing
discipline that governs how packets are buffered while waiting to be transmitted. Various
queuing disciplines can be used to control which packets get transmitted (bandwidth
allocation) and which packets get dropped (limited buffer space). The queuing discipline
also affects the latency experienced by a packet, by determining how long a packet waits to 109
be transmitted. Examples of the common queuing disciplines are first-in/first-out (FIFO)
queuing, priority queuing (PQ), and weighted-fair queuing (WFQ).
The idea of FIFO queuing is that the first packet that arrives at a router is the first packet to be
transmitted. Given that the amount of buffer space at each router is finite, if a packet arrives
and the queue (buffer space) is full, then the router discards (drops) that packet. This is done
without regard to which flow the packet belongs to or how important the packet is.
PQ is a simple variation of the basic FIFO queuing. The idea is to mark each packet with a
priority; the mark could be carried, for example, in the IP Type of Service (ToS) field. The
routers then implement multiple FIFO queues, one for each priority class. Within each prior-
ity, packets are still managed in a FIFO manner. This queuing discipline allows high-priority
packets to cut to the front of the line.
The idea of the fair queuing (FQ) discipline is to maintain a separate queue for each flow
currently being handled by the router. The router then services these queues in a round-robin
manner. WFQ allows a weight to be assigned to each flow (queue). This weight effectively
controls the percentage allocated to each flow from the link's bandwidth. We could use ToS
bits in the IP header to identify that weight.
In this lab, you will set up a network that carries three applications: File Transfer Protocol
(FTP), video, and Voice over IP (VoIP). You will study how the choice of the queuing
discipline in the routers can affect performance of the applications and utilization of the
network resources.
PRE-LAB ACTIVITIES
& Read Section 6.2 from Computer Networks: A Systems Approach, 5th Edition.
Network Simulation Experiments Manual
IP Fragmentation
PROCEDURE
Create a New Project
1. Start OPNET IT Guru Academic Edition Choose New from the File menu.
2. Select Project and click OK Name the project <your initials>_Queues, and the sce-
nario FIFO Click OK.
3. In the Startup Wizard: Initial Topology dialog box, make sure that Create Empty Scenario
is selected Click Next Select Campus from the Network Scale list Click Next three
times Click OK.
1. The Object Palette dialog box should be now on the top of your project space. If it is not
there, open it by clicking . Make sure that the internet_toolbox item is selected from
the pull-down menu on the object palette.
2. Add to the project workspace the following objects from the palette: Application Config,
Profile Config, QoS Attribute Config, five ethernet_wkstn, one ethernet_server, and
two ethernet4_slip8_gtwy routers.
3. Connect both routers together with a bidirectional PPP_DS1 link.
4. Connect the workstations and the server to the routers using bidirectional 10Base_T
links, as shown.
5. Rename the objects you added as shown, and Save your project.
LAB 11
Queuing Disciplines
111
b. Go to the Video Application row Expand the Description hierarchy Assign Low
Resolution Video to Video Conferencing Click on the Low Resolution Video
value and choose Edit Edit the value of the Type of Service field (the Configure
TOS/DSCP window appears) From the drop-down menu, assign Streaming
PCM (Pulse Code
Multimedia (4) to ToS Click OK twice.
Modulation) is a
c. Go to the VoIP Application row Expand the Description hierarchy Assign procedure used to
PCM Quality Speech to Voice. If you edit it, you can see that the ToS assigned to it is digitize speech before
Interactive Voice (6). transmitting it over the
2. Click OK, and then Save your project. network.
Network Simulation Experiments Manual
112
114
Note: Because the Visualize QoS Configuration radio button is checked, the link is colored
based on the QoS scheme used (blue for FIFO).
3. Save your project.
2. In the Choose Results dialog box, select the following global statistics: Traffic Dropped: The
number of IP datagrams
dropped by all nodes in
the network across all IP
interfaces. The reasons
for dropping an IP data-
gram can be any one of
the following:
Insufficient space in the
queue.
Maximum number of
hops exceeded by an IP
datagram.
On nonrouting nodes, a
local router interface was
not found to be used as
the next hop.
On routing nodes, the
route table lookup failed
to yield a route to the
destination.
115
116
LAB 11
Queuing Disciplines
Note: Because the Visualize QoS Configuration radio button is checked, the link is colored
based on the QoS scheme used (orange for priority queuing).
4. Save your project.
5. Select Duplicate Scenario from the Scenarios menu and give it the name WFQ
Click OK.
117
6. Click on the link connecting the East and West routers to select it From the Protocols
menu choose IP QoS Configure QoS.
7. Make sure the selected items are as shown in the following QoS Configuration dialog
box Click OK.
Note: Because the Visualize QoS Configuration radio button is checked, the link is
colored based on the QoS scheme used (green for WFQ).
8. Save your project.
Network Simulation Experiments Manual
3. Click OK to run the three simulations. Depending on the speed of your processor, this
task may take several minutes to complete.
4. After the simulation completes the three runs, one for each scenario, click Close.
5. Save your project.
119
4. Create the graph for Voice.Traffic Received:
Network Simulation Experiments Manual
5. Create graphs for Voice.Packet End-to-End Delay and Voice.Packet Delay Variation
as follows. (Note: The trace for WFQ is not shown on the following graphs because it is
overlapped by the trace of PQ.)
EXERCISES
1. Analyze the graphs we obtained and verify the overlap of the Voice.Packet End-to-End
Delay and Voice.Packet Delay Variation graphs. Compare the three queuing disciplines
and explain their effect on the performance of the three applications.
2. In the implemented project, edit the Queues object and check the profiles assigned to the
FIFO, PQ, and WFQ disciplines. For each profile, answer the following questions:
a. How many queues are associated with each discipline?
b. In this lab, we used ToS to identify the priority and weight for the PQ and WFQ dis-
ciplines, respectively. What are the other parameters that can be used to identify the
priority and weight?
c. In PQ, how are queues configured to serve different ToS values?
d. In WFQ, how are queues configured to serve different ToS values?
3. For all scenarios, choose the queuing delay <-- statistic for the link that connects East
Router and West Router. Rerun the simulation and generate the graph that compares that
queuing delay for all queuing disciplines (scenarios). Analyze this graph.
Hint: The queuing delay <-- statistic is under the point-to-point hierarchy.
LAB REPORT
Prepare a report that follows the guidelines explained in the Introduction Lab. The report
should include the answers to the preceding exercises as well as the graphs you generated
from the simulation scenarios. Discuss the results you obtained, and compare these results
with your expectations. Mention any anomalies or unexplained behaviors.