CN115037565A - Multicast data forwarding method, device, network equipment, storage medium and system - Google Patents

Multicast data forwarding method, device, network equipment, storage medium and system Download PDF

Info

Publication number
CN115037565A
CN115037565A CN202210626353.7A CN202210626353A CN115037565A CN 115037565 A CN115037565 A CN 115037565A CN 202210626353 A CN202210626353 A CN 202210626353A CN 115037565 A CN115037565 A CN 115037565A
Authority
CN
China
Prior art keywords
multicast data
port
multicast
aggregation port
forwarding
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.)
Granted
Application number
CN202210626353.7A
Other languages
Chinese (zh)
Other versions
CN115037565B (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.)
Beijing Armyfly Technology Co Ltd
Original Assignee
Beijing Armyfly Technology 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 Beijing Armyfly Technology Co Ltd filed Critical Beijing Armyfly Technology Co Ltd
Priority to CN202210626353.7A priority Critical patent/CN115037565B/en
Publication of CN115037565A publication Critical patent/CN115037565A/en
Application granted granted Critical
Publication of CN115037565B publication Critical patent/CN115037565B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/208Port mirroring
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention discloses a multicast data forwarding method, a multicast data forwarding device, network equipment, a storage medium and a multicast data forwarding system. The method comprises the following steps: when the forwarding port of the multicast data of the three-layer multicast is an aggregation port, copying the multicast data of the three-layer multicast to the aggregation port; copying the multicast data in the aggregation port according to the virtual local area network corresponding to the multicast data of the three-layer multicast to obtain copied multicast data; and obtaining a target physical port corresponding to each copied multicast data according to the copying parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, and forwarding the copied multicast data in the aggregation port to the virtual local area network from the aggregation port through the corresponding target physical port. According to the technical scheme, the target physical port is selected for the copied multicast data to be forwarded by using the copying parameters of the multicast data in the aggregation port, the same multicast data is prevented from being forwarded through the same physical port, and the flow balance of each physical port is improved.

Description

Multicast data forwarding method, device, network equipment, storage medium and system
Technical Field
The embodiment of the invention relates to the technical field of Ethernet communication, in particular to a multicast data forwarding method, a device, network equipment, a storage medium and a system.
Background
The multicast technology is one of data transmission modes based on Internet Protocol (IP), can realize high-efficiency data transmission from point to multipoint, can greatly save network bandwidth, and reduces network load. The multicast working in the network layer is three-layer multicast, and the corresponding multicast protocol is a three-layer multicast protocol. Three-layer multicast requires not only copying multicast data to a Port (Port), but also copying multicast data to a different Virtual Local Area Network (VLAN) of the Port.
Link Aggregation (LAG) technology expands the bandwidth of a logical Link and provides protection of a physical Link by logically aggregating a plurality of links into one aggregated Link. For the aggregation port, a hash value is generally calculated based on quintuple information of multicast data to select an outlet of the multicast data, but since the duplicated quintuple information is the same, the same member port in the aggregation port can be selected as the outlet for the same multicast by relying on a hash algorithm, so that the bandwidth cannot be fully utilized, the effect of flow balance cannot be achieved, and the network performance is influenced.
Disclosure of Invention
The invention provides a multicast data forwarding method, a multicast data forwarding device, network equipment, a storage medium and a multicast data forwarding system, which are used for improving the balance of flow.
In a first aspect, an embodiment of the present invention provides a multicast data forwarding method, including:
when the forwarding port of the multicast data of the three-layer multicast is an aggregation port, copying the multicast data of the three-layer multicast to the aggregation port;
copying the multicast data in the aggregation port according to the virtual local area network corresponding to the multicast data of the three-layer multicast to obtain copied multicast data;
and obtaining a target physical port corresponding to each copied multicast data according to the copy parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, so as to forward the copied multicast data in the aggregation port from the aggregation port to the virtual local area network through the corresponding target physical port.
In a second aspect, an embodiment of the present invention provides a multicast data forwarding apparatus, including:
the first replication module is used for replicating the multicast data of the three-layer multicast to the aggregation port when the forwarding port of the multicast data of the three-layer multicast is the aggregation port;
the second replication module is used for replicating the multicast data in the aggregation port according to the virtual local area network corresponding to the multicast data of the three-layer multicast to obtain replicated multicast data;
and the forwarding module is configured to obtain a target physical port corresponding to each copied multicast data according to the copy parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, and forward the copied multicast data in the aggregation port from the aggregation port to the virtual local area network through the corresponding target physical port.
In a third aspect, an embodiment of the present invention provides a network device, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the multicast data forwarding method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the multicast data forwarding method according to the first aspect.
In a fifth aspect, an embodiment of the present invention provides a multicast data forwarding system, including: a source host, a plurality of destination hosts, and a network device as described in the third aspect, the plurality of destination hosts belonging to at least one VLAN.
The embodiment of the invention provides a multicast data forwarding method, a multicast data forwarding device, network equipment, a storage medium and a multicast data forwarding system. The method comprises the following steps: when the forwarding port of the multicast data of the three-layer multicast is an aggregation port, copying the multicast data of the three-layer multicast to the aggregation port; copying the multicast data in the aggregation port according to the virtual local area network corresponding to the multicast data of the three-layer multicast to obtain copied multicast data; and obtaining a target physical port corresponding to each copied multicast data according to the copying parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, so as to forward the copied multicast data in the aggregation port from the aggregation port to the virtual local area network through the corresponding target physical port. According to the technical scheme, the replication parameters of the multicast data in the aggregation port are utilized, the target physical port for forwarding the multicast data can be selected for the replicated multicast data, the same multicast data are prevented from being forwarded through the same physical port, and the flow balance of each physical port is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart of a multicast data forwarding method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a multicast table according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a multicast data forwarding apparatus according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a network device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a multicast data forwarding system according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently, or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a multicast data forwarding method according to an embodiment of the present invention, and this embodiment is applicable to a situation of multicast data forwarding in three-layer multicast. Specifically, the multicast data forwarding method may be executed by a multicast data forwarding apparatus, and the multicast data forwarding apparatus may be implemented by software and/or hardware and integrated in a network device. The network device is a device, such as a router, that forwards multicast data to different destination hosts.
As shown in fig. 1, the method specifically includes the following steps:
and S110, when the forwarding port of the multicast data of the three-layer multicast is an aggregation port, copying the multicast data of the three-layer multicast to the aggregation port.
Specifically, in a three-layer multicast scenario, when a destination host belonging to a different VLAN simultaneously requests the same piece of data (i.e., multicast data) of the same multicast source (i.e., source host), a network device disposed between the source host and the destination host may copy the multicast data to a physical port and then to a different VLAN based on a three-layer multicast protocol. For the next three-layer multicast, the destination hosts belong to the same replication group, and the multicast table corresponding to the next three-layer multicast stores information of the replication group, such as a forwarding port of multicast data (i.e., a destination port of the replication group), a destination host address included in the replication group, and the like. In this embodiment, the forwarding port is mainly an aggregation port, that is, a plurality of physical ports are aggregated, and in this case, the information of the replication group may further include a physical port (also referred to as a member port) in the aggregation port, a correspondence between the physical port and the VLAN, a correspondence between the physical port and the destination host, and the like.
When the forwarding port of the multicast data is an aggregation port, the network device first performs a physical copy operation, that is, copies the multicast data to the forwarding port. During the physical replication, the five-tuple information (source IP address, source port, destination IP address, destination port, transport layer protocol) of the multicast data remains unchanged.
And S120, copying the multicast data in the aggregation port according to the virtual local area network corresponding to the multicast data of the three-layer multicast to obtain the copied multicast data.
Specifically, on the basis of determining a VLAN corresponding to multicast data, the network device further needs to perform multiple logical replication operations, where a logical replication operation may be understood as a process of determining (or dividing) a VLAN and determining replicated multicast data corresponding to each VLAN, in this process, multicast data for triple-layer multicast is logically replicated to obtain multiple copies, each replicated multicast data has the same data content as multicast data for triple-layer multicast, and different replicated multicast data may be distinguished by some fields or information (for example, identification information). Since multicast data needs to be forwarded to multiple destination hosts, there are typically multiple VLANs.
The copied multicast data and the VLAN have a corresponding relationship. Taking the case that the destination host belongs to multiple VLANs as an example, the multicast data may be logically copied first and correspond to VLAN 1, and then logically copied and correspond to VLAN 2. If a hash value is calculated to select a physical port according to quintuple information based on multicast data in the prior art, the same physical port can be selected as a forwarding outlet for logical replication of different VLANs because the quintuple information after logical replication of the multicast is the same, which causes resource waste and traffic imbalance. The method provided by this embodiment aims to equalize the traffic of each physical port as much as possible on the premise of ensuring no disorder (i.e., selecting the same physical port for the same VLAN).
S130, obtaining a target physical port corresponding to each copied multicast data according to the copying parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, and forwarding the copied multicast data in the aggregation port from the aggregation port to the virtual local area network through the corresponding target physical port.
Specifically, the replication parameter may be used to indicate a correspondence between the multicast data replicated on the aggregation port and the VLAN, and specifically may be the number of the multicast data replicated on the aggregation port and the VLAN or a corresponding order. For example, if the first logical copy corresponds to VLAN 1, the second logical copy corresponds to VLAN 2, and so on, and the R-th logical copy corresponds to VLAN R, the copy parameter may be R, or other operational variations may be performed on the basis of R.
In this embodiment, in order to balance the traffic of each physical port, the replication parameter is used to distinguish each logical replication to select a target physical port for forwarding the multicast data, so that the same multicast data is prevented from being forwarded through the same physical port. For example, for the first logical replication, one physical port in the aggregation port may be selected to forward a copy of multicast data to the destination host in VLAN 1; for the second logical replication, another different physical port in the aggregation port may be selected for forwarding another replicated multicast data to the destination host in VLAN 2, and so on. Preferably, for each logical replication or each VLAN, different physical ports in the aggregated ports are used to forward multicast data; if the number of logical replications or the number of VLANs is larger than the number of physical ports in the aggregated port, the excess is still allocated to the different physical ports as evenly as possible.
It should be noted that, in this embodiment, the number of destination hosts included in each VLAN is not limited. For each VLAN, the electronic device sends data to each destination host in the VLAN in a multicast mode, namely, corresponding multicast data is sent to each destination host in the VLAN through a target physical port, and therefore one-to-many communication is achieved. In the process, it is only required to ensure that the duplicated multicast data in the aggregation port can be uniformly forwarded to the corresponding VLAN by different physical ports.
In the multicast data forwarding method provided by the embodiment of the invention, when a forwarding port of multicast data is a aggregation port, a network device for three-layer multicast performs physical replication of the multicast data to the aggregation port, performs logical replication of the multicast data according to different VLANs, and selects a target physical port to forward the replicated multicast data according to replication parameters of the logical replication.
In an embodiment, when a forwarding port of multicast data of a three-layer multicast is an aggregation port, before copying the multicast data to the aggregation port, the method further includes: receiving multicast data of three-layer multicast; searching a multicast table according to the multicast index corresponding to the multicast data; and if the aggregation port table entry in the multicast table contains the information of at least two physical ports, determining that the forwarding port of the multicast data of the three-layer multicast is an aggregation port.
Specifically, for a three-layer multicast, multiple destination hosts belong to the same replication group, the three-layer multicast corresponds to a multicast Index (Index), and a corresponding multicast table can be searched by using the multicast Index, where the multicast table stores information of the replication group, and can be used to determine whether a forwarding port of multicast data is a aggregation port. Specifically, one row in the multicast table is used as an aggregation port entry, and if the aggregation port entry includes information of two or more physical ports, it can be determined that the forwarding port of the next three-layer multicast is an aggregation port.
Fig. 2 is a schematic diagram of a multicast table according to an embodiment of the present invention. As shown in fig. 2, the network device may search the corresponding multicast table according to the multicast index to determine the replication group of the multicast at this time, and complete replication and distribution of multicast data according to the information of the replication group. In the multicast table, one row is an aggregation port table entry, the aggregation port table entry includes information of the physical port used in the multicast at this time, and if the number of the physical ports is greater than or equal to 2, the forwarding port of the multicast at the third layer at this time is an aggregation port. Taking the first example, the aggregation Port is formed by aggregating N physical ports (Port 1, Port2 … … Port N, N ≧ 2). Each physical Port in one aggregation Port may belong to the same chip or different chips of the network device, and if the physical ports belong to different chips, the Port number (Port i) of each physical Port needs to be further distinguished by combining the chip number (slotj). When forwarding multicast data to a destination host of each VLAN, it is necessary to distribute traffic evenly to each physical port.
In an embodiment, the replication parameter includes a VLAN identifier (Identity, ID) corresponding to the replicated multicast data in the aggregation port; selecting a target physical port from the aggregated ports according to the order parameter of copying the multicast data to the VLAN, comprising: and the VLAN identification is used for measuring and balancing the number of the physical ports in the aggregation port to obtain a target physical port, wherein the VLAN identification is set according to the replication times of the multicast data in the aggregation port.
In this embodiment, the replication parameter is used as a Key (KDY), and the number of physical ports in the aggregation port is measured and left, so that the port number of a target physical port corresponding to any one logical replication or one VLAN can be obtained, and the physical port corresponding to the port number is used as a forwarding port of corresponding multicast data, so that balanced allocation of multiple forwarding tasks and flows for the same multicast can be ensured.
Specifically, VLAN identifiers corresponding to the multicast data copied in the aggregation port are used as copy parameters, where each VLAN may be identified by a value to distinguish different VLANs, and the VLAN identifiers may be set according to the number of times of copying the multicast data in the aggregation port. For example, the VLAN id may be equal to the number of times of copying multicast data in the aggregation port, that is, the VLAN id corresponding to the first logical copy is VLAN 1, the VLAN id corresponding to the second logical copy is VLAN 2, and so on.
In some embodiments, the VLAN id may be set in other manners, for example, the VLAN id corresponding to the nth logical replication may be VLAN R + K × N, where K is a non-negative integer. On the basis, the residual result of the VLAN identification corresponding to the Rth logical replication to the number of the physical ports in the aggregation port can be ensured to be consistent with the residual result of the R to the number of the physical ports in the aggregation port, so that the VLAN identification is ensured to be used as a replication parameter, and the multicast data after each logical replication can be distributed to different physical ports in a balanced manner.
Illustratively, the VLAN ID after any one logical copy is denoted as R, and the port number of the target physical port corresponding to the VLAN R may be calculated according to that M ═ R% N, so that the multicast data is forwarded to the destination host in the VLAN R through the mth physical port in the aggregation ports. On this basis, forwarding of different VLANs can be shared by different physical ports.
In an embodiment, the replication parameter includes a replication number corresponding to replicated multicast data in the aggregation port; obtaining a target physical port corresponding to each copied multicast data according to the copy parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, including: and (4) the copying times are added to the number of the physical ports in the aggregation port to obtain a target physical port.
Specifically, the replication parameter herein refers to the number of logical replication times, embodies the order of logical replication in the multicast table, and records it as R, and calculates the port number of the target physical port corresponding to the R-th logical replication according to M ═ R% N, so as to forward the multicast data after the R-th logical replication to the destination host in the VLAN R through the M-th physical port in the aggregation port. On the basis, the possibility that different VLANs select the same physical port for forwarding can be further reduced.
In one embodiment, a network device includes at least two cascaded chips; in each chip, the multicast data after being copied in the aggregation port is in corresponding relation with the VLAN.
Specifically, for a scenario where the network device is a cascade of a plurality of chips, the multicast data forwarding method of the embodiment is also applicable. The plurality of physical ports in the aggregation port may belong to different chips, and the number of the physical ports in each chip may be the same or different, but the plurality of chips total N physical ports, and constitute the aggregation port. Taking two chips as an example, chip 1 includes physical port 1, physical port2, … physical port x; chip 2 contains physical port x +1, physical port x +2, … physical port N. In each chip, the correspondence between the multicast data after replication and the VLAN has the same configuration, and for example, in each chip, the multicast data obtained by the R-th logical replication is the same, and the corresponding VLANs are the same and are all VLAN R. Based on the same configuration of the correspondence, when different chips select target physical ports for multicast data obtained by the R-th logical replication, the replication parameters are the same, and the number of physical ports in the aggregated ports is the same, so that the remainder results are the same, that is, the selected target physical ports are also the same. On the basis, the port number of each VLAN or the corresponding target physical port of each logic copy can be correctly calculated by each chip under the condition that a plurality of chips are cascaded, and the calculation results are consistent, so that the multicast data are finally forwarded from the corresponding chip by using the target physical port on the premise of no disorder (namely, for the same copied multicast data, a fixed physical port can be selected to be forwarded to the corresponding VLAN), and the flow balance among all the physical ports of each chip is ensured.
In an embodiment, forwarding the replicated multicast data in the aggregation port to a destination host in a corresponding VLAN through a target physical port includes: if the target physical port is a port in the chip of the current level, forwarding the copied multicast data to a target host in the corresponding VLAN through the target physical port; and if the target physical port is a port in the remote chip, forwarding the copied multicast data to the remote chip through the cascade port, so that the copied multicast data is forwarded to a target host in the corresponding VLAN from the remote chip through the target physical port in the remote chip.
Specifically, for any chip of the network device, when the calculated target physical port is on the chip of the current level, multicast data forwarding is directly performed on the chip; when the calculated target physical port is on other chips, the multicast data is firstly transmitted to the far-end chip through the cascade interface and then copied and forwarded through the target physical port on the far-end chip.
Taking two chips as an example, chip 1 includes physical port 1, physical port2, … physical port x; chip 2 contains physical port x +1, physical port x +2, … physical port N. For chip 1, for multicast data obtained by the R-th logical replication, if the result of the remainder of N is M, it is determined whether physical port M is one of physical port 1, physical port2, and …, if yes, multicast data obtained by the R-th logical replication may be forwarded through physical port M, otherwise, multicast data obtained by the R-th logical replication may be transmitted to chip 2 through the cascade port first, and then forwarded to a corresponding VLAN through physical port M of chip 2. Similarly, for the chip 2, for the multicast data obtained by the R-th logical replication, the result of the remainder of N is M, if the physical port M is one of the physical ports x +1, x +2, and …, the multicast data obtained by the R-th logical replication may be forwarded through the physical port M, otherwise, the multicast data obtained by the R-th logical replication needs to be transmitted to the chip 1 through the cascade port first, and then is forwarded to the corresponding VLAN through the physical port M of the chip 1.
According to the multicast data forwarding method, the target physical port is selected for multicast data forwarding according to the logical replication times or the VLAN identification, wherein the VLAN identification is set according to the logical replication times, the sequence of multicast data sending is guaranteed, meanwhile, the bandwidth is fully utilized, the flow balance is improved, and the possibility that different VLANs select the same physical port for forwarding is reduced; in addition, for a scene of cascading a plurality of chips, it can also be ensured that each chip can consistently and correctly calculate the port number of the target physical port, the reliability of multicast data forwarding is improved, the number of chips and the number of physical ports support expansion, and the network performance is improved.
Example two
Fig. 3 is a schematic structural diagram of a multicast data forwarding apparatus according to a second embodiment of the present invention. The multicast data forwarding apparatus provided in this embodiment includes:
a first copying module 210, configured to copy, when a forwarding port of multicast data of a third-layer multicast is an aggregation port, the multicast data of the third-layer multicast to the aggregation port;
a second replication module 220, configured to replicate, according to a virtual local area network corresponding to the multicast data of the three-layer multicast, the multicast data in the aggregation port to obtain replicated multicast data;
a forwarding module 230, configured to obtain a target physical port corresponding to each copied multicast data according to the copy parameter of the multicast data in the aggregation port and the number of physical ports in the aggregation port, so as to forward the copied multicast data in the aggregation port from the aggregation port to the virtual local area network through the corresponding target physical port.
According to the multicast data forwarding device provided by the third embodiment of the invention, the target physical port for forwarding the multicast data can be selected for the copied multicast data by using the copying parameters of the multicast data in the aggregation port, so that the flow balance is improved.
On the basis of the above embodiment, the apparatus further includes:
a receiving module, configured to receive multicast data of a three-layer multicast before copying multicast data of the three-layer multicast to a convergence port when a forwarding port of the multicast data of the three-layer multicast is the convergence port;
and the searching module is used for searching a multicast table according to the multicast index corresponding to the multicast data of the three-layer multicast, and if the aggregation port table entry in the multicast table contains the information of at least two physical ports, determining that the forwarding port of the multicast data of the three-layer multicast is an aggregation port.
On the basis of the above embodiment, the replication parameter includes a virtual local area network identifier corresponding to the replicated multicast data in the aggregation port;
the forwarding module 230 is specifically configured to: the virtual local area network identification is used for measuring and balancing the number of physical ports in the aggregation port to obtain the target physical port;
and the virtual local area network identification is set according to the replication times of the multicast data in the aggregation port.
On the basis of the above embodiment, the replication parameter includes the replication times corresponding to the replicated multicast data in the aggregation port;
the forwarding module 230 is specifically configured to:
and the number of the physical ports in the aggregation port is obtained by the duplication times, and the target physical port is obtained.
On the basis of the above embodiment, the network device includes at least two cascaded chips;
in each chip, the configuration of the corresponding relationship between the copied multicast data in the aggregation port and the virtual local area network is the same.
On the basis of the foregoing embodiment, forwarding, by the target physical port, the multicast data copied in the aggregation port from the aggregation port to the virtual local area network includes:
if the target physical port is a port in the chip of the current level, forwarding the copied multicast data to a corresponding virtual local area network through the target physical port;
and if the target physical port is a port in a remote chip, forwarding the copied multicast data to the remote chip through a cascade port, so as to forward the copied multicast data from the remote chip to a corresponding virtual local area network through the target physical port.
The multicast data forwarding device provided by the second embodiment of the present invention can be used to execute the multicast data forwarding method provided by any of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE III
Fig. 4 shows a schematic block diagram of a network device 10 that may be used to implement an embodiment of the invention. The network device 10 is a device, e.g. a router, that forwards multicast data to different destination hosts. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the network device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the network device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in network device 10 are connected to I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the network device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication, wireless networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as a multicast data forwarding method.
In some embodiments, the multicast data forwarding method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the network device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the multicast data forwarding method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described herein may be implemented on a network device 10, the network device 10 having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
Example four
Fig. 5 is a schematic structural diagram of a multicast data forwarding system according to a fourth embodiment of the present invention. As shown in fig. 5, the system includes: a source host 410, a plurality of destination hosts 430, and a network device 420 as described in any of the embodiments above, the plurality of destination hosts 430 belonging to at least one VLAN. Network device 420 may be a router.
In addition, the system can also comprise a switch for forwarding the message of the multicast data based on the forwarding table. After receiving the multicast data, the network device 420 may copy and send the multicast data to the switch, and the switch forwards the multicast data to the destination host 430 in each VLAN.
The multicast data forwarding system provided in the fourth embodiment may be configured to execute the multicast data forwarding method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A multicast data forwarding method is applied to network equipment, and is characterized by comprising the following steps:
when the forwarding port of the multicast data of the three-layer multicast is an aggregation port, copying the multicast data of the three-layer multicast to the aggregation port;
copying the multicast data in the aggregation port according to the virtual local area network corresponding to the multicast data of the three-layer multicast to obtain copied multicast data;
and obtaining a target physical port corresponding to each copied multicast data according to the copy parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, so as to forward the copied multicast data in the aggregation port from the aggregation port to the virtual local area network through the corresponding target physical port.
2. The method of claim 1, wherein before copying the multicast data of the three-layer multicast to the aggregation port when the forwarding port of the multicast data of the three-layer multicast is the aggregation port, the method further comprises:
receiving the multicast data of the three-layer multicast;
searching a multicast table according to the multicast index corresponding to the multicast data of the three-layer multicast;
and if the aggregation port table entry in the multicast table contains the information of at least two physical ports, determining that the forwarding port of the multicast data of the three-layer multicast is an aggregation port.
3. The method of claim 1, wherein the replication parameters comprise virtual local area network identifiers corresponding to replicated multicast data in the aggregation port;
the obtaining a target physical port corresponding to each copied multicast data according to the copy parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port includes:
the virtual local area network identification is used for measuring and balancing the number of physical ports in the aggregation port to obtain the target physical port;
and the virtual local area network identification is set according to the replication times of the multicast data in the aggregation port.
4. The method of claim 1, wherein the replication parameters comprise a number of replications corresponding to replicated multicast data in the aggregation port;
the obtaining a target physical port corresponding to each copied multicast data according to the copy parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port includes:
and the copying times are added to the number of the physical ports in the aggregation port to obtain the target physical port.
5. The method of claim 1, wherein the network device comprises at least two cascaded chips;
in each chip, the configuration of the corresponding relationship between the copied multicast data in the aggregation port and the virtual local area network is the same.
6. The method of claim 5, wherein forwarding the replicated multicast data in the aggregation port from the aggregation port to the virtual local area network through the target physical port comprises:
if the target physical port is a port in the chip of the current level, forwarding the copied multicast data to the virtual local area network through the target physical port;
if the target physical port is a port in a remote chip, forwarding the copied multicast data to the remote chip through a cascade interface, so as to forward the copied multicast data from the remote chip to the virtual local area network through the target physical port.
7. A multicast data forwarding apparatus, comprising:
the first replication module is used for replicating the multicast data of the three-layer multicast to the aggregation port when the forwarding port of the multicast data of the three-layer multicast is the aggregation port;
the second replication module is used for replicating the multicast data in the aggregation port according to the virtual local area network corresponding to the multicast data of the three-layer multicast to obtain replicated multicast data;
and the forwarding module is configured to obtain a target physical port corresponding to each copied multicast data according to the copy parameters of the multicast data in the aggregation port and the number of physical ports in the aggregation port, and forward the copied multicast data in the aggregation port from the aggregation port to the virtual local area network through the corresponding target physical port.
8. A network device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the multicast data forwarding method as claimed in any one of claims 1 to 7.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a multicast data forwarding method according to any one of claims 1 to 7.
10. A multicast data forwarding system, comprising: a source host, a plurality of destination hosts, and a network device according to claim 8, the plurality of destination hosts belonging to at least one virtual local area network.
CN202210626353.7A 2022-06-02 2022-06-02 Multicast data forwarding method, device, network equipment, storage medium and system Active CN115037565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210626353.7A CN115037565B (en) 2022-06-02 2022-06-02 Multicast data forwarding method, device, network equipment, storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210626353.7A CN115037565B (en) 2022-06-02 2022-06-02 Multicast data forwarding method, device, network equipment, storage medium and system

Publications (2)

Publication Number Publication Date
CN115037565A true CN115037565A (en) 2022-09-09
CN115037565B CN115037565B (en) 2023-12-12

Family

ID=83123280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210626353.7A Active CN115037565B (en) 2022-06-02 2022-06-02 Multicast data forwarding method, device, network equipment, storage medium and system

Country Status (1)

Country Link
CN (1) CN115037565B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484233A (en) * 2022-09-23 2022-12-16 北京物芯科技有限责任公司 Method, device, equipment and medium for forwarding link aggregation message in digital communication chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030174725A1 (en) * 2002-03-15 2003-09-18 Broadcom Corporation IP multicast packet replication process and apparatus therefore
CN106209689A (en) * 2015-05-04 2016-12-07 杭州华三通信技术有限公司 From the multicast data packet forwarding method and apparatus of VXLAN to VLAN
CN107493244A (en) * 2016-06-13 2017-12-19 中兴通讯股份有限公司 The data forwarding port selecting method and device of a kind of vertical stack system
CN109873776A (en) * 2019-01-30 2019-06-11 新华三技术有限公司 A kind of equalization methods and device of multicast message load balancing
CN114338569A (en) * 2021-12-31 2022-04-12 锐捷网络股份有限公司 Message copying and forwarding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030174725A1 (en) * 2002-03-15 2003-09-18 Broadcom Corporation IP multicast packet replication process and apparatus therefore
CN106209689A (en) * 2015-05-04 2016-12-07 杭州华三通信技术有限公司 From the multicast data packet forwarding method and apparatus of VXLAN to VLAN
CN107493244A (en) * 2016-06-13 2017-12-19 中兴通讯股份有限公司 The data forwarding port selecting method and device of a kind of vertical stack system
CN109873776A (en) * 2019-01-30 2019-06-11 新华三技术有限公司 A kind of equalization methods and device of multicast message load balancing
CN114338569A (en) * 2021-12-31 2022-04-12 锐捷网络股份有限公司 Message copying and forwarding method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115037565B (en) 2023-12-12

Similar Documents

Publication Publication Date Title
US9703608B2 (en) Variable configurations for workload distribution across multiple sites
US9742726B2 (en) Distributed dynamic host configuration protocol
US10263856B2 (en) Dynamic highlight
CN108804465B (en) Method and system for data migration of distributed cache database
CN107534570A (en) Virtualize network function monitoring
US10320905B2 (en) Highly available network filer super cluster
CN110290174A (en) A kind of control method and control node of main cluster
US9367298B1 (en) Batch configuration mode for configuring network devices
US20160110239A1 (en) Identifying failed customer experience in distributed computer systems
CN110636036A (en) OpenStack cloud host network access control method based on SDN
US11706298B2 (en) Multichannel virtual internet protocol address affinity
CN115037565B (en) Multicast data forwarding method, device, network equipment, storage medium and system
CN109584106A (en) A kind of wisdom cell serves end system
CN107682411A (en) A kind of extensive SDN controllers cluster and network system
CN104219163B (en) The load-balancing method that a kind of node based on dynamic copies method and dummy node method dynamically moves forward
US20150127799A1 (en) Hierarchical distribution of control information in a massively scalable network server
CN115484233B (en) Method, device, equipment and medium for forwarding link aggregation message in digital communication chip
CN116032880A (en) System, method, electronic equipment and storage medium for session synchronization
CN106294445A (en) The method and device stored based on the data across machine room Hadoop cluster
US11863457B2 (en) Time-sensitive data delivery in distributed computing systems
CN114979037B (en) Multicast method, device, switch and storage medium
JP2015170974A (en) relay device
CN110968463B (en) Method and device for determining types of data nodes in group
WO2019041499A1 (en) Selection method and device for data sending object, computer equipment and storage medium
US20230385264A1 (en) Managing subscriptions to data queries that react and update to change notifications

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