Presentation is loading. Please wait.

Presentation is loading. Please wait.

© De Montfort University, 20041 Protocols for multimedia transmission over the Internet Howell Istance Dept. of Computer Science De Montfort University.

Similar presentations

Presentation on theme: "© De Montfort University, 20041 Protocols for multimedia transmission over the Internet Howell Istance Dept. of Computer Science De Montfort University."— Presentation transcript:

1 © De Montfort University, 20041 Protocols for multimedia transmission over the Internet Howell Istance Dept. of Computer Science De Montfort University

2 © De Montfort University, 20042 Overview… In order to understand differences between streaming services and download services over the Internet, it is necessary to understand the various protocols involved and the differences between them Chapter 15 – Chapman and Chapman HTTP UDPTCP IP RTSP RTP

3 © De Montfort University, 20043 Internet Protocol (IP) Transfer of datagrams between hosts Each host has an IP address Datagram headers contain source and destination IP addresses Each datagram treated separately – no connection between datagrams that make up a page Routers inspect destination address – if on same network modify it to native address format else pass on to another router Routers discard datagrams which have not reached their destination after a certain time

4 © De Montfort University, 20044 Transport Control Protocol (TCP) Clearly there is a need to order packets received from IP layer and request re-transmission of any that are missing TCP provides this service Sets up a connection between sender and receiver Uses a sliding window protocol – sender sends packets up to a limit and awaits acknowledgement from receiver – when acknowledgement received, sends more up to window limit If no acknowledgement received, packet is re-sent Transport address = IP address + port number, needed to ensure that packets is passed to appropriate application

5 © De Montfort University, 20045 User Datagram Protocol (UDP) No connection set up between sender and receiver No acknowledge/ retransmit procedure Packets have port number Suitable for delivery of streamed audio and video data

6 © De Montfort University, 20046 Realtime Transport Protocol (RTP) Adds sequence number to each packet to enable application to order packets or discard packets received out of order No guarantee of delivery Sets up a connection between sender application and receiver so that each stream is an identifiable entity Identifies payload (data) type e.g audio or video, Where several data types are to be sent, these are sent by individual RTP streams Synchronisation supported by adding timestamp to the header

7 © De Montfort University, 20047 Unicasting and Multicasting If several (many) users want to receive same data from same source at the same time, separate and duplicate data packets need to be sent to each user (receiver) unicasting leads to much duplication in this situation Multicasting – send a single copy from source and duplicate this en route only when necessary to ensure that each user receives it Hosts assigned to host groups, IP addresses now identify host groups rather a single hosts – range of IP addresses reserved for this

8 © De Montfort University, 20048 Hypertext Transfer Protocol (HTTP) Link between application (e.g. web browser) and TCP HTTP 1.0 – caused server TCP to close connection to client after each request HTTP 1.1 – client TCP closes connection to server after all requests have been processed Prescribes format of requests from client and responses from server

9 © De Montfort University, 20049 HTTP requests : Browser sends HTTP request GET /~hoi/index.html HTTP/1.1 Host: User-Agent: Mozilla/4.0 Accept: image/gif, image/jpeg, text/* (blank line)

10 © De Montfort University, 200410 HTTP Server Responses Status followed by header followed by data HTTP/1.1 200 OK Server: Netscape-Enterprise/3.5.1G Date: Sat 25 Feb 2002 14:27:17 GMT Content-type: text/html …..(rest of data) … Status codes <200 – informative300-399 – redirect 200-299 - success 400-599 - error

11 © De Montfort University, 200411 Realtime Streaming Protocol (RSTP) HTTP – runs on top of TCP, overheads incurred by reliable transmission are unacceptable for streamed media RTP – does not provide functionality to start, stop, pause RTSP – provides these services, Internet VCR remote control Syntactically similar to HTTP, but requests require an absolute url – no Host header No data in RTSP responses, all data carried in RTP responses Used primarily by Streaming Quicktime, RealPlayer G2

12 © De Montfort University, 200412 Setting up a streaming session Before session is set up, client needs to obtain a presentation description – details of how presentation is to be controlled Typically contains media announcements including transport address and protocol (e.g RTP), type of data and type of encoding used Each stream will have a rtsp://URL Information to client about where to get presentation description passed to it somehow (usually by HTTP) –QuickTime – small movie –RealPlayer 5.0 and below -.ram file –RealPlayer 6.0 and above -.smil file

13 © De Montfort University, 200413 Setting up a streaming session (server)(player) DESCRIBE request to url provided Presentation description SETUP request Session identifier (arbitrary string) PLAY session request PAUSE session request TEARDOWN session request

14 © De Montfort University, 200414 Protocol Rollover Firewalls can prevent clients accessing external servers via ports or protocolls that have been disabled The player can attempt to access the server using a succession of protocols (protocol roll-over) Client Server Local Area Network firewall multicast HTTP RTSP/TCP? RTSP/UDP?

15 © De Montfort University, 200415 Sequence in a streaming session urls in.smil files reference RealServer Server sends page.wav clips RealProducerRealPlayer Web Browser Access database Client requests page.smil file ram file RealServer Web Server (IIS).rm file.html..smil files Streaming server Web server Client Network

16 © De Montfort University, 200416 Quality of service… Delay (latency) in network will cause intervals between packet arrival to vary continuously (jitter) Why will this cause problems? In addition, there may be packet loss Delay, jitter and packet loss are all measurable – amount which an application can tolerate can be quantified These parameters + bandwidth required define Quality of Service required by application ATM (Asynchronous transfer mode) networks – high speed which offer guarantees of a level of QofS to applications which use them

Download ppt "© De Montfort University, 20041 Protocols for multimedia transmission over the Internet Howell Istance Dept. of Computer Science De Montfort University."

Similar presentations

Ads by Google