WO2015154525A1 - Method and device for protecting hqos using multiple board cards - Google Patents

Method and device for protecting hqos using multiple board cards Download PDF

Info

Publication number
WO2015154525A1
WO2015154525A1 PCT/CN2014/094717 CN2014094717W WO2015154525A1 WO 2015154525 A1 WO2015154525 A1 WO 2015154525A1 CN 2014094717 W CN2014094717 W CN 2014094717W WO 2015154525 A1 WO2015154525 A1 WO 2015154525A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
hqos
voq
card
motherboard
Prior art date
Application number
PCT/CN2014/094717
Other languages
French (fr)
Chinese (zh)
Inventor
李青霖
毛沙
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015154525A1 publication Critical patent/WO2015154525A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2038Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant with a single idle spare processing component
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2002Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where interconnections or communication control functionality are redundant
    • G06F11/2005Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where interconnections or communication control functionality are redundant using redundant communication controllers

Definitions

  • the present invention relates to the field of network communications, and more particularly to a method and apparatus for protecting HQoS using a multi-board.
  • a traditional Ethernet aggregation layer device is usually equipped with a service processing board and multiple service interface cards. This has certain security problems. When the service card of the aggregation layer device fails, all services connected to it will be interrupted. At the same time, a single service processing board will cause the service to be interrupted when upgrading the aggregation device.
  • LAG Link Aggregation Group
  • HQoS Hierarchical Quality of Service
  • the backup board is switched to the standby board in a short time.
  • the backup board continues to provide the expected HQoS. This avoids the HQoS redeployment and may cause important service delays and congestion. This ensures the QoS (Quality of Service). Demand and stability of system QoS.
  • Embodiments of the present invention provide a method and apparatus for protecting HQoS by using a multi-board, aiming at solving the problem of important service delay and congestion caused by HQoS redeployment.
  • a method of protecting HQoS using a multi-board comprising the steps of:
  • the standby board is elected to the VOQ-ID of the faulty motherboard card.
  • the method before the step of encoding the VOQ-ID of each spare board by the motherboard card, the method further includes:
  • the step of selecting the VOQ-ID of the faulty motherboard card by using the standby board further includes:
  • An apparatus for protecting HQoS using a multi-board comprising:
  • the configuration information is sent to the module, and the HQoS configuration information is sent to all the boards for storage.
  • the encoding module is configured to encode the VOQ-ID for the spare board through the motherboard card;
  • the configuration module is configured to synchronize the encoded VOQ-ID and the HQoS configuration information to the standby board through the motherboard card, and complete the HQoS configuration of the board;
  • the fault detection module is configured to detect whether the motherboard card is faulty
  • the campaign module is configured to disconnect the faulty motherboard card when the motherboard card is faulty. After the switch is protected, the standby board is elected to the VOQ-ID of the faulty motherboard card.
  • the device further includes:
  • a character recognition module that is set to recognize the roles of the system board and the spare board in all boards.
  • the device further includes:
  • the re-upline module is set to detect whether the offline board is repaired, and when detecting the offline board repair, the repair board is brought back to the standby board.
  • Embodiments of the present invention also provide a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above method.
  • Embodiments of the present invention also provide a computer readable storage medium carrying the computer program.
  • the service processing boards when the user deletes the HQoS policy, the service processing boards respectively release the VOQ resources, and the processing is independent, and does not require any interaction.
  • FIG. 1 is a schematic structural diagram of a board, a service interface card, and a connector in an Ethernet aggregation layer device according to an embodiment of the present invention
  • FIG. 2 is a flow chart showing the steps of an embodiment of a method for protecting HQoS using a multi-board according to an embodiment of the present invention
  • FIG. 3 is a flow chart showing the steps of another embodiment of a method for protecting HQoS using a multi-board according to an embodiment of the present invention
  • FIG. 4 is a flow chart showing the steps of another embodiment of a method for protecting HQoS by using a multi-board according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an apparatus for protecting HQoS by using a multi-board card according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another embodiment of an apparatus for protecting HQoS by using a multi-board card according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another embodiment of an apparatus for protecting HQoS by using a multi-board according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for protecting HQoS by using a multi-board to protect the HQoS configuration policy of the Ethernet aggregation layer device.
  • the VOQ-ID is encoded for all service boards in turn by the motherboard card, and then the allocated VOQ-ID is synchronized with the HQoS configuration information to all the standby boards. All service boards apply for VOQ resources and complete HQoS configuration.
  • the motherboard card fails. The faulty motherboard card is offline, the port protection is switched, the spare board is updated to the VOQ-ID of the offline faulty motherboard card, and the board is elected as the motherboard card.
  • the Ethernet aggregation layer device device includes a motherboard card (main service processing board) and multiple spare boards (alternative service processing boards), and the service interface card simultaneously connects multiple services through the connector. Handle the board.
  • the connector enters the service processing card that belongs to the current port according to the default access relationship.
  • Each service processing board not only allocates VOQ (Virtual Output Queue) resources for the local forwarding service, but also allocates VOQ resources for forwarding services to other service processing boards.
  • HQoS policy is configured for each user.
  • the business processing boards each apply for VOQ resources.
  • the method for protecting HQoS by using a multi-board includes the following steps:
  • step S10 the HQoS configuration information is sent to all the boards for storage.
  • step S10 the main control board sends the user HQoS configuration information to all service processing boards.
  • the board receives and saves the configuration information.
  • step S11 the VOQ identifier (VOQ-ID) is encoded by the motherboard card as a spare board.
  • step S11 the motherboard card globally manages the VOQ-ID, and the VOQ-ID is expressed as:
  • the XXX is an arbitrary value.
  • the Node-ID uniquely identifies the board in the system.
  • the per-hop behavior (PHB) indicates that the packet is forwarded within the device.
  • the PHB is different.
  • the VOQ of packets sent to different boards is entered. It is also different.
  • the role of VOQ-ID is: when a certain board in the system fails, only need to change the NODE-ID bit in the VOQ-ID to achieve fast traffic protection switching.
  • the VOQ-ID resource is global.
  • the motherboard card logically divides the VOQ-ID into bit numbers and then allocates them to the standby board to ensure that the VOQ-ID resources of each board in the system do not conflict.
  • Step S12 After the motherboard card synchronizes the encoded VOQ-ID and the HQoS configuration information to the standby board, the HQoS configuration of the board is completed.
  • step S12 the standby board will only configure the HQoS policy after receiving the HQoS configuration information and the VOQ-ID synchronization information sent by the motherboard card. If the HQoS configuration information or the VOQ-ID synchronization information is not received, the standby card is in the Waiting for the sync status.
  • the motherboard card and the standby board maintain the same configuration information for the HQOS configuration information delivered by the master. When the user deletes the HQoS policy, each board releases the VOQ resources. The processing of each board is independent and does not require any interaction.
  • Step S13 detecting whether the motherboard card is faulty, if yes, executing step S14, and if not, performing step S11 again.
  • Step S14 The faulty motherboard card is offline, and after the port is protected and switched, the standby board competes for the VOQ-ID of the faulty motherboard card.
  • step S14 when the motherboard card fails, the connector disconnects the board from the board and accesses the standby board that is working normally. Because the encoded VOQ-ID is used to distinguish the service processing board bridged by the service interface card port, that is, when a certain service processing board in the system fails, only the NODE-ID bit in the VOQ-ID needs to be changed to achieve fast traffic. Protection switching. At this point, the access processing board is accessed. Elected as a new motherboard card, all subsequent VOQ-ID management is performed on the new motherboard card.
  • step S10 the system completes the troubleshooting of the faulty board and repeats step S10.
  • the backup card when the motherboard card is faulty, the backup card does not need to be reconfigured, and the HQoS requirement of the user is satisfied while ensuring fast switching of the traffic, and the implementation is simple and operability is strong.
  • the method for protecting the HQoS by using the multi-board is as follows. Referring to FIG. 3, before the step S11, the method may further include:
  • Step S20 Identify the roles of the motherboard card and the backup board in all the boards.
  • the method for protecting the HQoS by using the multi-board is as follows. Referring to FIG. 4, after step S14, the method may further include:
  • Step S30 Determine whether the offline faulty board is repaired; if yes, execute step S31.
  • step S30 the offline faulty board includes the faulty motherboard card in the offline line in step S14.
  • step S31 the repairing board is re-routed to the standby board.
  • step S31 after the offline faulty motherboard card is re-launched after the fault is repaired, as the standby board role, step S10 is re-executed.
  • An embodiment of the present invention further discloses an apparatus for protecting HQoS by using a multi-board.
  • the apparatus includes:
  • the configuration information is delivered to the module 1, and is configured to send the HQoS configuration information to all the boards for storage;
  • the encoding module 2 is configured to encode the VOQ-ID into the spare board by the motherboard card;
  • the configuration module 3 is configured to synchronize the encoded VOQ-ID and the HQoS configuration information to the standby board, and complete the HQoS configuration of the board.
  • the fault detecting module 4 is configured to detect whether the motherboard card is faulty
  • the campaign module 5 is configured to: when the motherboard card is faulty, the faulty motherboard card is taken offline, and after the port is protected and switched, the VOQ-ID of the faulty motherboard card is selected through the standby board.
  • the apparatus may further include:
  • the character recognition module 6 is configured to recognize the roles of the motherboard card and the backup card in all the boards.
  • the apparatus for protecting the HQoS by using the multi-board is as follows.
  • the apparatus may further include:
  • the online module 7 is set to detect whether the offline board is repaired, and the repair board is re-routed to the standby board.
  • the device in the embodiment of the present invention corresponds to the method in the foregoing embodiment, and the content in the foregoing method embodiment is also used to explain the device in this embodiment, and details are not described herein again.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the invention satisfies the user's requirement for HQoS while ensuring fast switching of traffic, and is simple to implement and operability.

Abstract

A method and device for protecting the HQoS using multiple board cards. The method comprises: encoding VOQ-IDs for all service board cards in sequence through a main board card; then, synchronizing the allocated VOQ-IDs and HQoS configuration information to all standby board cards; applying, by all the service board cards, for VOQ resources respectively, and completing HQoS configurations; and when the main board card has a fault, making the main board card having the fault offline, conducting protection switching on a port, updating one standby board card to the VOQ-ID of the offline main board card having the fault, and electing same as a main board card.

Description

一种使用多板卡保护HQoS的方法和装置Method and device for protecting HQoS by using multiple boards 技术领域Technical field
本发明涉及网络通信领域,更具体地涉及一种使用多板卡保护HQoS的方法和装置。The present invention relates to the field of network communications, and more particularly to a method and apparatus for protecting HQoS using a multi-board.
背景技术Background technique
随着科技和时代的发展,以太网技术越来越成为社会生产、办公的重要技术手段。随着智能终端持有量的快速增长,移动互联网产业也日益成熟。无线网络向ALL IP(全网IP化)发展,更加要求汇聚层设备容量大,同时有快速的业务回复机制,保证业务永不中断,高度可靠。With the development of technology and the times, Ethernet technology has increasingly become an important technical means of social production and office. With the rapid growth of smart terminal holdings, the mobile Internet industry is also becoming more mature. The wireless network is developing to ALL IP (all-network IP), which requires a large capacity of the aggregation layer device and a fast service reply mechanism to ensure that the service is never interrupted and highly reliable.
传统的以太网汇聚层设备通常配备一块业务处理板卡,多块业务接口卡,这样存在一定的安全性问题。当汇聚层设备业务板卡出现故障时,会导致其下挂的所有业务都发生中断。同时,单一的业务处理板卡会导致对汇聚设备进行升级时需要中断业务。A traditional Ethernet aggregation layer device is usually equipped with a service processing board and multiple service interface cards. This has certain security problems. When the service card of the aggregation layer device fails, all services connected to it will be interrupted. At the same time, a single service processing board will cause the service to be interrupted when upgrading the aggregation device.
为此,出现了一些板间保护技术例如LAG(Link aggregation Group,链路聚合组)等,用户需要在LAG以及多板卡上部署HQoS(Hierarchical Quality of Service,分层服务质量)策略来保证多用户、多业务、多种流量的统一管理和分层调度。当主板卡发生故障时在短时间快切到备用板卡,备用板卡继续提供预期的HQoS,避免了HQoS重新部署可能造成重要业务延迟和阻塞,保证了用户对QoS(Quality of Service,服务质量)的需求以及系统QoS的稳定性。For this reason, some inter-board protection technologies such as LAG (Link Aggregation Group) have been deployed. Users need to deploy HQoS (Hierarchical Quality of Service) policies on LAGs and multi-boards to ensure more. Unified management and hierarchical scheduling of users, multiple services, multiple traffic. When the motherboard card fails, the backup board is switched to the standby board in a short time. The backup board continues to provide the expected HQoS. This avoids the HQoS redeployment and may cause important service delays and congestion. This ensures the QoS (Quality of Service). Demand and stability of system QoS.
发明内容Summary of the invention
本发明实施例提供一种使用多板卡保护HQoS的方法和装置,旨在解决HQoS重新部署所造成重要业务延迟和阻塞的问题。 Embodiments of the present invention provide a method and apparatus for protecting HQoS by using a multi-board, aiming at solving the problem of important service delay and congestion caused by HQoS redeployment.
一种使用多板卡保护HQoS的方法,所述方法包括步骤:A method of protecting HQoS using a multi-board, the method comprising the steps of:
将HQoS配置信息下发给所有板卡进行保存;Send HQoS configuration information to all boards for storage.
通过主板卡为备用板卡编码VOQ-ID;Encoding the VOQ-ID for the spare board through the motherboard card;
将编码的VOQ-ID以及HQoS配置信息通过主板卡同步给备用板卡后,完成板卡的HQoS配置;After the encoded VOQ-ID and the HQoS configuration information are synchronized to the standby board through the motherboard card, the HQoS configuration of the board is completed;
检测主板卡是否故障;Check if the motherboard card is faulty.
当检测到主板卡故障时,将故障主板卡下线,在端口进行保护切换后,使备用板卡竞选到故障主板卡的VOQ-ID。When the fault of the motherboard card is detected, the faulty motherboard card is taken offline. After the port is protected and switched, the standby board is elected to the VOQ-ID of the faulty motherboard card.
可选地,在执行通过主板卡对各备用板卡编码VOQ-ID的步骤之前还包括:Optionally, before the step of encoding the VOQ-ID of each spare board by the motherboard card, the method further includes:
对所有板卡中主板卡和备用板卡的角色进行识别。Identify the roles of the system board and the spare board in all boards.
可选地,在执行所述当检测到主板卡故障时,将故障主板卡下线,在端口进行保护切换后,通过备用板卡竞选到故障主板卡的VOQ-ID的步骤之后还包括:Optionally, after the step of detecting the fault of the motherboard card, the faulty motherboard card is offline, and after the step of performing protection switching on the port, the step of selecting the VOQ-ID of the faulty motherboard card by using the standby board further includes:
检测离线板卡是否修复,且在检测离线板卡修复时,将该修复板卡重新上线为备用板卡。Check whether the offline board is repaired, and when detecting the offline board repair, re-upgrade the repair board to the standby board.
一种使用多板卡保护HQoS的装置,所述装置包括:An apparatus for protecting HQoS using a multi-board, the apparatus comprising:
配置信息下发模块,设置为将HQoS配置信息下发给所有板卡进行保存;The configuration information is sent to the module, and the HQoS configuration information is sent to all the boards for storage.
编码模块,设置为通过主板卡为备用板卡编码VOQ-ID;The encoding module is configured to encode the VOQ-ID for the spare board through the motherboard card;
配置模块,设置为将编码的VOQ-ID以及HQoS配置信息通过主板卡同步给备用板卡后,完成板卡的HQoS配置;The configuration module is configured to synchronize the encoded VOQ-ID and the HQoS configuration information to the standby board through the motherboard card, and complete the HQoS configuration of the board;
故障检测模块,设置为检测主板卡是否故障;The fault detection module is configured to detect whether the motherboard card is faulty;
竞选模块,设置为当检测到主板卡故障时,将故障主板卡下线,在端口进行保护切换后,使备用板卡竞选到故障主板卡的VOQ-ID。 The campaign module is configured to disconnect the faulty motherboard card when the motherboard card is faulty. After the switch is protected, the standby board is elected to the VOQ-ID of the faulty motherboard card.
可选地,所述装置还包括:Optionally, the device further includes:
角色识别模块,设置为对所有板卡中主板卡和备用板卡的角色进行识别。A character recognition module that is set to recognize the roles of the system board and the spare board in all boards.
可选地,所述装置还包括:Optionally, the device further includes:
重上线模块,设置为检测离线板卡是否修复,且在检测离线板卡修复时,将该修复板卡重新上线为备用板卡。The re-upline module is set to detect whether the offline board is repaired, and when detecting the offline board repair, the repair board is brought back to the standby board.
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述方法。Embodiments of the present invention also provide a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above method.
本发明实施例还提供一种载有所述计算机程序的计算机可读存储介质。Embodiments of the present invention also provide a computer readable storage medium carrying the computer program.
本发明实施例具有以下有益效果:Embodiments of the present invention have the following beneficial effects:
(1)在本发明实施例中,用户在删除HQoS策略时,业务处理板卡各自释放VOQ资源等,处理过程都是独立的,不需要任何交互。(1) In the embodiment of the present invention, when the user deletes the HQoS policy, the service processing boards respectively release the VOQ resources, and the processing is independent, and does not require any interaction.
(2)在本发明实施例中,当主板卡发生故障时,只需改变VOQ-ID中的NODE-ID位就可以实现流量快速保护切换到备用板卡,备用板卡不需要重新配置,在保证流量快速切换的同时满足了用户对HQoS需求,实现简单、可操作性强。(2) In the embodiment of the present invention, when the motherboard card fails, only the NODE-ID bit in the VOQ-ID can be changed to implement fast traffic protection switching to the standby board, and the standby board does not need to be reconfigured. The fast traffic switching ensures that the HQoS requirements of the user are met, and the implementation is simple and operability is strong.
附图概述BRIEF abstract
图1是本发明实施例中以太网汇聚层设备中板卡、业务接口卡以及连接器之间的结构示意图;1 is a schematic structural diagram of a board, a service interface card, and a connector in an Ethernet aggregation layer device according to an embodiment of the present invention;
图2是本发明实施例使用多板卡保护HQoS的方法实施例的步骤流程图;2 is a flow chart showing the steps of an embodiment of a method for protecting HQoS using a multi-board according to an embodiment of the present invention;
图3是本发明实施例使用多板卡保护HQoS的方法另一实施例的步骤流程图;3 is a flow chart showing the steps of another embodiment of a method for protecting HQoS using a multi-board according to an embodiment of the present invention;
图4是本发明实施例使用多板卡保护HQoS的方法另一实施例的步骤流程图;4 is a flow chart showing the steps of another embodiment of a method for protecting HQoS by using a multi-board according to an embodiment of the present invention;
图5是本发明实施例使用多板卡保护HQoS的装置实施例的结构示意图; FIG. 5 is a schematic structural diagram of an apparatus for protecting HQoS by using a multi-board card according to an embodiment of the present invention; FIG.
图6是本发明实施例使用多板卡保护HQoS的装置另一实施例的结构示意图;6 is a schematic structural diagram of another embodiment of an apparatus for protecting HQoS by using a multi-board card according to an embodiment of the present invention;
图7是本发明实施例使用多板卡保护HQoS的装置另一实施例的结构示意图。FIG. 7 is a schematic structural diagram of another embodiment of an apparatus for protecting HQoS by using a multi-board according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
以下结合附图及对本发明实施例进行详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。本发明实施例提供一种使用多板卡保护HQoS的方法,用于对以太网汇聚层设备HQoS配置策略进行保护。通过主板卡依次为所有业务板块编码VOQ-ID,然后将分配好的VOQ-ID连同HQoS配置信息同步到所有备用板卡,所有业务板卡各自申请VOQ资源并完成HQoS配置,当主板卡故障时,将故障主板卡离线,端口保护切换,备用板卡更新到离线故障主板卡的VOQ-ID,并竞选为主板卡。The embodiments of the present invention are described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. The embodiment of the invention provides a method for protecting HQoS by using a multi-board to protect the HQoS configuration policy of the Ethernet aggregation layer device. The VOQ-ID is encoded for all service boards in turn by the motherboard card, and then the allocated VOQ-ID is synchronized with the HQoS configuration information to all the standby boards. All service boards apply for VOQ resources and complete HQoS configuration. When the motherboard card fails. The faulty motherboard card is offline, the port protection is switched, the spare board is updated to the VOQ-ID of the offline faulty motherboard card, and the board is elected as the motherboard card.
该以太网汇聚层设备设备,如图1所示,同时包含主板卡(主业务处理板卡)、多块备用板卡(备用业务处理板卡),业务接口卡通过连接器同时连接多块业务处理板卡。当业务处理板卡处在正常工作状态时,连接器按照默认接入关系,从业务接口卡端口进入的报文会被投递到当前端口归属的业务处理板卡进行处理。每块业务处理板卡不仅预先为本地转发业务分配VOQ(Virtual Output Queue,虚拟输出队列)资源,同时也为到其它业务处理板卡的转发业务分配VOQ资源,用户每配置一条HQoS策略,每块业务处理板卡各自申请VOQ资源。The Ethernet aggregation layer device device, as shown in FIG. 1 , includes a motherboard card (main service processing board) and multiple spare boards (alternative service processing boards), and the service interface card simultaneously connects multiple services through the connector. Handle the board. When the service processing board is in the normal working state, the connector enters the service processing card that belongs to the current port according to the default access relationship. Each service processing board not only allocates VOQ (Virtual Output Queue) resources for the local forwarding service, but also allocates VOQ resources for forwarding services to other service processing boards. Each HQoS policy is configured for each user. The business processing boards each apply for VOQ resources.
在本发明实施例中,上述使用多板卡保护HQoS的方法,参照图2所示,包括以下步骤:In the embodiment of the present invention, the method for protecting HQoS by using a multi-board, as shown in FIG. 2, includes the following steps:
步骤S10、将HQoS配置信息下发给所有板卡进行保存。In step S10, the HQoS configuration information is sent to all the boards for storage.
在步骤S10中,主控板卡下发用户HQoS配置信息到所有业务处理板卡 (以下简述为板卡),板卡接收并保存配置信息。In step S10, the main control board sends the user HQoS configuration information to all service processing boards. (The following is a brief description of the board), the board receives and saves the configuration information.
步骤S11、通过主板卡为备用板卡编码VOQ标识(VOQ-ID)。In step S11, the VOQ identifier (VOQ-ID) is encoded by the motherboard card as a spare board.
在步骤S11中,主板卡全局统一管理VOQ-ID,VOQ-ID表述为:In step S11, the motherboard card globally manages the VOQ-ID, and the VOQ-ID is expressed as:
VOQ-ID=XXX:Node-ID:PHB;VOQ-ID=XXX: Node-ID: PHB;
其中,XXX为任意值,Node-ID唯一标识系统中板卡,PHB(Per Hop Behavior,每跳行为)表示报文在设备内部转发服务类型,PHB不同,到不同板卡的报文进入的VOQ也不同。而VOQ-ID所起到的作用为:当系统中某块板卡故障时,仅需改变VOQ-ID中的NODE-ID位就可以实现流量快速保护切换。VOQ-ID资源是全局的,主板卡在逻辑上把VOQ-ID按bit位划分后再分配给备用板卡使用,保证系统中各个板卡VOQ-ID资源使用不冲突。The XXX is an arbitrary value. The Node-ID uniquely identifies the board in the system. The per-hop behavior (PHB) indicates that the packet is forwarded within the device. The PHB is different. The VOQ of packets sent to different boards is entered. It is also different. The role of VOQ-ID is: when a certain board in the system fails, only need to change the NODE-ID bit in the VOQ-ID to achieve fast traffic protection switching. The VOQ-ID resource is global. The motherboard card logically divides the VOQ-ID into bit numbers and then allocates them to the standby board to ensure that the VOQ-ID resources of each board in the system do not conflict.
步骤S12、主板卡将编码的VOQ-ID以及HQoS配置信息同步给备用板卡后,完成板卡的HQoS配置。Step S12: After the motherboard card synchronizes the encoded VOQ-ID and the HQoS configuration information to the standby board, the HQoS configuration of the board is completed.
在步骤S12中,备用板卡只有在收到主板卡发来的HQoS配置信息和VOQ-ID同步信息后才会去配置HQoS策略,若没有收到HQoS配置信息或VOQ-ID同步信息,则处于等待同步状态。对于主控下发的HQOS配置信息,主板卡和备用板卡都维护相同的配置信息。用户在删除HQoS策略时,每个板卡各自释放VOQ资源,每个板卡的处理过程是独立的,不需要任何交互。In step S12, the standby board will only configure the HQoS policy after receiving the HQoS configuration information and the VOQ-ID synchronization information sent by the motherboard card. If the HQoS configuration information or the VOQ-ID synchronization information is not received, the standby card is in the Waiting for the sync status. The motherboard card and the standby board maintain the same configuration information for the HQOS configuration information delivered by the master. When the user deletes the HQoS policy, each board releases the VOQ resources. The processing of each board is independent and does not require any interaction.
步骤S13、检测主板卡是否故障,若是,执行步骤S14,若否,重新执行步骤S11。Step S13: detecting whether the motherboard card is faulty, if yes, executing step S14, and if not, performing step S11 again.
步骤S14、将故障主板卡下线,在端口进行保护切换后,备用板卡竞选到故障主板卡的VOQ-ID。Step S14: The faulty motherboard card is offline, and after the port is protected and switched, the standby board competes for the VOQ-ID of the faulty motherboard card.
在步骤S14中,当主板卡故障时,连接器断开与此板卡的通路,并接入到正常工作的备用板卡。由于编码VOQ-ID用于区分业务接口卡端口所桥接的业务处理板卡,即当系统中某块业务处理板卡故障时,仅需改变VOQ-ID中的NODE-ID位就可以实现流量快速保护切换。此时,接入的备用处理板卡 竞选为新的主板卡,后续所有VOQ-ID管理均在新的主板卡上进行。In step S14, when the motherboard card fails, the connector disconnects the board from the board and accesses the standby board that is working normally. Because the encoded VOQ-ID is used to distinguish the service processing board bridged by the service interface card port, that is, when a certain service processing board in the system fails, only the NODE-ID bit in the VOQ-ID needs to be changed to achieve fast traffic. Protection switching. At this point, the access processing board is accessed. Elected as a new motherboard card, all subsequent VOQ-ID management is performed on the new motherboard card.
至此,系统完成了故障板卡的排除,并重新执行步骤S10。At this point, the system completes the troubleshooting of the faulty board and repeats step S10.
在本发明实施例中,当主板卡故障时,由于备用板卡不需要重新配置,在保证流量快速切换的同时满足了用户对HQoS需求,实现简单、可操作性强。In the embodiment of the present invention, when the motherboard card is faulty, the backup card does not need to be reconfigured, and the HQoS requirement of the user is satisfied while ensuring fast switching of the traffic, and the implementation is simple and operability is strong.
上述使用多板卡保护HQoS的方法,参照图3所示,在步骤S11之前还可以包括:The method for protecting the HQoS by using the multi-board is as follows. Referring to FIG. 3, before the step S11, the method may further include:
步骤S20、对所有板卡中主板卡和备用板卡的角色进行识别。Step S20: Identify the roles of the motherboard card and the backup board in all the boards.
为了更便于后续板卡或者故障板卡的重新使用,上述使用多板卡保护HQoS的方法,参照图4所示,在步骤S14之后还可以包括:In order to facilitate the re-use of the subsequent card or the faulty card, the method for protecting the HQoS by using the multi-board is as follows. Referring to FIG. 4, after step S14, the method may further include:
步骤S30、判断离线故障板卡是否修复;若是,执行步骤S31。Step S30: Determine whether the offline faulty board is repaired; if yes, execute step S31.
在步骤S30中,离线故障板卡包括步骤S14中下线的故障主板卡。In step S30, the offline faulty board includes the faulty motherboard card in the offline line in step S14.
步骤S31、将该修复板卡重新上线为备用板卡。In step S31, the repairing board is re-routed to the standby board.
在步骤S31中,当离线故障主板卡在故障修复后重新上线后,作为备用板卡角色后,重新执行步骤S10。In step S31, after the offline faulty motherboard card is re-launched after the fault is repaired, as the standby board role, step S10 is re-executed.
本发明实施例还公开了一种使用多板卡保护HQoS的装置,参照图5所示,所述装置包括:An embodiment of the present invention further discloses an apparatus for protecting HQoS by using a multi-board. Referring to FIG. 5, the apparatus includes:
配置信息下发模块1,设置为将HQoS配置信息下发给所有板卡进行保存;The configuration information is delivered to the module 1, and is configured to send the HQoS configuration information to all the boards for storage;
编码模块2,设置为通过主板卡为备用板卡编码VOQ-ID;The encoding module 2 is configured to encode the VOQ-ID into the spare board by the motherboard card;
配置模块3,设置为将编码的VOQ-ID以及HQoS配置信息同步给备用板卡后,完成板卡的HQoS配置;The configuration module 3 is configured to synchronize the encoded VOQ-ID and the HQoS configuration information to the standby board, and complete the HQoS configuration of the board.
故障检测模块4,设置为检测主板卡是否故障; The fault detecting module 4 is configured to detect whether the motherboard card is faulty;
竞选模块5,设置为当检测到主板卡故障时,将故障主板卡下线,在端口进行保护切换后,通过备用板卡竞选到故障主板卡的VOQ-ID。The campaign module 5 is configured to: when the motherboard card is faulty, the faulty motherboard card is taken offline, and after the port is protected and switched, the VOQ-ID of the faulty motherboard card is selected through the standby board.
参照图6所示,所述装置还可以包括:Referring to FIG. 6, the apparatus may further include:
角色识别模块6,设置为对所有板卡中主板卡和备用板卡的角色进行识别。The character recognition module 6 is configured to recognize the roles of the motherboard card and the backup card in all the boards.
上述使用多板卡保护HQoS的装置,参照图7所示,所述装置还可以包括:The apparatus for protecting the HQoS by using the multi-board is as follows. Referring to FIG. 7, the apparatus may further include:
重上线模块7,设置为检测离线板卡是否修复,并将该修复板卡重新上线为备用板卡。The online module 7 is set to detect whether the offline board is repaired, and the repair board is re-routed to the standby board.
本发明实施例中所述装置与上述实施例中所述方法相对应,以上述方法实施例中所记载内容同样用于解释本实施例中的装置,在此不再赘述。The device in the embodiment of the present invention corresponds to the method in the foregoing embodiment, and the content in the foregoing method embodiment is also used to explain the device in this embodiment, and details are not described herein again.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性 Industrial applicability
本发明实施例在保证流量快速切换的同时满足了用户对HQoS需求,实现简单、可操作性强。 The embodiment of the invention satisfies the user's requirement for HQoS while ensuring fast switching of traffic, and is simple to implement and operability.

Claims (8)

  1. 一种使用多板卡保护分层服务质量HQoS的方法,包括:A method for protecting hierarchical service quality HQoS using a multi-board, comprising:
    将HQoS配置信息下发给所有板卡进行保存;Send HQoS configuration information to all boards for storage.
    通过主板卡为备用板卡编码虚拟输出队列标识VOQ-ID;The virtual output queue identifier VOQ-ID is encoded by the motherboard card for the spare board;
    将编码的VOQ-ID以及HQoS配置信息通过主板卡同步给备用板卡后,完成板卡的HQoS配置;After the encoded VOQ-ID and the HQoS configuration information are synchronized to the standby board through the motherboard card, the HQoS configuration of the board is completed;
    检测主板卡是否故障;Check if the motherboard card is faulty.
    当检测到主板卡故障时,将故障主板卡下线,在端口进行保护切换后,使备用板卡竞选到故障主板卡的VOQ-ID。When the fault of the motherboard card is detected, the faulty motherboard card is taken offline. After the port is protected and switched, the standby board is elected to the VOQ-ID of the faulty motherboard card.
  2. 如权利要求1所述的使用多板卡保护HQoS的方法,其中,在执行通过主板卡为备用板卡编码VOQ-ID的步骤之前还包括:The method for protecting HQoS by using a multi-board according to claim 1, wherein before the step of encoding the VOQ-ID by the motherboard card as a spare board, the method further comprises:
    对所有板卡中主板卡和备用板卡的角色进行识别。Identify the roles of the system board and the spare board in all boards.
  3. 如权利要求2所述的使用多板卡保护HQoS的方法,其中,在执行所述当检测到主板卡故障时,将故障主板卡下线,在端口进行保护切换后,通过备用板卡竞选到故障主板卡的VOQ-ID的步骤之后还包括:The method for protecting HQoS by using a multi-board according to claim 2, wherein when the motherboard card failure is detected, the faulty motherboard card is taken offline, and after the port is protected and switched, the standby board is used to campaign to The steps of the VOQ-ID of the failed motherboard card further include:
    检测离线板卡是否修复,且在检测离线板卡修复时,将该修复板卡重新上线为备用板卡。Check whether the offline board is repaired, and when detecting the offline board repair, re-upgrade the repair board to the standby board.
  4. 一种使用多板卡保护分层服务质量HQoS的装置,包括:A device for protecting hierarchical quality of service HQoS using a multi-board, comprising:
    配置信息下发模块,设置为将HQoS配置信息下发给所有板卡进行保存;The configuration information is sent to the module, and the HQoS configuration information is sent to all the boards for storage.
    编码模块,设置为通过主板卡为备用板卡编码虚拟输出队列标识VOQ-ID;The encoding module is configured to identify a VOQ-ID by using a motherboard card to encode a virtual output queue for the spare board;
    配置模块,设置为将编码的VOQ-ID以及HQoS配置信息同步通过主板 卡给备用板卡后,完成板卡的HQoS配置;The configuration module is configured to synchronize the encoded VOQ-ID and HQoS configuration information through the motherboard After the card is given to the standby board, the HQoS configuration of the board is completed;
    故障检测模块,设置为检测主板卡是否故障;The fault detection module is configured to detect whether the motherboard card is faulty;
    竞选模块,设置为于当检测到主板卡故障时,将故障主板卡下线,在端口进行保护切换后,使备用板卡竞选到故障主板卡的VOQ-ID。The campaign module is configured to remove the faulty motherboard card when the motherboard card is faulty. After the switch is protected, the standby board is elected to the VOQ-ID of the faulty motherboard card.
  5. 如权利要求4所述的使用多板卡保护HQoS的装置,所述装置还包括:The apparatus for protecting HQoS using a multi-board according to claim 4, the apparatus further comprising:
    角色识别模块,设置为对所有板卡中主板卡和备用板卡的角色进行识别。A character recognition module that is set to recognize the roles of the system board and the spare board in all boards.
  6. 如权利要求5所述的使用多板卡保护HQoS的方法,所述装置还包括:The method for protecting HQoS using a multi-board according to claim 5, the device further comprising:
    重上线模块,设置为检测离线板卡是否修复,且在检测离线板卡修复时,将该修复板卡重新上线为备用板卡。The re-upline module is set to detect whether the offline board is repaired, and when detecting the offline board repair, the repair board is brought back to the standby board.
  7. 一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行权利要求1-3任一项所述的方法。A computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-3.
  8. 一种载有权利要求7所述计算机程序的计算机可读存储介质。 A computer readable storage medium carrying the computer program of claim 7.
PCT/CN2014/094717 2014-09-05 2014-12-23 Method and device for protecting hqos using multiple board cards WO2015154525A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410453618.3 2014-09-05
CN201410453618.3A CN105471610B (en) 2014-09-05 2014-09-05 Method and device for protecting HQoS (high-quality QoS) by using multiple board cards

Publications (1)

Publication Number Publication Date
WO2015154525A1 true WO2015154525A1 (en) 2015-10-15

Family

ID=54287260

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094717 WO2015154525A1 (en) 2014-09-05 2014-12-23 Method and device for protecting hqos using multiple board cards

Country Status (2)

Country Link
CN (1) CN105471610B (en)
WO (1) WO2015154525A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105429814A (en) * 2014-09-17 2016-03-23 中兴通讯股份有限公司 Method and device for BFD protection by utilizing multiple board cards
WO2017211287A1 (en) * 2016-06-08 2017-12-14 中兴通讯股份有限公司 Method and device for constructing scheduling model
CN110380911A (en) * 2019-08-14 2019-10-25 北京交大思诺科技股份有限公司 A kind of active and standby knowledge method for distinguishing of redundant system
CN113111027A (en) * 2021-04-23 2021-07-13 广东电网有限责任公司电力调度控制中心 Layering protection device
CN115407759A (en) * 2022-11-01 2022-11-29 西北工业大学 Flight fault-tolerant control method and system for board card fault of flight control computer

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037654B (en) * 2021-02-25 2022-04-05 迈普通信技术股份有限公司 Distributed switch service board virtualization method and device and electronic equipment
CN113193995A (en) * 2021-04-22 2021-07-30 深圳市信锐网科技术有限公司 Communication apparatus, control method thereof, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667974A (en) * 2009-10-12 2010-03-10 中兴通讯股份有限公司 Method and network processor for realizing H QoS (hierarchical quality of service)
CN102739535A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Method and system for protecting offline of line card
CN102843264A (en) * 2012-09-21 2012-12-26 中国航空无线电电子研究所 Control method of double hosts in high-speed serial bus network
CN103200124A (en) * 2013-03-07 2013-07-10 北京华为数字技术有限公司 Service strategy adjustment method and service strategy adjustment device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502369B2 (en) * 2004-06-02 2009-03-10 Intel Corporation High speed interface systems and methods
CN101039130B (en) * 2006-03-17 2010-09-01 中兴通讯股份有限公司 Standby plate and method for using the setup
CN101043308B (en) * 2006-03-24 2010-11-10 华为技术有限公司 Method for protecting service broad level of SDH equipment and SDH equipment
CN101242255B (en) * 2008-02-15 2011-09-21 中兴通讯股份有限公司 A method and system for realizing N+1 redundant backup and load share
CN101616033A (en) * 2009-07-17 2009-12-30 中兴通讯股份有限公司 A kind of method of relay resource board back-up protection
CN101835062B (en) * 2010-04-29 2014-03-19 中兴通讯股份有限公司 Method for processing service plate changeover and shelf control unit
CN102611570A (en) * 2011-12-30 2012-07-25 Ut斯达康通讯有限公司 Method for realizing port-level protection of packet transport network (PTN) by use of Y-shaped cable
CN103152289B (en) * 2013-01-28 2016-08-17 山东智慧生活数据系统有限公司 A kind of multilevel service quality dispatching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667974A (en) * 2009-10-12 2010-03-10 中兴通讯股份有限公司 Method and network processor for realizing H QoS (hierarchical quality of service)
CN102739535A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Method and system for protecting offline of line card
CN102843264A (en) * 2012-09-21 2012-12-26 中国航空无线电电子研究所 Control method of double hosts in high-speed serial bus network
CN103200124A (en) * 2013-03-07 2013-07-10 北京华为数字技术有限公司 Service strategy adjustment method and service strategy adjustment device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105429814A (en) * 2014-09-17 2016-03-23 中兴通讯股份有限公司 Method and device for BFD protection by utilizing multiple board cards
WO2017211287A1 (en) * 2016-06-08 2017-12-14 中兴通讯股份有限公司 Method and device for constructing scheduling model
CN110380911A (en) * 2019-08-14 2019-10-25 北京交大思诺科技股份有限公司 A kind of active and standby knowledge method for distinguishing of redundant system
CN110380911B (en) * 2019-08-14 2022-05-31 北京交大思诺科技股份有限公司 Method for identifying main and standby redundant systems
CN113111027A (en) * 2021-04-23 2021-07-13 广东电网有限责任公司电力调度控制中心 Layering protection device
CN113111027B (en) * 2021-04-23 2023-01-24 广东电网有限责任公司电力调度控制中心 Layering protection device
CN115407759A (en) * 2022-11-01 2022-11-29 西北工业大学 Flight fault-tolerant control method and system for board card fault of flight control computer

Also Published As

Publication number Publication date
CN105471610A (en) 2016-04-06
CN105471610B (en) 2020-03-17

Similar Documents

Publication Publication Date Title
WO2015154525A1 (en) Method and device for protecting hqos using multiple board cards
US11323307B2 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
US8761001B2 (en) Method and network system for implementing user port orientation in multi-machine backup scenario of broadband remote access server
US9716616B2 (en) Active IP forwarding in an event driven virtual link aggregation (vLAG) system
US11743097B2 (en) Method and system for sharing state between network elements
JP6466003B2 (en) Method and apparatus for VNF failover
CN105745883B (en) Forwarding table synchronous method, the network equipment and system
US8880703B2 (en) Address distribution method, device and system thereof
CN104935672A (en) High available realizing method and equipment of load balancing service
MX2012005239A (en) Disjoint path computation algorithm.
CN103780407A (en) Gateway dynamic switching method and apparatus in distributed resilient network interconnection (DRNI)
CN105429799B (en) Server backup method and device
US11627010B2 (en) Method to support redundancy switching of virtual MAC cores
CN105591801B (en) A kind of virtual network function VNF fault handling method and VNF management equipment
CN104168200A (en) Open vSwitch-based method and system for realizing ACL function
CN104618148A (en) Firewall device and backup method thereof
CN103414591A (en) Method and system for fast converging when port failure is recovered
CN103200092A (en) Route process management method and equipment based on virtual network equipment
US10516625B2 (en) Network entities on ring networks
CN104994071A (en) Backup method and device for BRAS equipment
CN105391565A (en) Method for achieving synchronization of backup business configuration
US10924391B2 (en) Systems and methods for automatic traffic recovery after VRRP VMAC installation failures in a LAG fabric
CN114301763A (en) Distributed cluster fault processing method and system, electronic device and storage medium
CN106878051B (en) Multi-machine backup implementation method and device
US11281451B2 (en) Distributed backup and restoration in virtualized computing environments

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14888911

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14888911

Country of ref document: EP

Kind code of ref document: A1