The documentation for Ion is broken up into several sections that deal with the general installation and configuration of Ion. The design documentation for Ion is available here.
December 5, 2010
The ION (interplanetary overlay network) software is a suite of communication protocol implementations designed to support mission operation communications across an end-to-end interplanetary network, which might include on-board (flight) subnets, in-situ planetary or lunar networks, proximity links, deep space links, and terrestrial internets. Included in the ION softwarex distribution are the following packages:
Features included:
ION requires the following software packages:
Previously, Ion was classified under ITAR export control restrictions and required a fairly involved process to obtain. This restriction has recently been lifted so Ion can be much more easily distributed.
The Ion release you're interested in can be obtained at Ion's project page. Either grab a release distribution or clone our Mercurial repository.
Follow the standard autoconf method for compiling the project. In the base ION directory run:
./configure
Then compile with:
make
After successful compilation, you should test that your system runs ION properly. This test currently sends data using ION over loopback. A secondary test is run for Apple OSX users, and it may require some modification in the amount of available shared memory (details are given in the output):
make test
Finally, insall (requires root privileges):
sudo make install
Autotools will usually install packages such as this in the /usr/local/ directory tree. This is where the example configuration files and a copy of this tutorial will end up (that is, in the share/ion subdirectory). Please move on to post-installation. Note that if you do not have root privileges, or would like to only run ION locally, that adding the entire build directory to your PATH is advised- almost every ION-related program will attempt to call several others, and it will expect that they exist in the PATH
In some cases (desire to use the 'original' makefiles or a problem with autotools) users may wish to use the NASA-JPL provided make utilities for installation. Extract the makefiles using tar -xzf makefile.tar.gz in the root extracted directory. This will put the makefiles in the required directories. Manual compilation will be required for each package (listed below). The Makefiles default to a Redhat Linux i86 architecture, but several other architectures are available. Build order:
For Linux based systems, you may need to run ldconfig with no arguments after install.
No other post-install steps are required if autotools were used. If autotools were not used, please read the following:
ION is installed into /opt by default. Therefore, you will have to tell your shell how to access them. If you're running the bash shell (as is the default in virtually all Linux systems), you can enter the following lines into /.bashrc:
export PATH="${PATH}:/opt/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/lib"
export MANPATH="${MANPATH}:/opt/man"
For other shells, please check your shell documentation.
The following tools are available to you after ION is built:
Logging
It is important to note that, by default, the administrative programs will all trigger the creation of a log file called ion.log in the directory where the program is called. This means that write-access in your current working directory is required. The log file itself will contain the expected log information from administrative daemons, but it will also contain error reports from simple applications such as bpsink. This is important to note since the bundling applications may not be reporting all error information to stdout or stderr.
A script has been created which allows a more streamlined configuration and startup of an ION node. This script is called ionstart, and it has the following syntax. Don't run it yet; we still have to configure it!
ionstart -I <filename >
Configuration information (such as routes, connections, etc) can be specified one of two ways for any of the individual administration programs:
You can find appropriate commands in the following sections.
There are five configuration files about which you should be aware.
The first, ionadmin's configuration file, specifies contact bandwidths and one-way transmission times. This is important in deep-space scenarios where the bandwidth must be artificially limited and where acknowledgments must be timed according to propagation delays. It is also vital to the function of contact-graph routing.
The second, ltpadmin's configuration file, specifies spans, transmission speeds, and resources for the Licklider Transfer Protocol convergence layer.
The third, bpadmin's configuration file, specifies all of the open endpoints for delivery on your local end, which convergence layer that you intend to use. With the exception of LTP, most convergence layers are fully configured in this file.
The fourth, ipnadmin's configuration file, maps endpoints to convergence-layer addresses. Our examples use TCP/IP and LTP (over IP/UDP), so it maps endpoint IDs to IP addresses. This file essentially functions as the static routing table for the IPN naming scheme.
The fifth, dtnadmin's configuration file, acts as the routing table for the DTN naming scheme.
Given to ionadmin either as a file or from the daemon command line, this file configures contacts for the ION node. We will assume that the local element number is 1.
This file specifies contact times and one-way light times between nodes. This is useful in deep-space scenarios: for instance, Mars may be 20 light-minutes away, or 8. Though only some transport protocols make use of this time (currently, only LTP), it must be specified for all links nonetheless. Times may be relative (prefixed with a + from current time) or absolute. Absolute times, are in the format yyyy/mm/dd-hh:mm:ss. By default, the contact-graph routing engine will make bundle routing decisions based on the contact information provided.
The configuration file lines are as follows:
1 1 ""
This command will initialize the ion node to be the IPN element 1.
s
This will start the ION node. It mostly functions to officially "start" the node in a specific instant.
a contact +1 +3600 1 1 100000
specifies a bandwidth for a given time duration between two connected element IDs.
a range +1 +3600 1 1 1
specifies a contact distance, where each element has the following meaning:
m production 1000000
specifies the amount of data produced by the node.
m consumption 1000000
specifies the amount of data consumed by the node.
This will make a final configuration file host1.ionrc which looks like this:
1 1 ""
s
a contact +1 +3600 1 1 100000
a range +1 +3600 1 1 1
m production 1000000
m consumption 1000000
Given to ltpadmin as a file or from the command line, this file configures the LTP engine itself. We will assume the local IPN element number is 1.
1 32 131072
This command will initialize the LTP engine with some memory consumption values:
a span 1 1400 10000 'udplso localhost:1113'
This command defines an LTP engine 'span.' :
s 'udplsi localhost:1113'
Starts the ltp engine itself:
This means that the entire configuration file host1.ltprc looks like this:
1 32 131072
a span 1 1400 10000 'udplso localhost:1113'
s 'udplsi localhost:1113'
Given to bpadmin either as a file or from the daemon command line, this file configures the endpoints to which this daemon will communicate. We will assume that the local element number is 1; please change for your purposes.
1 ipn:1.0
This initializes the bundle protocol:
a scheme ipn 1 'ipnfw' 'ipnadminep'
This adds support for a new Endpoint Identifier (EID) scheme:
a endpoint ipn 1.0 q
This command establishes an EID:
a endpoint ipn 1.1 q a endpoint ipn 1.2 q
These specify two more endpoints for testing traffic.
a protocol ltp 1400 100
This command adds support for a convergence layer protocol:
a induct ltp 1 ltpcli
This command adds an induct, through which new bundles are received:
a outduct ltp 1 ltpclo
This command adds an outduct, through which outgoing bundles can be sent:
s
This command starts the bundle engine, inducts, outducts, and administration programs.
That means that the entire configuration file host1.bprc looks like this:
1 ipn:1.0
a scheme ipn 1 'ipnfw' 'ipnadminep'
a endpoint ipn 1.0 q
a endpoint ipn 1.1 q
a endpoint ipn 1.2 q
a protocol ltp 1400 100
a induct ltp 1 ltpcli
a outduct ltp 1 ltpclo
s
As said earlier, this file is passed to the IPN routing program, and specifies where to forward bundles destined for certain addresses (which may or may not be locally connected). Since we can only forward bundles to one place (our host), we only have one route.
a service 0 admin
This command adds a new service.
a service 1 test1
a service 2 test2
These commands define 2 more services for testing. Note that service definitions aren't explicitly necessary unless routing rules are to be applied.
a plan 1 node1 x ltp/1
This command defines an egress plan for bundles to be transmitted to the local node:
This means that the entire configuration file host1.ipnrc looks like this:
a service 0 admin
a service 1 test1
a service 2 test2
a plan 1 node1 x ltp/1
Routes are specified differently if routing through this bundling daemon instead of delivering it to a neighbor via a local duct: see the Section 3.4 3-node case for details.
Assuming no errors occur with the configuration above, we are now ready to test loopback communications. In one terminal, we have to run the start script (the one we said that you would have to have earlier). It's right here, in case you forgot to write it down:
ionstart -i host1.ionrc -l host1.ltprc -b host1.bprc -p host1.ipnrc
This command will run the appropriate administration programs, in order, with the appropriate configuration files. Don't worry that the command is lengthy and unwieldly; we will show you how to make a more clean single configuration file later.
Once the daemon is started, run:
bpsink ipn:1.1
This will begin listening on the Endpoint ID with the endpoint_number 1 on service_number 1, which is used for testing.
Now open another terminal and run the command:
bpsource ipn:1.1
This will begin sending messages you type to the Endpoint ID ipn:1.1, which is currently being listened to by bpsink. Type messages into bpsource, press enter, and see if they are reported by bpsink.
If so, you're ready for bigger and better things. If not, check the following:
If you are still having problems, you can ask for help on the ION users' list or file an ION bug report.
As the daemon launches many ducts and helper applications, it can be complicated to turn it all off. To help this, we provided a script. The script similar to ionstart exists called ionstop, which tears down the ion node in one step. You can call it like so:
ionstop
After stopping the daemon, it can be restarted using the same procedures as outlined above. Do remember that the ion.log file is still present, and will just keep growing as you experiment with ION.
IMPORTANT: The user account that runs ionstart must also run ionstop. If that account does not, no other accounts can successfully start the daemon, as the shared memory vital to ION's functionality will already be occupied.
Detailed documentation of ION and its applications are available via man pages. It is suggested that you start with man ion , as this is an overview man page listing all available ION packages.
You can get more information about how ION runs and how to configure more advanced networks by examining the next section.
This section will describe some simple example networks and their configuration files. These files can be found in /usr/local/share/ion/configs after installation with autotools. The files are also in the configs directory of the extracted source tarball.
The most difficult and cumbersome method of starting an ION node is to manually run the various administration programs in order, manually typing configuration commands all the way. It is much more efficient and less error-prone to place the configuration commands into a configuration file and using that as input to the administration program, but this is still more cumbersome as you must type in each administration program in order. The ionstart program will automatically execute the appropriate administration programs with their respective configuration files in order. Unfortunately, as seen in the previous sections, the command is lengthy. This is why the ionscript script was added to make things even easier.
The ionscript will basically concatenate the configuration files into one large file. The format of this large configuration file is simply to bookend configuration sections with the lines: ## begin PROGRAM and ## end PROGRAM, where PROGRAM is the name of the administration program for which the configuration commands should be sent (such as ionadmin, bpadmin, ipnadmin).
To create a single file host1.rc out of the various configuration files defined in the previous section, run this command:
ionscript -i host1.ionrc -p host1.ipnrc -l host1.ltprc -b host1.bprc -O host1.rc
The command can also be used to split the large host1.rc into the individual configuration files (so long as the large file is formatted correctly). Just run this command to revert the process:
ionscript -i host1.ionrc -p host1.ipnrc -l host1.ltprc -b host1.bprc -I host1.rc
This isn't very practical in this specific case (as you already have the individual files) but if you start with a single configuration file, this can be helpful.
Once you have a single configuration file, starting the ION node is a single command:
ionstart -I host1.rc
Note that ionstart and ionscript require sed and awk, but those are almost universally available on Unix-based systems. The two scripts will always sanity-check the large configuration file to ensure that it interprets the bookend lines correctly- and it will warn you of any errors you have made in the file. Consult the USAGE for each script for further help, by attempting to run the script with no arguments or the -h argument.
This convenient configuration file format will be used in the example networks described below.
This system is formed by running the following command on Host 1:
ionstart -I loopback.rc
Be sure that you use the example configuration file loopback-ltp/loopback.rc:
## File created by ../../ionscript
## Mon Oct 27 14:56:07 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "loopback.rc"
## begin ionadmin
# ionrc configuration file for loopback test.
# This uses ltp as the primary convergence layer.
# command: % ionadmin loopback.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Set this node to be node 1 (as in ipn:1).
# Use default sdr configuration (empty configuration file name "").
1 1 ""
# start ion node
s
# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000
# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1
# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin
## begin ltpadmin
# ltprc configuration file for the loopback test.
# Command: % ltpadmin loopback.ltprc
# This command should be run AFTER ionadmin and BEFORE bpadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Establishes the LTP retransmission window.
# (Prohibiting LTP from seizing all available storage).
# A maximum of 32 sessions. A session is assumed to be around one
# second of transmission. This value should be estimated at the sum
# of maximum round-trip times (in seconds) for all "spans."
# Suggest throwing 20% higher number of sessions to account for extra-
# long sessions which contain an actual retransmission.
# Set a block size limit of 131072 bytes. The block size is around
# the amount of data expected to be sent in a session. Determine
# this with the maximum amount of data (in bytes) transferred in one
# second on your fastest available link.
1 32 131072
# Add a span. (a connection)
# Identify the span as engine number 1.
# Use 1400 byte segments (assuming a standard ethernet frame
# underlying this link and accounting for ip/udp/eth header overhead).
# Use a nominal block size of 10000 bytes. This is the amount of data
# (which can span several bundles) sent in a session. You should
# consider this to be the maximum number of bytes sent in one second
# on the link. (you can also use the block size limit in the
# initialization command).
# Use the command 'udplso localhost:1113' to implement the link
# itself. In this case, we use udp to connect to localhost (this is
# loopback) using port 1113 (defined by IANA as the default UDP port
# for Licklider Transmission Protocol). The single quote is
# important, don't use double quotes.
a span 1 1400 10000 'udplso localhost:1113'
# Start command.
# This command actually runs the link service output commands
# (defined above, in the "a span" commands).
# Also starts the link service INPUT task 'udplsi localhost:1113' to
# listen locally on UDP port 1113 for incoming LTP traffic.
s 'udplsi localhost:1113'
## end ltpadmin
## begin bpadmin
# bprc configuration file for the loopback test.
# Command: % bpadmin loopback.bprc
# This command should be run AFTER ionadmin and ltpadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Use ipn:1.0 as the custodian endpoint of this node.
# That is, scheme IPN with element_number 1 and service number 0
# (ipn requires custodian service is zero).
# Note that this EID must be understood by the node itself, so be sure
# to add the scheme below.
1 ipn:1.0
# Add an EID scheme.
# The scheme's name is ipn.
# The scheme's number is 1. Note that this number is defined for
# Compressed Bundle Header Encoding (CBHE) schemes ONLY. All other
# schemes (dtn for example) should use number -1.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 1 'ipnfw' 'ipnadminep'
# Add endpoints.
# Establish endpoints ipn:1.0 ipn:1.1 and ipn:1.2 on the local node.
# ipn:1.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn 1.0 q
a endpoint ipn 1.1 q
a endpoint ipn 1.2 q
# Add a protocol.
# Add the protocol named ltp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, udp on ethernet) for payload, and 100 bytes for overhead.
a protocol ltp 1400 100
# Add an induct. (listen)
# Add an induct to accept bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# induct).
# The induct itself is implemented by the 'ltpcli' command.
a induct ltp 1 ltpcli
# Add an outduct. (send to yourself)
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# outduct).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 1 ltpclo
# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin
## begin ipnadmin
# ipnrc configuration file for the loopback test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin loopback.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008
# Add services
# Add service 0 (i.e. ipn:1.0) called 'admin.'
# Add service 1 (ipn:1.1) called 'test1.'
# Add service 2 (ipn:1.2) called 'test2.'
# See your bprc file for endpoint IDs you should use.
a service 0 admin
a service 1 test1
a service 2 test2
# Add an egress plan.
# Bundles to be transmitted to element number 1 (that is, yourself).
# This element is named 'node1.'
# The plan is to queue for transmission (x) on protocol 'ltp' using
# the outduct identified as '1.'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 node1 x ltp/1
## end ipnadmin
In this section, we assume that host1 has an IP address of 10.1.1.1 and host2 has an IP address of 10.1.1.2. Please modify this for your uses.
Note that this example network uses a different convergence layer: TCP.
This network is created by running the following command on Host 1:
ionstart host1.rc
Host 2 must run this command:
ionstart host2.rc
The configuration files are found in the 2node-tcp directory:
host1.rc:
## File created by ../../../../branches/release-1.0_r203/ionscript
## Wed Oct 29 17:28:46 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host1.rc"
## begin ionadmin
# ionrc configuration file for host1 in a 2node tcp test.
# This uses tcp as the primary convergence layer.
# command: % ionadmin host1.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Set this node to be node 1 (as in ipn:1).
# Use default sdr configuration (empty configuration file name "").
1 1 ""
# start ion node
s
# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000
# Add more contacts.
# They will connect 1 to 2, 2 to 1, and 2 to itself
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1
# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 2 2 1
a range +1 +3600 2 1 1
# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin
## begin bpadmin
# bprc configuration file for host1 in a 2node test.
# Command: % bpadmin host1.bprc
# This command should be run AFTER ionadmin and BEFORE ipnadmin
# or dtnadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Use ipn:1.0 as the custodian endpoint of this node.
# That is, scheme IPN with element_number 1 and service number 0
# (ipn requires custodian service to be zero).
# Note that this EID must be understood by the node itself, so be sure
# to add the scheme below.
1 ipn:1.0
# Add an EID scheme.
# The scheme's name is ipn.
# The scheme's number is 1. Note that this number is defined for
# Compressed Bundle Header Encoding (CBHE) schemes ONLY. All other
# schemes (dtn for example) should use number -1.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 1 'ipnfw' 'ipnadminep'
# Add endpoints.
# Establish endpoints ipn:1.0 ipn:1.1 and ipn:1.2 on the local node.
# ipn:1.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to dump them 'x', as opposed to
# queueing them (use 'q' instead of 'x' to queue).
a endpoint ipn 1.0 x
a endpoint ipn 1.1 x
a endpoint ipn 1.2 x
# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100
# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.1:4556 tcpcli
# Add an outduct. (send to yourself)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.1 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.1:4556 tcpclo
# Add an outduct. (send to host2)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo
# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above.
s
## end bpadmin
## begin ipnadmin
# ipnrc configuration file for host1 in the 2node tcp network.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host1.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008
# Add services
# Add service 0 (i.e. ipn:1.0) called 'admin.'
# Add service 1 (ipn:1.1) called 'test1.'
# Add service 2 (ipn:1.2) called 'test2.'
# See your bprc file for endpoint IDs you should use.
a service 0 admin
a service 1 test1
a service 2 test2
# Add an egress plan. (to yourself)
# Bundles to be transmitted to element number 1 (that is, yourself).
# This element is named 'host1.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.1:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 host1 x tcp/10.1.1.1:4556
# Add an egress plan. (to the second host)
# Bundles to be transmitted to element number 2 (the other node).
# This element is named 'host2.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 host2 x tcp/10.1.1.2:4556
## end ipnadmin
host2.rc:
## File created by ../../../../branches/release-1.0_r203/ionscript
## Wed Oct 29 17:28:46 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host2.rc"
## begin ionadmin
# ionrc configuration file for host2 in a 2node tcp test.
# This uses tcp as the primary convergence layer.
# command: % ionadmin host2.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Set this node to be node 2 (as in ipn:2).
# Use default sdr configuration (empty configuration file name "").
1 2 ""
# start ion node
s
# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000
# Add more contacts.
# They will connect 1 to 2, 2 to 1, and 2 to itself
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1
# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 2 2 1
a range +1 +3600 2 1 1
# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin
## begin bpadmin
# bprc configuration file for host2 in a 2node test.
# Command: % bpadmin host2.bprc
# This command should be run AFTER ionadmin and BEFORE ipnadmin
# or dtnadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Use ipn:2.0 as the custodian endpoint of this node.
# That is, scheme IPN with element_number 2 and service number 0
# (ipn requires custodian service to be zero).
# Note that this EID must be understood by the node itself, so be sure
# to add the scheme below.
1 ipn:2.0
# Add an EID scheme.
# The scheme's name is ipn.
# The scheme's number is 1. Note that this number is defined for
# Compressed Bundle Header Encoding (CBHE) schemes ONLY. All other
# schemes (dtn for example) should use number -1.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 1 'ipnfw' 'ipnadminep'
# Add endpoints.
# Establish endpoints ipn:2.0 ipn:2.1 and ipn:2.2 on the local node.
# ipn:2.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to dump them 'x', as opposed to
# queueing them (use 'q' instead of 'x' to queue).
a endpoint ipn 2.0 x
a endpoint ipn 2.1 x
a endpoint ipn 2.2 x
# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100
# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.2:4556 tcpcli
# Add an outduct. (send to yourself)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo
# Add an outduct. (send to host1)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.1 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.1:4556 tcpclo
# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above.
s
## end bpadmin
## begin ipnadmin
# ipnrc configuration file for host1 in the 2node tcp network.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host2.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008
# Add services
# Add service 0 (i.e. ipn:2.0) called 'admin.'
# Add service 1 (ipn:2.1) called 'test1.'
# Add service 2 (ipn:2.2) called 'test2.'
# See your bprc file for endpoint IDs you should use.
a service 0 admin
a service 1 test1
a service 2 test2
# Add an egress plan. (to yourself)
# Bundles to be transmitted to element number 2 (that is, yourself).
# This element is named 'host2.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 host2 x tcp/10.1.1.2:4556
# Add an egress plan. (to the other host)
# Bundles to be transmitted to element number 1 (the other node).
# This element is named 'host1.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.1:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 host1 x tcp/10.1.1.1:4556
## end ipnadmin
In this section, we assume that host1 has an IP address of 10.1.1.1, host2 has an IP address of 10.1.1.2, and host3 has an IP address of 10.1.1.3. Please modify this for your uses.
You will notice that this network uses host2 as a router in between host1 and host3. At this point, routing is handled by creating a group from the remote node and using the middle node as the gateway. Notice how host1 will take traffic for host3 and transmit it on the same outduct to host2, the next hop. Host3 will transmit traffic destined for host1 on the outduct for host2, also the next hop.
Also note that this network uses both LTP and TCP convergence layers.
This network is created by running the following command on Host 1:
ionstart -I host1.rc
This command is run on Host 2:
ionstart -I host2.rc
This command is run on Host 3:
ionstart -I host3.rc
The config files can be found in the 3node-tcp-ltp directory.
host1.rc:
## File created by ../../ionscript
## Wed Oct 29 17:33:43 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host1.rc"
## begin ionadmin
# ionrc configuration file for host1 in a 3node tcp/ltp test.
# This uses ltp from 1 to 2 and ltp from 2 to 3.
# command: % ionadmin host1.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Set this node to be node 1 (as in ipn:1).
# Use default sdr configuration (empty configuration file name "").
1 1 ""
# start ion node
s
# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000
# Add more contacts.
# The network goes 1--2--3
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
a contact +1 +3600 2 3 100000
a contact +1 +3600 3 2 100000
a contact +1 +3600 3 3 100000
# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1
# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 1 2 1
a range +1 +3600 1 3 2
a range +1 +3600 2 2 1
a range +1 +3600 2 3 1
a range +1 +3600 3 3 1
# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin
## begin ltpadmin
# ltprc configuration file for host1 in a 3node ltp/tcp test.
# Command: % ltpadmin host1.ltprc
# This command should be run AFTER ionadmin and BEFORE bpadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Establishes the LTP retransmission window.
# (Prohibiting LTP from seizing all available storage).
# A maximum of 32 sessions. A session is assumed to be around one
# second of transmission. This value should be estimated at the sum
# of maximum round-trip times (in seconds) for all "spans."
# Suggest throwing 20% higher number of sessions to account for extra-
# long sessions which contain an actual retransmission.
# Set a block size limit of 131072 bytes. The block size is around
# the amount of data expected to be sent in a session. Determine
# this with the maximum amount of data (in bytes) transferred in one
# second on your fastest available link.
1 32 131072
# Add a span. (a connection)
# Identify the span as engine number 1.
# Use 1400 byte segments (assuming a standard ethernet frame
# underlying this link and accounting for ip/udp/eth header overhead).
# Use a nominal block size of 10000 bytes. This is the amount of data
# (which can span several bundles) sent in a session. You should
# consider this to be the maximum number of bytes sent in one second
# on the link. (you can also use the block size limit in the
# initialization command).
# Use the command 'udplso 10.1.1.1:1113' to implement the link
# itself. In this case, we use udp to connect to the local machine
# (loopback) using port 1113 (defined by IANA as the default UDP port
# for Licklider Transmission Protocol). The single quote is
# important, don't use double quotes.
a span 1 1400 10000 'udplso 10.1.1.1:1113'
# Add another span. (to host2)
# Identify the span as engine number 2.
# Use the command 'udplso 10.1.1.2:1113' to implement the link
# itself. In this case, we use udp to connect to host2 using the
# default port.
a span 2 1400 10000 'udplso 10.1.1.2:1113'
# Start command.
# This command actually runs the link service output commands
# (defined above, in the "a span" commands).
# Also starts the link service INPUT task 'udplsi 10.1.1.1:1113' to
# listen locally on UDP port 1113 for incoming LTP traffic.
s 'udplsi 10.1.1.1:1113'
## end ltpadmin
## begin bpadmin
# bprc configuration file for host1 in a 3node ltp/tcp test.
# Command: % bpadmin host1.bprc
# This command should be run AFTER ionadmin and ltpadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Use ipn:1.0 as the custodian endpoint of this node.
# That is, scheme IPN with element_number 1 and service number 0
# (ipn requires custodian service is zero).
# Note that this EID must be understood by the node itself, so be sure
# to add the scheme below.
1 ipn:1.0
# Add an EID scheme.
# The scheme's name is ipn.
# The scheme's number is 1. Note that this number is defined for
# Compressed Bundle Header Encoding (CBHE) schemes ONLY. All other
# schemes (dtn for example) should use number -1.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 1 'ipnfw' 'ipnadminep'
# Add endpoints.
# Establish endpoints ipn:1.0 ipn:1.1 and ipn:1.2 on the local node.
# ipn:1.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn 1.0 x
a endpoint ipn 1.1 x
a endpoint ipn 1.2 x
# Add a protocol.
# Add the protocol named ltp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, udp on ethernet) for payload, and 100 bytes for overhead.
a protocol ltp 1400 100
# Add an induct. (listen)
# Add an induct to accept bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# induct).
# The induct itself is implemented by the 'ltpcli' command.
a induct ltp 1 ltpcli
# Add an outduct. (send to yourself)
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# outduct). The name should correspond to a span (in your ltprc).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 1 ltpclo
# NOTE: what happens if 1 does not match the id of an ltp span?
# Add an outduct. (send to host2)
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 2 (this is for future changing/deletion of the
# outduct). The name should correpsond to a span (in your ltprc).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 2 ltpclo
# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin
## begin ipnadmin
# ipnrc configuration file for host1 in a 3node ltp/tcp test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host1.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008
# Add services
# Add service 0 (i.e. ipn:1.0) called 'admin.'
# Add service 1 (ipn:1.1) called 'test1.'
# Add service 2 (ipn:1.2) called 'test2.'
# See your bprc file for endpoint IDs you should use.
a service 0 admin
a service 1 test1
a service 2 test2
# Add an egress plan.
# Bundles to be transmitted to element number 1 (that is, yourself).
# This element is named 'host1.'
# The plan is to queue for transmission (x) on protocol 'ltp' using
# the outduct identified as '1.'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 host1 x ltp/1
# Add other egress plans.
# Bundles for elemetn 2 can be transmitted directly to host2 using
# ltp outduct identified as '2.' See bprc file for available outducts
# and/or protocols.
a plan 2 host2 x ltp/2
# Add a group static route
# host 3 is not a neighbor to host1, but it is a neighbor to host2.
# send bundles for 3 via 2.
a group 3 3 2
## end ipnadmin
host2.rc:
## File created by ../../ionscript
## Wed Oct 29 17:33:43 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host2.rc"
## begin ionadmin
# ionrc configuration file for host2 in a 3node tcp/ltp test.
# This uses ltp from 1 to 2 and ltp from 2 to 3.
# command: % ionadmin host2.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Set this node to be node 2 (as in ipn:2).
# Use default sdr configuration (empty configuration file name "").
1 2 ""
# start ion node
s
# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000
# Add more contacts.
# The network goes 1--2--3
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
a contact +1 +3600 2 3 100000
a contact +1 +3600 3 2 100000
a contact +1 +3600 3 3 100000
# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1
# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 1 2 1
a range +1 +3600 1 3 2
a range +1 +3600 2 2 1
a range +1 +3600 2 3 1
a range +1 +3600 3 3 1
# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin
## begin ltpadmin
# ltprc configuration file for host2 in a 3node ltp/tcp test.
# Command: % ltpadmin host2.ltprc
# This command should be run AFTER ionadmin and BEFORE bpadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Establishes the LTP retransmission window.
# (Prohibiting LTP from seizing all available storage).
# A maximum of 32 sessions. A session is assumed to be around one
# second of transmission. This value should be estimated at the sum
# of maximum round-trip times (in seconds) for all "spans."
# Suggest throwing 20% higher number of sessions to account for extra-
# long sessions which contain an actual retransmission.
# Set a block size limit of 131072 bytes. The block size is around
# the amount of data expected to be sent in a session. Determine
# this with the maximum amount of data (in bytes) transferred in one
# second on your fastest available link.
1 32 131072
# Add a span. (a connection)
# Identify the span as engine number 1.
# Use 1400 byte segments (assuming a standard ethernet frame
# underlying this link and accounting for ip/udp/eth header overhead).
# Use a nominal block size of 10000 bytes. This is the amount of data
# (which can span several bundles) sent in a session. You should
# consider this to be the maximum number of bytes sent in one second
# on the link. (you can also use the block size limit in the
# initialization command).
# Use the command 'udplso 10.1.1.1:1113' to implement the link
# itself. In this case, we use udp to connect to the local machine
# (loopback) using port 1113 (defined by IANA as the default UDP port
# for Licklider Transmission Protocol). The single quote is
# important, don't use double quotes.
a span 1 1400 10000 'udplso 10.1.1.1:1113'
# Add another span. (to yourself)
# Identify the span as engine number 2.
# Use the command 'udplso 10.1.1.2:1113' to implement the link
# itself. In this case, we use udp to connect to host2 using the
# default port.
a span 2 1400 10000 'udplso 10.1.1.2:1113'
# Start command.
# This command actually runs the link service output commands
# (defined above, in the "a span" commands).
# Also starts the link service INPUT task 'udplsi 10.1.1.2:1113' to
# listen locally on UDP port 1113 for incoming LTP traffic.
s 'udplsi 10.1.1.2:1113'
## end ltpadmin
## begin bpadmin
# bprc configuration file for host2 in a 3node ltp/tcp test.
# Command: % bpadmin host2.bprc
# This command should be run AFTER ionadmin and ltpadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Use ipn:2.0 as the custodian endpoint of this node.
# That is, scheme IPN with element_number 2 and service number 0
# (ipn requires custodian service is zero).
# Note that this EID must be understood by the node itself, so be sure
# to add the scheme below.
1 ipn:2.0
# Add an EID scheme.
# The scheme's name is ipn.
# The scheme's number is 1. Note that this number is defined for
# Compressed Bundle Header Encoding (CBHE) schemes ONLY. All other
# schemes (dtn for example) should use number -1.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 1 'ipnfw' 'ipnadminep'
# Add endpoints.
# Establish endpoints ipn:2.0 ipn:2.1 and ipn:2.2 on the local node.
# ipn:2.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn 2.0 x
a endpoint ipn 2.1 x
a endpoint ipn 2.2 x
# Add a protocol.
# Add the protocol named ltp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, udp on ethernet) for payload, and 100 bytes for overhead.
a protocol ltp 1400 100
# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100
# Add an induct. (listen)
# Add an induct to accept bundles using the ltp protocol.
# The duct's name is 2 (this is for future changing/deletion of the
# induct).
# The induct itself is implemented by the 'ltpcli' command.
a induct ltp 2 ltpcli
# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.2:4556 tcpcli
# Add an outduct. (send to yourself)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo
# Add an outduct. (send to host3)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.3 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.3:4556 tcpclo
# Add an outduct. (send to host1)
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# outduct). The name should correpsond to a span (in your ltprc).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 1 ltpclo
# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin
## begin ipnadmin
# ipnrc configuration file for host2 in a 3node ltp/tcp test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host2.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008
# Add services
# Add service 0 (i.e. ipn:2.0) called 'admin.'
# Add service 1 (ipn:2.1) called 'test1.'
# Add service 2 (ipn:2.2) called 'test2.'
# See your bprc file for endpoint IDs you should use.
a service 0 admin
a service 1 test1
a service 2 test2
# Add an egress plan. (to yourself)
# Bundles to be transmitted to element number 2 (that is, yourself).
# This element is named 'host2.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 host2 x tcp/10.1.1.2:4556
# Add an egress plan. (to host3)
# Bundles to be transmitted to element number 3 (the other node).
# This element is named 'host3.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.3:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 3 host3 x tcp/10.1.1.3:4556
# Add an egress plan. (to host1)
# Bundles to be transmitted to element number 1.
# This element is named 'host1.'
# The plan is to queue for transmission (x) on protocol 'ltp' using
# the outduct identified as '1.'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 host1 x ltp/1
## end ipnadmin
host3.rc:
## File created by ../../ionscript
## Wed Oct 29 17:33:43 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host3.rc"
## begin ionadmin
# ionrc configuration file for host3 in a 3node tcp/ltp test.
# This uses ltp from 1 to 2 and ltp from 2 to 3.
# command: % ionadmin host3.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Set this node to be node 3 (as in ipn:3).
# Use default sdr configuration (empty configuration file name "").
1 3 ""
# start ion node
s
# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000
# Add more contacts.
# The network goes 1--2--3
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
a contact +1 +3600 2 3 100000
a contact +1 +3600 3 2 100000
a contact +1 +3600 3 3 100000
# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1
# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 1 2 1
a range +1 +3600 1 3 2
a range +1 +3600 2 2 1
a range +1 +3600 2 3 1
a range +1 +3600 3 3 1
# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin
## begin bpadmin
# bprc configuration file for host3 in a 3node ltp/tcp test.
# Command: % bpadmin host3.bprc
# This command should be run AFTER ionadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008
# Initialization command (command 1).
# Use ipn:3.0 as the custodian endpoint of this node.
# That is, scheme IPN with element_number 3 and service number 0
# (ipn requires custodian service is zero).
# Note that this EID must be understood by the node itself, so be sure
# to add the scheme below.
1 ipn:3.0
# Add an EID scheme.
# The scheme's name is ipn.
# The scheme's number is 1. Note that this number is defined for
# Compressed Bundle Header Encoding (CBHE) schemes ONLY. All other
# schemes (dtn for example) should use number -1.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 1 'ipnfw' 'ipnadminep'
# Add endpoints.
# Establish endpoints ipn:3.0 ipn:3.1 and ipn:3.2 on the local node.
# ipn:3.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn 3.0 x
a endpoint ipn 3.1 x
a endpoint ipn 3.2 x
# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100
# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.3:4556 tcpcli
# Add an outduct. (send to yourself)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.3 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.3:4556 tcpclo
# Add an outduct. (send to host2)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo
# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin
## begin ipnadmin
# ipnrc configuration file for host3 in a 3node ltp/tcp test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host3.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008
# Add services
# Add service 0 (i.e. ipn:3.0) called 'admin.'
# Add service 1 (ipn:3.1) called 'test1.'
# Add service 2 (ipn:3.2) called 'test2.'
# See your bprc file for endpoint IDs you should use.
a service 0 admin
a service 1 test1
a service 2 test2
# Add an egress plan. (to yourself)
# Bundles to be transmitted to element number 3 (that is, yourself).
# This element is named 'host3.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.3:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 3 host3 x tcp/10.1.1.3:4556
# Add an egress plan. (to host2)
# Bundles to be transmitted to element number 2 (the other node).
# This element is named 'host2.'
# The plan is to queue for transmission (x) on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 host2 x tcp/10.1.1.2:4556
# Add a group static route.
# Host1 is not a neigbor to host3, but is is a neighbor to host 2;
# send bundles for 1 via 2.
a group 1 1 2
## end ipnadmin
For bug support, we ask for the following:
If you'd like to submit a bug report, please create an Issue on our bug tracking system
The following mailing lists exist for ION support:
You can sign up for these lists here:
This documentation was ported from the original HTML by Ilya Kogan on 2008-08-12.
The original document was createdLaTeXand translated into HTML using the LaTeX2HTML translator Version 2002-2-1 (1.71)
Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -local_icons tutorial.tex
The translation was initiated by dave on 2008-11-01