Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

View packet size stats

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.

12 REPLIES
Hall of Fame Super Bronze

Re: View packet size stats

Community Member

Re: View packet size stats

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?

Community Member

Re: View packet size stats

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

Thanks.

Cisco Employee

Re: View packet size stats

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.

Community Member

Re: View packet size stats

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.

Hall of Fame Super Bronze

Re: View packet size stats

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)

Community Member

Re: View packet size stats

Thanks buddy, you are right.

I appreciate your help edison.

I must be remembering something else

Cisco Employee

Re: View packet size stats

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.

Community Member

Re: View packet size stats

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.

Super Bronze

Re: View packet size stats

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

.

.

.

Community Member

Re: View packet size stats

Eurika!!!

I think that is it.

Thanks Joseph.

Thank you everyone.

Community Member

I recommend you run show

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

Hope this helps.

6565
Views
25
Helpful
12
Replies
CreatePlease to create content