Download presentation
Presentation is loading. Please wait.
Published byScott Wiggins Modified over 9 years ago
1
IP Telephony Project By: Liane Lewin Shahar Eytan Guided By: Ran Cohen - IBM Vitali Sokhin - Technion
2
Network Lab - Technion2 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
3
Network Lab - Technion3 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
4
Network Lab - Technion4 What is IP Telephony? IP stands for Internet Protocol Basically, it enables passing of audio data over the Internet. The data is passed by UDP packets.
5
Network Lab - Technion5 Why was that needed? Imagine being able to call anywhere in the world for the cost of a local call… Imagine being able to link your telephone system into your web page… Imagine being able to give your customers a world wide toll-free number… IP Telephony enables all that, and more...
6
Network Lab - Technion6 We’re dealing with real time data, delays are critical –Remember the last time you talked to South America... You would like a continuous conversation –You will not like to hear half words or sentences ( “ I ………….. you “ ) Sounds easy? Well, it’s not that easy!
7
Network Lab - Technion7 Audio data is sent by UDP. The network is not that reliable. –There are Routers on the way –Datagrams are delayed –Some times they change their order –Some times they just vanish –Some times they all come at once Some one has to put an end to this mess...
8
Network Lab - Technion8 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
9
Network Lab - Technion9 Jitter Buffer (JB) Jitter - the speed variation between slowly and quickly traveling packets. The JB stores packets, allowing most of the slower packets to catch up. The less control in routing, the more jitter that results.
10
Network Lab - Technion10 The Jitter Buffer Catch: More jitter means longer JB Longer JB introduces more latency Shorter JB loses too many packets Lose of packets cause voice to tumble
11
Network Lab - Technion11 The Goal: How to control the Jitter Buffer? Need to find a good algorithm that will control the JB. A convenient Test Bench should be designed in order to simulate the algorithm. The Test Bench will not be a full VoIP system (with gateways, routing, etc.)
12
Network Lab - Technion12 Our Solution: The Packet Source The Network Module JB Destination Module
13
Network Lab - Technion13 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
14
Network Lab - Technion14 The JB Algorithm: The frames number in the JB adjusts according to the High Water Mark (HWM) Whenever the JB is empty, wait till packets will fill it to the HWM. Whenever the jitter changes, check if the change is less then the last jitters.
15
Network Lab - Technion15 If the jitter is consistently shorter then reduce the HWM. If the number of packets exceeds HWM X Const then throw the remains. The HWM will increase whenever the Jitter exceeds a certain limit. Remember, the goal is to have the shorter latency and the fewer breaks! What is the Const ? What is the limit? By how much? Define consistent
16
Network Lab - Technion16 The Algorithm Parameters: Prefetch - Initialized at the beginning of the JB operation. It is constantly updated according to the network behavior. Stable History - Initialized at the beginning of the JB operation. It defines the time limit (in JB operations) needed to decide that the network is relatively stable.
17
Network Lab - Technion17 The Algorithm Parameters (cont): Prefetch reduction: Only when all the previous jitters during the last Stable History cycle where below the HWM. The Prefetch is reduced according to the difference between the current HWM and the maximal jitter. Prefetch increment: Each time the jitter is higher then the Prefetch, it will increase to the jitter value.
18
Network Lab - Technion18 The Algorithm Parameters (cont): Packets are thrown whenever their number is 50% higher then the HWM. The algorithm parameters are updated at every mode switch. Note: The parameters values are subject to change according to the packet size. The only well defined parameter is the Stable History.
19
Network Lab - Technion19 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
20
Network Lab - Technion20 Implementation Notes The project consist of 2 main blocks –The Packet Source and the Network module It’s all part of the Test Bench –The Destination module This is the main module. Improvement of this module is the goal of the project.
21
Network Lab - Technion21 2 ways to implement the Network module: 1. Simulation: –The path between source and destination is divided by Routers. –Number of Routers could be modeled by one queue as well. –For this queue we will add working parameters that characterize a network Frequency of the breaks in its operation The duration of a break
22
Network Lab - Technion22 2. Using the ‘Real’ Net –We used a Mirror Application It runs on a far computer All it does is replying the sender by sending his packets back immediately –While traveling through the net, packets: where delayed changed order vanished away
23
Network Lab - Technion23 The Destination: Receives the voice packets Uses the Jitter Buffer Algorithm Tries to provide the user with smooth and short delayed voice
24
Network Lab - Technion24 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
25
Network Lab - Technion25 The Code: It contains 2 basic applications –The Network Simulator –The Destination Each contains number of threads Both NT and UNIX compatible Few basic classes are being used to simplify the code (Sockets, Threads and Synchronization)
26
Network Lab - Technion26 Implementing the Jitter Buffer It’s basically a cyclic array Allocated in memory at the beginning of the operation Its size is a multiple of the Frame Size GetPut Wrap around
27
Network Lab - Technion27 3 Threads controls the JB I/O: 1. JB Input Thread: Poles the network for incoming frames and inserts them to the JB according to their sequence number. 2. JB Output Thread: Reads from the JB in constant frequency (equal to the sender’s), and plays the data to the user. 3. User Interaction Thread: Gets the user commands The JB Control
28
Network Lab - Technion28 The Network Simulator The Network is modeled as queue (Cyclic Queue) 3 threads control its operation (Input, Output and User Interaction) The input/output of the frames is done in order - FIFO
29
Network Lab - Technion29 The simulated network works according to the following parameters: –Breaks - Caused by heavy traffic in the net –Break frequency Those parameters could be entered by the user, or selected randomly Remember, if we want real data we still got the Mirror app. The Network Simulator (cont.)
30
Network Lab - Technion30 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
31
Network Lab - Technion31 The Simulations Goal Validate the code Fix the constants values Find the JB advantages over Simple algorithms
32
Network Lab - Technion32 In each simulation we checked: At any time: –Number of packets in the buffer (Buffer) –The number of input tries vs. output tries (Level) –The jitter (Jitter) –The HWM (Prefetch) –The approximate packet delay (Delay) For comparison we managed also a simple buffer
33
Network Lab - Technion33 Simulation Area: Simulations ran on the “real net” using the Mirror application. It ran on computers in USA, Japan and closer. To exercise the algorithm on different scenarios we used the network simulator. For better view, we processed the data using Matlab.
34
Network Lab - Technion34 Simulation Output Example
35
Network Lab - Technion35 On the “Real” net with the Mirror
36
Network Lab - Technion36 Agenda What is IP Telephony The Jitter Buffer The Jitter Buffer Algorithm Implementation The Code Simulations Conclusions
37
Network Lab - Technion37 Conclusions: When coming to improve network connected applications, dynamic algorithms are needed. Applying a JB to the destination improves the latency and breaks. Its advantage is mainly when the net stabilizes. Not significant when it is static.
38
Network Lab - Technion38
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.