Implementation and simulation of Scheduling Algorithms in OPNET

Slides:



Advertisements
Similar presentations
1 Comnet 2010 Communication Networks Recitation 4 Scheduling & Drop Policies.
Advertisements

1 GPS Example 2: Arrivals o Eleven Sources. First source gets 0.5. Other 10 sources get 0.05 each. First source sends 11 cells send one each at t=0.
CPU Scheduling Tanenbaum Ch 2.4 Silberchatz and Galvin Ch 5.
Deficit Round Robin Scheduler. Outline Introduction Ordinary Problems Deficit Round Robin Latency of DRR Improvement of latencies.
1 CNPA B Nasser S. Abouzakhar Queuing Disciplines Week 8 – Lecture 2 16 th November, 2009.
EECB 473 Data Network Architecture and Electronics Lecture 3 Packet Processing Functions.
Worst-case Fair Weighted Fair Queueing (WF²Q) by Jon C.R. Bennett & Hui Zhang Presented by Vitali Greenberg.
CS 268: Lecture 15/16 (Packet Scheduling) Ion Stoica April 8/10, 2002.
Generalized Processing Sharing (GPS) Is work conserving Is a fluid model Service Guarantee –GPS discipline can provide an end-to-end bounded- delay service.
Service Disciplines for Guaranteed Performance Service Hui Zhang, “Service Disciplines for Guaranteed Performance Service in Packet-Switching Networks,”
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
1 Queue Scheduling Analysis The Computer Communication Lab (236340) - Winter 2004 Tanya Berezner Ana Gluzband Gitit Amihud.
Lecture 4#-1 Scheduling: Buffer Management. Lecture 4#-2 The setting.
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
A Generalized Processor Sharing Approach to Flow Control in Integrated Services Networks: The Single-Node Case Abhay K. Parekh, Member, IEEE, and Robert.
Server Load Balancing. Introduction Why is load balancing of servers needed? If there is only one web server responding to all the incoming HTTP requests.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Virtual-Time Round-Robin: An O(1) Proportional Share Scheduler By Jason Nieh, etc Xiaojun Wang 10/07/2005.
March 29 Scheduling ?. What is Packet Scheduling? Decide when and what packet to send on output link 1 2 Scheduler flow 1 flow 2 flow n Buffer management.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Nick McKeown Spring 2012 Lecture 2,3 Output Queueing EE384x Packet Switch Architectures.
Cpr E 308 Spring 2005 Process Scheduling Basic Question: Which process goes next? Personal Computers –Few processes, interactive, low response time Batch.
Packet Scheduling: SCFQ, STFQ, WF2Q Yongho Seok Contents Review: GPS, PGPS SCFQ( Self-clocked fair queuing ) STFQ( Start time fair queuing ) WF2Q( Worst-case.
Scheduling Determines which packet gets the resource. Enforces resource allocation to each flows. To be “Fair”, scheduling must: –Keep track of how many.
Efficient Gigabit Ethernet Switch Models for Large-Scale Simulation Dong (Kevin) Jin David Nicol Matthew Caesar University of Illinois.
1 Fair Queuing Hamed Khanmirza Principles of Network University of Tehran.
Queue Scheduling Disciplines
Providing QoS in IP Networks
Scheduling Mechanisms Applied to Packets in a Network Flow CSC /15/03 By Chris Hare, Ricky Johnson, and Fulviu Borcan.
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
Khiem Lam Jimmy Vuong Andrew Yang
Team: Aaron Sproul Patrick Hamilton
QoS & Queuing Theory CS352.
Sriram Lakshmanan Zhenyun Zhuang
Chapter 6 Queuing Disciplines
Stratified Round Robin: A Low Complexity Packet Scheduler with Bandwidth Fairness and Bounded Delay Sriram Ramabhadran Joseph Pasquale Presented by Sailesh.
Lottery Scheduling Ish Baid.
TCP, XCP and Fair Queueing
Quality of Service For Traffic Aggregates
COMP/ELEC 429/556 Introduction to Computer Networks
Variations of Weighted Fair Queueing
Hierarchical Scheduling Algorithms
Scheduling Algorithms in Broad-Band Wireless Networks
Aggressiveness Protective Fair Queuing for Bursty Applications
Fair Queueing.
OPNET Simulation of Different Queuing Mechanisms
Scheduling: Buffer Management
Computer Science Division
Congestion Control, Quality of Service, & Internetworking
Scheduling Algorithms to Minimize Session Delays
Variations of Weighted Fair Queueing
COMP60621 Fundamentals of Parallel and Distributed Systems
Network Simulation NET441
Process Scheduling Decide which process should run and for how long
COMP/ELEC 429 Introduction to Computer Networks
Network performance project
Uniprocessor scheduling
Chapter 4: Simulation Designs
Introduction to Packet Scheduling
COMP60611 Fundamentals of Parallel and Distributed Systems
EECS 122: Introduction to Computer Networks Packet Scheduling and QoS
Hierarchical Scheduling Algorithms
Scheduling Computing Theory – F453.
Fair Queueing.
A Simple QoS Packet Scheduler for Network Routers
Introduction to Packet Scheduling
کنترل جریان امیدرضا معروضی.
Approximate Mean Value Analysis of a Database Grid Application
Presentation transcript:

Implementation and simulation of Scheduling Algorithms in OPNET Project by: Itamar Cohen Supervisor: Nir Arad

AGENDA Introduction Applications Algorithms: RR, WRR, WFQ Summary

MOTIVATION Scheduling algorithms are used in: Computer networks, operating systems, real time applications.

MOTIVATION (cont.) Uses for nowadays networks: Suppliers of services are committed to guarantee a fixed service level, which can be checked under a few pre-defined parameters. This is called SLA (Service Level Agreement). But the client would like to get much more… A possibility to choose his favorite application, which will get a higher percentage of his bandwidth. This is called QoS (Quality of Service).

SCHEDULING ALGORITHMS Plenty of algorithms try to solve in different ways the problem of one server, which has to choose in real time the next client to be served, among a few clients. Each algorithm is good for some case, but bad for other cases. No algorithm is good for all the possible scenarios. The OPNET modeler gives us an excellent ability to test each algorithm under plenty of different scenarios.

THE PROJECT’S AIMS This project implements OPNET standard packages for the following scheduling algorithms: RR, WRR and WFQ. Each algorithm was simulated under a few interesting scenarios. The generic attitude of the implementation enables the user to simulate each algorithm under plenty of other scenarios.

Round Robin (RR) The simplest algorithm. The most important parameters which were checked are: ETE Delay Backlog.

RR – basic 2

RR - Interesting scenarios A source with smaller packets’ size A source whose packets are smaller then those of the rest of the sources will get a worse service; The reason is that the RR is a packetized model, which doesn’t consider different packets’ sizes.

RR – different packets’ sizes

RR – different packets’ sizes (cont.) The bad service causes increasing ETE Delay and backlog. Only after a long run the server takes advantage of the smaller packets, and stops this increase.

RR - different packets’ sizes – ETE Delay

RR - different packets’ sizes - backlog

RR – another problematic scenario Misses his turn When one source is unlucky enough to send its packets just after its turn in the current round passed, it will have to wait for a whole round till it will be served. When there are plenty of active sources, this wait time is not negligible at all. The ETE Delay of the “unlucky” source is a few times bigger then that of the other sources. The backlogs, however, are almost identical.

RR – “Misses his turn”

“Misses his turn” – ETE Delay

“Misses his turn” - backlogs

Weighted Round Robin (WRR) A more sophisticated algorithm, which solves the problem of “one source faster”. The user can promote different weights for different sources.

WRR

WRR – different packets’ sizes If the user knows in advance the packets’ average size of each source, he can promote it to improve performances. The normalized weight is, therefore: (int)(promoted weight / avg. packet size) Let us examine the effect on the scenario of one source with smaller packets’ size, demonstrated in the RR context.

WRR - different packets’ sizes (cont’)

WRR - different packets’ sizes (cont’)

WRR – Pros. WRR solves the problem of one source, which sends smaller packets. WRR guarantees a higher bandwidth for the favorite sources, still without starving the other sources.

WRR – Cons. The problem of “misses his turn” remains unsolved. And what will we do if the average packet size is not known in advance (or has a large STDEV)?

WFQ – Weighted Fair Queuing GPS – The ultimate choice! We would have preferred to handle a bit-by-bit (rather then packetized) weighted RR fashion. This is called Generalized Processor Sharing. Unfortunately, this is impractical. But we can approximate it.

From GPS to PGPS (WFQ)

Weighted Fair Queuing Overview WFQ schedules the packets according to their finish time had they been handled by a GPS algorithm. Parekh and Gallager had proved that WFQ’s performances are lower then that of GPS by only a small constant [P & G] .

WFQ in different scenarios WFQ succeeds to give the same good results as WRR gave in the different packets’ sizes scenario, without requiring the user to promote the packets’ average sizes in advance. WFQ succeeds to solve the problem of “Misses his turn”, in which both RR and WRR failed.

WFQ – not “Misses his turn” anymore !

WFQ – Cons. The sophisticated scheduling requires higher computational complexity. Jon C.R. Bennett and Hui Zhang showed that under one specific scenario WFQ’s service is far AHEAD of GPS. This will result in unstable and less efficient network control algorithm [B & Z] . To solve these problems, newer algorithm, such as W2FQ, were implemented…

SUMMARY As the demands from computer networks become more and more specific and complicated, more sophisticated algorithms are invented Sophisticated algorithms are likely to give better performances, but they also require a higher computational complexity. There are plenty of newer interesting algorithms.

REFERENCES [P & G] Abhay K. Parekh and Robert G. Gallager. A Generalized Processor Sharing Approach to Flow Control in Integrated Services Networks: The Single-Node Case IEEWACM Transactions on nej’worjong, vol. 1, NO. 3, June 1993. Chuck Semeria. Supporting Differentiated Service Classes: Queue Scheduling Disciplines. http://www.juniper.net/techcenter/techpapers/200020.html Sridhar Iyer. Lectures slides for Autumn Semester, KR School of Information Technology, IIT Bombay. Queuing and Scheduling: http://quark.it.iitb.ac.in/~it605/lectures/sched Krishna Paul. Lectures slides for Autumn Semester, KR School of Information Technology, IIT Bombay. Scheduling: http://quark.it.iitb.ac.in/~it605/krishna/SCHEDULING.ppt Kevin Fall. Lectures slides for spring 1999, UC Berkley, EECS 122 - COMMUNICATION NETWORKS, Supplementary notes on WFQ: http://www.cs.berkeley.edu/~kfall/EE122/wfq-notes/wfq-notes.pdf [B & Z] Jon C.R. Bennett, Hui Zhang. WF2Q: Worst-case Fair Weighted Fair Queuing, Presented by Pin Zhou. http://www-courses.cs.uiuc.edu/~cs497hou/pres/WF2Q.ppt