Re: Computing window sizes and adjustments

This is a discussion on Re: Computing window sizes and adjustments within the OpenSSH Development forums, part of the Networking and Network Related category; On Tue, 17 Jul 2007, JCA wrote: > On 7/16/07, Damien Miller <djm@mindrot.org> wrote: &...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-17-2007
Damien Miller
 
Posts: n/a
Default Re: Computing window sizes and adjustments

On Tue, 17 Jul 2007, JCA wrote:

> On 7/16/07, Damien Miller <djm@mindrot.org> wrote:
>
> > OpenSSH counts the data sent over a channel against the window, not
> > including the protocol-level framing used to send it.

>
> Thanks for the feedback. Let me see if I can pin things down.
>
> The structure of an SSHv2 packet is laid down in section 6 of RFC 4253:
>
> uint32 packet_length
> byte padding_length
> byte[n1] payload; n1 = packet_length - padding_length - 1
> byte[n2] random padding; n2 = padding_length
> byte[m] mac (Message Authentication Code - MAC); m = mac_length


This isn't included

> If I understand you correctly, the only field that is to be taken into
> account when adjusting the window size is the payload. Now only two
> packet types, namely, SSH_MSG_CHANNEL_DATA and
> SSH_MSG_CHANNEL_DATA_EXTENDED, consume window space. The structures of
> these packets are
>
> byte SSH_MSG_CHANNEL_DATA
> uint32 recipient channel


This isn't included

> string data


This is

> and
>
> byte SSH_MSG_CHANNEL_EXTENDED_DATA
> uint32 recipient channel
> uint32 data_type_code


This isn't included
> string data


This is

You can see the exact calculations by grepping for "window" in channels.c

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0