Chap2 PartI
Chap2 PartI
Chapter 2
Internet Overview
A collection of networks
The private networks
LANs, WANs
Institutions, corporations, business and government
May use various communication protocols
The public networks
ISP: Internet Service Providers
Using Internet Protocol
To connect to the Internet
Using IP
Internet Telephony 2
Interconnecting Networks
Internet Telephony 3
Overview of the IP Protocol Suite
IP
A routing protocol for the passing of data packets
Must work in cooperation with higher layer protocols
and lower-layer transmission systems
The OSI seven-layer model
The top layer: useable information to be passed to
the other side
The information must be
Packaged appropriately
Routed correctly
And it must traverse some physical medium
Internet Telephony 4
OSI Model [1/3]
Physical layer
The physical media
Coding and modulation schemes for 1’s and 0’s
Data link layer
Transport the information over a single link
Frame packaging, error detection/correction and
retransmission
Network layer
Routing traffic through a network
Passing through intermediate points
Internet Telephony 5
OSI Model [2/3]
Transport layer
Ensure error-free, omission-free and in-sequence
delivery
Support multiple streams from the source to
destination for applications
Session layer
The commencement (e.g., login) and completion
(e.g., logout) of a session between applications
Establish the dialogue
One way at a time or both ways at the same time
Internet Telephony 6
OSI Model [3/3]
Presentation layer
Specify the language, the encoding and so on
Application layer
Provide an interface to the user
File transfer programs and web browsers
Internet Telephony 7
The IP suite and the OSI stack
TCP
Reliable, error-free, in-sequence delivery
UDP
No sequencing, no retransmission
Internet Telephony 8
Internet Standards and the Process
Internet Telephony 9
Internet Standards and the Process
IAB
The Internet Architecture Board
The technical advisory group
Providing technical guidance to Internet Society
Overseeing the Internet standards process
IETF
The Internet Engineering Task Force
Comprising a huge number of volunteers
Equipment vendors, network operators, research institutions
etc.
Developing Internet standards
Detailed technical work
Working groups
megaco, iptel, sip, sigtran
Internet Telephony 10
Internet Standards and the Process
IESG
The Internet Engineering Steering Group
Managing the IETF’s activities
Approving an official standard
IANA
The Internet Assigned Numbers Authority
Unique numbers and parameters used in Internet
standards
Be registered with the IANA
Internet Telephony 11
The Internet Standards Process
The process
RFC 2026
First, Internet Draft
The early version of spec.
Can be updated, replaced, or made obsolete by
another document at any time
IETF’s Internet Drafts directory
Six-month life-time
Internet Telephony 12
The Internet Standards Process
RFC
Request for Comments
An RFC number
Proposed standard
A stable, complete, and well-understood spec.
Has garnered significant interest
Draft standard
Two independently successful implementations
Interoperability be demonstrated
Internet Telephony 13
The Internet Standards Process
A standard
The IESG is satisfied
The spec. is stable and mature
Significant operational experience
A standard (STD) number
Not all RFCs are standards
Some document Best Current Practices (BCPs)
Processes, policies, or operational considerations
Others applicability statements
How a spec be used, or different specs work together
Internet Telephony 14
IP
RFC 791
Amendments: RFCs 950, 919, and 920
Requirements for Internet hosts: RFCs 1122, 1123
Requirements for IP routers: RFC 1812
IP datagram
Data packet with an IP header
Best-effort protocol
No guarantee that a given packet will be delivered
Internet Telephony 15
IP Header [1/2]
Version 4
Header Length
Type of Service
Total Length
Identification, Flags, and Fragment Offset
A datagram can be split into fragments
Identify data fragments
Flags
a datagram can be fragmented or not
Indicate the last fragment
TTL
A number of hops (not a number of seconds)
Internet Telephony 16
IP Header [2/2]
Protocol
The higher-layer protocol
TCP (6); UDP (17)
Source and Destination IP Addresses
Internet Telephony 17
IP Routing
Internet Telephony 18
Populating Routing Tables
Issues
The correct information in the first place
Keep the information current in a dynamic
environment
The best path?
Protocols
OSPF (Open Short Path First)
An AS (Autonomous System) is a group of routers that
share routing information between them.
Area 0: backbone area
Border router
BGP (Border Gateway Protocol)
Internet Telephony 19
OSPF Areas
Internet Telephony 20
TCP
Internet Telephony 22
The TCP Header [2/5]
Internet Telephony 23
The TCP Header [3/5]
Sequence and acknowledge numbers
Identify individual segments
Actually count data octets transmitted
A given segment with a SN of 100 and contains 150 octets
of data
The ack number will be 250
The SN of the next segment is 250
Other header fields
Data offset: header length (in 32-bit words)
URG: 1 if urgent data is included, use urgent pointer field
ACK: 1, an ACK
PSH: a push function, be delivered promptly
Internet Telephony 24
The TCP Header [4/5]
Internet Telephony 25
The TCP Header [5/5]
Urgent Pointer
An offset to the first segment after the urgent
data
Indicates the length of the urgent data
Critical information to be sent to the user
application ASAP
Internet Telephony 26
TCP Connections
An example
After receiving
100, 200, 300
ACK 400
Closing a connection
Æ FIN
Å ACK, FIN
Æ ACK
Internet Telephony 27
UDP
User Datagram Protocol
Pass individual pieces of data from an application to IP
No ACK, inherently unreliable
Applications
A quick, on-shot transmission of data, request/response
DNS
If no response, the AP retransmits the request
The AP includes a request identifier
The source port number is optional
Checksum
Internet Telephony 28
Voice over UDP, not TCP
Speech
Small packets, 10 – 40 ms
Occasional packet loss is not a catastrophe
Delay-sensitive
TCP: connection set-up, ack, retransmit → delays
5 % packet loss is acceptable if evenly spaced
Resource management and reservation techniques
A managed IP network
In-sequence delivery
Mostly yes
UDP was not designed for voice traffic
Internet Telephony 29
The Real-Time Transport Protocol
A companion protocol
Exchange messages between session users
# of lost packets, delay and inter-arrival jitter
Quality feedback
RTCP is implicitly open when an RTP session
is open
E.g., RTP/RTCP uses UDP port 5004/5005
Internet Telephony 31
RTP Payload Formats [1/2]
Internet Telephony 32
RTP Payload Formats [2/2]
Internet Telephony 34
The RTP Header [1/4]
Version (V)
2
Padding (P)
The padding octets at the end of the payload
The payload needs to align with 32-bit boundary
The last octet of the payload contains a count of
the padding octets.
Extension (X)
1, contains a header extension
Internet Telephony 35
The RTP Header [2/4]
Internet Telephony 36
The RTP Header [3/4]
Timestamp
32-bit
The instant at which the first sample
The receiver
Synchronized play-out
Calculate the jitter
The clock freq depends on the encoding
E.g., 8000Hz
Support silence suppression
The initial timestamp is a random number chosen by the
sending application.
Internet Telephony 37
The RTP Header [4/4]
Synchronization Source (SSRC)
32-bit identifier
The entity setting the sequence number and timestamp
Chosen randomly, independent of the network address
Meant to be globally unique within a session
May be a sender or a mixer
Contributing Source (CSRC)
An SSRC value for a contributor
0-15 CSRC entries
RTP Header Extensions
Internet Telephony 38
Mixers and Translators
Mixers
Enable multiple media
streams from different
sources to be combined into
a single stream
If the capacity or
bandwidth of a participant
is limited
An audio conference
The SSRC is the mixer
More than one CSRC values
Translators
Manage communications
between entities that does
not support the same
coding scheme
The SSRC is the participant,
not the translator.
Internet Telephony 39
The RTP Control Protocol [1/3]
RTCP
A companion control protocol of RTP
Periodic exchange of control information
For quality-related feedback
A third party can also monitor session quality and
detect network problems.
Using RTCP and IP multicast
Five types of RTCP packets
Sender Report: transmission and reception statistics
Receiver Report: reception statistics
Internet Telephony 40
The RTP Control Protocol [2/3]
BYE
The end of a participation in a session
APP
For application-specific functions
Internet Telephony 41
The RTP Control Protocol [3/3]
Two or more RTCP packets will be combined
SRs and RRs should be sent as often as possible to allow
better statistical resolution.
New receivers in a session must receive CNAME very
quickly to allow a correlation between media sources and
the received media.
Every RTCP packet must contain a report packet (SR/RR)
and an SDES packet
Even if no data to report
An example RTP compound packet
Internet Telephony 42
RTCP Sender Report
SR
Header Info
Sender Info
Receiver Report Blocks
Option
Profile-specific extension
Internet Telephony 43
Header Info
Internet Telephony 44
Sender Info
SSRC of sender
NTP Timestamp
Network Time Protocol Timestamp
The time elapsed in seconds since 00:00, 1/1/1900 (GMT)
64-bit
32 MSB: the number of seconds
32 LSB: the fraction of a seconds (200 ps)
RTP Timestamp
Corresponding to the NTP timestamp
The same as used for RTP timestamps
For better synchronization
Sender’s packet count
Cumulative within a session
Sender’s octet count
Cumulative within a session
Internet Telephony 45
RR blocks [1/2]
SSRC_n
The source identifier of the session participant to which the
data in this RR block pertains.
Fraction lost
Fraction of packets lost since the last report issued by this
participant
By examining the sequence numbers in the RTP header
Cumulative number of packets lost
Since the beginning of the RTP session
Extended highest sequence number received
The sequence number of the last RTP packet received
16 lsb, the last sequence number
16 msb, the number of sequence number cycles
Internet Telephony 46
RR blocks [2/2]
Interarrival jitter
An estimate of the variance in RTP packet arrival
Last SR Timestamp (LSR)
The middle 32 bits of the NTP timestamp used in
the last SR received from the source in question
Used to check if the last SR has been received
Delay Since Last SR (DLSR)
The duration in units of 1/65,536 seconds
Internet Telephony 47
RTCP Receiver Report
RR
Issued by a participant who receives RTP packets
but does not send, or has not yet sent
Is almost identical to an SR
PT = 201
No sender information
Internet Telephony 48
RTCP Source Description Packet
Internet Telephony 49
RTCP BYE Packet
Indicate one or more media sources are no longer
active
Application-Defined RTCP Packet
For application-specific data
For non-standardized application
Internet Telephony 50
Calculating Round-Trip Time
Internet Telephony 51
Calculation Jitter
Internet Telephony 52
Timing of RTCP Packets
RTCP provides useful feedback
Regarding the quality of an RTP session
Delay, jitter, packet loss
Be sent as often as possible
Consume the bandwidth
Should be fixed at 5%
An algorithm, RFC 1889
Senders are collectively allowed at least 25% of
the control traffic bandwidth.
The interval > 5 seconds
0.5 – 1.5 times the calculated interval
A dynamic estimate the avg. RTCP packet size
Internet Telephony 53
IP Multicast
Internet Telephony 54