Repository navigation
transport: a packet of commands too big for the path goes again split - #102
Merged
Merged
Conversation
lucas-romanenko
force-pushed
the
transport/commands-too-big
branch
from
November 23, 2026 22:59
ee368d6 to
ef0d5e8
Compare
Commands go out several to a packet, up to 1,300 bytes of them. Over a path that drops datagrams that big the packet never got through, and the switcher, which takes ours in order only, took nothing after it: 20 labels at path MTU 576 never arrived, and a profile restore over a VPN at MTU 1,200 restored nothing. The take-back for data chunks too big for the path (#95) now covers command packets too: a stuck packet of two or more commands goes again split into packets that fit the next size down, and from then on every command packet to that switcher is split to fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lucas-romanenko
force-pushed
the
transport/congestion-window
branch
from
November 24, 2026 18:19
258a37f to
ce78339
Compare
lucas-romanenko
force-pushed
the
transport/commands-too-big
branch
from
November 24, 2026 18:19
ef0d5e8 to
8ce437f
Compare
…ore #100 #100 (e4119f7) starts a new session when a smaller packet follows a stuck one, so no sequence number the switcher may hold goes again with other data. That is right for an upload's chunks, which are carried over to the new session; a command packet's commands are not, and a profile restore over a path MTU of 1,200 or 576 (the network matrix's profile_restore, vpn and mtu1200) lost its labels. The new session is for data chunks only; a command packet is split and sent again in this session as #102 does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lucas-romanenko
changed the base branch from
transport/congestion-window
to
main
November 24, 2026 18:44
This was referenced Nov 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #105 (and #101, #99). Merge those first.
What. If a stuck packet of two or more commands is bigger than the next chunk size down, and the switcher has been heard all along, it is taken back with everything after it (as #95 does for data chunks). Its commands then go again split into packets that fit, in order, and any chunks of an upload among them go back to their upload. From then on every command packet to that switcher is split to fit as it is sent.
Why. Commands go out several to a packet, up to 1,300 bytes of them (
send_commands: a profile restore, 20 labels at once). Over a path that drops datagrams that big, the packet never arrived. The switcher takes our packets in order only, so it took nothing after it either. #95 covered data chunks only.Before / after (network matrix, 3 runs each, seconds):
Tests.
test_commands_too_big.pyhas 6 tests. Three fail with the change taken out: a stuck packet of commands goes again split and in order, from where it stood; command packets are split as they go once the size is known; and chunks behind a stuck command packet go back to their upload. The other three guard what must not change: a one-command packet is left alone, a quiet link is not a small path, and packets split only between commands. The matrix cellsmtu576/labelsandvpn/profile_restorejoin the CI subset. Full suite passes.SURFACE §5.4 item 68.
🤖 Generated with Claude Code