Data message transmission control method, system and apparatus, and nonvolatile readable storage medium
By generating load balancing instructions in the Ethernet virtual private network, it guides the target backbone network edge device to forward data packets in the virtual LAN, solving the problems of low data transmission efficiency and imbalanced link resources, and achieving more efficient data transmission. .
Patent Information
- Application Number
- PCT/CN2023/138566
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-13
- Filing Date
- 2023-12-13
- Publication Date
- 2024-09-19
AI Technical Summary
In the Ethernet Virtual Private Network (EVPN) scenario, data packet transmission efficiency is low, and existing technologies cannot effectively solve the resulting link resource load imbalance problem.
By obtaining multiple target backbone network edge devices connected to the same user edge device, a load balancing instruction is generated, instructing each target backbone network edge device to forward the matching target based on the message information of the received data message to be transmitted and the load balancing instruction. data packets to achieve load balancing of data packets within the virtual LAN.
It improves the efficiency of data packet transmission, solves the problem of link resource load imbalance, and ensures that data transmission within the virtual LAN is more balanced and efficient.
Smart Images

Figure CN2023138566_19092024_PF_FP_ABST
Abstract
Description
Data message transmission control method, system, device and non-volatile readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 13, 2023, with application number 202310234606.0, and application name “Data message transmission control method, system, device and storage medium”, all contents of which are incorporated by reference into this application. Technical Field
[0003] The embodiments of the present application relate to the field of computers, and relate to a data message transmission control method, system, device and non-volatile readable storage medium. Background Art
[0004] In current Ethernet Virtual Private Network (EVPN) scenarios, customer edge devices (CE) are connected to multiple backbone edge devices (PE) through multiple Ethernet links. To avoid wasting network resources by causing duplicate traffic from multiple backbone edge devices, a designated forwarder (DF) election mechanism is introduced into the Ethernet VPN scenario.
[0005] The Type 4 (Network Layer Reachability Information NLRI) route in BGP EVPN (a new Network Layer Reachability Information NLRI type is defined based on the BGP protocol, namely the Border Gateway Protocol) selects a DF in a Virtual Local Area Network (VLAN). The data in the virtual local area network can only be forwarded by this DF, and the other backbone network edge devices cannot forward the BUM (Broadcast Unicast Multicast) data in the virtual local area network. Although load balancing between virtual local area networks can be achieved in this way, since the traffic in the same virtual local area network can only be forwarded by the user edge device or one link between DFs, it will cause load imbalance of link resources. When the link resources selected for forwarding are poor, using this link for forwarding will affect the operation of services in the entire link.
[0006] In view of the problems of low efficiency of data message transmission in related technologies, no effective solutions have been proposed yet.
[0007] Summary of the Invention
[0008] The embodiments of the present application provide a data message transmission control method, system, device and non-volatile readable storage medium to at least solve the problem of low efficiency of data message transmission in the related art.
[0009] According to a first aspect, a data message transmission control method is provided, which is applied to an Ethernet virtual private network, and the method includes:
[0010] Obtain multiple target backbone network edge devices connected to the same user edge device;
[0011] generating a load balancing instruction for each target backbone network edge device among the multiple target backbone network edge devices, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward a target data message that matches each target backbone network edge device in the data message to be transmitted based on message information carried by the received data message to be transmitted and the load balancing instruction, wherein the data messages to be transmitted belong to the same virtual local area network;
[0012] The load balancing instruction is sent to the corresponding target backbone network edge device, wherein the target backbone network edge device is configured to use the received load balancing instruction to forward the target data message to the user edge device.
[0013] In an exemplary embodiment, obtaining multiple target backbone network edge devices connected to the same user edge device includes:
[0014] Obtain all backbone network edge devices connected to the user edge device as candidate backbone network edge devices;
[0015] A plurality of target backbone network edge devices are screened out from the candidate backbone network edge devices according to the link status of each candidate backbone network edge device, wherein the link status is the network status of the connection link between each candidate backbone network edge device and the user edge device.
[0016] In an exemplary embodiment, a plurality of target backbone network edge devices are screened from the candidate backbone network edge devices according to the link status of each candidate backbone network edge device, including:
[0017] Determine, based on the network parameters reported by each candidate backbone network edge device, a link parameter corresponding to each candidate backbone network edge device as a link state, wherein the network parameter includes at least one of the following: bandwidth utilization, latency, jitter, and packet loss rate. The smaller the link parameter, the better the link state.
[0018] Backbone network edge devices whose corresponding link parameters are less than or equal to a parameter threshold are screened out from the candidate backbone network edge devices as multiple target backbone network edge devices.
[0019] In an exemplary embodiment, determining a link parameter corresponding to each candidate backbone network edge device as a link state based on the network parameters reported by each candidate backbone network edge device includes:
[0020] Receive network parameters reported by each candidate backbone network edge device through mirroring messages, where the network parameters include: bandwidth utilization, latency, jitter, and packet loss rate;
[0021] The weighted sum of the network parameters is calculated as the link parameter, wherein the weight of each network parameter is proportional to the degree of influence of each network parameter on the network state.
[0022] In an exemplary embodiment, receiving the network parameters reported by each candidate backbone network edge device through a mirror message includes one of the following:
[0023] Receive network parameters reported by each candidate backbone network edge device through mirror messages according to the target period;
[0024] Send a reporting instruction to each candidate backbone network edge device; receive network parameters reported by each candidate backbone network edge device in response to the reporting instruction through a mirror message.
[0025] In an exemplary embodiment, obtaining all backbone network edge devices connected to a user edge device as candidate backbone network edge devices includes:
[0026] Receiving the Ethernet segment number reported by each backbone network edge device with which a communication connection has been established through a startup message;
[0027] The backbone network edge devices with the same Ethernet segment number are determined as all backbone network edge devices connected to the same user edge device to obtain candidate backbone network edge devices.
[0028] In an exemplary embodiment, generating a load balancing instruction for each target backbone network edge device in a plurality of target backbone network edge devices includes:
[0029] Generate a target number of load balancing tokens, where the target number is the number of multiple target backbone network edge devices;
[0030] Generate a load balancing instruction carrying a target quantity and a load balancing token, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward the target data message that matches the load balancing token in the data message to be transmitted based on the message information, target quantity and load balancing token carried by the received data message to be transmitted.
[0031] In an exemplary embodiment, generating a target number of load balancing tokens includes:
[0032] Determine the number of multiple target backbone network edge devices to obtain a target number M;
[0033] Generate a natural number from 0 to M-1 as the target number of load balancing tokens.
[0034] In an exemplary embodiment, sending a load balancing instruction to a corresponding target backbone network edge device includes:
[0035] Encapsulate load balancing instructions as signaling messages;
[0036] Send the signaling message to the corresponding target backbone network edge device.
[0037] In an exemplary embodiment, the target backbone network edge device is configured to determine a message identifier based on the message information and the target quantity carried in the load balancing instruction; match the message identifier with the load balancing token carried in the load balancing instruction; and when the message identifier successfully matches the load balancing token, determine the data message to be transmitted as the target data message.
[0038] In an exemplary embodiment, the target backbone network edge device is configured to calculate the remainder of dividing the message information by the target quantity as the message identifier; compare the remainder with the load balancing token; and if the remainder is consistent with the load balancing token, determine that the message identifier and the load balancing token are successfully matched.
[0039] According to a second aspect, a data packet transmission control method is also provided, which is applied to a target backbone network edge device in an Ethernet virtual private network, and the method includes:
[0040] receiving data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network;
[0041] Extracting message information from the data message to be transmitted;
[0042] Obtaining a target data message that matches a target backbone network edge device from the data message to be transmitted according to the message information and the load balancing instruction, wherein the load balancing instruction is generated and issued by a monitoring server of the Ethernet virtual private network;
[0043] Forward the target data message to the user edge device connected to the target backbone network edge device.
[0044] In an exemplary embodiment, obtaining a target data packet that matches a target backbone network edge device in the data packets to be transmitted according to the packet information and the load balancing instruction includes:
[0045] Determining a message identifier based on the message information and the target number carried in the load balancing instruction, wherein the target number is the number of multiple target backbone network edge devices screened by the monitoring server for forwarding the data message to be transmitted;
[0046] Match the message identifier with the load balancing token carried in the load balancing instruction;
[0047] When the message identifier successfully matches the load balancing token, the data message to be transmitted is determined as the target data message.
[0048] In an exemplary embodiment, determining a message identifier based on message information and a target number carried in a load balancing instruction includes: calculating a remainder of dividing the message information by the target number as the message identifier, wherein the message information is obtained by performing a hash operation on original message data in a data message to be transmitted;
[0049] Matching the message identifier with the load balancing token carried in the load balancing instruction includes: comparing the remainder with the load balancing token, wherein the load balancing token is a natural number from 0 to M-1 generated by the monitoring server, and M is the target number; when the remainder is consistent with the load balancing token, it is determined that the message identifier and the load balancing token are matched successfully.
[0050] In an exemplary embodiment, after matching the message identifier with the load balancing token carried in the load balancing instruction, the method further includes:
[0051] If the message identifier fails to match the load balancing token, the data message to be transmitted will be discarded.
[0052] In an exemplary embodiment, before obtaining a target data packet that matches a target backbone network edge device in the data packets to be transmitted according to the packet information and the load balancing instruction, the method further includes:
[0053] Reporting network parameters to the monitoring server via mirrored messages, wherein the network parameters include at least one of the following: bandwidth utilization, latency, jitter, and packet loss rate;
[0054] The receiving monitoring server responds to the network parameters through the load balancing instruction sent by the signaling message.
[0055] In an exemplary embodiment, reporting network parameters to the monitoring server via a mirror message includes one of the following:
[0056] Report network parameters according to the target period through mirror messages;
[0057] Receive the reporting instruction sent by the monitoring server; respond to the reporting instruction and report the network parameters through the mirror message.
[0058] In an exemplary embodiment, before obtaining a target data packet that matches a target backbone network edge device in the data packets to be transmitted according to the packet information and the load balancing instruction, the method further includes:
[0059] Establish a communication connection with the monitoring server;
[0060] Report the Ethernet segment number to the monitoring server through the startup message.
[0061] In an exemplary embodiment, extracting message information from a data message to be transmitted includes:
[0062] Extract the original packet data after the VXLAN header field from the data packet to be transmitted;
[0063] Perform hash operation on the original message data to obtain message information.
[0064] In an exemplary embodiment, a load balancing instruction is generated and issued by a monitoring server of an Ethernet virtual private network through the following steps: obtaining all backbone edge devices connected to the user edge device as candidate backbone edge devices; screening a plurality of target backbone edge devices from the candidate backbone edge devices according to the link status of each candidate backbone edge device, wherein the link status is the network status of the link connecting each candidate backbone edge device and the user edge device; generating a target number of load balancing tokens, wherein the target number is the number of the plurality of target backbone edge devices; generating the load balancing instruction carrying the target number and the load balancing token, wherein the load balancing instruction is used to instruct each target backbone edge device to forward the target data packet matching the load balancing token in the data packet to be transmitted according to the message information carried by the received data packet to be transmitted, the target number and the load balancing token.
[0065] In an exemplary embodiment, generating a target number of load balancing tokens includes: determining the number of a plurality of target backbone network edge devices to obtain a target number M; and generating a natural number from 0 to M-1 as the target number of load balancing tokens.
[0066] According to a third aspect, a data packet transmission control system is provided, which is applied to an Ethernet virtual private network. The system includes: a monitoring server of the Ethernet virtual private network, a plurality of backbone network edge devices,
[0067] The monitoring server is connected to multiple backbone network edge devices respectively, and multiple backbone network edge devices are connected to the same user edge device;
[0068] A monitoring server is configured to obtain multiple target backbone network edge devices from a plurality of backbone network edge devices; generate a load balancing instruction for each target backbone network edge device from the multiple target backbone network edge devices, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward a target data message that matches each target backbone network edge device in the data message to be transmitted based on message information carried by the received data message to be transmitted and the load balancing instruction, wherein the data messages to be transmitted belong to the same virtual local area network; and send the load balancing instruction to the corresponding target backbone network edge device;
[0069] The target backbone network edge device is configured to receive data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network; extract message information from the data packets to be transmitted; obtain the target data packet that matches the target backbone network edge device in the data packets to be transmitted based on the message information and the load balancing instruction; and forward the target data packet to the user edge device.
[0070] According to a fourth aspect, a data message transmission control device is provided, which is applied to an Ethernet virtual private network, comprising:
[0071] A first acquisition module is configured to acquire multiple target backbone network edge devices connected to the same user edge device;
[0072] a generation module configured to generate a load balancing instruction for each target backbone network edge device among a plurality of target backbone network edge devices, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward a target data message that matches each target backbone network edge device in the data message to be transmitted based on message information carried by the received data message to be transmitted and the load balancing instruction, wherein the data messages to be transmitted belong to the same virtual local area network;
[0073] The sending module is configured to send the load balancing instruction to the corresponding target backbone network edge device, wherein the target backbone network edge device is configured to use the received load balancing instruction to forward the target data message to the user edge device.
[0074] According to a fifth aspect, a data message transmission control device is provided, which is applied to a target backbone network edge device in an Ethernet virtual private network, comprising:
[0075] A first receiving module is configured to receive data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network;
[0076] An extraction module is configured to extract message information from the data message to be transmitted;
[0077] a second acquisition module configured to acquire a target data packet that matches a target backbone network edge device from the data packets to be transmitted based on the packet information and the load balancing instruction, wherein the load balancing instruction is generated and issued by a monitoring server of the Ethernet virtual private network;
[0078] The forwarding module is configured to forward the target data message to the user edge device connected to the target backbone network edge device.
[0079] According to the sixth aspect, a computer non-volatile readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0080] According to the seventh aspect, an electronic device is also provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0081] Through this application, multiple target backbone network edge devices connected to the same user edge device are obtained; a load balancing instruction is generated for each target backbone network edge device in the multiple target backbone network edge devices, and the load balancing instruction is used to instruct each target backbone network edge device to forward the target data message that matches each target backbone network edge device in the data message to be transmitted according to the message information carried by the received data message to be transmitted and the load balancing instruction, and the data message to be transmitted belongs to the same virtual local area network; the load balancing instruction is sent down to the corresponding target backbone network edge device that uses the received load balancing instruction to forward the target data message to the user edge device. That is, multiple target backbone edge devices connected to the same user edge device are used as devices allowed to forward data packets under the same virtual local area network (VLAN). A load balancing instruction is generated for each target backbone edge device. The load balancing instruction instructs each target backbone edge device to forward target data packets that match it based on the message information carried by the received data packets to be transmitted and the load balancing instruction. This allows data packets under the same VLAN to be distributed to different target backbone edge devices for forwarding, thus achieving load balancing processing of data packets under the same VLAN. Therefore, the problem of low data packet transmission efficiency can be solved, achieving the effect of improving data packet transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] FIG1 is a hardware structure block diagram of a mobile terminal according to an embodiment of the present application, which is a method for controlling transmission of data packets;
[0083] FIG2 is a first flowchart of data message transmission control according to an embodiment of the present application;
[0084] FIG3 is a flow chart of issuing a load balancing token according to an embodiment;
[0085] FIG4 is a first schematic diagram of load-balanced transmission of data packets according to an embodiment;
[0086] FIG5 is a second flowchart of data message transmission control according to an embodiment of the present application;
[0087] FIG6 is a schematic diagram of a traditional VXLAN message according to an embodiment;
[0088] 7 is a flow chart of a target backbone network edge device determining a target data packet according to an embodiment;
[0089] FIG8 is a second schematic diagram of load-balanced transmission of data packets according to an embodiment;
[0090] 9 is a structural block diagram of a data message transmission control system according to an embodiment of the present application;
[0091] 10 is a structural block diagram of a data packet transmission control device applied to an Ethernet virtual private network according to an embodiment of the present application;
[0092] FIG11 is a structural block diagram of a data packet transmission control apparatus applied to a target backbone network edge device according to an embodiment of the present application. DETAILED DESCRIPTION
[0093] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0094] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0095] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the operation on a mobile terminal as an example, FIG1 is a hardware structure block diagram of a mobile terminal of a data message transmission control method according to an embodiment of the present application. As shown in FIG1 , the mobile terminal may include one or more (only one is shown in FIG1 ) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 configured to store data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 configured to have a communication function. It will be understood by those skilled in the art that the structure shown in FIG1 is only for illustration and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG1 , or have a configuration different from that shown in FIG1 .
[0096] The memory 104 can be configured to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data message transmission control method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may include a memory remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0097] The transmission device 106 is configured to receive or transmit data via a network. Examples of such networks may include wireless networks provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module configured to communicate with the Internet wirelessly.
[0098] In this embodiment, a method for controlling transmission of data packets applied to an Ethernet virtual private network is provided. FIG2 is a flow chart of the transmission control of data packets according to an embodiment of the present application. As shown in FIG2 , the flow chart includes the following steps:
[0099] Step S202, obtaining multiple target backbone network edge devices connected to the same user edge device;
[0100] Step S204: Generate a load balancing instruction for each target backbone network edge device among the multiple target backbone network edge devices, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward a target data message that matches each target backbone network edge device in the data message to be transmitted based on the message information carried by the received data message to be transmitted and the load balancing instruction, and the data messages to be transmitted belong to the same virtual local area network;
[0101] Step S206: Send the load balancing instruction to the corresponding target backbone network edge device, wherein the target backbone network edge device is configured to use the received load balancing instruction to forward the target data message to the user edge device.
[0102] Through the above steps, multiple target backbone edge devices connected to the same user edge device are used as devices that are allowed to forward data packets under the same virtual local area network. A load balancing instruction is generated for each target backbone edge device. The load balancing instruction instructs each target backbone edge device to forward a target data packet that matches it based on the message information carried by the received data packet to be transmitted and the load balancing instruction. This allows data packets under the same virtual local area network to be distributed to different target backbone edge devices for forwarding, thereby achieving load balancing processing of data packets under the same virtual local area network. Therefore, the problem of low data packet transmission efficiency can be solved, and the effect of improving data packet transmission efficiency can be achieved.
[0103] Optionally, in this embodiment, the Ethernet virtual private network (EVPN) is a VPN (Virtual Private Network) technology used for interconnecting large Layer 2 networks in data centers. Ethernet VPN technology uses a mechanism similar to BGP / MPLS IP VPN (Border Gateway Protocol / Multiprotocol Label Switching Internet Protocol Virtual Private Network). BGP EVPN defines a new NLRI (Network Layer Reachability Information) based on the BGP protocol (Border Gateway Protocol). The BGP EVPN NLRI defines five new BGP EVPN route types.
[0104] Optionally, in this embodiment, the above-mentioned data packet transmission control method can be applied to, but is not limited to, a device with backbone edge device control function set up in an Ethernet virtual private network, such as: a monitoring server of an Ethernet virtual private network, or, it can also be applied to, but is not limited to, a backbone edge device among multiple backbone edge devices connected to a user edge device.
[0105] In the technical solution provided in the above step S202, the above-mentioned user edge device can be, but is not limited to, connected to multiple target backbone network edge devices through multiple Ethernet links, and the above-mentioned user edge device can be, but is not limited to, configured to receive data packets sent by multiple target backbone network edge devices connected thereto.
[0106] Optionally, in this embodiment, the target backbone network edge device is configured to, but not limited to, forward data packets within the virtual local area network to a user edge device.
[0107] Optionally, in this embodiment, backbone edge devices connected to the same customer edge device via an Ethernet link may be determined as target backbone edge devices, but are not limited to these. For example, all backbone edge devices connected to the same customer edge device may be used as multiple target backbone edge devices. Alternatively, some backbone edge devices may be selected from all backbone edge devices connected to the same customer edge device to be used as multiple target backbone edge devices.
[0108] In an exemplary embodiment, multiple target backbone edge devices connected to the same user edge device can be obtained in the following manner, but is not limited to: all backbone edge devices connected to the user edge device are obtained as candidate backbone edge devices; and multiple target backbone edge devices are screened from the candidate backbone edge devices based on the link status of each candidate backbone edge device, wherein the link status is the network status of the connection link between each candidate backbone edge device and the user edge device.
[0109] Optionally, in this embodiment, the link status of the link between the candidate backbone edge device and the user edge device can be determined based on, but not limited to, the network status of the link transmitting data packets. For example, if the network status of the link between the candidate backbone edge device and the user edge device is good, the link between the candidate backbone edge device and the user edge device is considered to have a high efficiency in transmitting data packets and a good link status. Alternatively, if the network status of the link between the candidate backbone edge device and the user edge device is poor, the link between the candidate backbone edge device and the user edge device is considered to have a low efficiency in transmitting data packets and a poor link status.
[0110] Optionally, in this embodiment, a target backbone network edge device screening process is provided, which may, but is not limited to, determine the target backbone network edge device from candidate backbone network edge devices based on the link status of the connection link. For example, when it is detected that the network status of the connection link is relatively stable, that is, the connection link can complete the transmission of the target number of data packets within the target time, it can be determined that the link status of the connection link is good, and the connection link with a good link status can be, but is not limited to, determined as the target backbone network edge device. Alternatively, when it is detected that the network status of the connection link fluctuates significantly, that is, the connection link has difficulty completing the transmission of data packets, it can be determined that the link status of the connection link is poor, and the connection link with a poor link status can be, but is not limited to, not determined as the target backbone network edge device.
[0111] In an exemplary embodiment, multiple target backbone edge devices can be screened out from the candidate backbone edge devices according to the link status of each candidate backbone edge device in the following manner, but is not limited to: determining the link parameters corresponding to each candidate backbone edge device as the link status according to the network parameters reported by each candidate backbone edge device, wherein the network parameters include at least one of the following: bandwidth utilization, latency, jitter, and packet loss rate, and the smaller the link parameter, the better the link status; and screening out the backbone edge devices whose corresponding link parameters are less than or equal to the parameter threshold from the candidate backbone edge devices as multiple target backbone edge devices.
[0112] Optionally, in this embodiment, the link parameters of the candidate backbone network edge device can be determined by, but not limited to, obtaining one or more network parameters of the candidate backbone network edge device, including bandwidth utilization, delay, jitter, and packet loss rate, thereby determining the link status of the connection link. For example, when the network parameters of the candidate backbone network edge device, including bandwidth utilization, delay, jitter, and packet loss rate, are obtained, the link parameters of the candidate backbone network edge device are calculated based on the bandwidth utilization, delay, jitter, and packet loss rate. The smaller the link parameter, the better the link status of the connection link (that is, the link status of the connection link of the candidate backbone network edge device is good). The link parameter can be compared with a set threshold for judging the link status, and it can be determined that the link status of the link parameter less than the threshold is better.
[0113] Optionally, in this embodiment, the link parameter is used to indicate the working status of the connection link corresponding to the candidate backbone network edge device. The smaller the link parameter value, the better the working status of the corresponding connection link. Conversely, the larger the value, the worse the working status of the corresponding connection link.
[0114] Optionally, in this embodiment, a parameter threshold can be defined based on, but not limited to, the network status of the connection links between all candidate backbone edge devices connected to the same user edge device. The parameter threshold can be used to, but not limited to, screen out connection links with good link status between the user edge device and the candidate backbone edge device.
[0115] Optionally, in this embodiment, taking the network parameters including bandwidth utilization, delay, jitter and packet loss rate as an example, the link parameters of the connection link can be determined by, but not limited to, the bandwidth utilization, delay, jitter and packet loss rate of the connection link between the user edge device and the candidate backbone edge device to transmit data packets, and the link parameters are compared with the parameter threshold defined according to the network status of the connection links between all candidate backbone edge devices connected to the same user edge device. The backbone edge device whose link parameters are less than or equal to the parameter threshold can be determined as the target backbone edge device.
[0116] In an exemplary embodiment, the link parameters corresponding to each candidate backbone network edge device can be determined as the link state based on the network parameters reported by each candidate backbone network edge device in the following manner, but is not limited to: receiving the network parameters reported by each candidate backbone network edge device through a mirror message, wherein the network parameters include: bandwidth utilization, delay, jitter and packet loss rate; calculating the weighted sum of the network parameters as the link parameter, wherein the weight of each network parameter is proportional to the degree of influence of each network parameter on the network state.
[0117] Optionally, in this embodiment, the above-mentioned mirror message can be, but is not limited to, a data packet defined between the backbone network edge device and the monitoring server of the Ethernet virtual private network for reporting the network parameters of the connection link between the backbone network edge device and the user edge device collected by the backbone network edge device to the monitoring server.
[0118] Optionally, in this embodiment, the mirrored message may be, but is not limited to, sampled within a certain period, and the mirrored message sampling period may be, but is not limited to, adjustable.
[0119] Optionally, in this embodiment, the weights of network parameters may be used, but are not limited to, to indicate the degree of influence of bandwidth utilization, latency, jitter, and packet loss rate on the network status. In the case of multiple network parameters, the weights of each network parameter may be defined as being the same, but are not limited to: bandwidth utilization weight p1 = latency weight p2 = jitter weight p3 = packet loss rate weight p4. Alternatively, in the case of multiple network parameters, the weights of each network parameter may be defined as being different, but are not limited to: bandwidth utilization weight p1 ≠ latency weight p2 ≠ jitter weight p3 ≠ packet loss rate weight p4.
[0120] Optionally, in this embodiment, the weighted sum of each network parameter can be used as the link parameter of the corresponding candidate backbone network edge device, but is not limited to it. For example, taking the network parameters including bandwidth utilization k1, delay k2, jitter k3 and packet loss rate k4, and the corresponding weights being the bandwidth utilization weight p1, the delay weight p2, the jitter weight p3 and the packet loss rate weight p4 as an example, the link parameter of the corresponding candidate backbone network edge device can be, but is not limited to, equal to ∑J = (k1p1 + k2p2 + k3p3 + k4p4) * 100%.
[0121] In an exemplary embodiment, the network parameters reported by each candidate backbone network edge device through a mirror message can be received in the following manner, but is not limited to: receiving the network parameters reported by each candidate backbone network edge device through a mirror message according to a target period; sending a reporting instruction to each candidate backbone network edge device; and receiving the network parameters reported by each candidate backbone network edge device through a mirror message in response to the reporting instruction.
[0122] Optionally, in this embodiment, the target period indicates the time interval between two consecutive reports of collected network parameters by the candidate backbone network edge device to the monitoring server of the Ethernet virtual private network. The target period may be, but is not limited to, adjustable. For example, the target period may be, but is not limited to, reporting the network parameters to the monitoring server of the Ethernet virtual private network via a mirrored message every 300 seconds. Alternatively, the target period may be, but is not limited to, reporting the network parameters to the monitoring server of the Ethernet virtual private network via a mirrored message every 400 seconds.
[0123] Optionally, in this embodiment, a reporting instruction may be used, but is not limited to, to instruct a candidate backbone network edge device to report network parameters via a mirrored message. That is, the candidate backbone network edge device may, but is not limited to, reporting network parameters to the monitoring server of the Ethernet virtual private network in response to the reporting instruction. For example, the candidate backbone network edge device monitors the bandwidth utilization, latency, jitter, packet loss rate, and other data of the connection link between itself and the corresponding user edge device in real time. The candidate backbone network edge device may, but is not limited to, be configured to record and calculate the bandwidth utilization, latency, jitter, packet loss rate, and other data of the connection link at that time. When the target period is reached, the candidate backbone network edge device reports the network parameters, including bandwidth utilization, latency, jitter, packet loss rate, and other data, to the monitoring server via a mirrored message.
[0124] In an exemplary embodiment, all backbone edge devices connected to a user edge device may be obtained as candidate backbone edge devices in the following manner, but is not limited to: receiving the Ethernet segment number reported by each backbone edge device with which a communication connection has been established through a startup message; determining backbone edge devices with the same Ethernet segment number as all backbone edge devices connected to the same user edge device to obtain candidate backbone edge devices.
[0125] Optionally, in this embodiment, a communication connection between the backbone network edge device and the monitoring server of the Ethernet virtual private network can be established in the following manner, but is not limited to: taking the Ethernet virtual private network configured in the network as an example, the user edge device and the backbone network edge device are configured with the same monitoring server, and the backbone network edge devices establish a BGP neighbor relationship with each other while also establishing a BGP neighbor relationship with the monitoring server (i.e., establishing a communication connection), and the backbone network edge device and the monitoring server can be defined, but is not limited to, including: startup message (used by the backbone network edge device to report its own Ethernet segment number and other information to the monitoring server), mirror message (used to report the network parameters of the connection link between the backbone network edge device and the user edge device collected by the backbone network edge device to the monitoring server) and signaling message (used to send instructions from the monitoring server to the backbone network edge device), and can be encapsulated into BGP update (i.e., update format message information) message for transmission.
[0126] Optionally, in this embodiment, the above-mentioned Ethernet segment number can be but is not limited to being used to indicate the number of the target backbone edge device connected to the same user edge device among multiple backbone edge devices. That is, when the Ethernet segment numbers of multiple backbone edge devices are the same, it can be determined that the backbone edge devices with the same Ethernet segment number are connected to the same user edge device.
[0127] Optionally, in this embodiment, the above-mentioned startup message is used by the backbone network edge device to report its own Ethernet segment number and other information to the monitoring server. The startup message can be, but is not limited to, the first message data sent after the backbone network edge device establishes a TCP (Transmission Control Protocol) connection with the monitoring server, and is used to identify the backbone network edge devices with the same Ethernet segment number as an identical redundant backup group.
[0128] Optionally, in this embodiment, it is possible but not limited to based on the Ethernet segment numbers reported by all backbone edge devices that establish communication connections with the monitoring server of the Ethernet virtual private network. When the Ethernet segment numbers of multiple backbone edge devices are the same, it can be determined that the backbone edge devices with the same Ethernet segment numbers are connected to the same user edge device. At this time, it is possible but not limited to determine all backbone edge devices connected to the same user edge device as candidate backbone edge devices.
[0129] In the technical solution provided in the above step S204, the above load balancing instruction can be, but is not limited to, used to instruct each target backbone network edge device among multiple target backbone network edge devices to match the target data message from multiple message information, that is, the data message to be transmitted can be, but is not limited to, a data message carrying message information, can be, but is not limited to, determining a certain segment of the data message in the data message to be transmitted as message information, can be, but is not limited to, determining the target data message that matches the target backbone network edge device based on the load balancing instruction and the message information.
[0130] Optionally, in this embodiment, the target data packets that match the target backbone network edge device may be, but are not limited to, multiple. For example, taking the target backbone network edge device including the target backbone network edge device PE1 and the target backbone network edge device PE2, and the data packets to be transmitted including the data packet to be transmitted A, the data packet to be transmitted B, the data packet to be transmitted C and the data packet to be transmitted D as an example, the target data packets that match the target backbone network edge device PE1 may be, but are not limited to, including the data packet to be transmitted A and the data packet to be transmitted B, and the target data packets that match the target PE2 may be, but are not limited to, including the data packet to be transmitted C and the data packet to be transmitted D. Since the target backbone network edge device PE1 and the target backbone network edge device PE2 each have two matching data packets to be transmitted, traffic load balancing is achieved within the virtual local area network.
[0131] In an exemplary embodiment, a load balancing instruction can be generated for each target backbone edge device in a plurality of target backbone edge devices in the following manner, but is not limited to: generating a target number of load balancing tokens, wherein the target number is the number of the plurality of target backbone edge devices; generating a load balancing instruction carrying the target number and the load balancing token, wherein the load balancing instruction is used to instruct each target backbone edge device to forward the target data message that matches the load balancing token in the data message to be transmitted based on the message information carried by the received data message to be transmitted, the target number and the load balancing token.
[0132] Optionally, in this embodiment, the number of target backbone network edge devices may be determined as the target number, but is not limited to it.
[0133] Optionally, in this embodiment, the load balancing token can be determined based on, but not limited to, the number of target backbone network edge devices. For example, taking 3 target backbone network edge devices as an example, the load balancing token of the target backbone network edge device can include, but is not limited to, 0, 1, and 2.
[0134] Optionally, in this embodiment, the above-mentioned load balancing instruction may include, but is not limited to, information for indicating the number of target backbone network edge devices and the load balancing token of the target backbone network edge device. The load balancing instruction may be, but is not limited to, information for instructing the target backbone network edge device to match the corresponding message information carried in the data message to be transmitted according to the number of target backbone network edge devices and the load balancing token.
[0135] Optionally, in this embodiment, the data message to be transmitted may include, but is not limited to, BUM data in a VLAN (ie, the same virtual local area network) in an Ethernet virtual private network configured in the network.
[0136] Optionally, in this embodiment, the data message to be transmitted may, but is not limited to, carry message information, and may, but is not limited to, determine the target data message that matches each backbone network edge device based on the target quantity and load balancing token carried in the load balancing instruction. For example, data message A to be transmitted carries message information A, data message B to be transmitted carries message information B, and data message C to be transmitted carries message information C. The load balancing instruction indicates the target quantity, and the target backbone network edge devices include the target backbone network edge device PE1 with a load balancing token of 0, the target backbone network edge device PE2 with a load balancing token of 1, and the target backbone network edge device PE3 with a load balancing token of 2. Taking the edge device PE3 as an example, it can be but not limited to determining that the target backbone network edge device that matches the data packet A to be transmitted is the target backbone network edge device PE1 with a load balancing token of 0 based on the message information A carried in the data packet A to be transmitted and the target number, and determining that the target backbone network edge device that matches the data packet B to be transmitted is the target backbone network edge device PE2 with a load balancing token of 1 based on the message information B carried in the data packet B to be transmitted and the target number, and determining that the target backbone network edge device that matches the data packet C to be transmitted is the target backbone network edge device PE3 with a load balancing token of 2 based on the message information C carried in the data packet C to be transmitted and the target number.
[0137] In an exemplary embodiment, the target number of load balancing tokens can be generated in the following manner, but is not limited to: determining the number of multiple target backbone edge devices to obtain a target number M; generating a natural number from 0 to M-1 as the target number of load balancing tokens.
[0138] Optionally, in this embodiment, the number of all target backbone network edge devices may be, but is not limited to, determined as a target number M, and M may be, but is not limited to, a natural number.
[0139] Optionally, in this embodiment, the load balancing token can be, but is not limited to, a natural number from 0 to the target number minus 1 generated based on the target number. For example, taking the target number as 3 (M=3) as an example, load balancing tokens of 0, 1, 2 (0 to M-1) can be generated, but are not limited to.
[0140] In an exemplary embodiment, an example of issuing a load balancing token is provided. FIG3 is a flow chart of issuing a load balancing token according to an embodiment. As shown in FIG3 , the load balancing token may be issued to the target backbone network edge device in the following manner, but is not limited to:
[0141] S302: The monitoring server of the Ethernet virtual private network receives network parameters (i.e., link state information) reported by the candidate backbone network edge device. The network parameters may be, but are not limited to, those reported by the candidate backbone network edge device via a mirror message in a target period.
[0142] S304: Determine the number of candidate backbone network edge devices connected to the same user edge device;
[0143] S306: Calculate the link parameter ∑J of each candidate backbone network edge device based on the network parameters;
[0144] S308: Compare the link parameter ∑J of each candidate backbone network edge device with a parameter threshold (i.e., average critical routing parameter) defined according to the network conditions;
[0145] S310: Determine a candidate backbone network edge device whose link parameter is less than or equal to the parameter threshold as a target backbone network edge device with a normal link status of the connection link (i.e., a member of the load sharing backbone network edge device node group);
[0146] S312: Issue a load balancing token to each target backbone network edge device.
[0147] S314: For a candidate backbone network edge device whose link parameter is greater than a parameter threshold (i.e., an average critical routing parameter), the link status of the link connected to the candidate backbone network edge device is considered abnormal;
[0148] S316: Do not issue a load balancing token to the candidate backbone network edge device whose link status is abnormal.
[0149] In the technical solution provided in step S206 above, a load balancing instruction may be used, but is not limited to, to instruct the target backbone network edge device to forward matching target data packets from the data packets to be transmitted to the user edge device. For example, upon receiving the load balancing instruction, the target backbone network edge device obtains the load balancing token and target quantity indicated in the load balancing instruction, determines matching target data packets from the data packets to be transmitted based on the load balancing token and target quantity, and forwards the target data packets to the user edge device.
[0150] In an exemplary embodiment, the load balancing instruction may be sent to the corresponding target backbone network edge device in the following manner, but is not limited to: encapsulating the load balancing instruction into a signaling message; and sending the signaling message to the corresponding target backbone network edge device.
[0151] Optionally, in this embodiment, the above-mentioned signaling message is used to send instructions from the monitoring server of the Ethernet virtual private network to the backbone network edge device, that is, the load balancing instructions can be sent to the corresponding target backbone network edge device but are not limited to using signaling messages to instruct the target backbone network edge device to determine the matching target data packet from the data packet to be transmitted.
[0152] In an exemplary embodiment, an example of load-balanced transmission of data packets is provided. FIG4 is a schematic diagram of load-balanced transmission of data packets according to an embodiment. As shown in FIG4 , taking the case where a user edge device CE1 and a backbone edge device (which may include, but is not limited to, backbone edge device PE1, backbone edge device PE2, backbone edge device PE3, and backbone edge device PE4) are configured with a monitoring server (i.e., Server1) of the same Ethernet virtual private network, the backbone edge devices establish a BGP neighbor relationship with each other and also establish a BGP neighbor relationship with the monitoring server. Furthermore, message data including: a startup message (for the backbone edge device to report its own Ethernet segment number and other information to the monitoring server Server1), a mirror message (for reporting network parameters collected by the backbone edge device and the user edge device CE1 to the monitoring server Server1), and a signaling message (for sending instructions from the monitoring server Server1 to the backbone edge device) are defined between the backbone edge device and the monitoring server Server1. The startup message, the mirror message, and the signaling message may be, but are not limited to, encapsulated into a BGP update message for transmission.
[0153] The monitoring server receives the Ethernet segment number reported by each backbone edge device through the startup message. The monitoring server determines that the backbone edge devices with the same Ethernet segment number are connected to the same user edge device based on the Ethernet segment number reported by the backbone edge device, and obtains candidate backbone edge devices (candidate backbone edge devices connected to the same user edge device can be determined as one ES group, but is not limited to);
[0154] The monitoring server receives network parameters including bandwidth utilization k1, delay k2, jitter k3, and packet loss rate k4 reported by each candidate backbone network edge device through a mirror message in a target period, determines the weight p of the network parameter (which may include but is not limited to the weight p1 of bandwidth utilization, the weight p2 of delay, the weight p3 of jitter, and the weight p4 of packet loss rate) according to the degree of influence of each network parameter on the network status, and performs a weighted average calculation on all network parameters to obtain the link parameter ∑J=(k1p1+k2p2+k3p3+k4p4)*100% of the connection link;
[0155] The monitoring server receives the link parameters of the connection link between each candidate backbone edge device and the same user edge device, and determines the backbone edge device whose link parameter is less than or equal to the parameter threshold defined according to the network situation as the target backbone edge device with a normal link status of the connection link;
[0156] According to the number of target backbone network edge devices, 0 to 1 of the target backbone network edge devices is generated as the target number of load balancing tokens, and the target number and the load balancing token are used to instruct each target backbone network edge device to forward the target data message that matches the load balancing token in the data message to be transmitted according to the message information carried by the received data message to be transmitted, the target number and the load balancing token.
[0157] The link parameters of the candidate backbone network edge devices can be calculated by, but are not limited to, setting the weight of bandwidth utilization p1 = the weight of delay p2 = the weight of jitter p3 = the weight of packet loss rate p4 = 25%. For example, taking the bandwidth utilization k1 = 20%, the delay k2 = 30 ms, the jitter k3 = 40 ms, and the packet loss rate k4 = 0.1 of the first candidate backbone network edge device as an example, the link parameter of the first candidate backbone network edge device is calculated as ∑J(PE1) = {bandwidth utilization (20%) * 25% + delay (30 ms) * 25% + jitter (40 ms) * 25% + packet loss rate (0.1) * 25%} = {0.2 * 0.25 + 30 * 0.25 + 40 * 0.25 + 0.1 * 0.25} * 100% = 1757.5;
[0158] Taking the link parameters of the candidate backbone network edge devices (which may include but are not limited to PE1, PE2, PE3 and PE4) as ∑J(PE1)=1757.5, ∑J(PE2)=1701, ∑J(PE3)=1780, ∑J(PE4)=1860, and the parameter threshold defined according to the network situation as 1800 as an example, since the link parameters of ∑J(PE1), ∑J(PE2), ∑J(PE3) are less than the parameter threshold, it is considered that the candidate backbone network edge device PE1, the candidate backbone network edge device PE2 and the candidate backbone network edge device PE3 are to The link status of the user edge device CE1 is normal and meets the data forwarding requirements. The candidate backbone edge devices PE1, PE2, and PE3 can be determined as target backbone edge devices. Since ∑J(PE4) is greater than 1800, it means that the link status from the backbone edge device PE4 to the user edge device CE1 is abnormal and does not meet the data forwarding requirements. Therefore, the number of target backbone edge devices is 3. It can be determined, but not limited to, that the token of PE1 is 0, the token of PE2 is 1, the token of PE3 is 2, and PE4 does not obtain a token.
[0159] The monitoring server may, but is not limited to, encapsulate the token corresponding to the target backbone network edge device (which may, but is not limited to, include the target backbone network edge device PE1, the target backbone network edge device PE2, and the target backbone network edge device PE3) into a signaling message and send it to the corresponding target backbone network edge device.
[0160] Because CE2 is connected only to PE5, only PE5 is used to forward packets to CE2.
[0161] In this embodiment, a method for controlling the transmission of data packets of a target backbone network edge device in an Ethernet virtual private network is provided. FIG5 is a second flow chart of the transmission control of data packets according to an embodiment of the present application. As shown in FIG5 , the flow chart includes the following steps:
[0162] Step S502: receiving data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network;
[0163] Step S504, extracting message information from the data message to be transmitted;
[0164] Step S506: acquiring a target data message that matches the target backbone network edge device from the data message to be transmitted according to the message information and the load balancing instruction, wherein the load balancing instruction is generated and issued by the monitoring server of the Ethernet virtual private network;
[0165] Step S508: forward the target data message to the user edge device connected to the target backbone network edge device.
[0166] Through the above steps, multiple target backbone edge devices connected to the same user edge device are used as devices that are allowed to forward data packets under the same virtual local area network. A load balancing instruction is generated for each target backbone edge device. The load balancing instruction instructs each target backbone edge device to forward a target data packet that matches it based on the message information carried by the received data packet to be transmitted and the load balancing instruction. This allows data packets under the same virtual local area network to be distributed to different target backbone edge devices for forwarding, thereby achieving load balancing processing of data packets under the same virtual local area network. Therefore, the problem of low data packet transmission efficiency can be solved, and the effect of improving data packet transmission efficiency can be achieved.
[0167] The above steps may be, but are not limited to, applied to a target backbone network edge device in an Ethernet virtual private network.
[0168] In the technical solution provided in the above step S502, the above data message to be transmitted may include, but is not limited to, BUM data in a VLAN (ie, the same virtual local area network) in an Ethernet virtual private network configured in the network.
[0169] In the technical solution provided in the above step S504, the above data message to be transmitted may have but is not limited to multiple data segments, and the message information may be obtained by extracting the target data segment in the data message to be transmitted, thereby realizing extraction of message information from the data message to be transmitted.
[0170] In an exemplary embodiment, message information can be extracted from a data message to be transmitted in the following manner, but is not limited to: extracting the original message data after the VXLAN header field from the data message to be transmitted; performing a hash operation on the original message data to obtain a message information start.
[0171] Optionally, in this embodiment, the data packet to be transmitted may include, but is not limited to, multiple fields, and may be determined as original packet data by, but is not limited to, extracting the field after the VXLAN header field.
[0172] In an exemplary embodiment, an example of a traditional VXLAN message is provided. FIG6 is a schematic diagram of a traditional VXLAN message according to an embodiment. As shown in FIG6 , the format of the traditional VXLAN message (i.e., the data message to be transmitted) may be, but is not limited to, unchanged. The format of the traditional VXLAN message may include, but is not limited to, a VXLAN encapsulation portion, wherein the VXLAN encapsulation portion may include, but is not limited to: an Outer Ethernet header (an Ethernet frame header for carrying the VXLAN packet), an Outer IP header (an IP datagram header for carrying the entire data packet), an Outer UDP header (an UDP datagram header for carrying the entire data packet), a VXLAN header (a header for identifying VXLAN encapsulated data), and original message data; the original message data in the VXLAN encapsulation portion may include, but is not limited to: an Inner Ethernet header (an Ethernet frame header), an Inner IP header (an IP datagram header), and a payload.
[0173] The message information can be obtained by performing a hash operation on the original message data after the VXLAN header field, using the VXLAN header field (i.e., VXLAN header encapsulation) field in the VXLAN message as a boundary, but is not limited to the VXLAN header field in the VXLAN message.
[0174] In the technical solution provided in step S506 above, the load balancing instruction may be, but is not limited to, an instruction from the monitoring server of the Ethernet virtual private network to the target backbone network edge device to match the target data packet from the data packets to be transmitted. Upon receiving the load balancing instruction, the target backbone network edge device may, but is not limited to, match the target data packet from all received data packets to be transmitted based on the load balancing instruction and the message information.
[0175] In an exemplary embodiment, the target data packet that matches the target backbone network edge device in the data packet to be transmitted can be obtained according to the message information and the load balancing instruction in the following manner, but is not limited to: determining the message identifier according to the target quantity carried in the message information and the load balancing instruction, wherein the target quantity is the number of multiple target backbone network edge devices screened by the monitoring server for forwarding the data packet to be transmitted; matching the message identifier with the load balancing token carried in the load balancing instruction; and determining the data packet to be transmitted as the target data packet when the message identifier successfully matches the load balancing token.
[0176] Optionally, in this embodiment, the target number may be, but is not limited to, the number of backbone edge devices connected to the same customer edge device, and the number of target backbone edge devices with good link status between the backbone edge devices and the customer edge devices. For example, if the backbone edge devices include backbone edge device PE1, backbone edge device PE2, and backbone edge device PE3, and backbone edge devices PE1, backbone edge device PE2, and backbone edge device PE3 are connected to the same customer edge device, but the link status between backbone edge device PE2 and backbone edge device PE3 is good, the number of target backbone edge devices is 2 (which may include, but is not limited to, backbone edge device PE2 and backbone edge device PE3).
[0177] Optionally, in this embodiment, the message identifier can be, but is not limited to, obtained based on the number of target backbone network edge devices and the message information, and can be, but is not limited to, used to match the load balancing token obtained with the target backbone network edge device, and determine the target data message that matches the target backbone network edge device from all data messages to be transmitted.
[0178] Optionally, in this embodiment, the target data message corresponding to the target backbone network edge device can be determined by, but not limited to, the matching result between the message identifier and the load balancing token of the target backbone network edge device. For example, when the message identifier matches the load balancing token of the target backbone network edge device, the data message to be sent corresponding to the message identifier is determined to be the target data message of the target backbone network edge device.
[0179] In an exemplary embodiment, the message identifier can be determined based on the message information and the target number carried in the load balancing instruction in the following manner, but not limited to: calculating the remainder of dividing the message information by the target number as the message identifier, wherein the message information is obtained by performing a hash operation on the original message data in the data message to be transmitted; the message identifier can be matched with the load balancing token carried in the load balancing instruction in the following manner, but not limited to: comparing the remainder with the load balancing token, wherein the load balancing token is a natural number from 0 to M-1 generated by the monitoring server, and M is the target number; when the remainder is consistent with the load balancing token, it is determined that the message identifier and the load balancing token are successfully matched.
[0180] Optionally, in this embodiment, the original message data in the data message to be transmitted may be hashed to obtain the message information of the original message data. The message information may be divided by the number of target backbone network edge devices to calculate the remainder as the message identifier.
[0181] Optionally, in this embodiment, whether the message identifier matches the load balancing token may be determined in the following manner, but is not limited to: for example, the message identifier is matched with the load balancing token carried in the load balancing instruction. When the message identifier is equal to the load balancing token, the message identifier and the load balancing token may be considered to match, but is not limited to. Alternatively, if a matching rule is predetermined, the message identifier and the load balancing token are matched one-to-one according to the matching rule, and the message identifier and the load balancing token may be considered to match, but is not limited to.
[0182] In an exemplary embodiment, after matching the message identifier with the load balancing token carried in the load balancing instruction, the data message to be transmitted can be processed in the following manner but is not limited to: if the message identifier fails to match the load balancing token, the data message to be transmitted is discarded.
[0183] Optionally, in this embodiment, whether the message identifier matches the load balancing token may be determined, but is not limited to, by the following methods: for example, matching the message identifier with the load balancing token carried in the load balancing instruction. If the message identifier does not equal the load balancing token, the target backbone network edge device may, but is not limited to, deem that the message identifier and the load balancing token do not match, and discard the data packet to be transmitted corresponding to the message identifier. Alternatively, if a matching rule is predetermined and the message identifier and the load balancing token do not correspond one-to-one according to the matching rule, the target backbone network edge device may, but is not limited to, deem that the message identifier and the load balancing token do not match, and discard the data packet to be transmitted corresponding to the message identifier.
[0184] In an exemplary embodiment, an example of a target backbone network edge device determining a target data packet is provided. FIG7 is a flow chart of a target backbone network edge device determining a target data packet according to an embodiment. As shown in FIG7 , the target backbone network edge device may be determined by, but is not limited to, the following steps:
[0185] S702: Obtain the target number and load balancing token of the target backbone network edge device;
[0186] S704: Extract the original message data after the VXLAN header field in the data message to be transmitted, and then perform a hash operation on the original message data to obtain message information (which may be, but is not limited to, the last 4 digits of the obtained hash value);
[0187] S706: Divide the message information by the target number (the number of PEs M for load balancing) to obtain a remainder Q, which is determined as the message identifier;
[0188] S708: Use the message identifier to match the load balancing token of the target backbone network edge device;
[0189] S710: When the message identifier and the load balancing token are equal, the target backbone network edge device corresponding to the load balancing token may be used to forward the target data message corresponding to the message identifier, but is not limited to the case.
[0190] S712: The backbone network edge device may discard the data message corresponding to the message identifier, but is not limited to, when the message identifier is not equal to the load balancing token or the backbone network edge device does not receive the load balancing token.
[0191] In an exemplary embodiment, before obtaining the target data packet that matches the target backbone network edge device in the data packet to be transmitted based on the packet information and the load balancing instruction, the network parameters can be reported in the following manner, but are not limited to: reporting the network parameters to the monitoring server through a mirror message, wherein the network parameters include at least one of the following: bandwidth utilization, delay, jitter, and packet loss rate; receiving the load balancing instruction issued by the monitoring server in response to the network parameters through a signaling message.
[0192] Optionally, in this embodiment, the mirrored message may be, but is not limited to, a message defined between a backbone network edge device and a monitoring server. The mirrored message may be, but is not limited to, a data message used to report network parameters collected by the backbone network edge device and the connection link with the user edge device to the monitoring server.
[0193] Optionally, in this embodiment, the above-mentioned signaling message is used to send instructions from the monitoring server to the backbone network edge device, that is, the load balancing instructions can be sent to the corresponding target backbone network edge device using, but not limited to, signaling messages, instructing the target backbone network edge device to determine the matching target data packet from the data packet to be transmitted.
[0194] In an exemplary embodiment, network parameters can be reported to the monitoring server via mirror messages in the following manner, but is not limited to: reporting network parameters according to a target period via mirror messages; receiving reporting instructions sent by the monitoring server; and reporting network parameters via mirror messages in response to the reporting instructions.
[0195] Optionally, in this embodiment, the mirrored message may be, but is not limited to, sampled once within a certain period, and the sampling period may be, but is not limited to, adjustable.
[0196] Optionally, in this embodiment, the target period is used to indicate the time interval between two consecutive times that the candidate backbone network edge device reports collected network parameters to the monitoring server via mirrored messages. The target period may be, but is not limited to, adjustable, for example, reporting the network parameters to the monitoring server via mirrored messages every 300 seconds, or reporting the network parameters to the monitoring server via mirrored messages every 400 seconds.
[0197] In an exemplary embodiment, before obtaining the target data packet that matches the target backbone network edge device in the data packet to be transmitted based on the packet information and load balancing instructions, the Ethernet segment number can be reported in the following ways, but is not limited to: establishing a communication connection with the monitoring server; reporting the Ethernet segment number to the monitoring server through a startup message.
[0198] Optionally, in this embodiment, a communication connection between the backbone network edge device and the monitoring server can be established in the following manner, but is not limited to: taking an Ethernet virtual private network configured in the network as an example, the user edge device and the backbone network edge device are configured with the same monitoring server, and the backbone network edge devices establish a BGP neighbor relationship with each other while also establishing a BGP neighbor relationship with the monitoring server (i.e., establishing a communication connection), and the backbone network edge device and the monitoring server can be defined, but is not limited to, including: startup messages (used by the backbone network edge device to report its own Ethernet segment number and other information to the monitoring server), mirror messages (used to report the network parameters of the connection link between the backbone network edge device and the user edge device collected by the backbone network edge device to the monitoring server) and signaling messages (used to send instructions from the monitoring server to the backbone network edge device), and the startup message, mirror message and signaling message can be encapsulated into a BGP update message for transmission.
[0199] Optionally, in this embodiment, the above-mentioned startup message is used by the backbone network edge device to report its own Ethernet segment number and other information to the monitoring server. The startup message can be, but is not limited to, the first message data sent after the backbone network edge device establishes a TCP (Transmission Control Protocol) connection with the monitoring server, and is used to identify the backbone network edge devices with the same Ethernet segment number as an identical redundant backup group.
[0200] In the technical solution provided in the above step S508, when the target backbone network edge device determines the target data packet that matches it, it can, but is not limited to, forward the target data packet to the user edge device connected to the target backbone network edge device.
[0201] In an exemplary embodiment, an example of load balancing transmission of data packets is provided. FIG8 is a second schematic diagram of load balancing transmission of data packets according to an embodiment. As shown in FIG8 , taking the case where the user edge device CE1 and the backbone edge device (which may include but is not limited to backbone edge device PE1, backbone edge device PE2, backbone edge device PE3 and backbone edge device PE4) are configured with the same monitoring server (which may be but is not limited to Server1) as an example, when the target backbone edge device PE1 with a load balancing token of 0, the target backbone edge device PE2 with a load balancing token of 1, the target backbone edge device PE3 with a load balancing token of 2 and the backbone edge device PE4 that has not obtained a load balancing token all receive data packets to be transmitted in the same virtual local area network (which may include but is not limited to backbone edge device PE1, backbone edge device PE2, backbone edge device PE3 and backbone edge device PE4 as an ES group), each backbone edge device extracts a VXLAN from the data packet to be transmitted. The original message data after the header field is hashed (i.e., hashed) to obtain message information. The message information obtained by hashing the target number 3 with the original message data can be, but is not limited to, 9000, 9001, 9002, 9003, 9004, and 9005 respectively;
[0202] The target backbone network edge device PE1 matches the load balancing token 0 carried in the load balancing instruction according to the target number 3. Since the remainder of message information 9000 divided by 3 is 0 (i.e., the message identifier) matches the load balancing token 0, and the remainder of message information 9003 divided by 3 is 0 (i.e., the message identifier) matches the load balancing token 0, the target backbone network edge device PE1 can be used to forward the target data messages of message information 9000 and message information 9003 to the user edge device CE1, and the data messages of message information 9001, message information 9002, message information 9004, and message information 9005 are discarded;
[0203] The target backbone network edge device PE2 matches the load balancing token 1 carried in the load balancing instruction according to the target number 3. Since the remainder of the message information 9001 divided by 3 is 1 (i.e., the message identifier) matches the load balancing token 1, and the remainder of the message information 9004 divided by 3 is 1 (i.e., the message identifier) matches the load balancing token 1, the target backbone network edge device PE2 can be used to forward the target data messages of the message information 9001 and the message information 9004 to the user edge device CE1, and the remaining data messages are discarded;
[0204] The target backbone network edge device PE3 matches the load balancing token 2 carried in the load balancing instruction according to the target number 3. Since the message information 9002 divided by 3 has a remainder of 2 (i.e., the message identifier) and matches the load balancing token 2, and the message information 9005 divided by 3 has a remainder of 2 (i.e., the message identifier) and matches the load balancing token 2, the target backbone network edge device PE3 can be used to forward the target data messages of the message information 9002 and the message information 9005 to the user edge device CE1, and the remaining data messages are discarded;
[0205] Since the backbone network edge device PE4 does not obtain the load balancing token, the backbone network edge device PE4 cannot forward the data packet.
[0206] Since the user edge device CE2 is only connected to the backbone network edge device PE5 and is not configured with the monitoring server Server1, only the backbone network edge device PE5 is used and the message data in the VLAN of Server1 is not forwarded.
[0207] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a non-volatile readable storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0208] In this embodiment, a data packet transmission control system is also provided. FIG9 is a structural block diagram of the data packet transmission control system according to an embodiment of the present application. As shown in FIG9 , the system includes: an Ethernet virtual private network monitoring server 902, a plurality of backbone network edge devices (9041 to 904n),
[0209] The monitoring server 902 is connected to a plurality of backbone network edge devices (9041 to 904n) respectively, and the plurality of backbone network edge devices (9041 to 904n) are connected to the same user edge device (906);
[0210] The monitoring server 902 is configured to obtain multiple target backbone network edge devices (9081 to 908n) from the multiple backbone network edge devices (9041 to 904n); generate a load balancing instruction for each target backbone network edge device (9081 to 908n) from the multiple target backbone network edge devices (9081 to 908n), wherein the load balancing instruction is used to instruct each target backbone network edge device (9081 to 908n) to forward the target data message that matches each target backbone network edge device (9081 to 908n) in the data message to be transmitted based on the message information carried by the received data message to be transmitted and the load balancing instruction, and the data message to be transmitted belongs to the same virtual local area network; and send the load balancing instruction to the corresponding target backbone network edge device (9081 to 908n);
[0211] The target backbone network edge device (9081 to 908n) is configured to receive data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network; extract message information from the data packets to be transmitted; obtain target data packets that match the target backbone network edge device (9081 to 908n) in the data packets to be transmitted based on the message information and the load balancing instruction; and forward the target data packets to the user edge device (906).
[0212] The monitoring server is further configured to obtain all backbone edge devices connected to the user edge device as candidate backbone edge devices; and screen out multiple target backbone edge devices from the candidate backbone edge devices based on the link status of each candidate backbone edge device, wherein the link status is the network status of the connection link between each candidate backbone edge device and the user edge device.
[0213] The monitoring server is further configured to determine the link parameters corresponding to each candidate backbone network edge device as the link status based on the network parameters reported by each candidate backbone network edge device, wherein the network parameters include at least one of the following: bandwidth utilization, latency, jitter, and packet loss rate, and the smaller the link parameter, the better the link status; and screen out backbone network edge devices whose corresponding link parameters are less than or equal to the parameter threshold from the candidate backbone network edge devices as multiple target backbone network edge devices.
[0214] The monitoring server is further configured to receive network parameters reported by each candidate backbone network edge device through a mirror message, wherein the network parameters include: bandwidth utilization, latency, jitter and packet loss rate; and calculate the weighted sum of the network parameters as the link parameter, wherein the weight of each network parameter is proportional to the degree of influence of each network parameter on the network status.
[0215] The monitoring server is also configured to receive network parameters reported by each candidate backbone network edge device through a mirror message according to a target period; send a reporting instruction to each candidate backbone network edge device; and receive network parameters reported by each candidate backbone network edge device through a mirror message in response to the reporting instruction.
[0216] The monitoring server is also configured to receive the Ethernet segment number reported by each backbone network edge device that has established a communication connection through a startup message; the backbone network edge devices with the same Ethernet segment number are determined to be all backbone network edge devices connected to the same user edge device, and candidate backbone network edge devices are obtained.
[0217] The monitoring server is also configured to generate a target number of load balancing tokens, where the target number is the number of multiple target backbone network edge devices; generate a load balancing instruction carrying the target number and the load balancing token, where the load balancing instruction is used to instruct each target backbone network edge device to forward the target data message that matches the load balancing token in the data message to be transmitted based on the message information carried by the received data message to be transmitted, the target number and the load balancing token.
[0218] The monitoring server is further configured to determine the number of multiple target PEs to obtain a target number M; and generate a natural number from 0 to M-1 as a load balancing token of the target number.
[0219] The monitoring server is further configured to encapsulate the load balancing instruction into a signaling message; and send the signaling message to the corresponding target backbone network edge device.
[0220] The target backbone network edge device is also configured to receive data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network; extract message information from the data packets to be transmitted; obtain the target data packet that matches the target backbone network edge device in the data packets to be transmitted based on the message information and the load balancing instruction, wherein the load balancing instruction is generated and issued by the monitoring server of the Ethernet virtual private network; and forward the target data packet to the user edge device connected to the target backbone network edge device.
[0221] The target backbone network edge device is also configured to determine the message identifier based on the message information and the target number carried in the load balancing instruction, wherein the target number is the number of multiple target backbone network edge devices screened by the monitoring server for forwarding the data message to be transmitted; match the message identifier with the load balancing token carried in the load balancing instruction; and when the message identifier successfully matches the load balancing token, determine the data message to be transmitted as the target data message.
[0222] The target backbone network edge device is also configured to determine the message identifier based on the message information and the target quantity carried in the load balancing instruction, including: calculating the remainder of dividing the message information by the target quantity as the message identifier, wherein the message information is obtained by performing a hash operation on the original message data in the data message to be transmitted; matching the message identifier with the load balancing token carried in the load balancing instruction, including: comparing the remainder with the load balancing token, wherein the load balancing token is a natural number from 0 to M-1 generated by the monitoring server, and M is the target quantity; when the remainder is consistent with the load balancing token, it is determined that the message identifier and the load balancing token are successfully matched.
[0223] The target backbone network edge device is further configured to discard the data message to be transmitted if the message identifier fails to match the load balancing token.
[0224] The target backbone network edge device is also configured to report network parameters to the monitoring server through a mirror message, wherein the network parameters include at least one of the following: bandwidth utilization, latency, jitter, and packet loss rate; and receive a load balancing instruction issued by the monitoring server in response to the network parameters through a signaling message.
[0225] The target backbone network edge device is further configured to report network parameters according to a target period through a mirror message; receive a reporting instruction sent by the monitoring server; and report the network parameters through a mirror message in response to the reporting instruction.
[0226] The target backbone network edge device is also configured to establish a communication connection with the monitoring server and report the Ethernet segment number to the monitoring server via a startup message.
[0227] The target backbone network edge device is further configured to extract original message data after the VXLAN header field from the data message to be transmitted; and perform a hash operation on the original message data to obtain message information.
[0228] In this embodiment, a data message transmission control device is also provided. The device is configured to implement the above-mentioned embodiments and optional implementations, and the details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0229] FIG10 is a structural block diagram of a data packet transmission control device applied to an Ethernet virtual private network according to an embodiment of the present application. As shown in FIG10 , the device includes:
[0230] A first acquisition module 1002 is configured to acquire multiple target backbone network edge devices connected to the same user edge device;
[0231] a generating module 1004 configured to generate a load balancing instruction for each target backbone network edge device among the multiple target backbone network edge devices, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward a target data message that matches each target backbone network edge device in the data message to be transmitted based on message information carried by the received data message to be transmitted and the load balancing instruction, wherein the data messages to be transmitted belong to the same virtual local area network;
[0232] The issuing module 1006 is configured to issue the load balancing instruction to the corresponding target backbone network edge device, wherein the target backbone network edge device is configured to use the received load balancing instruction to forward the target data message to the user edge device.
[0233] Through the above-mentioned apparatus, multiple target backbone network edge devices connected to the same user edge device are used as devices allowed to forward data packets under the same virtual local area network. A load balancing instruction is generated for each target backbone network edge device. The load balancing instruction instructs each target backbone network edge device to forward a target data packet that matches it based on the message information carried by the received data packet to be transmitted and the load balancing instruction. This allows data packets under the same virtual local area network to be distributed to different target backbone network edge devices for forwarding, thus achieving load balancing processing of data packets under the same virtual local area network. Therefore, the problem of low data packet transmission efficiency can be solved, and the effect of improving data packet transmission efficiency can be achieved.
[0234] In an exemplary embodiment, the first acquisition module includes:
[0235] An acquiring unit is configured to acquire all backbone network edge devices connected to the user edge device as candidate backbone network edge devices;
[0236] The screening unit is configured to screen out a plurality of target backbone edge devices from the candidate backbone edge devices according to a link status of each candidate backbone edge device, wherein the link status is a network status of a connection link between each candidate backbone edge device and a user edge device.
[0237] In an exemplary embodiment, the screening unit is configured to: determine a link parameter corresponding to each candidate backbone network edge device as a link state based on the network parameters reported by each candidate backbone network edge device, wherein the network parameter includes at least one of the following: bandwidth utilization, latency, jitter, and packet loss rate, and the smaller the link parameter, the better the link state; and screen out backbone network edge devices whose corresponding link parameters are less than or equal to a parameter threshold from the candidate backbone network edge devices as multiple target backbone network edge devices.
[0238] In an exemplary embodiment, the screening unit is further configured to: receive network parameters reported by each candidate backbone network edge device through a mirror message, wherein the network parameters include: bandwidth utilization, latency, jitter, and packet loss rate; calculate the weighted sum of the network parameters as the link parameter, wherein the weight of each network parameter is proportional to the degree of influence of each network parameter on the network status.
[0239] In an exemplary embodiment, the screening unit is further configured to: receive network parameters reported by each candidate backbone network edge device through a mirror message according to a target period; send a reporting instruction to each candidate backbone network edge device; and receive network parameters reported by each candidate backbone network edge device through a mirror message in response to the reporting instruction.
[0240] In an exemplary embodiment, the acquisition unit is further configured to: receive the Ethernet segment number reported by each backbone network edge device with which a communication connection has been established through a startup message; determine the backbone network edge devices with the same Ethernet segment number as all backbone network edge devices connected to the same user edge device, and obtain candidate backbone network edge devices.
[0241] In an exemplary embodiment, the generation module includes:
[0242] A first generating unit is configured to generate a target number of load balancing tokens, wherein the target number is the number of multiple target backbone network edge devices;
[0243] The second generation unit is configured to generate a load balancing instruction carrying a target quantity and a load balancing token, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward the target data message that matches the load balancing token in the data message to be transmitted based on the message information, target quantity and load balancing token carried by the received data message to be transmitted.
[0244] In an exemplary embodiment, the first generating unit is configured to: determine the number of multiple target backbone network edge devices to obtain a target number M; and generate a natural number from 0 to M-1 as the target number of load balancing tokens.
[0245] In an exemplary embodiment, the sending module includes:
[0246] an encapsulation unit, configured to encapsulate the load balancing instruction into a signaling message;
[0247] The sending unit is configured to send the signaling message to the corresponding target backbone network edge device.
[0248] FIG11 is a structural block diagram of a data packet transmission control device applied to a target backbone network edge device according to an embodiment of the present application. As shown in FIG11 , the device includes:
[0249] The first receiving module 1102 is configured to receive data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network;
[0250] The extraction module 1104 is configured to extract message information from the data message to be transmitted;
[0251] A second acquisition module 1106 is configured to acquire a target data packet that matches a target backbone network edge device from the data packets to be transmitted based on the packet information and the load balancing instruction, wherein the load balancing instruction is generated and issued by a monitoring server of the Ethernet virtual private network;
[0252] The forwarding module 1108 is configured to forward the target data message to the user edge device connected to the target backbone network edge device.
[0253] In an exemplary embodiment, the second acquisition module includes:
[0254] A first determining unit is configured to determine a message identifier based on the message information and a target number carried in the load balancing instruction, wherein the target number is the number of multiple target backbone network edge devices screened by the monitoring server for forwarding the data message to be transmitted;
[0255] a matching unit configured to match the message identifier with a load balancing token carried in the load balancing instruction;
[0256] The second determining unit is configured to determine the data packet to be transmitted as the target data packet when the packet identifier successfully matches the load balancing token.
[0257] In an exemplary embodiment, the first determining unit is configured to: determine a message identifier based on message information and a target number carried in a load balancing instruction, including: calculating a remainder of dividing the message information by the target number as the message identifier, wherein the message information is obtained by performing a hash operation on original message data in a data message to be transmitted;
[0258] In an exemplary embodiment, the matching unit is configured to: match the message identifier with the load balancing token carried in the load balancing instruction, including: comparing the remainder with the load balancing token, wherein the load balancing token is a natural number from 0 to M-1 generated by the monitoring server, and M is the target number; when the remainder is consistent with the load balancing token, it is determined that the message identifier and the load balancing token are matched successfully.
[0259] In an exemplary embodiment, the apparatus further comprises:
[0260] The discard module is configured to discard the data message to be transmitted when the message identifier fails to match the load balancing token.
[0261] In an exemplary embodiment, the apparatus further comprises:
[0262] A first reporting module is configured to report network parameters to the monitoring server via a mirror message, wherein the network parameters include at least one of the following: bandwidth utilization, latency, jitter, and packet loss rate;
[0263] The second receiving module is configured to receive a load balancing instruction sent by the monitoring server in response to the network parameters via a signaling message.
[0264] In an exemplary embodiment, the first reporting module includes one of the following:
[0265] A reporting unit is configured to report network parameters according to a target period through a mirror message;
[0266] A receiving unit, configured to receive a reporting instruction sent by a monitoring server;
[0267] The response unit is configured to respond to the reporting instruction and report the network parameters through a mirror message.
[0268] In an exemplary embodiment, the apparatus further comprises:
[0269] An establishing module is configured to establish a communication connection with a monitoring server;
[0270] The second reporting module is configured to report the Ethernet segment number to the monitoring server via a startup message.
[0271] In an exemplary embodiment, the extraction module includes:
[0272] an extraction unit configured to extract original message data after the VXLAN header field from the data message to be transmitted;
[0273] The operation unit is configured to perform a hash operation on the original message data to obtain message information.
[0274] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0275] An embodiment of the present application further provides a computer non-volatile readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0276] In an exemplary embodiment, the above-mentioned computer non-volatile readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0277] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0278] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0279] The examples in this embodiment can refer to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.
[0280] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0281] The above are merely optional embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may be subject to various modifications and variations. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A data message transmission control method, characterized in that: Applied to an Ethernet virtual private network, the method comprises: Acquire multiple target backbone network edge devices connected to the same user edge device; Generate a load balancing instruction for each of the multiple target backbone network edge devices, wherein the load balancing instruction is used to instruct each of the target backbone network edge devices to forward the target data message that matches each of the target backbone network edge devices in the data message to be transmitted according to the message information carried by the received data message to be transmitted and the load balancing instruction, and the data message to be transmitted belongs to the same virtual local area network; The load balancing instruction is sent to the corresponding target backbone network edge device, wherein the target backbone network edge device is configured to forward the target data message to the user edge device using the received load balancing instruction.
2. The method according to claim 1, characterized in that The step of acquiring multiple target backbone network edge devices connected to the same user edge device includes: Acquire all backbone network edge devices connected to the user edge device as candidate backbone network edge devices; A plurality of target backbone network edge devices are screened out from the candidate backbone network edge devices according to a link status of each candidate backbone network edge device, wherein the link status is a network status of a connection link between each candidate backbone network edge device and the user edge device.
3. The method according to claim 2, characterized in that The step of selecting a plurality of target backbone network edge devices from the candidate backbone network edge devices according to the link status of each of the candidate backbone network edge devices comprises: Determine the link parameters corresponding to each of the candidate backbone network edge devices as the link state according to the network parameters reported by each of the candidate backbone network edge devices, wherein the network parameters include at least one of the following: bandwidth utilization, delay, jitter, and packet loss rate, and the smaller the link parameter, the better the link state; The backbone network edge devices whose corresponding link parameters are less than or equal to the parameter threshold are selected from the candidate backbone network edge devices as the plurality of target backbone network edge devices.
4. The method according to claim 3, characterized in that The determining, according to the network parameters reported by each of the candidate backbone network edge devices, the link parameters corresponding to each of the candidate backbone network edge devices as the link state includes: Receiving the network parameters reported by each candidate backbone network edge device through a mirror message, wherein the network parameters include: bandwidth utilization, delay, jitter and packet loss rate; A weighted sum of the network parameters is calculated as the link parameter, wherein the weight of each of the network parameters is proportional to the degree of influence of each of the network parameters on the network state.
5. The method according to claim 4, characterized in that The receiving the network parameter reported by each candidate backbone network edge device through a mirror message includes one of the following: Receiving the network parameters reported by each candidate backbone network edge device through the mirror message according to the target period; Sending a reporting instruction to each of the candidate backbone network edge devices; receiving the network parameters reported by each of the candidate backbone network edge devices through the mirror message in response to the reporting instruction.
6. The method according to claim 2, characterized in that The obtaining all backbone network edge devices connected to the user edge device as candidate backbone network edge devices includes: Receiving the Ethernet segment number reported by each backbone network edge device that has established a communication connection through a startup message; The backbone network edge devices with the same Ethernet segment number are determined as all the backbone network edge devices connected to the same user edge device to obtain the candidate backbone network edge devices.
7. The method according to claim 1, characterized in that Generating a load balancing instruction for each of the target backbone network edge devices among the multiple target backbone network edge devices includes: Generate a target number of load balancing tokens, wherein the target number is the number of multiple target backbone network edge devices; Generate the load balancing instruction carrying the target number and the load balancing token, wherein the load balancing instruction is used to instruct each of the target backbone network edge devices to forward the target data message that matches the load balancing token in the data message to be transmitted based on the message information carried by the received data message to be transmitted, the target number and the load balancing token.
8. The method according to claim 7, characterized in that The generating of a target number of load balancing tokens includes: Determine the number of the plurality of target backbone network edge devices to obtain the target number M; A natural number from 0 to M-1 is generated as the target number of the load balancing tokens.
9. The method according to claim 1, characterized in that: The step of sending the load balancing instruction to the corresponding target backbone network edge device includes: Encapsulating the load balancing instruction as a signaling message; The signaling message is sent to the corresponding target backbone network edge device.
10. The method according to claim 1, characterized in that The target backbone network edge device is configured to determine a message identifier based on the message information and the target quantity carried in the load balancing instruction; match the message identifier with the load balancing token carried in the load balancing instruction; and when the message identifier successfully matches the load balancing token, determine the data message to be transmitted as the target data message.
11. The method according to claim 10, characterized in that The target backbone network edge device is configured to calculate the remainder of dividing the message information by the target quantity as the message identifier; and compare the remainder with the load balancing token; When the remainder is consistent with the load balancing token, it is determined that the message identifier and the load balancing token are matched successfully.
12. A data message transmission control method, characterized in that: Applied to a target backbone network edge device in an Ethernet virtual private network, the method comprises: Receiving data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network; Extracting message information from the data message to be transmitted; Acquire a target data message that matches the target backbone network edge device in the data message to be transmitted according to the message information and the load balancing instruction, wherein the load balancing instruction is generated and issued by a monitoring server of an Ethernet virtual private network; The target data message is forwarded to a user edge device connected to the target backbone network edge device.
13. The method according to claim 12, characterized in that The step of acquiring a target data message that matches the target backbone network edge device in the data message to be transmitted according to the message information and the load balancing instruction includes: Determine the message identifier according to the message information and the target number carried in the load balancing instruction, wherein the target number is the number of multiple target backbone network edge devices screened by the monitoring server for forwarding the data message to be transmitted; Matching the message identifier with the load balancing token carried in the load balancing instruction; When the message identifier successfully matches the load balancing token, the data message to be transmitted is determined as the target data message.
14. The method according to claim 13, characterized in that The determining the message identifier according to the message information and the target number carried in the load balancing instruction includes: calculating the remainder of dividing the message information by the target number as the message identifier, wherein the message information is obtained by performing a hash operation on the original message data in the data message to be transmitted; The matching of the message identifier with the load balancing token carried in the load balancing instruction includes: comparing the remainder with the load balancing token, wherein the load balancing token is a natural number from 0 to M-1 generated by the monitoring server, and M is the target number; and when the remainder is consistent with the load balancing token, determining that the message identifier and the load balancing token are matched successfully.
15. The method according to claim 13, characterized in that After matching the message identifier with the load balancing token carried in the load balancing instruction, the method further includes: In the case where the message identifier fails to match the load balancing token, the data message to be transmitted is discarded.
16. The method according to claim 12, characterized in that Before acquiring the target data message that matches the target backbone network edge device in the data message to be transmitted according to the message information and the load balancing instruction, the method further includes: Reporting network parameters to the monitoring server through a mirror message, wherein the network parameters include at least one of the following: bandwidth utilization, delay, jitter, and packet loss rate; Receive the load balancing instruction sent by the monitoring server in response to the network parameters through a signaling message.
17. The method according to claim 16, characterized in that The reporting of the network parameters to the monitoring server through a mirror message includes one of the following: Reporting the network parameters according to a target period through the mirror message; Receive a reporting instruction sent by the monitoring server; and report the network parameters through the mirror message in response to the reporting instruction.
18. The method according to claim 12, characterized in that Before acquiring the target data message that matches the target backbone network edge device in the data message to be transmitted according to the message information and the load balancing instruction, the method further includes: Establishing a communication connection with the monitoring server; The Ethernet segment number is reported to the monitoring server via a startup message.
19. The method according to claim 12, characterized in that The extracting message information from the data message to be transmitted includes: Extracting original message data after the VXLAN header field from the data message to be transmitted; A hash operation is performed on the original message data to obtain the message information.
20. The method according to claim 12, characterized in that The load balancing instruction is generated and issued by the monitoring server of the Ethernet virtual private network through the following steps: Acquire all backbone network edge devices connected to the user edge device as candidate backbone network edge devices; select multiple target backbone network edge devices from the candidate backbone network edge devices according to the link status of each candidate backbone network edge device, wherein the link status is the network status of the link connecting each candidate backbone network edge device and the user edge device; generate a target number of load balancing tokens, wherein the target number is the number of multiple target backbone network edge devices; generate the load balancing instruction carrying the target number and the load balancing token, wherein the load balancing instruction is used to instruct each target backbone network edge device to forward the target data message matching the load balancing token in the data message to be transmitted according to the message information carried by the received data message to be transmitted, the target number and the load balancing token.
21. The method according to claim 20, characterized in that The generating of the target number of load balancing tokens includes: determining the number of the plurality of target backbone network edge devices to obtain a target number M; and generating a natural number from 0 to M-1 as the target number of load balancing tokens.
22. A data message transmission control system, characterized in that: Applied to Ethernet virtual private network, the system includes: a monitoring server of Ethernet virtual private network, multiple backbone network edge devices, The monitoring server is connected to the multiple backbone network edge devices respectively, and the multiple backbone network edge devices are connected to the same user edge device; The monitoring server is configured to obtain multiple target backbone network edge devices from the multiple backbone network edge devices; generate a load balancing instruction for each of the multiple target backbone network edge devices, wherein the load balancing instruction is used to instruct each of the target backbone network edge devices to forward the target data message that matches each of the target backbone network edge devices in the data message to be transmitted according to the message information carried by the received data message to be transmitted and the load balancing instruction, and the data message to be transmitted belongs to the same virtual local area network; and send the load balancing instruction to the corresponding target backbone network edge device; The target backbone network edge device is configured to receive data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network; extract message information from the data packets to be transmitted; obtain a target data packet in the data packets to be transmitted that matches the target backbone network edge device according to the message information and the load balancing instruction; and forward the target data packet to the user edge device.
23. A data message transmission control device, characterized in that: Applied to an Ethernet virtual private network, the device comprises: A first acquisition module is configured to acquire multiple target backbone network edge devices connected to the same user edge device; A generation module is configured to generate a load balancing instruction for each of the target backbone network edge devices in the plurality of target backbone network edge devices, wherein the load balancing instruction is used to instruct each of the target backbone network edge devices to forward a target data message that matches each of the target backbone network edge devices in the data message to be transmitted according to the message information carried by the received data message to be transmitted and the load balancing instruction, and the data message to be transmitted belongs to the same virtual local area network; The sending module is configured to send the load balancing instruction to the corresponding target backbone network edge device, wherein the target backbone network edge device is configured to use the received load balancing instruction to forward the target data message to the user edge device.
24. A data message transmission control device, characterized in that: The device is applied to a target backbone network edge device in an Ethernet virtual private network, and comprises: A first receiving module is configured to receive data packets to be transmitted, wherein the data packets to be transmitted belong to the same virtual local area network; An extraction module, configured to extract message information from the data message to be transmitted; A second acquisition module is configured to acquire a target data message that matches the target backbone network edge device in the data message to be transmitted according to the message information and the load balancing instruction, wherein the load balancing instruction is generated and issued by a monitoring server of the Ethernet virtual private network; The forwarding module is configured to forward the target data message to a user edge device connected to the target backbone network edge device.
25. A computer non-volatile readable storage medium, characterized in that: The computer non-volatile readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 21 when executed by a processor.
26. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 21 are implemented.
Citation Information
Patent Citations
Session creation method and device
CN108769196A
Message sending method, device and system
CN114531319A
Data message transmission control method, system and device and storage medium
CN115955439A
Load sharing method for ethernet link aggregation group, and network device
WO2021213159A1
