S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
58-27
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 58 Troubleshooting Your Fabric
IP Network Simulator
To configure the network simulator to simulate packet drops, follow these steps:
Simulating Packet Reordering
You can configure network simulator to simulate that a percentage of packets be reordered, either
randomly or every Nth packet. Percentage is represented as the number of packets to be reordered in
10000 packets. The acceptable range is between 0 and 10000. So, a specified value of 100 is equal to 1
percent; a value of 1000 is equal to 10 percent.
If you specify the optional distance parameter, then the packet at the head of the queue is reordered with
the packet at the distance specified. For example, if you specify a distance of 2 for every 100 packets,
then packets 100 and 102 are reordered. The packet sequence would be 1...99, 101, 102, 103...199, 201,
202, 200, 203 and so on. Hence, distance determines how far back in the queue a reordered packet is
placed.
Command
Purpose
Step 1
switch#
ips netsim drop random 100 burst
1 ingress gigabitethernet 2/3
switch#
ips netsim drop nth 100 burst 2
ingress gigabitethernet 2/3
Configures the network simulator to simulate
random packet drops of 1% for the Gigabit Ethernet
port 2/3 in one direction only. The burst is one
packet.
Configures the network simulator to drop 2 packets
after every 100 packets for the Gigabit Ethernet port
2/3 in one direction only (meaning that when the
drop is made, two consecutive packages are
dropped).
Step 2
switch#
ips netsim drop random 100 burst
1 ingress gigabitethernet 2/4
switch#
ips netsim drop nth 100 burst 2
ingress gigabitethernet 2/4
Configures the network simulator to simulate a
random packet drop of 1% for the Gigabit Ethernet
port 2/4 in one direction only. The burst is one
packet.
Configures the network simulator to drop 2 packets
after every 100 packets for the Gigabit Ethernet port
2/4 in one direction only. The burst is two packets,
meaning that when the drop is made, two
consecutive packages are dropped.
switch#
ips netsim drop random 0 burst 1
ingress gigabitethernet 2/3
switch#
ips netsim drop nth 0 burst 1
ingress gigabitethernet 2/4
Disables packet drop simulation.