show interfaces reports no traffic, and ping traffic is never counted at all #1251
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1251
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 interfacesprints the link state, the address and the peer — and nothing about traffic. That is thetable an operator pastes to answer is anything crossing this port, and it cannot answer.
Two defects are stacked underneath:
1. The counts are per device, not per port.
flow.counterFor()keeps{bytesIn, bytesOut, packetsIn, packetsOut}perdevId. There is no per-port figure to print, so the onlyhonest answer today is none.
2. Ping was never counted at all. Both counting sites are guarded by
if (frame.l4):An ICMP echo carries
icmp, an ARP frame carriesarp, an LLDP frame carrieslldp— none of them carryl4. Measured on a two-device lab, after three answered pings:So the traffic a packet simulator exists to generate is invisible to its own counters, and the command that
would report it reports nothing.
Expected
modelled rather than assumed (an LLDP frame's TLVs are known, so its size is known);
show interfacesprintsN packets input, B bytes/N packets output, B bytesper port;switch sent an LLDP frame;
counters: not measured (no simulation run)rather thanprinting zeros — "nothing has looked" and "nothing crossed" are different answers.
Scope
The existing counter mechanism and the existing
show interfacesoutput. No new commands.show interfacesreports what has crossed the port (#1251) #1252