WO2017215390A1 - Method and device for selecting data forwarding port of longitudinal stack system - Google Patents

Method and device for selecting data forwarding port of longitudinal stack system Download PDF

Info

Publication number
WO2017215390A1
WO2017215390A1 PCT/CN2017/084546 CN2017084546W WO2017215390A1 WO 2017215390 A1 WO2017215390 A1 WO 2017215390A1 CN 2017084546 W CN2017084546 W CN 2017084546W WO 2017215390 A1 WO2017215390 A1 WO 2017215390A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
multicast
broadcast
aggregation
ecid
Prior art date
Application number
PCT/CN2017/084546
Other languages
French (fr)
Chinese (zh)
Inventor
杨世平
王同乐
曹淑玲
郑炎
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017215390A1 publication Critical patent/WO2017215390A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/201Multicast operation; Broadcast operation

Definitions

  • This document relates to, but is not limited to, the field of communication technologies, and in particular, to a data forwarding port selection method and apparatus for a vertical stacking system.
  • the 802.1BR standard can be used to deploy a remote switch as a policy control switch in a virtual environment.
  • the edge virtual bridge can replicate packets to a set of remote interfaces, using a cascaded serial interface and a flexible design network. More efficient allocation of bandwidth for multicast frames, broadcast frames, and unicast frames.
  • FIG. 1 is a schematic diagram of the process of creating a virtual bridge by using the PE CSP protocol.
  • the PE (Port Extender) is used to apply for the creation of an extended port to the CB (Controlling Bridge). (Extended port creation) message to request the CB to create the corresponding extended interface, E-channel (E channel, control bridge and multiple channels established between the sites), and bind the E-channel to the extended interface; CB receives After the Extended Port Create message, create the corresponding extended BEP (Ext. Bridge Port Extender) interface to assign ECID to the BEP port (E-channel Identifier, extended channel identifier).
  • E-channel Identifier E-channel Identifier
  • the extended port of the PE is aggregated into an aggregation port through the Link Aggregation Control Protocol (LACP) and the aggregation port is added to a multicast/broadcast group.
  • LACP Link Aggregation Control Protocol
  • data packets need to be forwarded in the multicast/broadcast group, and the aggregation port must be able to perform routing and load balancing.
  • the first solution is to push the LACP configuration to the PE, and the PE manages and routes the configuration.
  • the disadvantage of this solution is that reliability cannot be guaranteed because the configuration needs to be pushed from the CB to the PE; and if the aggregated expansion port is distributed on two or more PEs, then for the PE, it cannot know the other of the aggregation ports. Member information, and it is also impossible to perform routing calculations on ports of other devices. Therefore, the program has great shortcomings and cannot be supported.
  • the second solution is to send the LACP configuration to the CB.
  • the chip itself selects routes based on the LACP members. This method is feasible if the LACP member is a normal physical port. However, if the LACP member is an extended port, the PE does not know the aggregated port and cannot know whether the port of its own device is in LACP. The actual physical port on the CB is the CASCADE port (the port that receives CSP packets on the CB). The routing and load balancing cannot be performed. Therefore, the program also has certain problems.
  • the present invention provides a data forwarding port selection method and device for a vertical stacking system, which can effectively perform routing in a networking scenario.
  • a data forwarding port selection method for a vertical stacking system includes:
  • the aggregation port is a port based on a link aggregation control protocol LACP, where the aggregation The member port of the port includes the port of at least one port expander PE device.
  • the binding the multicast or broadcast out port to the sending channel includes:
  • the multicast or broadcast extended channel identifier ECID generated by the multicast sending device is filled in the sending channel registration message together with the identifier of the multicast or broadcast outgoing port, and sent to the PE device;
  • the method before scanning the multicast or broadcast member and identifying the aggregation port, the method further includes:
  • a physical port of the PE device as an extension port of a multicast or broadcast sending device, where the multicast or broadcast sending device is a control bridge CB device;
  • the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to a multicast or broadcast group to become a multicast or broadcast member in a multicast or broadcast group.
  • the setting manner includes a hash algorithm.
  • a data forwarding port selection device for a vertical stacking system comprising:
  • An aggregation port identification module configured to scan a multicast or broadcast member and identify an aggregation port therein;
  • a port selection module configured to select a multicast or broadcast out port according to a setting manner from a member port of the aggregation port
  • the binding module is configured to bind the multicast or broadcast out port to the sending channel.
  • the aggregation port is a port based on a link aggregation control protocol LACP, and the member port of the aggregation port includes a port of at least one port expander PE device.
  • the binding module includes:
  • a port identifier extraction unit configured to extract an identifier of the multicast or broadcast out port
  • the message sending unit is configured to fill the multicast channel or the broadcast extension channel identifier ECID generated by the multicast sending device with the identifier of the multicast or broadcast out port in the sending channel registration message, and send the message to the PE device;
  • the binding unit is configured to generate, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID. And bound to the sending channel.
  • the device further includes:
  • the extended port setting module is configured to set the physical port of the PE device to be a multicast or broadcast transmitting device before the aggregated port identification module (501) scans the multicast or broadcast member and identifies the aggregated port therein.
  • the aggregation port is added to the module, and after the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to the multicast or broadcast group to become a multicast or broadcast member in the multicast or broadcast group.
  • the setting manner includes a hash algorithm.
  • a storage medium storing executable instructions; the executable instructions being executed by a processor to:
  • a data forwarding port selection device for a vertical stacking system comprising:
  • a memory configured to store program code
  • a processor configured to execute the program code, to perform the following operations:
  • the solution provided by the embodiment of the present invention effectively solves the problem that the multicast or broadcast packet is forwarded and routed on the LACP port that is aggregated by the PE expansion port, and prevents the PE device from multicasting or broadcasting the packet to all member ports of the aggregation port.
  • the LACP configuration is sent to the CB and the chip itself is selected according to the LACP member, if the LACP member includes an aggregation port, it is difficult to select a route.
  • the solution provided by the embodiment of the present invention can effectively solve the problem that when the LACP aggregation port joins the multicast group, the aggregated ECID cannot be allocated due to the unicast ECID of the aggregation port.
  • the physical port is bound to the multicast forwarding packet and the load balancing is disabled on the LACP. You can also select the multicast forwarding path of the packet in advance according to a method at the software level.
  • FIG. 1 is a flowchart of a method for selecting a data forwarding port of a vertical stacking system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of some embodiments of an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a process of creating an expansion port
  • FIG. 4 is a schematic diagram of a longitudinal stack BEP port aggregation according to an embodiment of the present invention.
  • FIG. 5A is a schematic diagram of a LACP port record of a vertically stacked CB device according to an embodiment of the present invention
  • FIG. 5B is a schematic diagram of port recording of a vertically stacked PE device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a data forwarding port selection apparatus of a vertical stacking system according to an embodiment of the present invention.
  • the first embodiment provides a method for selecting a data forwarding port of a vertical stacking system. As shown in FIG. 1 , the method includes the following steps 201-203:
  • Step 201 Scan a multicast or broadcast member to identify an aggregation port therein.
  • Step 202 Select a multicast or broadcast out port from the member ports of the aggregation port according to a setting manner.
  • Step 203 Bind the multicast or broadcast egress port to the sending channel. This can enable the packet to be sent to the multicast or broadcast egress port when forwarding.
  • the data forwarding port selection method of the vertical stacking system can select one port from the aggregation port as the outgoing port of all the member ports of the aggregation port or other data information.
  • the aggregation of the ports of one or more PE devices is aggregated in the multicast or broadcast member when the LACP configuration is sent to the CB. The port caused a problem that the route could not be selected.
  • different ports may be selected in an aggregation port according to the actual situation of the port and the content and attributes of the packets when the packets are forwarded or are in different packet forwarding times. As an out port.
  • the setting manner may be a random selection manner.
  • the aggregation port may be an LACP-based port, and the member port of the aggregation port may include a port of the PE device, and may include at least one port of the PE device.
  • the binding the multicast or broadcast out port to the sending channel may include:
  • the multicast or broadcast ECID generated by the multicast sending device is filled in the sending channel registration message together with the identifier of the multicast or broadcast egress port, and sent to the PE device;
  • the CB When an expansion port on a PE is aggregated into an aggregation port through LACP, the CB records the port ID of the member port of the aggregation port.
  • the member ports of the aggregation port have different ECIDs.
  • the LACP port is used as the logical interface for the PE expansion port to be aggregated.
  • the new ECID will not be allocated.
  • the CB sends a PE CSP packet E-channel registration message to the PE. After receiving the CSP packet carrying the E-channel registration message, the PE will set the group.
  • the broadcast ECID is bound to the aggregate port.
  • the method before the step of scanning the multicast/broadcast member and identifying the aggregation port, the method further includes:
  • a physical port of the PE device as an extension port of a multicast or broadcast sending device, where the multicast or broadcast sending device is a control bridge CB device;
  • the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to a multicast or broadcast group to become a multicast or broadcast member in a multicast or broadcast group.
  • Step 200 The physical port of the PE device is set as an extension port of a multicast or broadcast sending device, and the multicast or broadcast sending device is a control bridge CB device.
  • Step 2001 After the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to a multicast or broadcast group to become a multicast or broadcast member in a multicast or broadcast group.
  • Steps 201 to 203 are as described above.
  • the PE advertises the port of the PE device to the CB in turn through the Extended Port Create message.
  • the CB receives the packet and parses the identity of the PE port from it and records it. And the CB will uniquely assign an ECID to each PE port, and send the corresponding relationship between the ECID and the receiving port to the CB hardware, thus creating an extended interface on the CB.
  • the CB creates an extension port on the CASCADE port that corresponds to each actual port on the PE.
  • the CB sends an Extended Port Create Reply message to the PE, and carries the ECID assigned to the PE port as the unique identifier of the port on the PE.
  • the process of the CB and the extended bridge interface expander BPE1 when creating the extended port may include 101 to 107:
  • the control bridge device CB discovers BPE1 and initiates an internal expansion bridge interface expander creation process.
  • the LLDP Link Layer Discovery Protocol
  • the LLDP Link Layer Discovery Protocol
  • CB and BPE1 After CB and BPE1 discover each other, they independently trigger the device to send a CSP Open message, notify the other party that the CSP protocol is enabled, and wait for the other party to respond.
  • the CB device or the PE device After receiving the CSP Open message, the CB device or the PE device sends a CSP Open Reply message to the peer end to respond. Only when both the CB and the PE receive the CSP Open Reply packet, the two protocols and devices are ready to be connected.
  • the CB can initialize the BPE1 upstream port. Make some settings for the PE port by sending a Port Parameters Set message. The PE responds with a Port Parameters Set Reply message.
  • the CB initializes the C-VLAN component port, and the PE creates an extension port.
  • the PE sends an Extended Port Create packet to the CB, where the packet carries a physical port letter on the PE. interest.
  • the CB receives the Extended Port Create message and obtains the PE port ID carried in the packet and records it. For example, there are N ports on the PE (N is a positive integer), and the PE assigns a port identifier to each port, for example, numbers such as 1, 2, 3, ... N are used as unique identifiers.
  • the port identifier includes, but is not limited to, a number, as long as it can distinguish between different ports, for example, it can also be a symbol or the like.
  • the correspondence between these port identifiers and ports is recorded on the PE. All the ports on the PE can be reported to the CB by sending Extended Port Create packets.
  • the CB After receiving the Extended Port Create message, the CB parses out the port identifiers, for example, 1, 2, 3, ..., etc., and allocates a unicast ECID for each such PE port, where the size of the ECID is 0-4 kilobytes, the correspondence between the ECID and the PE port identifier assigned to the port is recorded in the local database or resource list of the CB, and the Extended Port Create Replay message can be sent to reply.
  • the port identifiers for example, 1, 2, 3, ..., etc.
  • the subsequent extended port creation process is similar to the previous process.
  • the port that receives CSP packets on the CB is called a CASCADE port, such as ports Port1 and Port2 in Figure 4.
  • the CB sends the CASCADE port of the Extended Port Create message carrying the port identifier n to the hardware along with the ECID assigned to the port n to create a corresponding expansion port for the port on the PE.
  • the ECB that is assigned to the port identified by the CB is encapsulated in the Extended Port Create Reply message and sent to the PE.
  • PE1 and PE2 have ports Port3 and Port4 respectively; Port, Port5, and Port6.
  • the port identifiers extracted or constructed by PE1 and PE2 for these ports are numbers 3, 4, 5, 6, and 7.
  • PE1 records the mapping between ports and port IDs, such as Port3-3 and Port4-4.
  • PE2 records the mapping between ports and port IDs, such as Port5-5, Port6-6, and Port7-7.
  • the PE sends an Extended Port Create message to the CB.
  • the packet carries the port identifiers of 3, 4, 5, 6, and 7.
  • the port IDs of the packets sent by PE1 are 3, 4, and the port IDs of the packets sent by PE2 are 5, 6, and 7.
  • Port1 receives the Extended Port Create message sent by PE1, and Port2 receives the Extended Port Create message sent by PE2.
  • the CB allocates ECIDs: 13, 14 for ports Port 3 and Port 4 whose ports are 3 and 4 on PE1, and assigns ECIDs: 15, 16, and 17 to ports 5, 6, and 7 of ports 5, 6, and 7 on PE2. Record the correspondence, for example: PE1: 3-13, 4-14; PE2: 5-15, 6-16, 7-17.
  • PE1 and PE2 are port identifiers on the PE, and the latter is the ECID assigned to the port identifier.
  • CB fills in the corresponding relationship
  • the extended port reply packet is sent to the PE. After receiving the Extended Port Create Reply packet, the PE resolves the ECID and port identifier (for example, PE1: 3-13, 4-14; PE2: 5-15, 6-16, and 7-17).
  • the locally recorded content (for example: PE1: Port3-3, Port4-4; PE2: Port5-5, Port6-6, Port7-7) is compared, and the ECID and its port are obtained, and then sent to the hardware, and the ECID is correspondingly The physical port is bound. Therefore, each physical port on the PE has a one-to-one correspondence with the expansion port of the CB.
  • Port3, Port4, Port5, Port6, and Port7 correspond to the extension ports Bep3, Bep4, Bep5, Bep6, and Bep7, respectively.
  • the two extended ports are aggregated into one aggregation port.
  • Bep4 and Bep5 are aggregated into one aggregation port, TRUNK1 or Bep6, and Bep7 is aggregated into an aggregation port, TRUNK2.
  • TRUNK1 is E-channel1
  • E2 is E-channel2.
  • the aggregation port regenerates the port ID X and sends an Extended Port Create message to the CB.
  • CB generates a new packet for the logical port.
  • the unicast ECID-X is sent back in the Extended Port Create Reply message.
  • this method has the following problems: First, the unicast ECID resource is occupied, and the port expandable capacity is reduced. Secondly, even if the ECID problem is not considered, the reassigned unicast ECID-X cannot be bound to the actual physical port. Because the actual physical port already has an assigned unicast ECID, such as 13, 14, 15, 16, 17, and again, the 802.1BR protocol does not specify that a unicast ECID should be assigned to the logical port. Based on the above three points, TRUNK1 and TRUNK2 no longer send extended Port Create messages to the CB for application.
  • TRUNK1 and TRUNK2 exist as logical ports floating on the BEP port, and no separate unicast ECID is bound to it.
  • CB records aggregate port members, CASCADE ports, and their unicast ECIDs, such as: TURNK1: 4-14-Port1 (CASCADE), 5-15-Port2 ( CASCADE); TRUNK2: 6-16-Port2 (CASCADE), 7-17-Port2 (CASCADE), the device can be seen in Figure 5A, Figure 5B.
  • CB assigns a multicast ECID to the multicast/broadcast and binds the multicast ECID to all members of the multicast group/broadcast group.
  • the CB sends an E-channel Register (E-channel register) message to the PE.
  • the PE device receives the E-channel Register packet and parses out the multicast ECID. Bind the ECID to the actual physical port on the PE.
  • the BEP4, the Bep5, and the Bep6 and the Bep7 are combined with the unicast ECID and can be bound to the multicast E-channel. Therefore, in this embodiment, the CB packet is sent to the E-channel and the port. Before binding, the CB can scan the multicast group members. If a member is an LACP aggregation port and its member port is an extension port, the CB can calculate the member port of the elected LACP as the egress port of the aggregation port. The egress port is configured to receive the multicast or broadcast packet or other data. After the egress port is selected, the member port identifier is extracted, and the ECID of the multicast is filled in the E-channel Register packet and sent to the PE for binding. set.
  • the setting manner may include a hash algorithm.
  • TRUNK1 and Bep6 and Bep7 which are aggregated by Bep4 and Bep5, are added to multicast ip224.1.1.1 and VLAN1000 respectively.
  • the CB records TRUNK1, TRUNK2 and its member identification and ECID: 3-13, 4-14; 5-15, 6-16.
  • CB allocates multicast ECIDs (range 4k+1 to 16k) to 500 and 12002 for TRUNK1 and TRUNK2.
  • the m+1th port of the LACP member is selected as the multicast.
  • the CB hardware is sent to the CASCADE port (Port2) where the Bep5 port is located, and is added to the multicast ip224.1.1.1.
  • the identifiers 5-15 (unicast ECID) and 5001 (multicast ECID) corresponding to Bep5 are filled in the E-channel Register message and sent to the PE.
  • the elected port is TRUNK1.
  • the first port is Bep4.
  • the port ID, unicast ECID, and multicast ECID of the E-channel Register message are 4, 14, and 5002, respectively, and the CASCADE port of the CB hardware is Port1.
  • the trunk 1000 Take the trunk 1000 as the example.
  • the multicast ECID assigned by the CB to the VLAN 1000 is 12002
  • the corresponding port is the first port of the TRUNK2, Port6, and the unicast ECID. Is 16, the port is identified as 6.
  • the CASCADE port of the CB hardware is Port2, and the port identifier, unicast ECID, and multicast ECID in the E-channel Register message are: 6, 16, and 12002.
  • the PE receives the E-channel Register packet and parses out the multicast ECID and port identifier.
  • TRUNK1 joins multicast ip224.1.1.1 as an example.
  • the PE parses out 5, 15, and 5001 from the E-channel Register message.
  • the corresponding port is found as Port5, and then Port5 is bound to the multicast ECID5001.
  • the actual port that is added to multicast ip224.1.1.1 is port 5, and Port 4 is not in multicast ip224.1.1.1.
  • TRUNK1 joins multicast ip224.1.1.2 and TRUNK2 joins VLAN 1000 this method can be used.
  • the ports actually added are Port4 and Port6.
  • the aggregation port does not allocate a unicast ECID (which is different from the member interface ECID of the LACP). That is, the CB fails to detect that the LACP aggregation port on the PE is a separate expansion port. Therefore, a member interface of the LACP (the extended port of the PE) can be selected and bound to the multicast ECID. When multicast traffic is forwarded or copied to the LACP, it is forwarded to the elected member interface. Therefore, the ECID is not allocated to the LACP port, which saves the unicast ECID resource and reduces the complexity of hardware hash routing between different expansion ports on the PE.
  • Embodiment 2 A data forwarding port selection device of a vertical stacking system, as shown in FIG. 6, includes:
  • the aggregation port identification module 501 is configured to scan a multicast or broadcast member and identify an aggregation port therein;
  • the port selection module 502 is configured to select a multicast or broadcast out port from the member ports of the aggregation port according to a setting manner;
  • the binding module 503 is configured to bind the multicast or broadcast egress port to the sending channel, so that the packet can be sent to the multicast/broadcast egress port when the packet is forwarded.
  • the aggregation port may be a port based on a link aggregation control protocol LACP, and a member port of the aggregation port may include a port of at least one PE device.
  • the binding module may include:
  • a port identifier extraction unit configured to extract an identifier of the multicast or broadcast out port
  • the message sending unit is configured to fill the multicast channel or the broadcast ECID generated by the multicast sending device with the identifier of the multicast or broadcast port in the sending channel registration message, and send the packet to the PE device;
  • the binding unit is configured to generate, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID, and the Send channel binding.
  • the apparatus may further include:
  • An extended port setting module configured to set a physical port of the PE device as an extension port of a multicast or broadcast sending device, before the aggregation port identification module scans the multicast or broadcast member, and identifies the aggregation port therein,
  • the multicast or broadcast sending device is a control bridge CB device;
  • the aggregation port is added to the module, and after the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to the multicast or broadcast group to become a multicast or broadcast member in the multicast or broadcast group.
  • the setting manner may include a hash algorithm.
  • Embodiment 3 A storage medium storing executable instructions; when the executable instructions are executed by a processor, the following operations are implemented:
  • the multicast or broadcast egress port is bound to the sending channel, so that when the packet is forwarded, the packet can be sent to the multicast or broadcast egress port.
  • Embodiment 1 For other implementation details, refer to Embodiment 1.
  • Embodiment 4 A data forwarding port selection device of a vertical stacking system, comprising:
  • a memory configured to store program code
  • a processor configured to execute the program code, to perform the following operations:
  • Embodiment 1 For other implementation details, refer to Embodiment 1.
  • the solution provided by the foregoing embodiment effectively solves the problem that the multicast/broadcast packet is forwarded and routed on the LACP port that is aggregated by the PE expansion port, and prevents the PE device from multicasting or broadcasting the packet to all member ports of the aggregation port. Therefore, when the LACP configuration is sent to the CB and the chip itself is selected according to the LACP member, if the LACP member includes the aggregation port, it is difficult to select a route.
  • the solution provided by the foregoing embodiment can effectively solve the problem that the LACP aggregation port is added to the multicast group, and the aggregated ECID cannot be bound to the actual physical port because the aggregation port has no unicast ECID.
  • the problem of routing forwarding and load balancing cannot be performed on the LACP.
  • the solution provided by the embodiment of the present invention effectively solves the problem that the multicast/broadcast packet is forwarded and routed on the LACP port that is aggregated by the PE expansion port, and the PE device can prevent multicast or broadcast packets from all the member interfaces of the aggregation port.
  • the LACP configuration is sent to the CB and the chip itself is selected according to the LACP member, if the LACP member includes an aggregation port, it is difficult to select a route.

Abstract

A method and device for selecting a data forwarding port of a longitudinal stack system. The method comprises: scanning a multicast or broadcast member, and recognizing an aggregation port therein; selecting a multicast or broadcast egress port in a set manner from member ports of the aggregation port; and binding the multicast or broadcast egress port with a transmission channel. The device comprises: an aggregation port recognition module; a port selection module; and a binding module.

Description

一种纵向堆叠系统的数据转发端口选择方法及装置Data forwarding port selection method and device for vertical stacking system 技术领域Technical field
本文涉及但不限于涉及通信技术领域,尤其涉及一种纵向堆叠系统的数据转发端口选择方法及装置。This document relates to, but is not limited to, the field of communication technologies, and in particular, to a data forwarding port selection method and apparatus for a vertical stacking system.
背景技术Background technique
随着当前数据中心的快速发展,一系列的虚拟化技术通过提高处理器使用效率进一步降低数据中心成本。伴随云计算技术的发展,虚拟机的猛增,企业的数据中心不可避免的产生了一些管理的难题,网络技术的发展必须适应新的虚拟化技术趋势。为此,IEEE(Institute of Electrical and Electronics Engineers,电气和电子工程师协会)组织针对数据中心虚拟机迁移等新技术提出了一系列新的802.1标准,包括802.1Qau(拥塞通告)、802.1Qaz(增强型传输选择)、802.1Qbb(基于优先级的流控)、802.1Qbg(边缘虚拟桥)、802.1BR(虚拟桥接口扩展)等。With the rapid development of current data centers, a range of virtualization technologies have further reduced data center costs by increasing processor utilization. With the development of cloud computing technology, the virtual machine has soared, and the enterprise data center inevitably has some management problems. The development of network technology must adapt to the new virtualization technology trend. To this end, the IEEE (Institute of Electrical and Electronics Engineers) organization has proposed a series of new 802.1 standards for new technologies such as data center virtual machine migration, including 802.1Qau (congestion notification) and 802.1Qaz (enhanced type). Transmission selection), 802.1Qbb (priority-based flow control), 802.1Qbg (edge virtual bridge), 802.1BR (virtual bridge interface extension), etc.
其中,802.1BR标准可以将远程交换机部署为虚拟环境中的策略控制交换机,通过多个虚拟通道,让边缘虚拟桥复制报文到一组远程接口,利用瀑布式的串联接口和灵活的设计网络,更有效的为多播帧、广播帧和单播帧分配带宽。The 802.1BR standard can be used to deploy a remote switch as a policy control switch in a virtual environment. Through multiple virtual channels, the edge virtual bridge can replicate packets to a set of remote interfaces, using a cascaded serial interface and a flexible design network. More efficient allocation of bandwidth for multicast frames, broadcast frames, and unicast frames.
802.1BR标准还定义PE CSP(Port Extender Content Security Policy,端口扩展器内容安全策略)协议,通过PE CSP协议报文控制网桥配置、监控桥接口扩展设备。如图1是PE CSP协议创建虚拟桥过程示意图,PE(Port Extender,端口扩展器)为设备除上行端口外的所有端口依次向CB(Controlling Bridge,控制桥)申请创建扩展端口,发送Extended Port Create(扩展端口创建)消息,来请求CB创建对应的扩展接口、E-channel(E通道,控制桥和站点之间建立的多个通道),并将E-channel绑定到扩展接口;CB收到Extended Port Create消息后,创建对应的扩展BEP(Ext.Bridge Port Extender,扩展桥端口扩张器)接口,为BEP端口分配ECID(E-channel  Identifier,扩展通道标识)。The 802.1BR standard also defines the PE CSP (Port Extender Content Security Policy) protocol, which controls the bridge configuration and monitors the bridge interface expansion device through PE CSP protocol packets. Figure 1 is a schematic diagram of the process of creating a virtual bridge by using the PE CSP protocol. The PE (Port Extender) is used to apply for the creation of an extended port to the CB (Controlling Bridge). (Extended port creation) message to request the CB to create the corresponding extended interface, E-channel (E channel, control bridge and multiple channels established between the sites), and bind the E-channel to the extended interface; CB receives After the Extended Port Create message, create the corresponding extended BEP (Ext. Bridge Port Extender) interface to assign ECID to the BEP port (E-channel Identifier, extended channel identifier).
扩展BEP接口创建以后,如果PE的扩展端口通过LACP(Link Aggregation Control Protocol,链路汇聚控制协议)聚合成的聚合端口,并且将该聚合端口加入到某个组播/广播组中。在此种组网场景下,数据报文需要在组播/广播组中进行转发,而且聚合端口要能够进行选路和负载分担,一般地,有两种方案可供选择,如下:After the extended BEP interface is created, the extended port of the PE is aggregated into an aggregation port through the Link Aggregation Control Protocol (LACP) and the aggregation port is added to a multicast/broadcast group. In this networking scenario, data packets need to be forwarded in the multicast/broadcast group, and the aggregation port must be able to perform routing and load balancing. Generally, there are two options to choose from, as follows:
第一种方案是,将LACP配置推送到PE,由PE进行管理、选路。该方案缺点在于,由于配置需要从CB推送到PE,可靠性不能得到保障;并且如果聚合的扩展口分布在两台或多台的PE上,那么对于PE来说,它无法知道聚合端口的其他成员信息,也无法对其他设备的端口进行选路计算。因此,该方案存在很大缺陷,无法支持。The first solution is to push the LACP configuration to the PE, and the PE manages and routes the configuration. The disadvantage of this solution is that reliability cannot be guaranteed because the configuration needs to be pushed from the CB to the PE; and if the aggregated expansion port is distributed on two or more PEs, then for the PE, it cannot know the other of the aggregation ports. Member information, and it is also impossible to perform routing calculations on ports of other devices. Therefore, the program has great shortcomings and cannot be supported.
第二种方案为,将LACP配置下发到CB上,由芯片本身根据LACP成员进行选路。如果LACP成员是普通的物理端口,这种方法是可行的。但是如果LACP成员为扩展端口,PE并不感知聚合端口,也无法知道自己设备的端口是否在LACP中。CB上实际存在的物理端口是CASCADE端口(CB上接收CSP报文的端口),无法进行选路和负载分担。因此,该方案也存在一定的问题。The second solution is to send the LACP configuration to the CB. The chip itself selects routes based on the LACP members. This method is feasible if the LACP member is a normal physical port. However, if the LACP member is an extended port, the PE does not know the aggregated port and cannot know whether the port of its own device is in LACP. The actual physical port on the CB is the CASCADE port (the port that receives CSP packets on the CB). The routing and load balancing cannot be performed. Therefore, the program also has certain problems.
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本申请提供一种纵向堆叠系统的数据转发端口选择方法及装置,可以在组网场景下有效地进行选路。The present invention provides a data forwarding port selection method and device for a vertical stacking system, which can effectively perform routing in a networking scenario.
本发明实施例提供如下技术方案。The embodiments of the present invention provide the following technical solutions.
一种纵向堆叠系统的数据转发端口选择方法,包括:A data forwarding port selection method for a vertical stacking system includes:
扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
将所述组播或广播出端口与发送通道进行绑定。Binding the multicast or broadcast out port to the sending channel.
可选的,所述聚合端口为基于链路汇聚控制协议LACP的端口,所述聚 合端口的成员端口包括至少一个端口扩展器PE设备的端口。Optionally, the aggregation port is a port based on a link aggregation control protocol LACP, where the aggregation The member port of the port includes the port of at least one port expander PE device.
可选的,所述将所述组播或广播出端口与发送通道进行绑定包括:Optionally, the binding the multicast or broadcast out port to the sending channel includes:
提取所述组播或广播出端口的标识;Extracting an identifier of the multicast or broadcast out port;
将组播发送设备生成的组播或广播扩展通道标识ECID与所述组播或广播出端口的标识一起填充在发送通道注册报文中,发送到PE设备;The multicast or broadcast extended channel identifier ECID generated by the multicast sending device is filled in the sending channel registration message together with the identifier of the multicast or broadcast outgoing port, and sent to the PE device;
根据所述发送通道注册报文中解析出的组播或广播ECID,将所述组播或广播出端口与所述组播或广播ECID产生对应的关系,并与所述发送通道绑定。And generating, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID, and binding to the sending channel.
可选的,所述扫描组播或广播成员、识别其中的聚合端口前还包括:Optionally, before scanning the multicast or broadcast member and identifying the aggregation port, the method further includes:
将所述PE设备的物理端口设定为组播或广播发送设备的扩展端口,所述组播或广播发送设备为控制桥CB设备;Setting a physical port of the PE device as an extension port of a multicast or broadcast sending device, where the multicast or broadcast sending device is a control bridge CB device;
在所述扩展端口聚合为至少一个聚合端口后,将至少一个所述聚合端口加入组播或广播组中,成为组播或广播组中的组播或广播成员。After the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to a multicast or broadcast group to become a multicast or broadcast member in a multicast or broadcast group.
可选的,所述设定方式包括哈希算法。Optionally, the setting manner includes a hash algorithm.
一种纵向堆叠系统的数据转发端口选择装置,包括:A data forwarding port selection device for a vertical stacking system, comprising:
聚合端口识别模块,设置成扫描组播或广播成员,识别其中的聚合端口;An aggregation port identification module configured to scan a multicast or broadcast member and identify an aggregation port therein;
端口选择模块,设置成从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;a port selection module, configured to select a multicast or broadcast out port according to a setting manner from a member port of the aggregation port;
绑定模块,设置成将所述组播或广播出端口与发送通道进行绑定。The binding module is configured to bind the multicast or broadcast out port to the sending channel.
可选的,所述聚合端口为基于链路汇聚控制协议LACP的端口,所述聚合端口的成员端口包括至少一个端口扩展器PE设备的端口。Optionally, the aggregation port is a port based on a link aggregation control protocol LACP, and the member port of the aggregation port includes a port of at least one port expander PE device.
可选的,所述绑定模块包括:Optionally, the binding module includes:
端口标识提取单元,设置成提取所述组播或广播出端口的标识;a port identifier extraction unit configured to extract an identifier of the multicast or broadcast out port;
报文发送单元,设置成将组播发送设备生成的组播或广播扩展通道标识ECID与所述组播或广播出端口的标识一起填充在发送通道注册报文中,发送到PE设备;The message sending unit is configured to fill the multicast channel or the broadcast extension channel identifier ECID generated by the multicast sending device with the identifier of the multicast or broadcast out port in the sending channel registration message, and send the message to the PE device;
绑定单元,设置成根据所述发送通道注册报文中解析出的组播或广播ECID,将所述组播或广播出端口与所述组播或广播ECID产生对应的关系, 并与所述发送通道绑定。The binding unit is configured to generate, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID. And bound to the sending channel.
可选的,所述装置还包括:Optionally, the device further includes:
扩展端口设定模块,设置成在所述聚合端口识别模块(501)扫描组播或广播成员、识别其中的聚合端口前,将所述PE设备的物理端口设定为组播或广播发送设备的扩展端口,所述组播或广播发送设备为控制桥CB设备;The extended port setting module is configured to set the physical port of the PE device to be a multicast or broadcast transmitting device before the aggregated port identification module (501) scans the multicast or broadcast member and identifies the aggregated port therein. An expansion port, where the multicast or broadcast sending device is a control bridge CB device;
聚合端口加入模块,设置成在所述聚合扩展端口聚合为至少一个聚合端口后,将至少一个所述聚合端口加入组播或广播组中,成为组播或广播组中的组播或广播成员。The aggregation port is added to the module, and after the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to the multicast or broadcast group to become a multicast or broadcast member in the multicast or broadcast group.
可选的,所述设定方式包括哈希算法。Optionally, the setting manner includes a hash algorithm.
一种存储介质,存储有可执行指令;所述可执行指令被处理器执行时实现以下操作:A storage medium storing executable instructions; the executable instructions being executed by a processor to:
扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
将所述组播或广播出端口与发送通道进行绑定。Binding the multicast or broadcast out port to the sending channel.
一种纵向堆叠系统的数据转发端口选择装置,包括:A data forwarding port selection device for a vertical stacking system, comprising:
存储器,设置成存储程序代码;a memory, configured to store program code;
处理器,设置成执行所述程序代码,进行以下操作:a processor, configured to execute the program code, to perform the following operations:
扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
将所述组播或广播出端口与发送通道进行绑定。Binding the multicast or broadcast out port to the sending channel.
本发明实施例提供的方案有效解决了组播或广播报文在PE扩展口聚合成的LACP端口上转发选路的问题,避免PE设备向聚合端口所有成员口组播或广播报文,从而解决了将LACP配置下发到CB上、由芯片本身根据LACP成员进行选路时,若LACP成员包括聚合端口,则难以选路的问题。The solution provided by the embodiment of the present invention effectively solves the problem that the multicast or broadcast packet is forwarded and routed on the LACP port that is aggregated by the PE expansion port, and prevents the PE device from multicasting or broadcasting the packet to all member ports of the aggregation port. When the LACP configuration is sent to the CB and the chip itself is selected according to the LACP member, if the LACP member includes an aggregation port, it is difficult to select a route.
另外,通过本发明实施例提供的方案,既可以有效解决LACP聚合端口加入组播组时,由于聚合端口没有单播ECID,分配的组播ECID无法和实际 物理端口绑定,从而导致组播报文在LACP不能进行选路转发和负载分担的问题,也可以通过在软件层面事先按照一种方法,选择出报文的组播转发路径,从而避免了一般传统方案在可靠性等方面的缺陷,展现出一定的技术优势。In addition, the solution provided by the embodiment of the present invention can effectively solve the problem that when the LACP aggregation port joins the multicast group, the aggregated ECID cannot be allocated due to the unicast ECID of the aggregation port. The physical port is bound to the multicast forwarding packet and the load balancing is disabled on the LACP. You can also select the multicast forwarding path of the packet in advance according to a method at the software level. The shortcomings of traditional solutions in terms of reliability and other aspects show certain technological advantages.
在阅读并理解了附图和详细描述后,可以明白其它方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例的纵向堆叠系统的数据转发端口选择方法的流程图;1 is a flowchart of a method for selecting a data forwarding port of a vertical stacking system according to an embodiment of the present invention;
图2为本发明实施例的一些实施方式中的流程示意图;2 is a schematic flowchart of some embodiments of an embodiment of the present invention;
图3为创建扩展端口的过程示意图;FIG. 3 is a schematic diagram of a process of creating an expansion port;
图4为本发明实施例的纵向堆叠BEP端口聚合图;4 is a schematic diagram of a longitudinal stack BEP port aggregation according to an embodiment of the present invention;
图5A为本发明实施例的纵向堆叠CB设备LACP端口记录示意图;FIG. 5A is a schematic diagram of a LACP port record of a vertically stacked CB device according to an embodiment of the present invention; FIG.
图5B为本发明实施例的纵向堆叠PE设备端口记录示意图;FIG. 5B is a schematic diagram of port recording of a vertically stacked PE device according to an embodiment of the present invention; FIG.
图6为本发明实施例的纵向堆叠系统的数据转发端口选择装置的示意图。FIG. 6 is a schematic diagram of a data forwarding port selection apparatus of a vertical stacking system according to an embodiment of the present invention.
详述Detailed
以下结合说明书附图对本发明实施例进行说明。The embodiments of the present invention are described below in conjunction with the accompanying drawings.
实施例一、提供一种纵向堆叠系统的数据转发端口选择方法,如图1所示,包括如下步骤201~203:The first embodiment provides a method for selecting a data forwarding port of a vertical stacking system. As shown in FIG. 1 , the method includes the following steps 201-203:
步骤201:扫描组播或广播成员,识别其中的聚合端口;Step 201: Scan a multicast or broadcast member to identify an aggregation port therein.
步骤202:从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;Step 202: Select a multicast or broadcast out port from the member ports of the aggregation port according to a setting manner.
步骤203:将所述组播或广播出端口与发送通道进行绑定;这样可以使得报文转发时能够发送到所述组播或广播出端口。Step 203: Bind the multicast or broadcast egress port to the sending channel. This can enable the packet to be sent to the multicast or broadcast egress port when forwarding.
从上面所述可以看出,本实施例提供的纵向堆叠系统的数据转发端口选择方法,能够从聚合端口中选择一个端口作为聚合端口的所有成员端口的报文或其他数据信息收发的出端口,解决了在将LACP配置下发到CB的情况下,组播或广播成员中存在由一个或两个以上PE设备的端口聚合成的聚合 端口而导致无法选路的问题。As can be seen from the above, the data forwarding port selection method of the vertical stacking system provided in this embodiment can select one port from the aggregation port as the outgoing port of all the member ports of the aggregation port or other data information. The aggregation of the ports of one or more PE devices is aggregated in the multicast or broadcast member when the LACP configuration is sent to the CB. The port caused a problem that the route could not be selected.
在本实施例的一些实施方式中,在不同报文转发时、或者在不同的报文转发时刻,可根据端口占用的实际情况和报文的内容、属性等在一个聚合端口中选择不同的端口作为出端口。In some embodiments of the present embodiment, different ports may be selected in an aggregation port according to the actual situation of the port and the content and attributes of the packets when the packets are forwarded or are in different packet forwarding times. As an out port.
在本实施例的一些实施方式中,所述设定方式可以为随机选择方式。In some implementations of this embodiment, the setting manner may be a random selection manner.
在本实施例的一些实施方式中,所述聚合端口可以为基于LACP的端口,所述聚合端口的成员端口可以包括PE设备的端口,可以至少包括一个所述PE设备的端口。In some embodiments of the present embodiment, the aggregation port may be an LACP-based port, and the member port of the aggregation port may include a port of the PE device, and may include at least one port of the PE device.
在本实施例的一些实施方式中,所述将所述组播或广播出端口与发送通道进行绑定可以包括:In some implementations of this embodiment, the binding the multicast or broadcast out port to the sending channel may include:
提取所述组播或广播出端口的标识;Extracting an identifier of the multicast or broadcast out port;
将组播发送设备生成的组播或广播ECID与所述组播或广播出端口的标识一起填充在发送通道注册报文中,发送到PE设备;The multicast or broadcast ECID generated by the multicast sending device is filled in the sending channel registration message together with the identifier of the multicast or broadcast egress port, and sent to the PE device;
根据所述发送通道注册报文中解析出的组播或广播ECID,将所述组播或广播出端口与所述组播或广播ECID产生对应的关系,并与所述发送通道绑定。And generating, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID, and binding to the sending channel.
当PE上的扩展端口通过LACP聚合为一个聚合端口时,CB会记录这个聚合端口的成员端口对应的端口标识。而且聚合端口的成员端口分别拥有不同的ECID,LACP端口作为PE扩展口聚合起来的逻辑口,将不会再分配新的ECID。此时,如果将该聚合端口加入某个组播组或者广播组,CB向PE发送PE CSP报文E-channel注册消息,PE接收到携带E-channel注册消息的CSP报文后,会将组播ECID与该聚合端口绑定。When an expansion port on a PE is aggregated into an aggregation port through LACP, the CB records the port ID of the member port of the aggregation port. The member ports of the aggregation port have different ECIDs. The LACP port is used as the logical interface for the PE expansion port to be aggregated. The new ECID will not be allocated. At this time, if the aggregation port is added to a multicast group or a broadcast group, the CB sends a PE CSP packet E-channel registration message to the PE. After receiving the CSP packet carrying the E-channel registration message, the PE will set the group. The broadcast ECID is bound to the aggregate port.
在本实施例的一些实施方式中,所述扫描组播/广播成员、识别其中的聚合端口的步骤之前,还包括:In some implementations of this embodiment, before the step of scanning the multicast/broadcast member and identifying the aggregation port, the method further includes:
将所述PE设备的物理端口设定为组播或广播发送设备的扩展端口,所述组播或广播发送设备为控制桥CB设备;Setting a physical port of the PE device as an extension port of a multicast or broadcast sending device, where the multicast or broadcast sending device is a control bridge CB device;
在所述扩展端口聚合为至少一个聚合端口后,将至少一个所述聚合端口加入组播或广播组中,成为组播或广播组中的组播或广播成员。After the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to a multicast or broadcast group to become a multicast or broadcast member in a multicast or broadcast group.
上述实施方式的过程参照图2,包括步骤200~203。 The process of the above embodiment refers to FIG. 2 and includes steps 200-203.
步骤200:将所述PE设备的物理端口设定为组播或广播发送设备的扩展端口,所述组播或广播发送设备为控制桥CB设备;Step 200: The physical port of the PE device is set as an extension port of a multicast or broadcast sending device, and the multicast or broadcast sending device is a control bridge CB device.
步骤2001:在所述扩展端口聚合为至少一个聚合端口后,将至少一个所述聚合端口加入组播或广播组中,成为组播或广播组中的组播或广播成员。Step 2001: After the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to a multicast or broadcast group to become a multicast or broadcast member in a multicast or broadcast group.
步骤201~203参见上文。 Steps 201 to 203 are as described above.
在802.1BR协议中,PE会通过Extended Port Create报文向CB依次通告PE设备的端口。CB接收到该报文,从中解析出PE端口的标识,并记录下来。并且CB会唯一的为每一个PE端口分配一个ECID,并将ECID和接收该报文端口的对应关系下发到CB硬件中去,这样就在CB上创建了一个扩展接口。通过Extended Port Create报文的不断上送与ECID的下发,CB会在CASCADE口上创建一个个扩展端口与PE上的每一个实际端口一一对应。另外,CB会向PE发送Extended Port Create Reply报文,并在该报文中携带分配到PE端口上的ECID,作为PE上该端口的唯一标识。In the 802.1BR protocol, the PE advertises the port of the PE device to the CB in turn through the Extended Port Create message. The CB receives the packet and parses the identity of the PE port from it and records it. And the CB will uniquely assign an ECID to each PE port, and send the corresponding relationship between the ECID and the receiving port to the CB hardware, thus creating an extended interface on the CB. Through the continuous delivery of the Extended Port Create message and the delivery of the ECID, the CB creates an extension port on the CASCADE port that corresponds to each actual port on the PE. In addition, the CB sends an Extended Port Create Reply message to the PE, and carries the ECID assigned to the PE port as the unique identifier of the port on the PE.
如图3所示,CB和扩展桥接口扩展器BPE1在创建扩展端口时的过程可以包括101~107:As shown in FIG. 3, the process of the CB and the extended bridge interface expander BPE1 when creating the extended port may include 101 to 107:
101:控制桥设备CB发现BPE1,发起内部扩展桥接口扩展器创建过程。控制桥设备CB和扩展桥接口扩展器BPE1之间相互发LLDP(Link Layer Discovery Protocol,链路层发现协议)报文,发现对方以及对方的直连端口。101: The control bridge device CB discovers BPE1 and initiates an internal expansion bridge interface expander creation process. The LLDP (Link Layer Discovery Protocol) packet is sent between the control bridge device CB and the extended bridge interface expander BPE1 to discover the directly connected port of the other party and the other party.
102:PE CSP初始化。当CB和BPE1互相发现对方以后,分别独立触发设备发送CSP Open(CSP打开)报文,向对方通知CSP协议开启,并等待对方回应。102: PE CSP initialization. After CB and BPE1 discover each other, they independently trigger the device to send a CSP Open message, notify the other party that the CSP protocol is enabled, and wait for the other party to respond.
103:当CB设备或PE设备收到CSP Open报文之后,向对端发送CSP Open Reply(应答)报文进行应答。仅当CB和PE都收到CSP Open Reply报文,证明双方协议、设备都已就绪,能够连接建立。103: After receiving the CSP Open message, the CB device or the PE device sends a CSP Open Reply message to the peer end to respond. Only when both the CB and the PE receive the CSP Open Reply packet, the two protocols and devices are ready to be connected.
104:当双方协议、设备都已就绪,CB就可以初始化BPE1上流端口。通过发送Port Parameters Set(端口参数设置)报文对PE端口进行一些设置。PE回复Port Parameters Set Reply报文进行响应。104: When both parties agree that the device is ready, the CB can initialize the BPE1 upstream port. Make some settings for the PE port by sending a Port Parameters Set message. The PE responds with a Port Parameters Set Reply message.
105:CB初始化C-VLAN组件端口,PE创建扩展端口。PE向CB发送Extended Port Create(扩展端口创建)报文,该报文中携带PE上物理端口信 息。PE通过向CB发送Extended Port Create报文通告设备的端口,CB接收到Extended Port Create报文,通过解析,获得报文中携带的PE端口标识并记录下来。例如,PE上共有N个端口(N为正整数),PE为每个端口分配一个端口标识,例如1、2、3……N等数字作为唯一标记。实际上,该端口标识包括但不限于数字,只要能够区分不同端口都可以,例如,也可以是符号等。PE上记录这些端口标识与端口的对应关系。PE上所有端口可以都通过发送Extended Port Create报文的方式上报给CB。105: The CB initializes the C-VLAN component port, and the PE creates an extension port. The PE sends an Extended Port Create packet to the CB, where the packet carries a physical port letter on the PE. interest. After the PE sends an Extended Port Create message to the CB to advertise the port of the device, the CB receives the Extended Port Create message and obtains the PE port ID carried in the packet and records it. For example, there are N ports on the PE (N is a positive integer), and the PE assigns a port identifier to each port, for example, numbers such as 1, 2, 3, ... N are used as unique identifiers. In fact, the port identifier includes, but is not limited to, a number, as long as it can distinguish between different ports, for example, it can also be a symbol or the like. The correspondence between these port identifiers and ports is recorded on the PE. All the ports on the PE can be reported to the CB by sending Extended Port Create packets.
106:CB接收到这些Extended Port Create报文后,解析出其中的端口标识例如1、2、3……N等,并为每个这样的PE端口分配一个单播ECID,所述ECID的大小为0-4千字节,将为端口分配的ECID与PE端口标识对应关系记录在CB本地的数据库或者资源链表中,并可发送Extended Port Create Replay报文进行回复。106: After receiving the Extended Port Create message, the CB parses out the port identifiers, for example, 1, 2, 3, ..., etc., and allocates a unicast ECID for each such PE port, where the size of the ECID is 0-4 kilobytes, the correspondence between the ECID and the PE port identifier assigned to the port is recorded in the local database or resource list of the CB, and the Extended Port Create Replay message can be sent to reply.
107:后续扩展端口创建过程与前面过程类似。107: The subsequent extended port creation process is similar to the previous process.
CB上接收CSP报文的端口称之为CASCADE端口,例如图4中的端口Port1、Port2。CB将接收携带端口标识n的Extended Port Create报文的CASCADE端口与为该端口n分配的ECID一起下发给硬件,为PE上的端口创建相应扩展端口。CB将为标识为n的端口分配的ECID封装在Extended Port Create Reply报文中,发送到PE。以图4为例:PE1和PE2分别有端口Port3、Port4;Port、Port5、Port6。PE1和PE2分别为这些端口提取或构造的端口标识为数字3、4;5、6、7。PE1记录端口和端口标识的对应关系,比如:Port3-3,Port4-4。PE2记录端口和端口标识的对应关系,比如:Port5-5,Port6-6,Port7-7。PE向CB发送Extended Port Create报文,报文中携带3、4、5、6、7的端口标识。分别的,PE1发送的报文携带端口标识为3、4;PE2发送的报文携带的端口标识为5、6、7。Port1接收到PE1发送的Extended Port Create报文,Port2接收到PE2发送的Extended Port Create报文。CB为PE1上端口标识为3、4的端口Port3、Port4分配ECID:13、14;为PE2上标识为5、6、7的端口Port5、Port6、Port7分配ECID:15、16、17。记录该对应关系,比如:PE1:3-13、4-14;PE2:5-15、6-16、7-17。其中PE1、PE2为PE上的端口标识,后者是为该端口标识分配的ECID。CB将该对应关系填 入Extended Port Reply报文,向PE发送。PE接收到Extended Port Create Reply报文,解析出其中分配的ECID和端口标识(比如:PE1:3-13、4-14;PE2:5-15、6-16、7-17)后,再与本地已记录的内容(比如:PE1:Port3-3、Port4-4;PE2:Port5-5、Port6-6、Port7-7)比对,获得ECID与其端口,然后下发给硬件,将ECID与对应的物理口进行绑定。这样PE上每一个物理口就和CB的扩展口产生了一一对应的关系,参照图4,Port3、Port4、Port5、Port6、Port7分别对应扩展端口Bep3、Bep4、Bep5、Bep6、Bep7。The port that receives CSP packets on the CB is called a CASCADE port, such as ports Port1 and Port2 in Figure 4. The CB sends the CASCADE port of the Extended Port Create message carrying the port identifier n to the hardware along with the ECID assigned to the port n to create a corresponding expansion port for the port on the PE. The ECB that is assigned to the port identified by the CB is encapsulated in the Extended Port Create Reply message and sent to the PE. Take Figure 4 as an example: PE1 and PE2 have ports Port3 and Port4 respectively; Port, Port5, and Port6. The port identifiers extracted or constructed by PE1 and PE2 for these ports are numbers 3, 4, 5, 6, and 7. PE1 records the mapping between ports and port IDs, such as Port3-3 and Port4-4. PE2 records the mapping between ports and port IDs, such as Port5-5, Port6-6, and Port7-7. The PE sends an Extended Port Create message to the CB. The packet carries the port identifiers of 3, 4, 5, 6, and 7. The port IDs of the packets sent by PE1 are 3, 4, and the port IDs of the packets sent by PE2 are 5, 6, and 7. Port1 receives the Extended Port Create message sent by PE1, and Port2 receives the Extended Port Create message sent by PE2. The CB allocates ECIDs: 13, 14 for ports Port 3 and Port 4 whose ports are 3 and 4 on PE1, and assigns ECIDs: 15, 16, and 17 to ports 5, 6, and 7 of ports 5, 6, and 7 on PE2. Record the correspondence, for example: PE1: 3-13, 4-14; PE2: 5-15, 6-16, 7-17. PE1 and PE2 are port identifiers on the PE, and the latter is the ECID assigned to the port identifier. CB fills in the corresponding relationship The extended port reply packet is sent to the PE. After receiving the Extended Port Create Reply packet, the PE resolves the ECID and port identifier (for example, PE1: 3-13, 4-14; PE2: 5-15, 6-16, and 7-17). The locally recorded content (for example: PE1: Port3-3, Port4-4; PE2: Port5-5, Port6-6, Port7-7) is compared, and the ECID and its port are obtained, and then sent to the hardware, and the ECID is correspondingly The physical port is bound. Therefore, each physical port on the PE has a one-to-one correspondence with the expansion port of the CB. Referring to FIG. 4, Port3, Port4, Port5, Port6, and Port7 correspond to the extension ports Bep3, Bep4, Bep5, Bep6, and Bep7, respectively.
如图4所示,当CB与PE已经形成802.1BR环境,此时,如果两个扩展端口聚合为一个聚合端口,如Bep4、Bep5聚合为一个聚合端口TRUNK1或Bep6、Bep7聚合成为一个聚合端口TRUNK2,PE上有新的逻辑端口产生。其中,E1为E-channel1,E2为E-channel2。此时,为聚合端口设置标识,有两种方案可供选择:1)聚合端口(如TRUNK1/TRUNK2)重新生成端口标识X并向CB发送Extended Port Create报文,CB为该逻辑端口生成新的单播ECID-X并在Extended Port Create Reply报文中发送回来。但是这种方法存在以下几个问题:首先,占用单播ECID资源,减少了端口可扩展容量;其次,即使不考虑ECID的问题,重新分配的单播ECID-X无法同实际物理端口绑定,因为实际的物理端口已经拥有已分配的单播ECID,如13、14、15、16、17;再次,802.1BR协议没有规定要为逻辑端口分配单播ECID。基于以上三点,TRUNK1、TRUNK2不再向CB发送Extended Port Create报文进行申请。因此,TRUNK1、TRUNK2作为浮在BEP口上的逻辑口存在,没有单独的单播ECID与之绑定。虽然,TRUNK1、TRUNK2没有新的单播ECID与之对应,但是CB会记录聚合端口成员、CASCADE端口及其单播ECID,比如:TURNK1:4-14-Port1(CASCADE)、5-15-Port2(CASCADE);TRUNK2:6-16-Port2(CASCADE)、7-17-Port2(CASCADE),装置可见图5A、图5B。As shown in Figure 4, when the CB and the PE have formed an 802.1BR environment, the two extended ports are aggregated into one aggregation port. For example, Bep4 and Bep5 are aggregated into one aggregation port, TRUNK1 or Bep6, and Bep7 is aggregated into an aggregation port, TRUNK2. There is a new logical port generated on the PE. Among them, E1 is E-channel1, and E2 is E-channel2. In this case, to set the identifier for the aggregation port, there are two options: 1) The aggregation port (such as TRUNK1/TRUNK2) regenerates the port ID X and sends an Extended Port Create message to the CB. CB generates a new packet for the logical port. The unicast ECID-X is sent back in the Extended Port Create Reply message. However, this method has the following problems: First, the unicast ECID resource is occupied, and the port expandable capacity is reduced. Secondly, even if the ECID problem is not considered, the reassigned unicast ECID-X cannot be bound to the actual physical port. Because the actual physical port already has an assigned unicast ECID, such as 13, 14, 15, 16, 17, and again, the 802.1BR protocol does not specify that a unicast ECID should be assigned to the logical port. Based on the above three points, TRUNK1 and TRUNK2 no longer send extended Port Create messages to the CB for application. Therefore, TRUNK1 and TRUNK2 exist as logical ports floating on the BEP port, and no separate unicast ECID is bound to it. Although TRUNK1 and TRUNK2 do not have new unicast ECIDs, CB records aggregate port members, CASCADE ports, and their unicast ECIDs, such as: TURNK1: 4-14-Port1 (CASCADE), 5-15-Port2 ( CASCADE); TRUNK2: 6-16-Port2 (CASCADE), 7-17-Port2 (CASCADE), the device can be seen in Figure 5A, Figure 5B.
将TRUNK1、TRUNK2加入到某个组播或者广播组中,CB会为组播/广播分配一个组播的ECID,并将该组播ECID绑定到这个组播组/广播组的所有成员上。CB向PE发送携带E-channel Register(E-channel注册)报文。PE设备接收E-channel Register报文并解析出其中的组播ECID。并将该ECID与PE上实际的物理端口进行绑定。 Adding TRUNK1 and TRUNK2 to a multicast or broadcast group, CB assigns a multicast ECID to the multicast/broadcast and binds the multicast ECID to all members of the multicast group/broadcast group. The CB sends an E-channel Register (E-channel register) message to the PE. The PE device receives the E-channel Register packet and parses out the multicast ECID. Bind the ECID to the actual physical port on the PE.
由于Bep4、Bep5以及Bep6、Bep7聚合成的LACP端口没有相应的单播ECID可以和组播E-channel进行绑定,因此在本实施例中,在CB发送PE CSP报文进行E-channel和端口绑定之前,可以由CB扫描组播组成员,如果某个成员为LACP聚合端口且其成员端口是扩展口,那么CB可以按照设定方式计算选举出LACP的一个成员端口作为聚合端口的出端口,该出端口用于接收组播或广播的报文或其他数据;选出出端口后,提取成员端口标识,和该组播的ECID填充在E-channel Register报文中发送到PE,进行绑定。The BEP4, the Bep5, and the Bep6 and the Bep7 are combined with the unicast ECID and can be bound to the multicast E-channel. Therefore, in this embodiment, the CB packet is sent to the E-channel and the port. Before binding, the CB can scan the multicast group members. If a member is an LACP aggregation port and its member port is an extension port, the CB can calculate the member port of the elected LACP as the egress port of the aggregation port. The egress port is configured to receive the multicast or broadcast packet or other data. After the egress port is selected, the member port identifier is extracted, and the ECID of the multicast is filled in the E-channel Register packet and sent to the PE for binding. set.
在本实施例的一些实施方式中,所述设定方式可以包括哈希算法。In some implementations of this embodiment, the setting manner may include a hash algorithm.
在本实施例的一个示例中,参见图4,Bep4、Bep5聚合而成的TRUNK1和Bep6、Bep7聚合而成的TRUNK2分别加入到组播ip224.1.1.1和VLAN1000中。CB记录TRUNK1、TRUNK2及其成员标识和ECID:3-13、4-14;5-15、6-16。CB为TRUNK1、TRUNK2分配组播ECID(范围为4k+1~16k)为5001、12002。可以用TRUNK1即将加入Hash(哈希)的组播ECID1(5001)除以TRUNK1成员个数的余数(例如余数为m)作为最终的值,选定LACP成员的第m+1个端口作为组播出端口:组播ECID1%2=5001%2=1,%为取余的计算符号,余数为1,则取TRUNK1的第二个端口Bep5作为算法最终选定的出端口代表LACP端口加入到组播ip224.1.1.1中。并将Bep5口所在的CASCADE口(Port2)下发CB硬件,加入到组播ip224.1.1.1中。将Bep5对应的标识5-15(单播ECID)和5001(组播ECID)填入E-channel Register报文发送PE。如果TRUNK1加入到另外一个组播ip224.1.1.2,而CB为该组播组分配的组播ECID为5002,那么根据同一个算法:5002%2=0,那么选举出来的端口即为TRUNK1的第一个端口Bep4。填入E-channel Register报文的端口标识、单播ECID、组播ECID就分别为4、14、5002,而下发CB硬件的CASCADE口即为Port1。以TRUNK2加入VLAN1000为例,假设CB为VLAN1000分配的组播ECID为12002,那么根据算法选取出的端口即为:12002%2=0,对应端口即为TRUNK2的第一个端口Port6,单播ECID为16,端口标识为6。下发CB硬件的CASCADE口为Port2,填入E-channel Register报文中的端口标识、单播ECID、组播ECID分别为:6、16、12002。In an example of this embodiment, referring to FIG. 4, TRUNK1 and Bep6 and Bep7, which are aggregated by Bep4 and Bep5, are added to multicast ip224.1.1.1 and VLAN1000 respectively. The CB records TRUNK1, TRUNK2 and its member identification and ECID: 3-13, 4-14; 5-15, 6-16. CB allocates multicast ECIDs (range 4k+1 to 16k) to 500 and 12002 for TRUNK1 and TRUNK2. You can use the multicast ECID1 (5001) that TRUNK1 is about to join the hash to be divided by the remainder of the number of TRUNK1 members (for example, the remainder is m) as the final value. The m+1th port of the LACP member is selected as the multicast. Outgoing port: Multicast ECID1%2=5001%2=1, % is the calculation symbol of the remainder. If the remainder is 1, the second port Bep5 of TRUNK1 is taken as the final port selected by the algorithm to join the group on behalf of the LACP port. Broadcast in ip224.1.1.1. The CB hardware is sent to the CASCADE port (Port2) where the Bep5 port is located, and is added to the multicast ip224.1.1.1. The identifiers 5-15 (unicast ECID) and 5001 (multicast ECID) corresponding to Bep5 are filled in the E-channel Register message and sent to the PE. If the trunk IP1 is added to another multicast ip224.1.1.2, and the multicast ECID assigned by the CB to the multicast group is 5002, then according to the same algorithm: 5002%2=0, the elected port is TRUNK1. The first port is Bep4. The port ID, unicast ECID, and multicast ECID of the E-channel Register message are 4, 14, and 5002, respectively, and the CASCADE port of the CB hardware is Port1. Take the trunk 1000 as the example. If the multicast ECID assigned by the CB to the VLAN 1000 is 12002, the port selected according to the algorithm is: 12002%2=0, and the corresponding port is the first port of the TRUNK2, Port6, and the unicast ECID. Is 16, the port is identified as 6. The CASCADE port of the CB hardware is Port2, and the port identifier, unicast ECID, and multicast ECID in the E-channel Register message are: 6, 16, and 12002.
PE接收到E-channel Register报文,解析出其中的组播ECID和端口标识, 仅以TRUNK1加入组播ip224.1.1.1为例。PE从E-channel Register报文中解析出5、15、5001。根据图5A、图5B所示的记录,找到对应端口为Port5,然后将Port5与组播ECID5001进行绑定。这样,实际加入到组播ip224.1.1.1的就是端口Port5,而Port4并不在组播ip224.1.1.1中。同理,TRUNK1加入到组播ip224.1.1.2和TRUNK2加入到VLAN1000均可采用此种方法,最终实际加入的端口分别为Port4和Port6。The PE receives the E-channel Register packet and parses out the multicast ECID and port identifier. For example, TRUNK1 joins multicast ip224.1.1.1 as an example. The PE parses out 5, 15, and 5001 from the E-channel Register message. According to the records shown in FIG. 5A and FIG. 5B, the corresponding port is found as Port5, and then Port5 is bound to the multicast ECID5001. Thus, the actual port that is added to multicast ip224.1.1.1 is port 5, and Port 4 is not in multicast ip224.1.1.1. Similarly, if TRUNK1 joins multicast ip224.1.1.2 and TRUNK2 joins VLAN 1000, this method can be used. The ports actually added are Port4 and Port6.
所以,根据本实施例以上实施提出的方法,当一个组播报文在组播组(ip为224.1.1.1)转发的时候,如果其组播出端口为TRUNK1,那么它在CB上会找到出端口Port1(CB上Port1和组播组的IP 224.1.1.1已下硬件),报文到达PE以后,转发到Bep5。Therefore, according to the method proposed in the above embodiment, when a multicast packet is forwarded in the multicast group (ip 224.1.1.1), if the multicast outgoing port is TRUNK1, it will be found on the CB. Port 1 (Port 1 on the CB and IP 224.1.1.1 of the multicast group). After the packet arrives at the PE, it is forwarded to Bep5.
因为所述聚合端口并没有分配单播的ECID(与LACP的成员口ECID不同),即CB未能感知PE上的LACP聚合端口为一个独立的扩展口。所以,可以通过一种方法选取LACP的某个成员口(PE的扩展端口),与组播ECID进行绑定。当组播流量转发或者复制到该LACP的时候,就转发复制到选举出的这个成员口。从而避免了给LACP端口分配ECID,既节省了单播ECID资源,又减少了PE上不同扩展端口之间进行硬件Hash选路的复杂度。The aggregation port does not allocate a unicast ECID (which is different from the member interface ECID of the LACP). That is, the CB fails to detect that the LACP aggregation port on the PE is a separate expansion port. Therefore, a member interface of the LACP (the extended port of the PE) can be selected and bound to the multicast ECID. When multicast traffic is forwarded or copied to the LACP, it is forwarded to the elected member interface. Therefore, the ECID is not allocated to the LACP port, which saves the unicast ECID resource and reduces the complexity of hardware hash routing between different expansion ports on the PE.
实施例二、一种纵向堆叠系统的数据转发端口选择装置,如图6所示,包括:Embodiment 2: A data forwarding port selection device of a vertical stacking system, as shown in FIG. 6, includes:
聚合端口识别模块501,设置成扫描组播或广播成员,识别其中的聚合端口;The aggregation port identification module 501 is configured to scan a multicast or broadcast member and identify an aggregation port therein;
端口选择模块502,设置成从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;The port selection module 502 is configured to select a multicast or broadcast out port from the member ports of the aggregation port according to a setting manner;
绑定模块503,设置成将所述组播或广播出端口与发送通道进行绑定;这样可以使得报文转发时,能够发送到所述组播/广播出端口。The binding module 503 is configured to bind the multicast or broadcast egress port to the sending channel, so that the packet can be sent to the multicast/broadcast egress port when the packet is forwarded.
在本实施例的一些实施方式中,所述聚合端口可以为基于链路汇聚控制协议LACP的端口,所述聚合端口的成员端口可以包括至少一个PE设备的端口。In some implementations of this embodiment, the aggregation port may be a port based on a link aggregation control protocol LACP, and a member port of the aggregation port may include a port of at least one PE device.
在本实施例的一些实施方式中,所述绑定模块可以包括: In some implementations of this embodiment, the binding module may include:
端口标识提取单元,设置成提取所述组播或广播出端口的标识;a port identifier extraction unit configured to extract an identifier of the multicast or broadcast out port;
报文发送单元,设置成将组播发送设备生成的组播或广播ECID与所述组播或广播出端口的标识一起填充在发送通道注册报文中,发送到PE设备;The message sending unit is configured to fill the multicast channel or the broadcast ECID generated by the multicast sending device with the identifier of the multicast or broadcast port in the sending channel registration message, and send the packet to the PE device;
绑定单元,设置成根据所述发送通道注册报文中解析出的组播或广播ECID,将所述组播或广播出端口与所述组播或广播ECID产生对应的关系,并与所述发送通道绑定。The binding unit is configured to generate, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID, and the Send channel binding.
在本实施例的一些实施方式中,所述装置还可以包括:In some implementations of this embodiment, the apparatus may further include:
扩展端口设定模块,设置成在聚合端口识别模块扫描组播或广播成员,识别其中的聚合端口前,将所述PE设备的物理端口设定为组播或广播发送设备的扩展端口,所述组播或广播发送设备为控制桥CB设备;An extended port setting module, configured to set a physical port of the PE device as an extension port of a multicast or broadcast sending device, before the aggregation port identification module scans the multicast or broadcast member, and identifies the aggregation port therein, The multicast or broadcast sending device is a control bridge CB device;
聚合端口加入模块,设置成在所述聚合扩展端口聚合为至少一个聚合端口后,将至少一个所述聚合端口加入组播或广播组中,成为组播或广播组中的组播或广播成员。The aggregation port is added to the module, and after the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to the multicast or broadcast group to become a multicast or broadcast member in the multicast or broadcast group.
在本实施例的一些实施方式中,所述设定方式可以包括哈希算法。In some implementations of this embodiment, the setting manner may include a hash algorithm.
实施例三、一种存储介质,存储有可执行指令;所述可执行指令被处理器执行时实现以下操作:Embodiment 3 A storage medium storing executable instructions; when the executable instructions are executed by a processor, the following operations are implemented:
扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
将所述组播或广播出端口与发送通道进行绑定,使得报文转发时,能够发送到所述组播或广播出端口。The multicast or broadcast egress port is bound to the sending channel, so that when the packet is forwarded, the packet can be sent to the multicast or broadcast egress port.
其它实现细节可参考实施例一。For other implementation details, refer to Embodiment 1.
实施例四、一种纵向堆叠系统的数据转发端口选择装置,包括:Embodiment 4: A data forwarding port selection device of a vertical stacking system, comprising:
存储器,设置成存储程序代码;a memory, configured to store program code;
处理器,设置成执行所述程序代码,进行以下操作:a processor, configured to execute the program code, to perform the following operations:
扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
将所述组播或广播出端口与发送通道进行绑定,使得报文转发时,能够 发送到所述组播或广播出端口。Binding the multicast or broadcast egress port to the sending channel, so that when the packet is forwarded, Send to the multicast or broadcast out port.
其它实现细节可参考实施例一。For other implementation details, refer to Embodiment 1.
上述实施例提供的方案有效解决了组播/广播报文在PE扩展口聚合成的LACP端口上转发选路的问题,避免PE设备向聚合端口所有成员口组播或广播报文。从而解决了将LACP配置下发到CB上、由芯片本身根据LACP成员进行选路时,若LACP成员包括聚合端口,则难以选路的问题。The solution provided by the foregoing embodiment effectively solves the problem that the multicast/broadcast packet is forwarded and routed on the LACP port that is aggregated by the PE expansion port, and prevents the PE device from multicasting or broadcasting the packet to all member ports of the aggregation port. Therefore, when the LACP configuration is sent to the CB and the chip itself is selected according to the LACP member, if the LACP member includes the aggregation port, it is difficult to select a route.
另外,通过上述实施例提供的方案,既可以有效解决LACP聚合端口加入组播组时,由于聚合端口没有单播ECID,分配的组播ECID无法和实际物理端口绑定,从而导致组播报文在LACP不能进行选路转发和负载分担的问题,也可以通过在软件层面事先按照一种方法,选择出报文的组播转发路径,从而避免了一般传统方案在可靠性等方面的缺陷,展现出一定的技术优势。In addition, the solution provided by the foregoing embodiment can effectively solve the problem that the LACP aggregation port is added to the multicast group, and the aggregated ECID cannot be bound to the actual physical port because the aggregation port has no unicast ECID. The problem of routing forwarding and load balancing cannot be performed on the LACP. You can also select the multicast forwarding path of the packet in advance according to a method at the software level. This avoids the defects of the traditional scheme in reliability and other aspects. A certain technical advantage.
应当理解,本说明书所描述的多个实施例仅用于说明和解释本申请,并不用于限定本申请。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It is to be understood that the various embodiments of the present invention are intended to illustrate and explain the present application. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若对本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。A person skilled in the art can make various modifications and variations to the embodiments of the present invention without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the invention,
工业实用性Industrial applicability
本发明实施例提供的方案有效解决了组播/广播报文在PE扩展口聚合成的LACP端口上转发选路的问题,避免PE设备向聚合端口所有成员口组播或广播报文,从而解决了将LACP配置下发到CB上、由芯片本身根据LACP成员进行选路时,若LACP成员包括聚合端口,则难以选路的问题。 The solution provided by the embodiment of the present invention effectively solves the problem that the multicast/broadcast packet is forwarded and routed on the LACP port that is aggregated by the PE expansion port, and the PE device can prevent multicast or broadcast packets from all the member interfaces of the aggregation port. When the LACP configuration is sent to the CB and the chip itself is selected according to the LACP member, if the LACP member includes an aggregation port, it is difficult to select a route.

Claims (12)

  1. 一种纵向堆叠系统的数据转发端口选择方法,包括:A data forwarding port selection method for a vertical stacking system includes:
    扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
    从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
    将所述组播或广播出端口与发送通道进行绑定。Binding the multicast or broadcast out port to the sending channel.
  2. 根据权利要求1所述的方法,其中,所述聚合端口为基于链路汇聚控制协议LACP的端口,所述聚合端口的成员端口包括至少一个端口扩展器PE设备的端口。The method of claim 1, wherein the aggregation port is a port based on a Link Aggregation Control Protocol (LACP), and a member port of the aggregation port comprises a port of at least one port expander PE device.
  3. 根据权利要求2所述的方法,其中,所述将所述组播或广播出端口与发送通道进行绑定包括:The method of claim 2, wherein the binding the multicast or broadcast out port to the sending channel comprises:
    提取所述组播或广播出端口的标识;Extracting an identifier of the multicast or broadcast out port;
    将组播发送设备生成的组播或广播扩展通道标识ECID与所述组播或广播出端口的标识一起填充在发送通道注册报文中,发送到PE设备;The multicast or broadcast extended channel identifier ECID generated by the multicast sending device is filled in the sending channel registration message together with the identifier of the multicast or broadcast outgoing port, and sent to the PE device;
    根据所述发送通道注册报文中解析出的组播或广播ECID,将所述组播或广播出端口与所述组播或广播ECID产生对应的关系,并与所述发送通道绑定。And generating, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID, and binding to the sending channel.
  4. 根据权利要求2所述的方法,其中,所述扫描组播或广播成员、识别其中的聚合端口前还包括:The method of claim 2, wherein the scanning the multicast or broadcast member and identifying the aggregation port therein further comprises:
    将所述PE设备的物理端口设定为组播或广播发送设备的扩展端口,所述组播或广播发送设备为控制桥CB设备;Setting a physical port of the PE device as an extension port of a multicast or broadcast sending device, where the multicast or broadcast sending device is a control bridge CB device;
    在所述扩展端口聚合为至少一个聚合端口后,将至少一个所述聚合端口加入组播或广播组中,成为组播或广播组中的组播或广播成员。After the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to a multicast or broadcast group to become a multicast or broadcast member in a multicast or broadcast group.
  5. 根据权利要求1所述的方法,其中,所述设定方式包括哈希算法。The method of claim 1 wherein said setting mode comprises a hashing algorithm.
  6. 一种纵向堆叠系统的数据转发端口选择装置,包括:A data forwarding port selection device for a vertical stacking system, comprising:
    聚合端口识别模块(501),设置成扫描组播或广播成员,识别其中的聚合端口;An aggregation port identification module (501) configured to scan a multicast or broadcast member and identify an aggregation port therein;
    端口选择模块(502),设置成从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口; The port selection module (502) is configured to select a multicast or broadcast out port according to a setting manner from a member port of the aggregation port;
    绑定模块(503),设置成将所述组播或广播出端口与发送通道进行绑定。The binding module (503) is configured to bind the multicast or broadcast out port to the sending channel.
  7. 根据权利要求6所述的装置,其中,所述聚合端口为基于链路汇聚控制协议LACP的端口,所述聚合端口的成员端口包括至少一个端口扩展器PE设备的端口。The apparatus according to claim 6, wherein the aggregation port is a port based on a Link Aggregation Control Protocol (LACP), and a member port of the aggregation port comprises a port of at least one port expander PE device.
  8. 根据权利要求7所述的装置,其中,所述绑定模块(503)包括:The apparatus of claim 7, wherein the binding module (503) comprises:
    端口标识提取单元,设置成提取所述组播或广播出端口的标识;a port identifier extraction unit configured to extract an identifier of the multicast or broadcast out port;
    报文发送单元,设置成将组播发送设备生成的组播或广播扩展通道标识ECID与所述组播或广播出端口的标识一起填充在发送通道注册报文中发送到PE设备;The message sending unit is configured to fill the multicast or broadcast extended channel identifier ECID generated by the multicast sending device with the identifier of the multicast or broadcast out port in the sending channel registration message, and send the message to the PE device;
    绑定单元,设置成根据所述发送通道注册报文中解析出的组播或广播ECID,将所述组播或广播出端口与所述组播或广播ECID产生对应的关系,并与所述发送通道绑定。The binding unit is configured to generate, according to the multicast or broadcast ECID parsed in the sending channel registration message, the multicast or broadcast egress port and the multicast or broadcast ECID, and the Send channel binding.
  9. 根据权利要求7所述的装置,还包括:The apparatus of claim 7 further comprising:
    扩展端口设定模块,设置成在所述聚合端口识别模块(501)扫描组播或广播成员、识别其中的聚合端口前,将所述PE设备的物理端口设定为组播或广播发送设备的扩展端口,所述组播或广播发送设备为控制桥CB设备;The extended port setting module is configured to set the physical port of the PE device to be a multicast or broadcast transmitting device before the aggregated port identification module (501) scans the multicast or broadcast member and identifies the aggregated port therein. An expansion port, where the multicast or broadcast sending device is a control bridge CB device;
    聚合端口加入模块,设置成在所述聚合扩展端口聚合为至少一个聚合端口后,将至少一个所述聚合端口加入组播或广播组中,成为组播或广播组中的组播或广播成员。The aggregation port is added to the module, and after the aggregation port is aggregated into at least one aggregation port, at least one of the aggregation ports is added to the multicast or broadcast group to become a multicast or broadcast member in the multicast or broadcast group.
  10. 根据权利要求7所述的装置,其中,所述设定方式包括哈希算法。The apparatus of claim 7, wherein the setting mode comprises a hashing algorithm.
  11. 一种存储介质,存储有可执行指令;所述可执行指令被处理器执行时实现以下操作:A storage medium storing executable instructions; the executable instructions being executed by a processor to:
    扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
    从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
    将所述组播或广播出端口与发送通道进行绑定。Binding the multicast or broadcast out port to the sending channel.
  12. 一种纵向堆叠系统的数据转发端口选择装置,包括:A data forwarding port selection device for a vertical stacking system, comprising:
    存储器,设置成存储程序代码;a memory, configured to store program code;
    处理器,设置成执行所述程序代码,进行以下操作: a processor, configured to execute the program code, to perform the following operations:
    扫描组播或广播成员,识别其中的聚合端口;Scan multicast or broadcast members to identify the aggregated ports;
    从所述聚合端口的成员端口中,按照设定方式选择组播或广播出端口;From the member ports of the aggregation port, select a multicast or broadcast out port according to the setting mode;
    将所述组播或广播出端口与发送通道进行绑定。 Binding the multicast or broadcast out port to the sending channel.
PCT/CN2017/084546 2016-06-13 2017-05-16 Method and device for selecting data forwarding port of longitudinal stack system WO2017215390A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610420117.4 2016-06-13
CN201610420117.4A CN107493244A (en) 2016-06-13 2016-06-13 The data forwarding port selecting method and device of a kind of vertical stack system

Publications (1)

Publication Number Publication Date
WO2017215390A1 true WO2017215390A1 (en) 2017-12-21

Family

ID=60642840

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084546 WO2017215390A1 (en) 2016-06-13 2017-05-16 Method and device for selecting data forwarding port of longitudinal stack system

Country Status (2)

Country Link
CN (1) CN107493244A (en)
WO (1) WO2017215390A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924066A (en) * 2018-06-20 2018-11-30 新华三技术有限公司 Message forwarding method and device
CN112491705A (en) * 2018-04-23 2021-03-12 华为技术有限公司 Network equipment stacking method, network equipment and storage medium
CN114189484A (en) * 2021-12-28 2022-03-15 杭州迪普科技股份有限公司 Method and device for forwarding message internally
CN115484233A (en) * 2022-09-23 2022-12-16 北京物芯科技有限责任公司 Method, device, equipment and medium for forwarding link aggregation message in digital communication chip

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274516B (en) * 2017-12-22 2022-01-25 新华三技术有限公司 Extended network bridge and online control method thereof
CN108259228B (en) * 2017-12-22 2021-06-08 新华三技术有限公司 Network equipment virtualization system and equipment configuration method and device thereof
CN108092896B (en) * 2017-12-26 2020-12-08 新华三技术有限公司 Stacking system and aggregation group creation apparatus
CN107911301B (en) * 2017-12-28 2020-11-20 新华三技术有限公司 Message forwarding method and device
CN108696459B (en) * 2018-04-28 2021-04-06 新华三技术有限公司 Stacking system and message forwarding method
CN111010343B (en) * 2019-12-18 2022-01-11 锐捷网络股份有限公司 Method, device, network equipment and storage medium for forwarding multicast message
CN115037565B (en) * 2022-06-02 2023-12-12 北京东土军悦科技有限公司 Multicast data forwarding method, device, network equipment, storage medium and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338161A (en) * 2013-07-10 2013-10-02 杭州华三通信技术有限公司 Method and equipment for realizing cross-equipment aggregation
US20140044129A1 (en) * 2012-08-10 2014-02-13 Duane Edward MENTZE Multicast packet forwarding in a network
CN103780480A (en) * 2012-10-17 2014-05-07 杭州华三通信技术有限公司 Message forwarding method and message forwarding equipment
CN104410577A (en) * 2014-11-05 2015-03-11 杭州华三通信技术有限公司 Broadcast message transmission method and device
CN104935509A (en) * 2015-04-30 2015-09-23 杭州华三通信技术有限公司 Method and apparatus of avoiding loop generation in vertical stack system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140044129A1 (en) * 2012-08-10 2014-02-13 Duane Edward MENTZE Multicast packet forwarding in a network
CN103780480A (en) * 2012-10-17 2014-05-07 杭州华三通信技术有限公司 Message forwarding method and message forwarding equipment
CN103338161A (en) * 2013-07-10 2013-10-02 杭州华三通信技术有限公司 Method and equipment for realizing cross-equipment aggregation
CN104410577A (en) * 2014-11-05 2015-03-11 杭州华三通信技术有限公司 Broadcast message transmission method and device
CN104935509A (en) * 2015-04-30 2015-09-23 杭州华三通信技术有限公司 Method and apparatus of avoiding loop generation in vertical stack system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491705A (en) * 2018-04-23 2021-03-12 华为技术有限公司 Network equipment stacking method, network equipment and storage medium
CN112491705B (en) * 2018-04-23 2021-12-21 华为技术有限公司 Network equipment stacking method, network equipment and storage medium
CN108924066A (en) * 2018-06-20 2018-11-30 新华三技术有限公司 Message forwarding method and device
CN108924066B (en) * 2018-06-20 2020-09-08 新华三技术有限公司 Message forwarding method and device
CN114189484A (en) * 2021-12-28 2022-03-15 杭州迪普科技股份有限公司 Method and device for forwarding message internally
CN114189484B (en) * 2021-12-28 2023-10-27 杭州迪普科技股份有限公司 Method and device for forwarding message internally
CN115484233A (en) * 2022-09-23 2022-12-16 北京物芯科技有限责任公司 Method, device, equipment and medium for forwarding link aggregation message in digital communication chip
CN115484233B (en) * 2022-09-23 2024-04-12 北京物芯科技有限责任公司 Method, device, equipment and medium for forwarding link aggregation message in digital communication chip

Also Published As

Publication number Publication date
CN107493244A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
WO2017215390A1 (en) Method and device for selecting data forwarding port of longitudinal stack system
US10567187B2 (en) Methods to optimize multicast routing in overlay networks
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
EP2905930B1 (en) Processing method, apparatus and system for multicast
Del Piccolo et al. A survey of network isolation solutions for multi-tenant data centers
US11005752B2 (en) Packet transmission
US9729578B2 (en) Method and system for implementing a network policy using a VXLAN network identifier
CN103200069B (en) A kind of method and apparatus of Message processing
US8989188B2 (en) Preventing leaks among private virtual local area network ports due to configuration changes in a headless mode
US10193707B2 (en) Packet transmission method and apparatus
EP2874359A1 (en) Extended ethernet fabric switches
US10523464B2 (en) Multi-homed access
US20160087887A1 (en) Routing fabric
CN108600074B (en) Method and device for forwarding multicast data message
WO2015149253A1 (en) Data center system and virtual network management method of data center
US9917794B2 (en) Redirection IP packet through switch fabric
US11895030B2 (en) Scalable overlay multicast routing
US20160134513A1 (en) Concerted Multi-Destination Forwarding in a Joint TRILL Fabric and VXLAN/IP Fabric Data Center
TW201519621A (en) Management server and management method thereof for managing cloud appliances in virtual local area networks
EP2584742A1 (en) Method and switch for sending packet
US20150138986A1 (en) Load balancing in a link aggregation
US20230283589A1 (en) Synchronizing dynamic host configuration protocol snoop information
JP2020511873A (en) MAC address synchronization
CN107634907B (en) Data forwarding method and device for L2VPN (layer two virtual private network)
WO2018150222A1 (en) Internet protocol (ip) address allocation over virtual layer 2 networks

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

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

Country of ref document: EP

Kind code of ref document: A1