Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Maximum packet size
- K. Jennings
November 5, 2007, 5:58 pm
rate this thread
packet size M in an SSH_MSG_CHANNEL_OPEN packet to be understood? I see
1) M is the maximum value admissible for the packet length field
in a packet; maximum value as far as the party who has sent the
SSH_MSG_CHANNEL_OPEN packet is concerned.
2) M is the value in the packet length field, plus the length of
that field (always 4), plus the length of the MAC field. That is, M is
the total length of the data actually exchanged when a packet is sent/
The standard (RFC 4254, section 5.1) seems to support option
number 2, albeit the language is sufficiently vague to allow for option 1
Re: Maximum packet size
Neither. It's the maximum amount of channel data in a packet. i.e.,
it's the maximum value for the length field of the string embedded in an
SSH_MSG_CHANNEL_DATA or SSH_MSG_CHANNEL_EXTENDED_DATA. The RFC is not
well-worded here, but the giveaway is in section 5.2:
The maximum amount of data allowed is determined by the maximum
packet size for the channel, and the current window size, whichever
Since the window size must (to be meaningful) only cover channel data,
to make this comparison meaningful the maximum packet size must also.
More pragmatically, this is what PuTTY and OpenSSH do.
- » protocol question - issue with exit-status inside unfinished data stream?
- — Newest thread in » Secure Shell Forum