plans: the MTU is 1500 everywhere, and no packet in the lab can be too big #2080

Merged
jaylouisw merged 1 commit from plan/1119-0337 into main 2026-11-19 04:01:05 +00:00
Owner

Forward plan, docs only: docs/plans/mtu-and-fragmentation.md.

Measured on be18b65d. The model holds an MTU (engine/device.js:90), one code path reads it
(Simulator.pathMtu() engine/simulator.js:3963-3983) and turns it into an MSS (engine/flow.js:111-118),
and no operator can move it: ip mtu 9000 is % Unrecognized interface command, show interfaces prints no
MTU line, the port block of serialize() does not write the field (a probe confirms a reload returns 1500),
and ping cannot send a packet larger than its hard-coded 100 bytes, so nothing in a lab can ever be too big
for a link.

Six ranked steps, each one PR: (1) ip mtu <68-9000> + save/print (S); (2) ping … size (S); (3) enforce the
egress MTU — fragments when DF is clear, ICMP type 3 code 4 when it is set (needs Jay's approval, M);
(4) the PMTUD black hole as a lab (needs Jay's approval, M); (5) ICMPv6 Packet Too Big and the 1280 floor
(S); (6) the docs, including the two stale clauses already in docs/SIMULATION.md:216.

Closes no open issue: the queue holds one device request (#130), and no open PR touches an MTU. Continues
docs/plans/counter-reset.md, which names this gap as out of scope.

Forward plan, docs only: `docs/plans/mtu-and-fragmentation.md`. Measured on `be18b65d`. The model holds an MTU (`engine/device.js:90`), one code path reads it (`Simulator.pathMtu()` `engine/simulator.js:3963-3983`) and turns it into an MSS (`engine/flow.js:111-118`), and no operator can move it: `ip mtu 9000` is `% Unrecognized interface command`, `show interfaces` prints no MTU line, the port block of `serialize()` does not write the field (a probe confirms a reload returns 1500), and `ping` cannot send a packet larger than its hard-coded 100 bytes, so nothing in a lab can ever be too big for a link. Six ranked steps, each one PR: (1) `ip mtu <68-9000>` + save/print (S); (2) `ping … size` (S); (3) enforce the egress MTU — fragments when DF is clear, ICMP type 3 code 4 when it is set (**needs Jay's approval**, M); (4) the PMTUD black hole as a lab (**needs Jay's approval**, M); (5) ICMPv6 Packet Too Big and the 1280 floor (S); (6) the docs, including the two stale clauses already in `docs/SIMULATION.md:216`. Closes no open issue: the queue holds one device request (#130), and no open PR touches an MTU. Continues `docs/plans/counter-reset.md`, which names this gap as out of scope.
plans: the MTU is 1500 everywhere, and no packet in the lab can be too big
All checks were successful
CI / Classify the change (pull_request) Successful in 12s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 21s
CI / Server smoke test (pull_request) Successful in 10s
CI / Test (Node 20) (pull_request) Successful in 57s
CI / Test (Node 22) (pull_request) Successful in 59s
CI / Test (Node 18) (pull_request) Successful in 1m4s
CI / Docker build (pull_request) Successful in 16s
CI / Arm auto-merge (pull_request) Successful in 2s
3fe1c43ab4
forgejo-actions force-pushed plan/1119-0337 from 3fe1c43ab4
All checks were successful
CI / Classify the change (pull_request) Successful in 12s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 21s
CI / Server smoke test (pull_request) Successful in 10s
CI / Test (Node 20) (pull_request) Successful in 57s
CI / Test (Node 22) (pull_request) Successful in 59s
CI / Test (Node 18) (pull_request) Successful in 1m4s
CI / Docker build (pull_request) Successful in 16s
CI / Arm auto-merge (pull_request) Successful in 2s
to 7cf43f7202 2026-11-19 03:44:05 +00:00
Compare
jaylouisw force-pushed plan/1119-0337 from 7cf43f7202 to 72bb5a8014
All checks were successful
CI / Classify the change (pull_request) Successful in 11s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 9s
CI / Test (Node 18) (pull_request) Successful in 1m1s
CI / Test (Node 20) (pull_request) Successful in 43s
CI / Server smoke test (pull_request) Successful in 6s
CI / Test (Node 22) (pull_request) Successful in 42s
CI / Docker build (pull_request) Successful in 16s
CI / Arm auto-merge (pull_request) Successful in 3s
2026-11-19 03:55:45 +00:00
Compare
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-19 04:00:34 +00:00
jaylouisw deleted branch plan/1119-0337 2026-11-19 04:01:07 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!2080
No description provided.