forked from nasa/SDN-HDTN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
node2_config.rc
89 lines (70 loc) · 2.42 KB
/
node2_config.rc
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
## begin ionadmin
# Initialization command (command 1).
# Set this node to be node 1 (as in ipn:1).
# 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 2 2 100000
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 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 2 2 1
a range +1 +3600 1 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
# Disable congestion forecasting
m horizon +0
## end ionadmin
## begin bpadmin
# Initialization command (command 1).
1
# 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 '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).
a endpoint ipn:2.1 q
a endpoint ipn:2.2 q
a endpoint ipn:2.3 q
# Add a protocol.
a protocol udp 1400 100
# Add an induct. (listen)
a induct udp 10.10.10.100:4556 udpcli
# Add an outduct. (since one UDP socket can address any IP, use '*'
# for the destination address, then this clo can send to any udp cli)
a outduct udp 10.10.10.1:4556 'udpclo 1'
s
## end bpadmin
## begin ipnadmin
# 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 'udp' using
# the outduct identified as '127.0.0.1:4556'.
a plan 1 udp/10.10.10.1:4556
## end ipnadmin
## begin ionsecadmin
1
e 1
## end ionsecadmin