09-28-2014 12:26 AM - edited 03-04-2019 11:51 PM
I've got a question about cisco buffer mechanism.
When a packet is waiting to be processed by the Routing Processor, it occupied specific buffer in the processor memory.
And my question is : after the packet is processed, will the buffer be added into the free list or just get released ?
09-28-2014 12:57 AM
Added:
will there be a process like that the IOS would see whether the free buffer count reaches the "max allowed" value if the newly free buffer is added into the free list ?
09-29-2014 08:46 PM
Hi,
AFAIK there is interface buffer allocated to each interface for I/O traffic. When packets enters to the interface, it occupies the buffer and when leaves releases the buffer and same gets added to the free-list again otherwise free-list will keep on reducing and we will see buffer misses and packet drops. That could be condition during buffer leak. There is also process who checks on max-allowed value. Definition given below. You can also refer below link
https://netsuresolutions.zendesk.com/entries/20184378-Buffer-Leak-Symptoms-and-how-to-Identify-the-Nature-of-the-Error-
- MAX-ALLOWED: The maximum number of buffers in the free-list. If the number of
buffers 'in free list' is greater than the 'max-allowed' value, the router will
attempt to trim buffers from the pool. The 'max-allowed' parameter is used to
prevent a pool from monopolizing buffers that it does not need anymore and free
this memory back to the system for further use.
- FREE-LIST: The number of buffers in the pool, ready for use.
- TRIMS: When the value 'in free list' exceeds that of 'max allowed' the processor
trims the buffers.
HTH
Regards,
Akash
09-30-2014 05:49 AM
Thanks for your reply.
When I had the checkup for the Cisco 2811, I got these output below:
The "Public buffer pools" refers to the process memory that handled by RP as I know.
Since most packets hit the Small buffers in the process memory, I think they belong to the control plane.
Now the device works normally both the hardware and system, and I could tell from the output that there are 170 buffers in Small buffers pool that are in use, 21 in the free list and consider these statistics are the normal state of the device.
But there was also a burst of traffic at 7w0d that pushed the RP to create 264 buffers and met a number of failures.
Is it right to say that there could probably be a burst of control plane traffic such as routing protocol convergence at 7w0d since the device started about 1 year ago?
And
If advices needed, though it might not be serious, is it right to give more Small buffers by tuning the min-free parameter to prevent "a might happen again burst" (the memory usage is about 7%)?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide