Broadcasts are flooded into every port nobody shut, including ports with no cable #1273

Closed
opened 2026-11-09 21:03:21 +00:00 by jaylouisw · 0 comments
Owner

What happens

A broadcast is flooded into every port nobody has shut — including ports with no cable, and ports whose
cable is down. activeInterfaces() filters enabled and nothing else, and that is the list the flood is
built from.

Measured on two switches in a line, six spare ports each, three answered pings:

s1 drops: {"total": 12, "byReason": {"no cable": 6, ...}}

Twelve discards on a lab in which nothing went wrong, spread over ports that were never part of the path —
and show interfaces on a spare port reports discards instead of the truth (that nothing has used it).

A real switch floods to ports that are up, not to every port it owns.

Expected

  • a flood candidate must be a port that can carry a frame — the same rule show interfaces, show arp,
    show mac address-table, show ip route, BGP and OSPF now share (Device.ifaceStatus(iface, topo));
  • a spare port reports 0 packets input, 0 packets output and no discard line;
  • the ports that really carried the traffic still report it — the fix must not be "count nothing";
  • a frame aimed at a known destination behind a dead port is still a real discard and must stay counted;
  • a port-channel member is left to the bundle's own rule (engine/lag.js), which already decides whether a
    member can carry and records what it skipped.

Scope

The existing flood path in _forwardL2(). No new commands.

## What happens A broadcast is flooded into **every port nobody has shut** — including ports with no cable, and ports whose cable is down. `activeInterfaces()` filters `enabled` and nothing else, and that is the list the flood is built from. Measured on two switches in a line, six spare ports each, three answered pings: ``` s1 drops: {"total": 12, "byReason": {"no cable": 6, ...}} ``` Twelve discards on a lab in which nothing went wrong, spread over ports that were never part of the path — and `show interfaces` on a spare port reports discards instead of the truth (that nothing has used it). A real switch floods to ports that are **up**, not to every port it owns. ## Expected * a flood candidate must be a port that can carry a frame — the same rule `show interfaces`, `show arp`, `show mac address-table`, `show ip route`, BGP and OSPF now share (`Device.ifaceStatus(iface, topo)`); * a spare port reports `0 packets input, 0 packets output` and no discard line; * the ports that really carried the traffic still report it — the fix must not be "count nothing"; * a frame aimed at a known destination behind a dead port is still a real discard and must stay counted; * a port-channel member is left to the bundle's own rule (`engine/lag.js`), which already decides whether a member can carry and records what it skipped. ## Scope The existing flood path in `_forwardL2()`. No new commands.
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#1273
No description provided.