Advance Computer Networks Lecture#11& 12 Instructor: Engr. Muhammad Mateen Yaqoob.

Slides:



Advertisements
Similar presentations
1 Wireless and Mobile Networks Part 2 November 25, 2008 Department of Electrical and Computer Engineering University of Western Ontario ECE 436a Networking:
Advertisements

Chapter 6: Multimedia Networking
RTP: A Transport Protocol for Real-Time Applications Provides end-to-end delivery services for data with real-time characteristics, such as interactive.
CSE534 Fundamentals of Computer Networks Lecture 15: Multimedia networking Based on slides by Kurose + Ross. Updated by P Gill. Spring 2015 Computer Networking:
Wireless, Mobile Networks – Mobility. Wireless, Mobile Networks6-2 Mobility: Vocabulary home network: permanent “home” of mobile (e.g., /24)
User Control of Streaming Media: RTSP
Presented by: Yuvraj Khadke CISC 856: TCP/IP and Upper Layer Protocols 11/29/2012 Credits to: Christopher Thorpe, Varsha Mahadevan, Kevin Jeffay, James.
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time, Interactive Multimedia: Internet.
Cellular and Mobile Wireless Networks (part 2) Advanced Computer Networks.
What we will cover… Home Networking: Network Address Translation (NAT) Mobile Routing.
7: Multimedia Networking7-1 Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video (“continuous media”) network provides.
Chapter 6: Multimedia Networking
ICMP: Internet Control Message Protocol used by hosts, routers, gateways to communication network-level information –error reporting: unreachable host,
1 CSE 401N Multimedia Networking Lecture Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video network provides.
Streaming Media. Unicast Redundant traffic Multicast One to many.
7: Multimedia Networking7-1 Chapter 7 Multimedia Networking A note on the use of these ppt slides: We’re making these slides freely available to all (faculty,
Multimedia Applications r Multimedia requirements r Streaming r Phone over IP r Recovering from Jitter and Loss r RTP r Diff-serv, Int-serv, RSVP.
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 1. RTP/RTCP.
1 Elements of a wireless network network infrastructure wireless hosts r laptop, PDA, IP phone r run applications r may be stationary (non- mobile) or.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Network Layer4-1 Router Architecture Overview Two key router functions: r run routing algorithms/protocol (RIP, OSPF, BGP) r switching datagrams from incoming.
Multimedia Communications over the Internet. IP Packet-Switching Networks Packet-switching protocols based on the Internet Protocol (IP) generally consist.
12-1 Last time □ BGP policy □ Broadcast / multicast routing ♦ Spanning trees Source-based, group-shared, center-based ♦ Reverse path forwarding, pruning.
Chapter 7 Multimedia Networking Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use.
CS640: Introduction to Computer Networks
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
Multimedia and QoS#1#1 Multimedia Applications. Multimedia and QoS#2#2 Multimedia Applications r Multimedia requirements r Streaming r Recovering from.
Ch 7. Multimedia Networking Myungchul Kim
Advance Computer Networks Lecture#14
Lecture 4 Mobility Overview.
Mobile IP Overview and Discussion. 2 Spectrum of Mobility – from network perspective no mobility high mobility mobile user, using same access point mobile.
7: Multimedia Networking7-1 Chapter 7 Multimedia Networking A note on the use of these ppt slides: We’re making these slides freely available to all (faculty,
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 4: Multimedia.
Chapter 5: Summary r principles behind data link layer services: m error detection, correction m multiple access protocols m link layer addressing, ARP.
1 Multimedia Communication Multimedia Systems(Module 5 Lesson 2) Summary: r Internet Phone Example m Making the Best use of Internet’s Best-Effort Service.
Chapter 6 Wireless and Mobile Networks Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Wireless,
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Multimedia, Quality of Service: What is it?
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Beyond Best-Effort Service Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot November 2010 November.
Making the Best of the Best-Effort Service (2) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
Multimedia networking: outline 7.1 multimedia networking applications 7.2 streaming stored video 7.3 voice-over-IP 7.4 protocols for real-time conversational.
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
Part 2: Making the Best of Best-Effort
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Location management. Mobile Switching Center Public telephone network, and Internet Mobile Switching Center Components of cellular network architecture.
Internet multimedia: simplest approach audio, video not streamed: r no, “pipelining,” long delays until playout! r audio or video stored in file r files.
Network Layer4-1 Today Collect homework New homework: Ch4 #16,19,21-24,26,27,29,31 (half graded, as usual) Due Wednesday Oct 15 in class Final programming.
Ch 6. Multimedia Networking Myungchul Kim
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Summary: Internet Multimedia: bag of tricks r use UDP to avoid TCP congestion control (delays) for time-sensitive traffic r client-side adaptive playout.
Ch 6. Multimedia Networking Myungchul Kim
Accommodating mobility with direct routing
Mobility CPE 401/601 Computer Network Systems slides are modified from Jim Kurose & Keith Ross All material copyright J.F Kurose and K.W. Ross,
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 4: Multimedia.
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
7: Multimedia Networking7-1 protocols for real-time interactive applications RTP, RTCP, SIP.
Prof. Younghee Lee 1 1 Computer Networks u Lecture 11: Mobility Prof. Younghee Lee * Some part of this teaching materials are prepared referencing the.
Chapter 7 Multimedia Networking
Session 7 INST 346 Technologies, Infrastructure and Architecture
DMET 602: Networks and Media Lab
CPE 401/601 Computer Network Systems
RTP: A Transport Protocol for Real-Time Applications
Multimedia networking: outline
DMET 602: Networks and Media Lab
Multimedia networking: outline
Streaming multimedia CS 352, Lecture 22
Presentation transcript:

Advance Computer Networks Lecture#11& 12 Instructor: Engr. Muhammad Mateen Yaqoob

Mateen Yaqoob Department of Computer Science What is mobility?  spectrum of mobility, from the network perspective: no mobility high mobility mobile wireless user, using same access point mobile user, passing through multiple access point while maintaining ongoing connections ( like cell phone) mobile user, connecting/ disconnecting from network using DHCP.

wide area network Mateen Yaqoob Department of Computer Science Mobility: vocabulary home network: permanent “home” of mobile (e.g., /24) permanent address: address in home network, can always be used to reach mobile e.g., home agent: entity that will perform mobility functions on behalf of mobile, when mobile is remote

Mateen Yaqoob Department of Computer Science Mobility: more vocabulary wide area network care-of-address: address in visited network. (e.g., 79, ) visited network: network in which mobile currently resides (e.g., /24) permanent address: remains constant ( e.g., ) foreign agent: entity in visited network that performs mobility functions on behalf of mobile. correspondent: wants to communicate with mobile

Mateen Yaqoob Department of Computer Science Mobility: approaches  let routing handle it: routers advertise permanent address of mobile-nodes-in-residence via usual routing table exchange.  routing tables indicate where each mobile located  no changes to end-systems  let end-systems handle it:  indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote  direct routing: correspondent gets foreign address of mobile, sends directly to mobile

Mateen Yaqoob Department of Computer Science  let routing handle it: routers advertise permanent address of mobile-nodes-in-residence via usual routing table exchange.  routing tables indicate where each mobile located  no changes to end-systems  let end-systems handle it:  indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote  direct routing: correspondent gets foreign address of mobile, sends directly to mobile not scalable to millions of mobiles Mobility: approaches

wide area network Mateen Yaqoob Department of Computer Science Mobility: registration end result:  foreign agent knows about mobile  home agent knows location of mobile home network visited network 1 mobile contacts foreign agent on entering visited network 2 foreign agent contacts home agent home: “this mobile is resident in my network”

Mateen Yaqoob Department of Computer Science Mobility via indirect routing wide area network home network visited network correspondent addresses packets using home address of mobile home agent intercepts packets, forwards to foreign agent foreign agent receives packets, forwards to mobile mobile replies directly to correspondent

Mateen Yaqoob Department of Computer Science Indirect Routing: comments  mobile uses two addresses:  permanent address: used by correspondent (hence mobile location is transparent to correspondent)  care-of-address: used by home agent to forward datagrams to mobile  foreign agent functions may be done by mobile itself  triangle routing: correspondent-home-network- mobile  inefficient when correspondent, mobile are in same network

Mateen Yaqoob Department of Computer Science Indirect routing: moving between networks  suppose mobile user moves to another network  registers with new foreign agent  new foreign agent registers with home agent  home agent update care-of-address for mobile  packets continue to be forwarded to mobile (but with new care-of-address)  mobility, changing foreign networks transparent: on going connections can be maintained!

Mateen Yaqoob Department of Computer Science Mobility via direct routing home network visited network correspondent requests, receives foreign address of mobile correspondent forwards to foreign agent foreign agent receives packets, forwards to mobile mobile replies directly to correspondent

Mateen Yaqoob Department of Computer Science Mobility via direct routing: comments  overcome triangle routing problem  non-transparent to correspondent: correspondent must get care-of-address from home agent  what if mobile changes visited network?

Mateen Yaqoob Department of Computer Science wide area network 1 foreign net visited at session start anchor foreign agent 2 4 new foreign agent 3 correspondent agent correspondent new foreign network Accommodating mobility with direct routing  anchor foreign agent: FA in first visited network  data always routed first to anchor FA  when mobile moves: new FA arranges to have data forwarded from old FA (chaining) 5

Mateen Yaqoob Department of Computer Science Wireless, mobility: impact on higher layer protocols  logically, impact should be minimal …  best effort service model remains unchanged  TCP and UDP can (and do) run over wireless, mobile  … but performance-wise:  packet loss/delay due to bit-errors (discarded packets, delays for link-layer retransmissions), and handoff  TCP interprets loss as congestion, will decrease congestion window un-necessarily  delay impairments for real-time traffic  limited bandwidth of wireless links

Multimedia: audio Mateen Yaqoob Department of Computer Science  analog audio signal sampled at constant rate  telephone: 8,000 samples/sec  CD music: 44,100 samples/sec  each sample quantized, i.e., rounded  e.g., 2 8 =256 possible quantized values  each quantized value represented by bits, e.g., 8 bits for 256 values time audio signal amplitude analog signal quantized value of analog value quantization error sampling rate (N sample/sec)

Multimedia: audio Mateen Yaqoob Department of Computer Science  example: 8,000 samples/sec, 256 quantized values: 64,000 bps  receiver converts bits back to analog signal:  some quality reduction example rates  CD: Mbps  MP3: 96, 128, 160 kbps  Internet telephony: 5.3 kbps and up time audio signal amplitude analog signal quantized value of analog value quantization error sampling rate (N sample/sec)

 video: sequence of images displayed at constant rate  e.g. 24 images/sec  digital image: array of pixels  each pixel represented by bits  coding: use redundancy within and between images to decrease # bits used to encode image  spatial (within image)  temporal (from one image to next) Mateen Yaqoob Department of Computer Science Multimedia: video ……………………...… spatial coding example: instead of sending N values of same color (all purple), send only two values: color value (purple) and number of repeated values (N) ……………………...… frame i frame i+1 temporal coding example: instead of sending complete frame at i+1, send only differences from frame i

Mateen Yaqoob Department of Computer Science Multimedia: video ……………………...… spatial coding example: instead of sending N values of same color (all purple), send only two values: color value (purple) and number of repeated values (N) ……………………...… frame i frame i+1 temporal coding example: instead of sending complete frame at i+1, send only differences from frame i  CBR: (constant bit rate): video encoding rate fixed  VBR: (variable bit rate): video encoding rate changes as amount of spatial, temporal coding changes  examples:  MPEG 1 (CD-ROM) 1.5 Mbps  MPEG2 (DVD) 3-6 Mbps  MPEG4 (often used in Internet, < 1 Mbps)

Multimedia networking: 3 application types Mateen Yaqoob Department of Computer Science  streaming, stored audio, video  streaming: can begin playout before downloading entire file  stored (at server): can transmit faster than audio/video will be rendered (implies storing/buffering at client)  e.g., YouTube, Netflix, Hulu  conversational voice/video over IP  interactive nature of human-to-human conversation limits delay tolerance  e.g., Skype  streaming live audio, video  e.g., live sporting event (futbol)

Streaming stored video: 1.video recorded (e.g., 30 frames/sec) 2. video sent Cumulative data streaming: at this time, client playing out early part of video, while server still sending later part of video network delay (fixed in this example) time Mateen Yaqoob Department of Computer Science 3. video received, played out at client (30 frames/sec)

Streaming stored video: challenges  continuous playout constraint: once client playout begins, playback must match original timing  … but network delays are variable (jitter), so will need client-side buffer to match playout requirements  other challenges:  client interactivity: pause, fast-forward, rewind, jump through video  video packets may be lost, retransmitted Mateen Yaqoob Department of Computer Science

Voice-over-IP (VoIP) Mateen Yaqoob Department of Computer Science  VoIP end-end-delay requirement: needed to maintain “conversational” aspect  higher delays noticeable, impair interactivity  < 150 msec: good  > 400 msec bad  includes application-level (packetization,playout), network delays  session initialization: how does callee advertise IP address, port number, encoding algorithms?  value-added services: call forwarding, screening, recording  emergency services: 911

VoIP characteristics  speaker ’ s audio: alternating talk spurts, silent periods.  64 kbps during talk spurt  pkts generated only during talk spurts  20 msec chunks at 8 Kbytes/sec: 160 bytes of data  application-layer header added to each chunk  chunk+header encapsulated into UDP or TCP segment  application sends segment into socket every 20 msec during talkspurt Mateen Yaqoob Department of Computer Science

VoIP: packet loss, delay  network loss: IP datagram lost due to network congestion (router buffer overflow)  delay loss: IP datagram arrives too late for playout at receiver  delays: processing, queueing in network; end-system (sender, receiver) delays  typical maximum tolerable delay: 400 ms  loss tolerance: depending on voice encoding, loss concealment, packet loss rates between 1% and 10% can be tolerated Mateen Yaqoob Department of Computer Science

constant bit rate transmission Cumulative data time variable network delay (jitter) client reception constant bit rate playout at client client playout delay buffered data Delay jitter  end-to-end delays of two consecutive packets: difference can be more or less than 20 msec (transmission time difference) Mateen Yaqoob Department of Computer Science

VoIP: fixed playout delay  receiver attempts to playout each chunk exactly q msecs after chunk was generated.  chunk has time stamp t: play out chunk at t+q  chunk arrives after t+q: data arrives too late for playout: data “ lost ”  tradeoff in choosing q:  large q: less packet loss  small q: better interactive experience Mateen Yaqoob Department of Computer Science

Real-Time Protocol (RTP)  RTP specifies packet structure for packets carrying audio, video data  RFC 3550  RTP packet provides  payload type identification  packet sequence numbering  time stamping  RTP runs in end systems  RTP packets encapsulated in UDP segments  interoperability: if two VoIP applications run RTP, they may be able to work together Mateen Yaqoob Department of Computer Science

RTP runs on top of UDP RTP libraries provide transport-layer interface that extends UDP: port numbers, IP addresses payload type identification packet sequence numbering time-stamping Mateen Yaqoob Department of Computer Science

RTP example example: sending 64 kbps PCM-encoded voice over RTP  application collects encoded data in chunks, e.g., every 20 msec = 160 bytes in a chunk  audio chunk + RTP header form RTP packet, which is encapsulated in UDP segment  RTP header indicates type of audio encoding in each packet  sender can change encoding during conference  RTP header also contains sequence numbers, timestamps Mateen Yaqoob Department of Computer Science

RTP and QoS  RTP does not provide any mechanism to ensure timely data delivery or other QoS guarantees  RTP encapsulation only seen at end systems (not by intermediate routers)  routers provide best-effort service, making no special effort to ensure that RTP packets arrive at destination in timely matter Mateen Yaqoob Department of Computer Science

RTP header payload type (7 bits): indicates type of encoding currently being used. If sender changes encoding during call, sender informs receiver via payload type field Payload type 0: PCM mu-law, 64 kbps Payload type 3: GSM, 13 kbps Payload type 7: LPC, 2.4 kbps Payload type 26: Motion JPEG Payload type 31: H.261 Payload type 33: MPEG2 video sequence # (16 bits): increment by one for each RTP packet sent  detect packet loss, restore packet sequence Mateen Yaqoob Department of Computer Science payload type sequence number type time stamp Synchronization Source ID Miscellaneous fields

 timestamp field (32 bits long): sampling instant of first byte in this RTP data packet  for audio, timestamp clock increments by one for each sampling period (e.g., each 125 usecs for 8 KHz sampling clock)  if application generates chunks of 160 encoded samples, timestamp increases by 160 for each RTP packet when source is active. Timestamp clock continues to increase at constant rate when source is inactive.  SSRC field (32 bits long): identifies source of RTP stream. Each stream in RTP session has distinct SSRC Mateen Yaqoob Department of Computer Science RTP header payload type sequence number type time stamp Synchronization Source ID Miscellaneous fields

Real-Time Control Protocol (RTCP)  works in conjunction with RTP  each participant in RTP session periodically sends RTCP control packets to all other participants  each RTCP packet contains sender and/or receiver reports  report statistics useful to application: # packets sent, # packets lost, interarrival jitter  feedback used to control performance  sender may modify its transmissions based on feedback Mateen Yaqoob Department of Computer Science

RTCP: multiple multicast senders  each RTP session: typically a single multicast address; all RTP /RTCP packets belonging to session use multicast address  RTP, RTCP packets distinguished from each other via distinct port numbers  to limit traffic, each participant reduces RTCP traffic as number of conference participants increases Mateen Yaqoob Department of Computer Science RTCP RTP RTCP sender receivers

RTCP: packet types receiver report packets:  fraction of packets lost, last sequence number, average interarrival jitter sender report packets:  SSRC of RTP stream, current time, number of packets sent, number of bytes sent source description packets:  address of sender, sender's name, SSRC of associated RTP stream  provide mapping between the SSRC and the user/host name Mateen Yaqoob Department of Computer Science

RTCP: stream synchronization  RTCP can synchronize different media streams within a RTP session  e.g., videoconferencing app: each sender generates one RTP stream for video, one for audio.  timestamps in RTP packets tied to the video, audio sampling clocks  not tied to wall-clock time  each RTCP sender-report packet contains (for most recently generated packet in associated RTP stream):  timestamp of RTP packet  wall-clock time for when packet was created  receivers uses association to synchronize playout of audio, video Mateen Yaqoob Department of Computer Science

RTCP: bandwidth scaling RTCP attempts to limit its traffic to 5% of session bandwidth example : one sender, sending video at 2 Mbps  RTCP attempts to limit RTCP traffic to 100 Kbps  RTCP gives 75% of rate to receivers; remaining 25% to sender  75 kbps is equally shared among receivers:  with R receivers, each receiver gets to send RTCP traffic at 75/R kbps.  sender gets to send RTCP traffic at 25 kbps.  participant determines RTCP packet transmission period by calculating avg RTCP packet size (across entire session) and dividing by allocated rate Mateen Yaqoob Department of Computer Science

Network support for multimedia Mateen Yaqoob Department of Computer Science

Dimensioning best effort networks  approach: deploy enough link capacity so that congestion doesn’t occur, multimedia traffic flows without delay or loss  low complexity of network mechanisms (use current “best effort” network)  high bandwidth costs  challenges:  network dimensioning: how much bandwidth is “enough?”  estimating network traffic demand: needed to determine how much bandwidth is “enough” (for that much traffic) Mateen Yaqoob Department of Computer Science

Providing multiple classes of service  thus far: making the best of best effort service  one-size fits all service model  alternative: multiple classes of service  partition traffic into classes  network treats different classes of traffic differently (analogy: VIP service versus regular service) 0111  granularity: differential service among multiple classes, not among individual connections  history: ToS bits Mateen Yaqoob Department of Computer Science

Multiple classes of service: scenario R1 R2 H1 H2 H3 H4 1.5 Mbps link R1 output interface queue Mateen Yaqoob Department of Computer Science

Scenario 1: mixed HTTP and VoIP  example: 1Mbps VoIP, HTTP share 1.5 Mbps link.  HTTP bursts can congest router, cause audio loss  want to give priority to audio over HTTP packet marking needed for router to distinguish between different classes; and new router policy to treat packets accordingly Principle 1 R1 R2 Mateen Yaqoob Department of Computer Science

Principles for QoS guarantees (more)  what if applications misbehave (VoIP sends higher than declared rate)  policing: force source adherence to bandwidth allocations  marking, policing at network edge provide protection (isolation) for one class from others Principle 2 R1 R2 1.5 Mbps link 1 Mbps phone packet marking and policing Mateen Yaqoob Department of Computer Science

 allocating fixed (non-sharable) bandwidth to flow: inefficient use of bandwidth if flows doesn ’ t use its allocation while providing isolation, it is desirable to use resources as efficiently as possible Principle 3 R1 R2 1.5 Mbps link 1 Mbps phone 1 Mbps logical link 0.5 Mbps logical link Mateen Yaqoob Department of Computer Science Principles for QoS guarantees (more)