CS 414 - Spring 2009 CS 414 – Multimedia Systems Design Lecture 20 – TCP Augmentations for Multimedia & Midterm Review Session Klara Nahrstedt Spring 2009.

Slides:



Advertisements
Similar presentations
DISTRIBUTED MULTIMEDIA SYSTEMS
Advertisements

Exercises and Solutions Lecture 1
Streaming Video over the Internet
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.
CCNA – Network Fundamentals
NET0183 Networks and Communications Lecture 28 TCP: a transport layer protocol... the story continues... Sagan halda áfram 8/25/20091 NET0183 Networks.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 16 – Multimedia Transport Subsystem (Part 3) Klara Nahrstedt Spring 2009.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 14 – Introduction to Multimedia Resource Management Klara Nahrstedt Spring 2012.
T.Sharon-A.Frank 1 Multimedia Quality of Service (QoS)
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 25 Multimedia.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 15 –QoS Admission, QoS Negotiation, and Establishment of AV Connections Klara Nahrstedt.
User Control of Streaming Media: RTSP
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
CSc 461/561 CSc 461/561 Multimedia Systems 0. Introduction.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
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.
Process-to-Process Delivery:
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.
Advance Computer Networks Lecture#14
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 8 – JPEG Compression (Part 3) Klara Nahrstedt Spring 2012.
Midterm Review - Network Layers. Computer 1Computer 2 2.
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
Klara Nahrstedt Spring 2011
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
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.
TCP Lecture 13 November 13, TCP Background Transmission Control Protocol (TCP) TCP provides much of the functionality that IP lacks: reliable service.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
University of the Western Cape Chapter 12: The Transport Layer.
Quality of Service Karrie Karahalios Spring 2007.
1 Lecture 14 High-speed TCP connections Wraparound Keeping the pipeline full Estimating RTT Fairness of TCP congestion control Internet resource allocation.
MP 2: Audio/ Video Streaming
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 21 – Case Studies for Multimedia Network Support (Layer 3) Klara Nahrstedt Spring 2009.
Streaming Media Control n The protocol components of the streaming n RTP/RTCP n RVSP n Real-Time Streaming Protocol (RTSP)
Spring 2001CS Multimedia, QoS Multimedia (7.2, 9.3) Compression RTP Realtime Applications Integrated Services Differentiated Services Quality.
Chapter 28. Network Management Chapter 29. Multimedia
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 10 – Compression Basics and JPEG Compression (Part 4) Klara Nahrstedt Spring 2014.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
Scalable Video Coding and Transport Over Broad-band wireless networks Authors: D. Wu, Y. Hou, and Y.-Q. Zhang Source: Proceedings of the IEEE, Volume:
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
Klara Nahrstedt Spring 2012
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
Ch 6. Multimedia Networking Myungchul Kim
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.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 16 – Multimedia Transport (Part 2) Klara Nahrstedt Spring 2011.
Introduction to Quality of Service Klara Nahrstedt CS 538.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 19 – Multimedia Transport Subsystem (Part 2) + Midterm Review Klara Nahrstedt Spring 2014.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 24 – Client-Server Buffer Management Klara Nahrstedt Spring 2011.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 17 – QoS Classes and Setup Operations Klara Nahrstedt Spring 2014.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Multimedia Communication Systems Techniques, Standards, and Networks Chapter 6 Multimedia Communication Across Networks.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 17 – Multimedia Transport Subsystem (Part 3) Klara Nahrstedt Spring 2011.
Networked Multimedia Basics. Network Characteristics.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 13 – Quality of Service Concepts(Part 2) Klara Nahrstedt Spring 2009.
Klara Nahrstedt Spring 2012
Klara Nahrstedt Spring 2010
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2010
Chapter 25 Multimedia TCP/IP Protocol Suite
Computer Networks Protocols
Presentation transcript:

CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 20 – TCP Augmentations for Multimedia & Midterm Review Session Klara Nahrstedt Spring 2009

CS Spring 2009 Homework 1  deadline – March 6  solutions will be posted on March 7 Administrative

Transport Protocols (Layer 4) Existing Protocols –  TCP – Reliable Transport Protocol  UDP – Unreliable Transport Protocol New Protocols –  RTP – Real-time Transport protocol  RTCP – Real-time Control Protocol CS Spring 2009

TCP- Transmission Control Protocol - Features Serial communication path between processes exchanging a full-duplex stream of bytes Sequential delivery (no reordering required) Reliable delivery  Achieved through retransmission via timeouts and positive acknowledgement on receipt of information Flow and congestion control is based on window technique CS Spring 2009

TCP Header CS Spring 2009 Bit offsetBits 0–34–78–1516–31 0 Source port Destination port 32 Sequence number 64 Acknowledgment number 96Data offsetReservedCWRECEURGACKPSHRSTSYNFINWindow 128 ChecksumUrgent pointer 160 Options (optional) 160/192 + Data

Flow and Congestion Control in TCP Slow-start algorithm – basic flow and congestion control in TCP The algorithm requires sender to keep congestion window which is the estimate of how much traffic the network can actually take (in- network traffic) Congestion window is managed using two-part algorithm:  Sender sends exponentially until TCP segment gets lost  Sender sends exponentially up to half the previous window, then window grows linearly CS Spring 2009

Techniques for Going Faster TCP predictions (1987) that TCP/IP cannot go faster than 10 Mbps Van Jacobson investigated making TCP faster Techniques:  Memory management – reduce copying  Interrupt handling – clocked interrupts CS Spring 2009

Techniques for Going Faster Better lookup techniques  TCP must lookup connection block for each segment received  IP must find a route to be able send IP packet Use caches of frequently used information  Maximize hit rate, minimize search and maintenance Most effective – small caches Packets travel in packet rates  CACHE OF 20 ROUTES SHOWED HIT RATE OF 90% CS Spring 2009

Techniques for Going Faster Lookup algorithm  Hashing using open chaining – head of each hashed link list keeps a cache of the last accessed control block Prediction  TCP behavior is highly predictable and one can take advantage by optimizing the frequent path through TCP code at sender/receiver  Header prediction CS Spring 2009

Sequence Numbers High delay-bandwidth product has implication on TCP window size and sequence space;  Delay-bandwidth product means how many bytes (represented via packets) are currently in-flight (i.e., inside the network)  Example: If EED is 1 second and network bandwidth (inside network) is 10 Mbps, then delay-bandwidth product is equal to 10 Mbits (1second * 10 Mbps) and this means that one can have 10 Mbits worth of data inside the network before seeing it at the receiver TCP window size is 64 KB – we need possibility to negotiate the window size CS Spring 2009

Sequence Numbers Sequencing uses wrap-around counters to put in sequence numbers  Sequence number space is too small Examples:  In case of 10 Mbps, the IP packet lifetime was designed with 120 seconds and sequence space of 32 bits – takes about 1700 seconds to send 2 31 bytes  In case of 1 Gbps, it takes 17 seconds to send 2 31 bytes CS Spring 2009

Conclusion TCP has been augmented and can achieve high performance suitable for multimedia, but one must optimize TCP for performance  Especially for large video streams CS Spring 2009

Midterm March 9 (Monday), 11-11:50am, 1302 SC Closed Book, Closed Notes You can bring calculator and 1 page cheat sheet CS Spring 2009

Covered Material Class Notes (Lectures 1-17) Book Chapters to read/study:  Media Coding and Content processing book Chapter 2, Chapter , 3.8, Chapter , Chapter 4.3 ( as discussed in lecture ) Chapter 5, chapter , 7.7  Multimedia Systems book Chapter 2, ( not – we have not covered QoS routing ), Chapter 5.1 CS Spring 2009

Material Media Characteristics  Synchronous, Isochronous, Asynchronous  Regular, irregular  Weakly and strongly periodic streams Audio Characteristics  Samples, frequency,  Perception, psychoacoustic effects, loudness, pitch, decibel, intensity  Sampling rate, quantization CS Spring 2009

Material Audio Characteristics  PCM, DPCM, ADPCM, signal-to-noise ratio Image Characteristics  Sampling, quantization, pixels  Image properties: color, texture, edges  Simple edge detection process CS Spring 2009

Material Video technology  Color perception: hue, brightness, saturation,  Visual representation: horizontal and vertical resolution, aspect ratio; depth perception, luminance, temporal resolution and motion  Flicker effect  Color coding: YUV, YIQ, RGB  NTSC vs HDTV formats CS Spring 2009

Material Basic Coding schemes  Run-length coding  Statistical coding Huffman coding Arithmetic coding Hybrid codes  JPEG: image preparation, DCT transformation, Quantization, entropy coding, JPEG-2000 characteristics CS Spring 2009

Material Hybrid Coding  Video MPEG: image preparation, I, P, B frames characteristics, quantization, display vs processing/transmission order of frames  Audio MPEG: role of psychoacoustic effect, masking, steps of audio compression  MPEG-4: differences to MPEG-2/MPEG-1 Audio-visual objects, layering CS Spring 2009

Material Quality of Service concepts  Service classes, QoS specification – deterministic, predictive, best effort, QoS classification – application, system, network QoS, relation between QoS and resources  QoS operations: translation, negotiation of QoS parameters CS Spring 2009

Material Resource Management concepts  QoS and resources, establishment phase and transmission/enforcement phase  Admission control of resources, reservation and allocation of resources  LBAP arrival model  Enforcement of guarantees: rate control, error control, resource monitoring and adaptation CS Spring 2009

Material Multimedia Transport  Requirements and constraints  Examples of translation and negotiation protocols  Admission control for bandwidth and delay  Reservation protocols, types of reservations  Traffic Shaping, how is a traffic shape expressed  CS Spring 2009

Material Multimedia Transport  Traffic Shaping – Leaky Bucket, (r,T) shaping, Token Bucket, difference between them  Rate control – fair queuing, delay earliest deadline first, stop-and-go scheme, jitter- earliest deadline first scheme  Error control – go-back-N retransmission, selective retransmission, difference to FEC (forward error correction), CS Spring 2009

Sample Problems Consider the following alphabet {C,S,4,1}, with probabilities: P(C) = 0.3, P(S) = 0.2, P(4)= 0.25, P(1) = Encode the word CS414 using  Huffman coding and arithmetic coding  Compare which encoding requires less bits CS Spring 2009

Sample Problems Describe briefly each step in MPEG-1 audio encoding. Specify the functionality, which is performed in each step. You don’t have to provide equations, only a clear explanation of the functionality that is performed inside each step. CS Spring 2009

Sample Problems What is flicker effect and how to remove it? Explain difference between synchronous and isochronous transmission stream modes Provide five differences between MPEG-4 video encoding standard and the previous MPEG video encoding standards CS Spring 2009

Sample Problems Consider voice application (like Skype). If you could redesign the underlying protocol (think about a session layer algorithms/services/protocols) under the voice application, what multimedia- sensitive algorithms would you deploy to achieve appropriate multimedia protocol? Specify clear design of order of algorithms/protocols to be used CS Spring 2009