An obscure flaw in mbuf (memory buffer) management and recovery can cause a slow mbuf memory leak, which in turn will cause a JUNOS router to run out of mbufs. The mbuf leak occurs over the span of weeks and can be observed using the ' show system buffers ' command as shown below. The condition has been correlated to the reception of MPLS TTL Expired packets on the affected router. mbuf packet headers were observed to increment when the TTL expired MPLS packet counter increments:
show system buffers
user@junos> show system buffers Nov 03 12:06:44 8773/8800/120000 mbufs in use (current/peak/max): 8507 mbufs allocated to packet headers 9 mbufs allocated to socket options 1 mbufs allocated to pfe data 256 mbufs allocated to fxp data (rx) 4510/13530/30000 mbuf clusters in use (current/peak/max) 29260 Kbytes allocated to network (32% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines user@junos> show system statistics mpls Nov 03 12:06:47 mpls: 10823 total mpls packets received 675052 packets forwarded 0 packets dropped 0 with header too small 0 after tagging, can't fit link MTU 0 with IPv4 explicit NULL tag 0 with IPv4 explicit NULL cksum errors 0 with router alert tag 0 lsp ping packets (ttl-expired/router alert) 10823 with ttl expired 0 with tag encoding error 0 packets discarded, no route 1084 packets used first nexthop in ecmp unilist user@junos> show system buffers Nov 03 12:09:42 8780/8800/120000 mbufs in use (current/peak/max): 8513 mbufs allocated to packet headers 9 mbufs allocated to socket options 1 mbufs allocated to socket send data 1 mbufs allocated to pfe data 256 mbufs allocated to fxp data (rx) 4513/13530/30000 mbuf clusters in use (current/peak/max) 29260 Kbytes allocated to network (32% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines user@junos> show system statistics mpls Nov 03 12:09:45 mpls: 10830 total mpls packets received 675596 packets forwarded 0 packets dropped 0 with header too small 0 after tagging, can't fit link MTU 0 with IPv4 explicit NULL tag 0 with IPv4 explicit NULL cksum errors 0 with router alert tag 0 lsp ping packets (ttl-expired/router alert) 10830 with ttl expired 0 with tag encoding error 0 packets discarded, no route 1085 packets used first nexthop in ecmp unilist
no-propagate-ttl
[edit protocols mpls]