public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Matt Jerdonek <maj1224@yahoo.com>
Cc: Discussion eCos <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] TCP Transactions
Date: Thu, 23 Oct 2003 20:15:00 -0000	[thread overview]
Message-ID: <20031023201551.GS1165@lunn.ch> (raw)
In-Reply-To: <20031023183241.64248.qmail@web14201.mail.yahoo.com>

On Thu, Oct 23, 2003 at 11:32:41AM -0700, Matt Jerdonek wrote:
> > 
> > 1) Uses sysctl(). Its something like
> > net.inet.tcp.msl. You can probably find its 
> > proper name using the sysctl test program.
> 
> I downloaded the current FreeBSD stack to use your
> sysctl updates (Thanks for adding this!).  Anyway, msl
> isn't an option.

Humm. 

packages/net/bsd_tcpip/current/src/sys/netinet/tcp_timer.125:
int	tcp_msl;
SYSCTL_PROC(_net_inet_tcp, OID_AUTO, msl, CTLTYPE_INT|CTLFLAG_RW,
    &tcp_msl, 0, sysctl_msec_to_ticks, "I", "Maximum segment lifetime");

So it should be there.

Running the test program 
./install/tests/net/bsd_tcpip/current/tests/sysctl1

INFO:<4 2 6 106 = net.inet.tcp.local_slowstart_flightsize (INT Read Write ){6}>
INFO:<4 2 6 107 = net.inet.tcp.newreno (INT Read Write ){6}>
INFO:<4 2 6 108 = net.inet.tcp.msl (INT Read Write ){6}>
INFO:<4 2 6 109 = net.inet.tcp.always_keepalive (INT Read Write ){6}>
INFO:<4 2 6 110 = net.inet.tcp.tcbhashsize (INT Read ){6}>


> So, I'm stuck using global memory
> for now until I extend the sysctl interface.  Is there
> any standard sysctl template?  Can I just add it to
> the end of the list in tcp_var.h?
> 
> Also, I need to control the TCP retransmissions, which
> is set to 12, and is way too slow for transactions. 
> Since rexmits is controlled by TCP_MAXRXTSHIFT
> (tcp_timer.h) and is not accessible via global memory,
> is my best option to make it configurable via the cdl?

Hummm, i don't think it works like that. I think a retransmit occurs
about 2-4 times the round trip time. There is not much you can do
about this. Also, the timer resolution is probably 50ms. So don't
expect anything faster than that. 

You might want to get hold of the book:

The Implementation (TCP/IP Illustrated, Volume 2)
by Gary R. Wright (Author), W. Richard Stevens (Author) 

Its the best book i know about for the insides of *BSD stacks.

    Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

  reply	other threads:[~2003-10-23 20:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20 23:27 Matt Jerdonek
2003-10-21  7:16 ` Andrew Lunn
2003-10-21 15:42   ` Matt Jerdonek
2003-10-21 16:06 ` David Vrabel
2003-10-21 17:49   ` Matt Jerdonek
2003-10-21 19:11 ` Andrew Lunn
2003-10-23 18:32   ` Matt Jerdonek
2003-10-23 20:15     ` Andrew Lunn [this message]
2003-10-24 16:38       ` Matt Jerdonek
2003-10-28 12:50         ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031023201551.GS1165@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=maj1224@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).