show arp prints an Age column it hard-codes to -, on the false grounds that the model has no clock #1397

Closed
opened 2026-11-10 23:32:42 +00:00 by jaylouisw · 0 comments
Owner

show arp prints Age (min) as a header over a hard-coded - on every row, and says why in the code and in
docs/CLI.md: "the simulator counts steps, not minutes". That stopped being true when convergence gave the model an
instant in milliseconds — and that instant already ages the MAC table (#1395).

ARP_AGE_MS = 14,400 s, the IOS default `arp timeout`
learned at t=10 min    present at 30 min, aged 20     gone at 5 h
a reply re-learns       using an entry does not (a cache hit is not hearing)

What must be true instead

  • a reply stamps the entry with the instant it was heard; show arp counts minutes from there, and the row leaves
    the table when it ages;
  • the egress path uses the aged lookup, so a stale neighbour resolves to nothing and the frame is ARP'd for
    instead of being sent to an address that has moved;
  • - means "nothing dated this entry" — a fixture's, an imported lab's — and such an entry is never aged, because
    inventing an age would be worse than saying nothing;
  • the sweep drops the address, the port and the instant together, so no row keeps a port for a neighbour it no
    longer has.
`show arp` prints `Age (min)` as a header over a hard-coded `-` on every row, and says why in the code and in `docs/CLI.md`: *"the simulator counts steps, not minutes"*. That stopped being true when convergence gave the model an instant in milliseconds — and that instant already ages the MAC table (#1395). ``` ARP_AGE_MS = 14,400 s, the IOS default `arp timeout` learned at t=10 min present at 30 min, aged 20 gone at 5 h a reply re-learns using an entry does not (a cache hit is not hearing) ``` ## What must be true instead * a reply stamps the entry with the instant it was heard; `show arp` counts minutes from there, and the row leaves the table when it ages; * the **egress path** uses the aged lookup, so a stale neighbour resolves to nothing and the frame is ARP'd for instead of being sent to an address that has moved; * `-` means "nothing dated this entry" — a fixture's, an imported lab's — and such an entry is never aged, because inventing an age would be worse than saying nothing; * the sweep drops the address, the port and the instant together, so no row keeps a port for a neighbour it no longer has.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge#1397
No description provided.