CN114338569A - Message copying and forwarding method and device - Google Patents

Message copying and forwarding method and device Download PDF

Info

Publication number
CN114338569A
CN114338569A CN202111672433.8A CN202111672433A CN114338569A CN 114338569 A CN114338569 A CN 114338569A CN 202111672433 A CN202111672433 A CN 202111672433A CN 114338569 A CN114338569 A CN 114338569A
Authority
CN
China
Prior art keywords
message
outlet
interface
multicast group
duplicate
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.)
Pending
Application number
CN202111672433.8A
Other languages
Chinese (zh)
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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202111672433.8A priority Critical patent/CN114338569A/en
Publication of CN114338569A publication Critical patent/CN114338569A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a device for copying and forwarding a message, wherein the method comprises the following steps: after receiving a message to be processed through a first interface of each interface connected with the shunting equipment, determining a first multicast group corresponding to the first interface according to a first corresponding relation between an inlet and the multicast group; determining an outlet set corresponding to the first multicast group according to the second corresponding relation between the outlet set and the multicast group; copying one copy of the message to be processed for each outlet included in the determined outlet set to obtain a copied message; respectively calculating the selected field of each copy message and the set mask of each outlet; and if the first duplicate message in each duplicate message is determined to correspond to a first outlet and the calculation result corresponding to the first duplicate message is the first outlet, sending the first duplicate message through the first outlet. The scheme has wide application range and strong adaptability.

Description

Message copying and forwarding method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for message replication and forwarding.
Background
At present, in the scenarios of traffic management, traffic monitoring, etc., a message needs to be copied and then directionally forwarded to a service server for analysis, which can be implemented based on a message copy and forward system.
As shown in fig. 1, the message duplication and forwarding system includes a distribution device, a distribution switch and each service system, each service system may include a plurality of service servers, each service server may also include a plurality of network cards, after the message duplication and forwarding system is deployed, the network card connected to each interface of the distribution switch has been determined, in order to ensure the flow balance of each interface of the distribution switch, after the distribution device receives the message, some fields of the Source Media Access Control (SMAC)/Destination Media Access Control (DMAC) Address of the message may be encoded according to a certain format to specify a forwarding Destination exit (the Destination exit may include information of a Destination service system, a Destination server, a Destination network card, and the like), so that the distribution switch may correctly decode to correctly forward the message, however, currently not all offload switches support the decoding function.
In the message copying and forwarding method, the message can be correctly forwarded only by the shunt switch supporting the decoding function, and the method cannot be used for the shunt switch which does not support the decoding function, so that the message copying and forwarding method has a limited application range and poor applicability.
Disclosure of Invention
The embodiment of the invention provides a message copying and forwarding method and a message copying and forwarding device, which are used for solving the problems of limited application range and poor applicability in the prior art.
According to an embodiment of the present invention, a method for duplicating and forwarding a packet is provided, which is applied to a distribution switch included in a packet duplication and forwarding system, where the packet duplication and forwarding system further includes a distribution device and each service system connected to the distribution switch, and the method includes:
after receiving a message to be processed through a first interface of each interface connected with the shunting equipment, determining a first multicast group corresponding to the first interface according to a first corresponding relation between an inlet and the multicast group;
determining an outlet set corresponding to the first multicast group according to the second corresponding relation between the outlet set and the multicast group;
copying one copy of the message to be processed for each outlet included in the determined outlet set to obtain a copied message;
respectively calculating a selected field of each copied message and a set mask of each outlet, wherein the selected field carries the outlet specified by the shunting equipment according to a preset coding format, and the set mask of each outlet is set according to the preset coding format;
and if the first duplicate message in each duplicate message is determined to correspond to a first outlet and the calculation result corresponding to the first duplicate message is the first outlet, sending the first duplicate message through the first outlet.
Optionally, after receiving the to-be-processed packet through a first interface of the interfaces connected to the offloading device, the method further includes:
and adding the first interface identification of the first interface into the message to be processed.
Optionally, the method further includes:
if it is determined that a second duplicate message in each duplicate message corresponds to a second outlet and the calculation result corresponding to the second duplicate message is not the second outlet, determining whether the second duplicate message carries the first interface identifier;
and if the second copy message is determined to carry the first interface identifier, discarding the second copy message.
Optionally, the method further includes:
determining whether each outlet in an outlet set corresponding to each multicast group in the second corresponding relation is a member port of an aggregation port;
and closing the load balancing function of the aggregation port to which the outlet belongs.
According to an embodiment of the present invention, there is also provided a packet replication and forwarding apparatus, which is applied to a distribution switch included in a packet replication and forwarding system, where the packet replication and forwarding system further includes a distribution device and each service system connected to the distribution switch, and the apparatus includes:
a first determining module, configured to determine, after receiving a packet to be processed through a first interface of each interface connected to the offloading device, a first multicast group corresponding to the first interface according to a first correspondence between an entry and the multicast group;
a second determining module, configured to determine, according to a second correspondence between an egress set and a multicast group, an egress set corresponding to the first multicast group;
the copying module is used for copying the message to be processed for each outlet included in the determined outlet set to obtain a copied message;
the calculation module is used for calculating a selected field of each copied message and a set mask of each outlet respectively, wherein the selected field carries the outlet specified by the shunting equipment according to a preset coding format, and the set mask of each outlet is set according to the preset coding format;
and the sending module is used for sending the first duplicate message through the first outlet if the first duplicate message in each duplicate message is determined to correspond to the first outlet and the calculation result corresponding to the first duplicate message is the first outlet.
Optionally, the method further includes:
and the adding module is used for adding the first interface identifier of the first interface into the message to be processed after the first determining module receives the message to be processed through the first interface of the interfaces connected with the shunting equipment.
Optionally, the system further comprises a discarding module, configured to:
if it is determined that a second duplicate message in each duplicate message corresponds to a second outlet and the calculation result corresponding to the second duplicate message is not the second outlet, determining whether the second duplicate message carries the first interface identifier;
and if the second copy message is determined to carry the first interface identifier, discarding the second copy message.
Optionally, the system further comprises a closing module, configured to:
determining whether each outlet in an outlet set corresponding to each multicast group in the second corresponding relation is a member port of an aggregation port;
and closing the load balancing function of the aggregation port to which the outlet belongs.
According to the embodiment of the invention, the electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program, which when executed by a processor, performs the above-mentioned method steps.
The invention has the following beneficial effects:
the embodiment of the invention provides a message copying and forwarding method and a device, wherein after a message to be processed is received through a first interface in each interface connected with a shunting device, a first multicast group corresponding to the first interface is determined according to a first corresponding relation between an inlet and the multicast group; determining an outlet set corresponding to the first multicast group according to the second corresponding relation between the outlet set and the multicast group; copying one copy of the message to be processed for each outlet included in the determined outlet set to obtain a copied message; respectively calculating a selected field of each copied message and a set mask of each outlet, wherein the selected field carries the outlet specified by the shunting equipment according to a preset coding format, and the set mask of each outlet is set according to the preset coding format; and if the first duplicate message in each duplicate message is determined to correspond to a first outlet and the calculation result corresponding to the first duplicate message is the first outlet, sending the first duplicate message through the first outlet. In the scheme, as the shunting device can designate an outlet according to a preset coding format and carry the designated outlet in a selected field of the message, the shunting switch can pre-configure a set mask according to the preset coding format, does not need to support decoding, only needs to copy the received message and then sends the copied message to each possible outlet, and then calculates based on the selected field of the copied message and the set mask of each possible outlet, if the first copied message corresponds to the first outlet, and the calculation result corresponding to the first copied message is also the first outlet, that is, the outlet designated by the first copied message is the first outlet, the corresponding copied message can be sent based on the first outlet, and as the shunting switch does not need to support decoding, the scheme has a wide application range and very strong adaptability.
Drawings
Fig. 1 is an architecture diagram of a message duplication forwarding system in the prior art;
fig. 2 is a flowchart of a message replication and forwarding method in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a message duplication forwarding apparatus in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
To solve the problems of limited application range and limited application range in the prior art, an embodiment of the present invention provides a packet replication and forwarding method, which is applied to a distribution switch included in a packet replication and forwarding system shown in fig. 1, where the packet replication and forwarding system shown in fig. 1 further includes a distribution device and each service system connected to the distribution switch, and a flow of the method is shown in fig. 2, and the method includes the following steps:
s21: after receiving the message to be processed through a first interface of each interface connected with the shunting device, determining a first multicast group corresponding to the first interface according to the first corresponding relation between the inlet and the multicast group.
The shunt switch may be connected to the shunt device through a plurality of interfaces, where any interface that receives a packet may be defined as a first interface, and the received packet may be defined as a packet to be processed.
The corresponding relationship between the entry and the multicast group may be preset, and the corresponding relationship may be defined as a first corresponding relationship, and after receiving the message to be processed, the multicast group corresponding to the first interface may be searched according to the first corresponding relationship, and the multicast group may be defined as a first multicast group, and may specifically be a two-layer multicast group.
The first corresponding relationship may be implemented by, but not limited to, an Access Control List (ACL), and specifically, the matching domain of each entry may be set as an interface, and the action domain may be set as a redirection to the multicast group. The maximum consumption capacity of the first correspondence relationship is the number of interfaces of the shunting switch connected with the shunting equipment, and the number of consumed hardware ACL entries is very small because the number of interfaces of the shunting switch connected with the shunting equipment is limited. It should be noted that, the entries or multicast groups in the first mapping relationship may be added or deleted according to actual needs.
S22: and determining the outlet set corresponding to the first multicast group according to the second corresponding relation between the outlet set and the multicast group.
Generally, a multicast group may include a plurality of outlets, the outlets form an outlet set, if a plurality of multicast groups exist, a corresponding relationship between the outlet set and the multicast group may be preset, and the corresponding relationship may be defined as a second corresponding relationship, and after a first multicast group corresponding to a first interface is determined, an outlet set corresponding to the first multicast group may be searched according to the second corresponding relationship.
S23: and copying a message to be processed for each outlet included in the determined outlet set to obtain a copied message.
This makes it possible to copy the message to be processed into multiple copies.
S24: and respectively calculating the selected field of each copy message and the set mask of each outlet.
The selected field carries the outlets specified by the shunting device according to the preset coding format, and the setting mask of each outlet is set according to the preset coding format.
The selected field may be, but is not limited to, a Source Media Access Control (SMAC)/Destination Media Access Control (DMAC) set as a message, the SMAC/DMAC may carry a specified egress in a preset encoding format, the egress may include, but is not limited to, a service system number, a server sequence number, a network card number, and the like, and a plurality of egress may be specified in the field of the SMAC/DMAC.
The preset coding format is defined by the shunting equipment, each service system occupies a plurality of bits of the SMAC/DMAC, and the bits are partitioned and occupied by the server number and the network card number.
Each outlet of the shunting switch can be bound with a group of information, which is a service system number, a server number and a network card number, and is used for uniquely identifying which service system, which server and which network card are connected with the outlet.
Specifically, the position and length of the service system in the SMAC/DMAC, the length occupied by the server number and the network card number may be specified by a user configuration command, and an example of the configuration command is as follows:
service service-id[src-mac|dst-mac]offset offset-value server-id-len server-id-size core-id-len core-id-size
wherein, the service-id service system is numbered;
offset-value is offset from the beginning of SMAC/DMAC, and the network sequence is 0-47;
the length of the Server-id-size Server number, unit bit;
the length of the Core-id-size network card number and the unit bit.
An exemplary egress bound service system number, server number, network card number, and preset encoding format on a offload switch are shown in the following table:
Figure BDA0003453416540000071
s25: and if the first duplicate message in each duplicate message is determined to correspond to the first outlet and the calculation result corresponding to the first duplicate message is the first outlet, sending the first duplicate message through the first outlet.
The first duplicate packet may be identified by an ACL, where a matching field of an entry may be set to a selected field, a set mask, and an exit, and an action field may be set to send a packet through the exit, and specifically, the method may be configured as follows:
permit smac&service-smac-mask=port-n.service-smac
or
permit dmac&service-dmac-mask=port-n.service-dmac
service-smac-mask/service-dmac-mask。
The service-smac-mask/service-dmac-mask is a set mask, and is set according to a preset coding format, and the priority of a permit entry in an ACL is highest, namely the permit entry needs to be matched with a message firstly. The number of permit entries is the number of egress of the shunting switch, and therefore, the resources of the ACL occupied are very limited.
In the scheme, as the shunting device can designate an outlet according to a preset coding format and carry the designated outlet in a selected field of the message, the shunting switch can pre-configure a set mask according to the preset coding format, does not need to support decoding, only needs to copy the received message and then sends the copied message to each possible outlet, and then calculates based on the selected field of the copied message and the set mask of each possible outlet, if the first copied message corresponds to the first outlet, and the calculation result corresponding to the first copied message is also the first outlet, that is, the outlet designated by the first copied message is the first outlet, the corresponding copied message can be sent based on the first outlet, and as the shunting switch does not need to support decoding, the scheme has a wide application range and very strong adaptability.
Optionally, after receiving the to-be-processed packet through a first interface of the interfaces connected to the offloading device, the method further includes:
and adding the first interface identification of the first interface into the message to be processed.
Correspondingly, the method further comprises the following steps:
if the second duplicate message in each duplicate message is determined to correspond to the second outlet, and the calculation result corresponding to the second duplicate message is not the second outlet, determining whether the second duplicate message carries the first interface identifier;
and if the second copy message is determined to carry the first interface identifier, discarding the second copy message.
The second duplicate message may be identified by an ACL, where a matching domain of the entry may be set as a first interface identifier, and an action domain may be set as a drop message (drop), where these entries may be referred to as drop entries, and it should be noted that the priority of the drop entry is lower than that of all permit entries, because only the duplicate message matching the permit entry is the message that needs to be forwarded, and the identifier carrying the first interface and not matching the permit entry needs to be dropped, therefore, the redundant duplicate message may be dropped based on the drop entry.
Optionally, the method further includes:
determining whether each outlet in the outlet set corresponding to each multicast group in the second corresponding relation is a member port of the aggregation port;
and closing the load balancing function of the aggregation port to which the outlet belongs.
If the outlet is a member interface of the aggregation port, load balancing based on the aggregation port is performed according to the characteristics of the aggregation port, because the shunting device has already designated the outlet, the load balancing on the shunting switch is realized through the designated outlet without performing load balancing based on the aggregation port, at this time, whether each outlet in an outlet set corresponding to each multicast group in the second corresponding relationship is a member interface of the aggregation port is determined; the load balancing function of the aggregation port to which the closing outlet belongs can be specifically realized by the following settings:
Figure BDA0003453416540000091
it should be noted that, in the above method, the distribution switch may include one service board card or may include a plurality of service board cards, that is, the inlet and the outlet may be set on the same service board card or on different service board cards, and if the inlet and the outlet are set on different service board cards, the message needs to be forwarded through the switch board card.
Based on the same inventive concept, an embodiment of the present invention provides a packet replication and forwarding apparatus, which is applied to a distribution switch included in a packet replication and forwarding system, where the packet replication and forwarding system further includes a distribution device and each service system connected to the distribution switch, and a structure of the apparatus is shown in fig. 3, and includes:
a first determining module 31, configured to determine, after receiving a to-be-processed packet through a first interface of each interface connected to the offloading device, a first multicast group corresponding to the first interface according to a first correspondence between an entry and the multicast group;
a second determining module 32, configured to determine, according to the second correspondence between the egress set and the multicast group, an egress set corresponding to the first multicast group;
a copying module 33, configured to copy a to-be-processed packet for each outlet included in the determined outlet set, so as to obtain a copied packet;
a calculation module 34, configured to calculate a selected field of each duplicate packet and a set mask of each outlet, where the selected field carries an outlet specified by the flow distribution device according to a preset coding format, and the set mask of each outlet is set according to the preset coding format;
the sending module 35 is configured to send the first duplicate packet through the first outlet if it is determined that the first duplicate packet in each duplicate packet corresponds to the first outlet and the calculation result corresponding to the first duplicate packet is the first outlet.
In the scheme, as the shunting device can designate an outlet according to a preset coding format and carry the designated outlet in a selected field of the message, the shunting switch can pre-configure a set mask according to the preset coding format, does not need to support decoding, only needs to copy the received message and then sends the copied message to each possible outlet, and then calculates based on the selected field of the copied message and the set mask of each possible outlet, if the first copied message corresponds to the first outlet, and the calculation result corresponding to the first copied message is also the first outlet, that is, the outlet designated by the first copied message is the first outlet, the corresponding copied message can be sent based on the first outlet, and as the shunting switch does not need to support decoding, the scheme has a wide application range and very strong adaptability.
Optionally, the method further includes:
and the adding module is used for adding the first interface identifier of the first interface into the message to be processed after the first determining module receives the message to be processed through the first interface in each interface connected with the shunting equipment.
Optionally, the system further comprises a discarding module, configured to:
if the second duplicate message in each duplicate message is determined to correspond to the second outlet, and the calculation result corresponding to the second duplicate message is not the second outlet, determining whether the second duplicate message carries the first interface identifier;
and if the second copy message is determined to carry the first interface identifier, discarding the second copy message.
Optionally, the system further comprises a closing module, configured to:
determining whether each outlet in the outlet set corresponding to each multicast group in the second corresponding relation is a member port of the aggregation port;
and closing the load balancing function of the aggregation port to which the outlet belongs.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 4, which includes a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 complete communication with each other through the communication bus 440.
A memory 430 for storing computer programs;
the processor 410 is configured to implement the message copying and forwarding method in any of the above embodiments when executing the program stored in the memory 430.
The communication interface 420 is used for communication between the above-described electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the scheme, as the shunting device can designate an outlet according to a preset coding format and carry the designated outlet in a selected field of the message, the shunting switch can pre-configure a set mask according to the preset coding format, does not need to support decoding, only needs to copy the received message and then sends the copied message to each possible outlet, and then calculates based on the selected field of the copied message and the set mask of each possible outlet, if the first copied message corresponds to the first outlet, and the calculation result corresponding to the first copied message is also the first outlet, that is, the outlet designated by the first copied message is the first outlet, the corresponding copied message can be sent based on the first outlet, and as the shunting switch does not need to support decoding, the scheme has a wide application range and very strong adaptability.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the message copying and forwarding method in any of the foregoing embodiments.
In the scheme, as the shunting device can designate an outlet according to a preset coding format and carry the designated outlet in a selected field of the message, the shunting switch can pre-configure a set mask according to the preset coding format, does not need to support decoding, only needs to copy the received message and then sends the copied message to each possible outlet, and then calculates based on the selected field of the copied message and the set mask of each possible outlet, if the first copied message corresponds to the first outlet, and the calculation result corresponding to the first copied message is also the first outlet, that is, the outlet designated by the first copied message is the first outlet, the corresponding copied message can be sent based on the first outlet, and as the shunting switch does not need to support decoding, the scheme has a wide application range and very strong adaptability.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A message duplication and forwarding method is applied to a shunt switch included in a message duplication and forwarding system, the message duplication and forwarding system also comprises shunt equipment and each service system which are connected with the shunt switch, and the method is characterized by comprising the following steps:
after receiving a message to be processed through a first interface of each interface connected with the shunting equipment, determining a first multicast group corresponding to the first interface according to a first corresponding relation between an inlet and the multicast group;
determining an outlet set corresponding to the first multicast group according to the second corresponding relation between the outlet set and the multicast group;
copying one copy of the message to be processed for each outlet included in the determined outlet set to obtain a copied message;
respectively calculating a selected field of each copied message and a set mask of each outlet, wherein the selected field carries the outlet specified by the shunting equipment according to a preset coding format, and the set mask of each outlet is set according to the preset coding format;
and if the first duplicate message in each duplicate message is determined to correspond to a first outlet and the calculation result corresponding to the first duplicate message is the first outlet, sending the first duplicate message through the first outlet.
2. The method according to claim 1, wherein after receiving the message to be processed through the first interface of the interfaces connected to the offloading device, the method further includes:
and adding the first interface identification of the first interface into the message to be processed.
3. The method of claim 2, further comprising:
if it is determined that a second duplicate message in each duplicate message corresponds to a second outlet and the calculation result corresponding to the second duplicate message is not the second outlet, determining whether the second duplicate message carries the first interface identifier;
and if the second copy message is determined to carry the first interface identifier, discarding the second copy message.
4. The method of any of claims 1-3, further comprising:
determining whether each outlet in an outlet set corresponding to each multicast group in the second corresponding relation is a member port of an aggregation port;
and closing the load balancing function of the aggregation port to which the outlet belongs.
5. A message duplication forwarding device is applied to a shunt switch included in a message duplication forwarding system, the message duplication forwarding system also includes shunt equipment and each service system connected with the shunt switch, and the device is characterized by comprising:
a first determining module, configured to determine, after receiving a packet to be processed through a first interface of each interface connected to the offloading device, a first multicast group corresponding to the first interface according to a first correspondence between an entry and the multicast group;
a second determining module, configured to determine, according to a second correspondence between an egress set and a multicast group, an egress set corresponding to the first multicast group;
the copying module is used for copying the message to be processed for each outlet included in the determined outlet set to obtain a copied message;
the calculation module is used for calculating a selected field of each copied message and a set mask of each outlet respectively, wherein the selected field carries the outlet specified by the shunting equipment according to a preset coding format, and the set mask of each outlet is set according to the preset coding format;
and the sending module is used for sending the first duplicate message through the first outlet if the first duplicate message in each duplicate message is determined to correspond to the first outlet and the calculation result corresponding to the first duplicate message is the first outlet.
6. The apparatus of claim 5, further comprising:
and the adding module is used for adding the first interface identifier of the first interface into the message to be processed after the first determining module receives the message to be processed through the first interface of the interfaces connected with the shunting equipment.
7. The apparatus of claim 6, further comprising a discard module to:
if it is determined that a second duplicate message in each duplicate message corresponds to a second outlet and the calculation result corresponding to the second duplicate message is not the second outlet, determining whether the second duplicate message carries the first interface identifier;
and if the second copy message is determined to carry the first interface identifier, discarding the second copy message.
8. The apparatus of any of claims 5-7, further comprising a shutdown module to:
determining whether each outlet in an outlet set corresponding to each multicast group in the second corresponding relation is a member port of an aggregation port;
and closing the load balancing function of the aggregation port to which the outlet belongs.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN202111672433.8A 2021-12-31 2021-12-31 Message copying and forwarding method and device Pending CN114338569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111672433.8A CN114338569A (en) 2021-12-31 2021-12-31 Message copying and forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111672433.8A CN114338569A (en) 2021-12-31 2021-12-31 Message copying and forwarding method and device

Publications (1)

Publication Number Publication Date
CN114338569A true CN114338569A (en) 2022-04-12

Family

ID=81020299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111672433.8A Pending CN114338569A (en) 2021-12-31 2021-12-31 Message copying and forwarding method and device

Country Status (1)

Country Link
CN (1) CN114338569A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037565A (en) * 2022-06-02 2022-09-09 北京东土军悦科技有限公司 Multicast data forwarding method, device, network equipment, storage medium and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020085553A1 (en) * 2000-12-28 2002-07-04 Maple Optical Systems, Inc. Technique for forwarding multi-cast data packets
WO2009111990A1 (en) * 2008-03-13 2009-09-17 华为技术有限公司 Multicast controlling method, device and system
CN102347890A (en) * 2010-08-04 2012-02-08 杭州华三通信技术有限公司 Processing method and device of multicast message
WO2016198016A2 (en) * 2015-10-30 2016-12-15 中兴通讯股份有限公司 Method, device and system for transmitting bier control information
CN108234455A (en) * 2017-12-14 2018-06-29 北京东土科技股份有限公司 A kind of message transmission control method, device, computer installation and storage medium
CN108683615A (en) * 2018-04-28 2018-10-19 新华三技术有限公司 Message diversion method, device and shunting interchanger
CN108809836A (en) * 2018-05-31 2018-11-13 新华三技术有限公司 Multicast data packet forwarding method and device
WO2021121065A1 (en) * 2019-12-20 2021-06-24 中兴通讯股份有限公司 Bier packet forwarding method, device, apparatus, and storage medium
CN113285918A (en) * 2021-04-08 2021-08-20 锐捷网络股份有限公司 ACL (access control list) filtering table item establishing method and device for network attack

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020085553A1 (en) * 2000-12-28 2002-07-04 Maple Optical Systems, Inc. Technique for forwarding multi-cast data packets
WO2009111990A1 (en) * 2008-03-13 2009-09-17 华为技术有限公司 Multicast controlling method, device and system
CN102347890A (en) * 2010-08-04 2012-02-08 杭州华三通信技术有限公司 Processing method and device of multicast message
WO2016198016A2 (en) * 2015-10-30 2016-12-15 中兴通讯股份有限公司 Method, device and system for transmitting bier control information
CN108234455A (en) * 2017-12-14 2018-06-29 北京东土科技股份有限公司 A kind of message transmission control method, device, computer installation and storage medium
CN108683615A (en) * 2018-04-28 2018-10-19 新华三技术有限公司 Message diversion method, device and shunting interchanger
CN108809836A (en) * 2018-05-31 2018-11-13 新华三技术有限公司 Multicast data packet forwarding method and device
WO2021121065A1 (en) * 2019-12-20 2021-06-24 中兴通讯股份有限公司 Bier packet forwarding method, device, apparatus, and storage medium
CN113285918A (en) * 2021-04-08 2021-08-20 锐捷网络股份有限公司 ACL (access control list) filtering table item establishing method and device for network attack

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王鹏: "基于网络处理器的高性能路由器转发面的设计与实现", 中国优秀硕士学位论文全文数据库 (信息科技辑), 15 April 2012 (2012-04-15), pages 139 - 101 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037565A (en) * 2022-06-02 2022-09-09 北京东土军悦科技有限公司 Multicast data forwarding method, device, network equipment, storage medium and system
CN115037565B (en) * 2022-06-02 2023-12-12 北京东土军悦科技有限公司 Multicast data forwarding method, device, network equipment, storage medium and system

Similar Documents

Publication Publication Date Title
US11381504B2 (en) Identifying congestion in a network
CN108111432B (en) Message forwarding method and device
CN108809836B (en) Multicast data message forwarding method and device
CN108768866B (en) Cross-card forwarding method and device for multicast message, network equipment and readable storage medium
CN110661702B (en) Link backup method and device and computer readable storage medium
CN101304389B (en) Method, apparatus and system for processing packet
US10652145B2 (en) Managing data frames in switched networks
CN107947950B (en) Hardware multicast output interface table item issuing method and NP (network processor) line card board
CN114338569A (en) Message copying and forwarding method and device
EP3534577A1 (en) Method of forwarding multicast data packet
CN113783789B (en) Message speed limiting method and device
CN106453155B (en) A kind of message processing method and device
CN109460182B (en) Data storage and reading method and device
CN112187636B (en) ECMP route storage method and device
CN111654437B (en) Message forwarding method and device based on data center
US10025752B2 (en) Data processing method, processor, and data processing device
CN112702221B (en) BGP abnormal route monitoring method and device
CN109450702A (en) A kind of data processing method and device
CN108900422A (en) Multicast forward method, device and electronic equipment
CN112637053B (en) Method and device for determining backup forwarding path of route
CN110808909B (en) Message processing method and device across virtual systems
CN112737982A (en) Method for forwarding message and CLOS (clock-line-operating System) framework switch
CN110912837A (en) VSM system-based main/standby switching method and device
US20190020599A1 (en) Determining actions to be immediately performed on a network packet with an application specific integrated circuit
CN115291812B (en) Data storage method and device of communication chip

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