Example: Configuring Dynamic Shaping Parameters to Account for Overhead in Downstream Traffic Rates
This topic describes two scenarios for which you can configure dynamic shaping parameters to account for packet overhead in a downstream network.
The RADIUS administrator supplies the initial values on the RADIUS server, and the service activation is performed at subscriber login.
Figure 11 shows the sample network that the examples reference.
Figure 11: Sample Network Topology for Downstream Traffic

Managing Traffic with Different Encapsulations
In this example, the MX Series router shown in Figure 11 sends stacked VLAN frames to the DSLAM, and the DSLAM sends single-tagged VLAN frames to the residential gateway.
To accurately shape traffic at the residential gateway, the MX Series router must account for the different frame sizes. The difference between the stacked VLAN (S-VLAN) frames sent by the router and the single-tagged VLAN frames received at the residential gateway is a 4-byte VLAN tag. The residential gateway receives frames that are 4 bytes less.
To account for the different frame sizes, the network administrator configures the frame shaping mode with -4 byte adjustment:
- The network administrator configures the traffic
shaping parameters in the dynamic profile and attaches them to the
interface.
Enabling the overhead accounting feature affects the resulting shaping rate, guaranteed rate, and excess rate parameters, if they are configured.
[edit]dynamic-profiles {ethernet-downstream-network {interfaces {$junos-interface-ifd-name {unit $junos-underlying-interface-unit {family inet;}}}class-of-service {traffic-control-profiles {tcp-example-overhead-accounting-frame-mode {excess-rate percent $junos-cos-excess-rateguaranteed-rate $junos-cos-guaranteed-rateoverhead-accounting $junos-cos-shaping-mode bytes $junos-cos-byte-adjustshaping-rate $junos-cos-shaping-rate;}}interfaces {$junos-interface-ifd-name {unit "$junos-underlying-interface-unit" {output-traffic-control-profile tcp1;}}}}}}Table 65 lists the initial values defined by the RADIUS administrator for the shaping rates.
Table 65: Initial Shaping Values at Subscriber Login
Predefined Variable
RADIUS Tag
Value
$junos-cos-shaping-rate
T02
10m
$junos-cos-guaranteed-rate
T03
2m
$junos-cos-excess-rate
T05
50
$junos-cos-shaping-mode
T07
frame-mode
$junos-cos-byte-adjust
T08
–4
- The network administrator verifies the adjusted
rates.
Traffic control profile: tcp-example-overhead-accounting-frame-mode, Index: 61785 Excess rate 50 Shaping rate: 10000000 Guaranteed rate: 2000000 Overhead accounting mode: Frame Mode Overhead bytes: —4
Managing Downstream Cell-Based Traffic
In this example, the DSLAM and residential gateway shown in Figure 11 are connected through an ATM cell-based network. The MX Series router sends Ethernet frames to the DSLAM, and the DSLAM sends ATM cells to the residential gateway.
To accurately shape traffic at the residential gateway, the MX Series router must account for the different physical network characteristics.
The administrator does not need to configure a byte adjustment value to account for the downstream ATM network, but has the option of configuring a byte adjustment value to account for different encapsulations or decapsulations.
To account for the different frame sizes, the network administrator configures the cell shaping mode:
- The network administrator configures the traffic
shaping parameters in the dynamic profile and attaches them to the
interface.
Enabling the overhead accounting feature affects the resulting shaping rate, guaranteed rate, and excess rate parameters, if they are configured.
[edit]dynamic-profiles {atm-downstream-network {interfaces {$junos-interface-ifd-name {unit $junos-underlying-interface-unit {family inet;}}}class-of-service {traffic-control-profiles {tcp-example-overhead-accounting-cell-mode {excess-rate percent $junos-cos-excess-rateguaranteed-rate $junos-cos-guaranteed-rateoverhead-accounting $junos-cos-shaping-modeshaping-rate $junos-cos-shaping-rate}}interfaces {$junos-interface-ifd-name {unit "$junos-underlying-interface-unit" {output-traffic-control-profile tcp1;}}}}}}Table 66 lists the initial values defined by the RADIUS administrator for the shaping rates.
Table 66: Initial Shaping Values at Subscriber Login
Predefined Variable
RADIUS Tag
Value
$junos-cos-shaping-rate
T02
10m
$junos-cos-guaranteed-rate
T03
2m
$junos-cos-excess-rate
T05
50
$junos-cos-shaping-mode
T07
cell-mode
- The network administrator verifies the adjusted
rates.
Traffic control profile: tcp-example-overhead-accounting-cell-mode, Index: 61785 Shaping rate: 10000000 Excess rate 50 Guaranteed rate: 2000000 Overhead accounting Cell Mode Overhead bytes: 0
To account for ATM segmentation, the MX Series router adjusts all of the rates by 48/53 to account for ATM AAL5 encapsulation. In addition, the router accounts for cell padding, and internally adjusts each frame by 8 bytes to account for the ATM trailer.
Hide Navigation Pane
Show Navigation Pane
Download
SHA1