Networking Applications

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

McGraw-Hill©The McGraw-Hill Companies, Inc., Chapter 28 Multimedia.
Multimedia Systems As Presented by: Craig Tomastik.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 28 Real-Time Traffic over the Internet.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Real Time Streaming Protocol (RTSP)
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.
User Control of Streaming Media: RTSP
Application layer (continued) Week 4 – Lecture 2.
CS 360 – Spring 2007 Pacific University Multimedia Content (Streaming Media) Session “Layer” section Feb 2007.
CSc 461/561 CSc 461/561 Multimedia Systems 0. Introduction.
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.
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.
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.
RTSP Real Time Streaming Protocol
1 CMSCD1011 Introduction to Computer Audio Lecture 10: Streaming audio for Internet transmission Dr David England School of Computing and Mathematical.
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.
The Application Layer Chapter 7. DNS – The Domain Name System a)The DNS Name Space b)Resource Records c)Name Servers.
Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
1 How Streaming Media Works Bilguun Ginjbaatar IT 665 Nov 14, 2006.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
Multimedia Over IP: RTP, RTCP, RTSP “Computer Science” Department of Informatics Athens University of Economics and Business Λουκάς Ελευθέριος.
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.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
CS640: Introduction to Computer Networks Aditya Akella Lecture 19 - Multimedia Networking.
Multimedia, Quality of Service: What is it?
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time Multimedia: Internet Phone Case.
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 28 Multimedia.
Chapter 28. Network Management Chapter 29. Multimedia
Multimedia and Networks. Protocols (rules) Rules governing the exchange of data over networks Conceptually organized into stacked layers – Application-oriented.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
Internet multimedia: simplest approach audio, video not streamed: r no, “pipelining,” long delays until playout! r audio or video stored in file r files.
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.
Ch 6. Multimedia Networking Myungchul Kim
Multimedia Streaming I. Fatimah Alzahrani. Introduction We can divide audio and video services into three broad categories: streaming stored audio/video,
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Chapter 13: Multimedia and Networking BITM1113- Multimedia Systems.
VoIP ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts.
Chapter 7 Multimedia Networking
The Transport Layer Congestion Control & UDP
Chapter 9: Transport Layer
19 – Multimedia Networking
Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IP Telephony (VoIP).
Instructor Materials Chapter 9: Transport Layer
Chapter 5 Network and Transport Layers
Networking Applications
VOICE AND VIDEO OVER IP VOIP, RTP, RSVP.
Networking for Home and Small Businesses – Chapter 6
Multimedia Applications
Networking for Home and Small Businesses – Chapter 6
Chapter 25 Multimedia TCP/IP Protocol Suite
Congestion Control, Internet transport protocols: udp
Multimedia networking: outline
CSE679: Multimedia and Networking
Multimedia and Networks
Process-to-Process Delivery:
CIS679: MPEG-2 Review of MPEG-1 MPEG-2 Multimedia and networking.
Multimedia networking: outline
Networking for Home and Small Businesses – Chapter 6
Streaming multimedia CS 352, Lecture 22
Net 431: ADVANCED COMPUTER NETWORKS
Presentation transcript:

Networking Applications Dr. Ayman A. Abdel-Hamid College of Computing and Information Technology Arab Academy for Science & Technology and Maritime Transport Multimedia Applications Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Outline Audio and Video Services Digitizing Audio and Video Audio and Video Compression Streaming Stored Audio/Video Streaming Live Audio/Video Real-Time Interactive Audio/Video Voice over IP (VoIP) SIP and H.323 Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Audio and Video Services Streaming stored audio/video Streaming implies a user can listen or watch the file after downloading has started On-demand Streaming live audio/video Interactive audio/video Teleconferencing Interactive communication with a group Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Digitizing Audio Analog signal needs to be digitized to produce a digital signal Sampling process  signal sampled at some fixed rate (example 8,000 samples per second). Each sample is an arbitrary real number Quantization  Each of the samples rounded to one of finite number of values Each of the quantization values represented by a fixed number of bits Voice sampled at 8000 samples per second with 8 bits per sample (digital signal of 64 Kbps) Music sampled at 44100 samples per second with 16 bits per sample (digital signal of 705.6 Kbps for mono and 1.41 Mbps for stereo) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Digitizing Video 1/2 A video is a sequence of frames (if displayed fast enough, get impression of motion) In North America, TV sends 25 frames per second To avoid flickering, a frame needs to be refreshed TV industry repaints each frame twice 50 frames to be sent, or If memory at receiver, 25 frames with each frame repainted from memory Frame divided into pixels (picture elements) Black and White, each 8-bit pixel  one of 256 different gray levels Color, pixel is 24-bits, 8 bits for each primary color (RGB) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Digitizing Video 2/2 Number of bits per second for lowest resolution 1024 x 768 pixels 2 x 25 x 1024 x 768 x 24 = 944 Mbps Need for a technology supporting a very high data rate To use lower-rate technologies  video compression Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Audio Compression Predictive Encoding Differences between samples are encoded instead of encoding all sample values GSM (13 Kbps), G.729 (8 Kbps), and G.723.3 (6.4 or 5.3 Kbps) Perceptual Encoding (CD-quality audio) MP3 (MPEG audio layer 3) Uses study of how people perceive sound (we have flaws in our auditory system!  Some sounds mask other sounds) Frequency masking (can not hear speaker with loud sound in background) versus temporal masking (can not hear for a short time even after loud sound has stopped) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Video Compression Use MPEG (Motion Picture Experts Group) as an example Spatially compressing each frame (spatial combination of pixels) and temporally compressing a set of frames Spatial compression: each frame is simply a picture that can be independently compresses (e.g., divide into blocks, apply a transformation to reveal redundancies and remove them  lossy vs lossless compression) Temporal compression: redundant frames are removed Divide frames into I-frames (Intra-coded), P-frames (Predicted, related to preceding I or P frame), and B-frames (Bidirectional) Example frame sequence: I-B-B-P-B-B-I MPEG1 (CD-ROM 1.5 Mbps), MPEG2 (high quality DVD 3-6 Mbps) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Streaming Stored Audio/Video 1/6 Using a Web Server Download file as a simple text file using Get and Response mechanisms Browser uses a helper application (media player) to play file Does not involve streaming (file downloaded completely before played) Using a Web Server with a Metafile Media player directly connected to Web server Server stores two files: actual audio/video file and a metafile holding information about audio/video file Media player uses URL in metafile to access audio/video file, using HTTP services (over TCP  problem with retransmissions) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Streaming Stored Audio/Video 2/6 Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Streaming Stored Audio/Video 3/6 Using a Media Server Get metafile from Web server using HTTP mechanisms Metafile passed to media player Media player uses URL in metafile to access media server and download file Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Streaming Stored Audio/Video 4/6 Using a Media Server Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Streaming Stored Audio/Video 5/6 Using a Media Server and RTSP (Real-Time Streaming Protocol) http://www.cs.columbia.edu/~hgs/rtsp/ RTSP is a control protocol to add more functionalities to the streaming process (provide user interactivity) After getting metafile, media player sends a SETUP message to create a connection with the media server (Media server responds) Media player sends a PLAY message to start playing (downloading) Audio/video file downloaded using a protocol that runs over UDP Connection broken using TEARDOWN message Media server responds Media player can use a PAUSE message, and later resume with a PLAY message Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Streaming Stored Audio/Video 6/6 Using a Media Server and RTSP Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Streaming Live Audio/Video Similar to broadcasting audio and video by radio and TV stations Sensitive to delay Does not accept retransmissions Stored live audio/video: unicast and on-demand (pull) Live audio/video: multicast and live (push) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Interactive Audio/Video 1/6 Internet phone or Voice over IP Time Relationship (Example: 3 video packets, each worth 10s of video information) Case 1: equal delay for each packet to reach destination (e.g., 1 s) Case 2: different delays? (1s followed by 5s followed by 7s) Might cause gaps between packet playback Causes jitter due to variable delay between packets To deal with jitter use Timestamps (shows time it was produced relative to first (or previous) packet Receiver can add this time to the time at which it starts the playback (receiver knows when packet is to be played) This way we separate arrival time from playback time Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Interactive Audio/Video 2/6 Case 1: equal delay for each packet to reach destination (e.g., 1 s) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Interactive Audio/Video 3/6 Case 2: different delays? (1s followed by 5s followed by 7s) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Interactive Audio/Video 4/6 Use timestamps: separate arrival time from play time Assume playback started at 00.00.08s Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Interactive Audio/Video 5/6 To separate arrival time from playback time, need a buffer to store data until it is played back (playback buffer) Receiver delays playing data until a threshold is reached Data stored in buffer at a variable rate, but extracted and played back at a fixed rate Data arriving after playback deadline is ignored Need for multicasting support Ordering: need a sequence number for ordering purposes Transcoding: change the format of high-bandwidth video to a low-quality video (e.g., from MPEG to H263) Mixing: combine streams from multiple sources into one stream Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Interactive Audio/Video 6/6 Support from transport layer protocol Previous procedures can be implemented in application layer Common in real-time applications  implement in transport layer TCP not suitable because of error control mechanisms UDP suitable for interactive multimedia traffic (multimedia, no retransmission, however does not support timestamping, sequencing, or mixing Use Real-Time Transport Protocol (RTP) Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Transport Protocol 1/2 See http://www.cs.columbia.edu/~hgs/rtp/ Handle real-time traffic on the Internet Does not have a delivery mechanism  must be used with UDP and application program Offers timestamping, sequencing, and mixing services RTP packet encapsulated in a UDP datagram No well-known port assigned to RTP Uses an ephemeral even port, with next port used by companion protocol (RTCP) RTCP offers flow control and data quality, and allows recipient to send feedback to source Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

Real-Time Transport Protocol 2/2 RTCP Messages Sender Report Sent periodically by active senders to report transmission and reception statistics (includes an absolute timestamp for synchronization) Receiver Report For passive participants that do not send RTP packets to inform senders and other receivers about the quality of service Source Description Message Periodically sent by sender (name, email address, Tel. No) Bye Message  Shutdown a stream Application-Specific Message Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Voice over IP Extra References Voice over IP and IP Telephony: References http://www.cse.wustl.edu/~jain/refs/hot_refs.htm Voice Over IP Reference Page from protocols.com http://www.protocols.com/pbook/VoIP.htm IEEE Spectrum Feature Article in March 2005 http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=1402719 Multimedia Applications © Dr. Ayman Abdel-Hamid, Networking Applications