HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Services Conf - Page 81

Configuring ICMP to send error packets, Advantages of sending ICMP error packets

Page 81 highlights

received, the system restarts the timer upon receiving the last non-FIN packet. The connection is broken after the timer expires. The actual length of the finwait timer is determined by the following formula: Actual length of the finwait timer = (Configured length of the finwait timer - 75) + configured length of the synwait timer To configure TCP timers: Step 1. Enter system view. Command system-view 2. Configure the TCP synwait timer. tcp timer syn-timeout time-value 3. Configure the TCP finwait timer. tcp timer fin-timeout time-value Remarks N/A Optional. 75 seconds by default. Optional. 675 seconds by default. Configuring ICMP to send error packets Sending error packets is a major function of ICMP. In case of network abnormalities, error packets are usually sent by the network or transport layer protocols to notify corresponding devices so as to facilitate control and management. Advantages of sending ICMP error packets ICMP error packets include the following types: • ICMP redirect packets A host may have only a default route to the default gateway in its routing table after startup. If the following conditions are satisfied, the default gateway will send ICMP redirect packets to the source host, telling it to reselect a correct next hop to send the subsequent packets: { The receiving and forwarding interfaces are the same. { The selected route has not been created or modified by an ICMP redirect packet. { The selected route is not the default route of the device. { There is no source route option in the packet. The ICMP redirect packets function simplifies host administration and enables a host to gradually establish a sound routing table to find the best route. • ICMP timeout packets If the device receives an IP packet with a timeout error, it drops the packet and sends an ICMP timeout packet to the source. The device sends an ICMP timeout packet under the following conditions: { If the device finds that the destination of a packet is not itself and the TTL field of the packet is 1, it will send a "TTL timeout" ICMP error message. { When the device receives the first fragment of an IP datagram whose destination is the device itself, it starts a timer. If the timer times out before all the fragments of the datagram are received, the device will send a "reassembly timeout" ICMP error packet. • ICMP destination unreachable packets 73

  • 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

73
received, the system restarts the timer upon receiving the last non-FIN packet. The connection is
broken after the timer expires.
The actual length of the finwait timer is determined by the following formula:
Actual length of the finwait timer = (Configured length of the finwait timer – 75) + configured
length of the synwait timer
To configure TCP timers:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the TCP synwait timer.
tcp timer syn-timeout
time-value
Optional.
75 seconds by default.
3.
Configure the TCP finwait timer.
tcp timer fin-timeout
time-value
Optional.
675 seconds by default.
Configuring ICMP to send error packets
Sending error packets is a major function of ICMP. In case of network abnormalities, error packets are
usually sent by the network or transport layer protocols to notify corresponding devices so as to facilitate
control and management.
Advantages of sending ICMP error packets
ICMP error packets include the following types:
ICMP redirect packets
A host may have only a default route to the default gateway in its routing table after startup. If the
following conditions are satisfied, the default gateway will send ICMP redirect packets to the
source host, telling it to reselect a correct next hop to send the subsequent packets:
{
The receiving and forwarding interfaces are the same.
{
The selected route has not been created or modified by an ICMP redirect packet.
{
The selected route is not the default route of the device.
{
There is no source route option in the packet.
The ICMP redirect packets function simplifies host administration and enables a host to gradually
establish a sound routing table to find the best route.
ICMP timeout packets
If the device receives an IP packet with a timeout error, it drops the packet and sends an ICMP
timeout packet to the source.
The device sends an ICMP timeout packet under the following conditions:
{
If the device finds that the destination of a packet is not itself and the TTL field of the packet is
1, it will send a "TTL timeout" ICMP error message.
{
When the device receives the first fragment of an IP datagram whose destination is the device
itself, it starts a timer. If the timer times out before all the fragments of the datagram are received,
the device will send a "reassembly timeout" ICMP error packet.
ICMP destination unreachable packets