Summary of last time " " "

Similar documents
Multimedia! 23/03/18. Part 3: Lecture 3! Content and multimedia! Internet traffic!

Part 3: Lecture 3! Content and multimedia!

Kommunikationssysteme [KS]

Multimedia Applications. Classification of Applications. Transport and Network Layer

Multimedia Networking

RTP. Prof. C. Noronha RTP. Real-Time Transport Protocol RFC 1889

Real-time Services BUPT/QMUL

Mohammad Hossein Manshaei 1393

ETSF10 Internet Protocols Transport Layer Protocols

CS519: Computer Networks. Lecture 9: May 03, 2004 Media over Internet

Overview of the Session Initiation Protocol

VoIP Basics. 2005, NETSETRA Corporation Ltd. All rights reserved.

Stream Control Transmission Protocol (SCTP)

13. Internet Applications 최양희서울대학교컴퓨터공학부

Digital Asset Management 5. Streaming multimedia

TCP/IP Protocol Suite 1

TSIN02 - Internetworking

Video Streaming with the Stream Control Transmission Protocol (SCTP)

Transporting Voice by Using IP

TSIN02 - Internetworking

Real-time Services BUPT/QMUL

Provide a generic transport capabilities for real-time multimedia applications Supports both conversational and streaming applications

Multimedia in the Internet

VoIP. ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts

Real-Time Control Protocol (RTCP)

TSIN02 - Internetworking

An SCTP-Protocol Data Unit with several chunks

Stream Control Transmission Protocol

Overview. Slide. Special Module on Media Processing and Communication

Master Course Computer Networks IN2097

Computer Network Programming

TSIN02 - Internetworking

Voice over IP (VoIP)

Multimedia Networking

RTP: A Transport Protocol for Real-Time Applications

Multimedia networking: outline

UNIT IV TRANSPORT LAYER

Transporting Voice by Using IP

Multimedia Networking. Protocols for Real-Time Interactive Applications

Multimedia Networking

4 rd class Department of Network College of IT- University of Babylon

Multimedia Networking

Transport protocols Introduction

Outline. History Introduction Packets Association/ Termination Data Transmission concepts Multihoming Streams

Transport Protocols. ISO Defined Types of Network Service: rate and acceptable rate of signaled failures.

Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP

Lecture 9: Media over IP

Reliability and Availability in Stream Control Transport Protocol (SCTP)

Video Streaming and Media Session Protocols

Lecture 14: Multimedia Communications

EEC-682/782 Computer Networks I

Overview of SIP. Information About SIP. SIP Capabilities. This chapter provides an overview of the Session Initiation Protocol (SIP).

Transport of (Legacy) Signaling over IP. Summary of course scope

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2007

in the Internet Andrea Bianco Telecommunication Network Group Application taxonomy

CSC 4900 Computer Networks: Multimedia Applications

The Session Initiation Protocol

ITTC Communication Networks The University of Kansas EECS 780 Multimedia and Session Control

H.323. Definition. Overview. Topics

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Chapter 24. Transport-Layer Protocols

Department of Computer Science. Burapha University 6 SIP (I)

Topics in Computer Networking Switch SS7 PSTN/ISDN. Gatekeeper/ Proxy Server. Topics in Computer Networking Н.

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Outline. QoS routing in ad-hoc networks. Real-time traffic support. Classification of QoS approaches. QoS design choices

Multimedia Protocols. Foreleser: Carsten Griwodz Mai INF-3190: Multimedia Protocols

IP-Telephony Introduction

Outline Overview Multimedia Applications Signaling Protocols (SIP/SDP, SAP, H.323, MGCP) Streaming Protocols (RTP, RTSP, HTTP, etc.) QoS (RSVP, Diff-S

Security and Lawful Intercept In VoIP Networks. Manohar Mahavadi Centillium Communications Inc. Fremont, California

Introduction to Networked Multimedia An Introduction to RTP p. 3 A Brief History of Audio/Video Networking p. 4 Early Packet Voice and Video

Outline. Multimedia is different Real Time Protocol (RTP) Session Description Protocol (SDP) Session Initiation Protocol (SIP)

A common issue that affects the QoS of packetized audio is jitter. Voice data requires a constant packet interarrival rate at receivers to convert

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2006

Networking interview questions

Cisco ATA 191 Analog Telephone Adapter Overview

Medical Sensor Application Framework Based on IMS/SIP Platform

Computer Networks. Wenzhong Li. Nanjing University

CMPE 80N: Introduction to Networking and the Internet

Basic Architecture of H.323 C. Schlatter,

Real Time Protocols. Overview. Introduction. Tarik Cicic University of Oslo December IETF-suite of real-time protocols data transport:

Chapter 3: IP Multimedia Subsystems and Application-Level Signaling

Popular protocols for serving media

Advanced Communication Networks

Multimedia Communications

MULTIMEDIA I CSC 249 APRIL 26, Multimedia Classes of Applications Services Evolution of protocols

EEC-484/584 Computer Networks. Lecture 16. Wenbing Zhao

RTP/RTCP protocols. Introduction: What are RTP and RTCP?

Media Communications Internet Telephony and Teleconference

Stream Control Transmission Protocol - Wikipedia, the free encyclopedia


Need For Protocol Architecture

Internet Streaming Media

CSCD 433/533 Advanced Networks Fall Lecture 14 RTSP and Transport Protocols/ RTP

Different Layers Lecture 20

Internet Streaming Media

TODAY AGENDA. VOIP Mobile IP

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

Session Initiation Protocol (SIP)

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Transcription:

Summary of last time " " " Part 1: Lecture 3 Beyond TCP TCP congestion control Slow start Congestion avoidance. TCP options Window scale SACKS Colloquia: Multipath TCP Further improvements on congestion window growth IPv6 adoption rates Global scale measurement system Client browser Your list TCP You discuss with your colleague next to you what are the limitation of TCP stacks and make a list of suggestions for improvement. Header improvements. Fairness issues. Legacy application and failure of multiple links. 1

Limitations of TCP According to RFC 4960 Stream Control Transport Protocol: 1. Not everybody needs reliable data transfer and strict order-of-transmission delivery of data. 2. Streams may force application to mark boundaries of messages or PUSH to get whole messages delivered. 3. TCP sockets have limited scope and don t exploit nodes with multiple IP addresses for high available transfers. HOL - Head of line blocking 21 21 20 19 18 17 16 15 12 11 10 9 8 Cannot transmit data until the missing segments/bytes arrive. In TCP: multiple connections would create a fairness problem, as well as connection maintenance. 4. Vulnerability to SYN attacks The Transmission Control Block (TCB) is a transport protocol data structure (actually a set of structures in many operations systems) that holds all the information about a connection. SYN attacks Defences against TCP SYN flooding attacks (From the Internet Protocol Journal - Vol. 09 - Issue 04) TCP cookie and other measures Increasing the size of the TCP backlog Reducing the timer of the SYN-RECEIVED state SYN caches, using a smaller hash for holding the information SYN cookies TCB is encoded in sequence number and destroyed TCP Cookie Transactions (TCPCT) plus cookie plus cookie TCB is recovered from the sequence number in the ACK segment 2

Possible solutions Create completely new protocols. Provide reliability on top of UDP. Further tweak/improve TCP. See: Benno s lecture on Multipath TCP SCTP RFCs 4960 defines SCTP Stream Control Transmission Protocol SCTP SCTP Multi-homing New features Multi homing: increased resilience to network failures Multiple streams between endpoints Bundle of SCTP messages in one SCTP packet increase performance Every IP address of the peer is considered as a path. All paths are continuously supervised and initially confirmed. One path, the so called primary path, is used for initial data transmission. In the case of (timer based) retransmissions an alternate path is used. Loadsharing is not part of RFC 4960 but subject of ongoing research. Security features against flooding and attacks. 3

SCTP data transfer SCTP message format Multiplexing and demultiplexing for ordered delivery of messages. Only data sent within the same stream is delivered in sequence relative to that stream. This minimizes the impact of head of line blocking in case of message loss. SCTP packet SCTP Header SCTP Chunk SCTP Chunk SCTP Chunk Chunks may contain: 1. Control messages a. Applicable to the association b. Applicable to one of the streams 2. Data exchanged on a stream Header: 1. Identifies the association 2. Contains security and verification details SCTP header format SCTP chunk formats 16 bits 16 bits Source port Destination port Chunk type Chunk flags Chunk length Verification tag Checksum Data Padding Source and destination ports are the same as for the other IP transport protocols; The verification tag helps to protect from attacks; it allows to validate the sender. Data is interpreted according to the chunk type; Chunks for the whole association or for individual streams are processed in order 4

SCTP chunk types INIT, INIT-ACK, COOKIE-ECHO, COOKIE-ACK. HEARTBEAT, HEARTBEAT-ACK. DATA, SACK. SHUTDOWN-, SHUTDOWN-ACK, SHUTDOWNCOMPLETE. ERROR, ABORT. FORWARD-TSN. ASCONF, ASCONF-ACK. AUTH. SCTP Association Initiator INIT INIT-ACK COOKIE-ECHO COOKIE-ACK HEARTBEAT HEARTBEAT-ACK DATA SACK SHUTDOWN SHUTDOWN-ACK SCTP Association Responder SHUTDOWN-COMPLETE SCTP data The DATA chunk contains: TSN Transmission Sequence Number stream number stream sequence number Chunk type = 0 16 bits 16 bits Stream Identifier Chunk flags TSN Payload Protocol Identifier User data Chunk length Stream Sequence Number SCTP acks Availability and adoption Uses the selective acknowledgement idea from TCP: Cumulative TSN - transmission sequence number - plus gap acknowledgments blocks, for received data blocks. Received Received Received 34 Missing Missing 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 Integrated in FreeBSD 7. All recent recent Linux kernels. Integrated in Solaris 10. Available extension for MacOsX. Several commercial implementations. Integrated in almost all SS7 nodes. Adoption? Little. Acknowledgement Cumulative TSN = 36 Start gap ack offset = 4 End gap ack offset = 9 Start gap ack offset = 12 Endgap ack offset = 14 Want to know more? Want to play with it? http://www.sctp.de/ http://www.tdr.wiwi.uni-due.de/en/research/ research-projects/sctp/#sctp 5

Voice over IP VoIP and videoconferencing Voice and multimedia sessions over the Internet/ IP What s the main advantage? Lower costs than on PSTN. Devices Real-time interactive applications Softphones a software program for making telephone calls over the Internet VoIP phones PC to phone PC to PC In the future: Netbooks and smartphones, that support 5G handoff (IEEE 802.21) Allow roaming between 802.11 networks and (3G) cellular networks. Videoconference With webcam 6

Cumulative data Video conferencing Reduced travel costs Easier access to remote experts More personal than a voice conference Sampling at constant rate Which problems will you have? (How will transport the data over the network?) Streaming stored video: Delay and jitter 1. video recorded (e.g., 30 frames/sec) 2. video sent network delay (fixed in this example) 3. video received, played out at client (30 frames/sec) time streaming: at this time, client playing out early part of video, while server still sending later part of video 7

How does delay occur? Four sources of packet delays transmission A propagation packet needs to be processed packet needs to be transmitted B nodal processing queueing A B packet needs to travel on link packets needs to wait its turn queueing d trans : transmission delay: L: packet length (bits) R: link bandwidth (bps) d trans = L/R d trans and d prop very different d = d proc + d queue + d trans + d prop d prop : propagation delay: d: length of physical link s: propagation speed in medium (~2x10 8 m/sec in optical fiber) d prop = d/s Four sources of packet delay transmission A propagation End-to-end delay B nodal processing queueing d 1,R 1 d 2,R 2 d 3,R 3 d 4,R 4 d proc : nodal processing check bit errors determine output link typically < msec d = d proc + d queue + d trans + d prop d queue : queueing delay time waiting at output link for transmission depends on congestion level of router d = ( L i R i + d i s +Q i (t)) 8

Cumulative data Q(t) Q(t) and playout buffers Max tolerated delay Fraction of packets (PDF) Fraction of packets (PDF) Related to the size of the playout buffer at the receiving end Delay (msec) Delay (msec) Streaming stored video: revisited Loss tolerance constant bit rate video transmission variable network delay client playout delay client video reception buffered video constant bit rate video playout at client client-side buffering and playout delay: compensate for network-added delay, delay jitter time 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: 150 ms network loss: IP datagram lost due to network congestion (router buffer overflow) loss tolerance: depending on voice encoding, losses concealed, packet loss rates between 1% and 10% can be tolerated. 9

Test Pause In the PSTN SS7 TDM Call management Transport of voice/video Multimedia protocols at glance Call management SDP In the Internet Transport of voice/video SIP H.323 RTP RTCP TCP/SCTP RSVP UDP IPv4/IPv6 10

SIP versus RTP Initiate a session between two endpoints. Does not carry any voice or video data itself Transfer the traffic (voice or video) RTP Real-time Transport Protocol RTP is a top-up transport protocol used for real-time applications. Think of delivery of voice and video data: Lightweight. One single message Runs over another transport protocol It support multicast. Accompanied by RTCP - RTP Control Protocol: A management protocol Allows endpoints to exchange information about data flows Used by RTP to determine how to tune its behavior RTP features Runs on top of UDP: no guarantee of reliability no guarantee of packet ordering Payload contains the real-time media Header contains information related to the payload: the source, size, encoding type It uses timestamps, sequence numbering, and delivery confirmation for each packet sent. It supports error-correction schemes for increased robustness and basic security options for encrypting packets. 11

V P X CC M RTP header 16 bits 16 bits Payload type Sequence number Timestamp Synchronization Source Identifier First Contributing Source Identifier Second Contributing Source Identifier Last Contributing Source Identifier Sequence number A simple counter that starts at a random value when a session begins; It increments by one with each RTP message sent in that session; It provides a mechanism for the receiver to resequence packets that arrive out of order and to detect missing elements. Timestamp It carries the time index for the first sample of the RTP message. The receiver can use this field to reassemble the information stream with the appropriate timing. RTCP functions 1. Integrated media synchronization i.e. when video and audio are transmitted on different streams RTCP 2. QoS reports i.e. number of lost packets, jitters 3. Participation reports i.e. when a participant is leaving the call 4. Participation details i.e. information about the source, email address, sender names. 12

RTP RTCP Internet RTCP Overhead traffic 6976 6977 Internet 6970 6971 RTCP sender RTP RTCP RTCP receivers 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. RTCP port number = RTP port number +1 To limit traffic, each participant reduces RTCP traffic as number of conference participants increases. Typically 5% of the session bandwidth. RTCP message types SDES (Sender Descriptor) message: used by an application to join an RTP session; BYE message: used when an application leaves the session; SR (Sender Report) message RR (Receiver Report) message allow traffic monitoring; SIP APP (application) message 13

Session Initiation Protocol Session? SIP is described in RFC 3261 (2002) An application layer protocol used instead of SS7 to initiate and terminate voice and video calls over IP networks (VoIP) It is independent of the underlying transport protocol It can run on UDP, TCP, SCTP, RTP An exchange of data between an association of participants. Participants: may move between endpoints; may be addressable by multiple names; may communicate in several different media - sometimes simultaneously Call Control Application Media Application SIP RTCP RTP TCP SCTP UDP Internet endpoints (SIP user agents) discover one another and agree on a characterization of a session they would like to share. SDP SIP creates an infrastructure of network hosts (called SIP proxy servers) to which user agents can send registrations, invitations to sessions, and other requests. SIP supports: SIP identifiers Session management User location User availability SIP uses URI Universal Resource Identifiers - to identify the communicating resource. Two schemes are defined: Sip: Sips: When secure transmission is requires, i.e. SIP messages are transported over TLS Session setup User capabilities sip:user:password@host:port sip:user:password@host:port;uri-parameters?headers sip:alice@atlanta.com;transport=tcp sip:alice@192.0.2.4 14

SIP servers " Direct SIP call Distributed functions across servers or consolidated in one node: Proxy server Intermediary program that acts as both a UA (User Agent) server and UA client to make requests on behalf of other UA clients. Location server Redirect server Registrar server SIP call with proxy SIP messages Text based, with syntax similar to HTTP SIP request SIP response INVITE, ACK, BYE, CANCEL, OPTIONS, REGISTER, PRACK, SUBSCRIBE, NOTIFY, PUBLISH, INFO, REFER, MESSAGE, UPDATE 1xx Informational Responses 2xx Successful Responses 3xx Redirection Responses 4xx Client Failure Responses 5xx Server Failure Responses 6xx Global Failure Responses 15

Start line SIP headers A closer look Name translation and user location 1. caller wants to call callee, but only has callee s name or e-mail address. 2. need to get IP address of callee s current host: user moves around DHCP protocol user has different IP devices (PC, PDA, car device) Message body 3. result can be based on: time of day caller status of callee Registrar and Location Server Caller jim@umass.edu calls keith@upenn.edu Registrar: Registering the users and passing the information collected to the location server Location server: The entity in the SIP network that maintains the mapping between SIP addresses and IP address. 2 SIP registrar upenn.edu SIP registrar SIP proxy eurecom.fr umass.edu 1 3 4 7 5 8 6. 9 SIP client SIP client 197.87.54.21 217.123.56.89 16

H.323 history H.323 is another signaling protocol for real-time, interactive applications. H.323 1996: ITU-T1 published Version 1 of Recommendation H.323 in Visual Telephone Systems and Equipment for LANs which provide a non-guaranteed Quality of Service not designed for the Internet only local calls, small number of users 2009: current version Operates well on WANs Widely adopted also in large installations H.323 protocol stack H.323 components Gatekeeper MCU Terminal IP network Terminal Gateway 17

A Terminal is an endpoint which provides for real-time, two-way communications with another H. 323 terminal, GW, or MCU. This communication consists of speech only, speech and data, speech and video, or speech, data and video The MCU (Multipoint Control Unit) consists of: 1. a mandatory Multipoint Controller (MC) for call signaling, conference control 2. an optional Multipoint Processor (MP) switching/ mixing of media stream H.323 zones Endpoints do register themselves at a GK All H.323 endpoints registered to a single GK build an H.323 zone: H.323 zones are independent of physical network topology Each zone has only one GK (exception: Alternate GKs) A Gateway provides for realtime, two-way communications between terminals belonging to networks with different protocol stacks The Gatekeeper provides address translation and controls access to the network resources for H.323 terminals, GWs and MCUs Gatekeeper functionalities H.323 versus SIP 1. Address Translation Translates H.323 IDs (such as p.grosso@uva.nl) and E.164 numbers (0031205257533) to endpoint IP addresses 2. Admission control / bandwidth control Every call within the zone gets authorized by the GK Admission requests (destination address, bandwidth) sent to GK 3. Call control e.g. call transfer, call forwarding bus 18

Literature Home reading Chapter 7 Multimedia networking (for SIP and H.323) Chapter 7 Transport over IP (for SCTP and RTP) For the test on Apr. 12 read: DSCP URL: http://tools.ietf.org/html/rfc2474 (up to section 4.3 Summary included) 19