首页 科技问答 IPsec隧道正常建立,IPsec业务丢包(ipsec隧道配置)

IPsec隧道正常建立,IPsec业务丢包(ipsec隧道配置)

科技问答 193
1688386331,

组网及说明


R1为我司MSR3610-X1,R2设备是其他厂商设备,通过公网地址建立IPsec隧道。

告警信息


Ipsec隧道正常建立后ping对端PC2地址,发现有丢包。

问题描述

IPsec正常建立,IPsec业务有丢包。

过程分析

查看IPsec 隧道丢包数没有增长

Ping

<H3C>display ipsec statistics

  IPsec packet statistics:

    Received/sent packets: 1645/158253

    Received/sent bytes: 126464/12945256

    Dropped packets (received/sent): 0/63598

 

    Dropped packets statistics

      No available SA: 63598

      Wrong SA: 0

      Invalid length: 0

      Authentication failure: 0

      Encapsulation failure: 0

      Decapsulation failure: 0

      Replayed packets: 0

      ACL check failure: 0

      MTU check failure: 0

      Loopback limit exceeded: 0

      Crypto speed limit exceeded: 0

Ping

<H3C>display ipsec statistics

  IPsec packet statistics:

    Received/sent packets: 1735/167518

    Received/sent bytes: 132224/13714416

    Dropped packets (received/sent): 0/63598

 

    Dropped packets statistics

      No available SA: 63598

      Wrong SA: 0

      Invalid length: 0

      Authentication failure: 0

      Encapsulation failure: 0

      Decapsulation failure: 0

      Replayed packets: 0

      ACL check failure: 0

      MTU check failure: 0

      Loopback limit exceeded: 0

      Crypto speed limit exceeded: 0

接口流量也未打满

Eth-channel3/0:0

Current state: UP

Line protocol state: UP

Last 300 seconds input rate: 2910.07 bytes/sec, 23280 bits/sec, 33.16 packets/sec

Last 300 seconds output rate: 4522.48 bytes/sec, 36179 bits/sec, 36.91 packets/sec

 

GigabitEthernet0/0

Current state: UP

Line protocol state: UP

Description: LAN-interface

Bandwidth: 1000000 kbps

Maximum transmission unit: 1500

Allow jumbo frames to pass

Last 300 second input: 10 packets/sec 1059 bytes/sec 0%

Last 300 second output: 7 packets/sec 904 bytes/sec 0%


设备信号也正常

Current RSSI: -44 dBm

Current RSRQ: -8 dB

Current RSRP: -76 dBm

Current SNR: 10 dB

Tx Power: -24 dBm


在路由器上做ipsec流统看下流量是否丢在路由器上

acl number 3333

 rule 0 permit icmp source X.X.X.X 0 destination Y.Y.Y.Y 0

rule 1 permit icmp source Y.Y.Y.Y 0 destination X.X.X.X 0

#

traffic classifier 1 operator and 

 if-match acl 3333

 

traffic behavior 1 

 filter permit

 

qos policy 1 

 classifier 1 behavior 1

 

IPsec policy XXX 10 isakmp

qos pre-classify  //QoS使用IPsec封装后报文的外层IP头信息来对报文进行分类

 

在内网接口和外网接口都应用

Interface G0/0

qos apply policy 1 outbound

qos apply policy 1 inbound

 

interface Eth-channel3/0:0

qos apply policy 1 outbound

qos apply policy 1 inbound

 

清除下设备接口计数

 reset counters interface

 

 

ping完后收集

display qos policy interface


[H3C]display qos policy interface

Interface: Eth-channel3/0:0

  Direction: Inbound

  Policy: 1

   Classifier: 1

     Matched : 104 (Packets) 7696 (Bytes)

     5-minute statistics:

      Forwarded: 0/191 (pps/bps)

      Dropped  : 0/0 (pps/bps)

     Operator: AND

     Rule(s) :

      If-match acl 3333

     Behavior: 1

      Filter enable: Permit

              

Interface: Eth-channel3/0:0

  Direction: Outbound

  Policy: 1

   Classifier: 1

     Matched : 147 (Packets) 18522 (Bytes)

     5-minute statistics:

      Forwarded: 0/460 (pps/bps)

      Dropped  : 0/0 (pps/bps)

     Operator: AND

     Rule(s) :

      If-match acl 3333

     Behavior: 1

      Filter enable: Permit

 

Interface: GigabitEthernet0/0

  Direction: Inbound

  Policy: 1

   Classifier: 1

     Matched : 147 (Packets) 10878 (Bytes)

     5-minute statistics:

      Forwarded: 0/260 (pps/bps)

      Dropped  : 0/0 (pps/bps)

     Operator: AND

     Rule(s) :

      If-match acl 3333

     Behavior: 1

      Filter enable: Permit

 

Interface: GigabitEthernet0/0

  Direction: Outbound

  Policy: 1

   Classifier: 1

     Matched : 104 (Packets) 7696 (Bytes)

     5-minute statistics:

      Forwarded: 0/179 (pps/bps)

      Dropped  : 0/0 (pps/bps)

     Operator: AND

     Rule(s) :

      If-match acl 3333

     Behavior: 1

      Filter enable: Permit

发现没有在路由器上丢包。

解决方法

排查对端设备链路后恢复正常。

内容来源:知了社区,基于知识共享署名-相同方式共享3.0中国大陆许可协议
CRM论坛(CRMbbs.com)——一个让用户更懂CRM的垂直性行业内容平台,CRM论坛致力于互联网、客户管理、销售管理、SCRM私域流量内容输出5年。 如果您有好的内容,欢迎向我们投稿,共建CRM多元化生态体系,创建CRM客户管理一体化生态解决方案。,IPsec隧道正常建立,IPsec业务丢包