예: EX 시리즈 스위치에서 CoS 구성
스위치에서 서비스 등급(CoS)를 구성하여 트래픽을 관리하여 네트워크 정체와 지연이 경험되면 중요한 애플리케이션을 보호할 수 있습니다. CoS를 사용하면 스위치의 트래픽을 클래스로 분할하고 다양한 수준의 처리량과 패킷 손실을 제공할 수 있습니다. 이는 음성 트래픽과 같은 지터와 지연에 민감한 트래픽에 특히 중요합니다.
이 예에서는 네트워크에서 단일 EX 시리즈 스위치에서 CoS를 구성하는 방법을 보여줍니다.
요구 사항
이 예에서는 다음과 같은 하드웨어 및 소프트웨어 구성 요소를 활용합니다.
EX3200 및 EX4200 스위치
Junos OS EX Series 스위치용 릴리즈 9.0 이상
개요 및 토폴로지
이 예에서는 그림 1의 토폴로지 를 사용하여
![Topology for Configuring CoS](/documentation/us/en/software/junos/cos-ex/images/g020033.gif)
이 구성 예제의 토폴로지는 액세스 레이어의 EX3200 및 EX4200 스위치로 구성됩니다.
EX Series 액세스 스위치는 VLAN 멤버십을 지원하도록 구성됩니다. EX3200 액세스 레이어 스위치에서 인터페이스는 2개의 VoIP IP 전화기에서 ge-0/0/0
ge-0/0/1
음성 VLAN()에 voice-vlan
할당됩니다. 감시 카메라를 위해 스위치 인터페이스가 카메라 ge-0/0/2
VLAN()에 camera-vlan
할당됩니다. 스위치 인터페이스 ge-0/0/3
ge-0/0/4
, 그리고 ge-0/0/5
ge-0/0/6
Citrix, Microsoft, Oracle 및 SAP에서 제공하는 애플리케이션과 같은 다양한 애플리케이션을 호스팅하는 서버에 대해 서버 VLAN()에 server-vlan
할당됩니다. EX3200 트렁크 포트, ge-0/0/20 및 ge-0/0/21이 서버, 음성, 직원 및 카메라 VLA에 할당되어 업링크 포트로 사용되어 분산 레이어 스위치를 연결합니다.
EX4200 스위치는 직원 및 음성 VLA를 유사하게 연결하기 위해 액세스 레이어에 포함되어 있습니다. 이 예에서는 해당 스위치에 대한 구성 세부 사항을 보여주지 않습니다.
표 1에는 VLAN 구성 구성 요소가 표시되어 있습니다.
VLAN 이름 |
VLAN ID |
VLAN 서브넷 및 가용 IP 주소 |
VLAN 설명 |
---|---|---|---|
|
|
|
직원 VoIP 통신에 사용되는 음성 VLAN |
|
|
|
감시 카메라를 위한 VLAN. |
|
|
|
엔터프라이즈 애플리케이션을 호스팅하는 서버를 위한 VLAN |
PoE 지원 포트는 PoE(Power over Ethernet)(PoE)를 지원하여 포트에 연결하는 VoIP 전화기에 대한 네트워크 연결과 전력을 모두 제공합니다. 표 2에는 48포트 스위치의 스위치 포트에 연결된 장치의 IP 주소와 VLA에 할당된 스위치 인터페이스가 표시되어 있으며, 이 모든 포트는 PoE 있습니다.
인터페이스 |
VLAN 멤버십 |
IP 주소 |
포트 디바이스 |
---|---|---|---|
|
|
|
2개의 VoIP 전화기. |
|
|
|
감시 카메라 |
|
|
|
Citrix, Microsoft, Oracle, SAP가 제공하는 애플리케이션을 호스팅하는 4개 서버. |
이 예에서는 독립형 EX 시리즈 스위치에서 CoS를 구성하는 방법을 보여줍니다. 이 예에서는 ingress 및 egress 스위치에 서로 다른 구성을 구현하여 네트워크의 노드 집합에서 서로 다른 클래스에 대한 차별화된 처리를 제공할 수 있는 CoS의 네트워크 전반 애플리케이션을 고려하지 않습니다.
전송 속도 구성 시 엄격한 우선 순위로 구성된 스케줄러가 종종 볼 수 있습니다. 하지만 엄격한 우선 순위의 스케줄러가 무제한 대역폭을 얻게 하여 전송 속도 매개 변수가 영향을 미치기 때문에 해당 구성은 오해의 를 떨어질 수 있습니다. 이 구성을 통해 혼잡이 있는 경우 우선 순위가 낮은 대기열이 고전을 겪을 수 있습니다. 우선 순위가 엄격한 스케줄러가 셰이핑 속도 매개변수를 구성하는 것이 낫습니다. 이 매개 변수는 대역폭을 제한하는 올바른 방식으로 구성됩니다.
구성
절차
CLI 빠른 구성
CoS를 신속하게 구성하기 위해 다음 명령을 복사하여 스위치 터미널 창에 붙여넣기:
[edit] set class-of-service forwarding-classes class app queue-num 5 set class-of-service forwarding-classes class mail queue-num 1 set class-of-service forwarding-classes class db queue-num 2 set class-of-service forwarding-classes class erp queue-num 3 set class-of-service forwarding-classes class video queue-num 4 set class-of-service forwarding-classes class best-effort queue-num 0 set class-of-service forwarding-classes class voice queue-num 6 set class-of-service forwarding-classes class network-control queue-num 7 set firewall family ethernet-switching filter voip_class term voip from source-address 192.168.1.1/28 set firewall family ethernet-switching filter voip_class term voip from source-address 192.168.1.2/28 set firewall family ethernet-switching filter voip_class term voip from protocol udp set firewall family ethernet-switching filter voip_class term voip from source-port 2698 set firewall family ethernet-switching filter voip_class term voip then forwarding-class voice loss-priority low set firewall family ethernet-switching filter voip_class term network_control from precedence [net-control internet-control] set firewall family ethernet-switching filter voip_class term network_control then forwarding-class network-control loss-priority low set firewall family ethernet-switching filter voip_class term best_effort_traffic then forwarding-class best-effort loss-priority low set interfaces ge-0/0/0 description phone1–voip-ingress-port set interfaces ge-0/0/0 unit 0 family ethernet-switching filter input voip_class set class-of-service interfaces ge-0/0/0 shaping-rate 100m set interfaces ge-0/0/1 description phone2–voip-ingress-port set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input voip_class set firewall family ethernet-switching filter video_class term video from source-address 192.168.1.17/28 set firewall family ethernet-switching filter video_class term video from protocol udp set firewall family ethernet-switching filter video_class term video from source-port 2979 set firewall family ethernet-switching filter video_class term video then forwarding-class video loss-priority low set firewall family ethernet-switching filter video_class term network_control from precedence [net-control internet-control] set firewall family ethernet-switching filter video_class term network_control then forwarding-class network-control loss-priority low set firewall family ethernet-switching filter video_class term best_effort_traffic then forwarding-class best-effort loss-priority low set interfaces ge-0/0/2 description video-ingress-port set interfaces ge-0/0/2 unit 0 family ethernet-switching filter input video_class set firewall family ethernet-switching filter app_class term app from source-address 192.168.1.33/28 set firewall family ethernet-switching filter app_class term app from protocol tcp set firewall family ethernet-switching filter app_class term app from source-port [1494 2512 2513 2598 2897] set firewall family ethernet-switching filter app_class term app then forwarding-class app loss-priority low set firewall family ethernet-switching filter app_class term mail from source-address 192.168.1.34/28 set firewall family ethernet-switching filter app_class term mail from protocol tcp set firewall family ethernet-switching filter app_class term mail from source-port [25 143 389 691 993 3268 3269] set firewall family ethernet-switching filter app_class term mail then forwarding-class mail loss-priority low set firewall family ethernet-switching filter app_class term db from source-address 192.168.1.35/28 set firewall family ethernet-switching filter app_class term db from protocol tcp set firewall family ethernet-switching filter app_class term db from source-port [1521 1525 1527 1571 1810 2481] set firewall family ethernet-switching filter app_class term db then forwarding-class db loss-priority low set firewall family ethernet-switching filter app_class term erp from source-address 192.168.1.36/28 set firewall family ethernet-switching filter app_class term erp from protocol tcp set firewall family ethernet-switching filter app_class term erp from source-port [3200 3300 3301 3600] set firewall family ethernet-switching filter app_class term erp then forwarding-class erp loss-priority low set firewall family ethernet-switching filter app_class term network_control from precedence [net-control internet-control] set firewall family ethernet-switching filter app_class term network_control then forwarding-class network-control loss-priority low set firewall family ethernet-switching filter app_class term best_effort_traffic then forwarding-class best-effort loss-priority low set interfaces ge-0/0/3 unit 0 family ethernet-switching filter input app_class set interfaces ge-0/0/4 unit 0 family ethernet-switching filter input app_class set interfaces ge-0/0/5 unit 0 family ethernet-switching filter input app_class set interfaces ge-0/0/6 unit 0 family ethernet-switching filter input app_class set class-of-service schedulers voice-sched shaping-rate percent 10 set class-of-service schedulers voice-sched buffer-size percent 10 set class-of-service schedulers voice-sched priority strict-high set class-of-service schedulers video-sched priority low set class-of-service schedulers video-sched transmit-rate percent 15 set class-of-service schedulers app-sched buffer-size percent 10 set class-of-service schedulers app-sched priority low set class-of-service schedulers app-sched transmit-rate percent 10 set class-of-service schedulers mail-sched buffer-size percent 5 set class-of-service schedulers mail-sched priority low set class-of-service schedulers mail-sched transmit-rate percent 5 set class-of-service schedulers db-sched buffer-size percent 10 set class-of-service schedulers db-sched priority low set class-of-service schedulers db-sched transmit-rate percent 10 set class-of-service schedulers erp-sched buffer-size percent 10 set class-of-service schedulers erp-sched priority low set class-of-service schedulers erp-sched transmit-rate percent 10 set class-of-service schedulers nc-sched shaping-rate percent 5 set class-of-service schedulers nc-sched buffer-size percent 5 set class-of-service schedulers nc-sched priority strict-high set class-of-service schedulers be-sched buffer-size percent 35 set class-of-service schedulers be-sched priority low set class-of-service schedulers be-sched transmit-rate percent 35 set class-of-service scheduler-maps ethernet-cos-map forwarding-class voice scheduler voice-sched set class-of-service scheduler-maps ethernet-cos-map forwarding-class video scheduler video-sched set class-of-service scheduler-maps ethernet-cos-map forwarding-class app scheduler app-sched set class-of-service scheduler-maps ethernet-cos-map forwarding-class mail scheduler mail-sched set class-of-service scheduler-maps ethernet-cos-map forwarding-class db scheduler db-sched set class-of-service scheduler-maps ethernet-cos-map forwarding-class erp scheduler erp-sched set class-of-service scheduler-maps ethernet-cos-map forwarding-class network-control scheduler nc-sched set class-of-service scheduler-maps ethernet-cos-map forwarding-class best-effort scheduler be-sched set class-of-service interfaces ge-0/0/20 scheduler-map ethernet-cos-map set class-of-service interfaces ge-0/0/21 scheduler-map ethernet-cos-map set class-of-service schedulers voice-sched-queue-shap shaping-rate 30m set class-of-service scheduler-maps sched-map-be forwarding-class best-effort scheduler voice-sched-queue-shap set class-of-service interfaces ge-0/0/2 scheduler-map sched-map-be
단계별 절차
CoS 구성 및 적용:
8개의 포우링 클래스와 8개의 큐 간에 일대일 매핑을 구성합니다.
[edit class-of-service] user@switch# set forwarding-classes class app queue-num 5 user@switch# set forwarding-classes class mail queue-num 1 user@switch# set forwarding-classes class db queue-num 2 user@switch# set forwarding-classes class erp queue-num 3 user@switch# set forwarding-classes class video queue-num 4 user@switch# set forwarding-classes class best-effort queue-num 0 user@switch# set forwarding-classes class voice queue-num 6 user@switch# set forwarding-classes class network-control queue-num 7
VoIP 트래픽을 분류하기 위한
voip_class
방화벽 필터를 정의합니다.[edit firewall] user@switch# set family ethernet-switching filter voip_class
다음 용어를
voip
정의합니다.[edit firewall] user@switch# set family ethernet-switching filter voip_class term voip from source-address 192.168.1.1/28 user@switch# set family ethernet-switching filter voip_class term voip from source-address 192.168.1.2/28 user@switch# set family ethernet-switching filter voip_class term voip protocol udp user@switch# set family ethernet-switching filter voip_class term voip source-port 2698 user@switch# set family ethernet-switching filter voip_class term voip then forwarding-class voice loss-priority low
용어
network_control
voip_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter voip_class term network_control from precedence [net-control internet-control] user@switch# set family ethernet-switching filter voip_class term network_control then forwarding-class network-control loss-priority low
필터에 대해 일치 조건이
best_effort_traffic
없는voip_class
용어를 정의합니다.[edit firewall] user@switch# set family ethernet-switching filter voip_class term best_effort_traffic then forwarding-class best-effort loss-priority low
방화벽 필터를 VoIP 전화의 인터페이스에 입력
voip_class
필터로 적용합니다.[edit interfaces] user@switch# set ge-0/0/0 description phone1-voip-ingress-port user@switch# set ge-0/0/0 unit 0 family ethernet-switching filter input voip_class user@switch# set ge-0/0/1 description phone2-voip-ingress-port user@switch# set ge-0/0/1 unit 0 family ethernet-switching filter input voip_class
인터페이스 ge-0/0/0에서 포트 셰이핑 적용:
[edit] user@switch# set class-of-service interfaces ge-0/0/0 shaping-rate 100m
비디오 트래픽을 분류하기 위한 방화벽
video_class
필터를 정의합니다.[edit firewall] user@switch# set family ethernet-switching filter video_class
다음 용어를
video
정의합니다.[edit firewall] user@switch# set family ethernet-switching filter video_class term video from source-address 192.168.1.17/28 user@switch# set family ethernet-switching filter video_class term video protocol udp user@switch# set family ethernet-switching filter video_class term video source-port 2979 user@switch# set family ethernet-switching filter video_class term video then forwarding-class video loss-priority low
용어
network_control
video_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter video_class term network_control from precedence [net-control internet-control] user@switch# set family ethernet-switching filter video_class term network_control then forwarding-class network-control loss-priority low
필터에 대해 일치 조건이
best_effort_traffic
없는video_class
용어를 정의합니다.[edit firewall] user@switch# set family ethernet-switching filter video_class term best_effort_traffic then forwarding-class best-effort loss-priority low
방화벽 필터를 감시 카메라를 위한 인터페이스에 입력
video_class
필터로 적용합니다.[edit interfaces] user@switch# set ge-0/0/2 description video-ingress-port user@switch# set ge-0/0/2 unit 0 family ethernet-switching filter input video_class
애플리케이션 서버 트래픽을 분류하기 위한 방화벽
app_class
필터를 정의합니다.[edit firewall] user@switch# set family ethernet-switching filter app_class
용어
app
app_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter app_class term app from source-address 192.168.1.33/28 user@switch# set family ethernet-switching filter app_class term app protocol tcp user@switch# set family ethernet-switching filter app_class term app source-port [1494 2512 2513 2598 2897] user@switch# set family ethernet-switching filter app_class term app then forwarding-class app loss-priority low
용어
mail
app_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter app_class term mail from source-address 192.168.1.34/28 user@switch# set family ethernet-switching filter app_class term mail protocol tcp user@switch# set family ethernet-switching filter app_class term mail source-port [25 143 389 691 993 3268 3269] user@switch# set family ethernet-switching filter app_class term mail then forwarding-class mail loss-priority low
용어
db
app_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter app_class term db from source-address 192.168.1.35/28 user@switch# set family ethernet-switching filter app_class term db protocol tcp user@switch# set family ethernet-switching filter app_class term db source-port [1521 1525 1527 1571 1810 2481] user@switch# set family ethernet-switching filter app_class term db then forwarding-class db loss-priority low
용어
erp
app_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter app_class term erp from source-address 192.168.1.36/28 user@switch# set family ethernet-switching filter app_class term erp protocol tcp user@switch# set family ethernet-switching filter app_class term erp source-port [3200 3300 3301 3600] user@switch# set family ethernet-switching filter app_class term erp then forwarding-class erp loss-priority low
용어
network_control
app_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter app_class term network_control from precedence [net-control internet-control] user@switch# set family ethernet-switching filter app_class term network_control then forwarding-class network-control loss-priority low
용어
best_effort_traffic
app_class
정의(필터용):[edit firewall] user@switch# set family ethernet-switching filter app_class term best_effort_traffic then forwarding-class best-effort loss-priority low
방화벽 필터를 입력 필터로 적용하여 애플리케이션을 호스팅하는 서버의
app_class
인터페이스에 적용합니다.[edit interfaces] user@switch# set ge-0/0/3 unit 0 family ethernet-switching filter input app_class user@switch# set ge-0/0/4 unit 0 family ethernet-switching filter input app_class user@switch# set ge-0/0/5 unit 0 family ethernet-switching filter input app_class user@switch# set ge-0/0/6 unit 0 family ethernet-switching filter input app_class
스케줄러 구성:
[edit class-of-service] user@switch# set schedulers voice-sched shaping-rate percent 10 user@switch# set schedulers voice-sched buffer-size percent 10 user@switch# set schedulers voice-sched priority strict-high user@switch# set schedulers video-sched priority low user@switch# set schedulers video-sched transmit-rate percent 15 user@switch# set schedulers app-sched buffer-size percent 10 user@switch# set schedulers app-sched priority low user@switch# set schedulers app-sched transmit-rate percent 10 user@switch# set schedulers mail-sched buffer-size percent 5 user@switch# set schedulers mail-sched priority low user@switch# set schedulers mail-sched transmit-rate percent 5 user@switch# set schedulers db-sched buffer-size percent 10 user@switch# set schedulers db-sched priority low user@switch# set schedulers db-sched transmit-rate percent 10 user@switch# set schedulers erp-sched buffer-size percent 10 user@switch# set schedulers erp-sched priority low user@switch# set schedulers erp-sched transmit-rate percent 10 user@switch# set schedulers nc-sched shaping-rate percent 5 user@switch# set schedulers nc-sched buffer-size percent 5 user@switch# set schedulers nc-sched priority strict-high user@switch# set schedulers nc-sched transmit-rate percent 5 user@switch# set schedulers be-sched buffer-size percent 35 user@switch# set schedulers be-sched priority low user@switch# set schedulers be-sched transmit-rate percent 35
스케줄러 맵을 통해 포링 클래스를 스케줄러에
ethernet-cos-map
할당합니다.[edit class-of-service] user@switch# set scheduler-maps ethernet-cos-map forwarding-class voice scheduler voice-sched user@switch# set scheduler-maps ethernet-cos-map forwarding-class video scheduler video-sched user@switch# set scheduler-maps ethernet-cos-map forwarding-class app scheduler app-sched user@switch# set scheduler-maps ethernet-cos-map forwarding-class mail scheduler mail-sched user@switch# set scheduler-maps ethernet-cos-map forwarding-class db scheduler db-sched user@switch# set scheduler-maps ethernet-cos-map forwarding-class erp scheduler erp-sched user@switch# set scheduler-maps ethernet-cos-map forwarding-class network-control scheduler nc-sched user@switch# set scheduler-maps ethernet-cos-map forwarding-class best-effort scheduler be-sched
스케줄러 맵을 아웃사이트 인터페이스에 연결합니다.
[edit class-of-service interfaces] user@switch# set ge-0/0/20 scheduler-map ethernet-cos-map user@switch# set ge-0/0/21 scheduler-map ethernet-cos-map
best-effort 큐에 큐 셰이핑을 적용합니다.
[edit] user@switch# set class-of-service schedulers voice-sched-queue-shap shaping-rate 30m user@switch# set class-of-service scheduler-maps sched-map-be forwarding-class best-effort scheduler voice-sched-queue-shap user@switch# set class-of-service interfaces ge-0/0/2 scheduler-map sched-map-be
결과
구성의 결과를 표시합니다.
user@switch> show firewall
firewall family ethernet-switching { filter voip_class { term voip { from { source-address { 192.168.1.1/28; 192.168.1.2/28; } protocol udp; source-port 2698; } then { forwarding-class voice; loss-priority low; } } term network control { from { precedence [net-control internet-control]; } then { forwarding-class network-control; loss-priority low; } } term best_effort_traffic { then { forwarding-class best-effort; loss-priority low; } } } filter video_class { term video { from { source-address { 192.168.1.17/28; } protocol udp; source-port 2979; } then { forwarding-class video; loss-priority low; } } term network control { from { precedence [net-control internet-control]; } then { forwarding-class network-control; loss-priority low; } } term best_effort_traffic { then { forwarding-class best-effort; loss-priority low; } } } filter app_class { term app { from { source-address { 192.168.1.33/28; } protocol tcp; source-port [1491 2512 2513 2598 2897]; } then { forwarding-class app; loss-priority low; } } term mail { from { source-address { 192.168.1.34/28; } protocol tcp; source-port [25 143 389 691 993 3268 3269]; } then { forwarding-class mail; loss-priority low; } } term db { from { source-address { 192.168.1.35/28; } protocol tcp; source-port [1521 1525 1527 1571 1810 2481]; } then { forwarding-class db; loss-priority low; } } term erp { from { source-address { 192.168.1.36/28; } protocol tcp; source-port [3200 3300 3301 3600]; } then { forwarding-class erp; loss-priority low; } } term network control { from { precedence [net-control internet-control]; } then { forwarding-class network-control; loss-priority low; } } term best_effort_traffic { then { forwarding-class best-effort; loss-priority low; } } } }
user@switch# show class-of-service
forwarding-classes { class app queue-num 5; class mail queue-num 1; class db queue-num 2; class erp queue-num 3; class video queue-num 4; class best-effort queue-num 0; class voice queue-num 6; class network-control queue-num 7; } interfaces { ge-0/0/0 { shaping-rate 100m; } ge-0/0/2 { scheduler-map sched-map-be; } ge-0/0/20 { scheduler-map ethernet-cos-map; } ge-0/0/21 { scheduler-map ethernet-cos-map; } } schedulers { voice-sched-queue-shap { shaping-rate 30m; } voice-sched { shaping-rate percent 10; buffer-size percent 10; priority strict-high; } video-sched { buffer-size percent 15; priority low; transmit-rate percent 15; } app-sched { buffer-size percent 10; priority low; transmit-rate percent 10; } mail-sched { buffer-size percent 5; priority low; transmit-rate percent 5; } db-sched { buffer-size percent 10; priority low; transmit-rate percent 10; } erp-sched { buffer-size percent 10; priority low; transmit-rate percent 10; } nc-sched { shaping-rate percent 5; buffer-size percent 5; priority strict-high; } be-sched { buffer-size percent 35; priority low; transmit-rate percent 35; } } scheduler-maps { ethernet-cos-map { forwarding-class voice scheduler voice-sched; forwarding-class video scheduler video-sched; forwarding-class app scheduler app-sched; forwarding-class mail scheduler mail-sched; forwarding-class db scheduler db-sched; forwarding-class erp scheduler erp-sched; forwarding-class network-control scheduler nc-sched; forwarding-class best-effort scheduler be-sched; } sched-map-be { forwarding-class best-effort scheduler voice-sched-queue-shap; } }
user@switch# show interfaces
ge-0/0/0 { unit 0 { family ethernet { filter { input voip_class; } } } } ge-0/0/1 { unit 0 { family ethernet { filter { input voip_class; } } } } ge-0/0/2 { unit 0 { family ethernet { filter { input video_class; } } } } ge-0/0/3 { unit 0 { family ethernet { filter { input app_class; } } } } ge-0/0/4 { unit 0 { family ethernet { filter { input app_class; } } } } ge-0/0/5 { unit 0 { family ethernet { filter { input app_class; } } } } ge-0/0/6 { unit 0 { family ethernet { filter { input app_class; } } } }
확인
구성이 제대로 작동하고 있는지 확인하려면 다음 작업을 수행합니다.
- 정의된 포링 클래스가 큐에 존재하고 매핑되어 있는지 검증
- 스케줄러에게 포링 클래스가 할당되어 있는지 검증
- 스케줄러 맵이 인터페이스에 적용된지 확인
- 포트 셰이핑이 적용된지 확인
- 큐 셰이핑이 적용된지 확인
정의된 포링 클래스가 큐에 존재하고 매핑되어 있는지 검증
목적
포링 클래스 , , , 및 큐에 정의되고 app
best-effort
db
erp
mail
network-control
video
voice
매핑되어 있는지 검증합니다.
작업
user@switch> show class-of-service forwarding-class Forwarding class ID Queue app 0 5 db 1 2 erp 2 3 best-effort 3 0 mail 4 1 voice 5 6 video 6 4 network-control 7 7
의미
이 출력은 포링 클래스가 해당 큐에 정의되어 매핑된 것으로 보여줍니다.
스케줄러에게 포링 클래스가 할당되어 있는지 검증
목적
포링 클래스가 스케줄러에 할당된지 확인
작업
user@switch> show class-of-service scheduler-map Scheduler map: ethernet-cos-map, Index: 2 Scheduler: voice-sched, Forwarding class: voice, Index: 22 Shaping rate: 10 percent, Rate Limit: none, Buffer size: 10 percent, Priority: Strict-high Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile> Scheduler: video-sched, Forwarding class: video, Index: 22 Transmit rate: 10 percent, Rate Limit: none, Buffer size: 10 percent, Priority: low Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile> Scheduler: app-sched, Forwarding class: app, Index: 22 Transmit rate: 10 percent, Rate Limit: none, Buffer size: 10 percent, Priority: low Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile> Scheduler: mail-sched, Forwarding class: mail, Index: 22 Transmit rate: 5 percent, Rate Limit: none, Buffer size: 5 percent, Priority: low Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile> Scheduler: db-sched, Forwarding class: db, Index: 22 Transmit rate: 10 percent, Rate Limit: none, Buffer size: 10 percent, Priority: low Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile> Scheduler: erp-sched, Forwarding class: erp, Index: 22 Transmit rate: 10 percent, Rate Limit: none, Buffer size: 10 percent, Priority: low Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile> Scheduler: be-sched, Forwarding class: best-effort, Index: 20 Transmit rate: 35 percent, Rate Limit: none, Buffer size: 35 percent, Priority: low Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile> Scheduler: nc-sched, Forwarding class: network-control, Index: 22 Shaping rate: 5 percent, Rate Limit: none, Buffer size: 5 percent, Priority: Strict-high Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile>
의미
이 출력은 포우링 클래스가 스케줄러에 할당된 것으로 보여줍니다.
스케줄러 맵이 인터페이스에 적용된지 확인
목적
스케줄러 맵이 인터페이스에 적용된지 확인
작업
user@switch> show class-of-service interface ... Physical interface: ge-0/0/20, Index: 149 Queues supported: 8, Queues in use: 8 Scheduler map: ethernet-cos-map, Index: 43366 Input scheduler map: <default>, Index: 3 ... Physical interface: ge-0/0/21, Index: 150 Queues supported: 8, Queues in use: 8 Scheduler map: ethernet-cos-map, Index: 15103 Input scheduler map: <default>, Index: 5 ...
의미
이 출력에는 스케줄러 맵() 및 를 적용한 인터페이스에 대한 세부 정보가 ethernet-cos-map
ge-0/0/20
포함되어 ge-0/0/21
있습니다.
포트 셰이핑이 적용된지 확인
목적
포트 셰이핑이 인터페이스에 적용된지 확인
작업
포트 셰이핑이 인터페이스에 적용되기 전의 출력은 다음과 같습니다. 인터페이스에서 ge-0/0/0
400Mpbs의 Egress 트래픽이 나가는 경우:
user@switch> show interfaces ge-0/0/0 extensive Physical interface: ge-0/0/0, Enabled, Physical link is Up Interface index: 239, SNMP ifIndex: 548, Generation: 242 Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online, Media type: Copper Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x0 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Hold-times : Up 0 ms, Down 0 ms Current address: 00:23:9c:0b:ae:8d, Hardware address: 00:23:9c:0b:ae:8d Last flapped : 2012-07-07 03:21:52 UTC (1d 18:02 ago) Statistics last cleared: 2012-07-07 23:54:34 UTC (21:29:59 ago) Traffic statistics: Input bytes : 0 0 bps Output bytes : 2299853696 345934816 bps Input packets: 0 0 pps Output packets: 17967609 337827 pps IPv6 transit statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 0, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 0 18302337 0 1 assured-forw 0 0 0 5 expedited-fo 0 0 0 7 network-cont 0 0 0 Queue number: Mapped forwarding classes 0 best-effort 1 assured-forwarding 5 expedited-forwarding 7 network-control Active alarms : None Active defects : None MAC statistics: Receive Transmit Total octets 0 2299853696 Total packets 0 17967609 Unicast packets 0 17967609 Broadcast packets 0 0 Multicast packets 0 0 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 Code violations 0 Autonegotiation information: Negotiation status: Complete Link partner: Link mode: Full-duplex, Flow control: Symmetric, Remote fault: OK, Link partner Speed: 1000 Mbps Local resolution: Flow control: Symmetric, Remote fault: Link OK Packet Forwarding Engine configuration: Destination slot: 1 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 950000000 95 NA low none 7 network-control 5 50000000 5 NA low none Interface transmit statistics: Disabled Logical interface ge-1/0/10.0 (Index 69) (SNMP ifIndex 638) (Generation 138) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 Traffic statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Local statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Transit statistics: Input bytes : 0 0 bps Output bytes : 0 0 bps Input packets: 0 0 pps Output packets: 0 0 pps Protocol eth-switch, Generation: 163, Route table: 0 Flags: Trunk-Mode
트래픽 통계: 이 출력의 필드는 egress 트래픽이 ~400Mpbs(345,934,816bps)입니다. 100Mbps의 포트 셰이핑을 ge-0/0/0 인터페이스에 적용하면 다음과 같은 명령의 출력이 show interfaces ge-0/0/0 statistics show class-of-service interface ge-0/0/0 표시됩니다.
user@switch> show interfaces ge-0/0/0 statistics Physical interface: ge-0/0/0, Enabled, Physical link is Up Interface index: 239, SNMP ifIndex: 548, Generation: 242 Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online, Media type: Copper Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x0 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Hold-times : Up 0 ms, Down 0 ms Current address: 00:23:9c:0b:ae:8d, Hardware address: 00:23:9c:0b:ae:8d Last flapped : 2012-07-07 03:21:52 UTC (1d 18:10 ago) Statistics last cleared: 2012-07-07 23:54:34 UTC (21:37:58 ago) Traffic statistics: Input bytes : 0 0 bps Output bytes : 15779512832 100223104 bps Input packets: 0 0 pps Output packets: 123277444 97874 pps IPv6 transit statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 0, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 0 123350092 57012484 1 assured-forw 0 0 0 5 expedited-fo 0 0 0 7 network-cont 0 0 0 Queue number: Mapped forwarding classes 0 best-effort 1 assured-forwarding 5 expedited-forwarding 7 network-control Active alarms : None Active defects : None MAC statistics: Receive Transmit Total octets 0 15779512832 Total packets 0 123277444 Unicast packets 0 123277444 Broadcast packets 0 0 Multicast packets 0 0 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 Code violations 0 Autonegotiation information: Negotiation status: Complete Link partner: Link mode: Full-duplex, Flow control: Symmetric, Remote fault: OK, Link partner Speed: 1000 Mbps Local resolution: Flow control: Symmetric, Remote fault: Link OK Packet Forwarding Engine configuration: Destination slot: 1 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 95000000 95 NA low none 7 network-control 5 5000000 5 NA low none Interface transmit statistics: Disabled Logical interface ge-1/0/10.0 (Index 69) (SNMP ifIndex 638) (Generation 138) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 Traffic statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Local statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Transit statistics: Input bytes : 0 0 bps Output bytes : 0 0 bps Input packets: 0 0 pps Output packets: 0 0 pps Protocol eth-switch, Generation: 163, Route table: 0 Flags: Trunk-Mode user@switch> show class-of-service interface ge-0/0/0 Physical interface: ge-0/0/0, Index: 165 Queues supported: 8, Queues in use: 4 Shaping rate: 100000000 bps ... ...
의미
명령의 출력에서 Traffic Statistics: 필드는 show interfaces ge-0/0/0 statistics
egress 트래픽이 ~100Mbps(100,223,104bps)를 표시하고 있습니다. 명령의 출력은 셰이핑 속도가 show class-of-service interface ge-0/0/0
100,000,000bps인 것으로 나타났습니다. 이는 100Mbps의 포트 셰이핑이 ge-0/0/0 인터페이스에 적용되었다는 것입니다.
큐 셰이핑이 적용된지 확인
목적
큐 셰이핑이 best-effort 큐에 적용된지 확인
작업
인터페이스에서 400Mpbs의 Egress 트래픽이 있는 경우 큐 셰이핑이 best-effort 큐에 적용되기 전에 출력은 다음과 같습니다.
user@switch> show interfaces ge-0/0/2 extensive Physical interface: ge-0/0/2, Enabled, Physical link is Up Interface index: 239, SNMP ifIndex: 548, Generation: 242 Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online, Media type: Copper Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x0 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Hold-times : Up 0 ms, Down 0 ms Current address: 00:23:9c:0b:ae:8d, Hardware address: 00:23:9c:0b:ae:8d Last flapped : 2012-07-07 03:21:52 UTC (1d 18:02 ago) Statistics last cleared: 2012-07-07 23:54:34 UTC (21:29:59 ago) Traffic statistics: Input bytes : 0 0 bps Output bytes : 2299853696 345934816 bps Input packets: 0 0 pps Output packets: 17967609 337827 pps IPv6 transit statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 0, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 0 18302337 0 1 assured-forw 0 0 0 5 expedited-fo 0 0 0 7 network-cont 0 0 0 Queue number: Mapped forwarding classes 0 best-effort 1 assured-forwarding 5 expedited-forwarding 7 network-control Active alarms : None Active defects : None MAC statistics: Receive Transmit Total octets 0 2299853696 Total packets 0 17967609 Unicast packets 0 17967609 Broadcast packets 0 0 Multicast packets 0 0 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 Code violations 0 Autonegotiation information: Negotiation status: Complete Link partner: Link mode: Full-duplex, Flow control: Symmetric, Remote fault: OK, Link partner Speed: 1000 Mbps Local resolution: Flow control: Symmetric, Remote fault: Link OK Packet Forwarding Engine configuration: Destination slot: 1 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 950000000 95 NA low none 7 network-control 5 50000000 5 NA low none Interface transmit statistics: Disabled Logical interface ge-1/0/10.0 (Index 69) (SNMP ifIndex 638) (Generation 138) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 Traffic statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Local statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Transit statistics: Input bytes : 0 0 bps Output bytes : 0 0 bps Input packets: 0 0 pps Output packets: 0 0 pps Protocol eth-switch, Generation: 163, Route table: 0 Flags: Trunk-Mode
트래픽 통계: 이 출력의 필드는 egress 트래픽이 ~400Mpbs(345,934,816bps)입니다. 30Mbps의 큐 셰이핑이 best-effort 큐에 적용된 경우, 다음 출력과 명령이 show interfaces ge-0/0/2 statistics
show class-of-service scheduler-map sched-map-be
나타났습니다.
user@switch> show interfaces ge-0/0/2 statistics Physical interface: ge-0/0/2, Enabled, Physical link is Up Interface index: 239, SNMP ifIndex: 548, Generation: 242 Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Auto, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online, Media type: Copper Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x0 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Hold-times : Up 0 ms, Down 0 ms Current address: 00:23:9c:0b:ae:8d, Hardware address: 00:23:9c:0b:ae:8d Last flapped : 2012-07-07 03:21:52 UTC (1d 18:29 ago) Statistics last cleared: 2012-07-08 21:46:22 UTC (00:04:56 ago) Traffic statistics: Input bytes : 0 0 bps Output bytes : 5376128896 30097712 bps Input packets: 0 0 pps Output packets: 42001003 29392 pps IPv6 transit statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 0, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 0 41986978 57813642 1 assured-forw 0 0 0 5 expedited-fo 0 0 0 7 network-cont 0 0 0 Queue number: Mapped forwarding classes 0 best-effort 1 assured-forwarding 5 expedited-forwarding 7 network-control Active alarms : None Active defects : None MAC statistics: Receive Transmit Total octets 0 5376128896 Total packets 0 42001003 Unicast packets 0 42001003 Broadcast packets 0 0 Multicast packets 0 0 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 Code violations 0 Autonegotiation information: Negotiation status: Complete Link partner: Link mode: Full-duplex, Flow control: Symmetric, Remote fault: OK, Link partner Speed: 1000 Mbps Local resolution: Flow control: Symmetric, Remote fault: Link OK Packet Forwarding Engine configuration: Destination slot: 1 CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort r r r NA low none Interface transmit statistics: Disabled Logical interface ge-1/0/10.0 (Index 69) (SNMP ifIndex 638) (Generation 138) Flags: SNMP-Traps 0x0 Encapsulation: ENET2 Traffic statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Local statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Transit statistics: Input bytes : 0 0 bps Output bytes : 0 0 bps Input packets: 0 0 pps Output packets: 0 0 pps Protocol eth-switch, Generation: 163, Route table: 0 Flags: Trunk-Mode
user@switch> show class-of-service scheduler-map sched-map-be Scheduler map: sched-map-be, Index: 31271 Scheduler: voice-sched-queue-shap, Forwarding class: best-effort, Index: 64106 Transmit rate: remainder, Rate Limit: none, Buffer size: remainder, Buffer Limit: none, Priority: low Excess Priority: unspecified Shaping rate: 30000000 bps Drop profiles: Loss priority Protocol Index Name High non-TCP 1 <default-drop-profile> High TCP 1 <default-drop-profile>
의미
명령의 출력에서 Traffic Statistics: 필드는 show interfaces ge-0/0/2 statistics
egress 트래픽이 ~30Mbps(30,097,712bps)임이 표시 명령의 show class-of-service scheduler-map sched-map-be
출력은 best-effort 큐에 30,000,000bps(즉, 30Mbps)의 셰이핑 속도가 적용된 것으로 나타났습니다.