23
undo tcp keepalive
Default
Keepalive packets are sent every 2 seconds. The router tears down the TCP connection to the POS
application template if no reply is received during three sending intervals.
Views
POS application template view
Predefined user roles
network-admin
Parameters
interval
time
: Specifies the keepalive interval in the range of 1 to 7200 seconds.
count
counts
: Specifies the keepalive number in the range of 2 to 100.
Usage guidelines
The configuration takes effect immediately.
The timeout time of a TCP connection is the keepalive interval multiplied by the keepalive number. If no
reply is received before the timeout timer expires, the router tears down the TCP connection.
Examples
# Configure TCP-based POS application template 1. Configure the keepalive interval as 100 seconds
and the keepalive number as 4.
<Sysname> system-view
[Sysname] posa app 1 type tcp
[Sysname-posa-app1] tcp keepalive interval 100 count 4
tcp linking-time
Use
tcp linking-time
to configure the timeout time for the TCP connection request to the FEP. The timeout
time is the maximum time that the POS application template can stay in TCP linking state.
Use
undo tcp linking-time
to restore the default.
Syntax
tcp linking-time
time
undo tcp linking-time
Default
The maximum TCP linking time is 20 seconds.
Views
POS application template view
Predefined user roles
network-admin
Parameters
time
: Specifies the maximum TCP linking time in the range of 1 to 20 in seconds.