CS335 Principles of Multimedia Systems Multimedia Over IP Networks -- III Hao Jiang Computer Science Department Boston College Nov. 13, 2007.

Slides:



Advertisements
Similar presentations
Chapter 3 The Data Link Layer.
Advertisements

The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Streaming Video over the Internet
CIS 725 Data Link Layer. Physical Layer Figure 3-1 B. Forouzan, TCP/IP Protocol Suite.
Simulation-based Comparison of Tahoe, Reno, and SACK TCP Kevin Fall & Sally Floyd Presented: Heather Heiman September 10, 2002.
School of Information Technologies TCP Congestion Control NETS3303/3603 Week 9.
Rate Distortion Optimized Streaming Maryam Hamidirad CMPT 820 Simon Fraser Univerity 1.
Transport Layer 3-1 outline r TCP m segment structure m reliable data transfer m flow control m congestion control.
Transport Layer 3-1 Fast Retransmit r time-out period often relatively long: m long delay before resending lost packet r detect lost segments via duplicate.
End-to-End TCP-Friendly Streaming Protocol and Bit Allocation for Scalable Video Over Wireless Internet Fan Yang, Qian Zhang, Wenwu Zhu, and Ya-Qin Zhang.
CS335 Principles of Multimedia Systems Multimedia Over IP Networks -- I Hao Jiang Computer Science Department Boston College Nov. 6, 2007.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
The Data Link Layer Chapter 3. Position of the data-link layer.
1 689 Lecture 2 Review of Last Lecture Networking basics TCP/UDP review.
1 TCP Transport Control Protocol Reliable In-order delivery Flow control Responds to congestion “Nice” Protocol.
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
A Model for MPEG with Forward Error Correction (FEC) and TCP-Friendly Bandwidth Huahui Wu, Mark Claypool & Robert Kinicki Computer Science Department Worcester.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
CS335 Principles of Multimedia Systems Multimedia Over IP Networks -- II Hao Jiang Computer Science Department Boston College Nov. 8, 2007.
1 K. Salah Module 6.1: TCP Flow and Congestion Control Connection establishment & Termination Flow Control Congestion Control QoS.
Using Redundancy and Interleaving to Ameliorate the Effects of Packet Loss in a Video Stream Yali Zhu, Mark Claypool and Yanlin Liu Department of Computer.
Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007.
Copyright © 2005 Department of Computer Science CPSC 641 Winter Tutorial: TCP 101 The Transmission Control Protocol (TCP) is the protocol that sends.
Error Checking continued. Network Layers in Action Each layer in the OSI Model will add header information that pertains to that specific protocol. On.
TCP: flow and congestion control. Flow Control Flow Control is a technique for speed-matching of transmitter and receiver. Flow control ensures that a.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
Electrical Engineering National Central University Video-Audio Processing Laboratory Data Error in (Networked) Video M.K.Tsai 04 / 08 / 2003.
COMT 4291 Communications Protocols and TCP/IP COMT 429.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Chapter 12 Transmission Control Protocol (TCP)
8. 1 MPEG MPEG is Moving Picture Experts Group On 1992 MPEG-1 was the standard, but was replaced only a year after by MPEG-2. Nowadays, MPEG-2 is gradually.
Copyright © Lopamudra Roychoudhuri
1 TCP - Part II Relates to Lab 5. This is an extended module that covers TCP data transport, and flow control, congestion control, and error control in.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
Flow Control in Multimedia Communication Multimedia Systems and Standards S2 IF Telkom University.
Flow Control in Compressed Video Communications #2 Multimedia Systems and Standards S2 IF ITTelkom.
Fall 2004FSU CIS 5930 Internet Protocols1 TCP – Data Exchange Reading: Section 24.4.
CPSC TCP Plots r Slides originally from Williamson at Calgary r Minor modifications are made.
Fundamentals of Multimedia Chapter 17 Wireless Networks 건국대학교 인터넷미디어공학부 임 창 훈.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Transmission Control Protocol (TCP) TCP Flow Control and Congestion Control CS 60008: Internet Architecture and Protocols Department of CSE, IIT Kharagpur.
1 TCP ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
Multimedia Communication Systems Techniques, Standards, and Networks Chapter 6 Multimedia Communication Across Networks.
Window Control Adjust transmission rate by changing Window Size
Media Compression.
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
Internet Networking recitation #9
Chapter 6 TCP Congestion Control
Introduction to Congestion Control
Rate Adaptations.
Data Compression.
Transport Layer Unit 5.
Chapter 3 – Part 1 The Data Link Layer.
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
Introduction to the Transport Layer
TCP Sequence Number Plots
Overview Jaringan Komputer (2)
CS412 Introduction to Computer Networking & Telecommunication
CS4470 Computer Networking Protocols
CS640: Introduction to Computer Networks
Internet Networking recitation #10
CS4470 Computer Networking Protocols
CS4470 Computer Networking Protocols
TCP Overview.
The Transport Layer Reliability
Transport Layer: Congestion Control
Process-to-Process Delivery: UDP, TCP
Error Checking continued
Presentation transcript:

CS335 Principles of Multimedia Systems Multimedia Over IP Networks -- III Hao Jiang Computer Science Department Boston College Nov. 13, 2007

CS335 Principles of Multimedia Systems Outline  We will discuss different issues related to robustness of multimedia data over IP network.  Topics include: Error Correction Error Concealment Congestion Control

CS335 Principles of Multimedia Systems Error Correction for Bit Errors  Schemes to make encoded media stream resistant to bit errors: –Adding error correction codes. –Insertion of re-synchronization bits. –Bi-directional entropy code. –Self-synchronization entropy code. –Error resilient entropy coding (EREC).

CS335 Principles of Multimedia Systems Error Resilient Entropy Coding  Basic Idea: Convert variable length code to some kind of fixed length code

CS335 Principles of Multimedia Systems EREC Encoding Phase1Phase2 Phase3 Final

CS335 Principles of Multimedia Systems EREC Encoding Scheme 1. The original code to be trans-coded is {Ci}, i = 0,…,M-1 2. Select slot width {Si} =0,…,M-1. Sum( Si ) = Sum ( length(Ci) ). Select search sequence {D(n)}, n =0,.., M-1. Set Phase = 0; 3. For i = 0 to M-1 If Si >= length(Ci) Put the code in slot Si; Update left space; else Search slot mod( i+D(phase), M ); If there is space left, put the code in; 4. If all the codes fit into the slot Terminate; else phase++; Goto 3

CS335 Principles of Multimedia Systems EREC Decoding Scheme 1. Get the header information about slotlength and slotwidth and M. 2. Set Phase = 0; Set {codelen(i) = 0, i = 0, …, M-1}, Set {cflag(i) =0, I=0,1, …, M-1} 3. For i = 0 to M-1 If codeword in slot i is fully decodable. Store codelen(i) = code length; else search slot mod( i+D(phase), M ); Get bits from the position of codelen(mod( i+D(phase), M )); If fully decodable, update codelen(i) and cflag(i). Else get all the bits left in the searching slot. 4. If no cflag(i) == 0 or some no change since last phase, stop else phase++; Goto 3

CS335 Principles of Multimedia Systems EREC for JPEG Coding EREC Code Decode Header Information Original code Recovered code

CS335 Principles of Multimedia Systems JPEG Coding in Noisy Channels Original imageJPEG coding of Lena. Q=50.

CS335 Principles of Multimedia Systems JPEG Coding in Noisy Channels JPEG coding of Lena. Q=50. BER=0.01JPEG coding of Lena. Q=50. BER=0.001

CS335 Principles of Multimedia Systems JPEG Coding in Noisy Channels JPEG coding of Lena. Q=50. BER=0.0001JPEG coding of Lena. Q=50. BER=

CS335 Principles of Multimedia Systems EREC-JPEG in Noisy Channels EREC-JPEG coding of Lena. Q=50. BER=0.01 EREC-JPEG coding of Lena. Q=50. BER=0.001

CS335 Principles of Multimedia Systems EREC-JPEG in Noisy Channels EREC-JPEG coding of Lena Q=50. BER=0.001 EREC-JPEG coding of Lena Q=50. BER=0.0001

CS335 Principles of Multimedia Systems Another Example on Color Image Coding Original imageJPEG coding picture, Q=50

CS335 Principles of Multimedia Systems JPEG Coding in Noisy Channel JPEG coding in with BER = 0.01JPEG coding in with BER = 0.001

CS335 Principles of Multimedia Systems EREC Coding Results Error resilient image coding in BER = Error resilient image coding in BER = 0.01.

CS335 Principles of Multimedia Systems Comparison Results Performance comparison JPEG and EREC. Lena. Q = 50. BPP = Random error.

CS335 Principles of Multimedia Systems Comparison Results Figure 5. Performance comparison JPEG and EREC. Gold Hill. Q = 50. BPP = Random Error.

CS335 Principles of Multimedia Systems Error Correction for Packet Loss  An error correction method P1 P2 P3 C=P1 xor P2 xor P3 Reconstructed packet P1 P1 xor P3 xor C P3 C

CS335 Principles of Multimedia Systems Another Error Correction Scheme D(n) R(n-1)D(n+1) R(n)D(n+2) R(n+1)D(n+3) R(n+2) P(n)P(n+2)P(n+3) R(n) is usually a “rougher” coding of D(n) Recovered packet n+1

CS335 Principles of Multimedia Systems Dealing with Burst Packet Loss  Transform burst loss into random loss -- interlacing Burst packet lost 235 Received packet loss pattern is random. Original packets Scrambled packets Received packets

CS335 Principles of Multimedia Systems Error Concealment  Error correction usually needs additional error correction bits.  In fact, it is possible to recover or at least cover the lost data using only the correctly received data – error concealment.  Error concealment can be used for images, videos and audios.

CS335 Principles of Multimedia Systems Images with Partial Data Missing 25% blocks lost 50% blocks lost

CS335 Principles of Multimedia Systems Reconstructed Images Reconstructed images for cases of 25% and 50% block loss respectively.

CS335 Principles of Multimedia Systems Directional Adaptive Error Concealment Color continuous Orientation continuous Continuous in the desired orientation Missing image block

CS335 Principles of Multimedia Systems Error Concealment for Videos Previous I or P P frame v  For MPEG video, we can simply recover the lost blocks in P frames by replacing the lost blocks with the corresponding blocks in the previous I or P frame.

CS335 Principles of Multimedia Systems Congestion Control  The need for congestion control –Internet is a network that does not regulate the traffic of each source strictly. –Aggressive sources may obtain more bandwidth than other information sources. –When throughput in a network exceeds some threshold, congestion collapse will happen. Packet sending rate Packet delivering rate Normal operation Congestion collapse

CS335 Principles of Multimedia Systems TCP Congestion Control  TCP uses a slow linear increase and exponential decrease scheme for congestion control. Slow start Fast decrease Time Packet Rate

CS335 Principles of Multimedia Systems TCP Congestion Control (cont) Packet 1 ACK packet2 ACK Send-and-wait protocol. Maximum packet rate is 1/round_trip_time.

CS335 Principles of Multimedia Systems Sliding Window Scheme Packet 1 ACK Packet 2 Packet 3 Packet 4 Packet 5 Packet 6 If there is no bandwidth limitation, we can send data as fast as we can.

CS335 Principles of Multimedia Systems TCP Congestion Control  TCP protocol controls the bandwidth usage by adjusting the sliding window size (the number of packets sent out in a burst).  TCP detects congestion by timeout or the number of duplicate ACK. Packet 1 Packet 2 Packet 3 x Ack1 Packet 1 Packet 2 Packet 3 Ack1 Ack3

CS335 Principles of Multimedia Systems Multimedia and Congestion Control  Should multimedia traffic follow the same rules like TCP?  It depends. But some kind of scheme to avoid the congestion collapse of the whole network is worth to study.  Such congestion control schemes generally follow the same pattern like TCP congestion control schemes: Slowly increase the bandwidth usage to fully use the network resources. Reduce the usage of bandwidth if congestion is likely to happen.

CS335 Principles of Multimedia Systems TCP Friendly Protocols  For applications such as video conferencing, the video source can adapt its bit rate by changing the quantization factor.  Video source detects congestion condition by the parameters such as round trip time, packet loss ratio etc. using RTCP.  The bit rate of the video source can increase linearly in each round trip time if no congestion happens.  If congestion occurs, the video source should decrease the rate (as much as possible like a TCP source).