Documentos de Académico
Documentos de Profesional
Documentos de Cultura
VoIP
Codificación Decodificación
Empaquetado Desempaquetado
Red de paquetes IP
(Internet, MPLS)
PSTN
Cable Modem
Gateway
Gateway
INTERNET
Acceso Internet
Dedicado
UDP Mux
Datagrama UDP
Nivel IP
Identificar el tipo de
Tipo de carga útil
información recibida
(7 bits)
(ej.: audio G.722)
Ordenar datagramas
Número de secuencia
recibidos,
(16 bits)
detectar perdidos
Reproducir en el
Timestamp
instante adecuado,
(32 bits)
sincronizar audio y vídeo
Paquetes perdidos
Más del 1% al 5% perceptible.
Intranet típica <.1%, Internet <4% a 100%
Causa principal: congestión de la red.
Additional latency due to tradeoff of packet size vs. header overhead vs. power.
Header overhead doesn’t directly affect latency for high speed links (>1Mb/s) but does so indirectly in
that more bandwidth is used. Coupled with other traffic, a congested network results that cause delay
in accessing or result in lost packets.
58 bytes (464 bits) of header overhead using wired Ethernet VoIP
Robust Header Compression (RHC) can reduce this to 20 bytes
78 bytes (624 bits) using 802.11 wireless Ethernet of header overhead in VoIP
When power must be saved for battery life issues, the only solution is to increase the voice sample
size from, for example, 10 msec to 40 msec, then pushing this accumulated data over a high speed
link in something under 5 msec, and finally putting the device into a power save mode for 35 msec.
Increasing the voice sample size from 10 msec to 40 msec directly increases latency to 40 msec. You have to
accumulate the entire set o samples before it can be packetized!
Jitter is converted to latency through the use of a “jitter buffer”. Data is accumulated in the
jitter buffer for the maximum expected arrival time for the packet. This time adds directly to
latency.
If one doesn’t wait for a long enough time, packets will be lost (but latency will be less)
Cuando se debe ahorrar energía debido a problemas de duración de la batería, la única solución es aumentar el tamaño de
la muestra de voz, por ejemplo, de 10 ms a 40 ms, y luego empujar estos datos acumulados sobre un enlace de alta
velocidad en algo inferior a 5 ms, y finalmente poner el dispositivo en un modo de ahorro de energía durante 35 ms.
Aumentar el tamaño de la muestra de voz de 10 ms a 40 ms directamente aumenta la latencia a 40 ms. ¡Debe acumular todo el
conjunto de muestras antes de poder empaquetar!
iLBC 15 kbps
G.711 64 kbps
G.729 8 kbps
Transcoding
While it is possible to transcode between standards, it is almost
never a good idea. Audio quality is lost!
Transcoding also introduces latency
Packet
Voice
LAN
IP
WAN
Router Router
Gateway
Sitio Remoto
DNS Location
Server Server
DNS
Registrar
SIP
Outgoing Incoming
Proxy Proxy
SIP SIP SIP
SIP
Originating Terminating
User Agent RTP User Agent
11/24/2019 11:58 p. m. 42
TRAFICO Y CONMUTACION
SIP Triangular
DNS Location
Server Server
DNS Servidor de
Registro
Incoming
Proxy
SIP SIP SIP
SIP
Originating Terminating
User Agent RTP User Agent
11/24/2019 11:58 p. m. 43
TRAFICO Y CONMUTACION
SIP Peer to Peer
SIP
Originating Terminating
User Agent RTP User Agent
11/24/2019 11:58 p. m. 44
TRAFICO Y CONMUTACION
Mensajes SIP
11/24/2019 11:58 p. m. 45
TRAFICO Y CONMUTACION
Respuestas SIP
11/24/2019 11:58 p. m. 46
TRAFICO Y CONMUTACION
Flujo SIP básico
User User
A B
“Calls”
INVITE: sip:18.18.2.4
18.18.2.4
200 - OK Answers
ACK
Hangs up BYE
200 - OK
11/24/2019 11:58 p. m. 47
TRAFICO Y CONMUTACION
SIP Invite
INVITE sip:e9-airport.mit.edu SIP/2.0
To: sip:e9-airport.mit.edu
Call-Id: call-1096504121-2@18.10.0.79
Cseq: 1 INVITE
Content-Type: application/sdp
Content-Length: 304
Accept-Language: en
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE
11/24/2019 11:58 p. m. 48
TRAFICO Y CONMUTACION
SDP (Session Description Protocol)
IETF RFC 2327
"SDP está diseñado para describir sesiones multimedia
con el propósito de anunciar la sesión, invitar a la sesión
y otras formas de inicio de sesión multimedia".
SDP incluye:
El tipo de media (video, audio, etc.)
El protocolo de transporte (RTP / UDP / IP, H.320, etc.)
El formato de los medios (video H.261, video MPEG, etc.)
Información para recibir esos medios (direcciones, puertos,
formatos, etc.)
11/24/2019 11:58 p. m. 49
TRAFICO Y CONMUTACION
SDP (Session Description Protocol)
v=0
s=phone-call
t=0 0
a=rtpmap:96 eg711u/8000/1
a=rtpmap:97 eg711a/8000/1
a=rtpmap:0 pcmu/8000/1
a=rtpmap:8 pcma/8000/1
a=rtpmap:18 g729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:98 telephone-event/8000/1
11/24/2019 11:58 p. m. 50
TRAFICO Y CONMUTACION
Flujo SIP - Registro
User Registrar Location
B MIT.EDU MIT.EDU
REGISTER: sip:dbaron@MIT.EDU
401 - Unauthorized
11/24/2019 11:58 p. m. 51
TRAFICO Y CONMUTACION
Flujo SIP – Vía Proxy
User Proxy User
A MIT.EDU B
“Calls” dbaron
INVITE: sip:dbaron@MIT.EDU
@MIT.EDU
INVITE: sip:dbaron@18.18.2.4
100 - Trying
180 - Ringing Rings
180 - Ringing
200 - OK Answers
200 - OK
ACK
Hangs up BYE
200 - OK
11/24/2019 11:58 p. m. 55
TRAFICO Y CONMUTACION
Flujo SIP – Via Gateway
User Proxy Gatew ay
A MIT.EDU 30161
“Calls” joe
INVITE: sip:joe@MIT.EDU
@MIT.EDU
INVITE: sip:38400@18.162.0.25
100 - Trying Rings
180 - Ringing
180 - Ringing
Answers
200 - OK
200 - OK
ACK
ACK
Hangs up BYE
BYE
200 - OK
200 - OK
11/24/2019 11:58 p. m. 56
TRAFICO Y CONMUTACION
Estándares SIP
11/24/2019 11:58 p. m. 58
TRAFICO Y CONMUTACION
Estándares SIP
11/24/2019 11:58 p. m. 59
TRAFICO Y CONMUTACION
11/24/2019 11:58 p. m. TRAFICO Y CONMUTACION 60