close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Changes between Initial Version and Version 1 of Proto/cModules/c0HostProtocolStack/c0Configuration


Ignore:
Timestamp:
Nov 29, 2014, 1:19:13 AM (9 years ago)
Author:
seskar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proto/cModules/c0HostProtocolStack/c0Configuration

    v1 v1  
     1= Configuration =
     2
     3Stack configuration includes default identity, set of network interfaces, policy for choosing between two or more interfaces for forwarding outbound packets, and several resource parameters that affect performance. Configuration is specified simply using <name>=<value> pairs as shown in the below template file.
     4
     5== Template hoststack.conf ==
     6{{{
     7# Specify 'default' GUID for the network stack and therefore for the
     8# node that it runs on. The stack would use this as a source GUID for
     9# any messages sent by applications that do not specify their own, and
     10# also when the communication originates from within the stack (e.g.,
     11# from transport modules or for error messages). For now, it is a
     12# 32-bit positive integer.
     13# Example:
     14# DEFAULT_GUID=234323
     15#
     16# Required.
     17DEFAULT_GUID=
     18
     19# Define one or more interfaces to be used for network communication.
     20# These are either a 3-tuple 'auto' or a 5-tuple 'manual'
     21# configuration:
     22# INTERFACE=<type>,<name>,auto
     23# INTERFACE=<type>,<name>,manual,<ip_addr>,<mac_addr>
     24# where
     25#  type is one of 'wifi', 'wimax', or 'ether'
     26#  name is the system name of interface, e.g., wlan0 or eth0
     27#  'auto' and 'manual' keywords distinguish whether network attachment
     28#    (i.e., first hop router, or another host in p2p mode) is dynamically
     29#    chosen by stack based on advertisements or is statically fixed for
     30#    the interface.
     31#  ip_addr is the IP4 address of first hop in fixed attachment
     32#  mac_addr is the MAC address of first hop in fixed attachment
     33# Examples:
     34# INTERFACE=wifi,wlan0,auto
     35# INTERFACE=wimax,wmx0,manual,192.168.1.1,11:22:33:44:55:66
     36#
     37# Must specify at least one
     38INTERFACE=
     39
     40# Pick policy for deciding what interface an outbound packet should be
     41# sent on. Policies currently implemented are:
     42#  'bestperformance' - stack monitors link (e.g., data rate) to
     43#    determine best. Interfaces not enabled or down with errors are
     44#    not considered.
     45#  'wifionly' - equivalent to having just the WiFi interface(s)
     46#  'wimaxonly' - similarly, just having the WiMAX interface(s)
     47#  'etheronly' - just having the Ethernet interfaces(s)
     48# Example:
     49# POLICY=bestperformance
     50#
     51# Required.
     52POLICY=
     53
     54# Performance configuration - mostly for tuning
     55
     56# Buffer size (in MB) for communication sockets used internal by
     57# stack to interact with API library. It is also used to size per
     58# interface buffer on the send side.
     59# Positive integer based on system resources.
     60# Example:
     61# BUFFER_SIZE=10
     62BUFFER_SIZE=10
     63
     64# Ack timeout (in usec) for the Hop data-link transport layer.
     65# Example: 800ms timeout
     66# CSYN_TO=800000
     67CSYN_TO=800000
     68}}}