SlideShare une entreprise Scribd logo
1  sur  20
QOS MARKING ON CISCO IOS ROUTER
Quality of Service (QoS) | www.netprotocolxpert.in
• Marking means that we set the TOS (Type of Service) byte with an IP
Precedence value or DSCP value.
• Marking on a Cisco catalyst switch is a bit different than on a router.
CONFIGURATION
• We will send some traffic from R1 to R3 and we will use R2 to mark our traffic. We’ll
keep it simple and start by marking telnet traffic.
• Let’s create an access-list for classification:
• R2(config)#ip access‐list extended TELNET‐TRAFFIC
• R2(config‐ext‐nacl)#permit tcp any any eq telnet
• Now we need to add the access-list to a class-map:
• R2(config)#class‐map TELNET‐TRAFFIC
• R2(config‐cmap)#match access‐group name TELNET‐TRAFFIC
AND WE’LL ADD THE CLASS-
MAP TO A POLICY-MAP:
• R2(config)#policy‐map MARKING
• R2(config‐pmap)#class TELNET‐TRAFFIC
• R2(config‐pmap‐c)#set ?
• atm‐clp Set ATM CLP bit to 1
• cos Set IEEE 802.1Q/ISL class of service/user priority
• cos‐inner Set Inner CoS
• discard‐class Discard behavior identifier
• dscp Set DSCP in IP(v4) and IPv6 packets
• fr‐de Set FR DE bit to 1
• ip Set IP specific values
• mpls Set MPLS specific values
• precedence Set precedence in IP(v4) and IPv6 packets
• qos‐group Set QoS Group
• vlan‐inner Set Inner Vlan
• There are quite some options for the set command. When it comes to IP packets
we’ll use the precedence or DSCP values. Let’s start with precedence:
• R2(config‐pmap‐c)#set precedence ?
• <0‐7> Precedence value
• cos Set packet precedence from L2 COS
• critical Set packets with critical precedence (5)
• flash Set packets with flash precedence (3)
• flash‐override Set packets with flash override precedence (4)
• immediate Set packets with immediate precedence (2)
Cont.…
• internet Set packets with internetwork control precedence (6)
• network Set packets with network control precedence (7)
• priority Set packets with priority precedence (1)
• qos‐group Set packet precedence from QoS Group.
• routine Set packets with routine precedence (0)
• Let’s go for IP precedence 7 (network):
• R2(config‐pmap‐c)#set precedence network
• Last but not least, we have to activate the policy-map:
• R2(config)#interface FastEthernet 0/0
• R2(config‐if)#service‐policy input MARKING
• Telnet from R1 to R3:
• R1#telnet 192.168.23.3
• Trying 192.168.23.3 ... Open
• R2#show policy‐map interface FastEthernet 0/0
• FastEthernet0/0
• Service‐policy input: MARKING
• Class‐map: TELNET‐TRAFFIC (match‐all)
• 10 packets, 609 bytes
• 5 minute offered rate 0 bps, drop rate 0 bps
• Match: access‐group name TELNET‐TRAFFIC
• QoS Set
• precedence 7
• Packets marked 10
Cont.…
• Class‐map: class‐default (match‐any)
• 0 packets, 0 bytes
• 5 minute offered rate 0 bps, drop rate 0 bps
• Match: any
• 10 packets have been marked with precedence 7.
• Also mark some packets with a DSCP value, let’s mark some HTTP traffic:
• R2(config)#ip access‐list extended HTTP‐TRAFFIC
• R2(config‐ext‐nacl)#permit tcp any any eq 80
• Create a class-map:
• R2(config)#class‐map HTTP‐TRAFFIC
• R2(config‐cmap)#match access‐group name HTTP‐TRAFFIC
ADD TO THE POLICY-MAP:
• R2(config)#policy‐map MARKING
• R2(config‐pmap)#class HTTP‐TRAFFIC
• R2(config‐pmap‐c)#set dscp ?
• <0‐63> Differentiated services codepoint value
• af11 Match packets with AF11 dscp (001010)
• af12 Match packets with AF12 dscp (001100)
• af13 Match packets with AF13 dscp (001110)
• af21 Match packets with AF21 dscp (010010)
• af22 Match packets with AF22 dscp (010100)
• af23 Match packets with AF23 dscp (010110)
• af31 Match packets with AF31 dscp (011010)
• af32 Match packets with AF32 dscp (011100)
• af33 Match packets with AF33 dscp (011110)
Cont.…
• af41 Match packets with AF41 dscp (100010)
• af42 Match packets with AF42 dscp (100100)
• af43 Match packets with AF43 dscp (100110)
• cos Set packet DSCP from L2 COS
• cs1 Match packets with CS1(precedence 1) dscp (001000)
• cs2 Match packets with CS2(precedence 2) dscp (010000)
• cs3 Match packets with CS3(precedence 3) dscp (011000)
• cs4 Match packets with CS4(precedence 4) dscp (100000)
• cs5 Match packets with CS5(precedence 5) dscp (101000)
• cs6 Match packets with CS6(precedence 6) dscp (110000)
• cs7 Match packets with CS7(precedence 7) dscp (111000)
• default Match packets with default dscp (000000)
• ef Match packets with EF dscp (101110)
• qos‐group Set packet dscp from QoS Group.
• Let’s pick AF12
• R2(config‐pmap‐c)#set dscp af12
• Let’s generate some traffic:
• R3(config)#ip http server
• R1#telnet 192.168.23.3 80
• Trying 192.168.23.3, 80 ... Open
CHECK OUT THE POLICY-MAP:
• R2#show policy‐map interface FastEthernet 0/0
• FastEthernet0/0
• Service‐policy input: MARKING
• Class‐map: TELNET‐TRAFFIC (match‐all)
• 10 packets, 609 bytes
• 5 minute offered rate 0 bps, drop rate 0 bps
• Match: access‐group name TELNET‐TRAFFIC
• QoS Set
• precedence 7
• Packets marked 10
Cont.…
• Class‐map: HTTP‐TRAFFIC (match‐all)
• 3 packets, 180 bytes
• 5 minute offered rate 0 bps, drop rate 0 bps
• Match: access‐group name HTTP‐TRAFFIC
• QoS Set
• dscp af12
• Packets marked 3
• Class‐map: class‐default (match‐any)
• 99 packets, 5940 bytes
• 5 minute offered rate 0 bps, drop rate 0 bps
• Match: any
• Some network devices like switches or wireless controllers sometimes re-mark
traffic, this can be a pain and it's something you might want to check.
• On a Cisco IOS router it's simple to do this. just create a policy-map and some
classmaps that match on your precedence or DSCP values. This allows you to quickly
check if you are receiving (correctly) marked packets or not.
• R3(config)#class‐map AF12
• R3(config‐cmap)#match dscp af12
• R3(config)#class‐map PREC7
• R3(config‐cmap)#match precedence 7
• R3(config)#policy‐map COUNTER
• R3(config‐pmap)#class AF12
• R3(config‐pmap‐c)#exit
• R3(config‐pmap)#class PREC7
• R3(config‐pmap‐c)#exit
• R3(config)#interface FastEthernet 0/0
• R3(config‐if)#service‐policy input COUNTER
I created two class-maps
that match on DSCP AF12
or precedence 7 marked
packets.
• R3#show policy‐map interface FastEthernet 0/0
• FastEthernet0/0
• Service‐policy input: COUNTER
• Class‐map: AF12 (match‐all)
• 4 packets, 240 bytes
• 5 minute offered rate 0 bps
• Match: dscp af12 (12)
• Class‐map: PREC7 (match‐all)
• 12 packets, 729 bytes
• 5 minute offered rate 0 bps
• Match: precedence 7
• Class‐map: class‐default (match‐any)
• 0 packets, 0 bytes
• 5 minute offered rate 0 bps, drop rate 0 bps
• Match: any
This proves that R3 is
receiving our marked
packets.
Follow us
@https://www.facebook.com/
NetProtocolXpert/
https://www.linkedin.com/co
mpany/netprotocol-xpert
https://plus.google.com/u/0/
+NetProtocolXpert_NPX/pos
ts
https://www.instagram.com
/netprotocol_xpert/
https://twitter.com/NPX_
cisco
https://branded.me/net
protocolxpert

Contenu connexe

Tendances

QoS Pre-Classify on Cisco IOS
QoS Pre-Classify on Cisco IOSQoS Pre-Classify on Cisco IOS
QoS Pre-Classify on Cisco IOSNetProtocol Xpert
 
MPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label SwitchingMPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label SwitchingPeter R. Egli
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1VISHNU N
 
SIGTRAN - An Introduction
SIGTRAN - An IntroductionSIGTRAN - An Introduction
SIGTRAN - An IntroductionTareque Hossain
 
Tutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demoTutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demoAPNIC
 
Cisco Connect Halifax 2018 Understanding Cisco's next generation sd-wan sol...
Cisco Connect Halifax 2018   Understanding Cisco's next generation sd-wan sol...Cisco Connect Halifax 2018   Understanding Cisco's next generation sd-wan sol...
Cisco Connect Halifax 2018 Understanding Cisco's next generation sd-wan sol...Cisco Canada
 
Netmanias L2,L3 Training (3) L2, L3 QoS
Netmanias L2,L3 Training (3) L2, L3 QoSNetmanias L2,L3 Training (3) L2, L3 QoS
Netmanias L2,L3 Training (3) L2, L3 QoSChris Changmo Yoo
 
Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...
Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...
Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...3G4G
 
Introduction to computer network 4th edition
Introduction to computer network   4th editionIntroduction to computer network   4th edition
Introduction to computer network 4th editionEnsign Handoko
 
Juniper mpls best practice part 2
Juniper mpls best practice   part 2Juniper mpls best practice   part 2
Juniper mpls best practice part 2Febrian ‎
 
Migrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMigrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMyNOG
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)Vipin Sahu
 

Tendances (20)

QoS Pre-Classify on Cisco IOS
QoS Pre-Classify on Cisco IOSQoS Pre-Classify on Cisco IOS
QoS Pre-Classify on Cisco IOS
 
Mpls basic
Mpls basicMpls basic
Mpls basic
 
MPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label SwitchingMPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label Switching
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1
 
SIGTRAN - An Introduction
SIGTRAN - An IntroductionSIGTRAN - An Introduction
SIGTRAN - An Introduction
 
Tutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demoTutorial: IPv6-only transition with demo
Tutorial: IPv6-only transition with demo
 
Carrier Ethernet
Carrier EthernetCarrier Ethernet
Carrier Ethernet
 
Cisco Connect Halifax 2018 Understanding Cisco's next generation sd-wan sol...
Cisco Connect Halifax 2018   Understanding Cisco's next generation sd-wan sol...Cisco Connect Halifax 2018   Understanding Cisco's next generation sd-wan sol...
Cisco Connect Halifax 2018 Understanding Cisco's next generation sd-wan sol...
 
Netmanias L2,L3 Training (3) L2, L3 QoS
Netmanias L2,L3 Training (3) L2, L3 QoSNetmanias L2,L3 Training (3) L2, L3 QoS
Netmanias L2,L3 Training (3) L2, L3 QoS
 
Quality of service
Quality of serviceQuality of service
Quality of service
 
MPLS VPN
MPLS VPNMPLS VPN
MPLS VPN
 
01 introduction to mpls
01 introduction to mpls 01 introduction to mpls
01 introduction to mpls
 
Introduction to MPLS - NANOG 61
Introduction to MPLS - NANOG 61Introduction to MPLS - NANOG 61
Introduction to MPLS - NANOG 61
 
Chap08 gb 03_kh
Chap08 gb 03_khChap08 gb 03_kh
Chap08 gb 03_kh
 
Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...
Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...
Beginners: Different Types of RAN Architectures - Distributed, Centralized & ...
 
Introduction to computer network 4th edition
Introduction to computer network   4th editionIntroduction to computer network   4th edition
Introduction to computer network 4th edition
 
Juniper mpls best practice part 2
Juniper mpls best practice   part 2Juniper mpls best practice   part 2
Juniper mpls best practice part 2
 
Migrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMigrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip Smith
 
Vpc notes
Vpc notesVpc notes
Vpc notes
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)
 

En vedette

Building Social Networks in the University -- Ignite Salt Lake 2
Building Social Networks in the University -- Ignite Salt Lake 2Building Social Networks in the University -- Ignite Salt Lake 2
Building Social Networks in the University -- Ignite Salt Lake 2Kyle Mathews
 
Adapting HTML and CSS Templates to XOOPS
Adapting HTML and CSS Templates to XOOPSAdapting HTML and CSS Templates to XOOPS
Adapting HTML and CSS Templates to XOOPSxoopsproject
 
Which Superhero Flies Highest on Social Media?
Which Superhero Flies Highest on Social Media?Which Superhero Flies Highest on Social Media?
Which Superhero Flies Highest on Social Media?Mashable
 
Torben Budde CV 201502 (English)
Torben Budde CV 201502 (English)Torben Budde CV 201502 (English)
Torben Budde CV 201502 (English)Torben Budde
 
Our English Classes
Our English ClassesOur English Classes
Our English Classeshongjunsu
 
Vosotros sois la vida.
Vosotros sois la vida.Vosotros sois la vida.
Vosotros sois la vida.José María
 
Hunt The Right Product For Your Project
Hunt The Right Product For Your ProjectHunt The Right Product For Your Project
Hunt The Right Product For Your Projectleeannhunt
 
0423_導入ゼミ_増田優斗「東京武道館」
0423_導入ゼミ_増田優斗「東京武道館」0423_導入ゼミ_増田優斗「東京武道館」
0423_導入ゼミ_増田優斗「東京武道館」優斗 増田
 
Практика банковской лидогенерации
Практика банковской лидогенерацииПрактика банковской лидогенерации
Практика банковской лидогенерацииAlexander Gerashchenko
 
萊茵河
萊茵河萊茵河
萊茵河tinaho
 
Alfresco the clojure way -- Slides from the Alfresco DevCon2011
Alfresco the clojure way -- Slides from the Alfresco DevCon2011Alfresco the clojure way -- Slides from the Alfresco DevCon2011
Alfresco the clojure way -- Slides from the Alfresco DevCon2011Carlo Sciolla
 
как превратить идею в капитал
как превратить идею в капиталкак превратить идею в капитал
как превратить идею в капиталPavel Gorbunov
 

En vedette (20)

Building Social Networks in the University -- Ignite Salt Lake 2
Building Social Networks in the University -- Ignite Salt Lake 2Building Social Networks in the University -- Ignite Salt Lake 2
Building Social Networks in the University -- Ignite Salt Lake 2
 
Steve jobs
Steve jobsSteve jobs
Steve jobs
 
Adapting HTML and CSS Templates to XOOPS
Adapting HTML and CSS Templates to XOOPSAdapting HTML and CSS Templates to XOOPS
Adapting HTML and CSS Templates to XOOPS
 
PRywatki na Wykładzinie - Briefly
PRywatki na Wykładzinie - BrieflyPRywatki na Wykładzinie - Briefly
PRywatki na Wykładzinie - Briefly
 
Contaminacion
ContaminacionContaminacion
Contaminacion
 
Which Superhero Flies Highest on Social Media?
Which Superhero Flies Highest on Social Media?Which Superhero Flies Highest on Social Media?
Which Superhero Flies Highest on Social Media?
 
Torben Budde CV 201502 (English)
Torben Budde CV 201502 (English)Torben Budde CV 201502 (English)
Torben Budde CV 201502 (English)
 
Our English Classes
Our English ClassesOur English Classes
Our English Classes
 
La muerte de la virgen
La muerte de la virgenLa muerte de la virgen
La muerte de la virgen
 
2nd Annual Mobile Apps 2013
2nd   Annual Mobile Apps 20132nd   Annual Mobile Apps 2013
2nd Annual Mobile Apps 2013
 
Vosotros sois la vida.
Vosotros sois la vida.Vosotros sois la vida.
Vosotros sois la vida.
 
Hunt The Right Product For Your Project
Hunt The Right Product For Your ProjectHunt The Right Product For Your Project
Hunt The Right Product For Your Project
 
Wykładzina vol. 15 ClickMeeting - make your Webinar click!
Wykładzina vol. 15 ClickMeeting - make your Webinar click!Wykładzina vol. 15 ClickMeeting - make your Webinar click!
Wykładzina vol. 15 ClickMeeting - make your Webinar click!
 
0423_導入ゼミ_増田優斗「東京武道館」
0423_導入ゼミ_増田優斗「東京武道館」0423_導入ゼミ_増田優斗「東京武道館」
0423_導入ゼミ_増田優斗「東京武道館」
 
Практика банковской лидогенерации
Практика банковской лидогенерацииПрактика банковской лидогенерации
Практика банковской лидогенерации
 
萊茵河
萊茵河萊茵河
萊茵河
 
Alfresco the clojure way -- Slides from the Alfresco DevCon2011
Alfresco the clojure way -- Slides from the Alfresco DevCon2011Alfresco the clojure way -- Slides from the Alfresco DevCon2011
Alfresco the clojure way -- Slides from the Alfresco DevCon2011
 
[Video] The Run
[Video] The Run[Video] The Run
[Video] The Run
 
как превратить идею в капитал
как превратить идею в капиталкак превратить идею в капитал
как превратить идею в капитал
 
Understanding the bible through koranic messages
Understanding the bible through koranic messagesUnderstanding the bible through koranic messages
Understanding the bible through koranic messages
 

Similaire à QoS marking on cisco IOS Router

400-101 CCIE Routing and Switching IT Certification
400-101 CCIE Routing and Switching IT Certification400-101 CCIE Routing and Switching IT Certification
400-101 CCIE Routing and Switching IT Certificationwrouthae
 
Lab 4 marking
Lab 4 markingLab 4 marking
Lab 4 markingVNG
 
QoS In The Enterprise
QoS In The EnterpriseQoS In The Enterprise
QoS In The EnterprisePrivate
 
How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1n|u - The Open Security Community
 
Ccna2 mod3-configuring a-router
Ccna2 mod3-configuring a-routerCcna2 mod3-configuring a-router
Ccna2 mod3-configuring a-router97148881557
 
Output drops due to qo s on cisco 2960 3560 3750 switches
Output drops due to qo s on cisco 2960 3560 3750 switchesOutput drops due to qo s on cisco 2960 3560 3750 switches
Output drops due to qo s on cisco 2960 3560 3750 switchescandy tang
 
Topic 5 nx os management-ver 0.2
Topic 5 nx os management-ver 0.2Topic 5 nx os management-ver 0.2
Topic 5 nx os management-ver 0.2Krunal Shah
 
Byte blower basic setting full_v2
Byte blower basic setting full_v2Byte blower basic setting full_v2
Byte blower basic setting full_v2Chen-Chih Lee
 
Service Provider Networks and Frame Relay
Service Provider Networks and Frame RelayService Provider Networks and Frame Relay
Service Provider Networks and Frame RelayTharindu Sankalpa
 
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)Thomas Graf
 
Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)StackIQ
 
How to configure frame realy
How to configure frame realyHow to configure frame realy
How to configure frame realyNetProtocol Xpert
 
The Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RCThe Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RCThomas Graf
 
보안위협 관리통제
보안위협 관리통제보안위협 관리통제
보안위협 관리통제Munkyeonggu
 

Similaire à QoS marking on cisco IOS Router (20)

Mpls Qos Jayk
Mpls Qos JaykMpls Qos Jayk
Mpls Qos Jayk
 
400-101 CCIE Routing and Switching IT Certification
400-101 CCIE Routing and Switching IT Certification400-101 CCIE Routing and Switching IT Certification
400-101 CCIE Routing and Switching IT Certification
 
Lab 4 marking
Lab 4 markingLab 4 marking
Lab 4 marking
 
QoS In The Enterprise
QoS In The EnterpriseQoS In The Enterprise
QoS In The Enterprise
 
Brkdct 3101
Brkdct 3101Brkdct 3101
Brkdct 3101
 
QoS
QoSQoS
QoS
 
How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1How to convert your Linux box into Security Gateway - Part 1
How to convert your Linux box into Security Gateway - Part 1
 
Ccna2 mod3-configuring a-router
Ccna2 mod3-configuring a-routerCcna2 mod3-configuring a-router
Ccna2 mod3-configuring a-router
 
Output drops due to qo s on cisco 2960 3560 3750 switches
Output drops due to qo s on cisco 2960 3560 3750 switchesOutput drops due to qo s on cisco 2960 3560 3750 switches
Output drops due to qo s on cisco 2960 3560 3750 switches
 
Topic 5 nx os management-ver 0.2
Topic 5 nx os management-ver 0.2Topic 5 nx os management-ver 0.2
Topic 5 nx os management-ver 0.2
 
Byte blower basic setting full_v2
Byte blower basic setting full_v2Byte blower basic setting full_v2
Byte blower basic setting full_v2
 
Chapter14ccna
Chapter14ccnaChapter14ccna
Chapter14ccna
 
Service Provider Networks and Frame Relay
Service Provider Networks and Frame RelayService Provider Networks and Frame Relay
Service Provider Networks and Frame Relay
 
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
Taking Security Groups to Ludicrous Speed with OVS (OpenStack Summit 2015)
 
Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)Stacki: Automate with Spreadsheets (Tutorial)
Stacki: Automate with Spreadsheets (Tutorial)
 
Day 20.i pv6 lab
Day 20.i pv6 labDay 20.i pv6 lab
Day 20.i pv6 lab
 
How to configure frame realy
How to configure frame realyHow to configure frame realy
How to configure frame realy
 
The Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RCThe Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RC
 
보안위협 관리통제
보안위협 관리통제보안위협 관리통제
보안위협 관리통제
 
3
33
3
 

Plus de NetProtocol Xpert

Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)NetProtocol Xpert
 
Common Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationCommon Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationNetProtocol Xpert
 
Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)NetProtocol Xpert
 
Securing management, control & data plane
Securing management, control & data planeSecuring management, control & data plane
Securing management, control & data planeNetProtocol Xpert
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPNetProtocol Xpert
 
Avoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandAvoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandNetProtocol Xpert
 
TCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesTCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesNetProtocol Xpert
 
MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)NetProtocol Xpert
 
OTV(Overlay Transport Virtualization)
OTV(Overlay  Transport  Virtualization)OTV(Overlay  Transport  Virtualization)
OTV(Overlay Transport Virtualization)NetProtocol Xpert
 

Plus de NetProtocol Xpert (20)

Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
Common Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationCommon Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & Mitigation
 
Storm-Control
Storm-ControlStorm-Control
Storm-Control
 
Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)
 
IP Source Guard
IP Source Guard IP Source Guard
IP Source Guard
 
DHCP Snooping
DHCP SnoopingDHCP Snooping
DHCP Snooping
 
Password Recovery
Password RecoveryPassword Recovery
Password Recovery
 
Application & Data Center
Application & Data CenterApplication & Data Center
Application & Data Center
 
Cisco ISR 4351 Router
Cisco ISR 4351 RouterCisco ISR 4351 Router
Cisco ISR 4351 Router
 
Cisco ASR 1001-X Router
Cisco ASR 1001-X RouterCisco ASR 1001-X Router
Cisco ASR 1001-X Router
 
Securing management, control & data plane
Securing management, control & data planeSecuring management, control & data plane
Securing management, control & data plane
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAP
 
Avoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandAvoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a command
 
TCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesTCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and Switches
 
Private VLANs
Private VLANsPrivate VLANs
Private VLANs
 
MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)
 
OTV Configuration
OTV ConfigurationOTV Configuration
OTV Configuration
 
Cisco OTV 
Cisco OTV Cisco OTV 
Cisco OTV 
 
OTV(Overlay Transport Virtualization)
OTV(Overlay  Transport  Virtualization)OTV(Overlay  Transport  Virtualization)
OTV(Overlay Transport Virtualization)
 

Dernier

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfEr. Suman Jyoti
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 

Dernier (20)

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 

QoS marking on cisco IOS Router

  • 1. QOS MARKING ON CISCO IOS ROUTER Quality of Service (QoS) | www.netprotocolxpert.in
  • 2. • Marking means that we set the TOS (Type of Service) byte with an IP Precedence value or DSCP value. • Marking on a Cisco catalyst switch is a bit different than on a router.
  • 3. CONFIGURATION • We will send some traffic from R1 to R3 and we will use R2 to mark our traffic. We’ll keep it simple and start by marking telnet traffic.
  • 4. • Let’s create an access-list for classification: • R2(config)#ip access‐list extended TELNET‐TRAFFIC • R2(config‐ext‐nacl)#permit tcp any any eq telnet • Now we need to add the access-list to a class-map: • R2(config)#class‐map TELNET‐TRAFFIC • R2(config‐cmap)#match access‐group name TELNET‐TRAFFIC
  • 5. AND WE’LL ADD THE CLASS- MAP TO A POLICY-MAP: • R2(config)#policy‐map MARKING • R2(config‐pmap)#class TELNET‐TRAFFIC • R2(config‐pmap‐c)#set ? • atm‐clp Set ATM CLP bit to 1 • cos Set IEEE 802.1Q/ISL class of service/user priority • cos‐inner Set Inner CoS • discard‐class Discard behavior identifier • dscp Set DSCP in IP(v4) and IPv6 packets • fr‐de Set FR DE bit to 1 • ip Set IP specific values • mpls Set MPLS specific values • precedence Set precedence in IP(v4) and IPv6 packets • qos‐group Set QoS Group • vlan‐inner Set Inner Vlan
  • 6. • There are quite some options for the set command. When it comes to IP packets we’ll use the precedence or DSCP values. Let’s start with precedence: • R2(config‐pmap‐c)#set precedence ? • <0‐7> Precedence value • cos Set packet precedence from L2 COS • critical Set packets with critical precedence (5) • flash Set packets with flash precedence (3) • flash‐override Set packets with flash override precedence (4) • immediate Set packets with immediate precedence (2) Cont.…
  • 7. • internet Set packets with internetwork control precedence (6) • network Set packets with network control precedence (7) • priority Set packets with priority precedence (1) • qos‐group Set packet precedence from QoS Group. • routine Set packets with routine precedence (0)
  • 8. • Let’s go for IP precedence 7 (network): • R2(config‐pmap‐c)#set precedence network • Last but not least, we have to activate the policy-map: • R2(config)#interface FastEthernet 0/0 • R2(config‐if)#service‐policy input MARKING • Telnet from R1 to R3: • R1#telnet 192.168.23.3 • Trying 192.168.23.3 ... Open
  • 9. • R2#show policy‐map interface FastEthernet 0/0 • FastEthernet0/0 • Service‐policy input: MARKING • Class‐map: TELNET‐TRAFFIC (match‐all) • 10 packets, 609 bytes • 5 minute offered rate 0 bps, drop rate 0 bps • Match: access‐group name TELNET‐TRAFFIC • QoS Set • precedence 7 • Packets marked 10 Cont.…
  • 10. • Class‐map: class‐default (match‐any) • 0 packets, 0 bytes • 5 minute offered rate 0 bps, drop rate 0 bps • Match: any • 10 packets have been marked with precedence 7.
  • 11. • Also mark some packets with a DSCP value, let’s mark some HTTP traffic: • R2(config)#ip access‐list extended HTTP‐TRAFFIC • R2(config‐ext‐nacl)#permit tcp any any eq 80 • Create a class-map: • R2(config)#class‐map HTTP‐TRAFFIC • R2(config‐cmap)#match access‐group name HTTP‐TRAFFIC
  • 12. ADD TO THE POLICY-MAP: • R2(config)#policy‐map MARKING • R2(config‐pmap)#class HTTP‐TRAFFIC • R2(config‐pmap‐c)#set dscp ? • <0‐63> Differentiated services codepoint value • af11 Match packets with AF11 dscp (001010) • af12 Match packets with AF12 dscp (001100) • af13 Match packets with AF13 dscp (001110) • af21 Match packets with AF21 dscp (010010) • af22 Match packets with AF22 dscp (010100) • af23 Match packets with AF23 dscp (010110) • af31 Match packets with AF31 dscp (011010) • af32 Match packets with AF32 dscp (011100) • af33 Match packets with AF33 dscp (011110) Cont.…
  • 13. • af41 Match packets with AF41 dscp (100010) • af42 Match packets with AF42 dscp (100100) • af43 Match packets with AF43 dscp (100110) • cos Set packet DSCP from L2 COS • cs1 Match packets with CS1(precedence 1) dscp (001000) • cs2 Match packets with CS2(precedence 2) dscp (010000) • cs3 Match packets with CS3(precedence 3) dscp (011000) • cs4 Match packets with CS4(precedence 4) dscp (100000) • cs5 Match packets with CS5(precedence 5) dscp (101000) • cs6 Match packets with CS6(precedence 6) dscp (110000) • cs7 Match packets with CS7(precedence 7) dscp (111000) • default Match packets with default dscp (000000) • ef Match packets with EF dscp (101110) • qos‐group Set packet dscp from QoS Group.
  • 14. • Let’s pick AF12 • R2(config‐pmap‐c)#set dscp af12 • Let’s generate some traffic: • R3(config)#ip http server • R1#telnet 192.168.23.3 80 • Trying 192.168.23.3, 80 ... Open
  • 15. CHECK OUT THE POLICY-MAP: • R2#show policy‐map interface FastEthernet 0/0 • FastEthernet0/0 • Service‐policy input: MARKING • Class‐map: TELNET‐TRAFFIC (match‐all) • 10 packets, 609 bytes • 5 minute offered rate 0 bps, drop rate 0 bps • Match: access‐group name TELNET‐TRAFFIC • QoS Set • precedence 7 • Packets marked 10 Cont.…
  • 16. • Class‐map: HTTP‐TRAFFIC (match‐all) • 3 packets, 180 bytes • 5 minute offered rate 0 bps, drop rate 0 bps • Match: access‐group name HTTP‐TRAFFIC • QoS Set • dscp af12 • Packets marked 3 • Class‐map: class‐default (match‐any) • 99 packets, 5940 bytes • 5 minute offered rate 0 bps, drop rate 0 bps • Match: any
  • 17. • Some network devices like switches or wireless controllers sometimes re-mark traffic, this can be a pain and it's something you might want to check. • On a Cisco IOS router it's simple to do this. just create a policy-map and some classmaps that match on your precedence or DSCP values. This allows you to quickly check if you are receiving (correctly) marked packets or not.
  • 18. • R3(config)#class‐map AF12 • R3(config‐cmap)#match dscp af12 • R3(config)#class‐map PREC7 • R3(config‐cmap)#match precedence 7 • R3(config)#policy‐map COUNTER • R3(config‐pmap)#class AF12 • R3(config‐pmap‐c)#exit • R3(config‐pmap)#class PREC7 • R3(config‐pmap‐c)#exit • R3(config)#interface FastEthernet 0/0 • R3(config‐if)#service‐policy input COUNTER I created two class-maps that match on DSCP AF12 or precedence 7 marked packets.
  • 19. • R3#show policy‐map interface FastEthernet 0/0 • FastEthernet0/0 • Service‐policy input: COUNTER • Class‐map: AF12 (match‐all) • 4 packets, 240 bytes • 5 minute offered rate 0 bps • Match: dscp af12 (12) • Class‐map: PREC7 (match‐all) • 12 packets, 729 bytes • 5 minute offered rate 0 bps • Match: precedence 7 • Class‐map: class‐default (match‐any) • 0 packets, 0 bytes • 5 minute offered rate 0 bps, drop rate 0 bps • Match: any This proves that R3 is receiving our marked packets.