CN111163009B - Method and device for realizing three-layer multicast in port expansion system - Google Patents

Method and device for realizing three-layer multicast in port expansion system Download PDF

Info

Publication number
CN111163009B
CN111163009B CN202010104796.0A CN202010104796A CN111163009B CN 111163009 B CN111163009 B CN 111163009B CN 202010104796 A CN202010104796 A CN 202010104796A CN 111163009 B CN111163009 B CN 111163009B
Authority
CN
China
Prior art keywords
message
source
tag
cid
port
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010104796.0A
Other languages
Chinese (zh)
Other versions
CN111163009A (en
Inventor
杨曙军
王子晗
李晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Centec Networks Suzhou Co Ltd
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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN202010104796.0A priority Critical patent/CN111163009B/en
Publication of CN111163009A publication Critical patent/CN111163009A/en
Application granted granted Critical
Publication of CN111163009B publication Critical patent/CN111163009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a device for realizing three-layer multicast in a port expansion system, wherein the method comprises the steps that a control network bridge receives a three-layer multicast message carrying an E-TAG, obtains source port information, searches a three-layer multicast forwarding table and obtains a multicast group comprising all three layers of members; copying the message for each three-layer member, obtaining a message editing behavior index and a destination port for each three-layer member, further searching an editing behavior table, and obtaining two-layer multicast destination E-CID information and whether to encapsulate source E-CID information; and packaging a target E-CID field in the E-TAG, judging whether a source E-CID field is packaged or not, copying the source E-CID field in the source message when the source E-CID field needs to be packaged, and forwarding the message to corresponding port expansion equipment according to the target port. The invention can realize the forwarding of three-layer multicast in the port expansion system and expand the application range of the port expansion system.

Description

Method and device for realizing three-layer multicast in port expansion system
Technical Field
The present invention relates to the field of port expansion technologies, and in particular, to a method and an apparatus for implementing a three-layer multicast in a port expansion system.
Background
802.1BR is a standard specified by IEEE for local and metropolitan networks and may provide multi-port expansion capability for bridges for multiple physical server connections, blade servers, or logical connections for independent bridge ports for virtual machines. 802.1BR establishes an extended Bridge system (BPE, Bridge Port extended), which includes a CB (Controlling Bridge) and one or more PEs (Port extensions), wherein the CB provides a management node for management of the extended Bridge, so as to implement management of the PE, and the PE is used for maintaining a relationship between a network Port of a terminal service and an ECID, and forwarding according to the ECID, and does not have capabilities of a two-layer forwarding table and a three-layer forwarding table.
The multicast message forwarding process in the 802.1BR port expansion system comprises the following steps: after receiving message from host, PE device maps a unique E-CID according to the received port, and packages the E-CID field of source in E-TAG and transmits it to CB, CB recovers its source port ID by the E-CID in E-TAG and reads the attribute of said port, and searches the two-layer or three-layer forwarding table to obtain multicast group, and maps out the target E-CID according to multicast group, then copies a message to different PEs one by one, packages the target E-CID to E-TAG and transmits it to corresponding PE device, PE receives the message from CB, and obtains member port list by looking up the E-CID in E-TAG, and copies the message one by one, finally reaches corresponding host, and obtains multicast message source port by the E-CID in E-TAG, and discards the message copied to this port, preventing duplication of messages of the same source and destination. In the above existing port extension system, the message forwarding process can complete the forwarding of the two-layer multicast, and the forwarding of the three-layer multicast cannot be realized.
Disclosure of Invention
The present invention is directed to overcome the drawbacks of the prior art, and provides a method and an apparatus for implementing a three-layer multicast in a port expansion system.
In order to achieve the purpose, the invention provides the following technical scheme: a method for realizing three-layer multicast in a port expansion system comprises the following steps:
s100, the control network bridge receives a three-layer multicast message carrying an E-TAG from a port expansion device, obtains source port information through a source E-CID field in the E-TAG, searches a three-layer multicast forwarding table and obtains a multicast group comprising all three layers of members;
s200, copying a three-layer multicast group message for each three-layer member, wherein each three-layer member obtains a message editing behavior index and a destination port; s300, searching a message editing behavior table according to the message editing behavior index to obtain two-layer multicast target E-CID information and whether to encapsulate source E-CID information; s400, according to the two-layer multicast target E-CID information, packaging the target E-CID field in the E-TAG, according to whether the source E-CID information is packaged, judging whether the source E-CID field in the E-TAG is packaged, copying the source E-CID field value in the E-TAG to the source E-CID field value in the source message when the source E-CID field is packaged, and forwarding the message to the corresponding port expansion equipment according to the target port.
Preferably, the message edit behavior table has an edit behavior field for marking an E-TAG encapsulation behavior, and the edit behavior field includes a two-layer multicast destination E-CID field and a source E-CID field whether to encapsulate or not.
Preferably, if the source E-CID field in the E-TAG is not encapsulated, the value of the source E-CID field in the E-TAG is set to 0.
Preferably, after receiving the message sent by the control bridge, the port expansion device performs two-layer multicast message replication according to the E-TAG in the message.
The device for realizing three-layer multicast in the port expansion system disclosed by the invention comprises
The message receiving module is used for receiving a three-layer multicast message carrying an E-TAG from the port expansion equipment, acquiring source port information through a source E-CID field in the E-TAG, searching a three-layer multicast forwarding table and acquiring a multicast group comprising all three layers of members;
the message copying module is used for copying the three-layer multicast group message for each three-layer member, and each three-layer member obtains a message editing behavior index and a target port;
the message editing module is used for searching a message editing behavior table according to the message editing behavior index to obtain the E-CID information of the two-layer multicast destination and whether the source E-CID information is encapsulated;
and the message encapsulation module is used for encapsulating a target E-CID field in the E-TAG according to the two-layer multicast target E-CID information, judging whether to encapsulate a source E-CID field in the E-TAG according to whether to encapsulate the source E-CID information, copying a source E-CID field value in the E-TAG to a source E-CID field value in a source message when encapsulating the source E-CID field, and forwarding the message to corresponding port expansion equipment according to a target port.
Preferably, the message edit behavior table has an edit behavior field for marking an E-TAG encapsulation behavior, and the edit behavior field includes a two-layer multicast destination E-CID field and a source E-CID field whether to encapsulate or not.
Preferably, the message encapsulation module sets the value of the source E-CID field in the E-TAG to 0 when the source E-CID field in the E-TAG is not encapsulated.
Preferably, after receiving the message sent by the control bridge, the port expansion device performs two-layer multicast message replication according to the E-TAG in the message.
The invention has the beneficial effects that:
the invention duplicates the three-layer multicast message to each three-layer member through the control network bridge, each message has different target E-CID and source E-CID, and the message is forwarded to the corresponding port expansion equipment through the target port, and the port expansion equipment duplicates the two-layer multicast according to the E-TAG, thereby effectively solving the problem that the existing port expansion system can not support the forwarding of the three-layer multicast.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention;
fig. 2 is a block diagram illustrating the structure of the present invention.
Detailed Description
The technical solution of the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention.
The method for realizing three-layer multicast in the port expansion system disclosed by the invention can enable the port expansion system to support three-layer multicast, and expand the application range of the port expansion system.
Referring to fig. 1, a method for implementing three-layer multicast in a port expansion system disclosed by the present invention includes the following steps:
s100, the control network bridge receives a three-layer multicast message carrying an E-TAG from a port expansion device, obtains source port information through a source E-CID in the E-TAG, further searches a three-layer multicast forwarding table and obtains a multicast group comprising all three layers of members;
specifically, the Port extension system comprises a Control Bridge (CB) and one or more Port Extensions (PE) in communication with the control Bridge, wherein the control Bridge provides a management node for managing the extension Bridge, and the management node is configured to manage the Port extensions; the port expansion device is used for maintaining the relationship between the network port of the terminal service and the E-CID (E-Channel Identifier), and forwarding the message according to the E-CID.
The method comprises the steps that a message carries an E-TAG mark in the transmission process between a control network bridge and a port expansion device, the E-TAG mark comprises a source E-CID field and a target E-CID field, after the control network bridge receives a three-layer multicast message carrying the E-TAG from the port expansion device, the source E-CID field in the E-TAG is firstly analyzed to obtain source port information, then a three-layer multicast forwarding table is searched through the source port information, and a multicast group comprising all three layers of members is obtained.
In this embodiment, the source port information is obtained through the following steps: and analyzing the source E-CID field in the E-TAG to obtain a source port number, and further obtaining the attribute of the port according to the source port number to obtain source port information.
S200, copying a three-layer multicast message for each three-layer member, wherein each three-layer member obtains a message editing behavior index and a destination port;
specifically, after the multicast group including all the three-tier members is obtained, the messages are further copied one by one for each three-tier member, so that each three-tier member obtains a three-tier multicast message. After the control network bridge copies a multicast message for each three-layer member, each three-layer member obtains a message editing behavior index and a destination port, wherein the message editing behavior index is used for searching a message editing behavior table, and the destination port is used for marking the port expansion device to which the multicast message is sent.
S300, searching an editing behavior table according to the message editing index to obtain the two-layer multicast destination ECID information and whether to encapsulate the source ECID information;
specifically, after the message editing behavior index is obtained, the message editing behavior table is further searched through the message editing behavior index. In order to realize the three-layer multicast forwarding, an editing behavior field for marking the E-TAG packaging behavior is stored in the editing behavior table, and comprises a two-layer multicast destination E-CID field and whether a source E-CID field is packaged or not; meanwhile, the three-layer member comprises a three-layer domain where the source port is located and other three-layer domains, wherein the behavior of the three-layer domain where the source port is located is a two-layer forwarding behavior, the source E-CID needs to be encapsulated so that the port expansion device recovers the message source port, the message with the same resistance source and the same destination is copied, and the other three-layer domains are forwarded by different VLANs, so that the source E-CID does not need to be encapsulated so that the port expansion device does not perform message discarding of the source port.
After searching the message editing behavior table through the message editing behavior index, the information of the E-CID of the two-layer multicast destination and the information of whether the source E-CID is encapsulated can be obtained.
S400, according to the two-layer multicast target ECID information, packaging a target ECID field in the ETAG, judging whether to package a source ECID according to whether to package the source ECID information, copying the source ECID field in the ETAG to a source message source ECID field when packaging the source ECID, and forwarding the message to corresponding port expansion equipment according to a target port.
Specifically, after acquiring the two-layer multicast destination E-CID information and whether to encapsulate the E-CID information, the control bridge encapsulates the destination E-CID field in the E-TAG according to the two-layer multicast destination E-CID information, and simultaneously judges whether to encapsulate the source E-CID field in the E-TAG according to whether to encapsulate the source E-CID information, if not, the value of the source E-CID field in the E-TAG is copied to the source E-CID field in the source three-layer multicast message, and if not, the value of the source E-CID field in the E-TAG is set to zero.
And after the control network packages both the source E-CID field and the target E-CID field in the E-TAG in the message, forwarding the message to the corresponding port expansion equipment through the target port. After receiving the message, the port expansion device performs two-layer multicast replication according to the E-TAG, namely, a member port list is obtained through table lookup of a target E-CID in the E-TAG, the message replication is performed on the ports one by one and finally reaches a corresponding host, meanwhile, for the message with a non-zero source E-CID field in the E-TAG, a multicast message source port is obtained through the source E-CID in the E-TAG, the message replicated to the port is discarded, and the message replication with the same source and target is prevented.
As shown in fig. 2, the present invention further discloses a device for implementing three-layer multicast in a port extension system, which includes a message receiving module, a message copying module, a message editing module and a packaging module, wherein a control bridge receives a three-layer multicast message carrying an E-TAG through the message receiving module, obtains source port information through a source E-CID in the E-TAG, and searches a three-layer multicast forwarding table to obtain a multicast group including all three-layer members; the message copying module is used for copying the three-layer multicast group message for each three-layer member, and each three-layer member obtains a message editing behavior index and a destination port; the message editing module is used for searching an editing behavior table according to the message editing index to obtain the two-layer multicast target E-CID information and whether to encapsulate the source E-CID information; the encapsulation module is used for encapsulating the target E-CID field in the E-TAG according to the two-layer multicast target E-CID information, judging whether to encapsulate the source E-CID according to whether to encapsulate the source E-CID information, copying the source E-CID field in the E-TAG to the source message source E-CID field when encapsulating the source E-CID, and forwarding the message to the corresponding port expansion equipment according to the target port.
The message receiving module, the message copying module, and the message editing module are described in detail above, and are not described in detail herein. And when the encapsulation module does not encapsulate the source E-CID, the field value of the source E-CID in the E-TAG is 0 and the encapsulation module forwards the message to the corresponding port expansion equipment.
The method and the device for realizing the three-layer multicast in the port expansion system provided by the invention copy the three-layer multicast message to each three-layer member through the control network bridge, each message has different target E-CID and source E-CID, and simultaneously the message is forwarded to the corresponding port expansion equipment through the target port, and the port expansion equipment performs the two-layer multicast copy according to the E-TAG, thereby effectively solving the problem that the existing port expansion system can not support the three-layer multicast forwarding.
Therefore, the scope of the present invention should not be limited to the disclosure of the embodiments, but includes various alternatives and modifications without departing from the scope of the present invention, which is defined by the claims of the present patent application.

Claims (8)

1. A method for realizing three-layer multicast in a port expansion system is characterized by comprising the following steps:
s100, the control network bridge receives a three-layer multicast message carrying an E-TAG from a port expansion device, obtains source port information through a source E-CID field in the E-TAG, searches a three-layer multicast forwarding table and obtains a multicast group comprising all three layers of members;
s200, copying a three-layer multicast group message for each three-layer member, wherein each three-layer member obtains a message editing behavior index and a destination port;
s300, searching a message editing behavior table according to the message editing behavior index to obtain two-layer multicast target E-CID information and whether to encapsulate source E-CID information;
s400, according to the two-layer multicast target E-CID information, packaging the target E-CID field in the E-TAG, according to whether the source E-CID information is packaged or not, judging whether the source E-CID field in the E-TAG is packaged or not, when the source E-CID field is packaged, copying the source E-CID field value in the E-TAG to the source E-CID field value in the source message, forwarding the message to the corresponding port expansion equipment according to the target port, and after receiving the message sent by the control network bridge, the port expansion equipment copies the two-layer multicast message according to the E-TAG in the message.
2. The method according to claim 1, wherein the message edit behavior table has an edit behavior field indicating E-TAG encapsulation behavior, and the edit behavior field includes a destination E-CID field of the two-layer multicast and a source E-CID field of whether to encapsulate the E-TAG.
3. The method of claim 1, wherein if the source E-CID field of the E-TAG is not encapsulated, the value of the source E-CID field of the E-TAG is set to 0.
4. The method according to claim 1, wherein the port expansion device performs two-layer multicast message replication according to an E-TAG in the message after receiving the message sent by the control bridge.
5. An apparatus for implementing three-layer multicast in a port expansion system, comprising
The message receiving module is used for receiving a three-layer multicast message carrying an E-TAG from the port expansion equipment, acquiring source port information through a source E-CID field in the E-TAG, searching a three-layer multicast forwarding table and acquiring a multicast group comprising all three layers of members;
the message copying module is used for copying the three-layer multicast group message for each three-layer member, and each three-layer member obtains a message editing behavior index and a target port;
the message editing module is used for searching a message editing behavior table according to the message editing behavior index to obtain the E-CID information of the two-layer multicast destination and whether the source E-CID information is encapsulated;
a message encapsulation module, which is used for encapsulating a target E-CID field in the E-TAG according to the two-layer multicast target E-CID information, judging whether to encapsulate a source E-CID field in the E-TAG according to whether to encapsulate the source E-CID information, duplicating the source E-CID field value in the E-TAG to the source E-CID field value in the source message when encapsulating the source E-CID field, forwarding the message to the corresponding port expansion equipment according to the target port, and duplicating the two-layer multicast message according to the E-TAG in the message after the port expansion equipment receives the message sent by the control network bridge.
6. The apparatus of claim 5, wherein the message edit behavior table has an edit behavior field indicating an E-TAG encapsulation behavior, and the edit behavior field includes a destination E-CID field of the two-layer multicast and a source E-CID field of whether to encapsulate the E-TAG.
7. The apparatus of claim 5, wherein the message encapsulation module sets a source E-CID field value in the E-TAG to 0 if the source E-CID field in the E-TAG is not encapsulated.
8. The apparatus of claim 5, wherein the port expansion device performs the two-layer multicast packet replication according to the E-TAG in the packet after receiving the packet sent by the control bridge.
CN202010104796.0A 2020-02-20 2020-02-20 Method and device for realizing three-layer multicast in port expansion system Active CN111163009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010104796.0A CN111163009B (en) 2020-02-20 2020-02-20 Method and device for realizing three-layer multicast in port expansion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010104796.0A CN111163009B (en) 2020-02-20 2020-02-20 Method and device for realizing three-layer multicast in port expansion system

Publications (2)

Publication Number Publication Date
CN111163009A CN111163009A (en) 2020-05-15
CN111163009B true CN111163009B (en) 2021-06-22

Family

ID=70566328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010104796.0A Active CN111163009B (en) 2020-02-20 2020-02-20 Method and device for realizing three-layer multicast in port expansion system

Country Status (1)

Country Link
CN (1) CN111163009B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968183A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing multicast in Mac in Mac network
CN102684979A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Multicast data forwarding method and device capable of supporting virtual terminal
CN103326915A (en) * 2012-03-23 2013-09-25 华为技术有限公司 Method, device and system for achieving three-layer VPN
CN104780111A (en) * 2015-04-08 2015-07-15 杭州华三通信技术有限公司 Packet forwarding method and device in virtualized network as well as virtualized network
US9294396B2 (en) * 2013-03-12 2016-03-22 Dell Products L.P. Port extender
CN106254281A (en) * 2016-07-29 2016-12-21 杭州华三通信技术有限公司 A kind of message processing method based on 802.1BR and device
CN106533889A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Method of BPE cross-port extension device to realize link aggregation in chip
CN107547334A (en) * 2016-06-28 2018-01-05 新华三技术有限公司 A kind of message forwarding method and device
CN108123880A (en) * 2016-11-30 2018-06-05 新华三技术有限公司 Retransmission method, device and the system of multicast data message

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10412012B2 (en) * 2015-09-22 2019-09-10 Arris Enterprises Llc Intelligent, load adaptive, and self optimizing master node selection in an extended bridge
US10116467B2 (en) * 2016-10-17 2018-10-30 Cisco Technology, Inc. Ethernet tag mapping in virtual private wire service using ethernet virtual private network

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968183A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing multicast in Mac in Mac network
CN102684979A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Multicast data forwarding method and device capable of supporting virtual terminal
CN103326915A (en) * 2012-03-23 2013-09-25 华为技术有限公司 Method, device and system for achieving three-layer VPN
US9294396B2 (en) * 2013-03-12 2016-03-22 Dell Products L.P. Port extender
CN104780111A (en) * 2015-04-08 2015-07-15 杭州华三通信技术有限公司 Packet forwarding method and device in virtualized network as well as virtualized network
CN107547334A (en) * 2016-06-28 2018-01-05 新华三技术有限公司 A kind of message forwarding method and device
CN106254281A (en) * 2016-07-29 2016-12-21 杭州华三通信技术有限公司 A kind of message processing method based on 802.1BR and device
CN108123880A (en) * 2016-11-30 2018-06-05 新华三技术有限公司 Retransmission method, device and the system of multicast data message
CN106533889A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Method of BPE cross-port extension device to realize link aggregation in chip

Also Published As

Publication number Publication date
CN111163009A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN101909001B (en) Forwarding frames in a computer network using shortest path bridging
US8565124B2 (en) Node, network, correspondence relationship generation method and frame transfer program
CN102238083B (en) For the system and method for adapted packet process streamline
US8923297B1 (en) Method and apparatus for managing packets in a packet switched network
RU2576492C2 (en) Control device, communication system, communication method and recording medium with communication programme recorded thereon
US20030112808A1 (en) Automatic configuration of IP tunnels
CN104426680B (en) Data transmission method, device and system
US7710959B2 (en) Private VLAN edge across multiple switch modules
CN109729012B (en) Unicast message transmission method and device
HU218402B (en) Method and apparatus for wireless communication with mobile units in a spurce routing communication network having a plurality of access points networks
CA2534510C (en) Virtual network device
WO2006095508A1 (en) Flooding suppression method
WO2021088433A1 (en) Message processing method, device and system
CN108322338B (en) Broadcast suppression method and VTEP device
CN110445702B (en) Message forwarding method and device
CN108964940A (en) Message method and device, storage medium
CN111835645B (en) Method, system and apparatus for proxy of intra-subnetwork traffic across multiple interfaces within a network
CN109120492B (en) Storage unit, source switch, message forwarding method and mirror image system
JP2013505652A (en) Data transmission method, system and apparatus
CN107733765B (en) Mapping method, system and related equipment
CN110677337A (en) Data forwarding method and device, network equipment and computer readable storage medium
CN111163009B (en) Method and device for realizing three-layer multicast in port expansion system
WO2007045142A1 (en) Multicast fast adding method for the broadband access device
CN112583736A (en) Signaling message distribution method, device, equipment and medium
US7471642B2 (en) Communication terminal, load distribution method and load distribution processing program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 215101 unit 13 / 16, 4th floor, building B, No. 5, Xinghan street, Suzhou Industrial Park, Jiangsu Province

Patentee after: Suzhou Shengke Communication Co.,Ltd.

Address before: Unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, 215000 Jiangsu Province

Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd.

CP03 Change of name, title or address