15
4.
Apply the template to the interface.
rta terminal
template-name terminal-number
Configuring the TCP RTC many-to-one relay
server (TCP_N1_Server)
About this task
The initiators are TCP_11_Clients, which are connected to monitoring devices. The receiver is a
relay server (TCP_N1_Server) which is not connected to any monitored device.
Procedure
1.
Enter system view.
system-view
2.
Enable relay forwarding.
rta relay enable
By default, relay forwarding is disabled.
3.
Configure a TCP listening port.
rta relay listen-port
port-number
By default, no TCP is configured.
4.
(Optional.) Set the send buffer size and receive buffer size for TCP connections.
rta relay tcp
{
recvbuf-size
recvbuff-size
|
sendbuf-size
sendbuff-size
}
By default, the send buffer size and the receive buffer size for TCP connections are 2048 bytes.
As a best practice, use the default values. An improper send buffer size or receive buffer size
affects data forwarding efficiency and might cause system overload.
5.
(Optional.) Configure the keepalive attributes for TCP connections between the relay server
and a client.
rta relay tcp keepalive
time count
By default, the keepalive interval is 50 seconds and the keepalive number is 3.
The TCP keepalive detection configuration takes effect immediately. Do not decrease the
keepalive interval if the keepalive number is 1. A shorter keepalive interval might cause the
device to disconnect all clients.
6.
(Optional.) Set the forward buffer size for each RTC client.
rta relay buffer-size
buffer-size
By default, the forward buffer size for an RTC client is 8 KB.
A larger forward buffer consumes more memory.
7.
(Optional.) Enable the TCP_NODELAY function.
rta relay tcp nodelay
By default, the TCP_NODELAY function is disabled.