• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

巧用流量统计判断网络丢包位置的配置举例

  • 0关注
  • 4收藏 2743浏览
粉丝: 关注:

巧用流量统计判断网络丢包位置的配置举例

一、组网图:

某局点组网由有线核心交换机、无线核心交换机、汇聚交换机、ACAP组成,设备之间的物理端口连接如图。IP地址情况:AC10.62.160.3AP10.62.161.41,无线终端为122.207.16.229,在无线终端上ping www.baidu.comDNS解析百度服务器IP地址为61.135.169.125ACAP之间为集中转发。

二、举例一:定位ACAP发送的Discovery Response报文的丢包位置

1.流量统计前的定位简介

现网发现AP10.62.161.41)不能正常注册在AC10.62.160.3)上,APAC上同时开启debugging wlan lwapp all显示:APAC发送了Discovery Request报文,AC收到了AP发送的Discovery Request报文并向AP发送了Discovery Response报文,但AP未收到AC发送的Discovery Response的报文。需要定位ACAP发送的Discovery Response报文的丢包位置。

APdebugging wlan lwapp all信息显示:

*Feb 19 16:04:17:349 2014 wyl-3f-3 LWPC/7/Pkt_Send: 

 Sent Discovery Request to 10.62.160.3 (Length: 171)

*Feb 19 16:04:34:349 2014 wyl-3f-3 LWPC/7/Pkt_Send: 

 Sent Discovery Request to 10.62.160.3 (Length: 171)

*Feb 19 16:04:48:349 2014 wyl-3f-3 LWPC/7/Pkt_Send: 

 Sent Discovery Request to 10.62.160.3 (Length: 171)

ACdebugging wlan lwapp all信息显示:

*Feb 19 16:04:44:117 2014 AC2-Backup LWPS/7/Pkt_Rcvd: 

 Received Discovery Request from 10.62.161.41 (Length: 171)(to 10.62.160.3)

*Feb 19 16:04:44:119 2014 AC2-Backup LWPS/7/Pkt_Send: 

 Sent Discovery Response to 10.62.161.41 (Length: 61)(from 10.62.160.3)

*Feb 19 16:05:15:119 2014 AC2-Backup LWPS/7/Pkt_Rcvd: 

 Received Discovery Request from 10.62.161.41 (Length: 171)(to 10.62.160.3)

*Feb 19 16:05:15:121 2014 AC2-Backup LWPS/7/Pkt_Send: 

 Sent Discovery Response to 10.62.161.41 (Length: 61)(from 10.62.160.3)

*Feb 19 16:05:43:621 2014 AC2-Backup LWPS/7/Pkt_Rcvd: 

 Received Discovery Request from 10.62.161.41 (Length: 171)(to 10.62.160.3)

*Feb 19 16:05:43:623 2014 AC2-Backup LWPS/7/Pkt_Send: 

 Sent Discovery Response to 10.62.161.41 (Length: 61)(from 10.62.160.3)

2.流量统计

AC上流量统计配置:

#

acl number 3001  //创建ACL 3001,匹配源IP地址为10.62.160.3AC)、目的IP地址为10.62.161.41AP)的报文。

 rule 0 permit ip source 10.62.160.3 0 destination 10.62.161.41 0

#

traffic classifier 1 operator and  //创建类1,匹配规则ACL 3001

 if-match acl 3001

#

traffic behavior 1  //创建流行为1,流行为为过滤动作允许。AC由于硬件芯片原因暂时不支持流量统计,通过过滤动作允许进行统计。

 filter permit

#

qos policy 1  //创建策略1,指定类1采用流行为1

 classifier 1 behavior 1

#

interface Ten-GigabitEthernet1/0/1  //接口上应用QoS策略1,并指定应用方向。

 qos apply policy 1 outbound

#

interface Ten-GigabitEthernet1/0/2

 qos apply policy 1 outbound

无线核心交换机上流量统计配置:

#

acl number 3001

 rule 0 permit ip source 10.62.160.3 0 destination 10.62.161.41 0

#

traffic classifier 1 operator and

 if-match acl 3001

#

traffic behavior 1  //创建流行为1,流行为为基于包为单位对报文进行统计。

 accounting

#

qos policy 1

 classifier 1 behavior 1

#

interface Ten-GigabitEthernet1/0/0/1

 qos apply policy 1 inbound

#

interface Ten-GigabitEthernet1/0/0/2

qos apply policy 1 inbound

#

interface Ten-GigabitEthernet1/7/0/1

 qos apply policy 1 outbound

#

interface Ten-GigabitEthernet2/7/0/1

 qos apply policy 1 outbound

AC上流量统计结果显示:

display qos policy interface

 

  Interface: Ten-GigabitEthernet1/0/1

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Matched : 0(Packets) 0(Bytes)

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Filter Enable: permit

 

  Interface: Ten-GigabitEthernet1/0/2

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Matched : 31(Packets) 3600(Bytes)

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Filter Enable: permit

无线核心交换机上流量统计显示:

display qos policy interface

 

  Interface: Ten-GigabitEthernet1/7/0/1

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        0 (Packets)

 

  Interface: Ten-GigabitEthernet1/0/0/1

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        0 (Packets)

               

  Interface: Ten-GigabitEthernet1/0/0/2

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        31 (Packets)

 

  Interface: Ten-GigabitEthernet2/7/0/1

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        0 (Packets)

备注:

通过用户视图下的reset counters interface命令清空流量统计信息。

结论:

AC向无线核心交换机发送了31个报文,无线核心交换机从AC收到了31个报文,但无线核心交换机未向AP连接的汇聚交换机发送报文,即ACAP发送的Discovery Response报文丢在了无线核心交换机上。

三、举例二:定位无线终端访问百度网页时,百度服务器向无线终端发送报文的丢包位置

1.流量统计前的定位简介

现网发现某无线终端(122.207.16.229)无法访问网页(以百度网页为例),另外一个关联同AP的无线终端ping www.baidu.com可以ping通,DNS解析百度服务器IP地址为61.135.169.125。在无线终端所关联AP的有线口抓包(AP上联的接入交换机上做本地镜像),过滤无线终端与百度服务器之间的交互报文( ip.src == 122.207.16.229 && ip.dst == 61.135.169.125 ) || (  ip.src == 61.135.169.125 && ip.dst == 122.207.16.229 ),发现无线终端向百度服务器发送的TCP连接未得到回应,需定位百度服务器向无线终端发送报文的丢包位置。

无线终端与百度服务器之间的报文交互:

2.流量统计

AC上流量统计配置:

#

acl number 3001  //创建ACL 3001,匹配无线终端(122.207.16.229)与百度服务器TCP 80端口之间的报文。

 rule 1 permit tcp source 61.135.169.125 0 source-port eq www destination 122.207.16.229 0

 rule 2 permit tcp source 122.207.16.229 0 destination 61.135.169.125 0 destination-port eq www

#

traffic classifier 1 operator and

 if-match acl 3001

#

traffic behavior 1

 filter permit

#

qos policy 1

 classifier 1 behavior 1

#

interface Ten-GigabitEthernet1/0/1

 qos apply policy 1 inbound

 qos apply policy 1 outbound

#

interface Ten-GigabitEthernet1/0/2

 qos apply policy 1 inbound

 qos apply policy 1 outbound

无线核心交换机上流量统计配置:

#

acl number 3001

 rule 1 permit tcp source 61.135.169.125 0 source-port eq www destination 122.207.16.229 0

 rule 2 permit tcp source 122.207.16.229 0 destination 61.135.169.125 0 destination-port eq www

#

traffic classifier 1 operator and

 if-match acl 3001

#

traffic behavior 1

 filter permit

#

qos policy 1

 classifier 1 behavior 1

#

interface Ten-GigabitEthernet1/0/0/1

 qos apply policy 1 inbound

 qos apply policy 1 outbound

#

interface Ten-GigabitEthernet1/0/0/2

  qos apply policy 1 inbound

  qos apply policy 1 outbound

#

interface Ten-GigabitEthernet1/7/0/14

 qos apply policy 1 inbound

 qos apply policy 1 outbound

#

interface Ten-GigabitEthernet2/7/0/14

 qos apply policy 1 inbound

 qos apply policy 1 outbound

AC上流量统计结果显示:

dis qos policy interface

 

  Interface: Ten-GigabitEthernet1/0/1

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Matched : 38(Packets) 4300(Bytes)

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Filter Enable: permit

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Matched : 66(Packets) 7800(Bytes)

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Filter Enable: permit

 

  Interface: Ten-GigabitEthernet1/0/2

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Matched : 0(Packets) 0(Bytes)

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Filter Enable: permit

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Matched : 0(Packets) 0(Bytes)

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Filter Enable: permit

无线核心交换机上流量统计显示:

display qos policy interface

  Interface: Ten-GigabitEthernet1/0/0/1

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        66 (Packets)

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        38 (Packets)

 

  Interface: Ten-GigabitEthernet1/0/0/2

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        0 (Packets)

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        0 (Packets)

 

  Interface: Ten-GigabitEthernet1/7/0/14

               

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        85 (Packets)

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        66 (Packets)

 

  Interface: Ten-GigabitEthernet2/7/0/14

 

  Direction: Inbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        0 (Packets)

 

  Direction: Outbound

 

  Policy: 1

   Classifier: 1

     Operator: AND

     Rule(s) : If-match acl 3001

     Behavior: 1

      Accounting Enable:

        0 (Packets)

结论:

AC向无线核心交换机发送了66个报文,无线核心交换机从AC收到了66个报文,无线核心交换机向有线核心交换机发送了66个报文,有线核心交换机向无线核心交换机返回了85个报文,但无线核心交换机只向AC发送了38个报文,即百度服务器向无线终端发送的报文的丢在了无线核心交换机上。

 

若您有关于案例的建议,请反馈:

作者在2019-06-12对此案例进行了修订
0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作