Packet Drop and Errors in Open-Vswitch

asked 2015-12-29 04:54:06 -0500

Veerendra gravatar image

updated 2015-12-29 04:55:06 -0500

The Below command gives the port statistics like drop, error per port

ovs-ofctl dump-ports br-int

OFPST_PORT reply (xid=0x2): 7 ports
  port LOCAL: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=555357, bytes=29866282, drop=0, errs=0, coll=0
  port  5: rx pkts=48437828, bytes=1085685529, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=47423567, bytes=168324045, drop=0, errs=0, coll=0
  port  1: rx pkts=1149188262, bytes=1067940007509, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=541029895, bytes=1057151065791, drop=0, errs=0, coll=0
  port  4: rx pkts=59484910, bytes=3034674736, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=77364293, bytes=2320978598, drop=0, errs=0, coll=0
  port  6: rx pkts=38996668, bytes=4063078303, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=31341813, bytes=1036807399, drop=0, errs=0, coll=0
  port  2: rx pkts=60200091, bytes=3714792445, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=66625600, bytes=3953710366, drop=0, errs=0, coll=0
  port  3: rx pkts=93346595, bytes=2516933656, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=89882467, bytes=2298836596, drop=0, errs=0, coll=0

I tried this command sudo tc qdisc add dev qvo69331db5-96 root netem loss 50% corrupt 50%, But no use.

So, I want simulate the packet Errors, Drop per port. How can simulate?

edit retag flag offensive close merge delete