[Contents] [Prev] [Next] [Index] [Report an Error]

Defining a Multicast Bandwidth Map

Multicast interface-level admission control, port-level admission control, and QoS adjustment all use a single multicast bandwidth map. The multicast bandwidth map is a route map that uses the set admission-bandwidth, set qos-bandwidth, set admission-bandwidth adaptive, or set qos-bandwidth adaptive commands. The adaptive commands configure an autosense mechanism for measuring the multicast bandwidth.

Note: Even though you can include any of the preceding commands several times in a route map entry, only the last admission-bandwidth command or qos-bandwidth command in the bandwidth map is used. In other words, if you included the set qos-bandwidth command first and then the set qos-bandwidth adaptive command, the bandwidth map uses the set qos-bandwidth adaptive command.

Interface-level and port-level admission control is performed when an OIF on the interface or port is added to the mroute for a given (S,G) multicast data stream and the multicast bandwidth map contains a set admission-bandwidth or set admission-bandwidth adaptive action for that (S,G).

QoS adjustment is performed on the joining interface when an OIF is added to the mroute for a given (S,G) data stream and the multicast bandwidth map contains a set qos-bandwidth or set qos-bandwidth adaptive action for that (S,G).

You can prioritize the traffic by configuring a priority value for the <S, G> data stream on a physical port by issuing the set priority command. Dynamic multicast admission control enables only prioritized groups to join the interface after the configured priority limit is reached on the physical port. The system records the priority when a new <S, G> entry is created. For more information, see Enabling Port Admission Bandwidth Control

Note: You can create a single route map with the set admission-bandwidth command, the set qos-bandwidth command, or both. However, creating an entry with only one of these set commands enables only that specific function for the matched address (that is, only multicast traffic admission control or only QoS adjustment). The same is true for the adaptive commands.

Using the Autosense Mechanism

Video bandwidth is typically considered to be a constant rate—2 Mbps for standard definition television (SDTV) and 10 Mbps for high definition television (HDTV). However, in reality, and depending on achievable video compression, the bit rate can vary. For example, HDTV streams (using MPEG4 or WM9 encoding) can vary between 6 Mbps (for low-action programs) to 10 Mbps (for a fast-paced, high-action programs). The autosense mechanism causes the bandwidth value, used for admission control and QoS adjustment, to be the actual measured rate of the stream. Using this feature to measure the actual bandwidth avoids the need to configure arbitrary bandwidth limits and enables a channel to be reassigned to a different (S, G) without requiring a bandwidth map to be changed.

How Adaptive Mode Works

You configure the auto-sense mechanism in the multicast bandwidth using the set admission-bandwidth adaptive command, set qos-bandwidth adaptive command, or both. For example:

host1(config)#route-map mcast-bandwidths permit 10
host1(config-route-map)#match ip address sdtv
host1(config-route-map)#set admission-bandwidth adaptive
host1(config-route-map)#set qos-bandwidth adaptive
host1(config-route-map)#end

In this example, any stream with an (S,G) that matches the sdtv access list performs adaptive bandwidth detection for admission control and QoS adjustment.

A rate measurement mechanism runs on the ingress line card that polls the forwarding controller (FC) to obtain statistics for each mroute. This mechanism then reports the rate measurement to the SRP to update the bandwidth map. By computing the average bandwidth over a relatively short sampling period (T1; 5 seconds), the measurement approximates the peak bandwidth of the multicast stream.

As an example, assume that a new mroute (S1, G1) is added to the interface controller (IC) at time t0.

Figure 1: Example of Adaptive IPv4 Multicast Bandwidth Detection

Image g013280.gif

To calculate the measured bandwidth of a stream, the router uses the following equation:

R = (Nt+5 – Nt) / 5

Where

R = Calculated bandwidth of the stream during each sampling interval

Nt = Bytes measured at the start of each sampling period (t seconds)

Nt+5 = Bytes measured at the end of each sampling period (t+5 seconds)

Note: When the mroute is first installed in the FC (at t = 0), R0 is undetermined. For multicast admission control no joins are admitted until the first bandwidth measurement is computed (that is, for admission control, R0 is considered to be infinite). Similarly, no QoS adjustment occurs until the first bandwidth measurement is computed (that is, for QoS adjustment, R0 is considered to be zero [0]).

Using the previous graph as a reference, the first bandwidth rate (R10) and at time t5 (N5) and the bytes received values are subtracted and divided by the sampling period T1 to yield the average rate. This process is repeated every sampling interval, T2, to yield rates R1, R2, R3, and so on.

The first two sampling interval calculations are as follows:

R1 = (N5 - N0)/5

R2 = (N#+5 - N#)/5

The router maintains a history of bandwidth measurements (H) for each mroute, up to a maximum of M measurements. The actual rate, R, reported to the SRP is the maximum rate measured in those H samples.

To minimize the IC to SRP traffic generated by the rate measurements, the IC reports a bandwidth change only when a newly computed rate (R#) differs from the current rate by a specified threshold. When Rs is computed at time t = 5 seconds, R is set to R1. A rate update occurs whenever a newly calculated rate (R) differs from R1 by at least a threshold value (specified as a percentage, P) of the measured peak bandwidth. This calculation is as follows:

R = Rt, if and only if the absolute value of (R - Rt) > P * R.

Table 5 lists values assigned to variables associated with this algorithm.

Table 5: Adaptive Mode Algorithm Values

Variable

Value

Units

Description

T1

5

Seconds

Sampling period; the time in which a sample is taken

T2

0

Seconds

Sampling interval; zero (0) seconds indicates continuous sampling

H

12

Samples

Number of history samples over which to compute measurement

M

12

Samples

Maximum number of samples maintained in history

P

1

Percent

Threshold value; percent difference by which a newly calculated rate must differ from the measured peak bandwidth before a rate update occurs

Multicast Bandwidth Map Example

The following example creates a multicast bandwidth map for both multicast traffic admission control and QoS adjustment:

Note: In this example, you can replace the set admission-bandwidth command and set qos-bandwidth command with their adaptive command counterparts.

  1. Define a route-map using the set admission-bandwidth and set qos-bandwidth commands. You can optionally issue the set priority command.
    host1(config)#route-map mcast-bandwidths permit 10
    host1(config-route-map)#match ip address sdtv
    host1(config-route-map)#set admission-bandwidth 2000000
    host1(config-route-map)#set qos-bandwidth 2000000
    host1(config-route-map)#set priority 100
    host1(config-route-map)#route-map mcast-bandwidths permit 20
    host1(config-route-map)#match ip address hdtv
    host1(config-route-map)#set admission-bandwidth 10000000
    host1(config-route-map)#set qos-bandwidth 10000000
    host1(config-route-map)#set priority 200
    host1(config-route-map)#end
  2. Define the access list for use by the match ip address command to match (S,G) and (*,G) entries.
    host1(config)#access-list sdtv permit ip host 31.0.0.1 232.0.0.0 0.0.0.255
    host1(config)#access-list hdtv permit ip host 32.0.0.1 232.0.0.0 0.0.0.255
    host1(config)#access-list hdtv permit ip host 32.0.0.2 232.0.0.0 0.0.0.255
    host1(config-route-map)#end

    Note: You can also define a prefix-list or a prefix-tree for use by the match ip address command to match (S,G) and (*,G) entries.

For additional information about configuring QoS adjustment, see Configuring Multicast QoS Adjustment.

For additional information about configuring interface-level and port-level admission control, see Blocking and Limiting Multicast Traffic.

For additional information about creating route maps, see JUNOSe IP Services Configuration Guide .

set admission-bandwidth

set priority

set qos-bandwidth


[Contents] [Prev] [Next] [Index] [Report an Error]