ON THIS PAGE
Example: Configuring Fragmentation by Forwarding Class
This example shows you how to configure fragmentation maps for specific forwarding classes on Multiservices PICs or Services PICs.
Requirements
This example uses the following hardware and software components:
Multiservices PIC or Services PIC.
Overview
Configure two logical units on an LSQ interface. The logical units use two different fragmentation maps.
Configuration
To configure fragmentation maps for specific forwarding classes, perform these tasks:
- CLI Quick Configuration
- Define the Fragmentation Maps
- Associate the Fragmentation Maps with the MLPPP Interface
CLI Quick Configuration
To quickly configure this example, copy the
following commands, paste them in 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:
Define the Fragmentation Maps
set class-of-service fragmentation-maps frag-map-A forwarding-class AF no-fragmentation set class-of-service fragmentation-maps frag-map-A forwarding-class EF no-fragmentation set class-of-service fragmentation-maps frag-map-A forwarding-class BE fragment-threshold 100 set class-of-service fragmentation-maps frag-map-B forwarding-class EF fragment-threshold 200 set class-of-service fragmentation-maps frag-map-B forwarding-class BE fragment-threshold 200 set class-of-service fragmentation-maps frag-map-B forwarding-class AF fragment-threshold 200
Associate the Fragmentation Map with an Interface
set class-of-service interfaces lsq-1/0/0 unit 1 fragmentation-map frag-map-A set class-of-service interfaces lsq-1/0/0 unit 2 fragmentation-map frag-map-B
Define the Fragmentation Maps
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
To define the fragmentation maps:
Specify a name for the first fragmentation map.
[edit] user@host# edit class-of-service fragmentation-maps frag-map-A
Define the first fragmentation map.
Define the fragmentation properties for the AF forwarding class to be interleaved, rather than fragmented.
[edit class-of-service fragmentation-maps frag-map-A] user@ost# set forwarding-class AF no-fragmentation
Define the fragmentation properties for the EF forwarding class to be interleaved, rather than fragmented.
[edit class-of-service fragmentation-maps frag-map-A] user@ost# set forwarding-class EF no-fragmentation
Define the fragmentation properties for the BE forwarding class to be fragmented.
[edit class-of-service fragmentation-maps frag-map-A] user@ost# set forwarding-class BE fragment-threshold 100
Define the second fragmentation map.
Specify a name for the second fragmentation map.
[edit class-of-service fragmentation-maps] user@host# edit frag-map-B
Define the fragmentation properties for the EF forwarding class to be fragmented.
[edit class-of-service fragmentation-maps frag-map-B] user@ost# set forwarding-class EF fragment-threshold 200
Define the fragmentation properties for the BE forwarding class to be fragmented.
[edit class-of-service fragmentation-maps frag-map-B] user@ost# set forwarding-class BEfragment-threshold 200
Define the fragmentation properties for the AF forwarding class to be fragmented.
[edit class-of-service fragmentation-maps frag-map-B] user@ost# set forwarding-class AF fragment-threshold 200
Results
Verify the configuration of the fragmentation maps and forwarding classes.
[edit class-of-service fragmentation-maps]
user@host# show
frag-map-A { forwarding-class { AF { no-fragmentation; } EF { no-fragmentation; } BE { fragment-threshold 100; } } } frag-map-B { forwarding-class { EF { fragment-threshold 200; } BE { fragment-threshold 200; } AF { fragment-threshold 200; } } }
Associate the Fragmentation Maps with the MLPPP Interface
Step-by-Step Procedure
To associate a fragmentation map with an interface:
Associate each fragmentation map with a logical interface.
[edit] user@host# edit class-of-service interfaces lsq-1/0/0 user@host# set unit 1 fragmentation-map frag-map-A user@host# set unit 2 fragmentation-map frag-map-B
Results
Verify that the fragmentation maps are associated with the interfaces.
[edit class-of-service]
user@host# show
interfaces { lsq-1/0/0 { unit 1 { fragmentation-map frag-map-A; } unit 2 { fragmentation-map frag-map-B; } }
Verification
Verifying the Fragmentation Properties
Purpose
Verify the fragmentation properties for specific forwarding classes.
Action
The following output displays the fragmentation properties and forwarding class association.
user@host> show class-of-service fragmentation-map Fragmentation map: frag-map-A, Index: 19801 Forwarding class: AF No Fragmentation Forwarding class: EF No Fragmentation Forwarding class: BE Fragmentation threshold: 100 Fragmentation map: frag-map-B, Index: 19855 Forwarding class: EF Fragmentation threshold: 200 Forwarding class: BE Fragmentation threshold: 200 Forwarding class: AF Fragmentation threshold: 200
Meaning
The output shows the forwarding class associated with each fragmentation map, as well as the fragmentation properties associated with the forwarding class.