/usr/share/ion/configs/loopback-ltp/loopback.rc is in ion-doc 3.2.0~dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | ## 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, July 2009
# 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 0 seconds to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 0
# 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, July 2009
#
# A warning: the ltp configuration is not ideal in this case.
# please consult manual pages and other documentation for a
# better description.
# 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 total LTP memory space usage limit as the sum of the memory
# space usage of all spans (more or less the number of bytes in transit
# on all links for their duration).
1 128 262144
# Add a span. (a connection)
# Identify the span as engine number 1. That is the ipn node number
# of the node on the other end of this span.
# Use 128 as the maximum number of export sessions.
# Use 1024 as the maximum size of an export block. This more or less
# limits the maximum size of a bundle in the system.
# The next two items are the maximum number of import sessions and the
# maximum size of an imported block. Since this is loopback, we just
# copy the export numbers here.
# 1024 is the maximum segment size- more or less, the amount of data
# that can be held in a single frame of the underlying protocol. In
# this case, UDP packets are the frame, and we will give a conservative
# limit.
# Limit the aggregation size to 1024 bytes, and set a time limit on
# aggregation to 1 second.
# 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 128 1024 128 1024 1024 1024 1 '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 0.0.0.0: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).
1
# Add an EID scheme.
# The scheme's name is ipn.
# 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 'ipnfw' 'ipnadminep'
# Add endpoints.
# Establish endpoints ipn:1.1 and ipn:1.2 on the local node.
# 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).
# Note that the custodian endpoint ipn:1.0 is automatically generated.
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 the daemons
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 an egress plan.
# Bundles to be transmitted to element number 1 (that is, yourself).
# 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 ltp/1
## end ipnadmin
|