Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Broadband Subscriber Services User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Example: Configuring a Dynamic Service VLAN Interface Set of Subscribers in a Dynamic Profile

date_range 06-Dec-23

Interface sets enable you to provide hierarchical scheduling to a group of subscriber interfaces. In this example, by using the $junos-svlan-interface-set-name internal dynamic variable when specifying the interface set name, you can locally generate an interface set name for use by SVLAN interfaces based on the outer tag of the dual-tagged VLAN. The format of the generated variable is physical_interface_name - outer_VLAN_tag.

Requirements

Before you begin, configure the subscriber interfaces that you intend to include in the interface set. You can find general configuration instructions for the supported dynamic interface configuration in DHCP Subscriber Interface Overviewand in the following:

Overview

Interface sets enable you to provide hierarchical scheduling to a group of subscriber interfaces. By using the $junos-svlan-interface-set-name internal dynamic variable when specifying the interface set name, you can locally generate an interface set name for use by SVLAN interfaces based on the outer tag of the dual-tagged VLAN. The format of the generated variable is physical_interface_name - outer_VLAN_tag.

This example includes the following statements:

  • interface-set—Configures the name of the scheduler for dynamic CoS. In this example, you use the $junos-svlan-interface-set-name variable to obtain the locally generated interface set name for use by SVLAN interfaces based on the outer tag of the dual-tagged VLAN.

  • output-traffic-control-profile—Applies an output traffic scheduling and shaping profile to the interface set.

  • output-traffic-control-profile-remaining—Applies an output traffic scheduling and shaping profile for remaining traffic to the interface set.

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

content_copy zoom_out_map
[edit]
set dynamic-profiles profile-dhcp-ipdemux interfaces interface-set $junos-svlan-interface-set-name interface $junos-interface-ifd-name unit $junos-underlying-interface-unit
set dynamic-profiles profile-dhcp-ipdemux interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit
set class-of-service traffic-control-profiles tcp1 scheduler-map schedMap
set class-of-service traffic-control-profiles tcp1 shaping-rate 50m
set class-of-service traffic-control-profiles tcp1 guaranteed-rate 200k
set class-of-service traffic-control-profiles tcp3 scheduler-map ss1q0q1
set class-of-service traffic-control-profiles tcp3 shaping-rate 20m
set class-of-service traffic-control-profiles tcp3 guaranteed-rate 5m
set class-of-service interfaces interface-set ae0-111 output-traffic-control-profile tcp1
set class-of-service interfaces interface-set ae0-111 output-traffic-control-profile-remaining tcp3

Procedure

Step-by-Step Procedure

To configure an SVLAN interface set of subscriber interfaces:

  1. Access the dynamic profile you want to modify for interface sets.

    content_copy zoom_out_map
    [edit]
    user@host# edit dynamic-profiles profile-dhcp-ipdemux
    
  2. Access the dynamic profile interface configuration.

    content_copy zoom_out_map
    [edit dynamic-profiles profile-dhcp-ipdemux]
    user@host# edit interfaces
    
  3. Configure the SVLAN interface set in the dynamic profile.

    The interface set is created dynamically when the subscriber logs in.

    content_copy zoom_out_map
    [edit dynamic-profiles profile-dhcp-ipdemux interfaces]
    user@host# edit interface-set $junos–svlan-interface-set-name
    
  4. Include dynamic IP demux interface creation within the dynamic interface set.

    content_copy zoom_out_map
    [edit dynamic-profiles profile-dhcp-ipdemux interfaces interface-set $junos-svlan-interface-set-name]
    user@host# set interface $junos-interface-ifd-name unit $junos-underlying-interface-unit
    
  5. Access the SVLAN interface set name that you expect $junos-svlan-interface-set-name to generate. For example, to specify the expected interface set name for aggregated Ethernet interface ae0 and outer VLAN tag 111, include ae0-111 for the interface-set-name variable.

    content_copy zoom_out_map
    [edit class-of-service interfaces]
    user@host# edit interface-set ae0-111
    
  6. Apply traffic shaping and queuing parameters to the SVLAN interface set.

    Tip:

    You must configure the interface set in the static [edit class-of-service] hierarchy, not in the [edit dynamic-profiles] hierarchy.

    content_copy zoom_out_map
    [edit class-of-service interfaces interface-set ae0-111]
    user@host# set output-traffic-control-profile tcp1
    
  7. Apply traffic shaping and queuing parameters to any remaining traffic on the SVLAN interface set.

    content_copy zoom_out_map
    [edit class-of-service interfaces interface-set ae0-111]
    user@host# set output-traffic-control-profile-remaining tcp3
    

Results

From configuration mode, confirm your configuration by entering the show dynamic-profiles command and the show class-of-service command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

content_copy zoom_out_map
user@host# show dynamic-profiles
dynamic-profiles {
    profile-dhcp-ipdemux {
        interfaces {
            interface-set "$junos-svlan-interface-set-name" {
                interface "$junos-interface-ifd-name" {
                    unit "$junos-underlying-interface-unit";
                }
            }
            "$junos-interface-ifd-name" {
                unit "$junos-underlying-interface-unit";
            }
        }
    }
}
content_copy zoom_out_map
user@host# show class-of-service
class-of-service {
    traffic-control-profiles {
        tcp1 {
            scheduler-map schedMap;
            shaping-rate 50m;
            guaranteed-rate 200k;
        }
        tcp3 {
            inactive: scheduler-map ss1q0q1;
            shaping-rate 20m;
            guaranteed-rate 5m;
        }
    }
    interfaces {
        interface-set ae0-111 {
            output-traffic-control-profile tcp1;
            output-traffic-control-profile-remaining tcp3;
        }
    }
}

Verification

To confirm that the configuration is correct, perform these tasks:

Verifying the Interfaces that are Included in the Interface Set

Purpose

Verify the interfaces that are included in the interface set.

Action

content_copy zoom_out_map

Displaying Information for Active Subscribers

Purpose

Display information for active subscribers.

Action

content_copy zoom_out_map
user@host> show subscribers detail
footer-navigation