View packet size stats

Unanswered Question
Aug 14th, 2009
User Badges:

Sorry for the simple question, but there is a command that will allow you to view the statistics of packets and I cannot remember what it is.


For example, I am looking for how many packets of a certain size.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (5 ratings)
Loading.
wilson_1234_2 Fri, 08/14/2009 - 06:57
User Badges:

Thanks edison,


But I seem to remember that I could see the actual packet size and how many of each packet of a certain size.


Something like


24 bytes 10397

1472 bytes 100345


Do you recall anything like this?






wilson_1234_2 Fri, 08/14/2009 - 07:10
User Badges:

Sorry Edison, I realize this doing the same thing, but I seem to remember the format was much different.


Thanks.

nbhalla Fri, 08/14/2009 - 07:13
User Badges:
  • Cisco Employee,

Hi Richard,

Would you elaborate what exactly are you trying to view?

Are you looking for "show ip traffic" command?


This command gives details of IP, ICMP, UDP, TCP, ARP, BGP, EIGRP, OSPF etc packets.

wilson_1234_2 Fri, 08/14/2009 - 07:21
User Badges:

I am looking for (and the show buffers may be doing this) packets only and how many of each size are being passed through an interface.


I have seen it before and it was like a summary and showed a list of the packet sized and how many of each.

Edison Ortiz Fri, 08/14/2009 - 07:24
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

Richard,


The output is as summarized as it can get :)


sh buffers

Load for five secs: 3%/2%; one minute: 2%; five minutes: 2%

Time source is NTP, 11:23:55.208 DST Fri Aug 14 2009


Buffer elements:

498 in free list (500 max allowed)

2591575904 hits, 0 misses, 0 created


Public buffer pools:

Small buffers, 104 bytes (total 1024, permanent 1024, peak 1238 @ 7w0d):

1019 in free list (128 min, 2048 max allowed)

797892403 hits, 1339 misses, 1318 trims, 1318 created

61 failures (0 no memory)

Medium buffers, 256 bytes (total 3000, permanent 3000):

2999 in free list (64 min, 3000 max allowed)

21639153 hits, 0 misses, 0 trims, 0 created

0 failures (0 no memory)

Middle buffers, 600 bytes (total 512, permanent 512):

509 in free list (64 min, 1024 max allowed)

14269406 hits, 0 misses, 0 trims, 0 created

0 failures (0 no memory)

Big buffers, 1536 bytes (total 1000, permanent 1000):

999 in free list (64 min, 1000 max allowed)

109736488 hits, 0 misses, 0 trims, 0 created

0 failures (0 no memory)

VeryBig buffers, 4520 bytes (total 11, permanent 10, peak 62 @ 7w0d):

11 in free list (0 min, 100 max allowed)

11844225 hits, 9512 misses, 19023 trims, 19024 created

0 failures (0 no memory)

Large buffers, 9240 bytes (total 8, permanent 8):

8 in free list (0 min, 10 max allowed)

1470 hits, 0 misses, 0 trims, 0 created

0 failures (0 no memory)

Huge buffers, 18024 bytes (total 2, permanent 2):

2 in free list (0 min, 4 max allowed)

2618 hits, 0 misses, 0 trims, 0 created

0 failures (0 no memory)

wilson_1234_2 Fri, 08/14/2009 - 07:27
User Badges:

Thanks buddy, you are right.


I appreciate your help edison.


I must be remembering something else

nbhalla Fri, 08/14/2009 - 07:25
User Badges:
  • Cisco Employee,

Probably "show ip accounting" will help you. You need to enable IP accounting on the interface before using it.

It provides outputs like below.


#sh ip accounting

Source Destination Packets Bytes


Accounting data age is 0



Let me know if it helps or not.

wilson_1234_2 Fri, 08/14/2009 - 07:30
User Badges:

Thanks, but I tried that and it shows individual packets.


I seem to remember there was a list of packet sizes and how many of each size had been sent.


I could be remembering incorrectly.


Thanks for the assistance.



Joseph W. Doherty Fri, 08/14/2009 - 08:36
User Badges:
  • Super Bronze, 10000 points or more

Perhaps you're remembering flow cache's summary stats?


e.g.

router#sh ip cache f

IP packet size distribution (437276353 total packets):

1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480

.000 .192 .215 .047 .079 .014 .046 .005 .003 .006 .004 .002 .002 .002 .001


512 544 576 1024 1536 2048 2560 3072 3584 4096 4608

.000 .001 .002 .127 .243 .000 .000 .000 .000 .000 .000

.

.

.

Ronald Williams Fri, 12/09/2016 - 12:10
User Badges:

I recommend you run show controllers ethernet-controller X where X is your port.

Hope this helps.

Actions

This Discussion