Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.



Published on

Overview of QOS for VOIP when crossing networks

Published in: Technology, Business
  • Be the first to comment


  1. 1. VOIP QOSITSPA - Autumn Seminar11th October 2012LEEDSThomas ManginTechnical DirectorIXLeedsTHEEDGETHECOREAND THEIXP
  2. 2. AGENDANO AGENDAAgenda are good to let you knownwhen to doze offThere is under 30 slidesyou can do it !
  3. 3. QOS Definition :TelephonyIn the field of telephonydefined by the ITU in 1994 : E.800Terms and definitions related to quality of service and network performance including dependabilityrequirements on all the aspects of a connectionresponse time, loss, signal-to-noise ratio, cross-talk, echo, interrupts,frequency response, loudness levels, ...Cares about customer experienceThe Quality of Service ...
  4. 4. QOS Definition :NetworkingIn the field of networkingresource reservation control mechanisms rather than the achievedservice qualityability to guarantee a certain level of performance todata flows, applications, users, ...Has no concept of end user experience “Quality”
  5. 5. QOS Definition :Let’s speak the same language ..Explaining IP challenges related to VoIPPacket-switched networks issues / constraints ..The problems QOS tries to solvesRSVP (MPLS) vs DiffServQOS across different networksEnd to End network design for your servicesAND why you should care about peeringTo improve call qualityThe QOS your customers care aboutI am speaking of that QOSTo achieve that one
  6. 6. Why is QOS required in packetswitching networks ?Most of the challenge are with RTP (Audio)Signaling is much more resilientBut mostly still uses UDPWhat can go wrong in a IP network ?Errors (hardware issues)Bad configuration (duplex mismatch)Bandwidth congestionDropped packetsLatency / JitterBad call quality QOS may helpOnly money can helpMoney will helpQOS may helpOFF-TOPIC
  7. 7. Requirements :VoIP is a sensitive serviceVoIP requires regular packetsRTP has no retransmissionVoIP buffers cause audio delayVoIP is very sensitive to packet lossdropping packet is the worst thing which can happenMissing packet means an audio drop-out occurs for the speakerVoIP requires a network which “cares”Some networks are “optimised” for datathroughput using deep buffers VS jitterbuffering is good for data and bad for VoIP
  8. 8. Jitter:What is it ?Jitter is a variation of Latencyvariation in delay between packetscan cause out of order packetsJitter is the biggest VoIP challengeFor an network engineerJitter can happen in well provisioned networkMultiple paths to a single destination, worse with unequal path lengthuse of multiple line with L2/L3 load balanced (need to be per flow)Can be caused outside the networktranscoding on a very busy machine !
  9. 9. Jitter :The “real world” analogytake a very large audio book on tapesand send it to a friend living abroadsend a tape a day with a car courier- packet networkrequire your friend to listen a tape a day too- real time constraintask him to only keep two tapes with him- small buffer constraintA VoIP packet is like a car carrying audio tapes ...
  10. 10. Jitter :The “real world” analogyWhat if could tell the driver which road to useusing the same road, mean encountering the same traffic jamscar more likely to arrive in the right orderpredictable paths reduce the chances of jitterThe listener can keep more tapesmore likely to be able to listen a tape a dayit may delay the starting daycorrect buffering reduce chances of jitter
  11. 11. Jitter :The “real world” analogyWhat if ..The listener moves to nearer to your house (from Asia to Europe)shorter paths reduces chance of jitteryour friend moves back to “mainland”less chance of hitting a french ferry/eurostar strikenot using third party infrastructure reduces the chances of jitterOnly use motorwaysless chance of being stuck behind a long slow truck on a small roaduncongested path reduces the chances of jitter
  12. 12. Jitter :What can cause it ?Every router between the caller and the calleesmall RTP packets (200 bytes) “stuck” behind “larger” (1,500 bytes) data packetshigh serialisation times on slow speed circuitHow much of a delay ?1500 byte packet at 100Mbps takes 0.12ms1500 bytes at 2Mbps = 6 ms1500 bytes at 250kbps = 48 msOn a DSL router at 250ksending a large mail will cause at least 48 ms delay for many packetsa RTP packet behind behind two data packet will have 96 ms of delay48 ms alone may be enough to exhaust a low de-jitter buffer
  13. 13. Latency / Jitter :End to End transfer timeHow much Latency can a VoIP call sustain ?ITU G.114 recommendation for end-to-end delay is 150ms maxat 400ms two way conversation becomes very difficult.Source of bufferingcodec delays (converting to and from raw audio)networkjitter bufferCorrect jitter bufferingtypically 30-50 ms worth of dataOver-buffering can cause latency issues
  14. 14. Bandwith congestion :The “real world” analogyCongestion ...trying to pass more cars than the motorway can take ..A best everyone arrives late (latency / jitter)Some cars may not reach their destination (packet drops)Only BIG difference with IP Network one will see his car vaporised in a traffic jam to reduce it ...Never good to any IP networkNever run any link at more than 70% average capacitymicro-burst - will cause bad packet loss for VoIPmonitor peak (5 minutes average sampling is a LONG time)
  15. 15. Bandwidth congestion :QOS can / can’tIt CAN ..Provide resource reservationprovide your VoIP with a “special virtual network” (RSVP/MPLS) withguaranteed bandwidth even if some big FTP transfer is going onProvide “flow” prioritisationmake sure all UDP packet from and to to AQL RTP servers pass beforeanything elseIt can NOT ..More than 100 Mbps worth of RTP down a 100 Mbps circuit !on a 1Mbps circuit carrying 960kps of RTP perfectly (12 calls)a single 80 kbps call will cause audio break-out for ALL users
  16. 16. QOS Types :The car analogyMPLS (RSVP)The bandwidth is reserved for VoIP...But lost for other servicesThe bus laneProritisation (Most often DiffServ)The flow are prioritisedThe police/ambulance sirenTraffic MUST still be “constrained”Often three levels of prioritisationbest effort (data)real-time (voip, video)network control (ISP protocol / remote administration)
  17. 17. QOS :How does it works1 - Classifyfind the traffic you want to treat specially2 - Markadd information to the IP packet telling how it should be treated3 - Queueapply the differentiation on every router ...
  18. 18. QOS :How does it works1 - Classifyfind the traffic you want to treat speciallyusing L3 packet header (source IP, port, ...)using ACL on edge / core devicesusing Deep Packet Inspection (looking at the content of the packet)example Cisco NBARAgreed between the client and the network providersome equipment may be using non-standard port / settingscan be to boost what you know is VoIP (often ACL)can be to slow down what you do not know (often DPI)Must be done with any VoIP service provider tootraffic from and to the PSTN gateway must be prioritised
  19. 19. QOS :How does it works2 - Markadd information to the IP packet telling how it should be treatedused for later actioncan be done at Layer 2ethernet CoS field inside of 802.1q framer (3 bits)information lost when the packet is untaggedor at Layer 3IP header has 1 byte TOS field for IP PrecedenceTOS was never widespreadUsed as DS field (6 bits) + ECN (2 bits)6 bits Diff Serv (Differenciated Services) + 2 bits ECNIdeally done one when the packet enter the coreunmark traffic marked by customers when (not) appropriatedo not want a VoIP DOS by having junk prioritised
  20. 20. QOS :How does it works3 - Queuerouters can only affect OUTGOING trafficqueuing is only important when there is output congestion on an interfacepacket loss occurs when interface buffers are full, before : latency and jitterText
  21. 21. QOS :How does it works3 - Queueprioritise traffic based on markingsoftware queues on small routersdefault a single FIFOcan be split in multiple ones, each with different priority and policyhardware queues on most ASIC accelerated hardwareoften called TX ring or TX Queuehere to make sure there is always data ready to be serialiseddifferent hardware have very different featuresfor the same router, line-cards can matter enormously
  22. 22. QOS :The EDGEWhat should be done on the EDGE ?The edge is the most usual congestion locationData burst enormously, VoIP must be protectedEDGE QOS protects VoIP packets over normal dataEDGE routers mark VoIP packet as more importantuntil the customer pays for a upgrade :DThe edge suffers from high serialisation timesLower bitrate links mean higher serialisation time.use rate-limited over-provisioned product
  23. 23. QOS :The EDGEWhat should be done on the EDGE ?QOS can only affect outgoing packetQOS must be applied the customer router for outgoingQOS must be applied on your EDGE toward your customerIf your customer need to pick an ISPMake sure your customer’s ISP has some form of VoIP QOS enabledsee if the ISP is willing to QOS your VoIP packet toward the customer
  24. 24. QOS :The COREWhat should be done on the CORE ?Core networks do see many micro-burstevery router on the core should have the same QOS policy configuredQOS mitigate issues caused by regular / large micro-burstSerialisation delays are generally better due to faster line rate1000 x 1500 byte packets on 1Gbps circuit “only” adds 12ms of jittera 10 Gb link causes 10 times less jitter as 1 Gb oneover-provision the core as much as possibleuse faster interface when it is financially viableEnable but try to avoid to have to use QOS altogether
  25. 25. QOS :The IXPWhat should be done beyond the CORE ?The QOS mechanisms should be applied end-to-endnot always possible if you do not provide connectivity to your customermost often not possible with transit providersVoIP providers should seek to reduce latency as much as possiblewith their customers supplierswith their providersShould use the most direct connectionsPI orPeering
  26. 26. QOS :The IXPPeering provides a direct connection with your business partnersimprove network visibilitymore direct connection / no third partyEuropean IX are member owned, it is an extension of your networkreduce latency / jitterpeering provide direct network to network connectionIXes provides the same advantages as PI (no hidden congestion)but allow to reach more networks (good backup for PI)join a technical communityLearn lots about the service provider marker
  27. 27. Questions ?mailto/xmpp: thomas@ixleeds.netThank you for your attentionMore information : 65 - Halfpenny -VOIP QOS.pdf