Data transmission method and device, computer equipment and storage medium

By detecting a network failure on one side of the user's stationed device in SDWAN, obtaining the backup device address and forwarding data, the problem that the SDWAN device cannot transmit data due to the faulty network side is solved, and data transmission performance is improved.

CN119484253APending Publication Date: 2025-02-18CHINA TELECOM CLOUD TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411777779.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In software-defined wide area network (SDWAN), the functions of the virtual router redundancy protocol and the boundary gateway protocol affect each other, resulting in the SDWAN device being unable to complete data transmission when a failure occurs on one side of the user's stationed device, affecting the data transmission performance.

Method used

Provide a data transmission method, when a network failure occurs on one side of the main user station device, it obtains the address information of the backup station device, and transfers the data through the communication link between the main user station device and the backup station device. Transmit to the standby user resident device, and transmit data to the designated device sideways based on the target network in the standby user resident device.

Benefits of technology

When a network failure occurs on one side of the main user's stationed device, data transmission can be accurately completed, which improves data transmission performance and avoids the impact of the faulty network side during data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484253A_ABST
    Figure CN119484253A_ABST
Patent Text Reader

Abstract

The invention relates to a data transmission method and device, computer equipment and a storage medium. The method comprises the following steps: under the condition that a target device in a software defined wide area network detects that a network at one side of a primary customer premises device has a fault, obtaining address information of a standby customer premises device; transmitting data to the standby customer premises equipment according to the address information and a communication link between the main customer premises equipment and the standby customer premises equipment; and transmitting the data to the specified equipment based on a target network side in the standby customer premises equipment, wherein the target network side represents a network side of which the type is the same as that of the fault network side of the main customer premises equipment. By adopting the method, data transmission can be accurately completed when one side of the customer premises equipment fails, and the data transmission performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer network technology, and in particular to a data transmission method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of Software-Defined Wide Area Network (SDWAN), more and more enterprises choose to use SDWAN to build their own intranet. In most scenarios, the stability requirements of SDWAN devices are extremely high, and multiple means are needed to improve the reliability of the network.

[0003] In the related art, the most commonly used solution to improve the stability of SDWAN equipment is to deploy a virtual router redundancy protocol on the LAN side of the customer premises equipment in the SDWAN equipment, and to deploy a border gateway protocol on the WAN side of the customer premises equipment. When data is transmitted, data is first transmitted from the switch in the SDWAN device to the customer premises equipment connected to the LAN side, and then from the customer premises equipment to the device connected to the WAN side.

[0004] However, in the related art, the functions of the virtual router redundancy protocol and the border gateway protocol affect each other, resulting in the SDWAN device being unable to complete data transmission when a failure occurs on the user premises equipment side, affecting data transmission performance. Summary of the invention

[0005] Based on this, it is necessary to provide a data transmission method, apparatus, computer equipment and storage medium to address the above technical problems, which can accurately complete data transmission when a failure occurs on one side of the user's premises equipment, thereby improving data transmission performance.

[0006] In a first aspect, the present application provides a data transmission method, which is applied to a target device in a software-defined wide area network, wherein the software-defined wide area network includes a primary user premises device and a backup user premises device in communication connection; the method comprises:

[0007] When a network failure on one side of the primary user premises equipment is detected, obtaining address information of the backup user premises equipment;

[0008] transmitting data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment;

[0009] The data is transmitted to the designated device based on the target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the failed network side of the primary customer premises equipment.

[0010] In one embodiment, the faulty network side includes a local area network side; the target device includes a switch; and obtaining address information of the backup user premises device includes:

[0011] Sending a physical address acquisition request to a backup customer premises equipment; the backup customer premises equipment includes an Internet Protocol address of the target device;

[0012] A physical address sent by the standby customer premises equipment is received, and the physical address is determined as address information of the standby customer premises equipment.

[0013] In one embodiment, transmitting data to the backup customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the backup customer premises equipment includes:

[0014] In the case where the target device is a primary customer premises equipment, transmitting data to the address information through a communication link between the primary customer premises equipment and the backup customer premises equipment so that the data is in the backup customer premises equipment;

[0015] In the case where the target device is a device connected to the local area network side of the primary customer premises equipment, data is transmitted to the address information so that the data is in the backup customer premises equipment.

[0016] In one embodiment, the faulty network side includes a wide area network side; obtaining address information of a backup user premises equipment includes:

[0017] Sending an address acquisition request to the backup user premises equipment;

[0018] An Internet Protocol address sent by the standby customer premises equipment is received, and the Internet Protocol address is determined as address information of the standby customer premises equipment.

[0019] In one embodiment, transmitting data to the backup customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the backup customer premises equipment includes:

[0020] In the case where the target device is a primary customer premises equipment, transmitting data to the address information through a communication link between the primary customer premises equipment and the backup customer premises equipment so that the data is in the backup customer premises equipment;

[0021] In the case where the target device is a device connected to the wide area network side of the primary customer premises equipment, data is transmitted to the address information so that the data is in the backup customer premises equipment.

[0022] In one embodiment, the method further comprises:

[0023] When the target device receives the data, the session record corresponding to the message information is queried according to the message information of the data;

[0024] Determine the network flow information of the data according to the attribute information of the data;

[0025] Data is transmitted based on session records and network flow information.

[0026] In one embodiment, data is transmitted according to the session record and network flow information, including:

[0027] In the case where the network flow direction information is from the local area network side to the wide area network side, the inbound interface of the data is recorded in the session record, and the best route for the data is obtained, and the data is transmitted through the best route;

[0028] When the network flow direction information is from the WAN side to the LAN side, the interface information is queried in the session record, and the data is transmitted through the interface information.

[0029] In a second aspect, the present application further provides a data transmission device, which is applied to a target device in a software-defined wide area network, wherein the software-defined wide area network includes a primary user premises device and a backup user premises device in communication connection; the device includes:

[0030] An address acquisition module is used to acquire address information of a backup user premises equipment when a network failure on one side of the primary user premises equipment is detected;

[0031] A first transmission module, configured to transmit data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment;

[0032] The second transmission module is used to transmit the data to the designated device based on the target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the faulty network side of the primary customer premises equipment.

[0033] In a third aspect, an embodiment of the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the embodiments of the first aspect above are implemented.

[0034] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in any one of the embodiments of the first aspect above.

[0035] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method in any one of the embodiments of the first aspect above.

[0036] The data transmission method, apparatus, computer equipment and storage medium provided in the embodiments of the present application include a primary user premises equipment and a backup user premises equipment that are communicatively connected in a software-defined wide area network. When a target device in the software-defined wide area network detects that a network failure occurs on one side of the primary user premises equipment, the target device obtains the address information of the backup user premises equipment, and then transmits data to the backup user premises equipment based on the address information and the communication link between the primary user premises equipment and the backup user premises equipment. Thereafter, the data is transmitted to a designated device based on a target network side in the backup user premises equipment, wherein the target network side represents a network side of the same type as the failed network side of the primary user premises equipment. In the method, the main user premises equipment and the backup user premises equipment are connected, so that when a network failure occurs on one side of the main user premises equipment, data can be transmitted to the backup user premises equipment through the communication link between the main user premises equipment and the backup user premises equipment and the address information of the backup user premises equipment. In this way, data can be transmitted to the designated device through the normal network side of the backup user premises equipment, which is equivalent to adding a link between the main user premises equipment and the backup user premises equipment. During the data transmission process, the faulty network side of the main user equipment is avoided, and the data is transmitted through the normal network side of the backup user premises equipment based on the added intermediate link, thereby improving the data transmission performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] FIG1 is a schematic diagram of SDWAN networking in one embodiment;

[0039] FIG2 is an application environment diagram of a data transmission method according to an embodiment;

[0040] FIG3 is a schematic diagram of a flow chart of a data transmission method in one embodiment;

[0041] FIG4 is a schematic diagram of a VRRP group in one embodiment;

[0042] FIG5 is a schematic diagram of a process for obtaining backup address information in one embodiment;

[0043] FIG6 is a schematic diagram of a process of transmitting data in one embodiment;

[0044] FIG7 is a schematic diagram of a process for obtaining address information in another embodiment;

[0045] FIG8 is a schematic diagram of a process of transmitting data in another embodiment;

[0046] FIG9 is a schematic diagram of a process of transmitting data in another embodiment;

[0047] FIG10 is a schematic diagram of a process of transmitting data in another embodiment;

[0048] FIG11 is a schematic diagram of a primary customer premises equipment LAN side failure in one embodiment;

[0049] FIG12 is a schematic diagram of a WAN side failure of a primary customer premises equipment in one embodiment;

[0050] FIG13 is a schematic diagram of a process of data forwarding in one embodiment;

[0051] FIG14 is a schematic diagram of the structure of a data transmission device in one embodiment;

[0052] FIG. 15 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] The technical background of the embodiments of the present application is first described below.

[0055] With the development of SDWAN, more and more enterprises choose to use SDWAN to build their own enterprise intranet. SDWAN has a wide range of usage scenarios, mainly including cross-regional branch office interconnection, smart networking, home office networking, cloud native applications, data center interconnection and telemedicine. Its usage scenarios cover many aspects such as enterprise networks, cloud computing, remote work, and data center interconnection. By providing flexible, intelligent and reliable network connections, SDWAN has become an important tool to promote enterprise digital transformation and improve business efficiency. In most scenarios, the stability requirements of SDWAN devices are extremely high, and multiple means are needed to improve network reliability. The most commonly used solutions are VRRP (Virtual Router Redundancy Protocol) and BGP (Border Gateway Protocol). VRRP is a fault-tolerant protocol designed to solve the single point failure problem of configuring static gateways in LANs. It ensures high network availability by distributing the responsibilities of a virtual router among multiple routers in a LAN. When the router that actually undertakes the data transmission task fails, VRRP can ensure that another router quickly takes over its work, thereby avoiding network interruption. In SDWAN, in order to avoid the interruption of message forwarding caused by single point failure of CPE (Customer premises equipment), the headquarters usually deploys dual CPE using technologies such as VRRP. In this way, even if one CPE device fails, the other device can quickly take over its work, ensuring the high availability of the network. BGP is an inter-autonomous system routing protocol used to exchange routing information between different networks. In SDWAN, BGP is used to determine the best path between SDWAN devices and other networks to optimize network performance and load balancing. Through BGP, SDWAN devices can understand the structure and topology of the entire network and perform intelligent traffic routing. When network conditions change, BGP can dynamically adjust routing to ensure that the network always maintains optimal performance. VRRP and BGP work together in SDWAN to ensure high availability and performance optimization of the network. VRRP ensures that the network can recover quickly in the event of a failure by providing redundant backup between routers; while BGP ensures that the network always maintains optimal performance through intelligent routing selection and dynamic adjustment.

[0056] As shown in FIG1 , it is an example of SDWAN networking diagram in the prior art. It only shows some network elements and interconnection functions. SDWAN user networking may be more complicated than this. The two main data planes include interconnection through the POP (Point of Presence) device backbone network and interconnection through SDWAN device direct connection. The network elements involved include switches, CPE devices and POP devices. Switches represent customer devices. At smaller sites, users may directly access CPE devices; users at larger sites will access devices through Layer 2 switches; user headquarters networking will be interconnected with CPE devices through Layer 3 switches, and the LAN side may be connected to more than one switch. CPE devices are general access devices for SDWAN, usually located at the user end, and can provide multiple access methods, including wired and wireless access, support multiple network protocols and transmission technologies, and ensure stable and reliable network connections for enterprise branches. In the SDWAN network, POP points refer to devices arranged at various physical locations in the network. These devices are mainly responsible for connecting different geographical locations and providing network connection and transmission functions. The main function of POP points is to achieve connections between branches. By deploying POP points, branches can connect via the Internet, greatly reducing costs and providing better flexibility and performance. SDWAN direct-connect devices use devices with public networks as responders, which is more flexible and less expensive than POP networking. Users can customize the connection method, which makes SDWAN networking more complex.

[0057] VRRP is generally deployed on the LAN (local area network) side of the SDWAN device, and BGP is generally deployed on the WAN (wide area network) side of the SDWAN device. There are compatibility issues when the two are used together. BGP is a dynamic routing calculation, and VRRP cannot participate in dynamic routing calculation. When a fault occurs on the LAN side, it cannot be synchronized to BGP; the fault on the WAN side cannot be synchronized to VRRP. If the two are synchronized, it is relatively simple to synchronize from the LAN side to BGP, while it is more complicated to synchronize from the WAN side to the LAN side. The simplified model is that the LAN side only needs to detect whether the local subnet is reachable, and the WAN side needs to detect whether all peers are reachable. If any subnet is unreachable, BGP can respond in real time, but VRRP cannot handle it simply. There are now two processing solutions for this dynamic routing and VRRP fusion. The first solution is to refer to the linkage switching solution of VRRP in the traditional field, and detect LAN side faults and WAN side faults at the same time. When either the LAN side or the WAN side fails, the virtual address of VRRP is switched to the standby device, and all BGP neighbors on the WAN side are disconnected to realize the overall switching logic of the master and standby boxes. Specific detection services include the on / off of the interface on the LAN side, the on / off of the interface on the WAN side, and the on / off of the service on the WAN side. The on / off of the service on the WAN side is the most troublesome. The more complex the SDWAN networking logic is, the more complex the detection logic is. The user needs to set this switching condition by himself. The second solution is to abandon the VRRP solution on the LAN side to achieve high availability and use OSPF to achieve high availability. When the first OSPF and the first BGP perform bidirectional redistribution of routes, the first metric value of the SDWAN main link is obtained; when the second OSPF and the second BGP perform bidirectional redistribution of routes, the second metric value of the SDWAN backup link is obtained. By comparing the first metric value and the second metric value, the target SDWAN link is determined from the SDWAN main link and the SDWAN backup link, and the target SDWAN link is used for data transmission. After abandoning VRRP, the routing calculation function is fully used, and the dynamic routing protocol can automatically realize neighbor on / off detection, and the connectivity of the service can always be guaranteed. The defect of this method is that the VRRP solution is abandoned, which is limited in customer deployment and cannot be adapted to the existing deployment scenarios.

[0058] Based on this, the present application provides a data transmission method, which connects the main user premises equipment and the backup user premises equipment, so that when a network failure occurs on one side of the main user premises equipment, data can be transmitted to the backup user premises equipment through the communication link between the main user premises equipment and the backup user premises equipment and the address information of the backup user premises equipment. In this way, data can be transmitted to the designated device through the normal network side of the backup user premises equipment, which is equivalent to adding a link between the main user premises equipment and the backup user premises equipment. During the data transmission process, the faulty network side of the main user equipment is avoided, and the data is transmitted through the normal network side of the backup user premises equipment based on the added intermediate link, thereby improving the data transmission performance.

[0059] It should be noted that the beneficial effects brought about by the embodiments of the present application or the technical problems solved are not limited to this one, but may also include other implicit or related problems. For details, please refer to the description of the following embodiments.

[0060] The application environment of the data transmission method provided in the embodiment of the present application is described below. The data transmission method provided in the embodiment of the present application can be applied in the application environment shown in Figure 2. Among them, the target device can be CPE1, or it can be a device connected to CPE1, such as switch 1, CPE2, POP1, POP 2 and CPE3. The main user premises equipment is CPE1, and the backup user premises equipment is CPE2. Optionally, taking CPE1 as the target device as an example, the data is in CPE1. When a network failure on one side of CPE1 is detected, the address information of CPE2 is obtained, and the data is transmitted to CPE2 according to the address information and the communication link between CPE1 and CPE2. The data is transmitted to the designated device based on the target network side in CPE2, wherein the target network side represents the network side of the same type as the fault network side of the main user premises equipment. For example, if the fault network side is the LAN side, the data is transmitted to the designated device based on the LAN side in CPE2; if the fault network side is the WAN side, the data is transmitted to the designated device based on the WAN side in CPE2.

[0061] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0062] In an exemplary embodiment, as shown in FIG3 , a data transmission method is provided, which is described by taking the method applied to a target device in a software-defined wide area network as an example, and includes the following steps 201 to 203. Among them:

[0063] S201, when it is detected that a network failure occurs on one side of the primary customer premises equipment, acquiring address information of the backup customer premises equipment.

[0064] In the embodiment of the present application, all devices except the switch are interconnected through BGP. Taking Figure 2 as an example, CPE1 and CPE2 represent the master and backup devices, that is, CPE1 is the master user premises equipment, and CPE2 is the backup user premises equipment. POP1 and POP2 are a group of master and backup POPs, and POP3 and POP4 are another group of master and backup POPs. CPE2, CPE3 and CPE4 are connected through a direct tunnel. CPE1 and POP1 are connected through IBGP (Internal Border Gateway Protocol), and POP2 and POP3 are connected through EBGP (External Border Gateway Protocol). The entire BGP network follows the principle of optimal transmission and only transmits the only effective route. BGP can control the priority of the route in a variety of ways. WEIGHT (weight) and MED (Multi-Exit Discriminator) are usually used for control; the larger the WEIGHT value, the higher the route priority; the smaller the MED, the higher the priority. The WEIGHT value is used between CPE and POP and between CPE and CPE, and the MED value is used in the backbone network. EBGP is used between POP devices, and all routes are synchronized by default. IBGP does not synchronize received routes with each other. If you need to transmit routes within IBGP, you need to configure route reflection. CPE1 and POP1 need to reflect routes through POP1, so configure route reflection on POP1. Similarly, other CPE devices and POP devices have similar relationships. Add neighbors between CPE1 and CPE2. CPE1 and CPE2 learn routes from each other. CPE1 and CPE2 are in an IBGP relationship, so route reflection also needs to be configured.

[0065] After all neighbors are established, configure the routing policy. BGP's routing policy determines how BGP selects and propagates routing information. BGP's routing policy can be implemented by configuring BGP attributes, filters, and routing policies. Among them, BGP attributes include next hop, weight, local preference, multipath, etc. These attributes can be used to influence BGP's route selection. BGP filters can be used to filter out routing information that does not meet specific conditions to prevent incorrect routing information from propagating in the network. BGP routing policies can be customized according to actual needs to achieve specific network goals. In the current environment, multiple redundant paths plus route reflection function form multiple routing loops. Although BGP has its own mechanism to break loops, the iteration effect of routing is not consistent with expectations. Multiple factors will affect the broken link point, and link oscillation will also produce unexpected effects. Horizontal splitting of routes through routing policies can achieve better results.

[0066] As shown in Figure 2, the BGP plane mainly includes two planes. The first plane is from CPE2, CPE1, POP1, POP4 and CPE4, and the second plane is CPE1, CPE2, CPE3 and CPE4. The two planes are generated by interconnecting through the POP backbone network and directly connected devices. Since CPE1 and CPE2 are both configured with route reflection in IBGP, a loop will be formed with the peer device. The neighbors (NEIGHBOR) involved are from NEIGHBOR1 to NEIGHBOR7. For NEIGHBOR2 to NEIGHBOR7, routes are learned from the outside and cannot be passed back, thus achieving routing loop destruction locally. The specific routing strategy is implemented by adding and matching route tags. From NEIGHBOR2 to NEIGHBOR7, the learned routes are all marked with tag 65111. In the outbound direction, the routes carrying tag 65111 are blocked. In this way, the learned routes will not be passed back, achieving loop destruction locally. CPE1 and CPE2 can learn routes from each other and back up each other. Local routes are published on both devices at the same time.

[0067] NEIGHBOR1 can learn routes from each other to ensure redundancy when the WAN side is disconnected. In terms of routing priority, the priority of the primary device must be higher than that of the backup device. The priority design is the same for NEIGHBOR1 to NEIGHBOR7. For example, for CPE2, the priority of NEIGHBOR1 is higher than that of POP1, POP2, and CPE3, and the traffic is preferentially forwarded to CPE1 and then forwarded. The same is true for the return traffic. For CPE3, the priority of NEIGHBOR7 is higher than that of NEIGHBOR6, and the return traffic will preferentially return to CPE1. Such a priority can ensure that the traffic is preferentially forwarded through CPE1. The WAN side builds interconnection links through BGP. BGP can perform multiple levels of redundancy, including multi-link redundancy and multi-device redundancy. Through routing policies, multiple redundant paths can be divided into multiple routing planes to prevent routing loops.

[0068] The LAN side uses static routing to select the route. The static route contains the next hop and the outgoing interface. When the outgoing interface is down, the next hop will be set to an invalid state and cannot be selected. If the VRRP group runs in broadcast mode, the interface does not have an address in the same network segment. When the interface does not have an address, the static route will also be invalid. This function is completed in the response event of the interface UP / DOWN. A same network segment can contain multiple next hops, and multiple next hops have a priority relationship. Backup routes for the LAN side network segment will be generated on CPE1 and CPE2, pointing to each other. When the connection between CPE and the switch is disconnected, the traffic will be directed to the opposite end. In order to prevent traffic from being transmitted back and forth, an interface check will be performed after routing. If it is found that the inbound interface and the outbound interface are the same, the traffic needs to be discarded. In the embodiment of the present application, the automatic switching of local routes is realized through the static route detection linkage function, which facilitates other sites to access the local site. Static routing can be linked with the physical interface status and the interface IP address, which ensures that VRRP can adapt normally in both unicast mode and broadcast mode. The priority and invalidation functions of static routing ensure the correctness of traffic forwarding.

[0069] Among them, the VRRP group is shown in Figure 4. In a VRRP group, there is a device in the master device role, which is responsible for processing data traffic from the virtual IP address and responding to ARP requests. The selection of the master device is usually based on priority and IP address. The device with a higher priority will become the master device; if the priorities are the same, the device with the largest IP address will be selected as the master device. The other devices in the group are in the backup device role, which is used to listen to the status of the master device. When the master device fails, the backup device will take over its work. This behavior is called smooth switching or active-standby switching. In a single VRRP group, switch 1 is a client device, and the next hop points to the virtual IP address 192.168.1.4 / 24. CPE1 and CPE2 form a pair of active-standby devices. CPE1 has the same network segment address 192.168.1.2 / 24, and CPE2 has the same network segment address 192.168.1.3 / 24. CPE1 and CPE2 exchange heartbeat information. CPE1 has a higher priority as the master device and usually handles services as the master device. When the CPE1 device dies or the connection between CPE1 and switch 1 is disconnected, CPE2 becomes the master device. Heartbeat messages can use unicast mode or multicast mode, and the same network segment address on the device is not necessary. This difference will be used in subsequent routing processing. The LAN side can support multiple VRRP groups, which follow independent heartbeat negotiation processes. Multiple VRRP groups are connected to different switches and different interfaces on the LAN side. Independent negotiation behavior indicates that their virtual addresses may run on different devices, which will affect subsequent traffic paths. In an embodiment of the present application, the LAN side link can adapt to multiple VRRP groups, and different VRRP groups are independent of each other, ensuring the ability of a single VRRP group to switch in a fault scenario. It can also be upgraded from the master-slave scenario to the load sharing mode. The LAN side VRRP function enables SDWAN to be integrated into more existing networks and enhances the adaptability of the scenario.

[0070] When data is transmitted among devices in a software-defined wide area network, if a network failure is detected on one side of the primary user premises equipment, the address information of the backup user premises equipment needs to be obtained. When the data is located in different devices, the way to detect network-side failures is also different. Still taking Figure 2 as an example, if the current data is in switch 1, switch 1 broadcasts an ARP request. If switch 1 does not receive a response from CPE1, but receives a response from CPE2, it is determined that a failure has occurred on the LAN side of CPE1, that is, the communication link between switch 1 and CPE1 is disconnected. If the current data is in CPE1, CPE1 sends a routing information acquisition request to POP1, POP2 or CPE3. If CPE1 does not receive the routing information sent by POP1, POP2 or CPE3, it is determined that a failure has occurred on the WAN side of the CPE1 device. It can be understood that when determining which side of the primary user premises equipment has a failure, it is necessary to interact with the device connected to the corresponding side and pay attention to whether a response message can be received.

[0071] When acquiring the address information of the standby customer premises equipment, an address acquisition request may be sent to the standby customer premises equipment, so that the standby customer premises equipment transmits the address information to the target device.

[0072] S202: Transmit data to the backup customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the backup customer premises equipment.

[0073] After the address information of the backup customer premises equipment is obtained, data can be transmitted to the address information to transmit the data to the backup customer premises equipment. During the transmission process, when the data is transmitted to the primary customer premises equipment, the data needs to be transmitted from the primary customer premises equipment to the backup customer premises equipment through the communication link between the primary customer premises equipment and the backup customer premises equipment.

[0074] S203: Transmit data to a designated device based on a target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the faulty network side of the primary customer premises equipment.

[0075] After the data is transmitted to the backup customer premises equipment, the data can be transmitted to the designated device through the normal network side of the backup customer premises equipment. For example, taking Figure 2 as an example, the data is transmitted from switch 2 to switch 1 in the reverse direction. After being transmitted to CPE1, a LAN side failure of CPE1 is detected (i.e., a communication link failure between CPE1 and switch 1), then the data is transmitted from CPE1 to CPE2, and then the data is transmitted to switch 1 through the LAN side of CPE2. For another example, the data is transmitted from switch 1 to switch 2 in the forward direction. After the data is transmitted from switch 1 to CPE1, a WAN side failure of CPE1 is detected (i.e., a communication link failure between CPE1 and POP1, POP2 and CPE3), then the data is transmitted from CPE1 to CPE2, and the data is transmitted to switch 2 through the WAN side of CPE2.

[0076] In this embodiment, by adding an intermediate link between the primary customer premises equipment and the backup customer premises equipment, traffic transmission between the primary and backup customer premises equipment is achieved, so that the functions of VRRP and BGP remain relatively independent, VRRP group switching on the LAN side does not affect BGP calculation, and BGP link switching does not affect VRRP group calculation.

[0077] In the data transmission method provided in the embodiment of the present application, the software-defined wide area network includes a primary user premises equipment and a backup user premises equipment that are communicatively connected. When the target device in the software-defined wide area network detects that a network failure occurs on one side of the primary user premises equipment, the target device in the software-defined wide area network obtains the address information of the backup user premises equipment, and then transmits the data to the backup user premises equipment based on the address information and the communication link between the primary user premises equipment and the backup user premises equipment. Thereafter, the data is transmitted to the designated device based on the target network side in the backup user premises equipment, wherein the target network side represents a network side of the same type as the failed network side of the primary user premises equipment. In the method, the main user premises equipment and the backup user premises equipment are connected, so that when a network failure occurs on one side of the main user premises equipment, data can be transmitted to the backup user premises equipment through the communication link between the main user premises equipment and the backup user premises equipment and the address information of the backup user premises equipment. In this way, data can be transmitted to the designated device through the normal network side of the backup user premises equipment, which is equivalent to adding a link between the main user premises equipment and the backup user premises equipment. During the data transmission process, the faulty network side of the main user equipment is avoided, and the data is transmitted through the normal network side of the backup user premises equipment based on the added intermediate link, thereby improving the data transmission performance.

[0078] Based on the above embodiment, an embodiment is provided to illustrate the process of obtaining the address information of the standby customer premises equipment.

[0079] In an exemplary embodiment, as shown in FIG5 , the faulty network side includes a local area network side; the target device includes a switch; and obtaining address information of the backup user premises device includes:

[0080] S301, sending a physical address acquisition request to a standby customer premises equipment; the standby customer premises equipment includes an Internet Protocol address of a target device.

[0081] In an embodiment of the present application, the switch and the customer premises equipment are connected via the VRRP protocol. When acquiring the address information of the backup customer premises equipment, a physical address acquisition request can be sent to the backup customer premises equipment. The physical address acquisition request includes the physical address and IP (Internet Protocol) address of the switch, and the IP address of the backup customer premises equipment.

[0082] S302: Receive a physical address sent by the standby customer premises equipment, and determine the physical address as address information of the standby customer premises equipment.

[0083] When receiving the request, the standby customer premises equipment responds to the switch and returns the physical address of the standby customer premises equipment. The switch receives the physical address sent by the standby customer premises equipment and determines the physical address as the address information of the standby customer premises equipment.

[0084] In the data transmission method provided in the embodiment of the present application, a physical address acquisition request is sent to the standby user premises equipment; the standby user premises equipment includes the Internet protocol address of the target device; the physical address sent by the standby user premises equipment is received, and the physical address is determined as the address information of the standby user premises equipment. In this method, by sending the physical address acquisition request to the standby user premises equipment, the standby user premises equipment responds to the request in time when receiving the request, so that the standby user premises equipment quickly acquires the address information of the standby user premises equipment.

[0085] After acquiring the address information of the standby customer premises equipment, data is transmitted to the standby customer premises equipment based on the address information. Based on this, in an exemplary embodiment, as shown in FIG6 , data is transmitted to the standby customer premises equipment based on the address information and the communication link between the main customer premises equipment and the standby customer premises equipment, including:

[0086] S401, when the target device is a primary customer premises equipment, transmitting data to the address information through a communication link between the primary customer premises equipment and the backup customer premises equipment, so that the data is in the backup customer premises equipment.

[0087] When the target device is the primary customer premises equipment, data is transmitted to the backup customer premises equipment through the communication link between the primary customer premises equipment and the backup customer premises equipment. Taking Figure 2 as an example, when the communication link between switch 1 and CPE1 fails and the data is in the CPE1 device, the data is transmitted to the address information through the communication link between CPE1 and CPE2 devices and based on the address information of the CPE2 device, so as to transmit the data to the CPE2 device.

[0088] S402: When the target device is a device connected to the local area network side of the primary customer premises equipment, data is transmitted to the address information so that the data is in the backup customer premises equipment.

[0089] When the target device is a device connected to the LAN side of the primary customer premises equipment, data is transmitted to the backup customer premises equipment through the communication link and address information between the target device and the primary customer premises equipment. Taking Figure 2 as an example, when the communication link between switch 1 and CPE1 fails and the data is in switch 1, the data is transmitted to the address information of CPE2 through the communication link between switch 1 and CPE2 and based on the address information of CPE2, so as to transmit the data to the CPE2 device.

[0090] In the data transmission method provided in the embodiment of the present application, when the target device is the primary user premises equipment, data is transmitted to the address information through the communication link between the primary user premises equipment and the backup user premises equipment, so that the data is in the backup user premises equipment; when the target device is a device connected to the LAN side of the primary user premises equipment, data is transmitted to the address information, so that the data is in the backup user premises equipment. In this method, when the target device is different, the method of transmitting data to the backup user premises equipment is different. By adopting a data transmission method that matches the target device, the data is transmitted to the backup user premises equipment, so that the user premises equipment continues to transmit the data based on its own network side, completing the complete data transmission process, and improving the transmission stability and reliability.

[0091] Based on the above embodiment, another embodiment is provided to illustrate the process of obtaining the address information of the standby customer premises equipment.

[0092] In an exemplary embodiment, as shown in FIG7 , the faulty network side includes a wide area network side; acquiring address information of a backup user premises equipment includes:

[0093] S501: Send an address acquisition request to a standby customer premises equipment.

[0094] S502: Receive an Internet Protocol address sent by the standby customer premises equipment, and determine the Internet Protocol address as address information of the standby customer premises equipment.

[0095] When the faulty network side is the WAN side, when it is necessary to obtain the address information of the backup user premises equipment, an address acquisition request is sent to the backup user premises equipment. When the backup user premises equipment receives the address acquisition request, it responds to the request and returns the IP address of the backup user premises equipment to the target device. After receiving the IP address sent by the backup user premises equipment, the target device determines the IP address as the address information of the backup user premises equipment. Taking Figure 2 as an example, if a fault occurs on the WAN side of the CPE1 device, the target device is the POP1 device, that is, the data is in the POP1 device, the POP1 device sends an address acquisition request to the CPE2 device, and after receiving the request, the CPE2 device responds to the request to the POP1 device, and feeds back the IP address of the CPE2 device to the POP1 device. The POP1 device determines the IP address fed back by the CPE2 device as the address information of the CPE2 device.

[0096] After acquiring the address information of the standby customer premises equipment, data is transmitted to the standby customer premises equipment based on the address information. Based on this, in an exemplary embodiment, as shown in FIG8 , data is transmitted to the standby customer premises equipment based on the address information and the communication link between the main customer premises equipment and the standby customer premises equipment, including:

[0097] S601, when the target device is a primary customer premises equipment, transmitting data to address information through a communication link between the primary customer premises equipment and a backup customer premises equipment, so that the data is in the backup customer premises equipment.

[0098] When the target device is the primary customer premises equipment, data is transmitted to the backup customer premises equipment through the communication link between the primary customer premises equipment and the backup customer premises equipment. Taking Figure 2 as an example, the communication links between the CPE1 device and POP1, POP2 and CPE3 are all faulty, and the data is in the CPE1 device. At this time, through the communication link between CPE1 and CPE2, and based on the address information of the CPE2 device, data is transmitted to the address information to transmit the data to the CPE2 device.

[0099] S602: When the target device is a device connected to the wide area network side of the primary customer premises equipment, transmit data to the address information so that the data is in the backup customer premises equipment.

[0100] When the target device is a device connected to the WAN side of the primary customer premises equipment, data is transmitted to the backup customer premises equipment through the communication link and address information between the target device and the primary customer premises equipment. Taking Figure 2 as an example, the communication links between the CPE1 device and POP1, POP2 and CPE3 are all faulty. When the data is in the POP1 device, the data is transmitted to the address information of CPE2 through the communication link between POP1 and CPE2 and based on the address information of CPE2, so as to transmit the data to the CPE2 device.

[0101] In this embodiment, an address acquisition request is sent to the backup user premises equipment to quickly acquire the address information of the backup user premises equipment, thereby laying a foundation for data transmission. After acquiring the address information, based on the classification of the target device, a data transmission method matching the target device is used to transmit the data to the backup user premises equipment, so that the backup user premises equipment continues to transmit data using its own normal network side, thereby completing the complete data transmission and improving network performance.

[0102] Based on the above embodiment, an embodiment is provided to illustrate the processing process after the target device receives the data.

[0103] In an exemplary embodiment, as shown in FIG9 , the method further includes:

[0104] S701: When the target device receives data, it searches for a session record corresponding to the message information according to the message information of the data.

[0105] After other devices send data to the target device, the target device receives the packet. The packet can be received on the LAN side or the WAN side. The LAN side directly receives the packet through the physical port, while the WAN side may receive the packet through a dedicated line or encrypted messages. The encrypted message is received and processed through the virtual interface after decryption.

[0106] After receiving the data, the target device performs a session search, and queries the session record corresponding to the message information according to the message information of the data. The five-tuple information of the data message in the session record includes the source IP address, destination IP address, protocol number, source port, and destination port. The target device can search multiple historical session records to see if there is a historical session record that matches the five-tuple information in the message information. If not, it needs to create a session, and the message should be the first message of this session.

[0107] S702, determining network flow information of the data according to attribute information of the data.

[0108] After finding the session, you need to determine the network flow direction of the data, that is, whether the data flows from the LAN side to the WAN side, or from the WAN side to the LAN side. When the data is transmitted to the target device, it will carry the attribute information of the target device, and the network flow direction information of the data can be obtained from the attribute information.

[0109] S703: Transmit data according to the session record and network flow information.

[0110] In the embodiments of the present application, after the network flow information of the data is obtained, different methods are used to transmit the data.

[0111] In one embodiment, as shown in FIG. 10 , data is transmitted according to the session record and the network flow information, including:

[0112] S801, when the network flow direction information is from the LAN side to the WAN side, record the data input interface in the session record, obtain the best route for the data, and transmit the data through the best route.

[0113] If the data flows from the LAN side to the WAN side, the data's input interface is recorded in the session record, and then the best route is queried. The best route is determined by the routing policy pre-set in the BGP protocol. After the best route is queried, the data is transmitted to the device corresponding to the best route through the best route.

[0114] S802: When the network flow direction information is from the WAN side to the LAN side, query the interface information in the session record, and transmit the data through the interface information.

[0115] If the data flows from the WAN side to the LAN side, check whether there is an interface record in the session record. If so, determine whether the interface status is normal. If it is not normal, obtain the best route and transmit the data through the best route. If it is normal, data can be transmitted through the interface. If there is no interface record in the session record, obtain the best route to transmit the data.

[0116] In addition, it should be noted that when other devices in the software-defined wide area network receive data, they also use the same method as the embodiment of the present application to transmit data, that is, after receiving the packet, each device transmits data through a query session.

[0117] In this embodiment, by recording the input interface on the session, intermediate forwarding of traffic can be achieved. The session record realizes the source-in and source-out functions, ensures the connectivity of traffic, and the consistency of the round-trip path in all fault scenarios. Taking Figure 2 as an example, during normal business forwarding, the VRRP group virtual address falls on CPE1, and the data is first forwarded to CPE1. CPE1 queries the WAN side route, POP1 has the highest priority, and is forwarded to POP1. POP1 queries the route and finds that POP4 has the highest priority, so it is forwarded to POP4. POP4 is forwarded to CPE4, and finally forwarded to the user through switch 2. The return traffic is similar to this. When forwarding on the backbone network, the correct device can be selected by the routing priority. When it is CPE1, it is forwarded to the customer through static routing. When there are multiple VRRP groups, the primary device is also given priority for forwarding, and the traffic path is consistent.

[0118] As shown in Figure 11, when the LAN side interface of CPE1 fails, the virtual address of VRRP will be switched to CPE2. The outbound path from switch 1 to switch 2 is: switch 1, CPE2, CPE1, POP1, POP4, CPE4 and switch 2. CPE1 is selected by BGP route priority at CPE2, and the subsequent process is no different from the normal path. The return message can be directly forwarded to CPE2 through the session at CPE1. The reverse connection does not have a session record interface at CPE1. Through route search, it is found that the LAN side route fails, and the message will be forwarded to CPE2. After recording the session input interface, the route can be switched through the session. If the LAN side fault is restored, the traffic will be forwarded through CPE1, and the session input interface will be updated, which can also ensure the consistency of the round-trip path.

[0119] As shown in Figure 12, when a fault occurs on the WAN side of CPE1, the BGP route will switch to CPE2. There is no fault on the LAN side, and the VRRP address remains on CPE1. The outbound path from switch 1 to switch 2 is: switch 1, CPE1, CPE2, POP1, POP4, CPE4, and switch 2. At CPE1, CPE2 is selected through BGP routing. CPE2 selects POP1 through BGP routing priority, and the subsequent process is no different from the normal process. After the return message reaches CPE2, it is selected to CPE1 through the session, thus ensuring the consistency of the round-trip path. The message initiated from switch 2 to switch 1 will be directly sent to switch 1 at CPE2. The return message will pass through CPE1 to CPE2, and the session record will be updated at the same time. Subsequent return messages will pass through CPE2 to CPE1 to ensure the consistency of the round-trip path. Multiple redundant paths on the WAN side are switched through BGP. If a corresponding POP fails, BGP can automatically switch the link.

[0120] The data transmission method provided in the embodiment of the present application records the input interface of the data in the session record, so that when the data is transmitted in the reverse direction, the interface used for forward transmission can still be used for transmission by querying the session record, thereby ensuring the consistency of upstream and downstream data transmission and providing security of data transmission.

[0121] In addition, in an exemplary embodiment, the process of data forwarding in the embodiment of the present application is described.

[0122] As shown in Figure 13, a processing flow based on session records is added, which is mainly for the scenario where both the primary and backup devices on the LAN side are reachable, so that the consistency of the round-trip path can be maintained. The device first receives packets, which can be received on the LAN side or on the WAN side. The LAN side directly receives packets through the physical port, while the WAN side may receive packets through a dedicated line or encrypted packets. The encrypted packets are decrypted and processed through the virtual interface. After receiving the packets, the session search is first performed. The session contains the five-tuple information of the data message. If no session is found, it needs to be created. This message should be the first message of this session. After searching for the session, it is necessary to determine the flow direction of the data message. The outbound interface needs to be recorded for the traffic from LAN to WAN. When WAN to LAN, check whether there is an interface record. If there is no interface record, the normal route search and forwarding process is followed. If there is an interface record, it is necessary to determine whether the interface status is normal. If it is not normal, it is still necessary to perform route search and forwarding. If the interface status is normal, the packet can be sent through this interface.

[0123] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0124] Based on the same inventive concept, the embodiment of the present application also provides a data transmission device for implementing the data transmission method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data transmission device embodiments provided below can refer to the limitations on the data transmission method above, and will not be repeated here.

[0125] In an exemplary embodiment, as shown in FIG14 , a data transmission device 1 is provided, comprising: an address acquisition module 10, a first transmission module 20 and a second transmission module 30, wherein:

[0126] The address acquisition module 10 is used to acquire the address information of the backup user premises equipment when a network failure on one side of the primary user premises equipment is detected;

[0127] A first transmission module 20, configured to transmit data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment;

[0128] The second transmission module 30 is used to transmit data to a designated device based on a target network side in the backup customer premises equipment, where the target network side represents a network side of the same type as the faulty network side of the primary customer premises equipment.

[0129] In one embodiment, the address acquisition module 10 is further used for:

[0130] Sending a physical address acquisition request to a backup customer premises equipment; the backup customer premises equipment includes an Internet Protocol address of the target device;

[0131] A physical address sent by the standby customer premises equipment is received, and the physical address is determined as address information of the standby customer premises equipment.

[0132] In one embodiment, the first transmission module 20 is further used for:

[0133] In the case where the target device is a primary customer premises equipment, transmitting the data to the address information through a communication link between the primary customer premises equipment and the backup customer premises equipment so that the data is in the backup customer premises equipment;

[0134] In the case where the target device is a device connected to the local area network side of the primary customer premises equipment, data is transmitted to the address information so that the data is in the backup customer premises equipment.

[0135] In one embodiment, the address acquisition module 10 is further used for:

[0136] Sending an address acquisition request to the backup user premises equipment;

[0137] An Internet Protocol address sent by the standby customer premises equipment is received, and the Internet Protocol address is determined as address information of the standby customer premises equipment.

[0138] In one embodiment, the first transmission module 20 is further used for:

[0139] In the case where the target device is a primary customer premises equipment, transmitting data to the address information through a communication link between the primary customer premises equipment and the backup customer premises equipment so that the data is in the backup customer premises equipment;

[0140] In the case where the target device is a device connected to the wide area network side of the primary customer premises equipment, data is transmitted to the address information so that the data is in the backup customer premises equipment.

[0141] In one embodiment, the data transmission device 1 further includes:

[0142] A session query module is used to query the session record corresponding to the message information according to the message information of the data when the target device receives the data;

[0143] A flow direction determination module is used to determine the network flow direction information of the data according to the attribute information of the data;

[0144] The third transmission module is used to transmit data according to the session record and network flow information.

[0145] In one embodiment, the third transmission module is further used for:

[0146] In the case where the network flow direction information is from the local area network side to the wide area network side, the inbound interface of the data is recorded in the session record, and the best route for the data is obtained, and the data is transmitted through the best route;

[0147] When the network flow direction information is from the WAN side to the LAN side, the interface information is queried in the session record, and the data is transmitted through the interface information.

[0148] Each module in the above data transmission device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0149] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG15. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data transmission data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data transmission method is implemented.

[0150] Those skilled in the art will understand that the structure shown in FIG. 15 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0151] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0152] When a network failure on one side of the primary user premises equipment is detected, obtaining address information of the backup user premises equipment;

[0153] transmitting data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment;

[0154] The data is transmitted to the designated device based on a target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the failed network side of the primary customer premises equipment.

[0155] The implementation principles and technical effects of each step implemented by the processor in the embodiment of the present application are similar to the principles of the above-mentioned data transmission method, and will not be repeated here.

[0156] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0157] When a network failure on one side of the primary user premises equipment is detected, obtaining address information of the backup user premises equipment;

[0158] transmitting data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment;

[0159] The data is transmitted to the designated device based on a target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the failed network side of the primary customer premises equipment.

[0160] The implementation principles and technical effects of the various steps implemented when the computer program in the embodiment of the present application is executed by the processor are similar to the principles of the above-mentioned data transmission method, and will not be repeated here.

[0161] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0162] When a network failure on one side of the primary user premises equipment is detected, obtaining address information of the backup user premises equipment;

[0163] transmitting data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment;

[0164] The data is transmitted to the designated device based on a target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the failed network side of the primary customer premises equipment.

[0165] The implementation principles and technical effects of the various steps implemented when the computer program in the embodiment of the present application is executed by the processor are similar to the principles of the above-mentioned data transmission method, and will not be repeated here.

[0166] It should be noted that the personnel information (including but not limited to personnel equipment information, personnel personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the personnel or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0167] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0168] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0169] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data transmission method, characterized in that: The method is applied to a target device in a software-defined wide area network, wherein the software-defined wide area network includes a primary customer premises equipment and a backup customer premises equipment in communication connection; the method comprises: When a network failure occurs on one side of the primary CPE, acquiring address information of the backup CPE; transmitting data to the standby customer premises equipment according to the address information and a communication link between the primary customer premises equipment and the standby customer premises equipment; The data is transmitted to a designated device based on a target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the failed network side of the primary customer premises equipment.

2. The method according to claim 1, characterized in that: The fault network side includes a local area network side; the target device includes a switch; and the step of obtaining the address information of the backup user premises equipment includes: Sending a physical address acquisition request to the backup customer premises equipment; the backup customer premises equipment includes an Internet Protocol address of a target device; A physical address sent by the standby customer premises equipment is received, and the physical address is determined as the address information of the standby customer premises equipment.

3. The method according to claim 2, characterized in that The transmitting data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment includes: In the case where the target device is the primary customer premises equipment, transmitting the data to the address information through a communication link between the primary customer premises equipment and the backup customer premises equipment, so that the data is in the backup customer premises equipment; In the case where the target device is a device connected to the local area network side of the primary customer premises equipment, the data is transmitted to the address information so that the data is in the backup customer premises equipment.

4. The method according to claim 1, characterized in that: The fault network side includes a wide area network side; the acquiring the address information of the backup user premises equipment includes: Sending an address acquisition request to the backup customer premises equipment; An Internet Protocol address sent by the standby customer premises equipment is received, and the Internet Protocol address is determined as the address information of the standby customer premises equipment.

5. The method according to claim 4, characterized in that The transmitting data to the standby customer premises equipment according to the address information and the communication link between the primary customer premises equipment and the standby customer premises equipment includes: In the case where the target device is the primary customer premises equipment, transmitting the data to the address information through a communication link between the primary customer premises equipment and the backup customer premises equipment, so that the data is in the backup customer premises equipment; In the case that the target device is a device connected to the wide area network side of the primary customer premises equipment, the data is transmitted to the address information so that the data is in the backup customer premises equipment.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the target device receives the data, querying the session record corresponding to the message information according to the message information of the data; Determining network flow information of the data according to the attribute information of the data; The data is transmitted according to the session record and the network flow information.

7. The method according to claim 6, characterized in that The transmitting the data according to the session record and the network flow information includes: In the case where the network flow direction information is from the local area network side to the wide area network side, recording the inbound interface of the data in the session record, obtaining the best route for the data, and transmitting the data through the best route; In the case where the network flow direction information is from the wide area network side to the local area network side, interface information is queried in the session record, and the data is transmitted through the interface information.

8. A data transmission device, characterized in that: The target device is applied to a software-defined wide area network, wherein the software-defined wide area network includes a primary user premises equipment and a backup user premises equipment in communication connection; the device includes: An address acquisition module, configured to acquire address information of the backup user premises equipment when a network failure on one side of the primary user premises equipment is detected; A first transmission module, configured to transmit data to the standby customer premises equipment according to the address information and a communication link between the primary customer premises equipment and the standby customer premises equipment; The second transmission module is used to transmit the data to a designated device based on a target network side in the standby customer premises equipment, where the target network side represents a network side of the same type as the faulty network side of the primary customer premises equipment.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • BRAS (Broadband Remote Access Server) forwarding and control separation backup method and device

    CN108667695A

  • 5G wireless network connection method and electronic equipment

    CN116419422A

  • Multi-channel communication method and system

    CN116545922A

  • Route switching method and device, storage medium and electronic equipment

    CN116782278A

  • Robust network connectivity leveraging edge compute

    US20230140789A1