show interfaces counts what crossed a port and nothing about what it discarded #1257
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
show interfacesreports what crossed a port and nothing about what was thrown away on it. Two datagramsdropped for want of a route read exactly like a port nothing ever touched:
Three separate silences underneath:
dropwith a reason, and every one of them threw the reasonaway with the event log. Nothing tallied them per port, so the one question a quiet link raises - "is
something being thrown away here?" - had no answer.
dropevent. It emitsacl-deny, a different type, and nothing counted it.The commonest discard of all left the port looking completely idle:
access-list 101 deny icmp any any+ip access-group 101 in+ two denied pings =0 drops,0ofeverything, on a port that had just thrown two packets away.
dev.pendingforever: no event, nocounter, and
pingreportedsuccess: false, reason: null. Ping an address whose port is shut and thesimulator said, in effect, "no".
Expected
and by an explicit
discard: truewhere the type is also used for something narrower (stp-blockfiresonce per blocked candidate port during a flood; counting each would report one lost frame three times);
show interfacesprints the count and the reason, on the port, and nothing at all when the port isclean;
no route to 10.0.0.99happens before an egress is chosen) reported onceat the end of the table rather than invented onto a port;
no ARP reply from 10.0.0.9- and the failedpinggiven thesame sentence instead of a null reason.
Scope
Existing events, existing counters, existing commands. No new commands.
show interfacesnow says what the port threw away, and why (#1257) #1258show access-listsreports which rule matched (#1267) #1268