forked from VrayoSystems/vtrunkd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtrunkd.8
183 lines (181 loc) · 4.5 KB
/
vtrunkd.8
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
.\" Manual page for vtrunkd
.\" vtrunkd.8,v 1.4.2.3.2.2 2011/05/08 04:03:59 realgrandrew
.\" SH section heading
.\" SS subsection heading
.\" LP paragraph
.\" IP indented paragraph
.\" TP hanging label
.TH VTRUNKD 8
.SH NAME
vtrunkd \- Virtual Tunnel Trunking (Aggregation, Bonding) daemon.
.SH SYNOPSIS
.B vtrunkd
<
.I -s
>
[
.I -i
]
[
.I -n
]
[
.I -f file
]
[
.I -S SHM_ID
]
[
.I -P port
]
.LP
.B vtrunkd
[
.I -f file
]
[
.I -S SHM_ID
]
[
.I -P port
]
[
.I -p
]
[
.I -m
]
[
.I -t timeout
]
[
.I -n
]
<
.I session
>
<
.I server address
>
.SH DESCRIPTION
.LP
vtrunkd provides the method for creating Virtual Tunnels over IP networks
and allows to bond available bandwidth in created virtual tunnels. It
includes network congestion avoidance algorithms and aggressive failover and
is suitable even for highly-unstable uplinks aggregation e.g. for fast-moving
mobile.
.LP
Supported type of tunnels is: IP packet based.
.LP
vtrunkd is easily and highly configurable, it can be used for various network
task like VPN, Mobile IP, IP address saving, etc.
.LP
It is completely user space implementation and does not require modification
to any kernel parts.
.LP
The dynamic aggregation algorithm invented and implemented by Andrew Gryaznov
has over 20 tunable input parameters but comes with good defaults. Please
refer to algorithm manual for fine-tuning the aggregation to your needs, like
preferencing lower latency and failover over higher bandwidth, or vice versa.
Algorithm manual can be found on the online wiki on project web homepage.
Please note that vtrunkd is in a state of active development and everything
listed here is subject to change.
.LP
Some setups may require advanced knowledge in TCP/IP networking and linux
network stack, advanced tools like iproute2 and iptables. Please see the
examples given in the project wiki.
.LP
Please note that client mode vtrunkd does not free up SHM upon exit. You
should do it manually by calling \fBipcrm -M 567888\fR or the SHM_ID you used.
.LP
Also note that server-mode vtrunkd allocates all memory required to hold
\fBmax_tunnels_num\fR connections at start. This may be more than your system
is configured to allow by default. You may change the SHM size defaults at
\fB/proc/sys/kernel/shmmax\fR and \fB/proc/sys/kernel/shmall\fR.
.LP
In order to mix server/client modes and run several servers on single host
you must provide different SHM_ID and server ports for each instance group
and/or bind (-L) to different IP addresses explicitly.
.SH OPTIONS
.TP
.I -f file
Read config information from the
.I file
(full path required). By default vtrunkd uses /etc/vtrunkd.conf
.TP
.I -n
Do not become daemon.
.SS Server mode:
.TP
.I -s
Run as the server.
.TP
.I -i
Run as the inetd server.
.TP
.I -P port
Listen for connection on the specified
.I port
By default vtrunkd listens on TCP port 5000. This options is equivalent to
the 'port' option of config file.
.SS Client mode:
.TP
.I -P port
Connect to the server on the specified
.I port
By default vtrunkd connects to TCP port 5000. This options is equivalent to
the 'port' option of config file.
.TP
.I -p
Reconnect to the server after connection termination. By default vtrunkd will
exit if connection has been terminated. This options is equivalent to
the 'persist' option of config file.
.TP
.I -m
Force memory pages to be locked memory-resident to prevent potential VM deadlock. Useful with NFS traffic. This option has no config file equivalent.
.TP
.I -t timeout
Connect
.I timeout
Default is 30 seconds. This options is equivalent to the 'timeout' option of
config file.
.TP
.I session
Session name from the config file.
.TP
.I server
Address of the server to connect to. Either IP address or domain name can be
specified.
.SH FILES
.TP
.B /etc/vtrunkd.conf
Main configuration file with sessions and other information.
See vtrunkd.conf example provided with distribution and vtrunkd.conf(5)
for more information.
.TP
.B /var/lock/vtrunkd/
Session lock files.
.TP
.B /var/log/vtrunkd/
Connection statistic log files.
.br
Format:
Date Uncomp_In Uncomp_Out Comp_In Comp_Out
.SH SIGNALS
.TP
.B SIGHUP
Server mode: Causes vtrunkd to reread the config file.
.br
Client mode: Causes vtrunkd to reestablish the connection.
.TP
.B SIGUSR1
This signal causes vtrunkd to reset statistic counters.
.SH SEE ALSO
.TP
vtrunkd.conf(5)
.SH NOTES
.LP
This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit. (http://www.openssl.org/)
.SH AUTHORS
Vrayo Systems (http://vrayo.com/), Maxim Krasnyansky <[email protected]>