WO2016206555A1 - 堆叠系统协议控制和转发链路分离的方法、装置及交换机 - Google Patents

堆叠系统协议控制和转发链路分离的方法、装置及交换机 Download PDF

Info

Publication number
WO2016206555A1
WO2016206555A1 PCT/CN2016/085884 CN2016085884W WO2016206555A1 WO 2016206555 A1 WO2016206555 A1 WO 2016206555A1 CN 2016085884 W CN2016085884 W CN 2016085884W WO 2016206555 A1 WO2016206555 A1 WO 2016206555A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
stack
protocol control
link
neighbor
Prior art date
Application number
PCT/CN2016/085884
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 WO2016206555A1 publication Critical patent/WO2016206555A1/zh

Links

Images

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • switches With the vigorous development of government and enterprise networks, switches are widely used. In the market, switches need to be combined like building blocks to meet different network scales and a stacking system is established.
  • the establishment of the stacking system, the data forwarding link and the protocol control link often use the same physical link.
  • the service packet and the protocol packet inevitably affect each other, thereby causing service packet loss.
  • the stack system is unstable and so on.
  • This paper provides a method, device and switch for stacking system protocol control and forwarding link separation, which automatically decouples the protocol control link and data forwarding link of the stack system to avoid mutual interference between links. .
  • a stacking system protocol control and forwarding link separation method is applied to a switch, and the switch has started a stacking mode, and the method includes:
  • the protocol control link and the data forwarding link are separated according to the protocol of the link neighboring protocol of the switch and the logarithm of the data forwarding link and the preset rules.
  • the determining, according to the received stack neighbor response message corresponding to the stack neighbor discovery message, the number of the protocol control link and the data forwarding link of the stack neighbor corresponding to the switch include:
  • controlling the link of the link and the data forwarding link according to the protocol of the stack neighbor corresponding to the switch and the preset rules, and separating the protocol control link and the data forwarding link including:
  • a preset number of ports in the port of the stack neighbor are selected as the protocol control port according to a preset rule
  • the selecting a preset number of ports in the port of the stack neighbor as the protocol control port according to the preset rule includes:
  • the port with the smallest bandwidth in the stack neighbor is the protocol control port according to the bandwidth in the port information. If the bandwidth of the port is the same, the port with the smallest ID is the protocol control port; or
  • the port with the most traffic in the stack neighbor is the protocol control port. If the traffic of the port is the same, the port with the smallest ID is the protocol control port; or
  • the port with the smallest ID among the stack neighbors is selected as the protocol control port.
  • the controlling the link and the data forwarding according to the protocol of the stack neighbor corresponding to the switch also include:
  • the port of the protocol control link is determined according to the MAC address size of the switch and the stack neighbor.
  • controlling the link of the link and the data forwarding link according to the protocol of the stack neighbor of the switch and the preset rules, and separating the protocol control link and the data forwarding link further include:
  • the port is selected as a protocol control port and a data forwarding port.
  • a device for controlling the separation of a stacking system protocol and a forwarding link is applied to a switch, and the switch has been in a stacking mode, and the device includes:
  • the sending module is configured to send a stack neighbor discovery message through the configured stack port.
  • the determining module is configured to: determine, according to the received stack neighbor response message corresponding to the stack neighbor discovery message, the number of the protocol control link and the data forwarding link of the stack neighbor;
  • the separation module is configured to: separate the protocol control link and the data forwarding link according to the protocol control link of the stack neighbor and the logarithm of the data forwarding link and the preset rules determined by the determining module.
  • the determining module includes:
  • the first acquiring sub-module is configured to: obtain the hardware MAC address in the stack neighbor response message corresponding to the received stack neighbor discovery message;
  • a first determining sub-module configured to: determine, according to the MAC address obtained by the first acquiring sub-module, a number of stack neighbors that establish a stack with the switch;
  • a second determining sub-module configured to: determine, according to the number of the stack neighbors determined by the first determining sub-module, a protocol control link and a data forwarding link of the stack neighbor corresponding to the switch logarithm.
  • the separation module includes:
  • the second obtaining sub-module is configured to: obtain, according to a protocol of the stack neighbor relationship of the switch, a port number of the link and the data forwarding link, and obtain port information of each of the stack neighbors; where the port information includes a port Number, bandwidth, ID number, and traffic;
  • the first selection sub-module is configured to: when the number of ports of the stack neighbors acquired by the second acquisition sub-module is greater than a preset value, select a preset in the port of the stack neighbor according to a preset rule.
  • the number of ports as the protocol control port;
  • a second selection sub-module configured to: select a remaining port of the stack neighbor as a data forwarding port
  • a splitting module configured to: separate the protocol control link and the data forwarding chain according to the protocol control port selected by the first selection submodule and the data forwarding port selected by the second selection submodule road.
  • the first selection submodule includes:
  • the first selection unit is configured to: select, according to the bandwidth in the port information, a port with the smallest bandwidth among the stack neighbors as a protocol control port, and if the bandwidth of the port is the same, select a port with the smallest ID as a protocol control port; or ,
  • the second selecting unit is configured to: according to the traffic volume in the port information, select a port with the most traffic among the stack neighbors as a protocol control port, and if the traffic volume of the port is the same, select a port with the smallest ID as a protocol control. Port; or,
  • the third selection unit is configured to: select, according to the ID in the port information, a port with the smallest ID among the stack neighbors as a protocol control port.
  • the separating module further includes:
  • a third obtaining sub-module configured to: obtain port selection information of the stacking neighbor, where the port selection information is used to indicate a protocol control port of the switch selected by the stacking neighbor;
  • a third determining submodule configured to: when the protocol control port selected by the switch and the protocol control port selected by the stack neighbor are not corresponding ports, according to the switch and the stack neighbor The size of the home MAC address determines the port of the protocol control link.
  • the separating module further includes:
  • the third selection sub-module is configured to: when the number of ports of the stack neighbor is a preset value, select the port as a protocol control port and a data forwarding port.
  • a switch the switch having a stacking mode enabled, comprising the device of the stacking system protocol control and forwarding link separation described in any of the above.
  • the method, device, and switch for the protocol control and forwarding link separation of the stack system provided by the embodiment of the present invention send a stack neighbor discovery message through the configured stack port to discover the stack neighbor of the switch and receive the returned stack neighbor response.
  • the switch can determine the number of the protocol control link and the data forwarding link of the stack neighbor, and then control the link of the link and the data forwarding link according to the protocol and the preset rule separation protocol control link.
  • the data forwarding link is processed by the stack establishment protocol and the data forwarding protocol respectively.
  • the automatic separation of the protocol control link and the data forwarding link is achieved, and the two are decoupled to avoid mutual interference between the links.
  • FIG. 1 is a flowchart of a method for separating protocol control and forwarding links of a stacking system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for separating protocol control and forwarding links of a stacking system according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another method for separating protocol control and forwarding links in a stacking system according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of another apparatus for separating protocol control and forwarding links of a stacking system according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a determining module in an apparatus for separating protocol control and forwarding links of a stacking system provided by the embodiment shown in FIG. 5;
  • FIG. 7 is a schematic structural diagram of a separation module in a device for separating protocol control and forwarding links of the stack system provided by the embodiment shown in FIG. 5.
  • the present invention is directed to the data forwarding link and the protocol control link in the related art, and the same physical link is used.
  • the service packet and the protocol packet inevitably affect each other, thereby generating a service packet loss or stacking system.
  • the problem of instability and the like provides a method for stacking system protocol control and forwarding link separation. By automatically separating the protocol control link and the data forwarding link of the stack system, the two are decoupled to avoid mutual interference between the links. .
  • FIG. 1 a flowchart of a method for separating a protocol control and a forwarding link of a stacking system according to an embodiment of the present invention is provided.
  • the switch has been in the stack mode.
  • the method includes steps 11 to 13:
  • Step 11 Send a stack neighbor discovery message through the configured stack port.
  • the switch since the switch has been in the stack mode, the switch performs the configuration of the stack port. Therefore, the stack neighbor discovery message can be sent through the stack ports to discover one or more of the same stacking system as the switch. The switch, and the discovered switch can be called the stack neighbor of the switch.
  • Step 12 Determine, according to the received stack neighbor response message corresponding to the stack neighbor discovery message, the number of the protocol control link and the data forwarding link of the stack neighbor.
  • the stack neighbor after receiving the stack neighbor discovery message, the stack neighbor returns a stack neighbor response message, and the switch can determine the pair of the protocol control link and the data forwarding link of the stack neighbor corresponding to the switch by stacking the neighbor response message. Number, the switch will assign one for each stack neighbor For the protocol control link and the data forwarding link, of course, there is only one protocol control link, and the data forwarding link is not necessarily one, and may be multiple.
  • Step 13 The protocol control link and the data forwarding link are separated according to the protocol control link and the forwarding number of the data forwarding link and the preset rules according to the protocol of the stack neighbor.
  • the embodiment of the present invention sends a stack neighbor discovery message through the configured stack port to discover the stack neighbor of the switch.
  • the protocol of the stack neighbor corresponding to the switch can be determined. Controlling the number of pairs of links and data forwarding links, and then controlling the number of links and data forwarding links according to the protocol and pre-set rules, separating the protocol control link and the data forwarding link, respectively establishing protocols through stacking and Data forwarding protocol processing.
  • the stacking system after the method of the embodiment of the present invention is applied, and the adjacent switch 1 and switch 2 in the stack system respectively implement protocol control links and data forwarding chains through different physical links.
  • the road automatically separates the protocol control link and the data forwarding link to achieve decoupling between the two to avoid mutual interference between the links.
  • the stack neighbor discovery message can also be implemented by using the known protocol neighbor discovery protocol LLDP.
  • step 12 in this embodiment may include steps 121 to 123:
  • Step 121 Obtain a hardware MAC address in the stack neighbor response message corresponding to the received stack neighbor discovery message, where the MAC address is a Media Access Control (Media Access Control) address.
  • Media Access Control Media Access Control
  • step 11 the stack neighbor discovery message is sent through the configured stack port to discover the stack neighbor of the switch. Therefore, after receiving the stack neighbor discovery message, the stack neighbor of the switch returns a stack neighbor response message.
  • the stack response message can obtain the MAC address of the stack neighbor that returns the stack neighbor response message. If no stack neighbor response message is received, an alarm is generated to prompt the user to confirm that the port between the switches is connected.
  • Step 122 Determine, according to the MAC address, the number of stack neighbors that establish a stack with the switch.
  • each switch in the stack system has a MAC address, so it passes the MAC.
  • the number can be determined by the number of stack neighbors that are stacked with the switch.
  • Step 123 Determine, according to the number of the stack neighbors, the number of the protocol control link and the data forwarding link of the stack neighbor.
  • the switch has only one pair of protocol control links and data forwarding links for each stack neighbor. Therefore, the protocol control link and data forwarding chain of the stack neighbors can be determined according to the number of stack neighbors. The logarithm of the road.
  • Switch A sends a stack neighbor discovery message through the stack port. After receiving the stack neighbor discovery message, Switch B and Switch C return a stack neighbor response message to Switch A.
  • the stack neighbor response message carries the MAC address of the switch that sends the message.
  • Switch A receives five stack neighbor response messages, two carry the MAC address of switch B, and three carry the MAC address of switch C. There are two types of MAC addresses, and it is determined that there are two stack neighbors, so that there are two pairs of protocol control links and data forwarding links.
  • a stacking port may be configured, and a stack neighbor discovery message sent by the stack port may be received. If the port is connected, the response message sent by the stack neighbor may be received, and multiple stacking messages are sent from the plurality of response messages. The number of the stack neighbors is determined by the MAC address, and the number of the protocol control link and the data forwarding link of the stack neighbor is determined.
  • step 13 in this embodiment may include steps 131 to 134:
  • Step 131 Control the port number of the link and the data forwarding link according to the protocol of the stack neighbor of the switch, and obtain the port information of each stack neighbor.
  • the port information includes the number, bandwidth, and number of the port. ID) and business volume.
  • the switch After knowing the number of the protocol control link and the data forwarding link of the stack neighbor, the switch can determine the port information of each stack neighbor.
  • the port information such as the number of ports, is obtained.
  • Bandwidth, ID, traffic, etc. ID refers to the port number of the port on which the port belongs.
  • step 132 when the number of ports of the stack neighbor is greater than the preset value, a preset number of ports in the port of the stack neighbor are selected as the protocol control port according to a preset rule.
  • the preset value selects a preset number of ports in the port of the stacking neighbor as a protocol control port.
  • the preset value may be set according to a requirement of a protocol control link, and the preset value is also the preset number of values.
  • Step 133 Select the remaining port of the stack neighbor as the data forwarding port.
  • LACP Link Aggregation Control Protocol
  • Step 134 Control the link and the data forwarding link according to the selected protocol control port and the data forwarding port separation protocol.
  • the protocol control link and the data forwarding link can be implemented through the physical link of the corresponding port, and the protocol control link and the data forwarding link are separated.
  • switch A determines that there are two stack neighbors, so that after determining that there are two pairs of protocol control links and data forwarding links, it can be determined that five ports A1-A5 of switch A correspond to switch B.
  • the two ports B1 and B2 correspond to the three ports C1, C2, and C3 of the switch C, and then obtain the port information of each stack neighbor.
  • the port mappings between Switch A and Switch C are A1-C1, A2-C2, and A3-C3, and obtain the port information of the three ports of Switch C.
  • the default value is 1, and then according to the preset rules.
  • one port can be selected in C1, C2, and C3 as the protocol control port, which is assumed to be C1, and the remaining two ports C2 and C3 can be used as data forwarding ports.
  • C1 corresponds to A1
  • link A1C1 can be set as a protocol control link
  • links A2C2 and A3C3 are set as data forwarding links, thus realizing the separation of the protocol control link and the data forwarding link.
  • the link and data forwarding are controlled according to the protocol of the stack neighbor corresponding to the switch.
  • the logarithm of the link obtains the port information of each stack neighbor and selects the port of each stack neighbor.
  • the protocol control port and the data forwarding port of the switch and the stack neighbor are selected, and the protocol control link and the data forwarding link are separated, thereby achieving decoupling between the two and avoiding interference between the links.
  • step 132 may include one of steps 132a to 132c:
  • Step 132a According to the bandwidth in the port information, select the port with the smallest bandwidth among the stack neighbors as the protocol control port. If the bandwidth of the port is the same, the port with the smallest ID is the protocol control port; or
  • Step 132b according to the traffic volume in the port information, select the port with the most traffic in the stacking neighbor as the protocol control port. If the traffic of the port is the same, the port with the smallest ID is the protocol control port; or
  • Step 132c According to the ID in the port information, select the port with the smallest ID in the stack neighbor as the protocol control port.
  • the port information in this embodiment includes the bandwidth, the ID, the traffic, and the like.
  • the port with the smallest bandwidth can be selected as the protocol control port. If the bandwidth of the port is the same, the port with the smallest ID is the protocol control port. The port with the most traffic is the protocol control port. Of course, if the traffic of the port is the same, the port with the smallest ID is the protocol control port. You can also directly select the port with the smallest ID as the protocol control port.
  • the preset rule is not limited to the above case, and may be a weighted combination of one or more of the above criteria, or may be set according to other port information, and is not enumerated here.
  • switches are stack neighbors, and each switch is selected in the other port. This may occur, for example, switch A may select port B2 of switch B as the protocol control port, and switch A.
  • the port corresponding to B2 is A5, but the switch A selects the port A4 of the switch A as the protocol control port, and the selected conflict situation may occur. Therefore, the step 13 may further include:
  • Step 135 Obtain port selection information of the stack neighbor, where the port selection information is used to indicate a protocol control port of the switch selected by the stack neighbor.
  • Step 136 When the protocol control port selected by the switch and the protocol control port selected by the stack neighbor are not the corresponding ports, determine the port of the protocol control link according to the MAC address size of the switch and the stack neighbor.
  • the protocol control port selected by the stack neighbor corresponds to the protocol control port selected by the switch. If it is the same, you can directly separate the link, but if it does not, you need to If the two are unified, you can compare the MAC address size of the switch and the stack neighbor to determine the choice of the switch. For example, the port selected by the switch with the small MAC address is the control port.
  • the judgment of the size of the MAC address is only an implementation manner, and can also be implemented by other methods such as the size of the traffic, which are not enumerated here, and can be set in advance by the staff according to the needs.
  • the step 13 may further include:
  • Step 137 When the number of ports of the stacking neighbor is a preset value, the port is selected as a protocol control port and a data forwarding port.
  • the ports are protocol control ports and data forwarding. port.
  • the method for separating the protocol control and the forwarding link of the stacking system in the embodiment of the present invention automatically separates the protocol control chain under certain conditions without understanding the configuration difficulty by knowing various information of the ports of the stacking neighbors.
  • the road and the data forwarding link implement decoupling of the protocol control link and the data forwarding link to avoid mutual interference between the links.
  • FIG. 5 a schematic structural diagram of an apparatus for separating a protocol control and a forwarding link of a stacking system according to an embodiment of the present invention is provided.
  • the switch Applied to the switch, the switch has the stacking mode enabled.
  • the device includes:
  • the sending module 10 is configured to: send a stack neighbor discovery message through the configured stack port.
  • the determining module 20 is configured to: determine, according to the stack neighbor response message corresponding to the received stack neighbor discovery message, the protocol control link and the data forwarding link of the stack neighbor corresponding to the switch logarithm.
  • the separation module 30 is configured to: separate the protocol control link and the data forwarding link according to the protocol control link of the stack neighbor and the logarithm of the data forwarding link and the preset rules.
  • FIG. 6 is a schematic structural diagram of a determining module in an apparatus for separating protocol control and forwarding links provided by the embodiment shown in FIG.
  • the determining module 20 in this embodiment may include:
  • the first obtaining sub-module 201 is configured to: obtain the hardware MAC address in the stack neighbor response message corresponding to the received stack neighbor discovery message.
  • the first determining sub-module 202 is configured to determine, according to the MAC address acquired by the first obtaining sub-module 201, the number of stack neighbors that are stacked with the switch.
  • the second determining sub-module 203 is configured to determine, according to the number of stack neighbors determined by the first determining sub-module 202, the number of the protocol control link and the data forwarding link of the stack neighbor.
  • FIG. 7 is a schematic structural diagram of a separation module in an apparatus for separating protocol control and forwarding links provided by the embodiment shown in FIG.
  • the separation module 30 in this embodiment may include:
  • the second obtaining sub-module 301 is configured to: obtain the port information of each stack neighbor according to the protocol control link of the stack neighbor and the data forwarding link of the switch; wherein the port information includes the number of ports, Bandwidth, ID and traffic;
  • the first selection sub-module 302 is configured to: when the number of ports of the stack neighbors acquired by the second acquisition sub-module 301 is greater than a preset value, select a preset number of the ports of the stack neighbor according to a preset rule. Port as a protocol control port;
  • the second selection sub-module 303 is configured to: select a remaining port of the stack neighbor as a data forwarding port;
  • the ionization module 304 is configured to: separate the protocol control link and the data forwarding link according to the data forwarding port selected by the protocol control port selected by the first selection submodule 302 and the second selection submodule 303.
  • the first selection submodule 302 may include:
  • a first selecting unit configured to: select the stack neighbor according to a bandwidth in the port information
  • the port with the smallest centered bandwidth is the protocol control port. If the bandwidth of the port is the same, the port with the smallest ID is the protocol control port; or
  • the second selecting unit is configured to: according to the traffic volume in the port information, select a port with the most traffic among the stack neighbors as a protocol control port, and if the traffic volume of the port is the same, select a port with the smallest ID as a protocol control. Port; or,
  • the third selection unit is configured to: select, according to the ID in the port information, a port with the smallest ID among the stack neighbors as a protocol control port.
  • the separation module 30 may further include:
  • a third obtaining sub-module configured to: obtain port selection information of the stacking neighbor, where the port selection information is used to indicate a protocol control port of the switch selected by the stacking neighbor;
  • a third determining sub-module configured to: determine, according to a MAC address size of the switch and the stack neighbor, when a protocol control port selected by the switch and a protocol control port selected by the stack neighbor are not corresponding ports The port that controls the link.
  • the separation module 30 may further include:
  • the third selection sub-module is configured to: when the number of ports of the stack neighbor is a preset value, select the port as a protocol control port and a data forwarding port.
  • the sending module sends a stack neighbor discovery message through the configured stacking port to discover the stack neighbor of the switch, and receives the returned stack neighbor response message.
  • the determining module can determine the number of the protocol control link and the data forwarding link of the stack neighbor corresponding to the stack neighbor, and then the separation module controls the logarithm of the link and the data forwarding link according to the protocol, and a preset rule separation protocol.
  • the control link and the data forwarding link are respectively processed through a stack establishment protocol and a data forwarding protocol. In this way, the embodiment automatically separates the protocol control link from the data forwarding link to achieve decoupling between the two and avoid mutual interference between the links.
  • the modules may be implemented in software for execution by various types of processors.
  • an identified executable code module can comprise one or more physical or logical blocks of computer instructions, which can be constructed, for example, as an object, procedure, or function. despite this, The executable code of the identified modules need not be physically located together, but may include different instructions stored in different bits that, when logically combined, constitute a module and achieve the stated purpose of the module.
  • the device provided by the example of the present invention is a device applying the method of the above-mentioned stacking system protocol control and forwarding link separation, and the implementation manner of the above method is applicable to the device, and the same technical effect can be achieved.
  • Embodiments of the present invention also provide a switch that has turned on a stacking mode, the switch including a device for stacking system protocol control and forwarding link separation as described above.
  • the switch can send a stack neighbor discovery message through the configured stack port to discover the stack neighbors of the switch. After receiving the returned stack neighbor response message, the switch can determine the protocol control link and data forwarding of the stack neighbor. The logarithm of the link is then controlled according to the protocol control link and the data forwarding link logarithm and the preset rule separation protocol control link and the data forwarding link, respectively, through the stack establishment protocol and the data forwarding protocol. In this way, the embodiment automatically separates the protocol control link from the data forwarding link to achieve decoupling between the two and avoid mutual interference between the links.
  • the switch provided by the example of the present invention includes the device for controlling the separation of the protocol control and the forwarding link of the foregoing stacking system, and the implementation method of the foregoing device is applicable to the switch, and can achieve the same technical effect.
  • 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.
  • 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.
  • the device/function module/function unit in the above embodiment is implemented in the form of a software function module and When sold or used as a stand-alone product, it can be stored on 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 present invention sends a stack neighbor discovery message through the configured stack port to discover the stack neighbors of the switch.
  • the protocol control link and data of the stack neighbor corresponding to the switch can be determined.
  • the logarithm of the forwarding link is then controlled according to the protocol control link and the data forwarding link logarithm and the preset rule separation protocol control link and the data forwarding link, respectively, through the stack establishment protocol and the data forwarding protocol.
  • the automatic separation of the protocol control link and the data forwarding link is achieved, and the two are decoupled to avoid mutual interference between the links.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

一种堆叠系统协议控制和转发链路分离的方法、装置及交换机,其中,该方法包括:通过已配置的堆叠端口发送堆叠邻居发现消息;根据接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数;根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则分离协议控制链路和数据转发链路。

Description

堆叠系统协议控制和转发链路分离的方法、装置及交换机 技术领域
本申请涉及但不限于通信技术领域。
背景技术
随着政企网的蓬勃发展,交换机被广泛的应用,市场上需要交换机能够像积木一样组合,以满足不同的网络规模,建立了堆叠系统。
然而相关技术中堆叠系统的建立,数据转发链路和协议控制链路往往使用同一条物理链路,在实际使用过程中,业务报文和协议报文就不可避免相互影响,从而产生业务丢包或堆叠系统不稳定等问题。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种堆叠系统协议控制和转发链路分离的方法、装置及交换机,通过自动将堆叠系统的协议控制链路和数据转发链路分开,实现二者去耦合,避免链路间的相互干扰。
一种堆叠系统协议控制和转发链路分离的方法,应用于交换机中,所述交换机已开启堆叠模式,所述方法包括:
通过已配置的堆叠端口发送堆叠邻居发现消息;
根据接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数;
根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路。
可选地,所述根据接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数, 包括:
获取接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息中的硬件MAC地址;
根据所述MAC地址,确定与所述交换机建立堆叠的堆叠邻居的数目;
根据所述堆叠邻居的数目,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
可选地,所述根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路,包括:
根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,获取每个所述堆叠邻居的端口信息;其中,所述端口信息包括端口的数目、带宽、编号ID和业务量;
在所述堆叠邻居的端口数目大于预设值时,根据预先设定的规则,选择所述堆叠邻居的端口中的预设数量的端口作为协议控制端口;
选择所述堆叠邻居的剩余端口作为数据转发端口;
根据选择的所述协议控制端口和所述数据转发端口分离所述协议控制链路和所述数据转发链路。
可选地,所述根据预先设定的规则,选择所述堆叠邻居的端口中预设数量的端口作为协议控制端口,包括:
根据所述端口信息中的带宽,选择所述堆叠邻居中带宽最小的端口为协议控制端口,若端口的带宽相同,则选择ID最小的端口为协议控制端口;或者,
根据所述端口信息中的业务量,选择所述堆叠邻居中业务量最多的端口为协议控制端口,若端口的业务量相同,则选择ID最小的端口为协议控制端口;或者,
根据所述端口信息中的ID,选择所述堆叠邻居中ID最小的端口为协议控制端口。
可选地,所述根据所述交换机对应堆叠邻居的协议控制链路和数据转发 链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路,还包括:
获取所述堆叠邻居的端口选定信息,其中,所述端口选定信息用于表示所述堆叠邻居选定的所述交换机的协议控制端口;
在所述交换机选定的协议控制端口与所述堆叠邻居选定的协议控制端口不是对应端口时,根据所述交换机和所述堆叠邻居的MAC地址大小确定协议控制链路的端口。
可选地,所述根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路,还包括:
在所述堆叠邻居的端口的数目为预设值时,选择所述端口作为协议控制端口以及数据转发端口。
一种堆叠系统协议控制和转发链路分离的装置,应用于交换机中,所述交换机已开启堆叠模式,所述装置包括:
发送模块,设置为:通过已配置的堆叠端口发送堆叠邻居发现消息;
确定模块,设置为:根据接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数;
分离模块,设置为:根据所述确定模块确定的所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路。
可选地,所述确定模块包括:
第一获取子模块,设置为:获取接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息中的硬件MAC地址;
第一确定子模块,设置为:根据所述第一获取子模块获取的所述MAC地址,确定与所述交换机建立堆叠的堆叠邻居的数目;
第二确定子模块,设置为:根据所述第一确定子模块确定的所述堆叠邻居的数目,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的 对数。
可选地,所述分离模块包括:
第二获取子模块,设置为:根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,获取每个所述堆叠邻居的端口信息;其中,所述端口信息包括端口的数目、带宽、编号ID和业务量;
第一选择子模块,设置为:在所述第二获取子模块获取的所述堆叠邻居的端口数目大于预设值时,根据预先设定的规则,选择所述堆叠邻居的端口中的预设数量的端口作为协议控制端口;
第二选择子模块,设置为:选择所述堆叠邻居的剩余端口作为数据转发端口;
分离子模块,设置为:根据所述第一选择子模块选择的所述协议控制端口和所述第二选择子模块选择的所述数据转发端口分离所述协议控制链路和所述数据转发链路。
可选地,所述第一选择子模块包括:
第一选择单元,设置为:根据所述端口信息中的带宽,选择所述堆叠邻居中带宽最小的端口为协议控制端口,若端口的带宽相同,则选择ID最小的端口为协议控制端口;或者,
第二选择单元,设置为:根据所述端口信息中的业务量,选择所述堆叠邻居中业务量最多的端口为协议控制端口,若端口的业务量相同,则选择ID最小的端口为协议控制端口;或者,
第三选择单元,设置为:根据所述端口信息中的ID,选择所述堆叠邻居中ID最小的端口为协议控制端口。
可选地,所述分离模块还包括:
第三获取子模块,设置为:获取所述堆叠邻居的端口选定信息,其中,所述端口选定信息用于表示所述堆叠邻居选定的所述交换机的协议控制端口;
第三确定子模块,设置为:在所述交换机选定的协议控制端口与所述堆叠邻居选定的协议控制端口不是对应端口时,根据所述交换机和所述堆叠邻 居的MAC地址大小确定协议控制链路的端口。
可选地,所述分离模块还包括:
第三选择子模块,设置为:在所述堆叠邻居的端口的数目为预设值时,选择所述端口作为协议控制端口以及数据转发端口。
一种交换机,所述交换机已开启堆叠模式,包括上述任一项所述的堆叠系统协议控制和转发链路分离的装置。
本发明实施例提供的堆叠系统协议控制和转发链路分离的方法、装置及交换机,通过已配置的堆叠端口发送堆叠邻居发现消息,以发现该交换机的堆叠邻居,在接收到返回的堆叠邻居响应消息后,就能够确定该交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,随后再根据协议控制链路和数据转发链路的对数以及预先设置的规则分离协议控制链路和数据转发链路,分别通过堆叠建立协议和数据转发协议处理。实现了自动将协议控制链路和数据转发链路分开,将二者的去耦合,避免了链路间的相互干扰。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种堆叠系统协议控制和转发链路分离的方法的流程图;
图2为本发明实施例提供的另一种堆叠系统协议控制和转发链路分离的方法的流程图;
图3为本发明实施例提供的又一种堆叠系统协议控制和转发链路分离的方法的流程图;
图4为应用了本发明实施例的方法后的堆叠系统;
图5为本发明实施例提供的又一种堆叠系统协议控制和转发链路分离的装置的结构示意图;
图6为图5所示实施例提供的堆叠系统协议控制和转发链路分离的装置中一种确定模块的结构示意图;
图7为图5所示实施例提供的堆叠系统协议控制和转发链路分离的装置中一种分离模块的结构示意图。
本发明的实施方式
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本发明针对相关技术中的数据转发链路和协议控制链路使用同一条物理链路,在实际使用过程中,业务报文和协议报文就不可避免相互影响,从而产生业务丢包或堆叠系统不稳定等问题,提供一种堆叠系统协议控制和转发链路分离的方法,通过自动将堆叠系统的协议控制链路和数据转发链路分开,实现二者去耦合,避免链路间的相互干扰。
如图1所示,为本发明实施例提供的一种堆叠系统协议控制和转发链路分离的方法的流程图,本发明实施例提供的堆叠系统协议控制和转发链路分离的方法,应用于交换机中,所述交换机已开启堆叠模式,该方法包括步骤11~步骤13:
步骤11,通过已配置的堆叠端口发送堆叠邻居发现消息。
在本实施例中,由于交换机已开启堆叠模式,该交换机会进行堆叠端口的配置,因此,可通过该些堆叠端口发送堆叠邻居发现消息,以发现与该交换机处于同一堆叠系统的一个或多个交换机,而发现的交换机可以称为本交换机的堆叠邻居。
步骤12,根据接收到的堆叠邻居发现消息对应的堆叠邻居响应消息,确定交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
在本实施例中,堆叠邻居在接收到堆叠邻居发现消息后,会返回堆叠邻居响应消息,该交换机通过堆叠邻居响应消息可以确定该交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,交换机会为每个堆叠邻居配设一 对协议控制链路和数据转发链路,当然,一般情况下协议控制链路只有一条,而数据转发链路并不一定是一条,可能是多条。
步骤13,根据交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路。
按照上述步骤,本发明的实施例通过已配置的堆叠端口发送堆叠邻居发现消息,以发现该交换机的堆叠邻居,在接收到返回的堆叠邻居响应消息后,就能够确定该交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,随后再根据协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路,分别通过堆叠建立协议和数据转发协议处理。这样,可如图4所示,为应用了本发明实施例的方法后的堆叠系统,将堆叠系统中相邻的交换机1、交换机2通过不同物理链路分别实现协议控制链路和数据转发链路,自动将协议控制链路和数据转发链路分开,实现二者的去耦合,避免链路间的相互干扰。
其中,所述堆叠邻居发现消息还可以通过已知协议邻居发现协议LLDP实现。
可选地,如图2所示,为本发明实施例提供的另一种堆叠系统协议控制和转发链路分离的方法的流程图。在上述图1所示实施例的基础上,本实施例中的步骤12可以包括步骤121~步骤123:
步骤121,获取接收到的堆叠邻居发现消息对应的堆叠邻居响应消息中的硬件MAC地址,其中,MAC地址为媒体访问控制(Media Access Control)地址。
在步骤11中,通过已配置的堆叠端口发送堆叠邻居发现消息,以发现该交换机的堆叠邻居,因此,该交换机的堆叠邻居在接收到堆叠邻居发现消息后,会返回堆叠邻居响应消息,而在该堆叠响应消息中就能够获取到返回堆叠邻居响应消息的堆叠邻居的MAC地址。若没有接收到堆叠邻居响应消息,会发出告警,提示用户确认交换机间的端口已经连接。
步骤122,根据MAC地址,确定与交换机建立堆叠的堆叠邻居的数目。
在实际应用中,堆叠系统中每个交换机有一个MAC地址,故通过MAC 的数目就能够确定与本交换机建立堆叠的堆叠邻居的数目。
步骤123,根据堆叠邻居的数目,确定交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
该交换机不论有几个堆叠邻居,对应每个堆叠邻居只有一对协议控制链路和数据转发链路,因此,可根据堆叠邻居的数目,确定交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
以交换机A、交换机B和交换机C的堆叠系统为例予以说明,交换机A通过堆叠端口发送堆叠邻居发现消息,交换机B和交换机C在接收到堆叠邻居发现消息后,向交换机A返回堆叠邻居响应消息,堆叠邻居响应消息中均携带发送该消息的交换机的MAC地址,交换机A接收到5条堆叠邻居响应消息,2条携带交换机B的MAC地址,3条携带交换机C的MAC地址,A通过判断接收到的MAC地址为两种,确定其堆叠邻居有两个,从而确定有两对协议控制链路和数据转发链路。
本发明实施例中,配置堆叠端口可能众多,通过堆叠端口发送的堆叠邻居发现消息,若端口连通,就能够接收到堆叠邻居返回的响应消息,而要从众多响应消息中确定是哪个堆叠邻居发送的就可通过MAC地址来确定,确定堆叠邻居的数目,确定交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
可选地,如图3所示,为本发明实施例提供的又一种堆叠系统协议控制和转发链路分离的方法的流程图。在上述图1所示实施例的基础上,本实施例中的步骤13可以包括步骤131~步骤134:
步骤131,根据交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,获取每个堆叠邻居的端口信息;其中,该端口信息包括端口的数目、带宽、编号(Identification,简称为:ID)和业务量。
知道了交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,可以确定每个堆叠邻居具有哪些端口,就可获取到每个堆叠邻居的端口信息,该端口信息例如端口的数目、带宽、ID和业务量等,ID是指该端口在其所属交换机的端口号。
步骤132,在堆叠邻居的端口数目大于预设值时,根据预先设定的规则,选择堆叠邻居的端口中的预设数量的端口作为协议控制端口。
一般情况协议控制链路只需要一条,而数据转发链路往往不做要求。在堆叠邻居与本交换机连通的端口数目与协议控制链路需要数目相同时,就不存在链路分离的必要了,只有在堆叠邻居的端口数目大于一预设值时,才需要根据预先设定的规则,选择所述堆叠邻居的端口中的预设数量的端口作为协议控制端口。在实际应用中,上述预设值可以是根据协议控制链路的需求设置的,该预设值也就是该预设数量的值。
步骤133,选择堆叠邻居的剩余端口作为数据转发端口。
在选择了协议控制端口后,堆叠邻居的端口中的剩余的端口就能够作为数据转发端口了。协议控制链路之间可使用链路汇聚控制协议(Link Aggregation Control Protocol,简称为:LACP)调度,数据转发链路之间也可以使用LACP调度。
步骤134,根据选择的协议控制端口和数据转发端口分离协议控制链路和数据转发链路。
选择后确定了堆叠邻居的协议控制端口和数据转发端口,就可通过对应端口的物理链路实现协议控制链路和数据转发链路,分离了协议控制链路和数据转发链路。
同样以上述实例予以说明,交换机A确定其堆叠邻居有两个,从而确定有两对协议控制链路和数据转发链路后,也就能够确定交换机A的五个端口A1-A5对应交换机B的两个端口B1、B2,对应交换机C的三个端口C1、C2、C3,然后获取每个堆叠邻居的端口信息。假设交换机A和交换机C之间端口对应关系为A1-C1,A2-C2,A3-C3,获取交换机C的三个端口的端口信息,此时预设值为1,再根据预先设定的规则,就可以在C1、C2、C3中选择出一个端口作为协议控制端口假设是C1,剩余的两个端口C2和C3就可作为数据转发端口。C1对应A1,链路A1C1就可设置为协议控制链路,链路A2C2和A3C3设置为数据转发链路,这样,实现了协议控制链路和数据转发链路的分离。
本发明实施例中,根据交换机对应堆叠邻居的协议控制链路和数据转发 链路的对数获取每个堆叠邻居的端口信息,对每一个堆叠邻居的端口进行选择。根据预先设定的规则,选择出本交换机与堆叠邻居的协议控制端口和数据转发端口,分离协议控制链路和数据转发链路,实现了二者的去耦合,避免了链路间的干扰。
可选地,在本发明的一个实施例中,步骤132可以包括步骤132a~步骤132c其中之一:
步骤132a,根据端口信息中的带宽,选择堆叠邻居中带宽最小的端口为协议控制端口,若端口的带宽相同,则选择ID最小的端口为协议控制端口;或者,
步骤132b,根据述端口信息中的业务量,选择堆叠邻居中业务量最多的端口为协议控制端口,若端口的业务量相同,则选择ID最小的端口为协议控制端口;或者,
步骤132c,根据端口信息中的ID,选择堆叠邻居中ID最小的端口为协议控制端口。
本实施例中的端口信息包括带宽、ID和业务量等,可以选择带宽最小的端口为协议控制端口,当然若出现端口的带宽相同的情况,则选择ID最小的端口为协议控制端口;可以选择业务量最多的端口为协议控制端口,当然若出现端口的业务量相同的情况,则选择ID最小的端口为协议控制端口;还可以直接选择ID最小的端口为协议控制端口。在实际应用中,预设规则并不仅限于上述的情况,还可以是上述的一种或多种标准的加权组合,也可以根据其他端口信息设置,在此不一一列举。
还应该知道的是,在堆叠系统中交换机互为堆叠邻居,每个交换机都在对方的端口中进行选择,这样可能出现如:交换机A可能选择交换机B的端口B2作为协议控制端口,而交换机A对应B2的端口是A5,但是交换机B选择交换机A的端口A4作为协议控制端口,就不可避免的会出现选择的冲突情况,因此,可选地,步骤13还可以包括:
步骤135,获取堆叠邻居的端口选定信息,其中,该端口选定信息用于表示该堆叠邻居选定的交换机的协议控制端口;
步骤136,在交换机选定的协议控制端口与堆叠邻居选定的协议控制端口不是对应端口时,根据该交换机和该堆叠邻居的MAC地址大小确定协议控制链路的端口。
通过获取本交换机的堆叠邻居的端口选定信息来了解该堆叠邻居选择的协议控制端口是否与本交换机选择的协议控制端口对应,若对应则可以直接分离链路,但若不对应,就需要对二者进行统一,可以比较本交换机与堆叠邻居的MAC地址大小来确定采用谁的选择,如以MAC地址小的交换机选择的链路所在端口为控制端口。当然,以MAC地址大小的判断也仅是一种实现方式,也可以通过其他如业务量大小等方式实现,在此不一一列举,可由工作人员根据需要进行提前的设置。
由上述内容可知,在堆叠邻居与本交换机连通的端口数目与协议控制链路需要数目相同时,就不存在链路分离的必要了,那么此时,步骤13还可以包括:
步骤137,在堆叠邻居的端口的数目为预设值时,选择所述端口作为协议控制端口以及数据转发端口。
由于堆叠邻居与本交换机连通的端口数目与协议控制链路需要数目相同,数据转发链路也就不得不与协议控制链路共用物理链路,因此,该些端口即是协议控制端口也是数据转发端口。
综上所述,本发明实施例的堆叠系统协议控制和转发链路分离的方法,通过了解堆叠邻居的端口的多种信息,在不增加配置难度基础上,以一定的条件自动分离协议控制链路和数据转发链路,实现协议控制链路和数据转发链路的去耦合,避免链路间的相互干扰。
如图5所示,为本发明实施例提供的又一种堆叠系统协议控制和转发链路分离的装置的结构示意图,本发明的实施例提供的堆叠系统协议控制和转发链路分离的装置,应用于交换机中,该交换机已开启堆叠模式,该装置包括:
发送模块10,设置为:通过已配置的堆叠端口发送堆叠邻居发现消息。
确定模块20,设置为:根据接收到的堆叠邻居发现消息对应的堆叠邻居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的 对数。
分离模块30,设置为:根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路。
可选地,图6为图5所示实施例提供的堆叠系统协议控制和转发链路分离的装置中一种确定模块的结构示意图。本实施例中的确定模块20可以包括:
第一获取子模块201,设置为:获取接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息中的硬件MAC地址。
第一确定子模块202,设置为:根据第一获取子模块201获取的MAC地址,确定与所述交换机建立堆叠的堆叠邻居的数目。
第二确定子模块203,设置为:根据第一确定子模块202确定的堆叠邻居的数目,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
可选地,图7为图5所示实施例提供的堆叠系统协议控制和转发链路分离的装置中一种分离模块的结构示意图。本实施例中的分离模块30可以包括:
第二获取子模块301,设置为:根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,获取每个堆叠邻居的端口信息;其中,该端口信息包括端口的数目、带宽、ID和业务量;
第一选择子模块302,设置为:在第二获取子模块301获取的堆叠邻居的端口数目大于一预设值时,根据预先设定的规则,选择所述堆叠邻居的端口中的预设数量的端口作为协议控制端口;
第二选择子模块303,设置为:选择所述堆叠邻居的剩余端口作为数据转发端口;
分离子模块304,设置为:根据第一选择子模块302选择的协议控制端口和第二选择子模块303选择的数据转发端口分离协议控制链路和数据转发链路。
可选地,在本发明的一个实施例中,第一选择子模块302可以包括:
第一选择单元,设置为:根据所述端口信息中的带宽,选择所述堆叠邻 居中带宽最小的端口为协议控制端口,若端口的带宽相同,则选择ID最小的端口为协议控制端口;或者,
第二选择单元,设置为:根据所述端口信息中的业务量,选择所述堆叠邻居中业务量最多的端口为协议控制端口,若端口的业务量相同,则选择ID最小的端口为协议控制端口;或者,
第三选择单元,设置为:根据所述端口信息中的ID,选择所述堆叠邻居中ID最小的端口为协议控制端口。
可选地,在本发明的一个实施例中,分离模块30还可以包括:
第三获取子模块,设置为:获取所述堆叠邻居的端口选定信息,其中,所述端口选定信息用于表示所述堆叠邻居选定的所述交换机的协议控制端口;
第三确定子模块,设置为:在所述交换机选定的协议控制端口与所述堆叠邻居选定的协议控制端口不是对应端口时,根据所述交换机和所述堆叠邻居的MAC地址大小确定协议控制链路的端口。
可选地,在本发明的一个实施例中,分离模块30还可以包括:
第三选择子模块,设置为:在所述堆叠邻居的端口的数目为预设值时,选择所述端口作为协议控制端口以及数据转发端口。
本发明上述实施例提供的堆叠系统协议控制和转发链路分离的装置,发送模块通过已配置的堆叠端口发送堆叠邻居发现消息,以发现该交换机的堆叠邻居,在接收到返回的堆叠邻居响应消息后,确定模块就能够确定该交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,随后分离模块再根据协议控制链路和数据转发链路的对数以及预先设置的规则分离协议控制链路和数据转发链路,分别通过堆叠建立协议和数据转发协议处理。这样,该实施例就自动将协议控制链路和数据转发链路分开,实现二者的去耦合,避免链路间的相互干扰。
本发明实施例中,模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此, 所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。
本发明实例提供的装置是应用了上述堆叠系统协议控制和转发链路分离的方法的装置,上述方法的实现方式适用于该装置,也能达到相同的技术效果。
本发明的实施例还提供了一种交换机,该交换机已开启堆叠模式,该交换机包括如上所述的堆叠系统协议控制和转发链路分离的装置。
该交换机能够通过已配置的堆叠端口发送堆叠邻居发现消息,以发现该交换机的堆叠邻居,在接收到返回的堆叠邻居响应消息后,就能够确定该交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,随后再根据协议控制链路和数据转发链路的对数以及预先设置的规则分离协议控制链路和数据转发链路,分别通过堆叠建立协议和数据转发协议处理。这样,该实施例就自动将协议控制链路和数据转发链路分开,实现二者的去耦合,避免链路间的相互干扰。
本发明实例提供的交换机包括了上述堆叠系统协议控制和转发链路分离的装置,上述装置的实现方法适用于该交换机,也能达到相同的技术效果。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并 作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例通过已配置的堆叠端口发送堆叠邻居发现消息,以发现该交换机的堆叠邻居,在接收到返回的堆叠邻居响应消息后,就能够确定该交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,随后再根据协议控制链路和数据转发链路的对数以及预先设置的规则分离协议控制链路和数据转发链路,分别通过堆叠建立协议和数据转发协议处理。实现了自动将协议控制链路和数据转发链路分开,将二者的去耦合,避免了链路间的相互干扰。

Claims (13)

  1. 一种堆叠系统协议控制和转发链路分离的方法,应用于交换机中,所述交换机已开启堆叠模式,所述方法包括:
    通过已配置的堆叠端口发送堆叠邻居发现消息;
    根据接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数;
    根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路。
  2. 根据权利要求1所述的堆叠系统协议控制和转发链路分离的方法,其中,所述根据接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,包括:
    获取接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息中的硬件MAC地址;
    根据所述MAC地址,确定与所述交换机建立堆叠的堆叠邻居的数目;
    根据所述堆叠邻居的数目,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
  3. 根据权利要求1所述的堆叠系统协议控制和转发链路分离的方法,其中,所述根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路,包括:
    根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,获取每个所述堆叠邻居的端口信息;其中,所述端口信息包括端口的数目、带宽、编号ID和业务量;
    在所述堆叠邻居的端口数目大于预设值时,根据预先设定的规则,选择所述堆叠邻居的端口中的预设数量的端口作为协议控制端口;
    选择所述堆叠邻居的剩余端口作为数据转发端口;
    根据选择的所述协议控制端口和所述数据转发端口分离所述协议控制链路和所述数据转发链路。
  4. 根据权利要求3所述的堆叠系统协议控制和转发链路分离的方法,其中,所述根据预先设定的规则,选择所述堆叠邻居的端口中预设数量的端口作为协议控制端口,包括:
    根据所述端口信息中的带宽,选择所述堆叠邻居中带宽最小的端口为协议控制端口,若端口的带宽相同,则选择ID最小的端口为协议控制端口;或者,
    根据所述端口信息中的业务量,选择所述堆叠邻居中业务量最多的端口为协议控制端口,若端口的业务量相同,则选择ID最小的端口为协议控制端口;或者,
    根据所述端口信息中的ID,选择所述堆叠邻居中ID最小的端口为协议控制端口。
  5. 根据权利要求3所述的堆叠系统协议控制和转发链路分离的方法,其中,所述根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路,还包括:
    获取所述堆叠邻居的端口选定信息,其中,所述端口选定信息用于表示所述堆叠邻居选定的所述交换机的协议控制端口;
    在所述交换机选定的协议控制端口与所述堆叠邻居选定的协议控制端口不是对应端口时,根据所述交换机和所述堆叠邻居的MAC地址大小确定协议控制链路的端口。
  6. 根据权利要求3所述的堆叠系统协议控制和转发链路分离的方法,其中,所述根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路,还包括:
    在所述堆叠邻居的端口的数目为预设值时,选择所述端口作为协议控制端口以及数据转发端口。
  7. 一种堆叠系统协议控制和转发链路分离的装置,应用于交换机中,所述交换机已开启堆叠模式,所述装置包括:
    发送模块,设置为:通过已配置的堆叠端口发送堆叠邻居发现消息;
    确定模块,设置为:根据接收到的所述堆叠邻居发现消息对应的堆叠邻 居响应消息,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数;
    分离模块,设置为:根据所述确定模块确定的所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数以及预先设置的规则,分离协议控制链路和数据转发链路。
  8. 根据权利要求7所述的堆叠系统协议控制和转发链路分离的装置,其中,所述确定模块包括:
    第一获取子模块,设置为:获取接收到的所述堆叠邻居发现消息对应的堆叠邻居响应消息中的硬件MAC地址;
    第一确定子模块,设置为:根据所述第一获取子模块获取的所述MAC地址,确定与所述交换机建立堆叠的堆叠邻居的数目;
    第二确定子模块,设置为:根据所述第一确定子模块确定的所述堆叠邻居的数目,确定所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数。
  9. 根据权利要求7所述的堆叠系统协议控制和转发链路分离的装置,其中,所述分离模块包括:
    第二获取子模块,设置为:根据所述交换机对应堆叠邻居的协议控制链路和数据转发链路的对数,获取每个所述堆叠邻居的端口信息;其中,所述端口信息包括端口的数目、带宽、编号ID和业务量;
    第一选择子模块,设置为:在所述第二获取子模块获取的所述堆叠邻居的端口数目大于预设值时,根据预先设定的规则,选择所述堆叠邻居的端口中的预设数量的端口作为协议控制端口;
    第二选择子模块,设置为:选择所述堆叠邻居的剩余端口作为数据转发端口;
    分离子模块,设置为:根据所述第一选择子模块选择的所述协议控制端口和所述第二选择子模块选择的所述数据转发端口分离所述协议控制链路和所述数据转发链路。
  10. 根据权利要求9所述的堆叠系统协议控制和转发链路分离的装置,其 中,所述第一选择子模块包括:
    第一选择单元,设置为:根据所述端口信息中的带宽,选择所述堆叠邻居中带宽最小的端口为协议控制端口,若端口的带宽相同,则选择ID最小的端口为协议控制端口;或者,
    第二选择单元,设置为:根据所述端口信息中的业务量,选择所述堆叠邻居中业务量最多的端口为协议控制端口,若端口的业务量相同,则选择ID最小的端口为协议控制端口;或者,
    第三选择单元,设置为:根据所述端口信息中的ID,选择所述堆叠邻居中ID最小的端口为协议控制端口。
  11. 根据权利要求9所述的堆叠系统协议控制和转发链路分离的装置,其中,所述分离模块还包括:
    第三获取子模块,设置为:获取所述堆叠邻居的端口选定信息,其中,所述端口选定信息用于表示所述堆叠邻居选定的所述交换机的协议控制端口;
    第三确定子模块,设置为:在所述交换机选定的协议控制端口与所述堆叠邻居选定的协议控制端口不是对应端口时,根据所述交换机和所述堆叠邻居的MAC地址大小确定协议控制链路的端口。
  12. 根据权利要求9所述的堆叠系统协议控制和转发链路分离的装置,其中,所述分离模块还包括:
    第三选择子模块,设置为:在所述堆叠邻居的端口的数目为预设值时,选择所述端口作为协议控制端口以及数据转发端口。
  13. 一种交换机,所述交换机已开启堆叠模式,所述交换机包括如权利要求7至12中任一项所述的堆叠系统协议控制和转发链路分离的装置。
PCT/CN2016/085884 2015-06-26 2016-06-15 堆叠系统协议控制和转发链路分离的方法、装置及交换机 WO2016206555A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510362338.6A CN106330781B (zh) 2015-06-26 2015-06-26 堆叠系统协议控制和转发链路分离的方法、装置及交换机
CN201510362338.6 2015-06-26

Publications (1)

Publication Number Publication Date
WO2016206555A1 true WO2016206555A1 (zh) 2016-12-29

Family

ID=57586121

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085884 WO2016206555A1 (zh) 2015-06-26 2016-06-15 堆叠系统协议控制和转发链路分离的方法、装置及交换机

Country Status (2)

Country Link
CN (1) CN106330781B (zh)
WO (1) WO2016206555A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327544A (zh) * 2020-02-06 2020-06-23 深圳市信锐网科技术有限公司 一种堆叠系统、报文传输方法、装置及交换机和存储介质

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163112A (zh) * 2007-11-15 2008-04-16 福建星网锐捷网络有限公司 一种交换机堆叠系统中报文处理的方法及交换机设备
CN101312439A (zh) * 2007-05-24 2008-11-26 中国电信股份有限公司 一种灵活的ip网关保护方法
CN101753438A (zh) * 2009-12-08 2010-06-23 中兴通讯股份有限公司 实现通道分离的路由器及其通道分离的传输方法
US7855949B1 (en) * 2003-12-29 2010-12-21 At&T Intellectual Property Ii, L.P. Method and apparatus for bundling signaling messages for scaling communication networks
CN103166876A (zh) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 OpenFlow网络域间的数据发送方法及装置
CN103888370A (zh) * 2014-04-02 2014-06-25 杭州华三通信技术有限公司 一种选择选中端口的方法和设备
CN104243319A (zh) * 2013-06-06 2014-12-24 杭州华三通信技术有限公司 一种邻居发现的方法及装置
CN104426760A (zh) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 流映射处理方法及装置
CN104580024A (zh) * 2013-10-28 2015-04-29 博科通讯系统有限公司 扩展的以太网互联结构交换机

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7843831B2 (en) * 2006-08-22 2010-11-30 Embarq Holdings Company Llc System and method for routing data on a packet network
CN102006184B (zh) * 2010-11-09 2013-01-02 福建星网锐捷网络有限公司 堆叠链路管理方法、装置及网络设备
CN103152260B (zh) * 2013-02-21 2019-02-15 中兴通讯股份有限公司 报文转发系统、方法及装置

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7855949B1 (en) * 2003-12-29 2010-12-21 At&T Intellectual Property Ii, L.P. Method and apparatus for bundling signaling messages for scaling communication networks
CN101312439A (zh) * 2007-05-24 2008-11-26 中国电信股份有限公司 一种灵活的ip网关保护方法
CN101163112A (zh) * 2007-11-15 2008-04-16 福建星网锐捷网络有限公司 一种交换机堆叠系统中报文处理的方法及交换机设备
CN101753438A (zh) * 2009-12-08 2010-06-23 中兴通讯股份有限公司 实现通道分离的路由器及其通道分离的传输方法
CN103166876A (zh) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 OpenFlow网络域间的数据发送方法及装置
CN104243319A (zh) * 2013-06-06 2014-12-24 杭州华三通信技术有限公司 一种邻居发现的方法及装置
CN104426760A (zh) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 流映射处理方法及装置
CN104580024A (zh) * 2013-10-28 2015-04-29 博科通讯系统有限公司 扩展的以太网互联结构交换机
CN103888370A (zh) * 2014-04-02 2014-06-25 杭州华三通信技术有限公司 一种选择选中端口的方法和设备

Also Published As

Publication number Publication date
CN106330781A (zh) 2017-01-11
CN106330781B (zh) 2020-02-07

Similar Documents

Publication Publication Date Title
EP2962431B1 (en) Spanning tree in fabric switches
EP3474502B1 (en) Reduced configuration for multi-stage network fabrics
CN108809836B (zh) 组播数据报文转发方法及装置
US20140133486A1 (en) Systems and methods for forming and using a group of link aggregation groups to reduce traffic on interconnect links
TWI702817B (zh) 具有鏈路層發現之自動多機箱鏈路聚合組態
EP2798800B1 (en) Expanding member ports of a link aggregation group between clusters
JP6551547B2 (ja) マルチグループp2pネットワークにおけるトラフィック認識型グループ再構成
EP3316555B1 (en) Mac address synchronization method, device and system
US9960998B2 (en) Forwarding packet in stacking system
US9769027B2 (en) Topology discovery in a stacked switches system
US20160134513A1 (en) Concerted Multi-Destination Forwarding in a Joint TRILL Fabric and VXLAN/IP Fabric Data Center
US10367686B2 (en) Automatically detecting roles of nodes in layered network topologies
CN108306824B (zh) 报文发送方法及装置
US10171306B2 (en) Automatic discovery and provisioning of multi-chassis etherchannel peers
WO2016206555A1 (zh) 堆叠系统协议控制和转发链路分离的方法、装置及交换机
US10476774B2 (en) Selective transmission of bidirectional forwarding detection (BFD) messages for verifying multicast connectivity
US11115266B2 (en) Priority based selection of time services
EP3468286A1 (en) Method, device and system for data transmission, physical residential gateway and access node
EP3258654B1 (en) Method and system for reducing pim protocol dr change
CN102143081A (zh) 一种报文多次转向方法、装置和系统
CN108696460B (zh) 一种报文转发方法及装置
CN105812274B (zh) 一种业务数据的处理方法和相关设备
CN108111419B (zh) 一种路径选择的方法及装置
US10122587B2 (en) System and method for automatically determining the optimal topology for multiple networked devices
US9282054B2 (en) Determining an active management uplink

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

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

Country of ref document: EP

Kind code of ref document: A1