exercise
play

Exercise Comparison of different rate control methods in Internet. - PowerPoint PPT Presentation

Lic.(Tech.) Marko Luoma (1/16) Lic.(Tech.) Marko Luoma (2/16) Exercise Comparison of different rate control methods in Internet. Methods which are used are: S38.180 Palvelunlaatu Internetiss Token bucket Time sliding


  1. Lic.(Tech.) Marko Luoma (1/16) Lic.(Tech.) Marko Luoma (2/16) Exercise Comparison of different rate control methods in Internet. � Methods which are used are: � S−38.180 Palvelunlaatu Internetissä � Token bucket � Time sliding window S−38.180 Quality of Service in Internet � Single rate two color marker. Harjoitus 1: Rate Control Exercise 1: Rate Control Lic.(Tech.) Marko Luoma (3/16) Lic.(Tech.) Marko Luoma (4/16) Reporting Topology � Due date: 31.10.2001 at 1200 hours. S1 � Reports: delivered to course locker in G−wing 2nd floor. S2 S3 S4 S5 E1 E2 Dest S6 S7 S8 S9 S10

  2. Lic.(Tech.) Marko Luoma (5/16) Lic.(Tech.) Marko Luoma (6/16) Task Rate control Investigate the operation of different Sending rates Implemented as policies: � � � metering and marking algorithms � Controllable sources (UDP) � $qE2E1 addPolicyEntry [$dest id] [$s1 id] TSW2CM 20 $cir1 Source population (traffic mix): � � Below � Pure TCP (greedy FTP) � At Queue to manipulate Controlled connection � Pure UDP (CBR) � Over Initial codepoint the contracted capacity Policer to be used � Mixed (2−4 UDP clients and 6−8 Contracted rate or size TCP clients) See what is the outcome of the � service expressed as recovered Contracts: � capacities. � All clients equal contract � Some clients substantially higher contract � Some clients zero contract Lic.(Tech.) Marko Luoma (7/16) Lic.(Tech.) Marko Luoma (8/16) Policers Policers TSW2CM: Token Bucket: � � � Time Sliding Window Meter with Two Color Marker � Queue addPolicyEntry [ Destination id] [ Source id] tokenBucket Initial Codepoint CIR CBS � Queue addPolicyEntry [ Destination id] [ Source id] TSW2CM Initial Codepoint CIR � Packets are marked to lower precedence when bucket is empty � Packets are marked to lower precedence probabilistically when CIR is � CIR = Token rate * Token size exceeded � CBS = Size of the token bucket TSW3CM: � � Time Sliding Window Meter with Three Color Marker � Queue addPolicyEntry [ Destination id] [ Source id] TSW3CM Initial Codepoint CIR PIR � Packets are marked to medium precedence probabilistically when CIR is exceeded � Packets are marked to low precedence probabilistically when PIR is exceeded

  3. Lic.(Tech.) Marko Luoma (9/16) Lic.(Tech.) Marko Luoma (10/16) Policers Policers srTCM: trTCM: � � � Single Rate Meter with Three Color Marker � Two Rate Meter with Three Color Marker � Queue addPolicyEntry [ Destination id] [ Source id] srTCM Initial Codepoint CIR CBS EBS Queue addPolicyEntry [ Destination id] [ Source id] trTCM Initial Codepoint CIR CBS PIR PBS � � Two token buckets in cascade � Two token buckets in cascade � Packets are marked to medium precedence when first bucket is empty but � Packets are marked to medium precedence when first bucket is empty but second is not second is not � Packets are marked to low precedence when both buckets are empty � Packets are marked to low precedence when both buckets are empty Lic.(Tech.) Marko Luoma (11/16) Lic.(Tech.) Marko Luoma (12/16) Policers Forwarding Action of policers is defined Each packet with assigned codepoint need some forwarding action to be � � associated $qE1E2 addPolicerEntry TSW2CM 10 11 � This is done by selecting queue and precedence based on the codepoint � � $qE1E2 addPHBEntry 10 0 1 Queue to manipulate Policer type Degraded codepoint Initial codepoint Codepoint Precedence (virtual queue) Queue

  4. Lic.(Tech.) Marko Luoma (13/16) Lic.(Tech.) Marko Luoma (14/16) Forwarding Sources Each virtual queue (precedence) is associated a RED algorithm with own UDP source is defined by � � set udp1 [new Agent/UDP] parameters: $ns attach−agent $s1 $udp1 � Protocol source set cbr1 [new Application/Traffic/CBR] � $qE1E2 configQ 0 1 10 40 0.10 � Packet size $cbr1 attach−agent $udp1 $cbr1 set packet_size_ $packetSize � Protocol destination $udp1 set packetSize_ $packetSize Queue Min_TH P_Max � Null $cbr1 set rate_ $rate1 Precedence Max_TH set null1 [new Agent/Null] � Application $ns attach−agent $dest $null1 � Packet size $ns connect $udp1 $null1 � Sending rate Lic.(Tech.) Marko Luoma (15/16) Lic.(Tech.) Marko Luoma (16/16) Sources Simulator output TCP source is defined by set tcp10 [new Agent/TCP] Event file where all � � $ns attach−agent $s10 $tcp10 r 6.6938 4 5 tcp 1000 −−−−−−− 1 0.0 2.0 657 1301 � Protocol source � Enqueue (+) set ftp10 [new Application/FTP] + 6.6938 5 2 tcp 1000 −−−−−−− 1 0.0 2.0 657 1301 $ftp10 attach−agent $tcp10 � Packet size � Dequeue (−) − 6.6938 5 2 tcp 1000 −−−−−−− 1 0.0 2.0 657 1301 $tcp10 set packetSize_ $packetSize r 6.694155 1 4 tcp 1000 −−−−−−− 2 1.0 3.0 10 1356 � Protocol destination set sink10 [new Agent/TCPSink] � Drop (d) + 6.694155 4 5 tcp 1000 −−−−−−− 2 1.0 3.0 10 1356 $ns attach−agent $dest $sink10 � Sink � Receive (r) d 6.694155 4 5 tcp 1000 −−−−−−− 2 1.0 3.0 10 1356 $ns connect $tcp10 $sink10 r 6.6946 0 4 tcp 1000 −−−−−−− 1 0.0 2.0 684 1357 � Application are presented in tabulated fashion

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend