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

端口拥塞如何解决

2021-02-02提问
  • 0关注
  • 1收藏,1802浏览
粉丝:0人 关注:0人

问题描述:

端口拥塞如何解决

组网及组网描述:


2 个回答
粉丝:38人 关注:3人

出现这种情况可以考虑更换高性能设备

拥塞避免与队列调度典型配置举例

3.1  组网需求

图1所示,Device通过端口HGE3/0/1与网关相连,来自Internet的业务有语音、视频、数据经由网关和Device到达用户。其中:

·            语音业务通过VLAN 6发送,携带的802.1p优先级分别为6;

·            其中视频业务通过VLAN 4发送,携带的802.1p优先级分别为4;

·            其中数据业务通过VLAN 2发送,携带的802.1p优先级分别为2;

由于Device入端口HGE3/0/1的速率大于出端口XGE1/0/1和XGE1/0/2的速率,在这两个出端口处可能会发生拥塞。为了减轻网络拥塞造成的影响,保证用户对于高优先级、低延迟业务的服务要求,配置需求如下:

·            当网络发生拥塞时,三种业务(语音业务:视频业务:数据业务)之间按照调度比重1:2:2的权重进行调度。

·            当发生严重拥塞时,要求采用随机丢弃的策略,防止出现TCP全局同步现象。

图1 配置组网图

 

3.2  配置思路

·            本例中三种业务均采用了802.1p优先级,为了将三种业务流量入不同的队列,可以配置Device的入端口HGE3/0/1信任报文的802.1p优先级,将不同的业务流量指定至对应的队列中。

·            当发生拥塞时,若要实现三种业务按照1:2:2的权重比例进行调度,可以将三种业务规划到同一WRR优先组的三个队列中,并配置这三个队列的调度权重比为1:2:2。

·            由于组网中存在不同类型的流量,因此需要根据不同流量的特点,制定不同的丢弃策略。根据随机丢弃数据对于各类数据的影响程度,丢弃概率由大到小的排列为:语音、视频、数据。本例中以表1中列出的丢弃数据为例,配置WRED功能。

表1 拥塞避免参数

业务类型

颜色

阈值下限

阈值上限

丢弃概率

语音

1000

1500

3%

500

1000

30%

视频

1000

1500

2%

500

1000

20%

数据

1000

1500

1%

500

1000

10%

 

3.3  使用版本

本举例是在R6301版本上进行配置和验证的。

3.4  配置步骤

3.4.1  Device的配置

(1)       配置Device上允许不同业务对应的VLAN报文通过

# 创建三种业务所需的VLAN。

<Device> system-view

[Device] vlan 2

[Device-vlan2] quit

[Device] vlan 4

[Device-vlan4] quit

[Device] vlan 6

[Device-vlan6] quit

# 配置各端口加入对应的VLAN。

[Device] interface hundredgige 3/0/1

[Device-HundredGigE3/0/1] port link-type trunk

[Device-HundredGigE3/0/1] port trunk permit vlan 2 4 6

[Device-HundredGigE3/0/1] quit

[Device] interface fortygige 3/0/3

[Device-FortyGigE3/0/3] port link-type trunk

[Device-FortyGigE3/0/3] port trunk permit vlan 2 4 6

[Device-FortyGigE3/0/3] quit

[Device] interface fortygige 3/0/4

[Device-FortyGigE3/0/4] port link-type trunk

[Device-FortyGigE3/0/4] port trunk permit vlan 2 4 6

[Device-FortyGigE3/0/4] quit

(2)       配置业务流量的入端口上配置信任报文的802.1p优先级

[Device] interface hundredgige 3/0/1

[Device-HundredGigE3/0/1] qos trust dot1p

[Device-HundredGigE3/0/1] quit

(3)       配置WRR队列

# 查看802.1p优先级到本地优先级映射表,确定各个业务对应的本地优先级。

[Device] display qos map-table dot1p-lp

MAP-TABLE NAME: dot1p-lp   TYPE: pre-define

IMPORT  :  EXPORT

   0    :    2

   1    :    0

   2    :    1

   3    :    3

   4    :    4

   5    :    5

   6    :    6

   7    :    7

# 在业务流量的出端口FortyGigE3/0/3上使能WRR队列。

[Device] interface fortygige 3/0/3

[Device-FortyGigE3/0/3] qos wrr weight

# 配置WRR队列,实现数据、视频和语音三个队列之间的调度权重比为2:2:1。

[Device-FortyGigE3/0/3] qos wrr 1 group 1 weight 2

[Device-FortyGigE3/0/3] qos wrr 4 group 1 weight 2

[Device-FortyGigE3/0/3] qos wrr 6 group 1 weight 1

[Device-FortyGigE3/0/3] quit

# 在业务流量的出端口FortyGigE3/0/4上使能WRR队列。

[Device] interface fortygige 3/0/4

[Device-FortyGigE3/0/4] qos wrr weight

# 配置WRR队列,实现数据、视频和语音三个队列之间的调度权重比为2:2:1。

[Device-FortyGigE3/0/4] qos wrr 1 group 1 weight 2

[Device-FortyGigE3/0/4] qos wrr 4 group 1 weight 2

[Device-FortyGigE3/0/4] qos wrr 6 group 1 weight 1

[Device-FortyGigE3/0/4] quit

(4)       配置拥塞避免

# 创建WRED表。

[Device] qos wred queue table droppolicy

[Device-wred-table-droppolicy] queue 6 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 3

[Device-wred-table-droppolicy] queue 6 drop-level 2 low-limit 500 high-limit 1000 discard-probability 30

[Device-wred-table-droppolicy] queue 4 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 2

[Device-wred-table-droppolicy] queue 4 drop-level 2 low-limit 500 high-limit 1000 discard-probability 20

[Device-wred-table-droppolicy] queue 1 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 1

[Device-wred-table-droppolicy] queue 1 drop-level 2 low-limit 500 high-limit 1000 discard-probability 10

[Device-wred-table-droppolicy] quit

# 在业务流量的出端口FortyGigE3/0/3和FortyGigE3/0/4上应用WRED表。

[Device] interface fortygige 3/0/3

[Device-FortyGigE3/0/3] qos wred apply droppolicy

[Device-FortyGigE3/0/3] quit

[Device] interface fortygige 3/0/4

[Device-FortyGigE3/0/4] qos wred apply droppolicy

[Device-FortyGigE3/0/4] quit

3.5  验证配置

# 查看业务流量出端口上WRR队列调度的配置情况。(此处仅列出FortyGigE3/0/3和FortyGigE3/0/4端口的配置)

[Device] display qos queue wrr interface

Interface: FortyGigE3/0/3

Output queue: Weighted Round Robin queuing

Queue ID     Queue name     Group     Weight

---------------------------------------------------

0            be             1         1

1            af1            1         2

2            af2            1         3

3            af3            1         4

4            af4            1         2

5            ef             1         9

6            cs6            1         1

7            cs7            1         15

Interface: FortyGigE3/0/4

Output queue: Weighted Round Robin queuing

Queue ID     Queue name     Group     Weight

---------------------------------------------------

0            be             1         1

1            af1            1         2

2            af2            1         3

3            af3            1         4

4            af4            1         2

5            ef             1         9

6            cs6            1         1

7            cs7            1         15

# 查看业务流量出端口上的WRED策略的配置信息和运行情况。

[Device] display qos wred table

Table name: droppolicy

Table type: Queue based WRED

QID   gmin  gmax  gprob  ymin  ymax  yprob  rmin  rmax  rprob  exponent  ECN

----------------------------------------------------------------------------

0     100   1000  10     100   1000  10     100   1000  10     9         N

1     100   1000  10     1000  1500  1      500   1000  10     9         N

2     100   1000  10     100   1000  10     100   1000  10     9         N

3     100   1000  10     100   1000  10     100   1000  10     9         N

4     100   1000  10     1000  1500  2      500   1000  20     9         N

5     100   1000  10     100   1000  10     100   1000  10     9         N

6     100   1000  10     1000  1500  3      500   1000  30     9         N

7     100   1000  10     100   1000  10     100   1000  10     9         N

3.6  配置文件

#

vlan 1

#

vlan 2

#

vlan 4

#

vlan 6

#

qos wred queue table droppolicy

 queue 1 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 1

 queue 1 drop-level 2 low-limit 500 high-limit 1000 discard-probability 10

 queue 4 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 2

 queue 4 drop-level 2 low-limit 500 high-limit 1000 discard-probability 20

 queue 6 drop-level 1 low-limit 1000 high-limit 1500 discard-probability 3

 queue 6 drop-level 2 low-limit 500 high-limit 1000 discard-probability 30

#

interface FortyGigE3/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 to 2 4 6

 qos wrr weight

 qos wrr af1 group 1 weight 2

 qos wrr af4 group 1 weight 2

 qos wrr cs6 group 1 weight 1

 qos wred apply droppolicy

#

interface FortyGigE3/0/4

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 to 2 4 6

 qos wrr weight

 qos wrr af1 group 1 weight 2

 qos wrr af4 group 1 weight 2

 qos wrr cs6 group 1 weight 1

 qos wred apply droppolicy

#

interface HundredGigE3/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 1 to 2 4 6

#

return


有相关网站链接吗

zhiliao_BwKlRk 发表时间:2021-02-02

http://www.h3c.com/cn/d_202002/1273737_30005_0.htm 68交换机的这是

zhiiiiao_N7L84 发表时间:2021-02-02
粉丝:3人 关注:0人

建议从以下几个方面排查

1、网络中是否有大量真实有用数据,排除是否中网络攻击,(如ARP攻击)

2、排查交换机端口故障,性能瓶颈(CPU和内存峰值),排查交换机本身问题。

3、如已经做过以上2点,建议更换更高性能的交换机和路由器。

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

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

确定

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

注册后可访问此模块

跳转hclhub

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

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

对根叔社区有害的内容

×

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

不规范转载

×

举报说明