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
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Example: Configuring CoS Queuing for GRE or IP-IP Tunnels

date_range 17-Feb-21

This example shows how to configure CoS queuing for GRE or IP-IP tunnels.

Note:

CoS queuing is not supported on GRE tunnels in chassis clusters.

Requirements

Before you begin:

Overview

In this example, you enable tunnel queuing, define the GRE tunnel interface as gr-0/0/0, (Alternatively, you could define the IP-IP tunnel interface as ip-0/0/0.) and set the per unit scheduler. You then set the GRE tunnel’s line rate as 100 Mbps by using the shaper definition.

In Figure 1, Router A has a GRE tunnel established with Router B through interface ge-1/0/0. Router A also has an IP-IP tunnel established with Router C through interface ge-1/0/1. Router A is configured so that tunnel-queuing is enabled. Router B and Router C do not have tunnel-queuing configured.

Figure 1: Configuring CoS Queuing for GRE TunnelsConfiguring CoS Queuing for GRE Tunnels

Topology

Configuration

Procedure

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, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from the configuration mode.

content_copy zoom_out_map
set chassis fpc 0 pic 0 tunnel-queuing
set interfaces gr-0/0/0 unit 0 
set interfaces gr-0/0/0 per-unit-scheduler 
set class-of-services interfaces gr-0/0/0 unit 0 shaping-rate 100m 

Step-by-Step Procedure

To configure CoS queuing for GRE tunnels:

  1. Enable tunnel queuing on the device.

    content_copy zoom_out_map
    [edit]
    user@host# set chassis fpc 0 pic 0 tunnel-queuing
    
  2. Define the GRE tunnel interface.

    content_copy zoom_out_map
    [edit]
    user@host# set interfaces gr-0/0/0 unit 0
    
  3. Define the per-unit scheduler for the GRE tunnel interface.

    content_copy zoom_out_map
    [edit]
    user@host# set interfaces gr-0/0/0 per-unit-scheduler
    
  4. Define the GRE tunnel’s line rate by using the shaper definition.

    content_copy zoom_out_map
    [edit]
    user@host# set class-of-services interfaces gr-0/0/0 unit 0 shaping-rate 100m
    

Results

From configuration mode, confirm your configuration by entering the show class-of-service interfaces gr-0/0/0, show interfaces gr-0/0/0 , and show chassis commands. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

content_copy zoom_out_map
[edit]
    user@host# show class-of-service interfaces gr-0/0/0
    unit 0 {
    shaping-rate 100m;
    }
    [edit]
        user@host# show interfaces gr-0/0/0
        per-unit-scheduler;
    unit 0;
    [edit]
        user@host# show chassis
        fpc 0 {
        pic 0 {
        tunnel-queuing;
    }
}

If you are done configuring the device, enter commit from configuration mode.

Verification

Confirm that the configuration is working properly.

Verifying a CoS Queuing for GRE Tunnel Configuration

Purpose

Verify that the device is configured properly for tunnel configuration.

Action

From configuration mode, enter the show interfaces queue gr-0/0/0.0 command.

Note:

If you enter gr-0/0/0.0 only, queue information for all tunnels is displayed. If you enter gr-0/0/0.0, queue information for the specific tunnel is displayed.

content_copy zoom_out_map
user@host> show  interfaces queue gr-0/0/0.0
Logical interface gr-0/0/0.0 (Index 68) (SNMP ifIndex 112) 
Forwarding classes: 8 supported, 4 in use 
Egress queues: 8 supported, 4 in use Burst size: 0
Queue: 0, Forwarding classes: VOICE
  Queued:
    Packets              :               7117734                  7998 pps
    Bytes                :             512476848               4606848 bps
  Transmitted:
    Packets              :               4548146                  3459 pps
    Bytes                :             327466512               1992912 bps
    Tail-dropped packets :                     0                     0 pps
    RED-dropped packets  :               2569421                  4537 pps
     Low                 :                     0                     0 pps
     Medium-low          :                     0                     0 pps
     Medium-high         :                     0                     0 pps
     High                :               2569421                  4537 pps
    RED-dropped bytes    :             184998312               2613640 bps
     Low                 :                     0                     0 bps
     Medium-low          :                     0                     0 bps
     Medium-high         :                     0                     0 bps
     High                :             184998312               2613640 bps
Queue: 1, Forwarding classes: GOLD
  Queued:
    Packets              :                117600                     0 pps
    Bytes                :               8467200                     0 bps
  Transmitted:
    Packets              :                102435                     0 pps
    Bytes                :               7375320                     0 bps
    Tail-dropped packets :                     0                     0 pps
    RED-dropped packets  :                 15165                     0 pps
     Low                 :                     0                     0 pps
     Medium-low          :                     0                     0 pps
     Medium-high         :                     0                     0 pps
     High                :                 15165                     0 pps
    RED-dropped bytes    :               1091880                     0 bps
     Low                 :                     0                     0 bps
     Medium-low          :                     0                     0 bps
     Medium-high         :                     0                     0 bps
     High                :               1091880                     0 bps
Queue: 2, Forwarding classes: SILVER
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets :                     0                     0 pps
    RED-dropped packets  :                     0                     0 pps
     Low                 :                     0                     0 pps
     Medium-low          :                     0                     0 pps
     Medium-high         :                     0                     0 pps
     High                :                     0                     0 pps
    RED-dropped bytes    :                     0                     0 bps
     Low                 :                     0                     0 bps
     Medium-low          :                     0                     0 bps
     Medium-high         :                     0                     0 bps
     High                :                     0                     0 bps
Queue: 3, Forwarding classes: BRONZE
  Queued:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
  Transmitted:
    Packets              :                     0                     0 pps
    Bytes                :                     0                     0 bps
    Tail-dropped packets :                     0                     0 pps
    RED-dropped packets  :                     0                     0 pps
     Low                 :                     0                     0 pps
     Medium-low          :                     0                     0 pps
     Medium-high         :                     0                     0 pps
     High                :                     0                     0 pps
    RED-dropped bytes    :                     0                     0 bps
     Low                 :                     0                     0 bps
     Medium-low          :                     0                     0 bps
     Medium-high         :                     0                     0 bps
     High                :                     0                     0 bps

Verifying a CoS Queuing for IP-IP Tunnel Configuration

Purpose

Verify that the device is configured properly for tunnel configuration.

Action

From configuration mode, enter the show interfaces queue ip-0/0/0.0 command.

Note:

If you enter ip-0/0/0.0 only, queue information for all tunnels is displayed. If you enter ip-0/0/0.0, queue information for the specific tunnel is displayed.

footer-navigation