44
LOGO On the impact of user mobility on peer-to-peer video streaming 指指指指 指指指指指 指指 指指指

LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

Embed Size (px)

Citation preview

Page 1: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

LOGO

On the impact of user mobility on peer-to-peer video streaming

指導教授:許子衡老師學生:王志嘉

Page 2: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

2

Introduction (i)Wireless networks are a key technology to provide

user mobility.Wireless mesh networks (WMNs) are self-organizin

g networks.WMNs based on a backbone of stationary wireless r

outers that cooperatively provide Internet access to mobile users.

As entertainment and news updates are a part of our daily lives, users want access to streaming audio and video applications while on the move in areas illu

minated by a WMN.

Page 3: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

3

Introduction (ii)This article, we focus on peer-to-peer (P2P)

applications.

In P2P applications, all nodes collaborate to provide the functionalities of the application.

The decentralized P2P architecture increases scalability and provides resilience to node failures.

In P2P video applications, all nodes can send or receive media simultaneously.

Page 4: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

4

Introduction (iii)This cooperative environment is completely

different from typical TV and radio broadcasting systems.

P2P video applications are based on the client-server model.

This paper investigate the behavior of popular P2P video streaming applications in a scenario where a person walks in an area covered by a WMN.

Page 5: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

5

Peer-To-Peer Video Streaming (i)Video streaming in the Internet has become a

popular service in recent years.

Nevertheless, video streaming is still a costly service because of the high bandwidth requirements and the huge number of potential users.

In these systems, peers must share their resources to assist the server in delivering the video

Page 6: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

6

Peer-To-Peer Video Streaming (ii)The key idea is the same as for a P2P file-sharing sy

stem, streaming systems focus on the efficient delivery of multimedia content under strict bandwidth and timing requirements.

Page 7: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

7

Data DeliveryTree-based overlays use tree distribution graphs,

where the root is the video source.The main advantages of the tree topology are low

latency and low-control overhead when peer changes are rare.

In mesh-based overlays, a mesh topology is used. Data is divided into chunks, and each peer exchanges information about its own chunks with a subset of peers.

Page 8: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

8

P2P Video Applications (i)We have chosen five of the currently most popular

P2P video streaming applications, namely end system multicast (ESM) , PPLive, SopCast , PPStream, and TVAnts.

ESM was one of the first P2P video applications to appear. Actually, the original goal of ESM was to implement multicast functionalities in the end systems instead of the routing layer.

Page 9: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

9

P2P Video Applications (ii)PPLive, SopCast, PPStream, and TVAnts are propri

etary. They all use a mesh-based architecture and work similarly to BitTorrent.

A node subscribes to the system and receives addresses of a set of super nodes.

Super nodes are nodes responsible of keeping track of peers that already downloaded or currently are downloading a specific video chunk.

Page 10: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

10

P2P Video Applications (iii)Currently, PPLive is probably the most popular P2P

video streaming application. The major difference between PPLive and BitTorre

nt is the time requirements PPLive must guarantee. In SopCast, anyone is allowed to register and broad

cast a TV channel in the Internet.PPStream and TVAnts also are gaining popularity a

mong users.

Page 11: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

11

P2P Video Applications (iv)P2P streaming applications use different transport

protocols and depending on those protocols.They are more or less adapted to mobility.The main characteristics of the cited applications

are summarized in Table 1.

Page 12: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

12

Wireless Mesh Networks (i)WMNs are a cost-effective alternative for ubiquitou

s network access given their user mobility support and low installation cost.

Currently,WMNs are being widely deployed in cities, university campuses, commercial buildings, and underserved communities.

The WMNs backbone uses multi-hop communications to maintain network connectivity and to forward traffic to and from users.

Page 13: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

13

Wireless Mesh Networks (ii) In WMNs, users are potentially mobile and connect

to the backbone through routers playing the role of access points.

Page 14: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

14

AddressingAddressing is a challenging issue for mobile networ

ks.The address modifications and the use of private IP

addresses impact the protocols performance.

Page 15: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

15

Private IP Versus Public IP (i)One problem related to the use of NATs is that com

puters accessing the Internet using NAT devices.NAT devices can make outbound connections to co

mputers with public IPs, but typically cannot receive inbound connections.

In P2P streaming applications, all participating nodes must be bidirectionally reachable.

Page 16: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

16

Private IP Versus Public IP (ii)Currently, most P2P applications rely on manual po

rt configuration to enable communication between peers behind NAT devices.

Page 17: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

17

Dynamic IP Versus Fixed IP (i) Internet applications assume that the IP address of a

given node does not change during long periods of time.

However, does not hold for mobile networks because mobile users can change addresses as they move from one network to another.

Established connections do not survive the address change because they rely on fixed source and destination IP addresses.

Page 18: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

18

Dynamic IP Versus Fixed IP (ii) If the mobile user uses a dynamic IP, the application

may experience connectivity losses during the process of acquiring a new IP address.

In the WMN scenario, an alternative to tunneling is to run an ad hoc routing protocol in each mobile user.

WMNs use routing protocols to forward data. Each node maintains a routing table to forward packets correctly.

Page 19: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

19

Dynamic IP Versus Fixed IP (iii) If the mobile user has a fixed IP, the handoff is imp

acted only by the convergence time of the routing protocol.

If the mobile user uses dynamic IP, the time to acquire a new IP address or to establish a tunnel should be added to the convergence time.

Page 20: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

20

Video Streaming In WMNs (i)We present the results of our experiments.

We evaluate the performance of a client-server application under client mobility.

We analyze the behavior of different P2P applications in the same scenario.

The testbed is composed of two desktops, one laptop, and five wireless routers.

Page 21: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

21

Video Streaming In WMNs (ii)Both desktops run Debian Linux OS, and the laptop

runs Windows XP because most P2P applications are not implemented in Linux.

For the client-server experiments, another desktop running Windows Vista, connected to the gateways through a wired network, is used as a server.

In our experiments, we launch a packet sniffer on the laptop and on the desktops. Afterward, we start the P2P application and select a TV channel or start the client-server application.

Page 22: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

22

Video Streaming In WMNs (iii)To evaluate the impact of user mobility, we limit ou

r analysis to the events that occur inside the WMN, by comparing the traffic that arrives at the gateways with that of the laptop.

The application buffer becomes full, this warm up phase is ended, and a person carrying the laptop starts walking from point A to point D and then comes back to A (Fig. 1).

Page 23: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

23

Fig.1

Page 24: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

24

Video Streaming In WMNs (iv)All testbed nodes use IEEE 802.11g in ad hoc mode

and run the Optimized Link-State Routing (OLSR) protocol with the expected transmission count (ETX) routing metric.

We have fixed the IP address of the laptop to avoid Dynamic Host Configuration Protocol (DHCP) delays.

The video server used in the client-server experiments is a PC running the VLC application configured with HTTP.

Page 25: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

25

Video Streaming In WMNs (v)The video in the server was previously recorded fro

m a SopCast channel to guarantee that the videos used in the experiment have similar rates.

We use four P2P video streaming applications in our tests: SopCast ,PPStream, PPLive , and TVAnts.

In addition to network performance metrics, we conduct a subjective analysis to verify the quality of the video reception on the mobile client.

We record the video stream received by the mobile client

Page 26: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

26

Video Streaming In WMNs (vi)We also record the video stream received by a user

placed at the same wired network of the two gateways.

Page 27: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

27

Client-Server Application (i)Figure 2 shows the performance of the client-server

application when the client is stopped or moving. Points A to D in Fig. 2b show the instants where the

client crosses the trajectory landmarks of Fig. 1.

Page 28: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

28

Fig.2

Page 29: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

29

Client-Server Application (ii)A P2P application that continuously establishes new

short-lived connections and maintains multiple active connections is more suitable for mobile environments.

Page 30: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

30

P2P TCP-BASED APPLICATION: PPSTREAM

Figure 3 presents the results of one experiment run with PPStream, an application that uses only TCP as a transport protocol.

All figures except Fig. 3d show the performance of the application during the movement from point A to D and then back to point A.

Figure 3a plots the number of TCP segments received per second during the experiment.

Page 31: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

31

Fig.3(a)~(d)

Page 32: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

32

P2P TCP-BASED APPLICATION: PPSTREAM

We can observe that the number of received TCP segments sharply decreases, sometimes reaching zero.

Figure3b plots the cumulative number of TCP bytes received by the client as it moves across the WMN gateways.

The plateaus occur when the TCP connections are stale. Figure 3c plots the beginning (crosses) and the end (triangles) of each TCP connection.

Page 33: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

33

P2P TCP-BASED APPLICATION: PPSTREAM

These short-lived connections are better illustrated in Fig.3d.

Fig.3(d) plots the cumulative distribution function of TCP connection durations including warm-up and termination phases.

P2P streaming applications also benefit from short-lived connections to handle user mobility.

Page 34: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

34

P2P TCP-BASED APPLICATION: PPSTREAM

Figure 3e plots the interarrival time of received TCP segments.

We observe that during gateway changes, the number of received segments decreases as the time between successive receptions grows.

Page 35: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

35

Fig.3 (e)~(f)

Page 36: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

36

P2P UDP-Based Application: SOPCAST

Figure 4 presents the results of one experiment run with SopCast, which mostly uses UDP.

Typically ,UDP-based applications have shown fewer losses because of gateway changes compared to TCP-based applications.

There are losses when the gateway changes, the received data do not reach zero as seen in the experiment plotted in Fig. 4a.

This behavior is also reflected in the cumulative plot of UDP datagrams presented in Fig. 4b.

Page 37: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

37

Fig.4(a)~(d)

Page 38: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

38

P2P UDP-Based Application: SOPCASTFigure 4c plots the beginning and the end of differe

nt UDP flows received by the mobile client. Figure 4d presents the cumulative distribution function of UDP flow durations.

TCP-based applications, gateway changes do not result in upload traffic losses in applications that mostly use UDP as the transport protocol, as seen in Fig. 4f.

Page 39: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

39

Fig.4(e)~(f)

Page 40: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

40

P2P UDP-Based Application: SOPCAST In the download direction, Internet peers must chan

ge the destination IP address to the new associated gateway as the user moves.

In this case, the destination IP address is equal to the address of the associated gateway using NAT.

Page 41: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

41

Summary of The ExperimentsTable 2 summarizes the measurements obtained wit

h SopCast, PPStream, PPLive, and TVAnts.Table 2 shows the average and the standard deviatio

n of some measurements of interest. In our experiments, the number of UDP sources of

SopCast is higher than the number of TCP sources of PPStream.

Page 42: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

42

Table 2

Page 43: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

43

Conclusion (i) In this article, we have investigated the feasibility of

P2P video streaming applications running on WMNs.

The first part of this article outlined practical issues related to addressing and to the forwarding strategy used.

The analysis of those traces has shown that UDP-based applications enable a smooth adaptation to the WMN environment.

Page 44: LOGO On the impact of user mobility on peer-to-peer video streaming 指導教授:許子衡老師 學生:王志嘉

44

Conclusion (ii)The use of short-lived connections is a characteristic

of P2P streaming applications, where peers receive media content from multiple sources.