Subject : NDD를 이용해서 Solaris 2.4에서의 Tuning할수 있는 변수들

Description :

. 대부분의 TCP, IP, UDP와 ARP tuning은 ndd 명령을 이용한다.
  해당 Driver들에 대한 적절한 변수의 열람을 보려면 다음예와 같다.

  % ndd /dev/arp \?
  % ndd /dev/ip \?
  % ndd /dev/tcp \?
  % ndd /dev/udp \?


. 실제 변수를 Setting하기 위해선 다음예와 같다.

  % ndd -set /dev/ip ip_forwarding 0


. 만약 당신이 매번 Booting시 Setting하기를 원한다면

  % cat /etc/rc2.d/S69inet
  ...
  #
  # Set configurable parameters.
  #
  ndd -set /dev/tcp tcp_old_urp_interpretation 1


. 많은 변수들은 다음 2개의 Option을 갖음 : 1 (True) and 0 (False).

   # ndd device variable

I.e.:

  # ndd /dev/ip ip_debug
  0


. 다음은 변수들의 목록과 설명을 기술하였다.

IP Variables
------------

ip_def_ttl

  Determines the default Time To Live value for standard IP packets.
  The default value is 255.

ip_forwarding

  Determines if the workstation will route packets. This variable can be
  one of three selections:
  
    0     Never forward
    1     Always forward
    2     Only forward when two or more interfaces are up

  The default value is 2.

ip_send_redirects

  Determines whether the host should send ICMP redirects when it routes
  packets. The default value is 1 (True).

TCP Variables
-------------

tcp_close_wait_interval

  Despite the misleading name, this variable actually sets the time
  wait interval (the 2MSL value). The default value is 240000 ms (4
  minutes).

tcp_ip_ttl
  
  Determines the default Time To Live for TCP/IP packets. The default
  value is 255.

tcp_keepalive_interval

  Determines how frequently to test if an idle connection is still
  alive. The default value is 7200000 ms (2 hours).

tcp_mss_def

  Determines the Maximum Segment Size for nonlocal packets (i.e.,
  packets to be sent to different networks or subnets). The default
  value is 536 bytes.

tcp_recv_hiwat

  Determines the maximum value of the TCP receive window. The default
  value is 8192 (8k).

tcp_smallest_anon_port

  Determines the smallest TCP port number that may be used for an
  anonymous connection. The default value is 32768.

tcp_xmit_hiwat

  Determines the maximum value of the TCP transmit window. The default
  value is 8192 (8k).

tcp_xmit_lowat

  Determines the minimum value of the TCP transmit window. The default
  value is 2048 (2k).

UDP Variables
-------------

udp_def_ttl    

  Determines the default Time To Live for UDP packets. The default
  value is 255.

udp_do_checksum

  Determines whether checksums should be done for UDP packets. The
  default value is 1 (True).

udp_recv_hiwat

  Determines the maximum value of the UDP receive window. The default
  value is 8192 (8k).

udp_smallest_anon_port

  Determines the smallest UDP port number that may be used for an
  anonymous connection. The default value is 32768.

udp_xmit_hiwat

  Determines the maximum value of the UDP transmit window. The default
  value is 8192 (8k).

udp_xmit_lowat

  Determines the minimum value of the UDP transmit window. The default
  value is 1024 (1k).


Revision History

작성일자 : 96.08.01
작성자 : 이민호

수정일자 :
수정자 :