TCP tx buffer

630 views
Skip to first unread message

Lei Kang

unread,
May 4, 2011, 9:58:01 AM5/4/11
to ns-3-users
Hi,

Can the TCP tx/rx buffer size be changed? And where I can change it?
Thanks.

Regards,
Lei

Chris Dennett

unread,
May 4, 2011, 1:00:24 PM5/4/11
to ns-3-...@googlegroups.com
I believe the buffers are large sized by default. Anyway, the buffer sizes are attributes in TcpSocket:

  • SndBufSize: TcpSocket maximum transmit buffer size (bytes)
  • RcvBufSize: TcpSocket maximum receive buffer size (bytes)

or can be altered using methods also in TcpSocket (TcpSocketBase, really):

SetSndBufSize (uint32_t size)
SetRcvBufSize (uint32_t size)

Cheers,
Chris


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Lei Kang

unread,
May 4, 2011, 11:32:03 PM5/4/11
to ns-3-users
Hi Chris,

It is really helpful.
Thanks a lot.

Regards,
Lei
On May 5, 1:00 am, Chris Dennett <dessima...@gmail.com> wrote:
> I believe the buffers are large sized by default. Anyway, the buffer sizes
> are attributes in TcpSocket:
>
>    - *SndBufSize*:
> TcpSocket<http://www.nsnam.org/doxygen/classns3_1_1_tcp_socket.html>maximum
> transmit buffer size (bytes)
>       - Set with class:
> ns3::UintegerValue<http://www.nsnam.org/doxygen/classns3_1_1_uinteger_value.html>
>       - Underlying type:
> uint32_t<http://www.nsnam.org/doxygen/classns3_1_1_uinteger_value.html#uint32_t>0:4294967295
>       - Initial value: 131072
>       - Flags: construct write read
>    - *RcvBufSize*:
> TcpSocket<http://www.nsnam.org/doxygen/classns3_1_1_tcp_socket.html>maximum
> receive buffer size (bytes)
>       - Set with class:
> ns3::UintegerValue<http://www.nsnam.org/doxygen/classns3_1_1_uinteger_value.html>
>       - Underlying type:
> uint32_t<http://www.nsnam.org/doxygen/classns3_1_1_uinteger_value.html#uint32_t>0:4294967295
>       - Initial value: 131072
>       - Flags: construct write read
>
> or can be altered using methods also in TcpSocket (TcpSocketBase, really):
>
> *SetSndBufSize* (uint32_t size)
> *SetRcvBufSize* (uint32_t size)
Reply all
Reply to author
Forward
0 new messages