Share via


2.2.2.22 MS-Service Quality Attribute

The MS-Service Quality attribute is used to convey information about the data stream that the protocol client is intending to transfer over an allocated port. The protocol client SHOULD<21> include this attribute as part of an Allocate request message. A TURN server SHOULD use the information in this attribute to make decisions about resource allocation, bandwidth prioritization, and data delivery methods. If the attribute is not present in the Allocate request message, the TURN server SHOULD assume that the data stream is audio with best effort delivery. The format of this attribute is as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Attribute Type

Attribute Length

Stream Type

Service Quality

Attribute Type (2 bytes): The TURN attributes are specified in [IETFDRAFT-STUN-02] section 10.2 and [IETFDRAFT-TURN-08] section 9.2. Set to "0x8055".

Attribute Length (2 bytes): The length of bytes of the following fields. Set to "0x0004" (4).

Stream Type (2 bytes): The type of data to be transferred over the allocated port.

The following stream types are supported in this extension. All other stream types are reserved for future use.

  • "0x0001": Audio

  • "0x0002": Video

  • "0x0003": Supplemental Video

  • "0x0004": Data

Service Quality (2 bytes): The service quality level required by the protocol client for the stream.

The following service quality levels are supported in this extension. All other service quality levels are reserved for future use.

  • "0x0000": Best effort delivery.

  • "0x0001": Reliable delivery.