Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Required Resources
These are the resources and equipment required to complete this activity:
n Two Cisco Nexus 7010 chassis with dual supervisor modules
n Dual power supplies, dual system fans, dual fabric fans, and three fabric modules per
chassis
n One 48-port 1 Gigabit Ethernet I/O module per chassis
n One 32-port 10 Gigabit Ethernet I/O module per chassis with SFP+ SR optical transceivers
installed
n Cisco NX-OS LAN Enterprise License
n Cisco NX-OS LAN Advanced Services License
Commands
The table lists the commands that are used in this activity.
Command
bandwidth
Checkpoint
class class-default
class-map type qos
class type qos
class type queuing
match cos
match dscp
match packet length
match protocol
police
policy-map type qos
queue-limit
random-detect
service-policy type qos
service-policy type queuing
set
show class-map name
show class-map type qos
show policy-map type qos
show policy-map type queuing
show table-map DSCP-SET
table-map
2 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
To have a painless experience and avoid unnecessary support
requests, it is important to go through the entire Lab Access session
before starting the lab!!!
Lab Access
Identify Your Pod Number: Pod number can be found on the left upper corner **** NX-OS-X ,
where X is your pod number. Make a note of your pod number on a paper.
Note: In this doc, the interfaces referred in most of the output shown in these steps refer to Pod1.
Once your pod number is identified, go to Table 1 POD Information and Access Account and
make a note of the credentials and interfaces assigned to your pod on a paper.
Table 1 POD Information and Access Account
POD Devices Login/Password Assigned Interfaces mgmt0 IP
POD 1
N7K11 admin/pod1nxos 1/1-5, 2/1-8 10.2.8.17
N7K12 admin/pod1nxos 1/1-5, 2/1-8 10.2.8.18
CAT 6K n/a 6/1-2
Nexus 5K admin/1234qwe 10.10.8.15
MDS 9124 admin/1234qwe
VSphere Client cisco/12345qwe localhost
POD 2
N7K11 admin/pod2nxos 1/13-17, 2/9-16 10.2.8.27
N7K12 admin/pod2nxos 1/13-17, 2/9-16 10.2.8.28
CAT 6K n/a 6/1-2
Nexus 5K admin/1234qwe 10.10.8.25
MDS 9124 admin/1234qwe
VSphere Client cisco/12345qwe localhost
POD 3
N7K11 admin/pod3nxos 1/25-29, 2/17-24 10.2.8.37
N7K12 admin/pod3nxos 1/25-29, 2/17-24 10.2.8.38
CAT 6K n/a 6/1-2
Nexus 5K admin/1234qwe 10.10.8.35
MDS 9124 admin/1234qwe
VSphere Client cisco/12345qwe localhost
Dont try to ping these IP addresses from your desktop, they are private addresses.
Note The lab topology includes two Cisco Nexus 7010 platforms. Each Nexus 7010 switch is
shared between the pods and has multiple virtual device contexts (VDCs). You will manage
the VDC assigned to your pod.
Activity Procedure
Step 1 Connect to your N7K11-podX VDC (where X is your pod number) using the
provided access information (username admin with password pod1nxos, pod2nxos,
or pod3nxos, depending on your pod).
Note In this exercise you do not have to configure the second N7K switch in your pod. All tasks
can be configured and verified on a single switch.
N7K11-pod1(config)# class-map ?
WORD Class-map name (Max Size 40)
match-all Logical-AND all match statements under this classmap
match-any Logical-OR all match statements under this classmap
type Specify the type of this class-map
Step 3 Assign match criteria for DSCP classes AF11, AF12, and AF43.
N7K11-pod1(config-cmap-qos)# match ?
access-group Access group
4 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
class-map Class map
cos IEEE 802.1Q class of service
discard-class Discard class
dscp DSCP in IP(v4) and IPv6 packets
ip IP
not Negate this match result
packet Packet
precedence Precedence in IP(v4) and IPv6 packets
protocol Protocol
qos-group Qos-group
1. Why does the match statement in the show class-map DSCP-CLUB show the dscp
classes 10, 12, and 38?
6 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
match dscp 10,12,38
2. Do you see the class maps that were created during this task?
________________________
3. Why are there additional type qos class maps displayed for this show command?
N7K11-pod1(config-tmap)# default 11
N7K11-pod1(config-tmap)# from 10 to 18
N7K11-pod1(config-tmap)# from 12 to 20
N7K11-pod1(config-tmap)# from 38 to 26
N7K11-pod1(config-tmap)# exit
Table-map DSCP-SET
default 11
from 10 to 18
from 12 to 20
Step 5 Specify the actions associated with the policy map DSCP-MUTATE.
N7K11-pod1(config)# policy-map type qos DSCP-MUTATE
N7K11-pod1(config-pmap-qos)# class class-default
N7K11-pod1(config-pmap-c-qos)# set dscp dscp table DSCP-SET
Step 12 Associate the policy with the class map named PACKET-SIZE.
N7K11-pod1(config-pmap-qos)# class type qos PACKET-SIZE
8 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
N7K11-pod1(config-pmap-c-qos)# show policy-map PACKET-RATE
Step 16 Associate the policy map with the class map named L2PROTOCOL.
N7K11-pod1(config-pmap-qos)# class type qos L2PROTOCOL
Step 17 For packets that match ARP and Cisco Discovery Protocol, set the 802.1Q Class of
Service to 4.
N7K11-pod1(config-pmap-c-qos)# set cos 4
N7K11-pod1(config-pmap-c-qos)# show policy-map L2-COS
port-channel1
Step 3 Assign a service policy to the first 1 Gigabit Ethernet interface within your VDC
pod in the ingress direction for the policy map named COS-LIMIT.
N7K11-pod1(config)# interface ethernet 1/1
N7K11-pod1(config-if)# service-policy input COS-LIMIT
Step 4 View the service policies associated with this interface in the ingress direction.
N7K11-pod1(config-if)# show policy-map interface ethernet 1/1 input
Ethernet1/1
10 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
bandwidth percent 20
queue dropped pkts : 0
Step 5 Assign a service policy to the second 1 Gigabit Ethernet interface in the egress
direction within your VDC pod using the policy map named packet-rate.
N7K11-pod1(config)# interface ethernet 1/2
N7K11-pod1(config-if)# service-policy output PACKET-RATE
Step 6 View the service policy associated with this interface in the egress direction.
N7K11-pod1(config-if)# show policy-map interface ethernet 1/2 output
Ethernet1/2
Step 7 Assign a service policy to the port channel interface in the egress direction.
N7K11-pod1(config)# interface port-channel 1
N7K11-pod1(config-if)# service-policy output L2-COS
Step 8 View the service policy.
N7K11-pod1(config-if)# show policy-map interface port-channel 1 output
port-channel1
5. What happened to the service policy named dscp-mutate created and assigned to the port
channel interface in the egress direction in Step 1?
Step 2 Type queuing maps have a different configuration methodology than type QoS
maps. Create a type queuing policy map named SHAPE_MY_QUEUE.
N7K11-pod1(config)# policy-map type queuing ?
WORD Policy-map name (alphanumeric) (Max Size 40)
match-first Take the action for the first class that matches
N7K11-pod1(config)# policy-map type queuing SHAPE_MY_QUEUE
Step 3 Now assign a class-map type queuing to the policy map named
SHAPE_MY_QUEUE.
N7K11-pod1(config-pmap-que)# class type queuing ?
1p3q4t-out-pq1 Egress priority queue of 1p3q4t type
1p3q4t-out-q-default Egress default queue of 1p3q4t type
1p3q4t-out-q2 Egress queue 2 of 1p3q4t type
1p3q4t-out-q3 Egress queue 3 of 1p3q4t type
1p7q4t-out-pq1 Egress priority queue of 1p7q4t type
1p7q4t-out-q-default Egress default queue of 1p7q4t type
1p7q4t-out-q2 Egress queue 2 of 1p7q4t type
1p7q4t-out-q3 Egress queue 3 of 1p7q4t type
12 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
1p7q4t-out-q4 Egress queue 4 of 1p7q4t type
1p7q4t-out-q5 Egress queue 5 of 1p7q4t type
1p7q4t-out-q6 Egress queue 6 of 1p7q4t type
1p7q4t-out-q7 Egress queue 7 of 1p7q4t type
2q4t-in-q-default Ingress default queue of 2q4t type
2q4t-in-q1 Ingress queue 1 of 2q4t type
8q2t-in-q-default Ingress default queue of 8q2t type
8q2t-in-q1 Ingress queue 1 of 8q2t type
8q2t-in-q2 Ingress queue 2 of 8q2t type
8q2t-in-q3 Ingress queue 3 of 8q2t type
8q2t-in-q4 Ingress queue 4 of 8q2t type
8q2t-in-q5 Ingress queue 5 of 8q2t type
8q2t-in-q6 Ingress queue 6 of 8q2t type
8q2t-in-q7 Ingress queue 7 of 8q2t type
Step 5 Set a tail drop threshold for packets with a class of service (CoS) of 4 to a maximum
size of 1 MB.
N7K11-pod1(config-pmap-c-que)# queue-limit ?
<1-83886080> Queue size in packets/bytes/kbytes/mbytes/ms/us
cos IEEE 802.1Q class of service
percent Specify queue size in Percentage
N7K11-pod1(config-pmap-c-que)# queue-limit cos 4 ?
<1-83886080> Queue size in packets/bytes/kbytes/mbytes/ms/us
percent Specify queue size in Percentage
N7K11-pod1(config-pmap-c-que)# queue-limit cos 4 1 mbytes
Step 9 Set the aggregate WRED thresholds for nonconfigured classes of traffic to a
minimum of 10 percent and a maximum of 20 percent of the queue size.
N7K11-pod1(config-pmap-c-que)# random-detect ?
cos Parameters for each cos value
cos-based Configure WRED parameters for cos-based mode
N7K11-pod1(config-pmap-c-que)# random-detect cos-based ?
<CR>
aggregate Configure WRED parameters to same value for all
sub-classes
N7K11-pod1(config-pmap-c-que)# random-detect cos-based aggregate ?
<1-52428800> Minimum threshold value
minimum-threshold Specify minimum threshold for WRED
percent Specify thresholds in percent
N7K11-pod1(config-pmap-c-que)# random-detect cos-based aggregate percent ?
N7K11-pod1(config-pmap-c-que)# random-detect cos-based aggregate percent 10 ?
<1-52428800> Maximum threshold value
Step 15 Assign 40 percent of the remaining bandwidth to the third queue and 25 percent of
the remaining bandwidth to the default queue.
N7K11-pod1(config-pmap-que)# class type queuing 1p3q4t-out-q3
N7K11-pod1(config-pmap-c-que)# bandwidth remaining percent 40
N7K11-pod1(config-pmap-c-que)# exit
N7K11-pod1(config-pmap-que)# class type queuing 1p3q4t-out-q-default
N7K11-pod1(config-pmap-c-que)# bandwidth remaining percent 25
N7K11-pod1(config-pmap-c-que)# exit
14 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
Task 5: Configure Type Queueing Service Policies
Activity Procedure
In this task you will configure type queueing service policies.
Step 1 Assign a type queuing service policy named SHAPE_MY_QUEUE and assign it to
the first 1 Gigabit Ethernet interface.
N7K11-pod1(config)# interface ethernet 1/1
N7K11-pod1(config-if)# service-policy type queuing output SHAPE_MY_QUEUE
Step 4 Assign a type queuing service policy named MY-RATE and assign it to the second 1
Gigabit Ethernet interface.
N7K11-pod1(config-if)# interface ethernet 1/2
N7K11-pod1(config-if)# service-policy type queuing output MY-RATE
ERROR: Module 1 returned status "All queues configured, but percentage is
less than 100. If all queues are used, percentage should be 100 percent."
Step 5 Modify the default queue to receive 35 percent of the remaining bandwidth and
repeat Step 5.
8. Is this operation successful?
__________________________________________________
16 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
Answer Key
The correct answers and expected solutions for the activities that are described in this guide
appear here.
2. Yes
3. The additional class maps are standard default class maps used for policing of traffic.
interface port-channel1
service-policy type qos output L2-COS
vrf member INTERSWITCH
ip address 10.11.3.1/24
ip ospf message-digest-key 1 md5 3 3607ff6124fab2a3
ip ospf dead-interval 20
ip ospf hello-interval 5
ip router ospf 1 area 0.0.0.0
interface Ethernet1/1
service-policy type qos input COS-LIMIT
no shutdown
interface Ethernet1/2
service-policy type qos output PACKET-RATE
no shutdown
interface Ethernet1/3
interface Ethernet1/4
interface Ethernet1/5
interface Ethernet2/1
channel-group 1 mode active
no shutdown
interface Ethernet2/2
switchport
no shutdown
interface Ethernet2/3
channel-group 1 mode active
no shutdown
interface Ethernet2/4
interface Ethernet2/5
interface Ethernet2/6
interface Ethernet2/7
interface Ethernet2/8
interface mgmt0
ip address 10.2.8.17/24
interface loopback0
ip address 10.10.10.10/32
router ospf 1
router-id 10.10.10.10
area 0.0.0.0 authentication message-digest
log-adjacency-changes
auto-cost reference-bandwidth 40
5. Only one type qos service policy can be applied per interface in either direction. This action
eliminated the service policy dscp-mutate created in Step 1.
18 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.
7. To modify type queuing class maps you must be within the default VDC configuration
context.
interface port-channel1
interface Ethernet1/1
service-policy type queuing output SHAPE_MY_QUEUE
interface Ethernet1/2
service-policy type queuing output MY-RATE
interface Ethernet1/3
interface Ethernet1/4
interface Ethernet1/5
interface Ethernet2/1
channel-group 1 mode active
interface Ethernet2/2
interface Ethernet2/3
channel-group 1 mode active
interface Ethernet2/4
interface Ethernet2/5
interface Ethernet2/6
interface Ethernet2/7
interface mgmt0
ip address 10.2.8.17/24
8. Yes
20 Implementing Cisco Data Center Networking Infrastructure 2 (DCNI-2) v3.0 2009 Cisco Systems, Inc.