Streaming audio/video

CS3103-10-1.PNG

Streaming using a web server

CS3103-10-2.PNG

  • Browser makes a request for file
  • Response has the file
  • File is send to the media player

Streaming using webserver with metafile

CS3103-10-3.PNG

  • Client request webserver
  • Webserver sends more more details about the audio
  • metafile is sent to the media player
  • media player makes a seperate connection

Streaming using a media server

CS3103-10-4.PNG

  • Similiar
  • Media server just focus on serving the media player

Streaming using media server and rtsp

In the past: Can only stream data but cannot rewind forward etc etc.

  • RTSP : Real time stream protocol, provides the different calls such as record, option, play pause CS3103-10-5.PNG

Streaming live vs Stored audio/video

  • Stream live audio and video
    • Broadcasting of audio and video by radio and tv stations
  • There are several similarities between streaming stored audio/video and streaming live audio/video
    • Sensitive to delay
    • Neither can accept retransmission
    • There is a difference wherer in the first applicaiton, the communication is unicast and on demand. In the second the communication is multicast and live

Streaming real time interactive audio and video

  • In real time, interactive audio/video, people communicate with one another in real time
    • the internet phone or voice over IP is an example of this type of application
    • Video conferencing is another example that allows people to communciate visually and orally
    • Cloud games

Streaming: Arrive time = playtime

CS3103-10-6.PNG

  • Play as soon as packet comes
  • This looks perfect

Streaming: Arrive time = playtime and jitter

CS3103-10-7.PNG

  • THis is the accurate way
  • Jitter is introduce in real time data by the delay between packets

    The jitter cause the playback to not be constant, the play time cannot be the same as arrive time

Jitter: variation in delay

Streaming: Handling jitter with playback buffer in client

To hide and prevent jitter:

  • Timestamp the packets and separate the arrival time from the playback time
  • Use client side playback buffer
  • Add sequence number to packets

Question: How long to buffer? How to decide

  • Delay
  • Jitter
  • distance from server
  • packet loss

UDP and RTP

UDP:

  • More suitable than TCP for interactive traffic
  • RTP is used another transport layer protocol to make up for deficiencies of UDP

RTP:

  • Designed to handle real time traffic on the internet
  • RTP does not have delivery mechanism (Multicasting, port numbers etc)
  • Must be use with UDP
  • The main contribution of RTP are time stamping,seqeuncesing and mixing facilities
  • RTP uses a temp even number UDP port

RTP also uses a companion protocol RTCP which enables the sender to monitor hte netowrk condition and react CS3103-10-8.PNG

SIP

Application layer control protocol for creating modifying and terminating session with one or more participants

  • Voice
  • Video
  • Instant message

Follows http

VOip with SIP

  • Session initiation protcol: APplication layer signalling protocl for creating mdofiying and terminating session with one or more participants.
  • Can be use for voice video and isntant messaging, gaming
  • Follows on HTTP
    • Text base messaging
    • URI

CS3103-10-9.PNG

SIP Components:

  • Client: Make request
  • Servers: Accepts request

Server types:

  • Redirect server
  • Proxy server
  • Registrar server
  • Location server
  • Session border controller

Peer to peer

CS3103-10-10.PNG

  • Which is the audio video code
  • What is the codac

Method messages

CS3103-10-12.PNG

Responses

CS3103-10-13.PNG

  • 302: Redirection
  • 5xx: Server issues
  • 6xx: Global failure

Address format

CS3103-10-14.PNG

  • the registra will register all these under your account
  • People can call you using the email address, phone number etc

Simple flows

  • SDP infomation is present in the initial invite
  • RTP session can be establish using this

CS3103-10-15.PNG

Normally the SIP may or not have content

SIP flows Via proxy

CS3103-10-16.PNG

  1. When a client sends invitiation
  2. If we know ip, we can send directly, but most we dont know the ip address of the other side
    • Prob email id
    • Number
  3. Packet cannot be transmitted directly
  4. Takes the email if the user is login, send a registra command to register the ip address
  5. Establish the connection to the other side (Server)
  6. Ring will foward to the user A
  7. User a ack and just call directly

NOtice in 7, the communication is direct.. the sip server only using for directing

REGISTER WITH THE SERVER

  • SIP clients always connect to a sip server which in turn connects to destination by converting SIP address to IP address

  • All clients should register with SIP server with its current IP address when they login.

    • SIP server should have REGISTRAR compoennt

Log in to two devices

  • If someone calls me, server knows that you are log in
  • Which device does the server forward to
  • Answer: All

SIP flows via proxy: Tracking the callee

As client base increases, we want to divide the functionalities, the proxy server will be the one that does the lookup to the registra isntead of caller direclty to the register

CS3103-10-17.PNG

There is also security we have to worry about

SIP Trapezoid

  • To which the proxy server us ocnnect
  • find from dns (potentional proxy search)
  • send to porxy CS3103-10-18.PNG

Registra is a service that tells the infomatin of the user using the database

Registra is a process and the data is stored int he location server

SIP triangle

CS3103-10-19.PNG

SIP flows: Gateway

CS3103-10-20.PNG

  • message goes through a gateway before reaching the other side

This is for crossing to another protocol, but the router needs to have this installed already

SDP: Session description protocol

  • Intended for describing multimedia session for the purpose of session announcement session ivnitation and other forms of multimedia session initiation

Includes:

  • Types of media
  • Transport protocol
  • Format of the media
  • Infomation to recieve those media (Address ports formats and so on)

CODEC

CS3103-10-21.PNG

H323

  • Telco companies use this and not SIP
  • Recommendation covers the technical requriements for multimedia communciation system in a packet based network
  • Defined for video conferencing
    • Terminals: Endpoints that enable real time voice or video communcation
    • MCU/MC/MPs: Multipoints controller units which includes multipoint controller and one or severalk multipoints processors that enable managed multipoint conferences
    • Gateways: Intercommuncation between ip networks and legacy switch circuit networks such as ISDN and PSTN
    • Gatekeepers: Perform the roles of central managersw of voIP services to the aend points, Mandatory functionalities includes address resolution, authentiation, service authentication

Architecture

CS3103-10-22.PNG

  • Gatekeeper: Register that keep track which ip address is to which device

Protocol

CS3103-10-23.PNG

Flows - Via gateway

CS3103-10-24.PNG

SIP and H323 communcication

  • Needs another gateway from SIP user agent to H323 terminal Choose who?
  • SIP is newer than H323
  • SIP provides a similiar set of services to h323 but provides far lower complexity, rich extensibility and better scalabilitiy
  • Use of SIP is rapidly increased in Telco networks with IP multimedia ssubsystem (IMS). IMS uses many existing IETF protocols

SLides