Traffic transmission control method, device, storage medium, and product

By determining the transmission link status in the cross-device link aggregation group and preventing unicast data transmission, the problem of the server receiving two identical unicast data copies is solved, improving the server's response speed and resource utilization efficiency.

WO2025241523A1PCT designated stage Publication Date: 2025-11-27ZTE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/141721
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-21
Filing Date
2024-12-24
Publication Date
2025-11-27

AI Technical Summary

Technical Problem

In a cross-device link aggregation group, if the MAC address of a traffic transmission device has a problem, the server will receive two identical unicast data packets, resulting in multi-packet issues and affecting the server's services.

Method used

By responding to unicast data sent by the second transmission device in the first transmission device in the cross-device link aggregation group, the link state information of the transmission link is determined, and unicast data is blocked from being sent to the target device when the link state is normal, so as to avoid multi-packet phenomenon.

Benefits of technology

This effectively prevents the target device from receiving two identical unicast data sets, improving server response speed and reducing network bandwidth consumption and resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024141721_27112025_PF_FP_ABST
    Figure CN2024141721_27112025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in embodiments of the present application are a traffic transmission control method, a device, a storage medium, and a product. The method comprises: in response to unicast data sent by a second transmission device in a multichassis link aggregation group, determining link state information of a transmission link between the second transmission device and a target device, the target device being a device corresponding to a next hop of the multichassis link aggregation group; and in the case that the link state information indicates that the transmission link is normal, preventing the unicast data from being sent to the target device.
Need to check novelty before this filing date? Find Prior Art

Description

Control method, device, storage medium and product of traffic transmission

[0001] Cross-reference to related applications

[0002] This application claims priority to Chinese Patent Application No. 202410636656.6, filed May 21, 2024, with the Chinese Patent Office, the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present application relates to, but is not limited to, the field of communication technology. BACKGROUND

[0004] Multi-Chassis Link Aggregation Group (MC-LAG) is a mechanism for cross-device link aggregation. By aggregating two traffic transmission devices, load balancing and mutual backup can be achieved, thereby quickly adapting to link faults and automatic link protection switching. However, in the current MC-LAG aggregation of two traffic transmission devices for networking, if the Media Access Control Address (MAC address) of one of the traffic transmission devices has a problem, the server side will receive two copies of the same unicast data, causing a multi-packet phenomenon, and thereby affecting the service of the server side. SUMMARY

[0005] In a first aspect, an embodiment of the present application provides a control method of traffic transmission, applied to a first transmission device in a Multi-Chassis Link Aggregation Group (MC-LAG), comprising: in response to unicast data sent by a second transmission device in the MC-LAG, determining link state information of a transmission link between the second transmission device and a target device, the target device being a device corresponding to a next hop of the MC-LAG; and in a case where the link state information indicates that the transmission link is normal, preventing the unicast data from being sent to the target device.

[0006] In a second aspect, an embodiment of the present application provides an electronic device, which comprises a memory and a processor, and the memory stores a computer program, which, when executed by the processor, implements the control method of traffic transmission provided in the first aspect.

[0007] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by one or more processors, implements the control method of traffic transmission provided in the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement the control method of traffic transmission provided in the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. It should be understood that the drawings described in the following description are only some embodiments of the present application, and all other drawings obtained by those skilled in the art without creative labor on the basis of these drawings also belong to the scope of protection of the present application.

[0010] FIG. 1 is a networking topology diagram in the related art;

[0011] FIG. 2 is a flow diagram of a control method of traffic transmission provided by an embodiment of the present application;

[0012] FIG. 3 is a flow diagram of a determination of link state information included in the control method of traffic transmission provided by an embodiment of the present application;

[0013] FIG. 4 is a networking topology diagram related to the control method of traffic transmission provided by an embodiment of the present application;

[0014] FIG. 5 is a flow diagram of another determination of link state information included in the control method of traffic transmission provided by an embodiment of the present application;

[0015] FIG. 6 is a functional module diagram of a control system of traffic transmission provided by an embodiment of the present application;

[0016] FIG. 7 is an internal structure diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all the embodiments. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.

[0018] Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art without creative labor on the basis of the embodiments in the present application also belong to the scope of protection of the present application.

[0019] It should be noted that similar reference numerals and letters refer to like items throughout the accompanying drawings, and therefore, once an item is defined in one drawing, it is not necessary that it be further recited and explained in further drawings.

[0020] In various embodiments of the present application, the expression "or" or "at least one of A or / and B" includes any combination of the listed terms or all the terms. For example, the expression "A or B" or "at least one of A or / and B" can include A, can include B, or can include both A and B.

[0021] In the description of the present application, it should be noted that if the terms "upper", "lower", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product provided by the present application is usually placed, and are only used to facilitate the description of the present application and simplify the description, and therefore cannot be understood as indicating or implying that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application.

[0022] In addition, if the terms "first", "second", and the like appear, they are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0023] It should be noted that the features in the embodiments of the present application can be combined with each other without conflict.

[0024] In order to better understand the scheme of the embodiments of the present application, first, the related art will be introduced.

[0025] MC-LAG is a mechanism for cross-device link aggregation, which can also be referred to as M-LAG. For unified expression, MC-LAG is used for example in the following embodiments.

[0026] Please refer to FIG. 1, which is a networking topology diagram in the related art. In the diagram, the MC-LAG is configured by link aggregation negotiation between the first transmission device 110 and the second transmission device 120. From the perspective of the accessed device, the first transmission device 110 and the second transmission device 120 at the opposite end are virtually formed into one transmission device, thereby improving the reliability of the networking topology from the link level to the device level.

[0027] Unicast is a point-to-point connection between a client and a server, where point-to-point means that each client receives a remote stream from the server, and the server sends a unicast stream only when the client makes a request. In this case, if the computer network 130 in FIG. 1 is regarded as a server, the target device 140 in FIG. 1 can be regarded as a client.

[0028] The unicast data referred to in the following embodiments of the present application can be understood as a unicast stream. In unicast transmission, a separate communication link is established between the sender (computer network 130) and the receiver (target device 140), and the unicast data is transmitted from the sender (computer network 130) to the receiver (target device 140) through the separate communication link. For the sake of uniformity, the following embodiments of the present application are described by using unicast data, computer network 130 and target device 140 as examples. It can be understood that the computer network 130 is a device corresponding to the next hop of the MC-LAG, or an upstream device of the MC-LAG, and the target device 140 is a device corresponding to the next hop of the MC-LAG, or a downstream device of the MC-LAG.

[0029] Flooding is a data stream transmission technology used by switches and bridges, which refers to transmitting a data stream received from an interface to all interfaces except the interface. The transmission device establishes a mapping between the source MAC address in the data frame of the received unicast data and the port of the flow transmission device, and writes it into the MAC address table. The transmission device compares the destination MAC address in the data frame with the established MAC address table to determine which port to forward. If the destination MAC address in the data frame is not in the MAC address table, the transmission device performs broadcast flooding and forwards the unicast data to all ports.

[0030] As described above, when any of the flow transmission devices in the MC-LAG, such as the second transmission device 120, receives the unicast data sent by the computer network 130, and the MAC address corresponding to the unicast data appears abnormal, such as being deleted, the MAC address corresponding to the unicast data cannot be queried in the MAC address table. The second transmission device 120 with the abnormal MAC address will broadcast and flood the received unicast data as unknown unicast data. The flooded unknown unicast data will be sent to the target device 140 and the first transmission device 110 from the Peerlink link at the same time. However, the second transmission device 120 with the abnormal MAC address has not synchronized the information about the abnormal MAC address to the first transmission device 110 in a short time, resulting in that the first transmission device 110 will forward the unicast data received through the Peerlink link to the target device 140 according to the MAC address, thereby possibly causing the target device 140, such as a server, to receive two copies of the same unicast data, forming a multi-packet phenomenon. This will consume twice the network bandwidth and server processing resources, and further cause a series of problems such as network congestion, waste of server resources, reduction of server response speed, and impact on safe and stable operation of the server.

[0031] To solve the above-mentioned target device 140 such as a server receiving two identical unicast data and forming a multi-packet phenomenon, the embodiment of the application provides a traffic transmission control method, an electronic device, a computer readable storage medium and a computer program product, which can at least avoid the next hop corresponding device such as a server receiving two identical unicast data when the MAC address of any traffic transmission device in the MC-LAG has a problem, causing a multi-packet phenomenon.

[0032] Please refer to FIG. 2, which is a flowchart of a traffic transmission control method provided by the embodiment of the application. First, the traffic transmission control method provided by the embodiment of the application will be introduced.

[0033] The traffic transmission control method provided by the embodiment of the application can be applied to the first transmission device 110 in the MC-LAG, and the traffic transmission control method includes but is not limited to steps 210 to 220.

[0034] In step 210, in response to the unicast data sent by the second transmission device 120 in the cross-device link aggregation group, the link state information of the transmission link between the second transmission device 120 and the target device 140 is determined, and the target device 140 is the next hop corresponding device of the cross-device link aggregation group.

[0035] In step 220, when the link state information indicates that the transmission link is normal, the unicast data is prevented from being sent to the target device 140.

[0036] The traffic transmission control method provided by the embodiment of the application can determine the link state information of the transmission link between the second transmission device and the target device in response to the unicast data sent by the second transmission device in the MC-LAG. When the link state information indicates that the transmission link between the second transmission device and the target device is normal, the unicast data is prevented from being sent to the target device, avoiding the multi-packet phenomenon caused by sending two identical unicast data to the target device such as a server, and further improving the response speed of the server.

[0037] The steps 210 and 220 will be described in detail below.

[0038] In step 210, the first transmission device 110 and the second transmission device 120 in the MC-LAG are connected through a Peerlink. The Peerlink (peer link) can be a data backup link formed between the first transmission device 110 and the second transmission device 120. The two ends of the connection can be physical ports or logical ports.

[0039] If the second transmission device 120 receives the unicast data sent by the computer network 130 and cannot find the MAC address corresponding to the unicast data in the MAC address table of the second transmission device 120, the second transmission device 120 will flood the unicast data as unknown unicast data to the target device 140 and the first transmission device 110 connected thereto.

[0040] The first transmission device 110 in the embodiment determines the link state information of the transmission link between the second transmission device 120 and the target device 140 in response to the unicast data transmitted by the link formed by the second transmission device 120 via the Peerlink. Then, the first transmission device 110 can determine the transmission mode of the unicast data according to the determined link state information.

[0041] In step 220, the link state information can be used to indicate the link state of the transmission link between the second transmission device 120 and the target device 140, wherein the link state information indicates that the transmission link is normal, which means that the second transmission device 120 can normally send the unicast data to the target device 140 when flooding the unicast data.

[0042] It is found through research that the main reason for the multi-packet phenomenon on the target device 140 side is that the MAC address corresponding to the unicast data cannot be found in the MAC address table of the second transmission device 120, and the MAC address is not synchronized to the first transmission device 110 in a short time, so that the first transmission device 110 sends the unicast data transmitted by the link formed by the second transmission device 120 via the Peerlink to the target device 140.

[0043] In order to solve the above problem, the first transmission device 110 in the embodiment will prevent the unicast data transmitted by the link formed by the second transmission device 120 via the Peerlink from being sent to the target device 140 when the transmission link is determined to be normal via the link state information, thereby avoiding the situation that the target device 140 receives two copies of the same unicast data and forms a multi-packet phenomenon.

[0044] In some embodiments, the first transmission device 110 can directly perform the blocking transmission processing on the unicast data after receiving the unicast data, so as to prevent the unicast data transmitted by the link formed by the second transmission device 120 via the Peerlink from being sent to the target device 140.

[0045] In some embodiments, the first transmission device 110 can first perform the blocking transmission processing on the unicast data after receiving the unicast data, and then perform the discarding processing on the unicast data, so as to prevent the unicast data transmitted by the link formed by the second transmission device 120 via the Peerlink from being sent to the target device 140.

[0046] In the above embodiment, the first transmission device 110 blocks the transmission of the unicast data to the target device 140, and then discards the unicast data. Alternatively, the first transmission device 110 can directly discard the unicast data after blocking the transmission of the unicast data. Alternatively, the first transmission device 110 can discard the unicast data after a preset time interval, for example, 30 seconds, 1 minute, or half an hour.

[0047] In some embodiments, the first transmission device 110 blocks the transmission of the unicast data transmitted by the second transmission device 120 via the link formed by the Peerlink to the target device 140. Alternatively, the first transmission device 110 can directly discard the unicast data after receiving the unicast data.

[0048] It should be noted that in the MC-LAG, the first transmission device 110 and the second transmission device 120 are neighbors of each other. The above embodiment is described by taking the second transmission device 120 as an example. Of course, if the first transmission device 110 in the MC-LAG cannot query the MAC address corresponding to the unicast data in the MAC address table and floods, the above-mentioned traffic transmission control method can be applied to the second transmission device 120 in the MC-LAG.

[0049] In a possible implementation, referring to FIG. 3, FIG. 3 is a flowchart of a process of determining link state information according to an embodiment of the present application. The process of determining the link state information of the transmission link between the second transmission device 120 and the target device 140 includes but is not limited to steps 310 to 320.

[0050] In step 310, a target flag corresponding to the transmission link is queried. The target flag is used to mark whether the transmission link is normal. The target flag is adjusted based on the change of the link state of the transmission link. The change of the link state of the transmission link is synchronized to the first transmission device 110 by the second transmission device 120 when the link state changes.

[0051] In step 320, the link state information of the transmission link is determined according to the target flag.

[0052] In the embodiment, the first transmission device 110 can accurately and quickly determine whether the state of the transmission link between the second transmission device 120 and the target device 140 is normal or abnormal through the target flag, and then quickly determine the transmission mode of the unicast data.

[0053] Exemplarily, the first transmission device 110 queries the target mark bit corresponding to the transmission link, and the target mark bit can be used to determine whether the transmission link is normal. The target mark bit can include one character or multiple characters, which can be selected according to actual needs.

[0054] The target mark bit can be stored in the first transmission device 110. If the link state of the transmission link between the second transmission device 120 and the target device 140 changes, the second transmission device 120 synchronizes the change information of the link state to the first transmission device 110, and then the first transmission device 110 updates the stored target mark bit according to the change information of the link state.

[0055] Exemplarily, if the target mark bit includes one character, "0" can be used to represent that the transmission link is abnormal, and "1" can be used to represent that the transmission link is normal. If the target mark bit includes two characters, "00" can be used to represent that the transmission link is abnormal, and "11" can be used to represent that the transmission link is normal. The target mark bit can also include more characters to represent whether the transmission link is normal or abnormal, which is not described here.

[0056] The fewer the number of characters of the target mark bit, the higher the efficiency of the first transmission device 110 in modifying the target mark bit. In some embodiments, the target mark bit can include only one character.

[0057] In addition, the target mark bit includes but is not limited to a form composed of one or more of Arabic numerals, English characters, or other characters.

[0058] In some embodiments, whether the transmission link between the second transmission device 120 and the target device 140 is abnormal or normal can also be determined by the port state of the downlink port of the second transmission device 120. Please refer to FIG. 4, which is a networking topology diagram involved in a traffic transmission control method provided by an embodiment of the present application. In FIG. 4, B1 is the downlink port of the first transmission device 110, B2 is the uplink port of the first transmission device 110, A1 is the downlink port of the second transmission device 120, and A2 is the uplink port of the second transmission device 120. A1 and B1 form a downlink MC-LAG port.

[0059] In the case where the state of the downlink MC-LAG port is normal, the unicast traffic transmitted by the second transmission device 120 through the Peerlink link will be directly suppressed by the first transmission device 110. In this case, the target device 140 will only receive one copy of the unicast data flooded out by the second transmission device 120 through its downlink port A1, and there will be no multiple packet phenomenon.

[0060] If the port state of the downlink port of the second transmission device 120 is the abnormal state, it indicates that the second transmission device 120 cannot send unicast data to the target device 140 through the downlink port. If the port state of the downlink port of the second transmission device 120 is the normal state, it indicates that the second transmission device 120 can normally send unicast data to the target device 140 through the downlink port.

[0061] In a possible implementation, before querying the target mark bit corresponding to the transmission link, the method further includes: in response to the first indication information sent by the second transmission device 120 for indicating that the transmission link is abnormal, updating the target mark bit to the first identifier; or, in response to the second indication information sent by the second transmission device 120 for indicating that the transmission link is normal, updating the target mark bit to the second identifier.

[0062] The embodiment can further quickly update the target mark bit in combination with the first indication information, the second indication information, the first identifier and the second identifier.

[0063] For example, in the case of abnormal transmission link, the second transmission device 120 sends the first indication information to the first transmission device 110, and the first transmission device 110 can update the target mark bit to the first identifier such as "0" or "00" in the above embodiment, which is not specifically limited here.

[0064] In the case of normal transmission link, the second transmission device 120 sends the second indication information to the first transmission device 110, and the first transmission device 110 can update the target mark bit to the second identifier such as "1" or "11" in the above embodiment, which is not specifically limited here.

[0065] The first indication information and the second indication information are only used to indicate that the transmission link is abnormal or normal, and one or more characters can also be used to represent the first indication information according to actual needs, which is not specifically limited here.

[0066] In a possible implementation, please refer to FIG. 5, which is a flowchart of another determination of link state information included in a control method of traffic transmission provided by the embodiment of the application. The determination of the link state information of the transmission link between the second transmission device 120 and the target device 140 includes but is not limited to steps 510 to 520.

[0067] In step 510, a state query request of the transmission link is sent to the second transmission device 120.

[0068] In step 520, the link state information fed back by the second transmission device 120 is received, and the link state information is used to indicate whether the transmission link is normal.

[0069] In the embodiment, the first transmission device 110 does not store the target mark bit described in the above embodiment, but sends a request to the second transmission device 120 through the first transmission device 110, so as to quickly determine the transmission link state between the second transmission device 120 and the target device 140, and also reduce the data storage pressure of the first transmission device 110 and improve the response speed of the first transmission device 110.

[0070] For example, when the first transmission device 110 receives the unicast data sent by the second transmission device 120 through the link formed by the Peerlink, the first transmission device 110 sends a state query request of the transmission link to the second transmission device 120, and then receives the link state information fed back by the second transmission device 120, the link state information including normal and abnormal states.

[0071] The link state information also uses the first indication information in the above embodiment to indicate abnormality and uses the second indication information to indicate normality.

[0072] In a possible implementation, after determining the link state information of the transmission link between the second transmission device 120 and the target device 140, the method further includes: in the case that the link state information indicates that the transmission link is abnormal, sending unicast data to the target device 140.

[0073] For example, the first transmission device 110 determines that the transmission link between the second transmission device 120 and the target device 140 is abnormal based on the link state information, and then sends unicast data to the target device 140. The first transmission device 110 determines that the transmission link between the second transmission device 120 and the target device 140 is normal, and then prevents the first transmission device 110 from sending unicast data to the target device 140, so that the target device 140 does not receive two copies of the same unicast data and form a multi-packet phenomenon.

[0074] In a possible implementation, sending unicast data to the target device 140 includes: obtaining an address query result, the address query result being used to indicate whether the media access control address associated with the unicast data is queried in the first transmission device 110; and in the case that the address query result indicates that the media access control address associated with the unicast data is queried in the first transmission device 110, sending the unicast data to the target device 140.

[0075] In the embodiment, the first transmission device 110 queries whether the MAC address corresponding to the unicast data exists in the MAC address table stored by the first transmission device 110, so as to accurately and quickly determine the sending mode of the unicast data.

[0076] For example, the first transmission device 110 inquires the MAC address corresponding to the unicast data in the MAC address table stored by the first transmission device 110, which indicates that the MAC address information in the case that the MAC address corresponding to the unicast data is not inquired in the second transmission device 120 has not been synchronized to the first transmission device 110 in a short time. The first transmission device 110 normally sends the unicast data to the target device 140 in the case that the MAC address corresponding to the unicast data is inquired and the link state information is abnormal.

[0077] In a possible implementation, after the address inquiry result is acquired, the method further includes: in the case that the address inquiry result indicates that the media access control address associated with the unicast data is not inquired in the first transmission device 110, the unicast data is prevented from being sent to the target device 140.

[0078] For example, the first transmission device 110 does not inquire the MAC address corresponding to the unicast data in the MAC address table stored by the first transmission device 110, which indicates the MAC address information in the case that the MAC address corresponding to the unicast data is not inquired in the second transmission device 120. The MAC address is synchronized to the first transmission device 110 by the second transmission device 120, the MAC address corresponding to the unicast data is deleted in the MAC address table of the first transmission device 110, and the first transmission device 110 no longer sends the unicast data to the target device 140.

[0079] As described above, the main reason for the multi-packet phenomenon on the target device 140 side is that the MAC address corresponding to the unicast data is not inquired in the MAC address table of the second transmission device 120, and the MAC address is not synchronized to the first transmission device 110 in a short time. The first transmission device 110 sends the unicast data transmitted by the second transmission device 120 through the Peerlink to the target device 140. In the case that the transmission link between the second transmission device 120 and the target device 140 is normal, the target device 140 receives two copies of the same unicast data. This case continues until the MAC address corresponding to the unicast data is synchronized and deleted in the MAC address table of the first transmission device 110, that is, the case that the first transmission device 110 does not inquire the MAC address corresponding to the unicast data in the MAC address table stored by the first transmission device 110.

[0080] Corresponding to the method embodiments, the embodiments of the present application also provide a control system for traffic transmission. Please refer to Figure 6, which is a functional module diagram of a control system for traffic transmission according to an embodiment of the present application. The control system for traffic transmission 600 comprises: a response module 610, configured to determine link state information of a transmission link between a second transmission device 120 and a target device 140 in response to unicast data sent by the second transmission device 120, the target device 140 being a device corresponding to a next hop of the cross-device link aggregation group; and a sending module 620, configured to prevent sending unicast data to the target device 140 in a case where the link state information indicates that the transmission link is normal.

[0081] The control system for traffic transmission 600 provided by the embodiments of the present application can realize the various processes realized by the method embodiments in Figure 2, and achieve similar or the same technical effects. To avoid repetition, no further description is given here.

[0082] The embodiments of the present application also provide an electronic device. Please refer to Figure 7, which is an internal structure diagram of an electronic device according to an embodiment of the present application. The electronic device 700 comprises a processor 720, a memory 730 and a network interface 740 connected through a system bus 710. The memory comprises a non-volatile storage medium 7310 and an internal memory 7320. The non-volatile storage medium 7310 of the electronic device 700 stores an operating system 7311, and can also store a computer program, which, when executed by the processor 720, can enable the processor 720 to implement the control method for traffic transmission of the electronic device 700 in the above embodiments. The internal memory 7320 can also store a computer program, which, when executed by the processor 720, can enable the processor 720 to execute the control method for traffic transmission. Those skilled in the art can understand that the structure shown in Figure 7 is only a block diagram of part of the structure related to the present application scheme, and does not limit the electronic device 700 to which the present application scheme is applied. Specifically, the electronic device 700 can comprise more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0083] The embodiments of the present application also disclose a computer readable storage medium, which stores a computer program. The computer program, when executed by a processor, implements the control method for traffic transmission in the method embodiments.

[0084] The embodiments of the present application provide a computer program product stored in a storage medium. The program product is executed by at least one processor to realize the various processes of the embodiments of the control method for traffic transmission, and can achieve similar or the same technical effects. To avoid repetition, no further description is given here.

[0085] Those of ordinary skill in the art will realize and understand that all or some of the steps in the methods disclosed above and the functional modules / units in the systems and devices can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be performed by several physical components in cooperation. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on computer-readable media, which can include computer-readable storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer-readable storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, it is common and well understood by those of ordinary skill in the art that communication media typically embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and can include any information delivery media.

[0086] The technical features of the above embodiments can be combined in any manner. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described, however, as long as the combinations of the technical features do not contradict each other, they should be considered within the scope of the present disclosure.

Claims

1. A method for controlling traffic transmission, applied to a first transmission device in a cross-device link aggregation group, comprising: determining link state information of a transmission link between a second transmission device and a target device in response to unicast data sent by the second transmission device, the target device being a device corresponding to a next hop of the cross-device link aggregation group; preventing sending of the unicast data to the target device in a case where the link state information indicates that the transmission link is normal.

2. The method of claim 1, wherein, The determining of the link state information of the transmission link between the second transmission device and the target device comprises: inquiring a target flag corresponding to the transmission link, the target flag being used to mark whether the transmission link is normal, the target flag being adjusted based on a change in link state of the transmission link, the change in link state being synchronized to the first transmission device by the second transmission device in a case where the link state changes; determining the link state information of the transmission link according to the target flag.

3. The method of claim 2, wherein, The inquiring of the target flag corresponding to the transmission link further comprises: updating the target flag to a first identifier in response to first indication information sent by the second transmission device, the first indication information being used to indicate that the transmission link is abnormal; or updating the target flag to a second identifier in response to second indication information sent by the second transmission device, the second indication information being used to indicate that the transmission link is normal.

4. The method of claim 1, wherein, The determining of the link state information of the transmission link between the second transmission device and the target device comprises: sending a state query request of the transmission link to the second transmission device; receiving the link state information fed back by the second transmission device, the link state information being used to indicate whether the transmission link is normal.

5. The method of claim 1, wherein, The determining of the link state information of the transmission link between the second transmission device and the target device further comprises: sending the unicast data to the target device in a case where the link state information indicates that the transmission link is abnormal.

6. The method of claim 5, wherein, The sending of the unicast data to the target device comprises: obtaining an address query result, the address query result being used to indicate whether a medium access control address associated with the unicast data is queried in the first transmission device; sending the unicast data to the target device in a case where the address query result indicates that the medium access control address associated with the unicast data is queried in the first transmission device.

7. The method of claim 6, wherein, The obtaining of the address query result further comprises: preventing sending of the unicast data to the target device in a case where the address query result indicates that the medium access control address associated with the unicast data is not queried in the first transmission device. 8.An electronic device comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, implements the method of any one of claims 1-7.

9. A computer readable storage medium having stored thereon a computer program which, when executed by one or more processors, implements the method of any one of claims 1-7.

10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Method and device for supporting MLAG active-active access in VXLAN network

    CN113381931A

  • State synchronization method, device and equipment

    CN116016385A

  • Message processing method and device, cross-device link aggregation group, device and medium

    CN117319292A

  • Flow transmission control method and device, storage medium and product

    CN118474034A

  • Method for configuring private line service, device, and storage medium

    US20200322267A1