Académique Documents
Professionnel Documents
Culture Documents
14
VoIP stack
Q.931/H.245
H.323
RTP
UDP/TCP
IP
2
Caractéristiques d’un Terminal H.323
System Control Video Audio User Data
and I/O I/O Applications
User Interface Equipment Equipment T.120
System Control
Audio Codec
H.245
Control Video Codec G.711, G.722,
H.261, H263 G.723, G.723.1, Scope
Call Control G.728, G.729 of
H.225.0 H.323
RAS Control
Receive Path
H.225.0
Delay
H.225.0 Layer
LAN Stack
3
H.323 : Signalisation
Admission Request
RAS
Admission Confirm
Gatekeeper
Setup
Q.931
H.323 Connect H.323
Capabilities Exchange
RTP Stream
RTP Stream Media
RTCP Stream
4
RTP/RTCP—RFCs 1889/1890
• End-to-end network transport function
Payload type identification
Sequence numbering
Timestamping
Delivery monitoring
5
Analog to Digital
Pulse Code Modulation—Nyquist Theorem
(Sample at twice the Frequency)
Voice Bandwidth =
300 Hz to 3400 Hz
= Sample
Codec Technique 8 kHz (8,000 Samples/Sec)
6
Various Codec Bandwidth
Consumptions
Voice Band Traffic
Encoding/ Result
Compression Bit Rate
G.711 PCM 64 kbps (DS0)
A-Law/u-Law
7
Les différents modes de signalisations
analogiques dans le monde de la
Téléphonie
Fonctionnalité : 2600/3600 2600/3600
Poste de service
2 fils FXS 2 fils FXS
2600/3600 2600/3600
PBX
Déport de poste
2 fils FXS
2 fils FXO
2600/3600 2600/3600
PBX PBX
Interconnexion
de PABX via
LIA 2 ou 4 fils + RON/TRON
8
La maîtrise du délai de bout en bout
Pour y parvenir :
Utilité
0.5 Fax Relay,
Fax Broadcast
Toll Quality Satellite CB Radio
I-Phone
Today
0
0 100 200 300 400 500 600 700 800
Temps (msec)
9
VoIP: optimisation
10
Gérer le délai et la gigue
• Routeur d’entrée
Codec (algorithm+processing)
Packetization/framing
Output queueing/interleaving
11
Délais Fixes
Délai de Propagation
Délai de Serialisation
Buffer to Serial Link
Temps de processing
Dejitter
Buffer
15
Delay Variation—“Jitter”
Receiver
Sender
Network
A B C Sender Transmits
A B C Sink Receives
D1 D2 = D1 D3 = D2 t
16
Large Packets “Freeze Out” Voice
Voice Packet Voice Packet Voice Packet
60 bytes 60 bytes 60 bytes
Every 20ms Every >214ms Every >214ms
17
Gérer la qualité et les délais
sur un réseau IP
• Priorité et gestion des files d’attente
Classification des flux applicatifs
Fragmentation et multiplexage
Mécanismes de file d’attente
Gestion de la congestion
• Routage avec qualité de service
• Réservation de bande passante RSVP
18
Architecture d’un réseau IP
POP POP
Backbone IP
POP POP
Des
Des solutions
solutions évolutives
évolutives
nécéssitent
nécéssitent une
une collaboration
collaboration
entre
entre la
la périphérie
périphérie et
et le
le centre
centre du
du réseau.
réseau.
19
Boîte à outils “QoS”
• IP Precedence (ToS)
• WFQ
• RSVP
• Multilink fragmentation and interleaving
• RTP/CRTP
20
IP Precedence Controling WFQ’s
De-queuing Behavior
IPv4 Packet
Data
ToS Field
3-Precedence
21
Classification des flux
Backbone
Réseau opérateur
périphérique
Site
Client
Policy
Specification
22
Setting IP Precedence
!
interface Serial0/0
ip address 10.1.0.1 255.255.0.0
ip policy route-map testprec
Option 1
!
!
access-list 101 permit udp any any range 16384 16400
route-map testprec permit 10
match ip address 101
set ip precedence network
midge(config-route-map)#set ip precedence ?
<0-7> Precedence value
critical Set critical precedence (5)
flash Set flash precedence (3)
flash-override Set flash override precedence (4)
immediate Set immediate precedence (2)
internet Set internetwork control precedence (6)
network Set network control precedence (7)
priority Set priority precedence (1)
routine Set routine precedence (0)
309-E
1171_04F8_c1 23
Setting IP Precedence
Option 2
!
dial-peer voice 25 voip
destination-pattern 5011
req-qos guaranteed-delay
ip precedence 5
session target ipv4:10.5.0.1
!
midge(config)#dial-peer voice 25 voip
midge(config-dial-peer)#ip precedence ?
<0-7> Packet IP precedence value
24
Displaying Effects of IP Precedence
This Is Using the “Weight” in Weighted Fair Queuing
bottom#sho queu se 0
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queuing strategy: weighted fair
Output queue: 5/64/0 (size/threshold/drops)
Conversations 2/7 (active/max active)
Reserved Conversations 0/0 (allocated/max allocated)
(depth/weight/discards/interleaves)
weight 1/585/0/0
585
Conversation 90, linktype: ip, length: 46
source: 10.1.1.1, destination: 10.1.1.2, id: 0x0064, ttl: 255,
TOS: 192 prot: 6, source port 23, destination port 11000
(depth/weight/discards/interleaves) 3/4096/0/0
Conversation 219, linktype: ip, length: 68
source: 10.1.2.2, destination: 171.68.56.138, id: 0x1C7E, ttl: 31,
TOS: 0 prot: 17, source port 49604, destination port 49604
309-E
1171_04F8_c1 25
Weighted Fair Queuing par CoS
Time Division
Multiplexer
6 4 1
5 4 1
5 2
6 3
3
2
• FAIR Queueing
•A conversation (or flow) is identify dynamicaly by “source and destination address and port”
•Flow requesting low bandwidth are served more frequently
•The remaining bandwidth is fair shared between high volume flows
27
Weighted Fair Queuing (WFQ) Two 100 Byte
Packets
Configurable Queues Transmitted for
Every One 200 Byte
Packet
Two 100 Byte
Voice Packets 1 1 Therefore = “Fair”
2 2 1 1
1 2 1 De-
queue
Classify
One 200 Byte
Data Transmit
Packet Scheduling
Interface Buffer
Resources
309-E
1171_04F8_c1 28
Displaying WFQ
Emphasizing the “Fair” in Weighted Fair Queuing
bottom#sho queu se 0
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queuing strategy: weighted fair
Output queue: 31/64/0 (size/threshold/drops)
Conversations 2/4 (active/max active)
Reserved Conversations 0/0 (allocated/max allocated)
(depth/weight/discards/interleaves)
weight 24/4096/0/0
4096
High BW Flow
Conversation 184, linktype: ip, length: 1504
source: 10.1.2.2, destination: 171.68.56.138, id: 0x04CF, ttl: 31, vs
TOS: 0 prot: 6, source port 1503, destination port 1034
Telnet, VoIP Etc.
(depth/weight/discards/interleaves)
weight 7/4096/0/0
4096
Conversation 227, linktype: ip, length: 68
source: 10.1.2.2, destination: 171.68.56.138, id: 0xFCCF, ttl: 31,
TOS: 0 prot: 17, source port 49608, destination port 49608
29
RSVP (Resource Reservation Protocol)
• Permet aux utilisateurs d’applications multimedia de
réserver des ressources réseaux afin de se voir garantir
une qualité de service de bout en bout.
• Permet la cohabitation d’applicatifs multimedia et de flux
sporadiques mais non prioritaires.
This app needs
1 Mbps BW and
200 msec delay
Reserve 1
Mbps BW
on this line
I need 1 Mbps
BW and 200
msec delay Reserve 1
Mbps BW
on this line
30
RSVP Transport & WFQ
RSVP
All Routers
• WFQ applied per flow
based on RSVP requests
31
Resource Reservation
Protocol (RSVP)
Works in Conjunction with Weighted Fair Queuing
Configurable Queues Reserved Queue
Reserved
for Flow, Lower
Packet
Weight applied
1 to Queue
2
2 1
2 De-
1
queue
!
interface Serial0/0
ip address 10.1.0.1 255.255.0.0
ip rsvp bandwidth 56 30
ip policy route-map testprec
bandwidth 128
fair-queue 64 256 1000
!
33
Verifying Reservation Accepted
34
Monitoring Queue Operation
bottom#sho que se 0
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 44/64/0 (size/threshold/drops)
Conversations 3/5 (active/max active)
Reserved Conversations 1/1 (allocated/max allocated)
(depth/weight/discards/interleaves) 21/4096/0/0
Conversation 195, linktype: ip, length: 1504
source: 10.1.2.2, destination: 171.68.56.138, id: 0xD5E8, ttl: 31,
TOS: 0 prot: 6, source port 1503, destination port 1045
(depth/weight/discards/interleaves)
weight 22/4/0/0
Conversation 264, linktype: ip, length: 68
source: 10.1.2.2, destination: 171.68.56.138, id: 0xAFE9, ttl: 31,
TOS: 0 prot: 17, source port 49608, destination port 49608
35
Multilink-PPP
Fragmentation & Entrelacement
Voice 2 Voice 1 Jumbogram
RTP-HC
2 2 2
2 2 1 2
1 2 De-
queue
Non-RTP
Small Large Classify
Volume/Size Volume/Size
Packet Packet
Transmit
Interface Buffer Scheduling
Resources
Flow Classification
Weighted Fair or Reserved Scheduling
•Source and Destination Address
•Protocol
•Session Identifier (Port/Socket)
309-E
1171_04F8_c1 37
Configuring Multilink PPP
Fragmentation and Interleave
Bottom Top
(depth/weight/discards/interleaves)
interleaves 22/4096/0/2534
Conversation 195, linktype: ip, length: 1502
source: 10.1.2.2, destination: 171.68.56.138, id: 0x2DB0, ttl: 31,
TOS: 0 prot: 6, source port 1503, destination port 1045
(depth/weight/discards/interleaves)
weight 1/128/0/0
128
Conversation 264, linktype: ip, length: 66
source: 10.1.2.2, destination: 171.68.56.138, id: 0xF4B0, ttl: 31,
TOS: 0 prot: 17, source port 49608, destination port 49608
40
Utilisation de RTP et C-RTP
• RTP : Real Time Protocol
Protocole mieux adapté que TCP pour les
trafics “Temps Réel”
• C-RTP : Compressed RTP (link protocol)
Echantillon de 20ms @ 8kbit/s = 20 octets de payload
Transporté avec :
entête IP de 20 octets
+ entête UDP de 8 octets
+ entête RTP de 12 octets
41
Commentaire
Configuration
3620 3620
V 1/1/0
Paris NY V 1/1/0
.1 .2
Backbone IP
40.0.0.0
4321 1234
hostname Paris hostname NY
Media encps.
(H.261, MPEG
TCP UDP
IPv4, IPv6
45
VOICE
SGCP layering FR ATM IP
Services Plane
IN Service Logic
AAA, Service
Number and Address Resolution Logic
Interworking
Call Control Plane Tool Set
Signaling & Call Control
Service Access Function
Switch-Based Service Logic Call
End to End Voice Services Logic
46
VOICE
SGCP FR ATM IP
Simple Gateway Control
Protocol
• Simple Gateway
• External Call Agent
• Simple and reliable protocol between
Gateway and Call Agent
• Complementary with H.323/SIP
• Network protocol independent
47
VOICE
• Create Connection
• Modify Connection
• Delete Connection
• Notification Request
• Notify
48
VOICE
• Stateless
• Transaction base (Every request
acknowledged)
• Transmission over UDP
• SDP for multimedia conference
• First version addresses VoIP
• Extension to Dial and ATM
49
SGCP VoIP Call Setup VOICE
Call Agent
Call Agent FR ATM IP
Setup
Call Proceeding
Create Conn.
ACK
IAM
Create Conn.
Session Negotiation
ACK
Setup
ACM Alerting
Modify Conn.
ACK Connect
ANM
Connect
50
SGCP VoIP Call Clear VOICE
Transpath
Transpath
Virtual Switch
FR ATM IP
Virtual Switch
Controller Controller
Disconnect
Delete
Delete Ack
REL
Delete
Delete_ack
Release
Release Compl
RLC
Release
Release_Compl
51