Presentation is loading. Please wait.

Presentation is loading. Please wait.

Color Aware Switch algorithm implementation The Computer Communication Lab (236340) Spring 2008.

Similar presentations


Presentation on theme: "Color Aware Switch algorithm implementation The Computer Communication Lab (236340) Spring 2008."— Presentation transcript:

1 Color Aware Switch algorithm implementation The Computer Communication Lab (236340) Spring 2008

2 Agenda Introduction Project scope Dune’s color-aware algorithm DiffServ Project Implementation Test results Open discussion

3 Introduction Switches with multiple flows.  Packets arrive at several ports are colored (GREEN and YELLOW)  Congestion on some of the ports.  Packets are dropped. Requirements:  Yellow packets are dropped before green.  No bandwidth loss.

4 Project Scope Implement Dune’s algorithm for color- aware switch (specification is provided) Provide an experimental platform (based on NS-2) for further exploration

5 Color Aware Algorithm

6 Color Aware Algorithm 2 Each input has access to Test Parameters Table for each color. Each input holds Max-Q-Size for all inputs that are mapped to the same output. Central Agent maintains Max-Q-Size by receiving “Flow Status Messages” from various inputs. When a packet is evaluated for enque, a RED-like test vs. Max-Q- Size is performed. The packet is dropped or accepted depending on Test Parameters. Central Agent updates the Max-Q-Size on each non-empty input using Round Robin every given time.

7 Differentiated Services DiffServ is mechanism for classifying and managing network traffic. DiffServ architecture has 3 components:  Policy In NS, the policy is fully determined in the tcl script  Edge routers Assign code points to the packets according to the policy  Core routers Evaluate packets according to priority given on Edge

8 Differentiated Services - 2 In NS, each link has number of physical and virtual queues that represent priorities. Queues are implemented on node’s egress. Therefore, when congestion occurs, packets are dropped on egress.

9 Project’s Implementation DiffServ is used to mark packets depending on source-destination pair. Each packet is then evaluated for dropping by its input before standard NS dropping algorithms. Several topologies are built to test implementation. Tests were run and results analyzed.

10 Implementation details Since queues are implemented on the egress, we’ve created physical queue for each input link. CA manages physical queues only to determine which packets should be dropped. CA notifies each non-empty physical queue about the maximum size of all other queues. Custom statistics were made for the algorithm.

11 Topology A D S1S1 S2S2 B S3S3 S4S4 E Packets are evaluated vs. CFG-Table and (if not dropped) by standard NS algorithms. Various settings were tested to find optimal values. 2Mb 5Mb 10Mb Each source sends packets with constant bitrate. Each link to edge contains both yellow and green packets Congestion is created on Edge’s output.

12 Testing various parameters The tests were run with changing the following parameters for both colors:  CFG-AdmitDropProb1  CFG-AdmitDropProb2  CFG-AdmitTh  CFG-AdmitDropTh  CFG-DropTh  Port delay

13 Drops vs. tresholds 1204080103050 2204080204080 3406080305070 4506090306070 5506090405080 6307080203070 Thresholds: CFG-AdmitDropProb1=20% CFG-AdmitDropProb2=50% CFG-AdmitDropProb1=60% CFG-AdmitDropProb2=80% CFG-AdmitDropProb1=30% CFG-AdmitDropProb2=40% CFG-AdmitDropProb1=40% CFG-AdmitDropProb2=50%

14 Tests vs. Weighted RED Single Q Dune’s algorithmApproximated weighted RED (one queue) 1204080103050 2204080204080 3406080305070 4506090306070 5506090405080 6307080203070 Thresholds and probabilities: CFG-AdmitDropProb1=10% CFG-AdmitDropProb2=35% CFG-AdmitDropProb1=20% CFG-AdmitDropProb2=50%

15 Tests vs. Weighted RED Double Queue Dune’s algorithmApproximated weighted RED (double queue) 1204080103050 2204080204080 3406080305070 4506090306070 5506090405080 6307080203070 Thresholds: CFG-AdmitDropProb1=10% CFG-AdmitDropProb2=35% CFG-AdmitDropProb1=20% CFG-AdmitDropProb2=50%

16 Drops vs. port delay Test parameters: CFG-AdmitTh = 50 CFG-AdmitDropTh = 60 CFG-DropTh = 90 CFG-AdmitDropProb1 = 20% CFG-AdmitDropProb2=50% CFG-AdmitTh = 30 CFG-AdmitDropTh = 60 CFG-DropTh = 70 CFG-AdmitDropProb1 = 50% CFG-AdmitDropProb2=70%

17 Topology (2) A D B E 10Mb Dune Linear DuneWRED Double Queue WRED Single Queue Test parameters: CFG-AdmitTh = 20 CFG-AdmitDropTh = 40 CFG-DropTh = 80 CFG-AdmitDropProb1 = 10% CFG-AdmitDropProb2=35% CFG-AdmitTh = 10 CFG-AdmitDropTh = 30 CFG-DropTh = 50 CFG-AdmitDropProb1 = 20% CFG-AdmitDropProb2=50%

18 Dune Linear DuneWRED Double Queue WRED Single Queue Test parameters: CFG-AdmitTh = 20 CFG-AdmitDropTh = 40 CFG-DropTh = 80 CFG-AdmitDropProb1 = 10% CFG-AdmitDropProb2=35% CFG-AdmitTh = 10 CFG-AdmitDropTh = 30 CFG-DropTh = 50 CFG-AdmitDropProb1 = 20% CFG-AdmitDropProb2=50% A D B E 10Mb 3Mb 9Mb Topology (3)

19 Conclusions: Large difference in dropping probabilities gives better results (more priority to green packets). Global Max-Q-Size has its equilibrium. In CBR traffic thresholds distance has minor effect. Port delay (Max-Q-Size update period) doesn’t have much impact on results for cbr traffic, unless its value is unreasonable. Linearization of Dune algorithm at some topologies gives improvement to efficiency. In general, Dune’s algorithms gives better results than WRED, however there are counterexamples.

20 Demo Implementation modules Tests and Topologies

21 Open discussion


Download ppt "Color Aware Switch algorithm implementation The Computer Communication Lab (236340) Spring 2008."

Similar presentations


Ads by Google