57
1 Video traffic optimization in mobile wireless environments using adaptive applications Phd Forum UBICOMM 2008 David Esteban

Video traffic optimization in mobile wireless environments using adaptive applications

  • Upload
    elata

  • View
    47

  • Download
    0

Embed Size (px)

DESCRIPTION

Phd Forum UBICOMM 2008 David Esteban. Video traffic optimization in mobile wireless environments using adaptive applications. Video traffic in Wireless networks. Multimedia traffic : always very concrete characteristics Streaming data Availability = Priority. - PowerPoint PPT Presentation

Citation preview

Page 1: Video traffic optimization in  mobile wireless environments using adaptive applications

1

Video traffic optimization in mobile wireless environments

using adaptive applications

Phd ForumUBICOMM 2008

David Esteban

Page 2: Video traffic optimization in  mobile wireless environments using adaptive applications

2

• Multimedia traffic : always very concrete characteristics

• Streaming data Availability = Priority

Video traffic in Wireless networks

Page 3: Video traffic optimization in  mobile wireless environments using adaptive applications

3

Video traffic in Wireless networks

• Wireless and mobile nature :– Optimization = Adaptation

– Upper layers MUST know the current status of the network.

– Vertical communication between layers

Page 4: Video traffic optimization in  mobile wireless environments using adaptive applications

4

Cross layering

• Wireless networking :– Multilayer problem– Layer dependency (either directly or not)

Page 5: Video traffic optimization in  mobile wireless environments using adaptive applications

5

Cross-layerTechniques

Cross layering

• Wireless networking :– Multilayer problem– Layer dependency (either directly or not)

Page 6: Video traffic optimization in  mobile wireless environments using adaptive applications

6

Cross-layerTechniques

Cross layering

• Wireless networking :– Multilayer problem– Layer dependency (either directly or not)

Define a general concept of

communication between layers.

Page 7: Video traffic optimization in  mobile wireless environments using adaptive applications

7

Cross-layerTechniques

Cross layering

• Wireless networking :– Multilayer problem– Layer dependency (either directly or not)

Define a general concept of

communication between layers.

Concrete Algorithm ??

Page 8: Video traffic optimization in  mobile wireless environments using adaptive applications

8

Scenario definition

• AP based video conference environment:– One of the most common

applications.– Indispensable tool to

different scenarios. – Several kinds mobile

wireless users is continuously increasing.

Page 9: Video traffic optimization in  mobile wireless environments using adaptive applications

9

Previous workUSING INTERMEDIATE HARDWARE

Page 10: Video traffic optimization in  mobile wireless environments using adaptive applications

10

Previous workCOMPARISON TABLE

Costs

???

???

Using IntermediateHW

ExtraTraffic

Algorithmdefinition

OptimizationMobility

Page 11: Video traffic optimization in  mobile wireless environments using adaptive applications

11

Previous workCONDITIONS SET BY THE APPLICATION

• In this case, there is a software system which is checking the network status.

•The application will register status conditions on that system.

•when the system recognize a registered condition has been met, it will notify the application.

•The application will change its behavior consequently.

Page 12: Video traffic optimization in  mobile wireless environments using adaptive applications

12

Previous workCOMPARISON TABLE

Costs

??

Conditions set by application

Using IntermediateHW

ExtraTraffic

Algorithmdefinition

OptimizationMobility

Page 13: Video traffic optimization in  mobile wireless environments using adaptive applications

13

Previous workUSING SIGNALING PACKETS

Some other previous research proposed the use of signaling packets as reporters of the QoS in the network and then send the information to the application.

Weak points :

- Inject more packets into the network could be harmful in critical situations

- There is no cross-layer algorithm specified to send the information from the lower levels to the application

Page 14: Video traffic optimization in  mobile wireless environments using adaptive applications

14

Previous workCOMPARISON TABLE

Costs

Using Signaling Packets

Conditions set by application

Using IntermediateHW

ExtraTraffic

Algorithmdefinition

OptimizationMobility

Page 15: Video traffic optimization in  mobile wireless environments using adaptive applications

15

Current work

• Many approaches but weak points.• Proposed project :

– Check the status of the network :• As know the environment conditions is key point in this

project.

– Inform to the video application :• Because the higher layers MUST know this information.

– Adapt of behavior • In order to optimize the traffic injected into the network

depending of the environment.

– Avoid weak points• So, we will be able to improve the given solutions.

Page 16: Video traffic optimization in  mobile wireless environments using adaptive applications

Current Work

Linux operating system

Gnome Desktop 2.20.1 in an

Ubuntu distribution.

Video App = Kopete v.0.12.7(Using KDE 3.5.8)

Page 17: Video traffic optimization in  mobile wireless environments using adaptive applications

17

First StepHOW THE NETWORK IS MONITORED?

-No use Control packets

-Local Updated information :

-/proc/net/dev/

-/proc/net/wireless/

-/proc/net/udp/

-/proc/net/tcp/

Page 18: Video traffic optimization in  mobile wireless environments using adaptive applications

18

First StepHOW THE NETWORK IS MONITORED?

-No use Control packets

-Local Updated information :

-/proc/net/dev/

-/proc/net/wireless/

-/proc/net/udp/

-/proc/net/tcp/

Bytes, Packets, Errors

Page 19: Video traffic optimization in  mobile wireless environments using adaptive applications

19

First StepHOW THE NETWORK IS MONITORED?

-No use Control packets

-Local Updated information :

-/proc/net/dev/

-/proc/net/wireless/

-/proc/net/udp/

-/proc/net/tcp/

Bytes, Packets, ErrorsIP addresses and ports

Page 20: Video traffic optimization in  mobile wireless environments using adaptive applications

20

First StepHOW THE NETWORK IS MONITORED?

-No use Control packets

-Local Updated information :

-/proc/net/dev/

-/proc/net/wireless/

-/proc/net/udp/

-/proc/net/tcp/

Bytes, Packets, ErrorsIP addresses and ports

Interface Status

Page 21: Video traffic optimization in  mobile wireless environments using adaptive applications

21

First StepHOW THE NETWORK IS MONITORED?

-No use Control packets

-Local Updated information :

-/proc/net/dev/

-/proc/net/wireless/

-/proc/net/udp/

-/proc/net/tcp/

Bytes, Packets, ErrorsIP addresses and ports

Interface StatusWireless Link & Signal

Page 22: Video traffic optimization in  mobile wireless environments using adaptive applications

22

First StepHOW THE NETWORK IS MONITORED?

Obtain this information in an organized way:

- C library “Liblink” .

- Look at the mentioned sources.

- Convert into independent variables.

- Easy format to operate with.

Page 23: Video traffic optimization in  mobile wireless environments using adaptive applications

23

First StepHOW THE NETWORK IS MONITORED?

SYNTAX :

linkd – t [miliseconds] [OPTIONS]OPTIONS :

-v Verbose Mode-i iface Set the polling interface-s sock_id Set the socket ID-f output_file Set the log file

LINKD

This library is invoked by a command called “linkd”

Page 24: Video traffic optimization in  mobile wireless environments using adaptive applications

24

First StepHOW THE NETWORK IS MONITORED?

-Use command :

-Invoke library will be summoned

-Get the required information in

-intervals equal to the specified polling time

-from the chosen interface.

-If verbose flag

-Store information in log file or

-Show it in the standard output.

Page 25: Video traffic optimization in  mobile wireless environments using adaptive applications

Next step

Deal with this“organized” raw

information

Page 26: Video traffic optimization in  mobile wireless environments using adaptive applications

Next step

Deal with this“organized” raw

information

Make the application change its behaviour

on the fly

Page 27: Video traffic optimization in  mobile wireless environments using adaptive applications

Next step

Deal with this“organized” raw

information

Make the application change its behaviour

on the fly

Optimization = Adaptation

Page 28: Video traffic optimization in  mobile wireless environments using adaptive applications

28

Second StepHOW THE APPLICATION IS INFORMED ABOUT

THE NETWORK STATUS?

Information is gathered and organized into variables

Page 29: Video traffic optimization in  mobile wireless environments using adaptive applications

29

Second StepHOW THE APPLICATION IS INFORMED ABOUT

THE NETWORK STATUS?

Information is gathered and organized into variables

“Quality Status”

Page 30: Video traffic optimization in  mobile wireless environments using adaptive applications

30

Second StepHOW THE APPLICATION IS INFORMED ABOUT

THE NETWORK STATUS?

Information is gathered and organized into variables

“Quality Status”

Which information ??

Page 31: Video traffic optimization in  mobile wireless environments using adaptive applications

31

Second StepHOW THE APPLICATION IS INFORMED ABOUT

THE NETWORK STATUS?

Information is gathered and organized into variables

Which information ??

Priority = wireless parameters. -/proc/net/wireless/

“Quality States”

Page 32: Video traffic optimization in  mobile wireless environments using adaptive applications

32

Second StepHOW THE APPLICATION IS INFORMED ABOUT

THE NETWORK STATUS?

The information obtained from that source would be :

-Quality-link : Link quality info (how good the reception is)

-Quality-level : Signal strength at receiver (dBm)

-Quality-noise: Silence level (no packet) at the receiver (dBm)

-Discarded-nwid : Number of discarded packets due to invalid network id.

-Discarded-crypt : Number of packets unable to decrypt.

-Discarded-frag : Number of fragmented packets

So a combination of these parameters will be use to define the “quality state” that will be the reference for the application.

Page 33: Video traffic optimization in  mobile wireless environments using adaptive applications

Formula details

SNR (Signal-Noise relation): 10 * Log10 (Quality-level / Quality-noise)

- Bad values : between 0 and 1- Good values : higher than 5

Adjust parameterUse to give a significative value to the SNR

Ad = 5

Error relation :Given a interval t of time :

Eparam == 0;If (nwid(t))>(nwid(t-1)) Eparam == Eparam+5;If (crypt(t))>(crypt(t-1)) Eparam == Eparam+5;If (frag (t))>(frag(t-1)) Eparam == Eparam+5;

PREVIOUS PARAMETERS

Page 34: Video traffic optimization in  mobile wireless environments using adaptive applications

Formula detailsFORMULA DEFINITION

Qlink + SNR – Ad – Eparam

10Qstate =

I.e.

Link Level Noise Nwid Crypt Frag SNR State

97 -28 -86 0 0 0 4.95 9(9.705)

Page 35: Video traffic optimization in  mobile wireless environments using adaptive applications

Formula detailsFORMULA DEFINITION

Qlink + SNR – Ad – Eparam

10Qstate =

I.e.

Link Level Noise Nwid Crypt Frag SNR State

97 -28 -86 0 0 0 4.95 9(9.705)

47 -70 -89 0 10 0 1.08 3(3.808)

Page 36: Video traffic optimization in  mobile wireless environments using adaptive applications

Quality States

• Applying the formula we will obtain a number from 0 to 9.

• The state only depends of the network conditions at that moment.

“Quality States”

• That number is the number of the “quality state”. • 0 means the lowest quality state.• 9 represents that the environment is in its best condition

Page 37: Video traffic optimization in  mobile wireless environments using adaptive applications

Layer Communication

• To inform the application about the “Quality status”.

• We will need specify a concrete Cross-layer algorithm

• So it will be a kind of intra-layer message passing system

Page 38: Video traffic optimization in  mobile wireless environments using adaptive applications

Third Step

• Sent the state to the application

• Use primitives for inter-layer messaging• Primitives = Small units of information• Types of primitives.

COMMUNICATION BETWEEN LAYERS

Layer N

Layer N - m

Indication Response

Page 39: Video traffic optimization in  mobile wireless environments using adaptive applications

Third Step

• Structure of a primitive :– Five fields :

• Protocol layer ID (which layer)• Protocol ID (which protocol entity)• Primitive class ID (which kind)• Parameters ( information sent )

• Portability of the primitives : Any information exchange method between layers can be used with this primitives.

COMMUNICATION BETWEEN LAYERS

Page 40: Video traffic optimization in  mobile wireless environments using adaptive applications

40

Forth StepHOW THE APPLICATION WORKS?

Web Cam

Yahoo! Protocol

Page 41: Video traffic optimization in  mobile wireless environments using adaptive applications

41

Forth StepHOW THE APPLICATION WORKS?

Web Cam

Yahoo! Protocol

Page 42: Video traffic optimization in  mobile wireless environments using adaptive applications

42

Forth StepHOW THE APPLICATION WORKS?

Web Cam

Yahoo! Protocol

Converts

Page 43: Video traffic optimization in  mobile wireless environments using adaptive applications

43

Forth StepHOW THE APPLICATION WORKS?

Web Cam

Yahoo! Protocol

Converts

Send to destination

Page 44: Video traffic optimization in  mobile wireless environments using adaptive applications

44

Forth StepHOW THE APPLICATION WILL RESPONSE?

Page 45: Video traffic optimization in  mobile wireless environments using adaptive applications

45

Forth StepHOW THE APPLICATION WILL RESPONSE?

Conversion

Page 46: Video traffic optimization in  mobile wireless environments using adaptive applications

46

Forth StepHOW THE APPLICATION WILL RESPONSE?

Conversion

“Quality States”

Page 47: Video traffic optimization in  mobile wireless environments using adaptive applications

47

Forth StepHOW THE APPLICATION WILL RESPONSE?

Conversion

“Quality States”

Page 48: Video traffic optimization in  mobile wireless environments using adaptive applications

48

Forth StepInteraction between parts

System Folders

Quality States

Page 49: Video traffic optimization in  mobile wireless environments using adaptive applications

49

Forth StepInteraction between parts

Web CamOriginal Frame

Converted Frame Store &

Send

System Folders

Quality States

Page 50: Video traffic optimization in  mobile wireless environments using adaptive applications

50

Forth StepInteraction between parts

Web CamOriginal Frame

Converted Frame Store &

Send

System Folders

Once per “-t”

Quality States

Page 51: Video traffic optimization in  mobile wireless environments using adaptive applications

51

Forth StepInteraction between parts

Web CamOriginal Frame

Converted Frame Store &

Send

System Folders

Once per frame

Once per “-t”

Quality States

Page 52: Video traffic optimization in  mobile wireless environments using adaptive applications

52

Forth StepInteraction between parts

Web CamOriginal Frame

Converted Frame Store &

Send

System Folders

Once per frame

Once per “-t”

Quality States

Page 53: Video traffic optimization in  mobile wireless environments using adaptive applications

53

Evaluation

Page 54: Video traffic optimization in  mobile wireless environments using adaptive applications

Preliminary Results

To check if the adaptation works we made real experiments establishing a video conference between a desktop and a laptop and checked the availability of the communication in different states for both adaptive and non adaptive models.

Page 55: Video traffic optimization in  mobile wireless environments using adaptive applications

Preliminary Results

To check the system was working better thanks to the adaptation we made real experiments establishing a video conference between a desktop and a laptop and checked the percentage of packet loss in different states for both adaptive and non adaptive models.

Page 56: Video traffic optimization in  mobile wireless environments using adaptive applications

Preliminary Results

[ Simulation ]

Page 57: Video traffic optimization in  mobile wireless environments using adaptive applications

Future work

• How to get better results in the optimization (maybe adding or changing some sources, changing the formula, etc.).

• Test the adaptation of the information sent from the multi-conference server to the mobile nodes

• Implement the cross-layer algorithm details for the intra-layers messaging system from Application layer to Link layer.