WO2016169177A1 - 聚合端口报文转发方法及装置 - Google Patents

聚合端口报文转发方法及装置 Download PDF

Info

Publication number
WO2016169177A1
WO2016169177A1 PCT/CN2015/088167 CN2015088167W WO2016169177A1 WO 2016169177 A1 WO2016169177 A1 WO 2016169177A1 CN 2015088167 W CN2015088167 W CN 2015088167W WO 2016169177 A1 WO2016169177 A1 WO 2016169177A1
Authority
WO
WIPO (PCT)
Prior art keywords
aggregation port
preset
sub
protection
packet
Prior art date
Application number
PCT/CN2015/088167
Other languages
English (en)
French (fr)
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 WO2016169177A1 publication Critical patent/WO2016169177A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for forwarding an aggregated port message.
  • load sharing is a method of load balancing through multiple links.
  • the interface that forms the load sharing is called an aggregation port, and the link in the aggregation port is called a member (or member link). If a member is selected to forward packets, and if the selected member is invalid, if the member protection is performed, the packets carried on the member can be forwarded. This is a problem that needs to be solved in load sharing.
  • the forwarding path of the outgoing packet is calculated according to a certain algorithm (such as hashing, polling, etc.), and then forwarded through the corresponding member of the aggregation port.
  • a certain algorithm such as hashing, polling, etc.
  • the algorithm calculates the load sharing method of the packet forwarding path, which can effectively control the dynamic dynamic control of the packet and simplify the network maintenance cost of the administrator.
  • the inventor found during the research that, in some cases, the network administrator wants to know which members are forwarded by specific members, and hopes that the specific packets can be forwarded by specific members through the administrator's own configuration. Go out. At the same time, it is also desirable to implement a protection policy. When the specified member fails, the message can be forwarded through the protected member of the designated member.
  • existing technologies do not meet the administrator's need to specify forwarding members and implement protection policies.
  • the present invention provides a method and device for forwarding an aggregated port message.
  • an aggregation port packet forwarding method including: acquiring a member link protection policy and/or a sub-aggregation port protection policy; and according to the member link protection policy and/or the The sub-aggregation port protection policy is used to perform packet forwarding.
  • the member link protection policy includes: forwarding a specific packet by using a preset member link, and forming a preset protection member link of the preset member link.
  • the protection of the sub-aggregation port protection policy includes: forwarding the packet by using the preset sub-aggregation port, and forming protection by the preset protection sub-aggregation port of the preset sub-aggregation port.
  • the forwarding of the packet according to the member link protection policy includes: forwarding the specific packet by using the preset member link; and adopting the preset if the preset member link is invalid.
  • the protection member link forwards the specific message.
  • performing packet forwarding according to the member link protection policy further includes: in the preset member link, the When the preset protection member link is invalid, the specific packet is forwarded in the normal load sharing mode through the other member links in the aggregation port.
  • the packet forwarding according to the sub-aggregation port protection policy includes: forwarding the packet by using the preset sub-aggregation port; and in the case that the preset sub-aggregation port is invalid, the preset protection is The sub-aggregation port forwards the message.
  • performing packet forwarding according to the sub-aggregation port protection policy includes: configuring a specific packet corresponding to the preset sub-aggregation port; and forwarding, by using the preset sub-aggregation port, the specific packet; If the sub-aggregation port is disabled, the specific packet is forwarded through the preset protection sub-aggregation port.
  • the packet forwarding according to the member link protection policy further includes: when the preset sub-aggregation port and the preset protection sub-aggregation port are both ineffective, the other member links in the aggregation port are aggregated. Forwarding the message or the specific message.
  • the method further includes: forwarding, in the normal load sharing manner, the forwarding of the packet or the specific packet by using the preset sub-aggregation port or the preset protection sub-aggregation port Message or the specific message.
  • an aggregation port packet forwarding apparatus including: an obtaining module, configured to acquire a member link protection policy and/or a sub-aggregation port protection policy; and a forwarding module, configured to The member link protection policy and/or the sub-aggregation port protection policy, the packet forwarding policy is performed, where the member link protection policy includes: forwarding a specific packet by using a preset member link, and The preset protection member link of the member link is formed to be protected; the sub-aggregation port protection policy includes: forwarding the packet by using the preset sub-aggregation port, and forming the preset protection sub-aggregation port of the preset sub-aggregation port. protection.
  • the forwarding module includes: a first forwarding unit configured to forward the specific packet by using the preset member link; and the first switching unit is configured to be in a case where the preset member link fails And forwarding, by using the preset protection member link, the specific packet.
  • the forwarding module further includes: a second switching unit, configured to: according to the other member links in the aggregation port, if the preset member link and the preset protection member link are both disabled The specific load balancing mode forwards the specific packet.
  • a second switching unit configured to: according to the other member links in the aggregation port, if the preset member link and the preset protection member link are both disabled The specific load balancing mode forwards the specific packet.
  • the forwarding module includes: a second forwarding unit configured to forward the packet by using the preset sub-aggregation port; and a third switching unit configured to: when the preset sub-aggregation port fails, And forwarding the packet by using the preset protection sub-aggregation port.
  • the forwarding module includes: a configuration unit configured to configure a specific packet corresponding to the preset sub-aggregation port; and a third forwarding unit configured to forward the specific packet by using the preset sub-aggregation port;
  • the fourth switching unit is configured to forward the specific packet by using the preset protection sub-aggregation port if the preset sub-aggregation port fails.
  • the forwarding module further includes: a fifth switching unit, configured to be in the preset sub-aggregation port, the pre- If the protection sub-aggregation port fails, the packet or the specific packet is forwarded through other member links in the aggregation port.
  • a fifth switching unit configured to be in the preset sub-aggregation port, the pre- If the protection sub-aggregation port fails, the packet or the specific packet is forwarded through other member links in the aggregation port.
  • the member link protection policy and/or the sub-aggregation port protection policy are adopted; the packet forwarding is performed according to the member link protection policy and/or the sub-aggregation port protection policy; wherein the member link protection policy includes The packet is forwarded by the preset member link and is protected by the preset protection member link of the preset member link.
  • the sub-aggregation port protection policy includes: forwarding the packet through the preset sub-aggregation port, and is preset by The preset protection sub-aggregation port of the sub-aggregation port forms a protection mode, which solves the problem that the related technology cannot meet the requirements of the administrator to specify the forwarding member and implement the protection policy, and the flexibility of forwarding the packet on the aggregation port is improved.
  • FIG. 1 is a flowchart of a method for forwarding an aggregated port message according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an aggregation port packet forwarding apparatus according to an embodiment of the present invention
  • FIG. 3 is a first schematic structural diagram 1 of an aggregation port packet forwarding apparatus according to an embodiment of the present invention
  • FIG. 4 is a second schematic structural diagram of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • FIG. 5 is a third schematic structural diagram of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram 4 of a preferred structure of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram 5 of a preferred structure of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • FIG. 8 is a flowchart 1 of an aggregation port packet forwarding method according to a preferred embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an aggregation port packet forwarding apparatus according to a preferred embodiment of the present invention.
  • FIG. 10 is a flowchart of a method of configuring a layered protection policy in accordance with a preferred embodiment of the present invention
  • FIG. 11 is a second flowchart of a method for forwarding an aggregated port message according to a preferred embodiment of the present invention.
  • FIG. 12 is a third flowchart of a method for forwarding an aggregated port message according to a preferred embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for forwarding an aggregated port packet according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 Acquire a member link protection policy and/or a sub-aggregation port protection policy, where the member link protection policy includes: forwarding a specific packet by using a preset member link, and pre-protecting members by the preset member link
  • the link aggregation protection policy includes: forwarding the packet by using the preset sub-aggregation port, and forming protection by the preset protection sub-aggregation port of the preset sub-aggregation port;
  • Step S104 Perform packet forwarding according to the member link protection policy and/or the sub-aggregation port protection policy.
  • the foregoing specific packet refers to a packet with preset identifier information, and the identifier information may be delivered together with the member link protection policy, or may be separately configured by the user.
  • the foregoing identification information may include, but is not limited to, the following features: a source Internet Protocol (IP) address, a destination IP address, a source multimedia access control (MAC) address, a destination MAC address, a source port number, and a destination port number.
  • IP Internet Protocol
  • MAC multimedia access control
  • a specific packet may be forwarded through a corresponding member link or a preset sub-aggregation port pair may be formed in the aggregation port.
  • the packet is forwarded, and the load balancing is implemented in a manner that is directly calculated by the related art.
  • the packet forwarding is performed by using the member link protection policy
  • the following manner may be adopted in the step S104: forwarding a specific packet by using a preset member link; Protect member links from forwarding specific messages. That is, for a particular message, the forwarding link and the protection link of the forwarding link can be pre-configured.
  • the configuration of the member link protection policy or the sub-aggregation port protection policy may be configured in a manner that the member link identifier is set corresponding to the identification information of the specific packet.
  • the preset member link and the preset protection member link may be invalid.
  • the member link may be preset in step S104. If the protection member links are invalid, the specific packets are forwarded through other member links in the aggregation port. Preferably, when a certain member link is used to forward a specific packet, the packet can be forwarded in the normal load sharing mode.
  • the packet is forwarded by using the sub-aggregation port protection policy
  • the following manner may be adopted: the packet is forwarded through the preset sub-aggregation port; and the preset sub-aggregation port is disabled, and the preset protection is performed.
  • the sub-aggregation port forwards the packet. Configure the member ports of the aggregation port as the default sub-aggregation port and forward the packets through the preset sub-aggregation port.
  • the embodiment of the present invention further provides a specific packet corresponding to the preset sub-aggregation port configuration, and forwards the specific packet in the preset sub-aggregation port.
  • the method is as follows: Configuring a specific packet corresponding to the preset sub-aggregation port; forwarding a specific packet by using the preset sub-aggregation port; and forwarding the specific packet by using the preset protection sub-aggregation port when the preset sub-aggregation port is invalid.
  • the preset sub-aggregation port and the preset protection sub-aggregation port may all fail.
  • the packet or the specific packet is forwarded through the other member links in the aggregation port.
  • the first mode and the second mode may be implemented separately, but in the case of no conflict, the implementation may be implemented.
  • the mode 1 is adopted. Way, instead of using the common load sharing method.
  • the packet or the specific packet when the packet or the specific packet is forwarded through the preset sub-aggregation port or the preset protection sub-aggregation port, the packet or the specific packet is forwarded according to the common load sharing mode.
  • an aggregation port packet forwarding device is further provided to implement the foregoing embodiments and preferred embodiments.
  • the descriptions of the modules involved in the device are described below.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: an obtaining module 22 and a forwarding module 24, wherein the obtaining module 22 is configured to acquire member link protection.
  • the policy and/or the sub-aggregation port protection policy; the forwarding module 24 is coupled to the obtaining module 22, and configured to perform packet forwarding according to the member link protection policy and/or the sub-aggregation port protection policy.
  • the member link protection policy includes: forwarding a specific packet by using a preset member link, and forming a protection by a preset protection member link of the preset member link; and the sub-aggregation port protection policy includes: The packet is forwarded and protected by a preset protection sub-aggregation port of the preset sub-aggregation port.
  • FIG. 3 is a schematic diagram of a preferred structure of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • the forwarding module 24 includes: a first forwarding unit 32, configured to forward through a preset member link.
  • a specific packet the first switching unit 34, coupled to the first forwarding unit 32, is configured to forward a specific packet by using a preset protection member link if the preset member link fails.
  • FIG. 4 is a schematic diagram of a preferred structure of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • the forwarding module 24 further includes a second switching unit 36 coupled to the first switching unit 34.
  • the specified packet is forwarded in the normal load sharing mode through the other member links in the aggregation port.
  • FIG. 5 is a schematic diagram of a preferred structure of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • the forwarding module 24 includes: a second forwarding unit 52 configured to forward through a preset sub-aggregation port.
  • the third switching unit 54 is coupled to the second forwarding unit 52, and is configured to forward the packet by using the preset protection sub-aggregation port if the preset sub-aggregation port fails.
  • FIG. 6 is a schematic diagram of a preferred structure of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • the forwarding module 24 includes: a configuration unit 62 configured to configure a specific corresponding to a preset sub-aggregation port.
  • the third forwarding unit 64 is coupled to the configuration unit 62 and configured to forward the specific packet by using the preset sub-aggregation port.
  • the fourth switching unit 66 is coupled to the third forwarding unit 64 and configured to be in the preset sub-aggregation port. In the case of failure, a specific packet is forwarded through the preset protection sub-aggregation port.
  • FIG. 7 is a schematic diagram of a preferred structure of an aggregation port packet forwarding apparatus according to an embodiment of the present invention.
  • the forwarding module 24 further includes: a fifth switching unit 72, a third switching unit 54 or a fourth
  • the switching unit 66 is configured to forward the packet or the specific packet through the other member links in the aggregation port if the preset sub-aggregation port and the preset protection sub-aggregation port are both invalid.
  • the packet or the specific packet is forwarded according to the common load sharing manner.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the preferred embodiment of the present invention is directed to a layered protection load sharing method and apparatus, which solves the problem that the existing load sharing technology cannot enable a manager to specify a specific member to forward a specific message, and then assign a protection member to the designated member. problem.
  • the load balancing method of the layered protection includes: the administrator configures layered protection of load sharing, and specifies a layered protection mode: a member protection mode (ie, a member link protection mode) and a sub-aggregation port protection mode.
  • a member protection mode ie, a member link protection mode
  • a sub-aggregation port protection mode ie, a member link protection mode
  • the member protection mode in the foregoing method includes: configuring a specified member of a specific packet, that is, configuring a packet forwarding matching rule.
  • the member protection mode further includes: configuring a protection member for the designated member.
  • the packet is switched to the protection member for forwarding.
  • the packet is switched to the remaining members in the aggregation port.
  • the other members forward packets according to the common load balancing mode.
  • the sub-aggregation port mode in the foregoing method includes: configuring a sub-aggregation port and its members.
  • the sub-aggregation port mode further includes: configuring a specified sub-aggregation port of the specific packet, that is, configuring a packet forwarding matching rule.
  • the sub-aggregation port mode further includes: configuring a protection sub-aggregation port for the designated sub-aggregation port.
  • all members of the sub-aggregation port forward the packet according to the common load balancing mode.
  • the packet is switched to the protection sub-aggregation port for forwarding. All the members of the protection sub-aggregation port forward packets according to the common load balancing mode.
  • the message is switched to the remaining members in the aggregation port.
  • the other members forward packets according to the common load balancing mode.
  • the layered protection load sharing device includes: a configuration module configured to configure hierarchical protection and mode for the administrator.
  • the method when the administrator configures the member protection mode, the method further includes: configuring a matching rule, and configuring a protection member.
  • the method when the administrator configures the sub-aggregation port protection mode, the method further includes: configuring the sub-aggregation port and its members, configuring the matching rule, configuring the protection sub-aggregation port, and members thereof.
  • the foregoing apparatus further includes: a matching module, configured to match the received message with the configured matching rule, and deliver the matching result to another module in the device: a protection module.
  • a matching module configured to match the received message with the configured matching rule, and deliver the matching result to another module in the device: a protection module.
  • the protection module is configured to perform forwarding path calculation and decision according to the matching result delivered by the matching module and the status of the member (or the child aggregation port) and the protection member (or the child aggregation port), and deliver the decision result to another device in the device.
  • the forwarding module is configured to forward the packet according to the forwarding path determined by the protection module.
  • FIG. 8 is a flowchart 1 of an aggregation port packet forwarding method according to a preferred embodiment of the present invention. As shown in FIG. 8, the process includes the following steps:
  • Step S802 Match the received packet with the configured matching rule according to the configured layered protection mode.
  • the above hierarchical protection mode involves two types: a member protection mode and a sub-aggregation port protection mode.
  • the foregoing matching rules may be, but are not limited to, a source IP address, a destination IP address, a source MAC address, a destination MAC address, a source port number, and a destination port number of the packet.
  • the number of features involved in the matching rule can be single, multiple or A continuous range.
  • Step S804 determining a forwarding path of the packet according to the matching result and the configured protection policy.
  • the received packet is forwarded in the normal load sharing mode through the remaining ports in the aggregation port. If the matching result is successful, the protection member or sub-aggregation is configured according to whether the specified member or the sub-aggregation port is configured. The policy of the port, and decides the forwarding path according to whether the status of each member or sub-aggregation port is invalid.
  • Step S806 forwarding the received packet according to the forwarding path determined in step S804.
  • FIG. 9 is a schematic structural diagram of an aggregation port packet forwarding apparatus according to a preferred embodiment of the present invention.
  • the apparatus includes: a configuration module 92 configured to configure layered protection, and a preferred mode of layered protection: members a protection mode and a sub-aggregation port protection mode; the matching module 94 is configured to match the received message with the configured matching rule, and deliver the matching result to the protection module 96 in the device; the protection module 96 is configured to be based on the matching module The matching result of the delivery and the status of the member (or sub-aggregation port) and the protection member (or sub-aggregation port), perform forwarding path calculation and decision, and deliver the decision result to the forwarding module 98 in the device; the forwarding module 98 is set to The packet is forwarded according to the forwarding path determined by the protection module 96.
  • FIG. 10 is a flowchart of a method for configuring a layered protection policy according to a preferred embodiment of the present invention. As shown in FIG. 10, the process includes the following steps:
  • step S1002 the aggregation port and its members are configured, and the process goes to step S1004.
  • step S1004 if layer protection is not configured, the configuration ends. The packet is forwarded in the normal load sharing mode. If layered protection is configured, go to step S1006.
  • step S1006 if the member protection mode is configured, the process goes to step S1008; if the member protection is not configured, the process goes to step S1010.
  • step S1008 the protection member is configured, and the process goes to step S1016.
  • step S1010 the sub-aggregation port protection mode is configured, and the process goes to step S1012.
  • step S1012 the sub-aggregation port and its members are configured, and the process goes to step S1014.
  • step S1014 the protection sub-aggregation port and its members are configured, and the process goes to step S1016.
  • Step S1016 Configure a matching rule, that is, specify a forwarding member or a designated sub-aggregation port for the packet that meets a certain feature, and the configuration ends.
  • FIG. 11 is a second flowchart of a method for forwarding an aggregated port packet according to a preferred embodiment of the present invention. As shown in FIG. 11, the process includes the following steps:
  • Step S1102 Determine the characteristics of the received message (may be but not limited to: the source IP address and the destination IP address of the packet, Whether the source MAC address, the destination MAC address, the source port number, and the destination port number match the configured matching rules (such as configuring the source IP address of the packet to be IP1 or forwarding IP2 through sub-aggregation port 1). If the result of the determination is a mismatch, the process goes to step S1114; if the result of the determination is a match, the process goes to step S1104.
  • the configured matching rules such as configuring the source IP address of the packet to be IP1 or forwarding IP2 through sub-aggregation port 1).
  • Step S1104 Determine whether the sub-aggregation port specified in the matching rule is in a failed state. If the result of the determination is a failure state, the process goes to step S1108; if the result of the determination is normal, the process goes to step S1106.
  • step S1106 the packet is forwarded through the sub-aggregation port according to the load sharing mode.
  • Step S1108 Determine whether a protection sub-aggregation port is configured for the designated sub-aggregation port. If the protection sub-aggregation port is not configured, go to step S1114; if the protection sub-aggregation port is configured, go to step S1110.
  • step S1110 it is determined whether the protection sub-aggregation port is in a failed state. If the result of the determination is a failure state, the process goes to step S1114; if the result of the determination is normal, the process goes to step S1112.
  • step S1112 the packet is forwarded through the protection sub-aggregation port according to the load sharing mode.
  • step S1114 the packet is forwarded out through the remaining members in the aggregation port according to the load sharing mode.
  • FIG. 12 is a third flowchart of a method for forwarding an aggregated port packet according to a preferred embodiment of the present invention. As shown in FIG. 12, the process includes the following steps:
  • Step S1202 Determine whether the characteristics of the received message (which may be, but are not limited to, the source IP address, the destination IP address, the source MAC address, the destination MAC address, the source port number, and the destination port number) of the packet match the configured matching rule. (If the source MAC address of the packet is configured as MAC1, MAC2, or MAC3 is forwarded by the specified member 1). If the result of the determination is no match, go to step S1214; if the result of the determination is match, go to step S1204.
  • step S1204 it is determined whether the designated member in the matching rule is in a invalid state. If the result of the determination is a failure state, the process goes to step S1208; if the result of the determination is normal, the process goes to step S1206.
  • step S1206 the packet is forwarded through the designated member.
  • step S1208 it is determined whether a protection member is configured for the designated member. If the protection member is not configured, go to step S1214; if the protection member is configured, go to step S1210.
  • step S1210 it is determined whether the protection member is in a failed state. If the result of the determination is a failure state, the process goes to step S1214; if the result of the determination is normal, the process goes to step S1212.
  • step S1212 the packet is forwarded through the protection member.
  • step S1214 the packet is forwarded out through the remaining members in the aggregation port according to the load sharing mode.
  • an administrator can configure a sub-aggregation port or a designated member to achieve the purpose of forwarding a specific packet through a specific path.
  • configure a protection sub-aggregation port for the sub-aggregation port configure a protection member for the specified member, and disable the specified sub-aggregation port.
  • the packet is forwarded through the protection sub-aggregation port.
  • the specified sub-aggregation port and the protection sub-aggregation port are both invalid, the packets are forwarded through the remaining member load of the aggregation port.
  • the specified member fails, the packet is forwarded through the protection member.
  • the specified member and the protection member are invalid, the packets are forwarded through the remaining member load on the aggregation port.
  • the purpose of layered protection is achieved.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Abstract

本发明提供了一种聚合端口报文转发方法及装置。其中,该方法包括:获取成员链路保护策略和/或子聚合端口保护策略;根据成员链路保护策略和/或子聚合端口保护策略,进行报文转发;其中,成员链路保护策略包括:通过预设成员链路转发特定报文,并由预设成员链路的预设保护成员链路形成保护;子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由预设子聚合端口的预设保护子聚合端口形成保护。通过本发明实施例,解决了相关技术无法满足管理员指定转发成员及实施保护策略需求的问题,提高了聚合端口报文转发的灵活性。

Description

聚合端口报文转发方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种聚合端口报文转发方法及装置。
背景技术
通信网络设备中,负荷分担是一种通过多链路进行负载均衡的方法。形成负荷分担的接口称作聚合端口,聚合端口中的链路称作成员(或者成员链路)。如何选择成员转发报文,以及当已选择的成员失效时,如果进行成员保护,使承载在成员上的报文能够继续被转发,是负荷分担需要解决的问题。
对于负荷分担,是按照一定的算法计算(如哈希、轮询等)出报文的转发路径,然后通过聚合端口的相应成员转发出去。对于聚合端口的成员保护,当其中一个成员失效时,将报文承载到剩余成员上。通过算法计算报文转发路径的负荷分担方法,可以对报文进行有效的动态控制,也可以简化管理者的网络维护成本。
然而,发明人在研究过程中发现,在一些情况下,网络管理者希望了解特定的报文通过哪些成员被转发出去,以及希望能够通过管理员自己配置,使特定的报文被特定的成员转发出去。同时,也希望能够实施保护策略,当指定的成员失效时,能够通过指定成员的保护成员继续将报文转发出去。但是,现有的技术无法满足管理员指定转发成员及实施保护策略的需求。
针对相关技术无法满足管理员指定转发成员及实施保护策略需求的问题,目前没有提出有效的解决方案。
发明内容
为了解决上述技术问题,本发明提供了一种聚合端口报文转发方法及装置。
根据本发明实施例的一个方面,提供了一种聚合端口报文转发方法,包括:获取成员链路保护策略和/或子聚合端口保护策略;根据所述成员链路保护策略和/或所述子聚合端口保护策略,进行报文转发;其中,所述成员链路保护策略包括:通过预设成员链路转发特定报文,并由所述预设成员链路的预设保护成员链路形成保护;所述子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由所述预设子聚合端口的预设保护子聚合端口形成保护。
优选地,根据所述成员链路保护策略进行报文转发包括:通过所述预设成员链路转发所述特定报文;在所述预设成员链路失效的情况下,通过所述预设保护成员链路转发所述特定报文。
优选地,根据所述成员链路保护策略进行报文转发还包括:在所述预设成员链路、所述 预设保护成员链路均失效的情况下,通过聚合端口中的其他成员链路按照普通负荷分担方式转发所述特定报文。
优选地,根据所述子聚合端口保护策略进行报文转发包括:通过所述预设子聚合端口转发所述报文;在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述报文。
优选地,根据所述子聚合端口保护策略进行报文转发包括:配置所述预设子聚合端口对应的特定报文;通过所述预设子聚合端口转发所述特定报文;在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述特定报文。
优选地,根据所述成员链路保护策略进行报文转发还包括:在所述预设子聚合端口、所述预设保护子聚合端口均失效的情况下,通过聚合端口中的其他成员链路转发所述报文或者所述特定报文。
优选地,所述方法还包括:在通过所述预设子聚合端口或者所述预设保护子聚合端口转发所述报文或者所述特定报文的情况下,按照普通负荷分担方式转发所述报文或者所述特定报文。
根据本发明实施例的另一个方面,还提供了一种聚合端口报文转发装置,包括:获取模块,设置为获取成员链路保护策略和/或子聚合端口保护策略;转发模块,设置为根据所述成员链路保护策略和/或所述子聚合端口保护策略,进行报文转发;其中,所述成员链路保护策略包括:通过预设成员链路转发特定报文,并由所述预设成员链路的预设保护成员链路形成保护;所述子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由所述预设子聚合端口的预设保护子聚合端口形成保护。
优选地,所述转发模块包括:第一转发单元,设置为通过所述预设成员链路转发所述特定报文;第一切换单元,设置为在所述预设成员链路失效的情况下,通过所述预设保护成员链路转发所述特定报文。
优选地,所述转发模块还包括:第二切换单元,设置为在所述预设成员链路、所述预设保护成员链路均失效的情况下,通过聚合端口中的其他成员链路按照普通负荷分担方式转发所述特定报文。
优选地,所述转发模块包括:第二转发单元,设置为通过所述预设子聚合端口转发所述报文;第三切换单元,设置为在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述报文。
优选地,所述转发模块包括:配置单元,设置为配置所述预设子聚合端口对应的特定报文;第三转发单元,设置为通过所述预设子聚合端口转发所述特定报文;第四切换单元,设置为在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述特定报文。
优选地,所述转发模块还包括:第五切换单元,设置为在所述预设子聚合端口、所述预 设保护子聚合端口均失效的情况下,通过聚合端口中的其他成员链路转发所述报文或者所述特定报文。
通过本发明实施例,采用获取成员链路保护策略和/或子聚合端口保护策略;根据成员链路保护策略和/或子聚合端口保护策略,进行报文转发;其中,成员链路保护策略包括:通过预设成员链路转发特定报文,并由预设成员链路的预设保护成员链路形成保护;子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由预设子聚合端口的预设保护子聚合端口形成保护的方式,解决了相关技术无法满足管理员指定转发成员及实施保护策略需求的问题,提高了聚合端口报文转发的灵活性。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的聚合端口报文转发方法的流程图;
图2是根据本发明实施例的聚合端口报文转发装置的结构示意图;
图3是根据本发明实施例的聚合端口报文转发装置的优选结构示意图一;
图4是根据本发明实施例的聚合端口报文转发装置的优选结构示意图二;
图5是根据本发明实施例的聚合端口报文转发装置的优选结构示意图三;
图6是根据本发明实施例的聚合端口报文转发装置的优选结构示意图四;
图7是根据本发明实施例的聚合端口报文转发装置的优选结构示意图五;
图8是根据本发明优选实施例的聚合端口报文转发方法的流程图一;
图9是根据本发明优选实施例的聚合端口报文转发装置的结构示意图;
图10是根据本发明优选实施例的分层保护策略的配置方法的流程图;
图11是根据本发明优选实施例的聚合端口报文转发方法的流程图二;
图12是根据本发明优选实施例的聚合端口报文转发方法的流程图三。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利 要求书、以及附图中所特别指出的结构来实现和获得。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明实施例提供了一种聚合端口报文转发方法,图1是根据本发明实施例的聚合端口报文转发方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,获取成员链路保护策略和/或子聚合端口保护策略,其中,成员链路保护策略包括:通过预设成员链路转发特定报文,并由预设成员链路的预设保护成员链路形成保护;子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由预设子聚合端口的预设保护子聚合端口形成保护;
步骤S104,根据成员链路保护策略和/或子聚合端口保护策略,进行报文转发。
其中,上述的特定报文是指:具有预设的标识信息的报文,该标识信息可以随同成员链路保护策略一起下发,也可以单独由用户进行配置。上述的标识信息可以包括但不限于以下的特征:源因特网协议(IP)地址、目的IP地址、源多媒体接入控制(MAC)地址、目的MAC地址、源端口号、目的端口号。
在上述步骤中,在采用成员链路保护策略和/或子聚合端口保护策略时,可以通过用户的配置使得特定报文通过对应成员链路转发,或者使得聚合端口中形成预设子聚合端口对报文进行转发,相对于相关技术中直接通过计算的方式实现负荷分担的方式,通过本发明实施例的上述步骤,解决了相关技术无法满足管理员指定转发成员及实施保护策略需求的问题,提高了聚合端口报文转发的灵活性。
下面分别对两种保护策略进行说明。
方式一:成员链路保护策略
优选地,在采用成员链路保护策略进行报文转发时,在步骤S104中可以采用下列方式:通过预设成员链路转发特定报文;在预设成员链路失效的情况下,通过预设保护成员链路转发特定报文。即,对于特定报文而言,转发链路以及该转发链路的保护链路都可以是预先配置的。此外,本发明实施例中,对成员链路保护策略或者子聚合端口保护策略的配置过程中,可以采用成员链路标识与特定报文的标识信息相应设置的方式进行配置。
优选地,在某些情况下可能会出现预设成员链路、预设保护成员链路均失效的情况,为了保障报文的转发性能,在步骤S104中还可以在预设成员链路、预设保护成员链路均失效的情况下,通过聚合端口中的其他成员链路转发特定报文。较优的,在采用其他成员链路转发特定报文时,可以按照普通负荷分担方式进行转发。
方式二:子聚合端口保护策略
优选地,在采用子聚合端口保护策略进行报文转发时,在步骤S104中可以采用下列方式:通过预设子聚合端口转发报文;在预设子聚合端口失效的情况下,通过预设保护子聚合端口转发报文。即将聚合端口中的部分成员链路配置为预设子聚合端口,并优先通过预设子聚合端口转发报文。
优选地,为了进一步增强报文转发的灵活性,在本发明实施例中还提供了一种对预设子聚合端口配置相应的特定报文,并在预设子聚合端口中转发特定报文的方式,例如:配置预设子聚合端口对应的特定报文;通过预设子聚合端口转发特定报文;在预设子聚合端口失效的情况下,通过预设保护子聚合端口转发特定报文。
优选地,在某些情况下可能会出现预设子聚合端口、预设保护子聚合端口均失效的情况。为了保证报文的转发性能,在步骤S104中还可以在预设子聚合端口、预设保护子聚合端口均失效的情况下,通过聚合端口中的其他成员链路转发报文或者特定报文。
需要说明的是,上述方式一和方式二可以单独实施,但在不冲突的情况下,也可以结合实施,例如在方式二中的预设子聚合端口中进行报文转发时,采用方式一的方式,而不采用普通负荷分担的方式。
优选地,在方式二中,在通过预设子聚合端口或者预设保护子聚合端口转发报文或者特定报文的情况下,按照普通负荷分担方式转发报文或者特定报文。
在本实施例中还提供了一种聚合端口报文转发装置,用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述,下面对该装置中涉及到的模块进行说明。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的聚合端口报文转发装置的结构示意图,如图2所示,该装置包括:获取模块22和转发模块24,其中,获取模块22,设置为获取成员链路保护策略和/或子聚合端口保护策略;转发模块24,耦合至获取模块22,设置为根据成员链路保护策略和/或子聚合端口保护策略,进行报文转发。
其中,成员链路保护策略包括:通过预设成员链路转发特定报文,并由预设成员链路的预设保护成员链路形成保护;子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由预设子聚合端口的预设保护子聚合端口形成保护。
通过上述模块的综合作用,解决了相关技术无法满足管理员指定转发成员及实施保护策略需求的问题,提高了聚合端口报文转发的灵活性。
图3是根据本发明实施例的聚合端口报文转发装置的优选结构示意图一,如图3所示,优选地,转发模块24包括:第一转发单元32,设置为通过预设成员链路转发特定报文;第一切换单元34,耦合至第一转发单元32,设置为在预设成员链路失效的情况下,通过预设保护成员链路转发特定报文。
图4是根据本发明实施例的聚合端口报文转发装置的优选结构示意图二,如图4所示,优选地,转发模块24还包括:第二切换单元36,耦合至第一切换单元34,设置为在预设成员链路、预设保护成员链路均失效的情况下,通过聚合端口中的其他成员链路按照普通负荷分担方式转发特定报文。
图5是根据本发明实施例的聚合端口报文转发装置的优选结构示意图三,如图5所示,优选地,转发模块24包括:第二转发单元52,设置为通过预设子聚合端口转发报文;第三切换单元54,耦合至第二转发单元52,设置为在预设子聚合端口失效的情况下,通过预设保护子聚合端口转发报文。
图6是根据本发明实施例的聚合端口报文转发装置的优选结构示意图四,如图6所示,优选地,转发模块24包括:配置单元62,设置为配置预设子聚合端口对应的特定报文;第三转发单元64,耦合至配置单元62,设置为通过预设子聚合端口转发特定报文;第四切换单元66,耦合至第三转发单元64,设置为在预设子聚合端口失效的情况下,通过预设保护子聚合端口转发特定报文。
图7是根据本发明实施例的聚合端口报文转发装置的优选结构示意图五,如图7所示,优选地,转发模块24还包括:第五切换单元72,第三切换单元54或者第四切换单元66,设置为在预设子聚合端口、预设保护子聚合端口均失效的情况下,通过聚合端口中的其他成员链路转发报文或者特定报文。
优选地,在上述装置中,通过预设子聚合端口或者预设保护子聚合端口转发报文或者特定报文的情况下,按照普通负荷分担方式转发报文或者特定报文。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
为了使本发明实施例的描述更加清楚,下面结合优选实施例进行描述和说明。
本发明优选实施例旨在提供一种分层保护的负荷分担方法和装置,解决现有负荷分担技术存在的无法使管理者指定特定的成员转发特定报文,以及对指定成员再指定保护成员的问题。
为了实现上述目的,在本发明优选实施例中分别提供了一种方法和装置。
其中,分层保护的负荷分担方法包括:管理者配置负荷分担的分层保护,指定分层保护模式:成员保护模式(即成员链路保护模式)和子聚合端口保护模式。
优选地,上述方法中的成员保护模式,包括:配置特定报文的指定成员,也即配置报文转发匹配规则。
优选地,成员保护模式,还包括:给指定成员配置保护成员。
优选地,成员保护模式中,当指定成员失效时,报文切换到保护成员上转发。
优选地,成员保护模式中,当指定成员和保护成员都失效时,报文切换到聚合端口中的其余成员上。其中,其余成员按照普通负荷分担方式转发报文。
优选地,上述方法中的子聚合端口模式,包括:配置子聚合端口及其成员。
优选地,子聚合端口模式,还包括:配置特定报文的指定子聚合端口,也即配置报文转发匹配规则。
优选地,子聚合端口模式,还包括:给指定的子聚合端口配置保护子聚合端口。
优选地,子聚合端口模式中,子聚合端口的所有成员按照普通负荷分担方式转发报文。
优选地,子聚合端口模式中,当子聚合端口失效时,报文切换到保护子聚合端口上转发。其中,保护子聚合端口的所有成员按照普通负荷分担方式转发报文。
优选地,当子聚合端口和保护子聚合端口都失效时,报文切换到聚合端口中的其余成员上。其中,其余成员按照普通负荷分担方式转发报文。
分层保护的负荷分担装置包括:配置模块,设置为管理者配置分层保护及模式。
优选地,上述装置的配置模块中,当管理员配置成员保护方式时,还包括:配置匹配规则、配置保护成员。
优选地,配置模块中,当管理员配置子聚合端口保护方式时,还包括:配置子聚合端口及其成员、配置匹配规则、配置保护子聚合端口及其成员。
优选地,上述装置中,还包括:匹配模块,设置为将接收到的报文与配置的匹配规则进行匹配,并将匹配结果输送给装置中的另一模块:保护模块。
保护模块,设置为根据匹配模块输送的匹配结果以及成员(或子聚合端口)及保护成员(或子聚合端口)的状态,进行转发路径计算和决策,并将决策结果输送给装置中的另一模块:转发模块。
转发模块,设置为根据保护模块决策出的转发路径,将报文转发出去。
下面进一步对本发明优选实施例提供的方法和装置进行描述。
优选实施例一
图8是根据本发明优选实施例的聚合端口报文转发方法的流程图一,如图8所示,该流程包括如下步骤:
步骤S802,根据配置的分层保护模式,将接收的报文与配置的匹配规则进行匹配。
其中,上述分层保护模式涉及两种:成员保护模式和子聚合端口保护模式。上述的匹配规则涉及的特征可以是但不局限于:报文的源IP地址、目的IP地址、源MAC地址、目的MAC地址、源端口号、目的端口号。同时,匹配规则涉及的特征的数量可以是单个、多个或 者一个连续的范围。
步骤S804,根据匹配结果以及配置的保护策略,决策报文的转发路径。
其中,当上述匹配结果失败时,接收的报文通过聚合端口中的剩余端口按照普通负荷分担方式转发出去;当上述匹配结果成功时,根据是否为指定成员或子聚合端口配置保护成员或子聚合端口的策略,并根据各成员或子聚合端口的状态是否失效,决策转发路径。
步骤S806,根据步骤S804决策的转发路径,将接收的报文转发出去。
优选实施例二
图9是根据本发明优选实施例的聚合端口报文转发装置的结构示意图,如图9所示,该装置包括:配置模块92,设置为配置分层保护,及分层保护的优选模式:成员保护模式和子聚合端口保护模式;匹配模块94,设置为将接收到的报文与配置的匹配规则进行匹配,并将匹配结果输送给装置中的保护模块96;保护模块96,设置为根据匹配模块输送的匹配结果以及成员(或子聚合端口)及保护成员(或子聚合端口)的状态,进行转发路径计算和决策,并将决策结果输送给装置中的转发模块98;转发模块98,设置为根据保护模块96决策出的转发路径,将报文转发出去。
在本发明优选实施例中,还对分层保护策略的配置进行了简要说明。图10是根据本发明优选实施例的分层保护策略的配置方法的流程图,如图10所示,该流程包括如下步骤:
步骤S1002,配置聚合端口及其成员,转步骤S1004。
步骤S1004,不配置分层保护,则配置结束。报文按照普通的负荷分担方式转发;配置分层保护,则转步骤S1006。
步骤S1006,配置成员保护模式,则转步骤S1008;不配置成员保护,则转步骤S1010。
步骤S1008,配置保护成员,转步骤S1016。
步骤S1010,配置子聚合端口保护模式,转步骤S1012。
步骤S1012,配置子聚合端口及其成员,转步骤S1014。
步骤S1014,配置保护子聚合端口及其成员,转步骤S1016。
步骤S1016,配置匹配规则,即为符合某特征的报文指定转发成员或指定子聚合端口,配置结束。
优选实施例三
图11是根据本发明优选实施例的聚合端口报文转发方法的流程图二,如图11所示,该流程包括如下步骤:
步骤S1102,判断接收报文的特征(可以是但不局限于:报文的源IP地址、目的IP地址、 源MAC地址、目的MAC地址、源端口号、目的端口号)是否与配置的匹配规则(如配置报文源IP特征为IP1或为IP2通过子聚合端口1转发)匹配。若判断结果为不匹配,转步骤S1114;若判断结果为匹配,转步骤S1104。
步骤S1104,判断匹配规则中所指定的子聚合端口是否处于失效状态。若判断结果为失效状态,转步骤S1108;若判断结果为正常状态,转步骤S1106。
步骤S1106,将报文按照负荷分担方式通过子聚合端口转发出去。
步骤S1108,判断是否给指定子聚合端口配置了保护子聚合端口。若没有配置保护子聚合端口,转步骤S1114;若配置了保护子聚合端口,转步骤S1110。
步骤S1110,判断保护子聚合端口是否处于失效状态。若判断结果为失效状态,转步骤S1114;若判断结果为正常状态,转步骤S1112。
步骤S1112,将报文按照负荷分担方式通过保护子聚合端口转发出去。
步骤S1114,将报文按照负荷分担方式通过聚合端口中的剩余成员转发出去。
优选实施例四
图12是根据本发明优选实施例的聚合端口报文转发方法的流程图三,如图12所示,该流程包括如下步骤:
步骤S1202,判断接收报文的特征(可以是但不局限于:报文的源IP地址、目的IP地址、源MAC地址、目的MAC地址、源端口号、目的端口号)是否与配置的匹配规则(如配置报文源MAC特征为MAC1、MAC2或MAC3通过指定成员1转发)匹配。若判断结果为不匹配,转步骤S1214;若判断结果为匹配,转步骤S1204。
步骤S1204,判断匹配规则中指定成员是否处于失效状态。若判断结果为失效状态,转步骤S1208;若判断结果为正常状态,转步骤S1206。
步骤S1206,将报文通过指定成员转发出去。
步骤S1208,判断是否给指定成员配置了保护成员。若没有配置保护成员,转步骤S1214;若配置了保护成员,转步骤S1210。
步骤S1210,判断保护成员是否处于失效状态。若判断结果为失效状态,转步骤S1214;若判断结果为正常状态,转步骤S1212。
步骤S1212,将报文通过保护成员转发出去。
步骤S1214,将报文按照负荷分担方式通过聚合端口中的剩余成员转发出去。
通过本发明的上述实施例和优选实施例可以看出,通过本发明实施例,一方面,管理员可以通过配置子聚合端口或指定成员,达到特定的报文通过特定的路径转发的目的;另一方面,给子聚合端口配置保护子聚合端口,给指定成员配置保护成员,当指定子聚合端口失效 时,通过保护子聚合端口转发报文,当指定子聚合端口和保护子聚合端口均失效时,通过聚合端口中的剩余成员负荷分担转发报文。当指定成员失效时,通过保护成员转发报文,当指定成员和保护成员均失效时,通过聚合端口中的剩余成员负荷分担转发报文。达到了分层保护的目的。
工业实用性:通过上述描述可知,本发明实施例在采用成员链路保护策略和/或子聚合端口保护策略时,可以通过用户的配置使得特定报文通过对应成员链路转发,或者使得聚合端口中形成预设子聚合端口对报文进行转发,相对于相关技术中直接通过计算的方式实现负荷分担的方式,通过本发明实施例的上述步骤,解决了相关技术无法满足管理员指定转发成员及实施保护策略需求的问题,提高了聚合端口报文转发的灵活性。
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的对象在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (13)

  1. 一种聚合端口报文转发方法,包括:
    获取成员链路保护策略和/或子聚合端口保护策略;
    根据所述成员链路保护策略和/或所述子聚合端口保护策略,进行报文转发;
    其中,所述成员链路保护策略包括:通过预设成员链路转发特定报文,并由所述预设成员链路的预设保护成员链路形成保护;所述子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由所述预设子聚合端口的预设保护子聚合端口形成保护。
  2. 根据权利要求1所述的方法,其中,根据所述成员链路保护策略进行报文转发包括:
    通过所述预设成员链路转发所述特定报文;
    在所述预设成员链路失效的情况下,通过所述预设保护成员链路转发所述特定报文。
  3. 根据权利要求2所述的方法,其中,根据所述成员链路保护策略进行报文转发还包括:
    在所述预设成员链路、所述预设保护成员链路均失效的情况下,通过聚合端口中的其他成员链路按照普通负荷分担方式转发所述特定报文。
  4. 根据权利要求1所述的方法,其中,根据所述子聚合端口保护策略进行报文转发包括:
    通过所述预设子聚合端口转发所述报文;
    在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述报文。
  5. 根据权利要求1所述的方法,其中,根据所述子聚合端口保护策略进行报文转发包括:
    配置所述预设子聚合端口对应的特定报文;
    通过所述预设子聚合端口转发所述特定报文;
    在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述特定报文。
  6. 根据权利要求4或5所述的方法,其中,根据所述成员链路保护策略进行报文转发还包括:
    在所述预设子聚合端口、所述预设保护子聚合端口均失效的情况下,通过聚合端口中的其他成员链路转发所述报文或者所述特定报文。
  7. 根据权利要求4至6中任一项所述的方法,其中,所述方法还包括:
    在通过所述预设子聚合端口或者所述预设保护子聚合端口转发所述报文或者所述特定报文的情况下,按照普通负荷分担方式转发所述报文或者所述特定报文。
  8. 一种聚合端口报文转发装置,包括:
    获取模块,设置为获取成员链路保护策略和/或子聚合端口保护策略;
    转发模块,设置为根据所述成员链路保护策略和/或所述子聚合端口保护策略,进行报文转发;
    其中,所述成员链路保护策略包括:通过预设成员链路转发特定报文,并由所述预设成员链路的预设保护成员链路形成保护;所述子聚合端口保护策略包括:通过预设子聚合端口转发报文,并由所述预设子聚合端口的预设保护子聚合端口形成保护。
  9. 根据权利要求8所述的装置,其中,所述转发模块包括:
    第一转发单元,设置为通过所述预设成员链路转发所述特定报文;
    第一切换单元,设置为在所述预设成员链路失效的情况下,通过所述预设保护成员链路转发所述特定报文。
  10. 根据权利要求9所述的装置,其中,所述转发模块还包括:
    第二切换单元,设置为在所述预设成员链路、所述预设保护成员链路均失效的情况下,通过聚合端口中的其他成员链路按照普通负荷分担方式转发所述特定报文。
  11. 根据权利要求8所述的装置,其中,所述转发模块包括:
    第二转发单元,设置为通过所述预设子聚合端口转发所述报文;
    第三切换单元,设置为在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述报文。
  12. 根据权利要求8所述的装置,其中,所述转发模块包括:
    配置单元,设置为配置所述预设子聚合端口对应的特定报文;
    第三转发单元,设置为通过所述预设子聚合端口转发所述特定报文;
    第四切换单元,设置为在所述预设子聚合端口失效的情况下,通过所述预设保护子聚合端口转发所述特定报文。
  13. 根据权利要求11或12所述的装置,其中,所述转发模块还包括:
    第五切换单元,设置为在所述预设子聚合端口、所述预设保护子聚合端口均失效的情况下,通过聚合端口中的其他成员链路转发所述报文或者所述特定报文。
PCT/CN2015/088167 2015-04-24 2015-08-26 聚合端口报文转发方法及装置 WO2016169177A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510202029.2 2015-04-24
CN201510202029.2A CN106161231A (zh) 2015-04-24 2015-04-24 聚合端口报文转发方法及装置

Publications (1)

Publication Number Publication Date
WO2016169177A1 true WO2016169177A1 (zh) 2016-10-27

Family

ID=57142894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088167 WO2016169177A1 (zh) 2015-04-24 2015-08-26 聚合端口报文转发方法及装置

Country Status (2)

Country Link
CN (1) CN106161231A (zh)
WO (1) WO2016169177A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109792570A (zh) * 2017-02-11 2019-05-21 柏思科技有限公司 通过网络节点处的隧道组传输信息包的方法和系统
CN113709053A (zh) * 2021-08-03 2021-11-26 杭州迪普科技股份有限公司 一种基于流定义的分流方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016624A1 (en) * 1998-05-04 2003-01-23 Bare Ballard C. Path recovery on failure in load balancing switch protocols
CN102137025A (zh) * 2011-04-20 2011-07-27 福建星网锐捷网络有限公司 报文转发方法、装置及交换芯片
CN102185784A (zh) * 2011-05-26 2011-09-14 杭州华三通信技术有限公司 一种自动保护切换方法及其装置
CN102299846A (zh) * 2011-08-19 2011-12-28 杭州华三通信技术有限公司 一种bfd报文传输方法和设备
CN102412979A (zh) * 2010-09-26 2012-04-11 杭州华三通信技术有限公司 降低链路聚合端口报文丢失的方法及通信设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307140B (zh) * 2011-08-17 2014-12-24 杭州华三通信技术有限公司 一种基于端口聚合的报文处理方法及其装置
CN103780510B (zh) * 2012-10-19 2020-03-17 中兴通讯股份有限公司 链路聚合组中流量路径的协商方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016624A1 (en) * 1998-05-04 2003-01-23 Bare Ballard C. Path recovery on failure in load balancing switch protocols
CN102412979A (zh) * 2010-09-26 2012-04-11 杭州华三通信技术有限公司 降低链路聚合端口报文丢失的方法及通信设备
CN102137025A (zh) * 2011-04-20 2011-07-27 福建星网锐捷网络有限公司 报文转发方法、装置及交换芯片
CN102185784A (zh) * 2011-05-26 2011-09-14 杭州华三通信技术有限公司 一种自动保护切换方法及其装置
CN102299846A (zh) * 2011-08-19 2011-12-28 杭州华三通信技术有限公司 一种bfd报文传输方法和设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109792570A (zh) * 2017-02-11 2019-05-21 柏思科技有限公司 通过网络节点处的隧道组传输信息包的方法和系统
US11799686B2 (en) 2017-02-11 2023-10-24 Pismo Labs Technology Limited Methods and systems for transmitting information packets through tunnel groups at a network node
CN113709053A (zh) * 2021-08-03 2021-11-26 杭州迪普科技股份有限公司 一种基于流定义的分流方法及装置
CN113709053B (zh) * 2021-08-03 2023-05-26 杭州迪普科技股份有限公司 一种基于流定义的分流方法及装置

Also Published As

Publication number Publication date
CN106161231A (zh) 2016-11-23

Similar Documents

Publication Publication Date Title
JP7004405B2 (ja) 仮想ネットワークにおける分散型フロー状態p2p設定のためのシステムおよび方法
US8954957B2 (en) Network traffic processing according to network traffic rule criteria and transferring network traffic metadata in a network device that includes hosted virtual machines
US8990433B2 (en) Defining network traffic processing flows between virtual machines
US9590903B2 (en) Systems and methods for optimizing layer three routing in an information handling system
CN106878047B (zh) 故障处理方法及装置
US9509615B2 (en) Managing link aggregation traffic in a virtual environment
US9286444B2 (en) Next generation secure gateway
US8572609B2 (en) Configuring bypass functionality of a network device based on the state of one or more hosted virtual machines
WO2019148839A1 (zh) 防火墙配置、报文发送方法和装置
US8634437B2 (en) Extended network protocols for communicating metadata with virtual machines
CN102223365B (zh) 基于ssl vpn网关集群的用户接入方法及其装置
US11115391B2 (en) Securing end-to-end virtual machine traffic
US20140307744A1 (en) Service Chain Policy for Distributed Gateways in Virtual Overlay Networks
EP2882162B1 (en) Data stream security processing method and apparatus
US7995499B2 (en) Minimizing spanning-tree protocol event processing and flooding in distribution networks
US8938521B2 (en) Bi-directional synchronization enabling active-active redundancy for load-balancing switches
US9350666B2 (en) Managing link aggregation traffic in a virtual environment
US10848432B2 (en) Switch fabric based load balancing
US9686178B2 (en) Configuring link aggregation groups to perform load balancing in a virtual environment
CN105681198B (zh) 一种业务链处理方法、设备及系统
EP3292666B1 (en) Multicast data packet forwarding
EP3292661B1 (en) Packet forwarding
WO2021042445A1 (zh) 一种二层专线网络系统、配置方法及设备
JP6437692B2 (ja) パケット転送
WO2017036163A1 (zh) 一种报文发送方法及系统

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: 15889664

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: 15889664

Country of ref document: EP

Kind code of ref document: A1