SlideShare uma empresa Scribd logo
1 de 52
Distributed Operating System




                                  Presented By
                                  Ahlam Ansari



                   Ahlam Ansari                  1
ABSTRACT
•In today’s world streaming media plays a vital role, with the advanced
technologies recently developed in the areas of high-speed networks and
multimedia, video-on- demand service (VOD) is considered as the emerging
trend in home entertainment, as well as in education, banking, home
shopping, and interactive games. Better quality video, as well as efficient way
to send and receive them is necessary. Streaming media is multimedia that is
constantly received by and presented to an end-user while being delivered by
a streaming provider. With streaming, the client browser or plug-in can start
displaying the data before the entire file has been transmitted. Quality of
video, streaming time of video and the streaming protocols that we use for
make a lot of difference. Hence we present two different types of streaming
media protocols, HTTP Live Streaming (HLS) and Real Time Streaming Protocol
(RTSP) and their comparison, a DoS resilient self healing video architecture to
provide a better quality video and a survey on different VoD Batching
techniques.
.

                                  Ahlam Ansari                              2
INTRODUCTION

•HTTP Live Streaming (HLS) is an HTTP-based media streaming communications
protocol implemented by Apple Inc.

It works by breaking the overall stream into a sequence of small HTTP-based file
downloads, each download loading one short chunk of an overall potentially
unbounded transport stream.




                                    Ahlam Ansari                              3
The Real Time Streaming Protocol (RTSP) is a network control protocol designed
for use in entertainment and communications systems to control streaming media
servers.

RTSP was developed by the Multiparty Multimedia Session Control Working
Group (MMUSIC WG) of the Internet Engineering Task Force (IETF)




                                   Ahlam Ansari                            4
Video request is delayed for a period of time so that more requests for the same
video are collected. The batch of requests is then served by a multicast video
stream.

The major drawback of this scheme is that the customers have to wait for a
batching interval until the video is started to play. Hence, it may increase the
customer dissatisfaction if the waiting interval is too long.




                                       Ahlam Ansari                                5
STREAMING PROTOCOLS

        Ahlam Ansari   6
HLS ARCHITECTURE




               Ahlam Ansari   7
1. Media Encoder:

The Encoder encodes the video/audio. Videos are compressed into H.264/MPEG-4
format and the audio is encoded using advance audio coding. The video or audio
format is encapsulated in MPEG 2.
Transport Stream is specified in MPEG-2 Part 1, Systems (formally known as
ISO/IEC standard 13818-1 or ITU-T Rec. H.222.0) [3][4][5]. Transport stream
specifies a container format encapsulating packetized elementary streams, with
error correction and stream synchronization features for maintaining transmission
integrity when the signal is degraded.
Program stream is a container format for storage applications specified in MPEG-1
Systems and MPEG-2 Part 1. A program stream contains only one content channel
and is suited to authoring and storage not broadcasting. Contrast with transport
stream, which is designed to address the delivery of the content.



                                    Ahlam Ansari                              8
2. Stream Segmenter

The Segmenter segments the video/audio in small duration segmentation. All the
segments are placed in separate files. For protection purpose, the Segmenter
might encrypt the segments and create a key file.




                                   Ahlam Ansari                             9
3. Distribution System

Distributed System is a regular HTTP Server. It could be Apache or any embedded
server. Segments are stored with .ts extension and the index files are stored
with .m3u8 extension. The file format of index is as follows:




                                    Ahlam Ansari                             10
4. Client:
The client gets all the videos or audios through a HTTP connection. HTTP creates a session
between the client and the file at the DS. The session can be either a Live Stream Broadcast
session or a Video on Demand Session.

         A) Live Stream Broadcast Session
                    LSD contains an index file that is dynamic in type and is continuously
                    updated and refreshed. It includes a moving window of segments.

         B) Video on Demand Session
                   VoD contains an index file that is static in type and it contains all the
                   segments of the file. [2]




                                           Ahlam Ansari                                        11
Deploying HTTP Live Streaming

Step 1: Creating a HTML Page
Step 2: Configuring a Web Server
Step 3: Validating the Streams
Step 4: downloade video / audio at client side




                           Ahlam Ansari          12
Step 1: Creating a HTML Page
The easiest way to distribute HTTP Live Streaming media is to create a webpage that
includes the HTML5 <video> tag, using an .M3U8 playlist file as the video source. An
example is shown below:

<html>
<head>
  <title>HTTP Live Streaming Example</title>
</head>
<body>
  <video
    src="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"
    height="300" width="400" >
  </video>
</body>
</html>




                                         Ahlam Ansari                                  13
Step 2: Configuring a Web Server
•HTTP Live Streaming can be served from an ordinary web server; no special
configuration is necessary, apart from associating the MIME types of the files
being served with their file extensions.
Configure the following MIME types for HTTP Live Streaming:


   File Extension        MIME Type

   .M3U8                 application/x-mpegURL or vnd.apple.mpegURL

   .ts                   video/MP2T




                                      Ahlam Ansari                               14
Step 3: Validating the Streams

•The media stream validator tool is a command-line utility for validating HTTP Live
Streaming streams and servers . The media stream validator simulates an HTTP
Live Streaming session and verifies that the index file and media segments
conform to the HTTP Live Streaming specification. It performs several checks to
ensure reliable streaming. If any errors or problems are found, a detailed
diagnostic report is displayed.
 You should always run the validator prior to serving a new stream or alternate
stream set. The media stream validator shows a listing of the streams you provide,
followed by the timing results for each of those streams. (It may take a few
minutes to calculate the actual timing.) An example of validator output follows.




                                     Ahlam Ansari                             15
•Validating
http://devimages.apple.com/iphone/samples/bipbop/gear3/prog_index.m3u8
against iPhone OS 3.1.0

Average segment duration: 8.77 seconds
Average segment bitrate: 510.05 kbit/s
Average segment structural overhead: 96.37 kbit/s (18.89 %)

Video codec: avc1
Video resolution: 480x360 pixels
Video frame rate: 29.97 fps
Average video bitrate: 407.76 kbit/s
H.264 profile: Baseline
H.264 level: 2.1

Audio codec: aac
Audio sample rate: 22050 Hz
Average audio bitrate: 5.93 kbit/s     Ahlam Ansari                      16
Step 4: Download video/audio at client side

How actually the video / audio is downloaded at client side [8]
1. Download the wowza URL (playlist)
2. Display the contents of the file
3. Download the first/second playlist url
4. Display the contents
5. wget the key URL
6. wget the ts file sequence
If the file is encrypted
7. Hexdump the key
8. Using calc get the HEXADECIMAL Value of "MEDIA-SEQUENCE", to get IV -> 95 =

   5F using openssl decrypt the file
9. Now play the file "decr_tmp.ts" using "VLC media player"


                                    Ahlam Ansari                          17
RTSP vs. HTTP

Interoperability

RTSP is an interoperability disaster. None of the three big commercial
implementations seem to abide by the standard (Microsoft Windows Media,
Apple/Darwin and RealMedia), and writing a client stack that can handle all of
them, plus the open-source servers properly, is tough to say the least.

HLS is widely interoperable. It has countless implementations both on the server
and client sides. It has Apache as a de facto reference implementation that every
client can interoperate with.




                                     Ahlam Ansari                                18
•Transport Layer Protocol
RTSP uses UDP
HTTP uses TCP




•Seeking

RTSP, the server takes care of it
With HLS, client will probably be the one




                                     Ahlam Ansari   19
• Play and Pause

RTSP does have built-in PLAY and PAUSE commands, which namely respectively
play and pause the media.

There are several ways you can pause a stream with HTTP:
 . Stop de-queuing data from the TCP session, and let the TCP stacks handle pause

  with TCP congestion control, until you want to resume,
  . Shutdown/reset the TCP session to pause, and start a new one to resume




                                    Ahlam Ansari                             20
•Congestion

In case of network congestion or packet loss, RTSP will cause part of the stream to be lost.

In case of network congestion or packet loss, HLS will never cause part of the stream to be
lost.


•You Tube

RTSP is used in YouTube Mobile.
HLS is used on You Tube main site.




                                          Ahlam Ansari                                   21
•Reliability
RTSP only carries the signaling reliably.
HTTP conveys both signaling and payload reliably.



 •NAT Traversal
 RTSP just does not work, without ugly TCP encapsulation that makes it look like HTTP.

 HLS just works through Network address translation




                                        Ahlam Ansari                                     22
•Firewall traversal

Not so many firewalls handle or allow RTSP. RTSP has theoretical firewall traversal
capability.

HLS goes through almost any firewall. Even from tightly restricted Intranets, you
can always find an outgoing HTTP proxy to use.




                                     Ahlam Ansari                              23
VoD BATCHING
     Ahlam Ansari   24
Basic Video-on-Demand (VoD) System




                  Ahlam Ansari       25
•I n the basic architecture of a VoD system consists of:
          Video Encoder
          Video Server
          Directory Server
          Client
          Network

The Network connects all the other VoD system components together as they are
distributed geographically. The encoder accepts the video input and then uploads it on the
video server after compressing/encoding the video stream received. The video server is a
server with huge amount of disk space to accommodate day by day increasing videos in
segments, not as a single file. The directory server keeps the index file which points to all
the segments of those videos in video server, and these videos are published to the client so
that they can access it. The figure below shows the architecture of basic VoD system.



                                          Ahlam Ansari                                  26
Types of Streaming

1. Realtime
The data have a pre-determined sequence and time of presentation.
For example, video and audio.


2. Non-Realtime
The data does not have presentation time requirement.
For example, progressive JPEG.




                             Ahlam Ansari                     27
Types of Video Services

1. Broadcast / Multicast Video

2. Near-Video-on-Demand

3. True Video-on-Demand




                          Ahlam Ansari   28
Broadcast / Multicast Video




                  Ahlam Ansari   29
•The multicast facility of modern communication networks [12] offers an efficient
means of one-to-many data transmission. The basic idea is to avoid retransmitting
the same packet more than once on each link of the network by having branch
routers duplicate and then send the packet over multiple downstream branches.
Multicast can significantly improve the VoD performance.
Passive receive with no control except selecting the channels. One channel is
needed per movie / programme.




                                    Ahlam Ansari                             30
Near-Video-on-Demand




               Ahlam Ansari   31
•Near video on demand is a video delivery service that allows a customer to select
from a limited number of broadcast video channels when they are broadcast.
NVOD channels have pre-designated schedule times and are used for pay-per-view
services. Passive receive with limited controls. System response time inversely
proportional to number of required channels [12].




                                    Ahlam Ansari                             32
True Video-on-Demand




               Ahlam Ansari   33
•True Video-on-Demand system uses one dedicated channel for each service
request, offering the client the best TVoD service. However, such a system incurs
very high costs, especially in terms of storage-I/O and network bandwidths. Full
interactive controls, like pause/resume, seeking, fast forward, etc .




                                     Ahlam Ansari                             34
Comparisons

                  Broadcast Video                                            True Video-on-
                                            Near-Video-on-Demand                Demand
                                                (Pay-Per-View)
                 Yes, but limited to a      Yes, but limited to a few
Select video?                                                                      Yes
                    few channels                  programmes

Select time to
                         No              Yes (limited to fixed time slots)      Anytime
   watch?

 Interactive?            No                     None or very little          VCR-like control

No. of Viewers        Unlimited                          Unlimited               Limited

Cost / Viewer            Low                             Medium                   High



                                          Ahlam Ansari                                     35
LITERATURE SURVERY

Some authors have worked on reducing the start-up delay in
multicast delivery systems as the major problem with the batching
approach is that it introduces a significant start-up delay to the
customer, which in fact contradicts the idea of on-demand service.




                               Ahlam Ansari                      36
Batching policy for video-on-demand in multicast environment
W.-F. Poon, K.-T. Lo and J. Feng Says:


•Piggybacking approach
It merges different requests together by adjusting the play-out rate of the videos
so as to reduce the start-up delay of the system. The greedy policy attempts to
merge the requests as many times as possible during the entire video session in
order to save more bandwidth.

If the play-out rate is adjusted in real time, a specialized hardware is required to
keep up with the demand. If a replica of the video is generated in advance, since it
is possible that requests can be merged during the entire video session, very large
disk storage is required at the server side.




                                     Ahlam Ansari                               37
•Double-rate (DR) batching policy
 
 Considering the waiting time (conventional batching approach) of the customers
and the complexity (piggybacking approach) of the VoD system, we develop a
double-rate (DR) batching scheme that attempts to merge the customer requests
in an improvised manner by means of buffering. Instead of changing the play-out
rate of the video, we double the transmission rate so that the trailing customers
are able to catch up with the leading customer. Once the transmitting frames of
the customers are the same, they are grouped together and served by a multicast
stream.

A new batching scheme has been proposed to reduce the start-up delay of VoD
services in a multicast delivery system. When a new customer arrives, a unicast
stream is immediately opened for the new request so that the customer does not
have to wait. The transmission rate is then doubled so that the customer can catch
up with the previous multicast stream.

                                    Ahlam Ansari                              38
Advantage:
A new batching scheme has been proposed to reduce the start-up delay of VoD
services in a multicast delivery system. When a new customer arrives, a unicast
stream is immediately
opened for the new request so that the customer does not have to wait. The
transmission rate is then doubled so that the customer can catch up with the
previous multicast stream.

Drawback:
It is shown that the DR batching scheme outperforms the greedy policy of the
piggybacking approach only in terms of the bandwidth requirement. As it has fixed
batching time, popularity of the movies affects the performance of the VoD
system.



                                    Ahlam Ansari                              39
Adaptive Batching Scheme for Multicast Video-On-Demand Systems
W.-F. Poon, K.-T. Lo, Member, IEEE, and J. Feng, Member, IEEE says:



•An adaptive algorithm is developed for providing true video on demand (VoD)
services in multicast environment. If the batching time is wrongly estimated, the
performance of the system will be greatly degraded. This algorithm tries to
dynamically find the optimal batching time by the newly updated arrival rate so as
to minimize the bandwidth requirement.
Adaptive algorithm enhances the double-rate batching policy so that the
popularity of the movies will not affect the performance of the VoD system as the
batching time can be adjusted.




                                     Ahlam Ansari                             40
•Advantage:
Adaptive algorithm enhances the double-rate batching policy so that the
popularity of the movies will not affect the performance of the VoD system as the
batching time can be adjusted.

Drawback:
If the batching time is wrongly estimated, the performance of the system will be
greatly degraded.




                                     Ahlam Ansari                             41
Virtual Batching: A New Scheduling Technique for Video-On-Demand Servers
Simon Sheu and Kien A. Hua and Ta-Hsiung Hu says:



•In a video-on-demand (VOD) environment, batching of requests is often applied
to reduce the I/O demand and increase the availability of VOD services. However,
batching unfairly forces first comers to wait for subscribers arriving late at the
batch. Some of these victims may become impatient and decide to renege. To
address this issue, we introduce a chaining technique which allows a client station
being served to forward its video data to other client stations, which requested
the same video, at a slightly later time.
Thus, chaining enjoys the benefit of batching without its side effect of causing long
access latencies. By combining batching and chaining, we also design a scheme
called Virtual Batching.
This property reduces the service latencies and therefore improves the reneging
probability. This characteristic addresses the network-I/O bottleneck problem
facing today’s media servers.


                                      Ahlam Ansari                              42
•Advantage:
First comers no longer have to wait for requests arriving late at the batch. This
property reduces the service latencies and therefore improves the reneging
probability. This characteristic addresses the network-I/O bottleneck problem
facing today’s media servers.

Drawback:
This policy makes use of Batching as well as Chaining hence it is more complex.
The clients should also have chaining and forwarding mechanism in order to
implement Virtual Batching policy.




                                      Ahlam Ansari                                  43
DoS RESILIENCE SELF
HEALING ARCHITECTURE

        Ahlam Ansari   44
Ahlam Ansari   45
•The self-healing architecture comprises of four main components: performance 
analyzer, repair planner, sensors and effectors. The performance analyzer takes:
(1) server performance parameters collected by sensors to detect performance
degradation; and (2) service parameters collected from synthetic sessions
established with the server. It detects performance degradation and pinpoints the
resources responsible for these anomalous states. The repair planner takes
notifications issued by the performance analyzer, decides the best repair action to
be executed (e.g., session migration and protocol-level redirection of sessions) and
plans the repair to be executed by effectors.




                                     Ahlam Ansari                              46
•Sensors are responsible for collecting performance parameters. Two types of
sensors are devised server-side: (1) pace sensors; and (2) resource sensors. Pace 
sensors capture delays on accomplishment of scheduling of video content. The
unit of scheduled work depends on server implementations and streaming
protocols. In RTSP streaming the packet is the unit of work to be scheduled and
transmitted. Other video standards require coarse-grain performance metrics at
server: HTTP Streaming and HTTP Adaptive streaming. They fragment video
objects into slices that are selectively requested by clients and downloaded
similarly to other web objects.




                                     Ahlam Ansari                               47
Conclusion


•YouTube uses HTTP/TCP to buffer video into the flash player on its main site. The
video is stored on Google Video's content distribution network. It's not streamed
as much as just sent as fast as possible to your computer. However, for 3g mobile
handsets, m.youtube.com uses RTSP to stream video. So, YouTube uses both
transfer methods [10]. Another thing to consider is that YouTube is popular
because "it just works". RTSP isn't always supported well through routers, which
would prevent that for use on the desktop. Also, m.youtube.com doesn't stream
the same video file as youtube.com. Most YouTube videos are not streamed, but
progressively download over HTTP. A small number of partner videos are securely
streamed, using RTMPE.




                                     Ahlam Ansari                             48
•DR batching scheme reduce the start-up delay of VoD services in a multicast delivery
system. When a new customer arrives, a unicast stream is immediately opened for the new
request so that the customer does not have to wait. The transmission rate is then doubled
so that the customer can catch up with the previous multicast stream.

Adaptive batching scheme enhances the double-rate batching policy so that the popularity
of the movies will not affect the performance of the VoD system as the batching time can
be adjusted.

Virtual Batching scheme generalize the conventional batching methods to allow requests
arriving at a virtual batch to receive immediate services. First comers no longer have to wait
for requests arriving late at the batch. This property reduces the service latencies and
therefore improves the reneging probability. This characteristic addresses the network-I/O
bottleneck problem facing today’s media servers.




                                          Ahlam Ansari                                   49
Reference
[1] Http://develpr.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/
StreamingMediaGuide/Introduction/Introduction.html

[2] http://www.slideshare.net/DSPIP/apples-live-http-streaming

[3] ITU-T (2006-05). "H.222.0 Summary". Retrieved 2010-06-03.

[4] ITU-T. "H.222.0 : Information technology - Generic coding of moving pictures and
associated audio information: Systems". Retrieved 2010-06-03.

[5] ISO/IEC 13818-1:2000 - Information technology -- Generic coding of moving pictures and
                       audio information: Systems, neuron2.net, 2000-12-01, retrieved
2010-06-03

[6] http://www.remlab.net/op/vod.shtml




                                       Ahlam Ansari                                    50
[7]
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/
StreamingMediaGuide/DeployingHTTPLiveStreaming/DeployingHTTPLiveStreaming.html
%23//apple_ref/doc/uid/TP40008332-CH2-DontLinkElementID_29

[8] http://www.wowza.com/forums/showthread.php?13363-Is-it-possible-to-deploy-Apple-
HTTP-Live-streaming-(HLS)-encryption-on-wowza-server/page2
[9] Carlos A S Cunha, “Application of a Self-Healing Video-Streaming Architecture to RTSP
Servers”, 2011 IEEE International Symposium on Network Computing and Applications.

[10] http://answers.yahoo.com/question/index?qid=20071126005233AA4h3Ox

[11] W.-F. Poon, K.-T. Lo and J. Feng, “Batching policy for video-on-demand in multicast
environment”, ELECTRONICS LETTERS 20th July 2000 Vol. 36 No. 15

[12] Huadong Ma and Kang G. Shin, ”Multicast Video-on-Demand Services”, ACM
SIGCOMM


                                         Ahlam Ansari                                      51
THANK YOU
For your Attendance and Attention




               Ahlam Ansari         52

Mais conteúdo relacionado

Mais procurados

Streaming Media Protocols
Streaming Media ProtocolsStreaming Media Protocols
Streaming Media Protocolssanjoysanyal
 
Project Paper
Project PaperProject Paper
Project PaperVideoguy
 
Network updater4 0releasenotesissue1
Network updater4 0releasenotesissue1Network updater4 0releasenotesissue1
Network updater4 0releasenotesissue1Advantec Distribution
 
Scalable Service Oriented Architecture for Audio/Video ...
Scalable Service Oriented Architecture for Audio/Video ...Scalable Service Oriented Architecture for Audio/Video ...
Scalable Service Oriented Architecture for Audio/Video ...Videoguy
 
InMotion Web Conferencing
InMotion Web ConferencingInMotion Web Conferencing
InMotion Web ConferencingVideoguy
 
Session Initiation Protocol
Session Initiation ProtocolSession Initiation Protocol
Session Initiation ProtocolMatt Bynum
 
Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1Barry Hesk
 
Embedded Android Real-Time Streaming Optimization
Embedded Android Real-Time Streaming OptimizationEmbedded Android Real-Time Streaming Optimization
Embedded Android Real-Time Streaming OptimizationVIA Embedded
 
Video quality testing
Video quality testingVideo quality testing
Video quality testingYoss Cohen
 
SIP (Session Initiation Protocol)
SIP (Session Initiation Protocol)SIP (Session Initiation Protocol)
SIP (Session Initiation Protocol)KHNOG
 
Matthew Kaufman Future Of Communication With Rtmfp Final Revised
Matthew Kaufman Future Of Communication With Rtmfp Final RevisedMatthew Kaufman Future Of Communication With Rtmfp Final Revised
Matthew Kaufman Future Of Communication With Rtmfp Final Revisedstoem
 

Mais procurados (18)

Streaming Media Protocols
Streaming Media ProtocolsStreaming Media Protocols
Streaming Media Protocols
 
Project Paper
Project PaperProject Paper
Project Paper
 
FMS 3.5
FMS 3.5FMS 3.5
FMS 3.5
 
Network updater4 0releasenotesissue1
Network updater4 0releasenotesissue1Network updater4 0releasenotesissue1
Network updater4 0releasenotesissue1
 
Scalable Service Oriented Architecture for Audio/Video ...
Scalable Service Oriented Architecture for Audio/Video ...Scalable Service Oriented Architecture for Audio/Video ...
Scalable Service Oriented Architecture for Audio/Video ...
 
Streaming multimedia
Streaming multimediaStreaming multimedia
Streaming multimedia
 
Whatsup
WhatsupWhatsup
Whatsup
 
InMotion Web Conferencing
InMotion Web ConferencingInMotion Web Conferencing
InMotion Web Conferencing
 
RTCP
RTCPRTCP
RTCP
 
Slide
SlideSlide
Slide
 
Session Initiation Protocol
Session Initiation ProtocolSession Initiation Protocol
Session Initiation Protocol
 
Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1
 
Embedded Android Real-Time Streaming Optimization
Embedded Android Real-Time Streaming OptimizationEmbedded Android Real-Time Streaming Optimization
Embedded Android Real-Time Streaming Optimization
 
SIP security in IP telephony
SIP security in IP telephonySIP security in IP telephony
SIP security in IP telephony
 
Video quality testing
Video quality testingVideo quality testing
Video quality testing
 
SIP (Session Initiation Protocol)
SIP (Session Initiation Protocol)SIP (Session Initiation Protocol)
SIP (Session Initiation Protocol)
 
Matthew Kaufman Future Of Communication With Rtmfp Final Revised
Matthew Kaufman Future Of Communication With Rtmfp Final RevisedMatthew Kaufman Future Of Communication With Rtmfp Final Revised
Matthew Kaufman Future Of Communication With Rtmfp Final Revised
 
What is rtmp
What is rtmpWhat is rtmp
What is rtmp
 

Semelhante a Dos presentation by ahlam shakeel

Approaches to Building Media Streaming Applications
Approaches to Building Media Streaming ApplicationsApproaches to Building Media Streaming Applications
Approaches to Building Media Streaming ApplicationsGlobalLogic Ukraine
 
Sara and jacqui's steaming video project
Sara and jacqui's steaming video projectSara and jacqui's steaming video project
Sara and jacqui's steaming video projectsaralorenz17
 
Video Streaming
Video StreamingVideo Streaming
Video StreamingVideoguy
 
Apple's live http streaming
Apple's live http streamingApple's live http streaming
Apple's live http streamingYoss Cohen
 
Streaming video to html
Streaming video to htmlStreaming video to html
Streaming video to htmljeff tapper
 
MPEG DASH White Paper
MPEG DASH White PaperMPEG DASH White Paper
MPEG DASH White Paperidrajeev
 
Building video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media ServicesBuilding video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media ServicesMingfei Yan
 
Paper id 28201439
Paper id 28201439Paper id 28201439
Paper id 28201439IJRAT
 
Multimedia networking
Multimedia networkingMultimedia networking
Multimedia networkingKikima Jimmy
 
International Journal of Computational Engineering Research(IJCER)
 International Journal of Computational Engineering Research(IJCER)  International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER) ijceronline
 
IRJET- Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...
IRJET-  	  Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...IRJET-  	  Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...
IRJET- Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...IRJET Journal
 
Videostream compression in iOS
Videostream compression in iOSVideostream compression in iOS
Videostream compression in iOS*instinctools
 
PackeTV® Mobile Whitepaper
PackeTV® Mobile WhitepaperPackeTV® Mobile Whitepaper
PackeTV® Mobile WhitepaperAndrew Lemert
 

Semelhante a Dos presentation by ahlam shakeel (20)

Approaches to Building Media Streaming Applications
Approaches to Building Media Streaming ApplicationsApproaches to Building Media Streaming Applications
Approaches to Building Media Streaming Applications
 
Computer Networking
Computer NetworkingComputer Networking
Computer Networking
 
Sara and jacqui's steaming video project
Sara and jacqui's steaming video projectSara and jacqui's steaming video project
Sara and jacqui's steaming video project
 
Video Streaming
Video StreamingVideo Streaming
Video Streaming
 
Multimedia Streaming Architecture
Multimedia Streaming ArchitectureMultimedia Streaming Architecture
Multimedia Streaming Architecture
 
Apple's live http streaming
Apple's live http streamingApple's live http streaming
Apple's live http streaming
 
Streaming video to html
Streaming video to htmlStreaming video to html
Streaming video to html
 
MPEG DASH White Paper
MPEG DASH White PaperMPEG DASH White Paper
MPEG DASH White Paper
 
Rtsp
RtspRtsp
Rtsp
 
Building video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media ServicesBuilding video application on windows 8 with Windows Azure Media Services
Building video application on windows 8 with Windows Azure Media Services
 
WEEK 1
WEEK 1WEEK 1
WEEK 1
 
Paper id 28201439
Paper id 28201439Paper id 28201439
Paper id 28201439
 
Multimedia networking
Multimedia networkingMultimedia networking
Multimedia networking
 
International Journal of Computational Engineering Research(IJCER)
 International Journal of Computational Engineering Research(IJCER)  International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Last videoppt
Last videopptLast videoppt
Last videoppt
 
IRJET- Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...
IRJET-  	  Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...IRJET-  	  Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...
IRJET- Protected Adaptive Bitrate Streaming using HTTP Live Streaming and...
 
Videostream compression in iOS
Videostream compression in iOSVideostream compression in iOS
Videostream compression in iOS
 
PackeTV® Mobile Whitepaper
PackeTV® Mobile WhitepaperPackeTV® Mobile Whitepaper
PackeTV® Mobile Whitepaper
 
Streaming with Varnish
Streaming with VarnishStreaming with Varnish
Streaming with Varnish
 
Podcasting
PodcastingPodcasting
Podcasting
 

Mais de أحلام انصارى

An Enhanced Independent Component-Based Human Facial Expression Recognition ...
An Enhanced Independent Component-Based Human Facial Expression Recognition  ...An Enhanced Independent Component-Based Human Facial Expression Recognition  ...
An Enhanced Independent Component-Based Human Facial Expression Recognition ...أحلام انصارى
 
Intention recognition for dynamic role exchange in haptic
Intention recognition for dynamic role exchange in hapticIntention recognition for dynamic role exchange in haptic
Intention recognition for dynamic role exchange in hapticأحلام انصارى
 
Noise Adaptive Training for Robust Automatic Speech Recognition
Noise Adaptive Training for Robust Automatic Speech RecognitionNoise Adaptive Training for Robust Automatic Speech Recognition
Noise Adaptive Training for Robust Automatic Speech Recognitionأحلام انصارى
 
Human behaviour analysis based on New motion descriptor
Human behaviour analysis based on New motion descriptorHuman behaviour analysis based on New motion descriptor
Human behaviour analysis based on New motion descriptorأحلام انصارى
 
Recognizing Human-Object Interactions in Still Images by Modeling the Mutual ...
Recognizing Human-Object Interactions inStill Images by Modeling the Mutual ...Recognizing Human-Object Interactions inStill Images by Modeling the Mutual ...
Recognizing Human-Object Interactions in Still Images by Modeling the Mutual ...أحلام انصارى
 
Multimodal Biometric Human Recognition for Perceptual Human–Computer Interaction
Multimodal Biometric Human Recognition for Perceptual Human–Computer InteractionMultimodal Biometric Human Recognition for Perceptual Human–Computer Interaction
Multimodal Biometric Human Recognition for Perceptual Human–Computer Interactionأحلام انصارى
 
Html5 offers 5 times better ways to hijack the website
Html5 offers 5 times better ways to hijack the website Html5 offers 5 times better ways to hijack the website
Html5 offers 5 times better ways to hijack the website أحلام انصارى
 
Operating system vulnerability and control
Operating system vulnerability and control Operating system vulnerability and control
Operating system vulnerability and control أحلام انصارى
 

Mais de أحلام انصارى (20)

An Enhanced Independent Component-Based Human Facial Expression Recognition ...
An Enhanced Independent Component-Based Human Facial Expression Recognition  ...An Enhanced Independent Component-Based Human Facial Expression Recognition  ...
An Enhanced Independent Component-Based Human Facial Expression Recognition ...
 
Intention recognition for dynamic role exchange in haptic
Intention recognition for dynamic role exchange in hapticIntention recognition for dynamic role exchange in haptic
Intention recognition for dynamic role exchange in haptic
 
Noise Adaptive Training for Robust Automatic Speech Recognition
Noise Adaptive Training for Robust Automatic Speech RecognitionNoise Adaptive Training for Robust Automatic Speech Recognition
Noise Adaptive Training for Robust Automatic Speech Recognition
 
Human behaviour analysis based on New motion descriptor
Human behaviour analysis based on New motion descriptorHuman behaviour analysis based on New motion descriptor
Human behaviour analysis based on New motion descriptor
 
Recognizing Human-Object Interactions in Still Images by Modeling the Mutual ...
Recognizing Human-Object Interactions inStill Images by Modeling the Mutual ...Recognizing Human-Object Interactions inStill Images by Modeling the Mutual ...
Recognizing Human-Object Interactions in Still Images by Modeling the Mutual ...
 
Multimodal Biometric Human Recognition for Perceptual Human–Computer Interaction
Multimodal Biometric Human Recognition for Perceptual Human–Computer InteractionMultimodal Biometric Human Recognition for Perceptual Human–Computer Interaction
Multimodal Biometric Human Recognition for Perceptual Human–Computer Interaction
 
Security issues in cloud database
Security  issues  in cloud   database Security  issues  in cloud   database
Security issues in cloud database
 
Html5 offers 5 times better ways to hijack the website
Html5 offers 5 times better ways to hijack the website Html5 offers 5 times better ways to hijack the website
Html5 offers 5 times better ways to hijack the website
 
Honey pot in cloud computing
Honey pot in cloud computingHoney pot in cloud computing
Honey pot in cloud computing
 
grid authentication
grid authenticationgrid authentication
grid authentication
 
Security As A Service In Cloud(SECaaS)
Security As A Service In Cloud(SECaaS)Security As A Service In Cloud(SECaaS)
Security As A Service In Cloud(SECaaS)
 
Soa
SoaSoa
Soa
 
Rbac
RbacRbac
Rbac
 
Password craking techniques
Password craking techniques Password craking techniques
Password craking techniques
 
Operating system vulnerability and control
Operating system vulnerability and control Operating system vulnerability and control
Operating system vulnerability and control
 
Network ssecurity toolkit
Network ssecurity toolkitNetwork ssecurity toolkit
Network ssecurity toolkit
 
Image forgery and security
Image forgery and securityImage forgery and security
Image forgery and security
 
Image based authentication
Image based authenticationImage based authentication
Image based authentication
 
Dmz
Dmz Dmz
Dmz
 
Cryptography
Cryptography Cryptography
Cryptography
 

Último

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Último (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

Dos presentation by ahlam shakeel

  • 1. Distributed Operating System Presented By Ahlam Ansari Ahlam Ansari 1
  • 2. ABSTRACT •In today’s world streaming media plays a vital role, with the advanced technologies recently developed in the areas of high-speed networks and multimedia, video-on- demand service (VOD) is considered as the emerging trend in home entertainment, as well as in education, banking, home shopping, and interactive games. Better quality video, as well as efficient way to send and receive them is necessary. Streaming media is multimedia that is constantly received by and presented to an end-user while being delivered by a streaming provider. With streaming, the client browser or plug-in can start displaying the data before the entire file has been transmitted. Quality of video, streaming time of video and the streaming protocols that we use for make a lot of difference. Hence we present two different types of streaming media protocols, HTTP Live Streaming (HLS) and Real Time Streaming Protocol (RTSP) and their comparison, a DoS resilient self healing video architecture to provide a better quality video and a survey on different VoD Batching techniques. . Ahlam Ansari 2
  • 3. INTRODUCTION •HTTP Live Streaming (HLS) is an HTTP-based media streaming communications protocol implemented by Apple Inc. It works by breaking the overall stream into a sequence of small HTTP-based file downloads, each download loading one short chunk of an overall potentially unbounded transport stream. Ahlam Ansari 3
  • 4. The Real Time Streaming Protocol (RTSP) is a network control protocol designed for use in entertainment and communications systems to control streaming media servers. RTSP was developed by the Multiparty Multimedia Session Control Working Group (MMUSIC WG) of the Internet Engineering Task Force (IETF) Ahlam Ansari 4
  • 5. Video request is delayed for a period of time so that more requests for the same video are collected. The batch of requests is then served by a multicast video stream. The major drawback of this scheme is that the customers have to wait for a batching interval until the video is started to play. Hence, it may increase the customer dissatisfaction if the waiting interval is too long. Ahlam Ansari 5
  • 6. STREAMING PROTOCOLS Ahlam Ansari 6
  • 7. HLS ARCHITECTURE Ahlam Ansari 7
  • 8. 1. Media Encoder: The Encoder encodes the video/audio. Videos are compressed into H.264/MPEG-4 format and the audio is encoded using advance audio coding. The video or audio format is encapsulated in MPEG 2. Transport Stream is specified in MPEG-2 Part 1, Systems (formally known as ISO/IEC standard 13818-1 or ITU-T Rec. H.222.0) [3][4][5]. Transport stream specifies a container format encapsulating packetized elementary streams, with error correction and stream synchronization features for maintaining transmission integrity when the signal is degraded. Program stream is a container format for storage applications specified in MPEG-1 Systems and MPEG-2 Part 1. A program stream contains only one content channel and is suited to authoring and storage not broadcasting. Contrast with transport stream, which is designed to address the delivery of the content. Ahlam Ansari 8
  • 9. 2. Stream Segmenter The Segmenter segments the video/audio in small duration segmentation. All the segments are placed in separate files. For protection purpose, the Segmenter might encrypt the segments and create a key file. Ahlam Ansari 9
  • 10. 3. Distribution System Distributed System is a regular HTTP Server. It could be Apache or any embedded server. Segments are stored with .ts extension and the index files are stored with .m3u8 extension. The file format of index is as follows: Ahlam Ansari 10
  • 11. 4. Client: The client gets all the videos or audios through a HTTP connection. HTTP creates a session between the client and the file at the DS. The session can be either a Live Stream Broadcast session or a Video on Demand Session. A) Live Stream Broadcast Session LSD contains an index file that is dynamic in type and is continuously updated and refreshed. It includes a moving window of segments. B) Video on Demand Session VoD contains an index file that is static in type and it contains all the segments of the file. [2] Ahlam Ansari 11
  • 12. Deploying HTTP Live Streaming Step 1: Creating a HTML Page Step 2: Configuring a Web Server Step 3: Validating the Streams Step 4: downloade video / audio at client side Ahlam Ansari 12
  • 13. Step 1: Creating a HTML Page The easiest way to distribute HTTP Live Streaming media is to create a webpage that includes the HTML5 <video> tag, using an .M3U8 playlist file as the video source. An example is shown below: <html> <head> <title>HTTP Live Streaming Example</title> </head> <body> <video src="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8" height="300" width="400" > </video> </body> </html> Ahlam Ansari 13
  • 14. Step 2: Configuring a Web Server •HTTP Live Streaming can be served from an ordinary web server; no special configuration is necessary, apart from associating the MIME types of the files being served with their file extensions. Configure the following MIME types for HTTP Live Streaming: File Extension MIME Type .M3U8 application/x-mpegURL or vnd.apple.mpegURL .ts video/MP2T Ahlam Ansari 14
  • 15. Step 3: Validating the Streams •The media stream validator tool is a command-line utility for validating HTTP Live Streaming streams and servers . The media stream validator simulates an HTTP Live Streaming session and verifies that the index file and media segments conform to the HTTP Live Streaming specification. It performs several checks to ensure reliable streaming. If any errors or problems are found, a detailed diagnostic report is displayed. You should always run the validator prior to serving a new stream or alternate stream set. The media stream validator shows a listing of the streams you provide, followed by the timing results for each of those streams. (It may take a few minutes to calculate the actual timing.) An example of validator output follows. Ahlam Ansari 15
  • 16. •Validating http://devimages.apple.com/iphone/samples/bipbop/gear3/prog_index.m3u8 against iPhone OS 3.1.0 Average segment duration: 8.77 seconds Average segment bitrate: 510.05 kbit/s Average segment structural overhead: 96.37 kbit/s (18.89 %) Video codec: avc1 Video resolution: 480x360 pixels Video frame rate: 29.97 fps Average video bitrate: 407.76 kbit/s H.264 profile: Baseline H.264 level: 2.1 Audio codec: aac Audio sample rate: 22050 Hz Average audio bitrate: 5.93 kbit/s Ahlam Ansari 16
  • 17. Step 4: Download video/audio at client side How actually the video / audio is downloaded at client side [8] 1. Download the wowza URL (playlist) 2. Display the contents of the file 3. Download the first/second playlist url 4. Display the contents 5. wget the key URL 6. wget the ts file sequence If the file is encrypted 7. Hexdump the key 8. Using calc get the HEXADECIMAL Value of "MEDIA-SEQUENCE", to get IV -> 95 = 5F using openssl decrypt the file 9. Now play the file "decr_tmp.ts" using "VLC media player" Ahlam Ansari 17
  • 18. RTSP vs. HTTP Interoperability RTSP is an interoperability disaster. None of the three big commercial implementations seem to abide by the standard (Microsoft Windows Media, Apple/Darwin and RealMedia), and writing a client stack that can handle all of them, plus the open-source servers properly, is tough to say the least. HLS is widely interoperable. It has countless implementations both on the server and client sides. It has Apache as a de facto reference implementation that every client can interoperate with. Ahlam Ansari 18
  • 19. •Transport Layer Protocol RTSP uses UDP HTTP uses TCP •Seeking RTSP, the server takes care of it With HLS, client will probably be the one Ahlam Ansari 19
  • 20. • Play and Pause RTSP does have built-in PLAY and PAUSE commands, which namely respectively play and pause the media. There are several ways you can pause a stream with HTTP: . Stop de-queuing data from the TCP session, and let the TCP stacks handle pause with TCP congestion control, until you want to resume, . Shutdown/reset the TCP session to pause, and start a new one to resume Ahlam Ansari 20
  • 21. •Congestion In case of network congestion or packet loss, RTSP will cause part of the stream to be lost. In case of network congestion or packet loss, HLS will never cause part of the stream to be lost. •You Tube RTSP is used in YouTube Mobile. HLS is used on You Tube main site. Ahlam Ansari 21
  • 22. •Reliability RTSP only carries the signaling reliably. HTTP conveys both signaling and payload reliably. •NAT Traversal RTSP just does not work, without ugly TCP encapsulation that makes it look like HTTP. HLS just works through Network address translation Ahlam Ansari 22
  • 23. •Firewall traversal Not so many firewalls handle or allow RTSP. RTSP has theoretical firewall traversal capability. HLS goes through almost any firewall. Even from tightly restricted Intranets, you can always find an outgoing HTTP proxy to use. Ahlam Ansari 23
  • 24. VoD BATCHING Ahlam Ansari 24
  • 25. Basic Video-on-Demand (VoD) System Ahlam Ansari 25
  • 26. •I n the basic architecture of a VoD system consists of: Video Encoder Video Server Directory Server Client Network The Network connects all the other VoD system components together as they are distributed geographically. The encoder accepts the video input and then uploads it on the video server after compressing/encoding the video stream received. The video server is a server with huge amount of disk space to accommodate day by day increasing videos in segments, not as a single file. The directory server keeps the index file which points to all the segments of those videos in video server, and these videos are published to the client so that they can access it. The figure below shows the architecture of basic VoD system. Ahlam Ansari 26
  • 27. Types of Streaming 1. Realtime The data have a pre-determined sequence and time of presentation. For example, video and audio. 2. Non-Realtime The data does not have presentation time requirement. For example, progressive JPEG. Ahlam Ansari 27
  • 28. Types of Video Services 1. Broadcast / Multicast Video 2. Near-Video-on-Demand 3. True Video-on-Demand Ahlam Ansari 28
  • 29. Broadcast / Multicast Video Ahlam Ansari 29
  • 30. •The multicast facility of modern communication networks [12] offers an efficient means of one-to-many data transmission. The basic idea is to avoid retransmitting the same packet more than once on each link of the network by having branch routers duplicate and then send the packet over multiple downstream branches. Multicast can significantly improve the VoD performance. Passive receive with no control except selecting the channels. One channel is needed per movie / programme. Ahlam Ansari 30
  • 31. Near-Video-on-Demand Ahlam Ansari 31
  • 32. •Near video on demand is a video delivery service that allows a customer to select from a limited number of broadcast video channels when they are broadcast. NVOD channels have pre-designated schedule times and are used for pay-per-view services. Passive receive with limited controls. System response time inversely proportional to number of required channels [12]. Ahlam Ansari 32
  • 33. True Video-on-Demand Ahlam Ansari 33
  • 34. •True Video-on-Demand system uses one dedicated channel for each service request, offering the client the best TVoD service. However, such a system incurs very high costs, especially in terms of storage-I/O and network bandwidths. Full interactive controls, like pause/resume, seeking, fast forward, etc . Ahlam Ansari 34
  • 35. Comparisons Broadcast Video True Video-on- Near-Video-on-Demand Demand (Pay-Per-View) Yes, but limited to a Yes, but limited to a few Select video? Yes few channels programmes Select time to No Yes (limited to fixed time slots) Anytime watch? Interactive? No None or very little VCR-like control No. of Viewers Unlimited Unlimited Limited Cost / Viewer Low Medium High Ahlam Ansari 35
  • 36. LITERATURE SURVERY Some authors have worked on reducing the start-up delay in multicast delivery systems as the major problem with the batching approach is that it introduces a significant start-up delay to the customer, which in fact contradicts the idea of on-demand service. Ahlam Ansari 36
  • 37. Batching policy for video-on-demand in multicast environment W.-F. Poon, K.-T. Lo and J. Feng Says: •Piggybacking approach It merges different requests together by adjusting the play-out rate of the videos so as to reduce the start-up delay of the system. The greedy policy attempts to merge the requests as many times as possible during the entire video session in order to save more bandwidth. If the play-out rate is adjusted in real time, a specialized hardware is required to keep up with the demand. If a replica of the video is generated in advance, since it is possible that requests can be merged during the entire video session, very large disk storage is required at the server side. Ahlam Ansari 37
  • 38. •Double-rate (DR) batching policy    Considering the waiting time (conventional batching approach) of the customers and the complexity (piggybacking approach) of the VoD system, we develop a double-rate (DR) batching scheme that attempts to merge the customer requests in an improvised manner by means of buffering. Instead of changing the play-out rate of the video, we double the transmission rate so that the trailing customers are able to catch up with the leading customer. Once the transmitting frames of the customers are the same, they are grouped together and served by a multicast stream. A new batching scheme has been proposed to reduce the start-up delay of VoD services in a multicast delivery system. When a new customer arrives, a unicast stream is immediately opened for the new request so that the customer does not have to wait. The transmission rate is then doubled so that the customer can catch up with the previous multicast stream. Ahlam Ansari 38
  • 39. Advantage: A new batching scheme has been proposed to reduce the start-up delay of VoD services in a multicast delivery system. When a new customer arrives, a unicast stream is immediately opened for the new request so that the customer does not have to wait. The transmission rate is then doubled so that the customer can catch up with the previous multicast stream. Drawback: It is shown that the DR batching scheme outperforms the greedy policy of the piggybacking approach only in terms of the bandwidth requirement. As it has fixed batching time, popularity of the movies affects the performance of the VoD system. Ahlam Ansari 39
  • 40. Adaptive Batching Scheme for Multicast Video-On-Demand Systems W.-F. Poon, K.-T. Lo, Member, IEEE, and J. Feng, Member, IEEE says: •An adaptive algorithm is developed for providing true video on demand (VoD) services in multicast environment. If the batching time is wrongly estimated, the performance of the system will be greatly degraded. This algorithm tries to dynamically find the optimal batching time by the newly updated arrival rate so as to minimize the bandwidth requirement. Adaptive algorithm enhances the double-rate batching policy so that the popularity of the movies will not affect the performance of the VoD system as the batching time can be adjusted. Ahlam Ansari 40
  • 41. •Advantage: Adaptive algorithm enhances the double-rate batching policy so that the popularity of the movies will not affect the performance of the VoD system as the batching time can be adjusted. Drawback: If the batching time is wrongly estimated, the performance of the system will be greatly degraded. Ahlam Ansari 41
  • 42. Virtual Batching: A New Scheduling Technique for Video-On-Demand Servers Simon Sheu and Kien A. Hua and Ta-Hsiung Hu says: •In a video-on-demand (VOD) environment, batching of requests is often applied to reduce the I/O demand and increase the availability of VOD services. However, batching unfairly forces first comers to wait for subscribers arriving late at the batch. Some of these victims may become impatient and decide to renege. To address this issue, we introduce a chaining technique which allows a client station being served to forward its video data to other client stations, which requested the same video, at a slightly later time. Thus, chaining enjoys the benefit of batching without its side effect of causing long access latencies. By combining batching and chaining, we also design a scheme called Virtual Batching. This property reduces the service latencies and therefore improves the reneging probability. This characteristic addresses the network-I/O bottleneck problem facing today’s media servers. Ahlam Ansari 42
  • 43. •Advantage: First comers no longer have to wait for requests arriving late at the batch. This property reduces the service latencies and therefore improves the reneging probability. This characteristic addresses the network-I/O bottleneck problem facing today’s media servers. Drawback: This policy makes use of Batching as well as Chaining hence it is more complex. The clients should also have chaining and forwarding mechanism in order to implement Virtual Batching policy. Ahlam Ansari 43
  • 44. DoS RESILIENCE SELF HEALING ARCHITECTURE Ahlam Ansari 44
  • 46. •The self-healing architecture comprises of four main components: performance  analyzer, repair planner, sensors and effectors. The performance analyzer takes: (1) server performance parameters collected by sensors to detect performance degradation; and (2) service parameters collected from synthetic sessions established with the server. It detects performance degradation and pinpoints the resources responsible for these anomalous states. The repair planner takes notifications issued by the performance analyzer, decides the best repair action to be executed (e.g., session migration and protocol-level redirection of sessions) and plans the repair to be executed by effectors. Ahlam Ansari 46
  • 47. •Sensors are responsible for collecting performance parameters. Two types of sensors are devised server-side: (1) pace sensors; and (2) resource sensors. Pace  sensors capture delays on accomplishment of scheduling of video content. The unit of scheduled work depends on server implementations and streaming protocols. In RTSP streaming the packet is the unit of work to be scheduled and transmitted. Other video standards require coarse-grain performance metrics at server: HTTP Streaming and HTTP Adaptive streaming. They fragment video objects into slices that are selectively requested by clients and downloaded similarly to other web objects. Ahlam Ansari 47
  • 48. Conclusion •YouTube uses HTTP/TCP to buffer video into the flash player on its main site. The video is stored on Google Video's content distribution network. It's not streamed as much as just sent as fast as possible to your computer. However, for 3g mobile handsets, m.youtube.com uses RTSP to stream video. So, YouTube uses both transfer methods [10]. Another thing to consider is that YouTube is popular because "it just works". RTSP isn't always supported well through routers, which would prevent that for use on the desktop. Also, m.youtube.com doesn't stream the same video file as youtube.com. Most YouTube videos are not streamed, but progressively download over HTTP. A small number of partner videos are securely streamed, using RTMPE. Ahlam Ansari 48
  • 49. •DR batching scheme reduce the start-up delay of VoD services in a multicast delivery system. When a new customer arrives, a unicast stream is immediately opened for the new request so that the customer does not have to wait. The transmission rate is then doubled so that the customer can catch up with the previous multicast stream. Adaptive batching scheme enhances the double-rate batching policy so that the popularity of the movies will not affect the performance of the VoD system as the batching time can be adjusted. Virtual Batching scheme generalize the conventional batching methods to allow requests arriving at a virtual batch to receive immediate services. First comers no longer have to wait for requests arriving late at the batch. This property reduces the service latencies and therefore improves the reneging probability. This characteristic addresses the network-I/O bottleneck problem facing today’s media servers. Ahlam Ansari 49
  • 50. Reference [1] Http://develpr.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/ StreamingMediaGuide/Introduction/Introduction.html [2] http://www.slideshare.net/DSPIP/apples-live-http-streaming [3] ITU-T (2006-05). "H.222.0 Summary". Retrieved 2010-06-03. [4] ITU-T. "H.222.0 : Information technology - Generic coding of moving pictures and associated audio information: Systems". Retrieved 2010-06-03. [5] ISO/IEC 13818-1:2000 - Information technology -- Generic coding of moving pictures and audio information: Systems, neuron2.net, 2000-12-01, retrieved 2010-06-03 [6] http://www.remlab.net/op/vod.shtml Ahlam Ansari 50
  • 51. [7] http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/ StreamingMediaGuide/DeployingHTTPLiveStreaming/DeployingHTTPLiveStreaming.html %23//apple_ref/doc/uid/TP40008332-CH2-DontLinkElementID_29 [8] http://www.wowza.com/forums/showthread.php?13363-Is-it-possible-to-deploy-Apple- HTTP-Live-streaming-(HLS)-encryption-on-wowza-server/page2 [9] Carlos A S Cunha, “Application of a Self-Healing Video-Streaming Architecture to RTSP Servers”, 2011 IEEE International Symposium on Network Computing and Applications. [10] http://answers.yahoo.com/question/index?qid=20071126005233AA4h3Ox [11] W.-F. Poon, K.-T. Lo and J. Feng, “Batching policy for video-on-demand in multicast environment”, ELECTRONICS LETTERS 20th July 2000 Vol. 36 No. 15 [12] Huadong Ma and Kang G. Shin, ”Multicast Video-on-Demand Services”, ACM SIGCOMM Ahlam Ansari 51
  • 52. THANK YOU For your Attendance and Attention Ahlam Ansari 52

Notas do Editor

  1. Ahlam Ansari Ahlam Ansari
  2. Ahlam Ansari Ahlam Ansari
  3. Ahlam Ansari Ahlam Ansari
  4. Ahlam Ansari
  5. Ahlam Ansari Ahlam Ansari
  6. Ahlam Ansari Ahlam Ansari
  7. Ahlam Ansari Ahlam Ansari