SIP-SDP DCSP Marking ToS Bit Manipulation

Used to indicate priority and type of requested service to devices in the network, type of service (TOS) information is included as a set of four-bit flags in the IP header. Each bit has a different purpose, and only one bit at a time can be set: There can be no combinations. Available network services are:

  • Minimum delay—Used when latency is most important
  • Maximum throughput—Used when the volume of transmitted data in any period of time is important
  • Maximum reliability—Used when it is important to assure that data arrives at its destination without requiring retransmission
  • Minimum cost—Used when it is most important to minimize data transmission costs

The Oracle® Enterprise Session Border Controller’s support for type of service (TOS allows you to base classification on the media type as well as the media subtype. In prior releases, you can configure the Oracle® Enterprise Session Border Controller to mark TOS bits on outgoing packets using a media policy. Supported media types include audio, video, application, data, image, text, and message; supported protocol types are H.225, H.245, and SIP. Note that, although H.225 and H.245 are not part of any IANA types, they are special cases (special subtypes) of message for the Oracle® Enterprise Session Border Controller. When these criteria are met for an outgoing packet, the Oracle® Enterprise Session Border Controller applies the TOS settings to the IP header. The augmented application of TOS takes matching on media type or protocol and expands it to match on media type, media-sub-type, and media attributes.

The new flexibility of this feature resolves issues when, for example, a customer needs to differentiate between TV-phone and video streaming. While both TV-phone and video streaming have the attribute “media=video,” TV-phone streaming has “direction=sendrcv” prioritized at a high level and video has direction=sendonly or recvonly with middle level priority. The Oracle® Enterprise Session Border Controller can provide the appropriate marking required to differentiate the types of traffic.

In the media policy, the tos-values parameter accepts values that allow you to create any media type combination allowed by IANA standards. This is a dynamic process because theOracle® Enterprise Session Border Controller generates matching criteria directly from messages.

The new configuration takes a media type value of any of these: audio, example, image, message, model, multipart, text, and video. It also takes a media sub-type of any value specified for the media type by IANA; however, support for T.38 must be entered exactly as t.38 (rather than t38). Using these values, the Oracle® Enterprise Session Border Controller creates a value Based on a combination of these values, the Oracle® Enterprise Session Border Controller applies TOS settings.

You also configure the TOS value to be applied, and the media attributes you want to match.

You can have multiple groups of TOS settings for a media policy.

ToS Bit Manipulation Configuration

This section provides instructions for how to configure TOS bit manipulation on your Oracle® Enterprise Session Border Controller.

To configure TOS bit manipulation:

  1. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
  2. Type media-manager and press Enter.
    ORACLE(configure)# media-manager
    ORACLE(media-manager)#
  3. Type media-policy and press Enter.
    ORACLE(media-manager)# media-policy

    If you are adding support for this feature to a pre-existing configuration, then you must select (using the ACLI select command) the configuration you want to edit.

  4. name—Create a reference name for this policy and press Enter.
  5. Type tos-settings and press Enter.
    ORACLE(media-policy)# tos-settings

    Note:

    The media-policy, tos-settings parameter is not RTC supported and a reboot is required for these updates to take affect.
  6. media-type—Enter the media type that you want to use for this group of TOS settings. You can enter any of the IANA-defined media types for this value: audio, example, image, message, model, multipart, text, and video. This value is not case-sensitive and can be up to 255 characters in length; it has no default.
    ORACLE(tos-settings)# media-type message
  7. media-sub-type—Enter the media sub-type you want to use for the media type. This value can be any of the sub-types that IANA defines for a specific media type. This value is not case-sensitive and can be up to 255 characters in length; it has no default.
    ORACLE(tos-settings)# media-sub-type sip
  8. media-attributes—Enter the media attribute that will match in the SDP. This parameter is a list, so you can enter more than one value. The values are case-sensitive and can be up to 255 characters in length. This parameter has no default.

    If you enter more than one media attribute value in the list, then you must enclose your entry in quotation marks ().

    ORACLE(tos-settings)# media-attributes sendonly sendrecv
  9. tos-value—Enter the TOS value you want applied for matching traffic. This value is a decimal or hexidecimal value. The valid range is:
    • 0x00 to 0xFF.

      ORACLE(tos-settings)# tos-value 0xF0
  10. Save and activate your configuration.