




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Organization, productEricsson AXI 520/580 Internet EngineerModule 10: 5.0 and Previous Class of Service (CoS)Module ObjectivesClass of Service (CoS) overviewDiscuss the main functions that effect preferred treatment of traffic in JUNOS softwareMonitoring ing trafficTraffic classificationOutput queui
2、ngPrecedence bit re-mappingTransmission schedulingCongestion avoidanceDiscuss COS “End-To-End” strategiesCoS OverviewCoS is the preferential treatment of packets with certain characteristicsYou define which packets get treated preferentiallyCertain applications can benefit from CoSReal-time applicat
3、ions versus non-real-time applicationsAll routers in a network must support CoS setting for applications to fully benefitIPv4 packetsIP Precedence bits in Type of Service (ToS) field can be used for CoSToS values can be mapped to CoS mechanismsMPLS packets (NOT covered in this course)EXP bits can be
4、 used for CoSMapping to IP Precedence bitsIP PrecedenceDefined in the Precedence bits of ToS field in IP header3 Precedence bits 8 possible Precedence valuesToS field has been interpreted in several different ways over time (DoD levels, DiffServ, minimize delay, etc.)VERHLENPRECToSTOTAL LENGTHIDENTI
5、FIERFLAGSFRAGMENT OFFSETTIME TO LIVEPROTOCOLCHECKSUMSOURCE IP ADDRESSDESTINATION IP ADDRESSOPTIONSPADDINGPrecedenceBits32 BITSQueue ServicingQueue servicing is how the queues are emptied with respect to each otherStrict Round Robin shares output bandwidth fairlyWeighted Round-Robin (WRR) allows queu
6、e (and therefore traffic) differentiationQueues are serviced sequentiallyWeight is based on percentage of the total available bandwidth on the output interfaceHigher-weighted queues send more packets each time they are servicedVariable queue depths also provide some measure of control preferenceImpa
7、ct on latencyJUNOS CoS ComponentsHardware monitoring of input traffic for congestionInput traffic classificationOutput queue selectionPrecedence bit rewritingServicing output queues for transmissionMonitoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-En
8、d ”JUNOS CoS ComponentsCoS Hardware Flow OverviewWeightedRoundRobin T.O.S.MapInputTrafficHardwareInput L2PolicingDS3/ATMPICs OnlyLSB of PrecedenceField set?YesSetPLPNoTrafficOverThreshold?DroporTag?YesNoQueue 0Queue 1Queue 2Queue 3PrecedenceFieldRewritePassesRED DropProfilesYesNoTransmitPacketDropPa
9、cketHardware monitoring of input traffic for congestionInput traffic classificationOutput queue selectionPrecedence bit rewritingServicing output queues for transmissionMonitoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-End ”JUNOS CoS ComponentsHardwa
10、re monitoring of input trafficWeightedRoundRobin T.O.S.MapInputTrafficHardwareInput L2PolicingDS3/ATMPICs OnlyLSB of PrecedenceField set?YesSetPLPNoTrafficOverThreshold?DroporTag?YesNoQueue 0Queue 1Queue 2Queue 3PrecedenceFieldRewritePassesRED DropProfilesYesNoTransmitPacketDropPacketMonitoring ing
11、TrafficToken bucket mechanism is supported on certain interfacesSONET, T1, T3, E1, E3Transmit-bucket and Receive-bucket can be definedPIC I/O Manager ASIC checks input traffic against a configured token bucket parameters and leaky bucket algorithmIf the flow exceeds the buckets threshold:Drop the pa
12、cketsTag the packets (if configured)PIC sets the PLP bit in the notification recordOther Input CoS mechanisms existATM PIC Traffic-Shaping ProfileCBR and VBR rate configurationHardware monitoring of input traffic for congestionInput traffic classificationOutput queue selectionPrecedence bit rewritin
13、gServicing output queues for transmissionMonitoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-End ”JUNOS CoS ComponentsIP II Classification FeaturesWeightedRoundRobin T.O.S.MapInputTrafficHardwareInput L2PolicingDS3/ATMPICs OnlyLSB of PrecedenceField se
14、t?YesSetPLPNoTrafficOverThreshold?DroporTag?YesNoQueue 0Queue 1Queue 2Queue 3PrecedenceFieldRewritePassesRED DropProfilesYesNoTransmitPacketDropPacketFirewall Rate Policer FunctionPolicy Classification OverrideRate PolicingA filter can rate-limit specific trafficFirewall filter match conditions are
15、used to specify source/destination address, protocol, etc.Traffic that matches the filter is then policed according to an average bandwidth and a burst sizeWhen traffic exceeds the policing parameters, it can be:DiscardedHave its Packet Loss Priority (PLP) bit setQueued for transmission in a differe
16、nt output queueOverride Input Classification You can optionally override ing classification based on destination addressesThree parts involved when configuring input classification override:Define a Policy ClassAssociate Policy Class with a Routing PolicyApply the Policy to the Forwarding TableHardw
17、are monitoring of input traffic for congestionInput traffic classificationOutput queue selectionPrecedence bit rewritingServicing output queues for transmissionMonitoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-End ”JUNOS CoS ComponentsIP Precedence M
18、appingWeightedRoundRobin T.O.S.MapInputTrafficHardwareInput L2PolicingDS3/ATMPICs OnlyLSB of PrecedenceField set?YesSetPLPNoTrafficOverThreshold?DroporTag?YesNoQueue 0Queue 1Queue 2Queue 3PrecedenceFieldRewritePassesRED DropProfilesYesNoTransmitPacketDropPacketMap traffic to a particular output queu
19、e based on T.O.S BitsInput Traffic ClassificationMap traffic to a particular output queueIf you do, you must assign resources to that queueIPv4 packets can be mapped to queue based on Precedence bitsInput interface ing IPv4 Precedence bits (and corresponding classification) can be overriddenMPLS pac
20、kets are placed in queue 0 by defaultMPLS packets can be statically mapped based on the three CoS (EXP) bits in the MPLS headerMPLS packets inherit IP Precedence bits by default but is still mapped into queue 0 unless furthered configuration is performedMPLS CoS configuration is not covered in this
21、courseJUNOS Queuing DefaultsPrecedence BitsIP HeaderToSPacket Loss Priority (PLP)0low probability1high probability0, 111530, 1020, 1010, 1000110950PLP BitQueue BitsDefault WRR%Queue NumberOutput QueuesEach interface has four output transmission queuesQueue 0: Low priority traffic, 95% of output inte
22、rface BWQueues 1 and 2: undefinedQueue 3: High priority traffic, 5% of output interface BWWhy these defaults?You would expect to have a small percentage of high priority traffic and a higher priority trafficIf not, you can configure something other than the defaultsIf there is no congestion, there i
23、s no hard limit (e.g., low priority traffic can go above 95%)NOTE: Routing overhead traffic is high priority by defaultEach queue can be configured with:A WRR service interval (output-queue weight)A buffer size (output-queue buffer-percentage)Classify and Map ing PacketsClassify and Map IPv4 Packets
24、 to Output Queues, based on Precedence BitsDefault Precedence bits 000 101 to Queue 0Network Control packets (110, 111) to Queue 3PLP bit is the least significant bit (LSB) of the priority bits000, 010, 100 higher priority (lower probability of drop)001, 011, 101 lower priority (higher probability o
25、f drop)After defining the mapping, associate with an Output FPC and InterfaceViewing a Precedence Map labhost show chassis CoSCoS information: FPC 0: precedence-map Default: bits 000 output-queue 0; bits 001 output-queue 0; bits 010 output-queue 0; bits 011 output-queue 0; bits 100 output-queue 0; b
26、its 101 output-queue 0; bits 110 output-queue 3; bits 111 output-queue 3; drop-profile Default: msp-profile: fill 100 drop 100 plp-set-queue-profile: fill 100 drop 100 plp-clear-queue-profile: fill 100 drop 100 Hardware monitoring of input traffic for congestionInput traffic classificationOutput que
27、ue selectionPrecedence bit rewritingServicing output queues for transmissionMonitoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-End ”JUNOS CoS ComponentsCoS Output ModificationsInputTrafficWeightedRoundRobin T.O.S.MapHardwareInput L2PolicingDS3/ATMPICs
28、 OnlyLSB of PrecedenceField set?YesSetPLPNoTrafficOverThreshold?DroporTag?YesNoQueue 0Queue 1Queue 2Queue 3PrecedenceFieldRewritePassesRED DropProfilesYesNoTransmitPacketDropPacketSetting the ToS values to effect the next hopPrecedence Bit RewritingAfter packets have been received and classified, th
29、e router can rewrite the IP precedence bitsFor each output transmission queue you canSet one value for all packets headed to that queue that have the PLP set A second value for all packets whose PLP bit is not setExample application:An source outside your AS is sending packets with certain IP preced
30、ence setting that conflict with your precedence settingsYou can rewrite precedence bits to be compatible with your networks policiesHardware monitoring of input traffic for congestionInput traffic classificationOutput queue selectionPrecedence bit rewritingServicing output queues for transmissionMon
31、itoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-End ”JUNOS CoS ComponentsQueue Buffering and SchedulingInputTrafficWeightedRoundRobin T.O.S.MapHardwareInput L2PolicingDS3/ATMPICs OnlyLSB of PrecedenceField set?YesSetPLPNoTrafficOverThreshold?DroporTag
32、?YesNoQueue 0Queue 1Queue 2Queue 3PrecedenceFieldRewritePassesRED DropProfilesYesNoTransmitPacketDropPacketOutput Queue Memory ManagementWeighted Round Robin Bandwidth SchedulingServicing the Output QueuesWRR algorithm is used to schedule packets for transmissionServicing alternates among the four q
33、ueues depending on the queues credit value, and determines from which queue the next packet is transmittedThe higher the weight, the more frequent the servicingPWRR ExampleTraffic headed for interfaceOutput interfaceQ0Q1Q2Q3Q0 gets 3/7 = 43% Q1 gets 2/7 = 29%Q2 gets 1/7 = 14%Q3 gets 1/7 = 14%Hardwar
34、e monitoring of input traffic for congestionInput traffic classificationOutput queue selectionPrecedence bit rewritingServicing output queues for transmissionMonitoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-End ”JUNOS CoS ComponentsCongestion Manage
35、mentWeightedRoundRobin T.O.S.MapInputTrafficHardwareInput L2PolicingDS3/ATMPICs OnlyLSB of PrecedenceField set?YesSetPLPNoTrafficOverThreshold?DroporTag?YesNoQueue 0Queue 1Queue 2Queue 3PrecedenceFieldRewritePassesRED DropProfilesYesNoTransmitPacketDropPacketUse The Random Early Discard algorithm To
36、 control queue fill rates and avoid congestion problemsRandom Early DetectionRandom Early Detection (RED) is a congestion avoidance mechanismIt is proactiveRED anticipates congestion and randomly drops packets from the head of the queuePrevents the queue from filling and causing tail dropCauses TCP
37、to “behave itself” and back offAffects fewer individual TCP sessionsUDP isnt going to back off, but thats OKCongestion and Dropping PacketsRED tries to anticipate congestion and react so that the queue never actually es congestedRED proactively drops packets according to a Drop Profiles, which are b
38、ased on:Output queue fullnessDrop ProbabilitySeparate Drop Profiles are defined for:Packets whose PLP is set plp-set-profilePackets whose PLP is not set plp-clear-profileThe aggregate stream (e.g., all packet in the queue) stream-profileFor each packet, RED uses the two applicable profiles to make p
39、acket dropping decisionPackets with PLP=0 get stream-profile and plp-clear-profilePackets with PLP=1 get stream-profile and plp-set-profilePacket must “pass” both profile tests to be droppedHardware monitoring of input traffic for congestionInput traffic classificationOutput queue selectionPrecedenc
40、e bit rewritingServicing output queues for transmissionMonitoring output queue congestion and dropping packets (RED)Applying CoS Components “ Think End-to-End ”JUNOS CoS Components“ Think End-to-End ”There are many CoS mechanisms, but it is rare to use all of them simultaneouslyConsistent and delibe
41、rate application across the network is keyA well Planned Ingress, Transit, and Egress CoS strategy is required for a successful implementation !Applying CoS ComponentsSample Voice over IP End-to-End CoS StrategyApplying CoS ComponentsApplying CoS On IngressVOIPGatewayIngressTransitTransitEgressVOIPGatewayVoice over IPMixed Data TrafficIngress router COS strategyIdentify L3/L4 components of trafficIdentify default TOS bit value from L3 header.On Ingress router map traffic into
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年中國(guó)車(chē)貼燈市場(chǎng)調(diào)查研究報(bào)告
- 2025━2030年篩選花生行業(yè)深度研究報(bào)告
- 膝關(guān)節(jié)鏡術(shù)護(hù)理查房
- 2025-2035年全球及中國(guó)旅游車(chē)保險(xiǎn)行業(yè)市場(chǎng)發(fā)展現(xiàn)狀及發(fā)展前景研究報(bào)告
- 2024年中國(guó)液化氣灶具市場(chǎng)調(diào)查研究報(bào)告
- 食品安全工勤人員培訓(xùn)
- 2025年智能電網(wǎng)配電設(shè)備項(xiàng)目合作計(jì)劃書(shū)
- 裝修工藝流程施工標(biāo)準(zhǔn)
- 2025年礦業(yè)開(kāi)采模塊合作協(xié)議書(shū)
- 2025年出版物發(fā)行零售合作協(xié)議書(shū)
- 2025-2030年中國(guó)鐵精粉市場(chǎng)發(fā)展?fàn)顩r及營(yíng)銷(xiāo)戰(zhàn)略研究報(bào)告
- 做最勇敢的自己
- 《生活污水》課件
- 2025年大慶職業(yè)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫(kù)(名師系列)
- GB/T 23694-2024風(fēng)險(xiǎn)管理術(shù)語(yǔ)
- 2025年蕪湖職業(yè)技術(shù)學(xué)院高職單招職業(yè)適應(yīng)性測(cè)試近5年??及鎱⒖碱}庫(kù)含答案解析
- 創(chuàng)辦民辦學(xué)校項(xiàng)目可行性論證報(bào)告
- 《中國(guó)象棋基礎(chǔ)教程》課件
- 大模型落地應(yīng)用實(shí)踐方案
- 寫(xiě)字樓反恐防暴演練
- 2025年鞍鋼集團(tuán)招聘筆試參考題庫(kù)含答案解析
評(píng)論
0/150
提交評(píng)論