From: jkay@cs.ucsd.edu (Jon Kay)
Subject: A new tool for managing network variables like TCP max window size
Date: 6 Aug 93 10:00:18 GMT [thread overview]
Message-ID: <52995@sdcc12.ucsd.edu> (raw)
NETCONFIG
Netconfig is a program intended to make management of
network configuration options such as TCP maximum window size a part
of routine system administration. Berkeley Unix based networking
software is configurable to a surprising degree by means of assorted
kernel variables such as 'tcp_recvspace' and 'ipforwarding'. One can
raise TCP max window size to raise performance over FDDI or long
connections, or one can lower it to improve SLIP performance. With
the increasing emphasis on networking and increasing diversity of
networks, I believe that it is increasingly important that it be easy
for individual system administrators to configure network software.
Unfortunately, as matters stand it is difficult to find out
what variables can be changed, especially for those who lack access to
source code. Learning how to change the variables is not particularly
easy, either, since it changes from machine to machine and there are
no obvious manual page pointers. Most difficult of all is figuring
out what values are appropriate to one's network.
Netconfig attempts to fix these problems. When run with no
arguments, it prints out a list of all the network configuration
variables that both the program knows about and are present in the
currently running kernel so that a system administrator can easily see
what variables are available to be changed. For example, it prints
out the following on a Sun running SunOS 4.1.2:
IP:
Routing (_ip_forwarding): on
Verbose (_ip_printfs): off
ICMP:
Redirects (_ip_sendredirects): on
TCP:
Output Buffer Size (_tcp_sendspace): 28672
Input Buffer Size (_tcp_recvspace): 28672
No Delayed ACK (_tcp_nodelack): off
Maximum Segment Size (_tcp_default_mss): 512
UDP:
Checksum (_udp_cksum): on
Max Sndbuf and Msg Size (_udp_sendspace): 65535
Max Rcvbuf and Msg Size (_udp_recvspace): 65535
TTL (_udp_ttl): 60
Netconfig allows for easy change of the variables involved. I set a
number of the values above using the following commands:
$ netconfig tcp_sendspace 28672 tcp_recvspace 28672 udp_sendspace 65535
$ netconfig udp_recvspace 65535 udp_cksum on
The manual page includes a short description of the impact of some of
the variables and suggestions on configuration values.
Netconfig has been ported to the following machine/OS pairs:
Architecture OS
-----------------------------------------
DECstation Ultrix
Vax Ultrix
Sun 3 SunOS
Sun 4 SunOS
Alpha OSF/1
LOCATION
Netconfig is available for anonymous FTP at:
ucsd.edu:pub/csl/netconfig/netconfig.tar.Z
INSTALLATION
Ideally, netconfig should be installed as setgid kmem. If you want
your users to be able to see what the values of network variables are (can't
hurt, might even help), you must install 'netconfig' setgid (netconfig never
allows anybody lacking permission to write to /dev/kmem to change network
variables). Examine the permissions on /dev/kmem and /vmunix to see what sort
of permissions are needed to write /dev/kmem and read /vmunix.
1) Examine 'makefile'.
Edit the value of INSTALLDIR to your satisfation.
Edit the chmod and chgrp commands to reflect the above discussion on
setgidness - probably no change will be needed.
2) Type 'make'.
3) su
4) Type 'make install'.
PORTING
Netconfig is portable, and getting more so. The body of the program
compiled and ran without complaint on every machine I tried it on.
However, it does need a valid list of variables to work on a given machine.
if you attempt to compile netconfig up on an architecture not listed
above without prior effort, it will probably compile and run and not print
out any variables at all. The porting process to a BSD-based OS is:
1) Enumerate what variables are available in a newly created <machine>.h file.
2) Update machdep.h to reflect the new machine-specific header file
3) Add new vendor-specific variables to tables.c.
AUTHOR
Jon Kay (jkay@ucsd.edu)
University of California, San Diego Computer Systems Lab
ACKNOWLEDGEMENTS
I gratefully acknowledge help from Kim Claffy, of the University of
California, San Diego Computer Systems Lab (kc@cs.ucsd.edu) with
the documentation.
COPYRIGHT
Copyright (c) 1993 Regents of the University of California.
All rights reserved.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without written agreement is
hereby granted, provided that the above copyright notice and the following
paragraph appears in all copies of this software.
THIS SOFTWARE IS PROVIDED BY THE REGENTS ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE REGENTS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Version 1.2
Wed Aug 4 22:42:11 PDT 1993
reply other threads:[~1993-08-06 10:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox