Introduction To Multimedia Networking
Introduction To Multimedia Networking
Networking
Questions
Raj Jain
Washington University in Saint Louis
Saint Louis, MO 63130
[email protected]
Audio/Video recordings of this lecture are available on-line at:
http://www.cse.wustl.edu/~jain/cse473-20/
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-1
Overview Questions
Multimedia Networking Applications
Skype
Real-Time Transport Protocol (RTP)
Session Initiation Protocol (SIP)
buffered
video
delay
client application
client
video server buffer, size B
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-7
Streaming Using UDP
Server sends at rate appropriate for client
Questions
Often: Send rate = Encoding rate = Constant
Transmission rate can be oblivious to congestion levels Why might firewalls block
UDP streaming?
Short playout delay (2-5 seconds) to remove network jitter Why cant UDP
Application level error recovery prefetch/buffer? In general
given that video streaming
UDP may not go through firewalls ~ 80% of internet traffic
why does it seem so
unoptimized?
Why do firewalls block
UDP and not TCP? Do most
personal computers’
firewalls just leave that
port open or how would
the typical person’s firewall
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain allow streaming?
9-8
Streaming Using HTTP
Multimedia file retrieved via HTTP GET
Questions
Send at maximum possible rate under TCP
Variable Just to verify, if
rate, x(t) playout begins at
Video TCP send
t=8, for the very 1st
TCP receive Application
file buffer buffer playout buffer packet, is it arriving
Server Client in time? Or, does it
have to begin at t=9
Fill rate fluctuates due to TCP congestion control,
retransmissions (in-order delivery) (also for the very
1st packet)?
Larger playout delay to smooth TCP delivery rate
HTTP/TCP passes more easily through firewalls
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-9
Review
Multimedia Applications
Ref: Section 9.1 and 9.2, Review Questions R1-R8, Problems P1-P5
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-10
Overview Voice Over IP
7
Questions
6
Packets
Login server
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-19
P2P voice-over-IP: Skype
Skype client operation:
1. Joins Skype network by Questions
contacting SN (IP address Can you explain the
relationship between NATs and
cached) using TCP firewalls?
2. Logs-in: Username, Skype
login server
From the book: "Alice’s and
Bob’s super peers then instruct
password to centralized Alice and Bob respectively to
initiate a session with he relay.
Skype login server As shown in Figure 9.7, Alice
then sends voice packets to the
3. Obtains IP address for relay over the Alice-to-relay
connection (which was
callee from SN, SN overlay initiated by Alice), and the
relay then forwards these
4. Initiate call directly to packets over the relay-to-Bob
callee via SN connection (which was
initiated by Bob);"
The book seems to indicate
that when connection is setup
via relay the two hosts never
actually connect directly. The
lecture seemed to say the SN
where used so that the two
could establish a direct
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain connection. Which is it?
9-20
Skype: Super Nodes as Relays
Problem: both Alice, Bob are
behind “NATs” Questions
NAT prevents outside peer from
initiating connection to inside
peer
Inside peer can initiate
connection to outside
Relay solution: Alice, Bob
maintain open connection to their
SNs
Alice signals her SN to connect
to Bob
Alice’s SN connects to Bob’s
SN
Bob’s SN connects to Bob over
open connection Bob initiated
Invite Jain@acm
between the two clients. (There is also an SIP
acknowledgment message, which is not
shown.)"
Ack Jain@acm What is this box with dashed line Jain@cis? Is
it just a server that does not have SIP server?
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-28
SIP Proxy
Questions
SIP Invite
SIP Trying SIP Invite For last two actions
SIP 180 Ringing SIP 180 Ringing "SIP Bye" and "SIP
OK":
SIP 200 OK SIP 200 OK The slides shows
SIP Ack SIP Ack "Bye" from right to left
& "OK" from left to
Conversation using RTP right. Can it be
reverse? i.e., "Bye"
SIP Bye SIP Bye from left to right &
SIP OK SIP OK "OK" from right to
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain left?
9-29
H.323 Protocols
Multimedia over LANs, V1 (June 96), V2(Feb 98)
Provides component descriptions, signaling Questions
procedures, call control, system control, audio/video So are the protocols
codecs, data protocols listed under "Video"
Video Audio Control and Management Data and "Audio" header
only video and audio
G.711, G.722, H.225.0 H.225.0 H.245 T.124
H.261 RTCP protocols (not
G.723.1, G.728, RAS Signaling Control
H.263 network), and then the
G.729
protocols under
RTP X.224 Class 0 T.125 "Control and
UDP TCP T.123 Management" and
Network (IP)
"Data" network
Datalink (IEEE 802.3)
protocols?
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-30
Review
Protocols for Real-Time Applications
Scheduling 6
8 Routing
Buffer Mgmt
9 Traffic Monitoring 7
Drop Policies
Washington University in St. Louis
and feedback
http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-33
QoS Components (Cont)
1. Signaling: Users need to tell/negotiate their QoS requirements with
the network
2. Admission Control: Network can deny requests that it can not meet Questions
3. Shaping: Traffic is smoothed out so that it is easier to handle From the book: "When
4. Policing: Ensuring that the users are sending at the rate they agreed demand increases are
to forecasted, the ISPs deploy
5. Marking/Classification: Packets are classified based on the source, additional bandwidth and
destination, TCP ports (application) switching capacity to continue
to ensure satisfactory delay
6. Scheduling: Different flows get appropriate treatment and packet-loss performance"
7. Drop Policies: Low priority packets are dropped. Do they change the protocols
to ones that are more fit for
8. Routing: Packets are sent over paths that can meet the QoS high demand but worse for
9. Traffic Management: Sources may be asked to reduce their rates to normal cases? If not why do
meet the loss rate and delay guarantees they not always operate at full
capacity?
Shaper
Arriving traffic Leaving traffic with
with undesired desired characteristics
characteristics
The network must protect well behaving users against Can you give an example of users violating the
traffic contract?
such traffic violations Is the flow shaped and policed at the same time
by the token bucket?
Policing functions are deployed at the edge (entry) of From the book: "The call admission process
described above requires that a call be able to
the network Conforming traffic reserve sufficient resources at each and every
network router on its source-to-destination path
admitted into network to ensure that its end-to-end QoS requirement is
met. Each router must determine the local
resources required by the session, consider the
Policer amounts of its resources that are already
committed to other ongoing sessions, and
Arriving traffic determine whether it has sufficient resources to
satisfy the per-hop QoS requirement of the
session at this router without violating local
Non-conforming QoS guarantees made to an already- admitted
session." How is routing table (path)
traffic (dropped) recalculation handled. Is path recalculated and
QOS guarantees rechecked or if a router has
packets with guarantees is it forbidden from
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain recalculating paths relating to that traffic?
9-37
Peak Rate Policing with Leaky
Bucket
Enforces sustained rate and maximum
burst size Incoming Questions
Packets
Requires only one counter When do counters get
decremented? when packet
counter is decremented, to a leaves?
minimum of zero, at the avg rate Rejected
Is token bucket = leaky bucket?
counter is incremented by one, to a Are the rejected packets resent?
maximum of a limiting value, for each Can you explain how the token
packet arrival bucket can police the peak rate?
Does the conforming traffic get a
An arriving packet is non-conforming if token, and the non-conforming
counter is at its limit Accepted ones don't?
For the counter, is it
"decremented" and "incremented"
at the same time? This is
confusing.
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-38
Fair Queueing
Questions
S For Fair Queueing:
Would it be correct to
say that only one flow is
served at a time, and
Bit-level round robin but packet level scheduling within that flow
faster/smaller packets are
Count the packet size and determine which packet scheduled before the
would finish first. Serve that packet. others? Trying to
understand the second
Each flow gets the same number of bits/sec bullet point.
Fair queuing: Does
bits/sec include size of
header fields or only
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain payload?
9-39
Weighted Fair Queueing (WFQ)
Questions
S With weighted fair queuing,
do we transfer all three
queues at different rates at
the same time? Or do we
Fair queueing with different weight for each queue transfer queue with the
highest weights first
Flow 1 gets x bit/sec
What are the different
Flow 2 gets y bit/sec usages for fair queuing and
weighted fair queuing?
Flow n gets z bit/sec If x = 0.5, I am currently
Here, x, y, z are weights interpreting the slide "Flow
1 gets x bit/sec" to be
"Flow 1 gets 0.5 bit/sec" is
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain this right?
9-40
Maximum Delay with WFQ and Policing
Max Delay dmax = bi/(R wi/Σ wj)
Here, Questions
bi=Burst size of ith flow
To clarify, sigma W_j
R=Service Rate means the sum of every
Wi=Weight of ith flow packet's weight?
Do higher weights have
arriving token rate, r higher priority because a
traffic lower weight corresponds
bucket size, b to a larger maximum
delay? If not, can you
per-flow explain the weight to
rate, R maximum delay
WFQ relationship once more?
is average rate: r * R *
D = b/R (W_i / SUM(W))?
max
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-41
Differentiated Services
Ver Hdr Len Precedence ToS Unused Tot Len Questions
4b 4b 3b 4b 1b 16b
1) Is it correct to say that
something like WFQ +
DSCP ECN leaky bucket is an
6b 2b example of an
IPv4: 3-bit precedence + 4-bit ToS implementation for DS?
OSPF and integrated IS-IS can compute paths for each ToS 2) Is MPLS an example
of DS or QoS
Many vendors use IP precedence bits but the service varies
⇒ Need a standard ⇒ Differentiated Services What does "Tot" stand
for in "Tot Len"?
Edge routers can mark the packets ⇒ Set ToS field
Core routers use ToS field to provide "Per-Hop-Behavior"
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-42
Per-hop Behaviors
In PHB Out Questions
PHB Group
Four Classes: No particular ordering
Three drop preference per class
Questions
Ref: Section
Washington 9.5, Problems
University in St. P17-P22
Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-48
Summary
Questions
Questions
Raj Jain
http://rajjain.com
http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm
Washington University in St. Louis http://www.cse.wustl.edu/~jain/cse473-20/i_9mmn.htm ©2020 Raj Jain
9-53
Related Modules
CSE 567: The Art of Computer Systems Performance Analysis
https://www.youtube.com/playlist?list=PLjGG94etKypJEKjNAa1n_1X0bWWNyZcof
Questions
CSE473S: Introduction to Computer Networks (Fall 2011),
https://www.youtube.com/playlist?list=PLjGG94etKypJWOSPMh8Azcgy5e_10TiDw