Data transmission method, system and device

By using VRRP to switch gateway devices in Ethernet links, the problem of high cost of building Ethernet links is solved, and the efficiency and reliability of data transmission are achieved.

CN119520638APending Publication Date: 2025-02-25GUANGDONG POWER GRID CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411628866.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, when forming a ring structure between an Ethernet link and a gateway device, many devices need to be added, resulting in high cost of building a data transmission link.

Method used

By determining the data transmission status of the Ethernet link and when the data transmission status is abnormal, the virtual routing redundant protocol VRRP is used to switch the target gateway device as the first communication device, thereby completing the data transmission.

Benefits of technology

It ensures the continuity and reliability of data transmission without adding additional equipment, and reduces the construction cost of data transmission links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520638A_ABST
    Figure CN119520638A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, system and device. The method comprises the following steps: determining a data transmission state of an Ethernet link; in response to the fact that the data transmission state is the abnormal transmission state, at least one target gateway device in the Ethernet link is determined, the target gateway device is in the abnormal working state, and the target gateway device is associated with at least one terminal; switching the target gateway device to a first communication device by using a virtual routing redundancy protocol (VRRP); and controlling the first communication equipment, and transmitting the first to-be-transmitted data output by the terminal to a service server. According to the invention, the technical problem of high construction cost of a data transmission link is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method, system and device for data transmission. Background Art

[0002] Currently, Ethernet links have the advantages of simple network structure and low cost. Ethernet links generally have multiple topological structures such as star, tree, chain, and ring. Among them, the ring structure can be combined with technologies such as spanning tree to achieve service protection.

[0003] In the related art, if a ring structure is formed between an Ethernet link and a gateway device, a link is usually added between the end of the link and the gateway device. However, the above method requires the addition of a lot of equipment, and there is a technical problem of high construction cost of the data transmission link.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, system, and device for data transmission to at least solve the technical problem of high cost in setting up a data transmission link.

[0006] According to one aspect of an embodiment of the present application, a method for data transmission is provided, which may include: determining the data transmission status of an Ethernet link; in response to the data transmission status being an abnormal transmission status, determining at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state, and the target gateway device is associated with at least one terminal; using a virtual routing redundancy protocol VRRP, switching the target gateway device to a first communication device; controlling the first communication device to transmit the first data to be transmitted output by the terminal to a service server.

[0007] Optionally, controlling the first communication device to transmit the first data to be transmitted output by the terminal to the business server includes: controlling the first communication device to transmit the first data to be transmitted to the second communication device; determining a router associated with the second communication device; and calling the router to transmit the first data to be transmitted in the second communication device to the business server.

[0008] Optionally, the method may also include: obtaining second data to be transmitted output by the business server, wherein the second data to be transmitted is different from the first data to be transmitted; determining a target terminal to receive the second data to be transmitted; determining a working status of an associated gateway device associated with the target terminal; and in response to the working status being an abnormal working status, transmitting the second data to be transmitted to the second communication device.

[0009] Optionally, the method may further include: in response to the second data to be transmitted being transmitted to the second communication device, controlling the second communication device to transmit the second data to be transmitted to the first communication device; and controlling the first communication device to transmit the data to be transmitted to the target terminal.

[0010] Optionally, in response to the working status being an abnormal working status, the second data to be transmitted is transmitted to the second communication device, including: in response to the working status being an abnormal status, setting the static route of the target terminal to point to the second communication device; according to the static route, transmitting the second data to be transmitted to the second communication device.

[0011] Optionally, the method may further include: in response to the working state of the target gateway device, switching from an abnormal working state to a normal working state, and using VRRP to switch the first communication device to the target gateway device.

[0012] According to another aspect of an embodiment of the present application, a data transmission system is also provided, which may include: a terminal, used to output first data to be transmitted; a first communication device, used to determine at least one target gateway device in the Ethernet link in response to the data transmission status being an abnormal transmission status, wherein the target gateway device is in an abnormal working state and the target gateway device is associated with at least one terminal; using the virtual routing redundancy protocol VRRP, adjusting the target gateway device to the first communication device; and transmitting the first data to be transmitted to the service server.

[0013] Optionally, the system may further include: a second communication device, used to obtain the first data to be transmitted transmitted by the first communication device, and transmit the first data to be transmitted to the router; and a service server, used to obtain the first data to be transmitted sent by the router.

[0014] Optionally, the system may further include: a gateway system server, configured to identify at least one target gateway device in the Ethernet link.

[0015] According to another aspect of an embodiment of the present application, a data transmission device is also provided, which may include: a first determination unit, used to determine the data transmission status of an Ethernet link; a second determination unit, used to determine at least one target gateway device in the Ethernet link in response to the data transmission status being an abnormal transmission state, wherein the target gateway device is in an abnormal working state and the target gateway device is associated with at least one terminal; a switching unit, used to switch the target gateway device to a first communication device using a virtual routing redundancy protocol VRRP; and a control unit, used to control the first communication device to transmit the first data to be transmitted output by the terminal to a service server.

[0016] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the data transmission method of the embodiment of the present application.

[0017] According to another aspect of an embodiment of the present application, a processor is further provided, the processor being used to run a program, wherein the program, when run by the processor, executes the method for data transmission of an embodiment of the present application.

[0018] According to another aspect of an embodiment of the present application, a program product is further provided. The program product includes computer instructions, wherein the computer instructions, when executed by a processor, implement the data transmission method of the embodiment of the present application.

[0019] In an embodiment of the present application, the data transmission state of the Ethernet link is determined; in response to the data transmission state being an abnormal transmission state, at least one target gateway device in the Ethernet link is determined, wherein the target gateway device is in an abnormal working state and the target gateway device is associated with at least one terminal; the target gateway device is switched to a first communication device using the virtual routing redundancy protocol VRRP; and the first communication device is controlled to transmit the first data to be transmitted output by the terminal to the service server. That is, in an embodiment of the present application, when the data transmission state of the Ethernet link is an abnormal transmission state, the target gateway device in the Ethernet link can be determined, and the target gateway device can be switched to a first communication terminal to complete the transmission of the first data to be transmitted output by the terminal using the first communication terminal, that is, by simply adding the first communication device, even if the target gateway device associated with the terminal is abnormal, the data transmission can be completed through the first communication device without adding other devices, thereby solving the technical problem of high construction cost of the data transmission link and achieving the technical effect of reducing the construction cost of the data transmission link. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 is a flow chart of a method for data transmission according to an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of an Ethernet link connection method according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of another Ethernet link connection method according to an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of a data transmission system according to an embodiment of the present application;

[0025] Figure 5 is a schematic diagram of a data transmission device according to an embodiment of the present application;

[0026] Figure 6 is a structural block diagram of a computer terminal according to an embodiment of the present application;

[0027] Figure 7 It is a block diagram of an electronic device according to a data transmission method of an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] According to an embodiment of the present application, an embodiment of a method for data transmission is provided, and the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0031] In this embodiment, a data transmission method is proposed. When the data transmission state of the Ethernet link is an abnormal transmission state, the target gateway device in the Ethernet link can be determined, and the target gateway device can be switched to a first communication terminal to use the first communication terminal to complete the transmission of the first data to be transmitted output by the terminal. That is, only by adding the first communication device, even if the target gateway device associated with the terminal is abnormal, the data transmission can be completed through the first communication device without adding other devices, thereby solving the technical problem of high cost of setting up the data transmission link and achieving the technical effect of reducing the cost of setting up the data transmission link.

[0032] Figure 1 FIG. 1 is a flow chart of a method for data transmission according to an embodiment of the present application. Figure 1 As shown, the method may include the following steps:

[0033] Step S102: determine the data transmission status of the Ethernet link.

[0034] In the technical solution provided in the above step S102 of the present application, at least one Ethernet switch can be deployed in the above Ethernet link, and the Ethernet switch can be used as a gateway device to transmit data with the terminal. The above data transmission state can include a normal transmission state and an abnormal transmission state.

[0035] Optionally, an Ethernet link can be a network connection path established on the basis of Ethernet technology, which can allow data communication between two or more Ethernet devices (such as computers, servers, switches, terminals, etc.). Ethernet links can be physical (for example, connected by wired media such as twisted pair, optical fiber, etc.) or logical (for example, a virtual connection created by technologies such as VLAN, bridge, etc.). In actual network deployment, Ethernet links can be composed of hardware such as network cables (also called lines), network cards, switch ports, and network layer protocols, such as Ethernet protocols. Ethernet links can be used to provide high-speed and high-reliability data transmission.

[0036] Optionally, the Ethernet link is monitored to determine the data transmission status of the Ethernet link. For example, when an interruption occurs in the Ethernet link due to a gateway device or line, the data transmission status of the Ethernet link can be determined to be an abnormal transmission status; or when the gateway device in the Ethernet link can communicate normally with the associated terminal and the line in the Ethernet link can transmit data normally, the data transmission status of the Ethernet link can be determined to be a normal transmission status. It should be noted that the above is only an example, and there is no specific limitation on the criteria for determining the data transmission status.

[0037] Step S104, in response to the data transmission state being an abnormal transmission state, determining at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state and is associated with at least one terminal.

[0038] In the technical solution provided in the above step S104 of the present application, if the data transmission state is an abnormal transmission state, it can be determined that there is at least one abnormal target gateway device in the Ethernet link. The target gateway device can be a device in an abnormal working state, such as an Ethernet switch.

[0039] Optionally, at least one Ethernet switch may be deployed in the Ethernet link, and each Ethernet switch may communicate with at least one terminal.

[0040] Optionally, if the data transmission state of the Ethernet link is an abnormal transmission state, it can be determined that there is a line fault in the Ethernet link, or there is a fault in the Ethernet switch in the Ethernet link, and the gateway device with an abnormal working state can be determined as the target gateway device.

[0041] Step S106: Using the Virtual Routing Redundancy Protocol VRRP, the target gateway device is switched to the first communication device.

[0042] In the technical solution provided in the above step S106 of the present application, after determining at least one target gateway device in the Ethernet link, the target gateway device can be switched to the first communication device using the virtual routing redundancy protocol VRRP. The above first communication device can be a wireless communication device (which can be represented by AA), or can be a device deployed at the end of the Ethernet link. The above virtual routing redundancy protocol (Virtua l Router Redundancy Protocol, referred to as VRRP) can be a protocol for improving the redundancy and high availability of routing devices in the network.

[0043] In traditional network design, a terminal (also called a terminal device) can usually send a data packet to a default gateway (usually a router or a three-layer switch), which can forward the data packet to the target network. However, this single-point design has obvious shortcomings. For example, once the default gateway fails or is under maintenance, the connectivity of the network will be seriously affected, resulting in data transmission interruption, affecting business continuity and user experience. In order to solve this problem, in this embodiment, the VRRP working mechanism is used to implement the function of a virtual gateway between multiple routing devices, thereby providing redundancy and fault recovery mechanisms.

[0044] Optionally, in a VRRP-configured network, a group of routers or layer 3 switches are defined as a virtual router, which share a virtual Internet Protocol (IP) address, which serves as the default gateway for terminal devices in the network. One of the routers in the group is selected as the master router, and the rest are backup routers. The master router can be used to forward data packets to be sent to the virtual IP, while the backup router is in a listening state, ready to take over the responsibilities of the master router at any time. Therefore, when it is determined that there is at least one target gateway device in the Ethernet link, it can automatically change to the master through VRRP, and inform the switch at the subsequent stage of the interruption point that the first communication device is a gateway device for forwarding subsequent data.

[0045] Optionally, the VRRP protocol can be configured on the first communication device, and the protocol state configures the first communication device to be in the backup state of the Ethernet link gateway, and detects the survival of the original gateway device (that is, the gateway device in the Ethernet link) in real time. If the data transmission state of the Ethernet link is in the normal transmission state, the first communication device does not forward data. When the Ethernet link is interrupted due to equipment or line reasons, and the first communication device at the end of the Ethernet link cannot detect the activity of the original gateway device, the VRRP state of the first communication device can be automatically changed to Master, and the switch at the subsequent stage of the interruption point is notified, and the target gateway device is switched to the first communication device. The first communication device acts as a gateway device and assumes the function of data forwarding.

[0046] Optionally, when the main router (ie, the target gateway device) fails, the backup router (ie, the first communication device) can take over seamlessly to transmit data, thereby reducing the network interruption time and ensuring business continuity and user experience.

[0047] In this embodiment, VRRP is used as a fault detection and automatic switching mechanism between the first communication device and the subsequent device in the faulty link (i.e., the target gateway device), ensuring that data packets can be forwarded wirelessly even when a link fails, thereby maintaining the normal operation of network services.

[0048] In this embodiment, a wireless communication device AA (i.e., a first communication device) is added at the end of the Ethernet link, and the first communication device supports the VRRP function. The VRRP protocol can be configured on the first communication device, and the protocol state is configured as the backup state of the Ethernet link gateway. The survival of the original gateway device is detected in real time. When the transmission state of the Ethernet link is normal, the first communication device does not forward data. When the transmission state of the Ethernet link is an abnormal transmission state, at least one target gateway device in the Ethernet link can be determined, and the target gateway device can be switched to the first communication device. The switching here can be understood as using the first communication device to replace the target gateway device and communicate with the terminal associated with the target gateway device.

[0049] Step S108: Control the first communication device to transmit the first data to be transmitted output by the terminal to the service server.

[0050] In the technical solution provided in the above step S108 of the present application, after the target gateway device is switched to the first communication device, if the terminal outputs the first data to be transmitted, the first communication device can be controlled to transmit the first data to be transmitted to the business server. The above-mentioned first data to be transmitted can be instructions, files and other data. The above-mentioned business server can be a computer system used to provide specific business applications or services in a network environment, which can be a physical server, or a virtual server in a virtualized environment, which can be used to process business logic, store and retrieve data, etc. It should be noted that this is only an example, and there is no specific limitation on the type of the first data to be transmitted, the type and function of the business server.

[0051] Optionally, if there is a fault in the line or the Ethernet switch, at least one terminal associated with the Ethernet switch will be unable to transmit data to the service server. To avoid the above problem, in this embodiment, the target gateway device in the Ethernet link is determined to be in an abnormal working state, and the target gateway device is switched to the first communication device using VRRP. When the terminal inputs the first data to be transmitted, the first communication device can obtain the first data to be transmitted and transmit the first data to be transmitted to the service server. Therefore, even if the Ethernet link fails, the first data to be transmitted in the terminal can be transmitted to the service server, thereby solving the technical problem of high cost of setting up the data transmission link and achieving the technical effect of reducing the cost of setting up the data transmission link.

[0052] Through the above steps S102 and S108 of the present application, the data transmission state of the Ethernet link is determined; in response to the data transmission state being an abnormal transmission state, at least one target gateway device in the Ethernet link is determined, wherein the target gateway device is in an abnormal working state, and the target gateway device is associated with at least one terminal; the target gateway device is switched to a first communication device using the virtual routing redundancy protocol VRRP; the first communication device is controlled to transmit the first data to be transmitted output by the terminal to the service server. That is, in the embodiment of the present application, when the data transmission state of the Ethernet link is an abnormal transmission state, the target gateway device in the Ethernet link can be determined, and the target gateway device can be switched to a first communication terminal to complete the transmission of the first data to be transmitted output by the terminal using the first communication terminal, that is, by simply adding the first communication device, even if the target gateway device associated with the terminal is abnormal, the data transmission can be completed through the first communication device without adding other devices, thereby solving the technical problem of high construction cost of the data transmission link and achieving the technical effect of reducing the construction cost of the data transmission link.

[0053] The above method of this embodiment is further introduced below.

[0054] As an optional implementation, step S108, controlling the first communication device to transmit the first data to be transmitted output by the terminal to the business server, includes: controlling the first communication device to transmit the first data to be transmitted to the second communication device; determining a router associated with the second communication device; calling the router to transmit the first data to be transmitted in the second communication device to the business server.

[0055] In this embodiment, if the first communication device obtains the first data to be transmitted, the first data to be transmitted can be transmitted to the second communication device. Further, the router associated with the second communication device can be determined, and the router can be called to transmit the first data to be transmitted in the second communication device to the service server. The second communication device can be a wireless communication device, which can be used to communicate wirelessly with the first communication device. It should be noted that this is only an example, and there is no specific restriction on the type of the second communication device.

[0056] Optionally, a second communication device can be added at the core layer of the network, and a point-to-multipoint communication mode can be formed between the second communication device and the first communication device at the end of all Ethernet links. A three-layer connection can be established between the first communication device and the network core layer router device and routing information can be exchanged. When the second communication device obtains the first data to be transmitted sent by the first communication device, the second communication device can transmit the first data to be transmitted to the router. By using the router, the first data to be transmitted can be transmitted from the second communication device to the service server. The above router can be a core router.

[0057] As an optional implementation, the method may also include: obtaining second data to be transmitted output by the business server, wherein the second data to be transmitted is different from the first data to be transmitted; determining a target terminal to receive the second data to be transmitted; determining a working status of an associated gateway device associated with the target terminal; and in response to the working status being an abnormal working status, transmitting the second data to be transmitted to the second communication device.

[0058] In this embodiment, in addition to uploading the first data to be transmitted in the terminal to the service server through the first communication device and the second communication device, the second data to be transmitted in the service server can be sent to the terminal through the first communication device and the second communication device.

[0059] Optionally, by obtaining the second data to be transmitted sent by the business server, the target terminal to be received by the second data to be transmitted can be determined, and the working state of the associated gateway device associated with the target terminal can be determined. If the working state of the associated gateway device associated with the target terminal is a normal working state, the second data to be transmitted can be transmitted to the associated gateway device, and the second data to be transmitted can be transmitted to the second communication device through the associated gateway device. If the working state of the associated gateway device associated with the target terminal is an abnormal working state, the second data to be transmitted can be transmitted to the second communication device, and the second data to be transmitted can be transmitted to the target terminal through the second communication device. The above working state may include a normal working state and an abnormal working state.

[0060] For example, the second data to be transmitted (for example, downlink data) that the service server responds to the target terminal will originally be sent to the three-layer switch through the network (the route of the service network segment is to the three-layer switch), but now because the Ethernet link is broken, the three-layer switch cannot transmit the second data to be transmitted to the target terminal, which will cause the second data to be transmitted to be discarded. In order to solve the above problem, in this embodiment, a judgment is added, and the corresponding relationship table between the network device and the terminal can be determined in advance (it is generally easier to implement in the enterprise network, especially when the terminal is set with a fixed IP address), and then the network management server is used to identify in real time which devices in the network are offline or unreachable, so as to determine the gateway device that cannot process data in the Ethernet link. Based on the corresponding association table, the target terminal that cannot send data can be determined. After obtaining the second data to be transmitted that needs to be sent to the target terminal, if it is determined that the working state of the associated gateway device of the target terminal receiving the second data to be transmitted is an abnormal working state, the second data to be transmitted can be transmitted to the second communication device, so that the second data to be transmitted can be transmitted to the target terminal through the second communication device.

[0061] The following further describes the manner in which the second data to be transmitted is transmitted to the target terminal through the second communication device.

[0062] As an optional implementation, the method may also include: in response to the second data to be transmitted being transmitted to the second communication device, controlling the second communication device to transmit the second data to be transmitted to the first communication device; controlling the first communication device to transmit the data to be transmitted to the target terminal.

[0063] In this embodiment, if the second data to be transmitted is transmitted to the second communication device, the second communication device can be controlled to transmit the second data to be transmitted to the first communication device, and further, the first communication device can be controlled to transmit the data to be transmitted to the target terminal.

[0064] Optionally, in this embodiment, the first communication device and the second communication device communicate with each other by wireless communication, and the communication method and protocol between the two are not further restricted. When transmitting data, Ethernet data packets can be encapsulated in the inner layer as data payload, and the forwarding of the wireless part does not involve the original data packet information.

[0065] Optionally, the address information of the terminals corresponding to the Ethernet switches in all Ethernet links can be collected in advance, and saved and regularly updated by the server in the network management system. When it is determined that there is an abnormality in the target gateway device, if the second data to be transmitted to the terminal associated with the target gateway device is obtained, the second data to be transmitted can be sent to the second communication device, and the second data to be transmitted can be transmitted to the target terminal through the second communication device.

[0066] The method of transmitting the second data to be transmitted to the second communication device is further described below.

[0067] As an optional implementation, in response to the working status being an abnormal working status, the second data to be transmitted is transmitted to the second communication device, including: in response to the working status being an abnormal status, setting the static route of the target terminal to point to the second communication device; according to the static route, the second data to be transmitted is transmitted to the second communication device.

[0068] In this embodiment, if the working state of the associated gateway device is an abnormal working state, it means that the second data to be transmitted cannot be transmitted to the target terminal using the associated gateway device. At this moment, the static route of the device target terminal can be pointed to the second communication device. According to the static route, the second data to be transmitted can be transmitted to the second communication device.

[0069] Optionally, when an Ethernet link is interrupted (that is, the working state in the Ethernet link is an abnormal working state), for example, Ethernet switch 2 and Ethernet switch 3 are offline in the Ethernet network, after the network management server identifies it, it determines the target terminal associated with Ethernet switch 2 and Ethernet switch 3, and lets the core router add 4 detailed routes or static routes to the destination address pointing to the second communication device, and publishes them to other network devices at the same time. Since the priority of static routes is relatively high, the search for routing tables is also based on the principle of the more matches, the better. Therefore, when there is a second data to be transmitted to be sent to the target terminal, the second data to be transmitted can be transmitted to the second communication device. The second communication device transmits the second data to be transmitted to the target terminal through the first communication device, thereby completing the downlink of data.

[0070] As an optional implementation, the method may further include: in response to the working state of the target gateway device, switching from an abnormal working state to a normal working state, and using VRRP to switch the first communication device to the target gateway device.

[0071] In this embodiment, when the working state of the target gateway device switches from an abnormal working state to a normal working state, it can be determined that the data transmission state of the Ethernet link changes to a normal transmission state. At this time, the first communication device re-monitors that the target gateway device (VRRP MASTER) is active, and the first communication device can automatically change to the BACKUP state and no longer assume the role of forwarding data. That is, VRRP can be used to switch the first communication device to the target gateway device, so that the data packets sent by the terminal can be sent to the server through the normal network. At the same time, in the downlink direction, the originally added static route is also revoked (the network management server initiates the original reverse operation after detecting that the offline device is reachable), otherwise it will cause inconsistency between the uplink and downlink paths and may cause some problems.

[0072] Optionally, in response to the Ethernet link returning to normal, it can be determined that the working state of the target gateway device changes from an abnormal working state to a normal working state. It can be determined that at this time the working state of the target gateway device switches from an abnormal working state to a normal working state. Then, VRRP can be used to switch the first communication device to the target gateway device.

[0073] At present, Ethernet link (can be referred to as Ethernet for short) is a widely used computer LAN networking technology, which has the advantages of simple network structure and low cost. Ethernet networking generally has multiple topological structures such as star, tree, chain, and ring. Among them, the ring structure can be combined with technologies such as spanning tree to achieve service protection.

[0074] In the related art, due to conditional constraints, the network may not necessarily form a ring network, but more often a tree-type, chain-type, or other structure. Figure 2 is a schematic diagram of an Ethernet link connection method according to an embodiment of the present application, such as Figure 2 As shown, the Ethernet link is usually a tree structure. In this topology, in the normal state of the Ethernet link, a bunch of terminals under the Ethernet link (for example, terminal 207, terminal 208, terminal 209, terminal 210, terminal 211, terminal 212 and terminal 213) all belong to the same network segment, which is the second-layer forwarding of the data network. The first data to be transmitted transmitted by the terminal first arrives at the gateway device (for example, Ethernet switch 203, Ethernet switch 204 and Ethernet switch 205), and then the first data to be transmitted in the gateway device is forwarded through the third-layer switch 206. In this topology, the data transmission between the service server 214 and the terminal is completed through the gateway system server 201 and the core router 202.

[0075] Optionally, in this topology, the network itself relies on the routing protocol to automatically learn and synchronize routing information, and other network devices in the network know that this network segment is on this three-layer switch. When the destination address of the data network matches this network segment, the data is transferred to this three-layer switch. From the above, it can be seen that in this type of topology, when a link or a gateway device in the link behind the gateway device has an abnormal failure, the subsequent devices cannot connect to the network normally. The closer the fault point is to the gateway device, the greater the business scope affected.

[0076] If you want to achieve service protection, you usually form a loop between the Ethernet link and the gateway device, and establish a link connection between the device at the end of the original link and the gateway device by adding physical lines or using a pair of wireless devices. At the same time, spanning tree technology is used to avoid broadcast storms. However, if you only use wired methods to fill the loop, construction difficulty and line corridors are restrictive factors. If wireless methods are used to fill the loop, wireless loop filling devices need to be installed at each link end and gateway device location. In the case of a large network scale and many links, especially when the gateway device is connected to multiple Ethernet links, a lot of equipment needs to be added, and even the physical space for the equipment to be installed, power consumption, etc. need to be considered, resulting in a high cost of service protection, and thus there is a technical problem of high cost of building data transmission links.

[0077] In this embodiment, in order to solve the above problems, Ethernet link service protection is implemented wirelessly. At the same time, by detecting whether the switch device is disconnected from the network, the corresponding static route is added or deleted, breaking through the original mode that the Ethernet link service protection is only implemented in the LAN Layer 2 network, so that the service can be directly forwarded to the Layer 3 network. The original point-to-point method of adding link rings is changed to a point-to-multipoint communication mode, which greatly reduces the cost of service protection. The application of methods such as the VRRP protocol and static route changes will not be perceived by the terminal service. The network automatically completes the switching of the data forwarding path without the need for the terminal to make any changes, thereby solving the problem that when the Ethernet Layer 2 link is abnormally interrupted, the terminal service carried by the subsequent equipment at the fault point cannot be forwarded normally.

[0078] The technical solution of the present application is further supplemented below with an Ethernet link service protection method. Figure 3 is a schematic diagram of another Ethernet link connection method according to an embodiment of the present application, such as Figure 3 As shown, a first communication device 301 and a second communication device 302 are added, and data can be uploaded and sent between the first communication device 301 and the second communication device 302 via a wireless link. Among them, the three-layer switch 306 can be a gateway device.

[0079] Optionally, there is an association relationship between the Ethernet switch and the terminal, and the Ethernet switch can be used as a gateway device of the terminal to transmit data, such as Figure 3 As shown, there is an association relationship between the Ethernet switch 303 and the terminal 307, and between the terminal 308 and the terminal 309. There is an association relationship between the Ethernet switch 304 and the terminal 310 and the terminal 311. There is an association relationship between the Ethernet switch 305 and the terminal 312 and the terminal 313.

[0080] In this embodiment, for the upward transmission process of the data packet during the interruption, such as Figure 3 As shown, assuming that the data transmission between the Ethernet switch 303 and the Ethernet switch 304 is abnormal, it can be determined that the Ethernet link is interrupted, so that the data transmission state of the Ethernet link can be determined to be an abnormal transmission state. In this state, the first data to be transmitted output by the terminal 310 cannot reach the three-layer switch 306 through the Ethernet switch 303. At the same time, the first communication device 301 also detects that the Ethernet switch 303 is unreachable. According to the VRRP working mechanism, the first communication device 301 can enable the gateway address and inform the terminals connected to it (for example, the terminal 310 and the terminal 311) that it is a gateway. At this time, the data of the terminal 310 is sent to the first communication device 301. After processing, the first communication device 301 transmits the first data to be transmitted to the second communication device 302. The second communication device 302 sends the first data to be transmitted to the network device connected to it, such as the core router 316. The first data to be transmitted passes through the core router 316 and returns to the original network, thereby reaching the destination, such as the service server 314.

[0081] Optionally, for the data responded by the service server to the terminal, that is, the sending of the second data to be transmitted, when the data transmission state of the Ethernet link is in the normal transmission state, the route of the service network segment points to the three-layer switch 306, and the second data to be transmitted can be sent to the three-layer switch 306 through the three-layer network. However, if there is a terminal in the Ethernet link, that is, when the data transmission state of the Ethernet link is in the abnormal transmission state, the three-layer switch 306 cannot transmit the second data to be transmitted to the terminal, resulting in the second data to be transmitted being discarded.

[0082] In order to solve the above problem, in this embodiment, a judgment is added. The premise of this judgment is to first prepare a correspondence table between network devices (i.e., Ethernet switches) and terminals. The correspondence table can be stored in the network management server 315, and then the network management server 315 can be used to identify in real time which gateway devices in the network are offline or unreachable.

[0083] Alternatively, assuming that Figure 3As shown, when a link interruption occurs, the Ethernet switch 304 and the Ethernet switch 305 are offline in the network. After the network management server 315 recognizes it, the core router 316 can be added to the terminal 310, the terminal 311, the terminal 312 and the terminal 313. The four detailed routes or static routes of the four destination addresses point to the second communication device 302, and can be published to other network devices. Since the priority of static routes is relatively high, the search for routing tables is also based on the principle of the more matches, the better, so the data packets in the three-layer network that are going to the terminal 310, the terminal 311, the terminal 312 and the terminal 313 will be transferred to the second communication device 302. The second data to be transmitted can be transmitted to the corresponding target terminal through the second communication device 302 and the first communication device 301, thereby completing the downlink of data.

[0084] Optionally, when the Ethernet link is restored, the first communication device 301 can re-detect that the gateway device (VRRP MASTER) is active, and the first communication device 301 can automatically change to the BACKUP state and no longer assume the role of forwarding data. The data packets sent by the terminal are transmitted to the service server 314 via the normal network. In the downstream direction, the originally added static route is also revoked (the network management server initiates the original reverse operation after detecting that the offline device is reachable). Otherwise, the upstream and downstream paths will be inconsistent, which may cause some problems.

[0085] In this embodiment, a wireless communication device (i.e., the first communication device) can be added at the end of the Ethernet link, and the device supports the gateway redundancy protocol (VRRP) function. The VRRP protocol can be configured on the wireless communication device, and the protocol state is configured as the backup state of the Ethernet link gateway. The survival status of the original gateway device is detected in real time. When the link status is normal, the wireless communication device does not forward data.

[0086] In this embodiment, a wireless communication device (i.e., the second communication device) is added at the core layer of the network, and the device forms a point-to-multipoint communication mode with the first communication devices at the end of all Ethernet links. The second communication device establishes a three-layer connection with the network core layer router device and exchanges routing information.

[0087] In this embodiment, the first communication device and the second communication device communicate wirelessly, and there is no limitation on the specific technology and protocol. Ethernet data packets can be encapsulated in the inner layer as data payload, and the forwarding of the wireless part does not involve the original data packet information.

[0088] In this embodiment, information on service terminal addresses corresponding to all Ethernet switches may be collected, stored and regularly updated in the network management system using a network management system server.

[0089] In this embodiment, when the Ethernet link is interrupted due to equipment or line reasons, the first communication device at the end of the link cannot detect the activity of the original gateway device, and the VRRP state automatically changes to Master and informs the first communication device at the subsequent stage of the interruption point that it is a gateway device and assumes the function of data forwarding. The received data is forwarded to the second communication device through the wireless network, and the data packet is forwarded to the destination address device after passing through the core layer router device.

[0090] In this embodiment, after an abnormal interruption occurs in the Ethernet link, the network management system server detects that some Ethernet switches are unreachable (i.e., disconnected from the network). Based on the corresponding information between the switches and the terminals, a static route with the address of the terminal can be sent to the core router pointing to the second communication device, and the static route information is synchronized to the entire network, thereby forming a downward data forwarding path.

[0091] Optionally, when the Ethernet link is restored, the network management system server detects that the switch is reachable again, and then can send a cancellation message to the core router to cancel the newly added static routes and notify the entire network.

[0092] In an embodiment of the present application, when the data transmission state of the Ethernet link is an abnormal transmission state, the target gateway device in the Ethernet link can be determined, and the target gateway device can be switched to a first communication terminal to use the first communication terminal to complete the transmission of the first data to be transmitted output by the terminal. That is, just by adding the first communication device, even if there is an abnormality in the target gateway device associated with the terminal, the data transmission can be completed through the first communication device without adding other devices, thereby solving the technical problem of high cost of setting up the data transmission link and achieving the technical effect of reducing the cost of setting up the data transmission link.

[0093] According to an embodiment of the present application, a data transmission system is also provided. It should be noted that the data transmission system of this embodiment can be used to execute the data transmission method in the above embodiment of the present application.

[0094] Figure 4 Schematic diagram of a data transmission system according to an embodiment of the present application. Figure 4 As shown, the data transmission system 40 may include: a terminal 402 and a first communication device 404 .

[0095] The terminal 402 is configured to output first data to be transmitted.

[0096] The first communication device 404 is used to determine at least one target gateway device in the Ethernet link in response to the data transmission state being an abnormal transmission state, wherein the target gateway device is in an abnormal working state and the target gateway device is associated with at least one terminal; use the virtual routing redundancy protocol VRRP to adjust the target gateway device to the first communication device; and transmit the first data to be transmitted to the business server.

[0097] In this embodiment, the system may further include: a second communication device, configured to obtain first data to be transmitted transmitted by the first communication device, and transmit the first data to be transmitted to the router.

[0098] Optionally, the service server may also be used to obtain the first data to be transmitted sent by the router.

[0099] Optionally, the system may further include: a gateway system server, which may be used to identify at least one target gateway device in the Ethernet link.

[0100] Optionally, the gateway system server may also be used to store an association relationship table between terminals and Ethernet switches.

[0101] The data transmission system of this embodiment is used to output first data to be transmitted through a terminal; in response to the data transmission state being an abnormal transmission state, at least one target gateway device in the Ethernet link is determined through a first communication device, wherein the target gateway device is in an abnormal working state and is associated with at least one terminal; the target gateway device is adjusted to the first communication device by using the virtual routing redundancy protocol VRRP; the first data to be transmitted is transmitted to a business server, thereby solving the technical problem of high cost of setting up a data transmission link and achieving the technical effect of reducing the cost of setting up a data transmission link.

[0102] According to an embodiment of the present application, a data transmission device is also provided. It should be noted that the data transmission device of this embodiment can be used to execute the data transmission method in the above embodiment of the present application.

[0103] Figure 5 is a schematic diagram of a data transmission device according to an embodiment of the present application. Figure 5 As shown, the data transmission device 50 may include: a first determining unit 502 , a second determining unit 504 , a switching unit 506 and a control unit 508 .

[0104] The first determining unit 502 is configured to determine a data transmission state of the Ethernet link.

[0105] The second determining unit 504 is configured to determine at least one target gateway device in the Ethernet link in response to the data transmission state being an abnormal transmission state, wherein the target gateway device is in an abnormal working state and is associated with at least one terminal.

[0106] The switching unit 506 is configured to switch the target gateway device to the first communication device by using the Virtual Routing Redundancy Protocol VRRP.

[0107] The control unit 508 is used to control the first communication device to transmit the first data to be transmitted output by the terminal to the service server.

[0108] The data transmission device of this embodiment determines the data transmission state of the Ethernet link through a first determination unit; determines at least one target gateway device in the Ethernet link in response to the data transmission state being an abnormal transmission state through a second determination unit, wherein the target gateway device is in an abnormal working state and is associated with at least one terminal; switches the target gateway device to a first communication device through a switching unit using a virtual routing redundancy protocol VRRP; controls the first communication device through a control unit to transmit the first data to be transmitted output by the terminal to a service server, thereby solving the technical problem of high construction cost of the data transmission link and achieving the technical effect of reducing the construction cost of the data transmission link.

[0109] The embodiment of the present application may provide a computer terminal, which may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal.

[0110] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.

[0111] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the data transmission method: determining the data transmission status of the Ethernet link; in response to the data transmission status being an abnormal transmission status, determining at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state, and the target gateway device is associated with at least one terminal; using the virtual routing redundancy protocol VRRP, switching the target gateway device to a first communication device; controlling the first communication device to transmit the first data to be transmitted output by the terminal to the business server.

[0112] Optionally, Figure 6 is a structural block diagram of a computer terminal according to an embodiment of the present application, such as Figure 6As shown, the computer terminal 608 may include: one or more (only one is shown in the figure) processors 602 , a memory 604 , and a transmission device 606 .

[0113] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for data transmission in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method of data transmission. The memory 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 examples, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 608 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.

[0114] The processor can call the information and application stored in the memory through the transmission device to execute the following steps: determine the data transmission status of the Ethernet link; in response to the data transmission status being an abnormal transmission status, determine at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state and the target gateway device is associated with at least one terminal; use the virtual routing redundancy protocol VRRP to switch the target gateway device to a first communication device; control the first communication device to transmit the first data to be transmitted output by the terminal to the business server.

[0115] It can be understood by those skilled in the art that Figure 6 The structure shown is for illustration only, and the computer terminal 608 may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, referred to as MID), a PAD, or other terminal devices. Figure 6 The structure of the computer terminal 608 is not limited. For example, the computer terminal 608 may also include Figure 6 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 6 Different configurations are shown.

[0116] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0117] According to an embodiment of the present application, a computer-readable storage medium is further provided, the computer-readable storage medium including a stored program, wherein the program executes the data transmission method in the above embodiment.

[0118] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.

[0119] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: determining the data transmission state of the Ethernet link; in response to the data transmission state being an abnormal transmission state, determining at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state, and the target gateway device is associated with at least one terminal; using the virtual routing redundancy protocol VRRP, switching the target gateway device to a first communication device; controlling the first communication device to transmit the first data to be transmitted output by the terminal to the service server.

[0120] Optionally, the computer-readable storage medium may also execute program codes for the following steps: controlling the first communication device to transmit the first data to be transmitted to the second communication device; determining a router associated with the second communication device; and calling the router to transmit the first data to be transmitted in the second communication device to the service server.

[0121] Optionally, the computer-readable storage medium can also execute program codes for the following steps: obtaining second data to be transmitted output by the business server, wherein the second data to be transmitted is different from the first data to be transmitted; determining a target terminal to receive the second data to be transmitted; determining a working status of an associated gateway device associated with the target terminal; and in response to the working status being an abnormal working status, transmitting the second data to be transmitted to a second communication device.

[0122] Optionally, the computer-readable storage medium may also execute program code for the following steps: in response to the second data to be transmitted being transmitted to the second communication device, controlling the second communication device to transmit the second data to be transmitted to the first communication device; and controlling the first communication device to transmit the data to be transmitted to the target terminal.

[0123] Optionally, the computer-readable storage medium may also execute program code of the following steps: in response to the working state being an abnormal state, setting the static route of the target terminal to point to the second communication device; and transmitting the second data to be transmitted to the second communication device according to the static route.

[0124] Optionally, the computer-readable storage medium may also execute program code for the following steps: in response to the working state of the target gateway device, switching from an abnormal working state to a normal working state, and using VRRP to switch the first communication device to the target gateway device.

[0125] In this embodiment, when the data transmission state of the Ethernet link is an abnormal transmission state, the target gateway device in the Ethernet link can be determined, and the target gateway device can be switched to a first communication terminal to utilize the first communication terminal to complete the transmission of the first data to be transmitted output by the terminal. That is, just by adding the first communication device, even if there is an abnormality in the target gateway device associated with the terminal, the data transmission can be completed through the first communication device without adding other devices, thereby solving the technical problem of high cost of setting up the data transmission link and achieving the technical effect of reducing the cost of setting up the data transmission link.

[0126] According to an embodiment of the present application, a processor is further provided, which is used to run a program, wherein the method for data transmission in the above embodiment is executed when the program is run by the processor.

[0127] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.

[0128] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the data transmission method: determining the data transmission status of the Ethernet link; in response to the data transmission status being an abnormal transmission status, determining at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state, and the target gateway device is associated with at least one terminal; using the virtual routing redundancy protocol VRRP, switching the target gateway device to a first communication device; controlling the first communication device to transmit the first data to be transmitted output by the terminal to the business server.

[0129] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for data transmission in the embodiment of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method of data transmission. The memory 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 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer 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.

[0130] The processor can call the information and application stored in the memory through the transmission device to execute the following steps: determine the data transmission status of the Ethernet link; in response to the data transmission status being an abnormal transmission status, determine at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state and the target gateway device is associated with at least one terminal; use the virtual routing redundancy protocol VRRP to switch the target gateway device to a first communication device; control the first communication device to transmit the first data to be transmitted output by the terminal to the business server.

[0131] Optionally, the processor may also execute program codes of the following steps: controlling the first communication device to transmit the first data to be transmitted to the second communication device; determining a router associated with the second communication device; and calling the router to transmit the first data to be transmitted in the second communication device to the service server.

[0132] Optionally, the processor may also execute program codes of the following steps: obtaining second data to be transmitted output by the business server, wherein the second data to be transmitted is different from the first data to be transmitted; determining a target terminal to receive the second data to be transmitted; determining a working status of an associated gateway device associated with the target terminal; and in response to the working status being an abnormal working status, transmitting the second data to be transmitted to the second communication device.

[0133] Optionally, the processor may also execute program codes of the following steps: in response to the second data to be transmitted being transmitted to the second communication device, controlling the second communication device to transmit the second data to be transmitted to the first communication device; and controlling the first communication device to transmit the data to be transmitted to the target terminal.

[0134] Optionally, the processor may also execute program code of the following steps: in response to the working state being an abnormal state, setting a static route of the target terminal to point to the second communication device; and transmitting the second data to be transmitted to the second communication device according to the static route.

[0135] Optionally, the processor may further execute program codes of the following steps: in response to the working state of the target gateway device, switching from an abnormal working state to a normal working state, and using VRRP to switch the first communication device to the target gateway device.

[0136] By adopting the embodiment of the present application, when the data transmission state of the Ethernet link is an abnormal transmission state, when the target gateway device in the Ethernet link can be determined, the target gateway device can be switched to a first communication terminal, so as to utilize the first communication terminal to complete the transmission of the first data to be transmitted output by the terminal. That is, by simply adding the first communication device, even if there is an abnormality in the target gateway device associated with the terminal, the data transmission can be completed through the first communication device without adding other devices, thereby solving the technical problem of high cost of setting up the data transmission link and achieving the technical effect of reducing the cost of setting up the data transmission link.

[0137] According to an embodiment of the present application, a computer program product is further provided. The computer program product includes computer instructions, wherein the computer instructions, when executed by a processor, implement the method for data transmission in the above embodiment.

[0138] An embodiment of the present application may provide an electronic device, which may include a memory and a processor.

[0139] Figure 7 It is a block diagram of an electronic device according to a method of data transmission in accordance with an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0140] like Figure 7As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 to a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0141] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0142] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as a verification method for data. For example, in some embodiments, the verification method for data may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the data verification method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the data verification method in any other appropriate manner (e.g., by means of firmware).

[0143] According to an embodiment of the present application, a method for data transmission is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0144] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor that may be a dedicated or general purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0145] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0146] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or an LCD (liquid crystal display, monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a path ball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0148] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a Local Area Network (LAN), a Wide Area Network (WAN), and the Internet.

[0149] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0150] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0151] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0152] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0154] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0156] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for data transmission, characterized in that: include: Determine the data transmission status of the Ethernet link; In response to the data transmission state being an abnormal transmission state, determining at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state and is associated with at least one terminal; Using Virtual Routing Redundancy Protocol VRRP, switching the target gateway device to the first communication device; The first communication device is controlled to transmit the first data to be transmitted output by the terminal to the service server.

2. The method according to claim 1, characterized in that The controlling the first communication device to transmit the first data to be transmitted output by the terminal to the service server includes: Controlling the first communication device to transmit the first data to be transmitted to the second communication device; determining a router associated with the second communication device; The router is called to transmit the first data to be transmitted in the second communication device to the service server.

3. The method according to claim 1, characterized in that The method further comprises: Acquire second data to be transmitted output by the service server, wherein the second data to be transmitted is different from the first data to be transmitted; Determining a target terminal to receive the second data to be transmitted; Determining a working state of an associated gateway device associated with the target terminal; In response to the working state being an abnormal working state, the second data to be transmitted is transmitted to the second communication device.

4. The method according to claim 3, characterized in that: The method further comprises: In response to the second data to be transmitted being transmitted to the second communication device, controlling the second communication device to transmit the second data to be transmitted to the first communication device; Control the first communication device to transmit the data to be transmitted to the target terminal.

5. The method according to claim 3, characterized in that: In response to the working state being an abnormal working state, transmitting the second data to be transmitted to the second communication device includes: In response to the working state being an abnormal state, setting the static route of the target terminal to point to the second communication device; According to the static route, the second data to be transmitted is transmitted to the second communication device.

6. The method according to claim 1, characterized in that The method further comprises: In response to the working state of the target gateway device, the abnormal working state is switched to a normal working state, and the first communication device is switched to the target gateway device by using the VRRP.

7. A data transmission system, characterized in that: include: A terminal, used for outputting first data to be transmitted; A first communication device, configured to determine at least one target gateway device in the Ethernet link in response to the data transmission state being an abnormal transmission state, wherein the target gateway device is in an abnormal working state and is associated with at least one terminal; The target gateway device is adjusted to the first communication device by using the Virtual Routing Redundancy Protocol (VRRP); and the first data to be transmitted is transmitted to the service server.

8. The system according to claim 7, characterized in that The system further comprises: a second communication device, configured to obtain the first data to be transmitted transmitted by the first communication device, and transmit the first data to be transmitted to a router; The service server is used to obtain the first data to be transmitted sent by the router.

9. The system according to claim 7, characterized in that The system further comprises: The gateway system server is used to identify at least one of the target gateway devices in the Ethernet link.

10. A data transmission device, characterized in that: include: A first determining unit, used to determine the data transmission state of the Ethernet link; A second determining unit, configured to determine, in response to the data transmission state being an abnormal transmission state, at least one target gateway device in the Ethernet link, wherein the target gateway device is in an abnormal working state and is associated with at least one terminal; A switching unit, configured to switch the target gateway device to the first communication device by using a virtual routing redundancy protocol VRRP; The control unit is used to control the first communication device to transmit the first data to be transmitted output by the terminal to the service server.

Citation Information

Patent Citations

  • Service switching method and device in backup network

    CN108696417A

  • Data transmission method and system

    CN112615755A

  • Data transmission switching method, terminal equipment and computer readable storage medium

    CN115514767A

  • Method and device for taking 5G wireless network as backup link in wired looped network

    CN117081986A