EN ESTA PÁGINA
Ejemplo: aplicación de programación y configuración a VLAN
En este ejemplo se muestra cómo aplicar programadores a interfaces lógicas individuales.
Requisitos
En este ejemplo se utilizan los siguientes componentes de hardware y software:
Junos OS versión 7.4 o posterior ejecutándose en tarjetas de línea de enrutador compatibles con Intelligent Queuing (IQ).
Junos OS versión 13.2 o posterior que se ejecuta en enrutadores serie MX que contienen tarjetas de línea MPC o MPC3E 16x10GE.
Junos OS versión 13.3 o posterior ejecutándose en enrutadores serie MX que contengan tarjetas de línea MPC4E.
Junos OS versión 15.1 o posterior ejecutándose en enrutadores serie MX que contengan tarjetas de línea MPC6E.
Visión general
De forma predeterminada, la programación de resultados no está habilitada en las interfaces lógicas. Las interfaces lógicas sin configuración configuradas comparten un programador predeterminado. La programación de interfaz lógica (también denominada programación por unidad) permite habilitar varias colas de salida en una interfaz lógica y asociar programación y formas personalizadas para cada cola.
Para habilitar la programación por unidad, incluya la per-unit-scheduler
instrucción en el nivel jerárquico[edit interfaces interface name]
. Cuando los programadores por unidad están habilitados, puede definir programadores dedicados para interfaces lógicas incluyendo la scheduler-map
instrucción en el nivel de [edit class-of-service interfaces interface name unit logical unit number]
jerarquía. Como alternativa, puede incluir la instrucción en el nivel de jerarquía y, a continuación, incluir la scheduler-map
output-traffic-control-profile
instrucción en el nivel de [edit class-of-service traffic-control-profiles traffic control profile name]
[edit class-of-service interfaces interface name unit logical unit number]
jerarquía.
En este ejemplo se muestra cómo definir programadores para interfaces lógicas mediante el uso de perfiles de control de tráfico.
Configuración
Configuración rápida de CLI
Para configurar rápidamente este ejemplo, copie los siguientes comandos, péguelos en un archivo de texto, elimine los saltos de línea, cambie los detalles necesarios para que coincidan con su configuración de red y, a continuación, copie y pegue los comandos en la CLI en el nivel de [edit]
jerarquía.
set interfaces xe-9/0/3 per-unit-scheduler set interfaces xe-9/0/3 vlan-tagging set interfaces xe-9/0/3 unit 1 vlan-id 101 set interfaces xe-9/0/3 unit 1 family inet address 10.1.1.1/24 set interfaces xe-9/0/3 unit 2 vlan-id 102 set interfaces xe-9/0/3 unit 2 family inet address 10.2.1.1/24 set class-of-service classifiers inet-precedence c8 forwarding-class be loss-priority low code-points 000 set class-of-service classifiers inet-precedence c8 forwarding-class ef loss-priority low code-points 001 set class-of-service classifiers inet-precedence c8 forwarding-class af loss-priority low code-points 010 set class-of-service classifiers inet-precedence c8 forwarding-class nc loss-priority low code-points 011 set class-of-service classifiers inet-precedence c8 forwarding-class be1 loss-priority low code-points 100 set class-of-service classifiers inet-precedence c8 forwarding-class ef1 loss-priority low code-points 101 set class-of-service classifiers inet-precedence c8 forwarding-class af1 loss-priority low code-points 110 set class-of-service classifiers inet-precedence c8 forwarding-class nc1 loss-priority low code-points 111 set class-of-service forwarding-classes queue 0 be set class-of-service forwarding-classes queue 1 ef set class-of-service forwarding-classes queue 2 af set class-of-service forwarding-classes queue 3 nc set class-of-service forwarding-classes queue 4 be1 set class-of-service forwarding-classes queue 5 ef1 set class-of-service forwarding-classes queue 6 af1 set class-of-service forwarding-classes queue 7 nc1 set class-of-service traffic-control-profiles tcp_ifd shaping-rate 2500000000 set class-of-service traffic-control-profiles tcp_ifd overhead-accounting bytes -20 set class-of-service traffic-control-profiles tcp_gold scheduler-map gold set class-of-service traffic-control-profiles tcp_gold shaping-rate 2500000000 set class-of-service traffic-control-profiles tcp_gold overhead-accounting bytes -20 set class-of-service traffic-control-profiles tcp_gold guaranteed-rate 1g set class-of-service traffic-control-profiles tcp_silver scheduler-map silver set class-of-service traffic-control-profiles tcp_silver shaping-rate 1g set class-of-service traffic-control-profiles tcp_silver overhead-accounting bytes -20 set class-of-service traffic-control-profiles tcp_silver guaranteed-rate 500m set class-of-service interfaces xe-9/0/3 output-traffic-control-profile tcp_ifd set class-of-service interfaces xe-9/0/3 unit 1 output-traffic-control-profile tcp_gold set class-of-service interfaces xe-9/0/3 unit 2 output-traffic-control-profile tcp_silver set class-of-service scheduler-maps gold forwarding-class be1 scheduler gold_internet set class-of-service scheduler-maps gold forwarding-class ef1 scheduler gold_video set class-of-service scheduler-maps gold forwarding-class af1 scheduler gold_voice set class-of-service scheduler-maps gold forwarding-class nc1 scheduler gold_reserved set class-of-service scheduler-maps silver forwarding-class be scheduler silver_internet set class-of-service scheduler-maps silver forwarding-class ef scheduler silver_video set class-of-service scheduler-maps silver forwarding-class af scheduler silver_voice set class-of-service scheduler-maps silver forwarding-class nc scheduler silver_reserved set class-of-service schedulers gold_internet excess-rate percent 40 set class-of-service schedulers gold_internet buffer-size percent 20 set class-of-service schedulers gold_internet priority low set class-of-service schedulers gold_video transmit-rate percent 50 set class-of-service schedulers gold_video buffer-size percent 50 set class-of-service schedulers gold_voice shaping-rate percent 10 set class-of-service schedulers gold_voice buffer-size percent 10 set class-of-service schedulers gold_voice priority strict-high set class-of-service schedulers gold_reserved excess-rate percent 20 set class-of-service schedulers gold_reserved buffer-size percent 10 set class-of-service schedulers gold_reserved priority low set class-of-service schedulers silver_internet excess-rate percent 40 set class-of-service schedulers silver_internet buffer-size percent 20 set class-of-service schedulers silver_internet priority low set class-of-service schedulers silver_video transmit-rate percent 50 set class-of-service schedulers silver_video buffer-size percent 50 set class-of-service schedulers silver_voice shaping-rate percent 10 set class-of-service schedulers silver_voice buffer-size percent 10 set class-of-service schedulers silver_voice priority strict-high set class-of-service schedulers silver_reserved excess-rate percent 20 set class-of-service schedulers silver_reserved buffer-size percent 10 set class-of-service schedulers silver_reserved priority low
Procedimiento
Procedimiento paso a paso
En el ejemplo siguiente es necesario navegar por varios niveles en la jerarquía de configuración. Para obtener información acerca de cómo navegar por la CLI, consulte el Manual del usuario de la CLI de Junos OS.
Configure las interfaces del dispositivo.
[edit interfaces]
user@PE1# set xe-9/0/3 per-unit-scheduler user@PE1# set xe-9/0/3 vlan-tagging user@PE1# set xe-9/0/3 unit 1 vlan-id 101 user@PE1# set xe-9/0/3 unit 1 family inet address 10.1.1.1/24 user@PE1# set xe-9/0/3 unit 2 vlan-id 102 user@PE1# set xe-9/0/3 unit 2 family inet address 10.2.1.1/24Configure los clasificadores.
[edit class-of-service]
user@PE1# set classifiers inet-precedence c8 forwarding-class be loss-priority low code-points 000 user@PE1# set classifiers inet-precedence c8 forwarding-class ef loss-priority low code-points 001 user@PE1# set classifiers inet-precedence c8 forwarding-class af loss-priority low code-points 010 user@PE1# set classifiers inet-precedence c8 forwarding-class nc loss-priority low code-points 011 user@PE1# set classifiers inet-precedence c8 forwarding-class be1 loss-priority low code-points 100 user@PE1# set classifiers inet-precedence c8 forwarding-class ef1 loss-priority low code-points 101 user@PE1# set classifiers inet-precedence c8 forwarding-class af1 loss-priority low code-points 110 user@PE1# set classifiers inet-precedence c8 forwarding-class nc1 loss-priority low code-points 111Configure las clases de reenvío.
[edit class-of-service]
user@PE1# set forwarding-classes queue 0 be user@PE1# set forwarding-classes queue 1 ef user@PE1# set forwarding-classes queue 2 af user@PE1# set forwarding-classes queue 3 nc user@PE1# set forwarding-classes queue 4 be1 user@PE1# set forwarding-classes queue 5 ef1 user@PE1# set forwarding-classes queue 6 af1 user@PE1# set forwarding-classes queue 7 nc1Configure los perfiles de control de tráfico.
[edit class-of-service]
user@PE1# set traffic-control-profiles tcp_ifd shaping-rate 2500000000 user@PE1# set traffic-control-profiles tcp_ifd overhead-accounting bytes -20 user@PE1# set traffic-control-profiles tcp_gold scheduler-map gold user@PE1# set traffic-control-profiles tcp_gold shaping-rate 2500000000 user@PE1# set traffic-control-profiles tcp_gold overhead-accounting bytes -20 user@PE1# set traffic-control-profiles tcp_gold guaranteed-rate 1g user@PE1# set traffic-control-profiles tcp_silver scheduler-map silver user@PE1# set traffic-control-profiles tcp_silver shaping-rate 1g user@PE1# set traffic-control-profiles tcp_silver overhead-accounting bytes -20 user@PE1# set traffic-control-profiles tcp_silver guaranteed-rate 500mAsigne los perfiles de control de tráfico a sus respectivas interfaces físicas o lógicas.
[edit class-of-service]
user@PE1# set interfaces xe-9/0/3 output-traffic-control-profile tcp_ifd user@PE1# set interfaces xe-9/0/3 unit 1 output-traffic-control-profile tcp_gold user@PE1# set interfaces xe-9/0/3 unit 2 output-traffic-control-profile tcp_silverConfigure los mapas del programador.
[edit class-of-service]
user@PE1# set scheduler-maps gold forwarding-class be1 scheduler gold_internet user@PE1# set scheduler-maps gold forwarding-class ef1 scheduler gold_video user@PE1# set scheduler-maps gold forwarding-class af1 scheduler gold_voice user@PE1# set scheduler-maps gold forwarding-class nc1 scheduler gold_reserved user@PE1# set scheduler-maps silver forwarding-class be scheduler silver_internet user@PE1# set scheduler-maps silver forwarding-class ef scheduler silver_video user@PE1# set scheduler-maps silver forwarding-class af scheduler silver_voice user@PE1# set scheduler-maps silver forwarding-class nc scheduler silver_reservedConfigure los programadores.
[edit class-of-service]
user@PE1# set schedulers gold_internet excess-rate percent 40 user@PE1# set schedulers gold_internet buffer-size percent 20 user@PE1# set schedulers gold_internet priority low user@PE1# set schedulers gold_video transmit-rate percent 50 user@PE1# set schedulers gold_video buffer-size percent 50 user@PE1# set schedulers gold_voice shaping-rate percent 10 user@PE1# set schedulers gold_voice buffer-size percent 10 user@PE1# set schedulers gold_voice priority strict-high user@PE1# set schedulers gold_reserved excess-rate percent 20 user@PE1# set schedulers gold_reserved buffer-size percent 10 user@PE1# set schedulers gold_reserved priority low user@PE1# set schedulers silver_internet excess-rate percent 40 user@PE1# set schedulers silver_internet buffer-size percent 20 user@PE1# set schedulers silver_internet priority low user@PE1# set schedulers silver_video transmit-rate percent 50 user@PE1# set schedulers silver_video buffer-size percent 50 user@PE1# set schedulers silver_voice shaping-rate percent 10 user@PE1# set schedulers silver_voice buffer-size percent 10 user@PE1# set schedulers silver_voice priority strict-high user@PE1# set schedulers silver_reserved excess-rate percent 20 user@PE1# set schedulers silver_reserved buffer-size percent 10 user@PE1# set schedulers silver_reserved priority low
Resultados
Desde el modo de configuración, confirme la configuración introduciendo los show interfaces
comandos y show class-of-service
. Si el resultado no muestra la configuración deseada, repita las instrucciones de este ejemplo para corregir la configuración.
user@PE1# show interfaces interfaces { xe-9/0/3 { per-unit-scheduler; vlan-tagging; unit 1 { vlan-id 101; family inet { address 10.1.1.1/24; } } unit 2 { vlan-id 102; family inet { address 10.2.1.1/24; } } } }
user@PE1# show class-of-service class-of-service { classifiers { inet-precedence c8 { forwarding-class be { loss-priority low code-points 000; } forwarding-class ef { loss-priority low code-points 001; } forwarding-class af { loss-priority low code-points 010; } forwarding-class nc { loss-priority low code-points 011; } forwarding-class be1 { loss-priority low code-points 100; } forwarding-class ef1 { loss-priority low code-points 101; } forwarding-class af1 { loss-priority low code-points 110; } forwarding-class nc1 { loss-priority low code-points 111; } } } forwarding-classes { queue 0 be; queue 1 ef; queue 2 af; queue 3 nc; queue 4 be1; queue 5 ef1; queue 6 af1; queue 7 nc1; } traffic-control-profiles { tcp_ifd { shaping-rate 2500000000; overhead-accounting bytes -20; } tcp_gold { scheduler-map gold; shaping-rate 2500000000; overhead-accounting bytes -20; guaranteed-rate 1g; } tcp_silver { scheduler-map silver; shaping-rate 1g; overhead-accounting bytes -20; guaranteed-rate 500m; } } interfaces { xe-9/0/3 { output-traffic-control-profile tcp_ifd; unit 1 { output-traffic-control-profile tcp_gold; } unit 2 { output-traffic-control-profile tcp_silver; } } } scheduler-maps { gold { forwarding-class be1 scheduler gold_internet; forwarding-class ef1 scheduler gold_video; forwarding-class af1 scheduler gold_voice; forwarding-class nc1 scheduler gold_reserved; } silver { forwarding-class be scheduler silver_internet; forwarding-class ef scheduler silver_video; forwarding-class af scheduler silver_voice; forwarding-class nc scheduler silver_reserved; } } schedulers { gold_internet { excess-rate percent 40; buffer-size percent 20; priority low; } gold_video { transmit-rate percent 50; buffer-size percent 50; } gold_voice { shaping-rate percent 10; buffer-size percent 10; priority strict-high; } gold_reserved { excess-rate percent 20; buffer-size percent 10; priority low; } silver_internet { excess-rate percent 40; buffer-size percent 20; priority low; } silver_video { transmit-rate percent 50; buffer-size percent 50; } silver_voice { shaping-rate percent 10; buffer-size percent 10; priority strict-high; } silver_reserved { excess-rate percent 20; buffer-size percent 10; priority low; } } }
Si ha terminado de configurar el dispositivo, ingrese commit desde el modo de configuración.