Multicast replication time delay control method and device, equipment and medium
By flexibly determining the starting port during the multicast replication process, and using a polling mechanism or priority strategy, the problem of delay unfairness among multicast members is solved, and the delay fairness and information fairness of multicast replication are achieved.
Patent Information
- Application Number
- CN202510627310.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-08-15
AI Technical Summary
In multicast replication technology, the problem of latency unfairness among multicast members leads to information differences, especially when the number of users increases, affecting the performance of multicast replication.
By flexibly determining the starting port during the multicast replication process, using a polling mechanism or priority strategy, we ensure that each target port has the opportunity to serve as a starting port, and achieve the latency fairness of multicast data.
Improve the delay fairness of multicast replication, avoid fixed delays among members caused by fixed starting ports, and improve the fairness of multicast replication.
Smart Images

Figure CN120499134A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a multicast replication delay control method, apparatus, device and medium. Background Art
[0002] Chip multicast replication is the process of efficiently distributing multicast data, such as multicast messages, within network chipsets, such as switch chips. Multicast is a one-to-many communication method where data sent by a source node needs to be replicated and sent to multiple destination nodes, such as members of a multicast group.
[0003] In recent years, with the development of network technology, the application of multicast replication technology has become increasingly widespread. As the number of users increases, a multicast group needs to replicate to more and more nodes, and the performance requirements for multicast replication are also becoming increasingly stringent. How to improve the latency of multicast replication has become a research issue. Summary of the Invention
[0004] One of the objectives of the present invention includes, for example, providing a method, apparatus, device, and medium for controlling multicast replication delay to at least partially improve the delay fairness of multicast replication.
[0005] The embodiments of the present invention can be implemented as follows:
[0006] In a first aspect, an embodiment of the present invention provides a multicast replication delay control method, including:
[0007] Receive multicast data and parse it to obtain multicast related information;
[0008] Querying a multicast forwarding table based on the multicast related information to determine the target ports to which the multicast data needs to be copied;
[0009] With latency fairness as a goal, determining a starting port for replication from each of the target ports;
[0010] The multicast data are copied in sequence, and starting from the starting port, the copied multicast data are sent to the target ports in sequence.
[0011] In an optional embodiment, each of the target ports is recorded in a multicast table, and a replication index is configured in the multicast table, and the replication index points to one of the target ports;
[0012] The method of determining a starting port for replication from each of the target ports with delay fairness as the goal includes:
[0013] Determine, from each of the target ports, the port to which the replication index currently points as the starting port;
[0014] After the multicast data are copied in sequence, starting from the starting port, and each copied multicast data is sent to each target port in sequence, the copy index is controlled to point to the next port among the target ports.
[0015] In an optional implementation manner, controlling the replication index to point to the next port among the target ports includes:
[0016] Based on a polling mechanism, the replication index is controlled to point to each of the target ports in the multicast table in sequence, so that each of the target ports has an equal opportunity to serve as the starting port.
[0017] In an optional embodiment, the method further includes a step of configuring a replication index in the multicast table, the step comprising:
[0018] Adding a replication index in the multicast table, wherein the replication index is used to identify a starting port for replication in the multicast table;
[0019] After completing the multicast replication and forwarding of a certain multicast data, the replication index is controlled to point to the remaining target ports in the multicast table in sequence, so that each of the target ports in the multicast table serves as the starting port in sequence.
[0020] In an optional embodiment, after completing the multicast replication and forwarding of a certain multicast data, controlling the replication index to sequentially point to the remaining destination ports in the multicast table includes:
[0021] After completing multicast replication and forwarding of a certain multicast data, controlling the replication index to point to the next target port after the start port in the multicast table according to the arrangement order of the target ports in the multicast table;
[0022] Determine whether the next target port is deleted. If the next target port is deleted, determine the next target port in the multicast table, and control the replication index to point to the next target port.
[0023] In an optional embodiment, after completing the multicast replication and forwarding of a certain multicast data, controlling the replication index to sequentially point to the remaining destination ports in the multicast table includes:
[0024] After completing multicast replication and forwarding of a certain multicast data, controlling the replication index to point to the next target port after the start port in the multicast table according to the arrangement order of the target ports in the multicast table;
[0025] Determine whether there is a newly added target port between the next target port and the current start port, and if there is a newly added target port, control the replication index to point to the newly added target port.
[0026] In an optional implementation manner, the step of determining a starting port for replication from each of the target ports with delay fairness as a goal includes:
[0027] According to the set priority strategy, determining the starting port for starting replication from each of the target ports;
[0028] After sequentially copying the multicast data, starting from the starting port, and sending the copied multicast data to the target ports in sequence, re-determining the starting port for copying from the target ports according to the priority policy;
[0029] The starting ports determined consecutively according to the priority policy are the same or different, and each target port is determined as the starting port at least once within a preset period, so as to achieve latency fairness on the basis of satisfying the priority policy.
[0030] In a second aspect, an embodiment of the present invention provides a multicast replication delay control device, comprising:
[0031] An information acquisition module is used to receive multicast data and parse it to obtain multicast related information;
[0032] The information processing module is used to query the multicast forwarding table based on the multicast-related information to determine the target ports to which the multicast data needs to be copied; determine the starting port for starting the copying from the target ports with delay fairness as the goal; copy the multicast data in sequence, starting from the starting port, and send the copied multicast data to the target ports in sequence.
[0033] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the multicast replication delay control method described in any one of the aforementioned implementation methods is implemented.
[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a computer program, and when the computer program is running, the electronic device where the computer-readable storage medium is located is controlled to execute the multicast replication delay control method described in any one of the aforementioned implementation methods.
[0035] The beneficial effects of the embodiments of the present invention include, for example: compared with fixedly selecting a port as the starting port for multicast replication, the embodiments of the present invention flexibly determine the starting port with latency fairness as the goal during the multicast replication process, thereby effectively improving the latency problem caused by the fixed starting port. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present invention is shown.
[0038] Figure 2 A schematic flow chart of a multicast replication delay control method provided by an embodiment of the present invention is shown.
[0039] Figure 3 A schematic diagram showing the structure of a multicast table provided by an embodiment of the present invention is shown.
[0040] Figure 4 A schematic structural diagram of a multicast table with added replication indexes provided by an embodiment of the present invention is shown.
[0041] Figure 5 An exemplary structural block diagram of a multicast replication delay control device provided by an embodiment of the present invention is shown.
[0042] Icon: 100 - electronic device; 110 - memory; 120 - processor; 130 - communication module; 140 - multicast replication delay control device; 141 - information acquisition module; 142 - information processing module. DETAILED DESCRIPTION
[0043] With the widespread application of multicast replication technology, higher requirements are placed on the control of multicast replication delay. Multicast replication needs to ensure that each member can get relatively fair service opportunities and avoid some members waiting for resources for a long time.
[0044] Research has found that the core goal of chip multicast replication is to ensure that data is accurately delivered to multicast group members while efficiently utilizing chip resources and minimizing data replication and transmission delays.
[0045] Multicast replication mainly includes the following two stages:
[0046] 1. Data reception and recognition stage
[0047] Port receiving data: Multicast data first enters the chip through the chip's physical port. The physical port can be an Ethernet port or other network interface used to connect to external devices such as servers and terminal devices.
[0048] Data frame parsing: The chip parses received data frames to identify multicast-related information, including the multicast group address (such as the IP multicast address and source address), and other protocol header information (such as the MAC address in the Ethernet frame header). Using this information, the chip can determine whether the data is multicast and locate the corresponding multicast group.
[0049] 2. Forwarding table query and replication phase
[0050] Multicast forwarding table lookup: The chip maintains an internal multicast forwarding table, which stores the mapping between multicast group addresses and output ports (i.e., the ports to which data should be replicated and sent). The chip searches the multicast forwarding table based on the resolved multicast group address to determine which ports the data should be replicated to. The multicast forwarding table can be constructed in a variety of ways, such as static configuration or dynamic learning, such as through IPv4 Layer 2 multicast protocol (Internet Group Management Protocol Snooping, IGMP Snooping).
[0051] Replication decision-making basis: When a corresponding port list is found in the multicast forwarding table, such as the multicast table, the chip determines how to replicate the data based on the port list. If the port list contains multiple ports, it means that multiple copies of the data need to be sent to each port separately.
[0052] The chip replicates multicast data sequentially based on the members in the multicast table. For example, if the multicast table shows that the output ports corresponding to the multicast group are Port 1, Port 3, and Port 5, the chip will replicate the multicast data three times and send them to Port 1, Port 3, and Port 5, respectively. Messages for the same multicast stream are always received in the same order. If the multicast membership remains unchanged, Port 1 will always receive the message first, and Port 5 will always receive the message last. With a large number of multicast members, there may be a fixed delay between the last and first members receiving the same message. For example, in certain scenarios, there may be a fixed delay between two downstream devices connecting to the same multicast group, resulting in information asymmetry and affecting fairness for receivers.
[0053] For example, in a securities trading information multicast scenario, it is necessary to ensure that each trading point can receive multicast data within a relatively fair time interval. Multicast replication delay will seriously affect transaction fairness.
[0054] Based on the above research, and given that multicast replication cannot meet the demand for fair replication, the fixed delay caused by chip multicast replication is different from the delay caused by factors such as network location and network congestion. An embodiment of the present invention provides a multicast replication delay control solution. By optimizing the multicast replication logic, fair replication between multicast members is achieved, the information gap caused by delay is improved, and the fairness of multicast replication is improved.
[0055] The defects in the above solutions are the results obtained by the inventors after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed in the embodiments of the present invention below should be the contributions made by the inventors in the invention process.
[0056] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0057] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.
[0058] It should be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not preclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0059] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0060] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0061] Please refer to Figure 1, is a block diagram of an electronic device 100 provided in this embodiment. The electronic device 100 in this embodiment may be a server, processing device, or processing platform capable of data interaction and processing. For example, the electronic device 100 may be a switch for communication.
[0062] The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, processor 120, and communication module 130 are electrically connected to each other directly or indirectly to enable data transmission or exchange. For example, these components can be electrically connected to each other via one or more communication buses or signal lines.
[0063] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.
[0064] The processor 120 is used to read / write data or programs stored in the memory 110 and execute corresponding functions.
[0065] The communication module 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through the network, and to send and receive data through the network.
[0066] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electronic device 100. The electronic device 100 may also include Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0067] Please refer to Figure 2 , which is a flow chart of a multicast replication delay control method provided by an embodiment of the present invention, can be Figure 1 The electronic device 100 executes, for example, the processor 120 in the electronic device 100. The multicast replication delay control method includes S110, S120, S130 and S140.
[0068] S110: Receive multicast data and parse to obtain multicast related information.
[0069] S120: Query a multicast forwarding table based on the multicast related information to determine target ports to which the multicast data needs to be copied.
[0070] S130 , with delay fairness as a goal, determining a starting port for replication from the target ports.
[0071] S140 , copying the multicast data in sequence, starting from the start port, and sending the copied multicast data to the target ports in sequence.
[0072] The multicast replication delay control scheme provided by the embodiment of the present invention flexibly determines the starting port in the multicast replication process with delay fairness as the goal, so that each target port has the opportunity to become the starting port during the multicast replication process. This avoids the problem in related technologies that the starting port of multicast replication is fixed, resulting in some target ports being excessively delayed, thereby effectively improving delay fairness.
[0073] In S110 , the electronic device 100 may receive multicast data through the physical port of the chip, and parse the received multicast data to identify multicast related information such as the multicast group address, source address, and MAC address in the Ethernet frame header.
[0074] The chip of electronic device 100 maintains a multicast forwarding table, which stores the mapping relationship between multicast group addresses and output ports. After obtaining multicast-related information based on S110, electronic device 100 searches the multicast forwarding table based on the multicast-related information, such as the multicast group address, in S120 to determine the target ports to which the multicast data needs to be copied.
[0075] After determining the target ports to which the multicast data needs to be replicated based on S120, in S130, determining the starting port for replication from the target ports with latency fairness as the goal can be flexibly implemented as long as relative fairness in multicast replication latency can be achieved.
[0076] For example, if each destination port is recorded in a port list, such as a multicast table, a replication index can be added to the multicast table. The replication index points to one of the destination ports, and multicast replication begins at the location of the current replication index in the multicast table. After replication is complete, the replication index points to the next destination port. This ensures that each destination port has the opportunity to become the starting port for replication, improving multicast replication latency fairness.
[0077] For example, the port currently pointed to by the replication index in each target port is used as the starting port, and the multicast data is copied in sequence. Starting from the starting port, the copied multicast data are sent to each target port in sequence. After completing the multicast data replication and sending, the replication index is controlled to point to the next port in each target port.
[0078] The rules for how the replication index points to each target port can be flexibly configured. As long as each target port has an equal chance of becoming the starting port for replication, the fairness of multicast replication latency can be improved. For example, a round-robin mechanism can be used to sequentially control the replication index to point to each target port in the multicast table, ensuring that each target port has an equal chance of becoming the starting port.
[0079] Round-Robin is a fair scheduling algorithm that replicates packets from each multicast member's corresponding destination port in a round-robin fashion. When the pointer reaches the end of the multicast group, it returns to the beginning, repeating the cycle. This ensures fairness in packet replication latency between destination ports.
[0080] Accordingly, a replication index can be configured in a multicast table by adding a replication index to the multicast table, the replication index being used to identify a starting port within the multicast table from which replication begins. After multicast replication and forwarding of a particular multicast data is completed, the replication index is controlled to sequentially point to the remaining destination ports within the multicast table, so that each destination port within the multicast table serves as the starting port in turn.
[0081] For example, please refer to Figure 3 The structure of the multicast table includes a port bit map, a link list, etc. Based on this structure, please refer to Figure 4 By adding the current replication index to the multicast table, it identifies the location of the first multicast member in the multicast group to perform multicast replication. For example, in the initial state, the replication index can be pointed to the head node (node 1) in the multicast group. After completing the multicast replication and forwarding of a certain multicast data, the replication index is used to point to each node in the linked list in turn, serving as the starting node for each multicast replication.
[0082] Based on the replication index polling mechanism setting, after completing the multicast replication and forwarding of a certain multicast data, the replication index can be controlled to point to the next target port after the start port in the multicast group according to the arrangement order of the target ports in the multicast group. In the next multicast replication, this target port will be used as the new start port.
[0083] Given that nodes in the multicast table may be deleted or added, accordingly, when a node is deleted, the replication index needs to point to the next node. For example, after completing the multicast replication and forwarding of a certain multicast data, it can be determined whether the next target port is deleted. If the next target port is deleted, the next target port in the multicast table is determined, and the replication index is controlled to point to the next target port.
[0084] When a node is added, after completing the multicast replication and forwarding of a certain multicast data, it can be determined whether there is a new target port between the next target port and the current start port. If there is a new target port, the replication index is controlled to point to the new target port.
[0085] Based on the above architecture, during the multicast replication process, the multicast group linked list is traversed, starting from the head node, and each node is visited in turn to replicate the multicast data. When the traversal reaches the end of the linked list, it returns to the head node and continues traversing until it returns to the location of the replication index. The node pointed to by the replication index is used as the starting node, and multicast data replication and forwarding are carried out from this starting node. After all nodes in the linked list have completed multicast data replication and forwarding, the replication index is moved to the next node as the starting node for the next traversal. When the replication index reaches the end of the linked list, it returns to the head node, thus achieving round-robin polling.
[0086] In S130, the starting port is determined based on latency fairness, but is not limited to absolute latency fairness. A flexible starting port selection policy can be set based on the actual needs of each scenario. For example, a starting port for replication can be determined from each of the target ports according to a set priority policy. After the multicast data is replicated sequentially, starting from the starting port, and each replicated multicast data is sent sequentially to each of the target ports, a new starting port for replication is determined from each of the target ports according to the priority policy.
[0087] The starting ports determined consecutively according to the priority policy are the same or different, and each target port is determined as the starting port at least once within a preset period, so as to achieve latency fairness on the basis of satisfying the priority policy.
[0088] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a multicast replication delay control device is given below. Figure 5 , Figure 5 This is a functional module diagram of a multicast replication delay control device 140 provided in an embodiment of the present invention. The multicast replication delay control device 140 can be applied to Figure 1The electronic device 100 is shown. It should be noted that the basic principles and technical effects of the multicast replication delay control device 140 provided in this embodiment are the same as those of the aforementioned embodiments. For the sake of brevity, any details not mentioned in this embodiment are referred to the corresponding contents of the aforementioned embodiments. The multicast replication delay control device 140 includes an information acquisition module 141 and an information processing module 142.
[0089] The information obtaining module 141 is used to receive multicast data and parse it to obtain multicast related information.
[0090] The information processing module 142 is used to query the multicast forwarding table based on the multicast-related information to determine the target ports to which the multicast data needs to be copied; with latency fairness as the goal, determine the starting port for starting the copy from each of the target ports; copy the multicast data in sequence, starting from the starting port, and send the copied multicast data to each of the target ports in sequence.
[0091] Based on the above, an embodiment of the present invention further provides a computer-readable storage medium, which includes a computer program. When the computer program is running, it controls the electronic device where the computer-readable storage medium is located to execute the above-mentioned multicast replication delay control method.
[0092] The above-described solution in the embodiments of the present invention can alleviate the problem of fixed delays between members caused by the chip multicast replication order in related technologies. By introducing a starting port confirmation process during the multicast replication phase, such as by using a round-robin mechanism to sequentially determine the starting port, multicast members can rotate as the starting point for multicast data replication. This ensures that each multicast member has the opportunity to become the starting port during the multicast data replication process, thereby avoiding fixed delays between members and improving delay fairness.
[0093] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified functions or actions, or can be implemented using a combination of dedicated hardware and computer instructions.
[0094] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0095] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0096] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. A multicast replication delay control method, characterized in that: include: Receive multicast data and parse it to obtain multicast related information; Querying a multicast forwarding table based on the multicast related information to determine the target ports to which the multicast data needs to be copied; With latency fairness as a goal, determining a starting port for replication from each of the target ports; The multicast data are copied in sequence, and starting from the starting port, the copied multicast data are sent to the target ports in sequence.
2. The multicast replication delay control method according to claim 1, characterized in that: Each of the target ports is recorded in a multicast table, wherein a replication index is configured in the multicast table, and the replication index points to one of the target ports; The method of determining a starting port for replication from each of the target ports with delay fairness as the goal includes: Determine, from each of the target ports, the port to which the replication index currently points as the starting port; After the multicast data are copied in sequence, starting from the starting port, and the copied multicast data are sent to the target ports in sequence, the copy index is controlled to point to the next port among the target ports.
3. The multicast replication delay control method according to claim 2, wherein: The controlling the copy index to point to the next port among the target ports includes: Based on a polling mechanism, the replication index is controlled to point to each of the target ports in the multicast table in sequence, so that each of the target ports has an equal opportunity to serve as the starting port.
4. The multicast replication delay control method according to claim 2 or 3, characterized in that: The method further includes the step of configuring a replication index in the multicast table, the step comprising: Adding a replication index in the multicast table, wherein the replication index is used to identify a starting port for replication in the multicast table; After completing the multicast replication and forwarding of a certain multicast data, the replication index is controlled to point to the remaining target ports in the multicast table in sequence, so that each of the target ports in the multicast table serves as the starting port in sequence.
5. The multicast replication delay control method according to claim 4, characterized in that: After completing the multicast replication and forwarding of a certain multicast data, controlling the replication index to sequentially point to the remaining target ports in the multicast table includes: After completing multicast replication and forwarding of a certain multicast data, controlling the replication index to point to the next target port after the start port in the multicast table according to the arrangement order of the target ports in the multicast table; Determine whether the next target port is deleted. If the next target port is deleted, determine the next target port in the multicast table, and control the replication index to point to the next target port.
6. The multicast replication delay control method according to claim 4, characterized in that: After completing the multicast replication and forwarding of a certain multicast data, controlling the replication index to sequentially point to the remaining target ports in the multicast table includes: After completing multicast replication and forwarding of a certain multicast data, controlling the replication index to point to the next target port after the start port in the multicast table according to the arrangement order of the target ports in the multicast table; Determine whether there is a newly added target port between the next target port and the current start port, and if there is a newly added target port, control the replication index to point to the newly added target port.
7. The multicast replication delay control method according to claim 1, wherein: The method of determining a starting port for replication from each of the target ports with delay fairness as the goal includes: According to the set priority strategy, determining the starting port for starting replication from each of the target ports; After sequentially copying the multicast data, starting from the starting port, and sending the copied multicast data to the target ports in sequence, re-determining the starting port for copying from the target ports according to the priority policy; The starting ports determined consecutively according to the priority strategy are the same or different, and each target port is determined as the starting port at least once within a preset period, so as to achieve latency fairness on the basis of satisfying the priority strategy.
8. A multicast replication delay control device, characterized in that: include: An information acquisition module is used to receive multicast data and parse it to obtain multicast related information; An information processing module is used to query the multicast forwarding table based on the multicast related information and determine the target ports to which the multicast data needs to be copied; With latency fairness as a goal, determining a starting port for replication from each of the target ports; The multicast data are copied in sequence, and starting from the starting port, the copied multicast data are sent to the target ports in sequence.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the multicast replication delay control method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a computer program, and when the computer program is executed, the electronic device where the computer-readable storage medium is located is controlled to execute the multicast replication delay control method according to any one of claims 1 to 7.