CN114268578A - Data transmission method, device and equipment for switching line and storage medium - Google Patents

Data transmission method, device and equipment for switching line and storage medium Download PDF

Info

Publication number
CN114268578A
CN114268578A CN202111546285.5A CN202111546285A CN114268578A CN 114268578 A CN114268578 A CN 114268578A CN 202111546285 A CN202111546285 A CN 202111546285A CN 114268578 A CN114268578 A CN 114268578A
Authority
CN
China
Prior art keywords
route
data packet
data transmission
external system
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111546285.5A
Other languages
Chinese (zh)
Other versions
CN114268578B (en
Inventor
陈波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202111546285.5A priority Critical patent/CN114268578B/en
Publication of CN114268578A publication Critical patent/CN114268578A/en
Application granted granted Critical
Publication of CN114268578B publication Critical patent/CN114268578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to the technical field of networks and discloses a data transmission method, a data transmission device, data transmission equipment and a storage medium for switching lines. The method comprises the following steps: acquiring a service data packet sent by an application server, and determining an opposite-end external system corresponding to the service data packet; determining a private network route and a VPN network route corresponding to an external system of an opposite terminal; selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy; and transmitting the service data packet to an opposite-end external system through the route to be transmitted. Through the mode, the double lines of the special line and the VPN network are used for data transmission, the cost is lower compared with a mode of taking the special line as a standby line, a proper line is selected from the special line and the VPN network for data transmission, automatic line switching is achieved, and the line switching is simple and intelligent.

Description

Data transmission method, device and equipment for switching line and storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method, an apparatus, a device, and a storage medium for data transmission of a switched line.
Background
With the requirement for higher reliability of enterprise data transmission, most enterprises use a main and standby network line with a dedicated line, but the utilization rate of the dedicated line as a standby line is very low, the cost is high, and the process is complex when other networks are used as standby lines to switch the lines in the prior art, and application configuration needs to be modified manually and services need to be restarted.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a data transmission method, a data transmission device, data transmission equipment and a data transmission storage medium for switching lines, and aims to solve the technical problems of low utilization rate and high cost of a special line as a standby line in the prior art.
In order to achieve the above object, the present invention provides a data transmission method for switching a line, the method comprising the steps of:
acquiring a service data packet sent by an application server, and determining an opposite-end external system corresponding to the service data packet;
determining a private network route and a VPN network route corresponding to the opposite-end external system;
selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy;
and transmitting the service data packet to the opposite-end external system through the route to be transmitted.
Optionally, the selecting the route to be transmitted from the private network route and the VPN network route according to a preset selection policy includes:
carrying out network speed test on the private network route and the VPN network route to determine the corresponding communication quantity of the private network route and the corresponding communication quantity of the VPN network route;
and selecting a route with large connecting quantity from the private network route and the VPN network route as a route to be transmitted.
Optionally, the selecting the route to be transmitted from the private network route and the VPN network route according to a preset selection policy includes:
determining a service type corresponding to the service data packet;
searching a corresponding transmission requirement according to the service type;
and selecting a route meeting the transmission requirement from the private network route and the VPN network route as a route to be transmitted.
Optionally, after the service data packet is transmitted to the peer external system through the to-be-transmitted route, the method further includes:
when the transmission abnormity is detected, stopping transmitting data through the route to be transmitted;
and switching the network route, and transmitting the service data packet to the opposite-end external system through the switched network route.
Optionally, the transmitting the service data packet to the peer external system through the to-be-transmitted route includes:
acquiring preset forwarding configuration information, wherein the preset forwarding configuration information at least comprises allowable failure times and connection time limit;
transmitting the service data packet to the opposite-end external system through the route to be transmitted according to the preset forwarding configuration information;
when the transmission abnormality is detected, stopping data transmission through the route to be transmitted, including:
when the connection establishment time length with the opposite-end external system is longer than the connection time limit, determining that the connection fails;
and when the connection failure times are larger than the allowable failure times, judging that the transmission is abnormal, and stopping transmitting data through the route to be transmitted.
Optionally, the determining a private network route and a VPN network route corresponding to the peer external system includes:
determining a private network address and a VPN network address corresponding to the opposite-end external system;
determining a private network route according to a preset private network interface and the private network address;
and determining the VPN network route according to a preset VPN network interface and the VPN network address.
Optionally, the obtaining a service data packet sent by an application server and determining an external system of an opposite terminal corresponding to the service data packet includes:
sending a data packet request to an application server according to a preset receiving type, wherein the application server feeds back a service data packet when determining that the service type of the service data packet is matched with the receiving type corresponding to the data packet request;
and receiving a service data packet sent by the application server, and determining an opposite-end external system corresponding to the service data packet.
In addition, in order to achieve the above object, the present invention further provides a data transmission device of a switched line, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a service data packet sent by an application server and determining an opposite-end external system corresponding to the service data packet;
the determining module is used for determining a private network route and a VPN network route corresponding to the opposite-end external system;
the selection module is used for selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy;
and the transmission module is used for transmitting the service data packet to the opposite-end external system through the route to be transmitted.
In addition, to achieve the above object, the present invention further provides a line-switched data transmission device, including: the data transmission program of the switching line is configured to realize the data transmission method of the switching line as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having stored thereon a data transmission program of a switching line, which when executed by a processor, implements the data transmission method of a switching line as described above.
The method comprises the steps of obtaining a service data packet sent by an application server, and determining an opposite-end external system corresponding to the service data packet; determining a private network route and a VPN network route corresponding to an external system of an opposite terminal; selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy; and transmitting the service data packet to an opposite-end external system through the route to be transmitted. Through the mode, the double lines of the special line and the VPN network are used for data transmission, the cost is lower compared with a mode of taking the special line as a standby line, a proper line is selected from the special line and the VPN network for data transmission, automatic line switching is achieved, and the line switching is simple and intelligent.
Drawings
Fig. 1 is a schematic structural diagram of a data transmission device for switching lines in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a data transmission method for a switching line according to a first embodiment of the present invention;
FIG. 3 is a schematic system layout diagram illustrating a data transmission method for a switching line according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a data transmission method for a switching line according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a data transmission method for a switching line according to a second embodiment of the present invention;
fig. 6 is a block diagram of a first embodiment of a data transmission apparatus for switching lines according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data transmission device for switching a line in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the data transmission device of the switching line may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the data transmission device of the switching line, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a data transfer program of a switching line.
In the switched-line data transmission apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the data transmission device of the switched line of the present invention may be provided in the data transmission device of the switched line, which calls the data transmission program of the switched line stored in the memory 1005 through the processor 1001 and executes the data transmission method of the switched line provided by the embodiment of the present invention.
An embodiment of the present invention provides a data transmission method for a switching line, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the data transmission method for a switching line according to the present invention.
In this embodiment, the data transmission method for the switching line includes the following steps:
step S10: the method comprises the steps of obtaining a service data packet sent by an application server, and determining an opposite-end external system corresponding to the service data packet.
It can be understood that the main execution body of this embodiment is a data transmission device for switching a line, where the data transmission device for switching a line may be an electronic device such as a computer and a server, and may also be a routing device such as a router and a gateway device, and this embodiment takes an Nginx host as an example for description.
It should be noted that the service data packet is a data packet corresponding to transmitted service data, the service data packet includes address information corresponding to an external device at the opposite end, and the external system at the opposite end is a device that receives the service data packet. The application server of the embodiment is arranged in an SF region of a network system, that is, a region where an intranet application and a core application are deployed, and a client accesses the application server through a DMZ isolation region in an internet form to acquire related data. And when receiving the service data packet, the application server sends the application data packet to the Nginx host computer arranged in the partner area, so that the external system is accessed through the Nginx host computer.
Specifically, in order to improve the transmission efficiency of the service data packet, the step S10 includes: sending a data packet request to an application server according to a preset receiving type, wherein the application server feeds back a service data packet when determining that the service type of the service data packet is matched with the receiving type corresponding to the data packet request; and receiving a service data packet sent by the application server, and determining an opposite-end external system corresponding to the service data packet.
It should be understood that, referring to fig. 3, fig. 3 is a schematic system layout diagram of an embodiment of a data transmission method for a switching line according to the present invention; in this embodiment, a plurality of nginn hosts are provided, the external system is provided with a private network address and a VPN network address, and each of the nginn hosts is also provided with different access ports for accessing the private network address and the VPN network address of the external system, respectively. Optionally, each of the nginn hosts is configured to transmit service data packets of different service types, and when the application server obtains the service data packet, the application server selects a corresponding target nginn host according to a service type corresponding to the service data packet, and sends the service data packet to the nginn host. And each Nginx host receives the service data packet sent by the application server according to a preset receiving type, wherein the service type of the received service data packet is matched with the receiving type. Optionally, in another implementation manner, the nginnx host feeds back the running state to the application server every preset period, and the application server selects a target nginnx host with an optimal running state according to the running states of the plurality of nginnx hosts and transmits the service data packet to the target nginnx host.
It should be noted that, when receiving a service data packet, the application server determines a type corresponding to the service data packet, and configures different identifiers for service data packets of different service types, where the service types may be distinguished according to actions performed by services, for example: inquiry, payment and the like, and can also be distinguished according to the size of the service data packet, for example, a data packet larger than 2Mb is marked as a packet with large data volume, and if the data volume of the service data packet is large, an idle Nginx host is selected for transmission.
Step S20: and determining a private network route and a VPN network route corresponding to the opposite-end external system.
It can be understood that the private line service is mostly oriented to enterprises, governments and other customers with higher data access/interconnection requirements and higher service requirements, has fixed network IP addresses, and does not need access authentication. VPN is a communication method commonly used for connecting private networks between medium-sized and large-sized enterprises or groups, and achieves private message security effects such as confidentiality, sender authentication, message accuracy and the like by using a Tunneling Protocol (Tunneling Protocol). In this embodiment, the nginnx host configures different network routes to access virtual IP addresses of the external system of the peer end, respectively.
Specifically, the step S20 includes: determining a private network address and a VPN network address corresponding to the opposite-end external system; determining a private network route according to a preset private network interface and the private network address; and determining the VPN network route according to a preset VPN network interface and the VPN network address.
It should be noted that, in this embodiment, the peer external system provides corresponding virtual IP service addresses and ports to the private line and the VPN as needed, for example: the virtual IP address corresponding to the VPN network is set to be 10.88.4.44, and the virtual IP address corresponding to the private network is set to be 10.88.4.45. Optionally, address information corresponding to each external system is stored in each proxy host, and a corresponding mapping relation table or database is queried according to information corresponding to the opposite-end external system to obtain a corresponding private network address and a corresponding VPN network address. In a specific implementation, the nginn host determines a private network address and a VPN network address corresponding to the peer external system through interaction with the peer external system, and sets a network interface for accessing different networks in advance, for example, setting an eth0 network interface for accessing the VPN network address, and setting an eth1 network interface for accessing the private network address. Referring to fig. 3, taking an 10.49.195.253 host as an example, the host is configured with the following routes:
route add-net 10.88.4.44gw 172.30.0.254netmask 255.255.255.255eth1;
the net identifies a virtual IP address, gw represents a gateway, netmask represents a subnet mask, and eth1 represents a preset private network interface, that is, a service accessed 10.88.4.44 through a current route will perform data transmission through the private network.
Step S30: and selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy.
It can be understood that the preset selection policy may configure a private network address and a VPN network address for the Nginx host using openness, automatically detect whether the private network route is available, and perform data transmission by using the VPN network route when the private network route is abnormal. Optionally, the preset selection policy is to select a network route with a large communication capacity for transmission, perform a communication capacity test by using ping (network diagnostic tool) according to the private network address and the VPN network address, determine the communication capacity states corresponding to the private network and the VPN network, and select a network route with a large communication capacity for transmission. Optionally, the preset selection policy is to select a corresponding network route according to a service type corresponding to the service data packet.
Step S40: and transmitting the service data packet to the opposite-end external system through the route to be transmitted.
It can be understood that, when a VPN network route is selected for data transmission, the embodiment uses an open-VPN technology to transmit the service data packet to the external system at the opposite end. Configuring a forwarding mechanism in advance, configuring a route to be transmitted, and automatically sending the service data packet according to the corresponding forwarding mechanism. In this embodiment, the internal application service forwards the access request through the proxy (nginx) in the partner area, thereby accessing the external system through the private line + VPN.
In the embodiment, a service data packet sent by an application server is obtained, and an opposite-end external system corresponding to the service data packet is determined; determining a private network route and a VPN network route corresponding to an external system of an opposite terminal; selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy; and transmitting the service data packet to an opposite-end external system through the route to be transmitted. Through the mode, the double lines of the special line and the VPN network are used for data transmission, the cost is lower compared with a mode of taking the special line as a standby line, a proper line is selected from the special line and the VPN network for data transmission, automatic line switching is achieved, and the line switching is simple and intelligent.
Referring to fig. 4, fig. 4 is a flowchart illustrating a data transmission method for a switching line according to a second embodiment of the present invention.
Based on the first embodiment, the step S30 of the data transmission method for switching lines in this embodiment includes:
step S301: and carrying out network speed test on the private network route and the VPN network route to determine the corresponding communication quantity of the private network route and the corresponding communication quantity of the VPN network route.
Step S302: and selecting a route with large connecting quantity from the private network route and the VPN network route as a route to be transmitted.
It can be understood that, in this embodiment, a ping (network diagnostic tool) is used to perform network speed test on the private network route and the VPN network route, determine the communication quantity of the private network and the VPN network, and select a route with a large communication quantity as a route to be transmitted.
In the embodiment, a service data packet sent by an application server is obtained, and an opposite-end external system corresponding to the service data packet is determined; determining a private network route and a VPN network route corresponding to an external system of an opposite terminal; carrying out network speed test on the private network route and the VPN network route to determine the corresponding communication quantity of the private network route and the corresponding communication quantity of the VPN network route; selecting a route with large connecting capacity from private network routes and VPN network routes as a route to be transmitted; and transmitting the service data packet to an opposite-end external system through the route to be transmitted. By the mode, a high-quality line with large connecting quantity is selected from the private network route and the VPN network route for data packet transmission, the data packet transmission quality and the network stability are guaranteed, the VPN network is automatically selected for data transmission when the private network fails, the line utilization rate is improved, automatic line switching is achieved, and the line switching is simple and intelligent.
Referring to fig. 5, fig. 5 is a flowchart illustrating a data transmission method for a switching line according to a third embodiment of the present invention.
Based on the first embodiment, the step S30 of the data transmission method for switching lines in this embodiment includes:
step S303: and determining the service type corresponding to the service data packet.
It can be understood that, when receiving a service data packet, the application server determines the type corresponding to the service data packet, and configures different identifiers for the service data packets of different service types, and when receiving the service data packet, the nginx host determines the identifier corresponding to the service data packet, so as to determine the corresponding service type.
Step S304: and searching the corresponding transmission requirement according to the service type.
It should be noted that, transmission requirements corresponding to different service types are preset, and the service types and the transmission requirements are stored in a mapping relation table or a database, for example, the payment service type needs to ensure high stability, and the transmission requirement corresponding to the payment service type is set to use a stable dedicated route for data transmission. And when the corresponding transmission requirement is not found, the transmission is carried out through the private network route by default, and if the transmission is abnormal, the VPN route is automatically switched to.
Step S305: and selecting a route meeting the transmission requirement from the private network route and the VPN network route as a route to be transmitted.
It should be understood that the transmission requirement carries identification information corresponding to the private network route or the VPN network route, and the corresponding route to be transmitted is determined according to the transmission requirement.
Further, to avoid data loss caused by network anomaly, automatic route switching is further implemented, after step S40, the method further includes: when the transmission abnormity is detected, stopping transmitting data through the route to be transmitted; and switching the network route, and transmitting the service data packet to the opposite-end external system through the switched network route.
It should be noted that, if an abnormality occurs when the service data packet is transmitted through the private network route, the network is switched to the VPN network route for transmission, and if an abnormality occurs when the service data packet is transmitted through the VPN network route, the network is switched to the private network route for transmission, thereby ensuring the network stability.
Further, the step S40 includes: acquiring preset forwarding configuration information, wherein the preset forwarding configuration information at least comprises allowable failure times and connection time limit; transmitting the service data packet to the opposite-end external system through the route to be transmitted according to the preset forwarding configuration information;
when the transmission abnormality is detected, stopping data transmission through the route to be transmitted, including: when the connection establishment time length with the opposite-end external system is longer than the connection time limit, determining that the connection fails; and when the connection failure times are larger than the allowable failure times, judging that the transmission is abnormal, and stopping transmitting data through the route to be transmitted.
It is understood that forwarding configuration information is configured in advance, for example:
Figure BDA0003415429510000101
in this embodiment, the allowed failure times are 0 times, the connection time is 5 seconds, if the connection time with the external system of the opposite terminal is longer than 5 seconds, the connection is determined to be failed this time, the connection failure times are 1 time, and the connection failure times are greater than the allowed failure times, it is determined that transmission abnormality is detected, and the network route for transmitting data is switched.
In the embodiment, a service data packet sent by an application server is obtained, and an opposite-end external system corresponding to the service data packet is determined; determining a private network route and a VPN network route corresponding to an external system of an opposite terminal; determining a service type corresponding to the service data packet; searching a corresponding transmission requirement according to the service type; selecting a route meeting the transmission requirement from the private network route and the VPN network route as a route to be transmitted; and transmitting the service data packet to an opposite-end external system through the route to be transmitted. By the method, the lines matched with the transmission requirements are selected from the private network route and the VPN network route according to the service types for transmission, high-requirement data are preferentially transmitted through the private lines, and data packet transmission quality and network stability are guaranteed.
Furthermore, an embodiment of the present invention further provides a storage medium, where a data transmission program of a switching line is stored, and the data transmission program of the switching line, when executed by a processor, implements the data transmission method of the switching line as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Referring to fig. 6, fig. 6 is a block diagram of a data transmission device according to a first embodiment of the present invention.
As shown in fig. 6, the data transmission apparatus for switching a line according to the embodiment of the present invention includes:
the obtaining module 10 is configured to obtain a service data packet sent by an application server, and determine an opposite-end external system corresponding to the service data packet.
A determining module 20, configured to determine a private network route and a VPN network route corresponding to the peer external system.
And the selection module 30 is configured to select a route to be transmitted from the private network route and the VPN network route according to a preset selection policy.
And the transmission module 40 is configured to transmit the service data packet to the peer external system through the route to be transmitted.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, a service data packet sent by an application server is obtained, and an opposite-end external system corresponding to the service data packet is determined; determining a private network route and a VPN network route corresponding to an external system of an opposite terminal; selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy; and transmitting the service data packet to an opposite-end external system through the route to be transmitted. Through the mode, the double lines of the special line and the VPN network are used for data transmission, the cost is lower compared with a mode of taking the special line as a standby line, a proper line is selected from the special line and the VPN network for data transmission, automatic line switching is achieved, and the line switching is simple and intelligent.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the data transmission method of the switching line provided in any embodiment of the present invention, and are not described herein again.
In an embodiment, the selecting module 30 is further configured to perform a network speed test on the private network route and the VPN network route to determine a communication quantity corresponding to the private network route and a communication quantity corresponding to the VPN network route; and selecting a route with large connecting quantity from the private network route and the VPN network route as a route to be transmitted.
In an embodiment, the selecting module 30 is further configured to determine a service type corresponding to the service data packet; searching a corresponding transmission requirement according to the service type; and selecting a route meeting the transmission requirement from the private network route and the VPN network route as a route to be transmitted.
In an embodiment, the transmission module 40 is further configured to stop performing data transmission through the route to be transmitted when transmission abnormality is detected; and switching the network route, and transmitting the service data packet to the opposite-end external system through the switched network route.
In an embodiment, the transmission module 40 is further configured to obtain preset forwarding configuration information, where the preset forwarding configuration information at least includes the number of allowed failures and a connection time limit; transmitting the service data packet to the opposite-end external system through the route to be transmitted according to the preset forwarding configuration information; when the connection establishment time length with the opposite-end external system is longer than the connection time limit, determining that the connection fails; and when the connection failure times are larger than the allowable failure times, judging that the transmission is abnormal, and stopping transmitting data through the route to be transmitted.
In an embodiment, the determining module 20 is further configured to determine a private network address and a VPN network address corresponding to the peer external system; determining a private network route according to a preset private network interface and the private network address; and determining the VPN network route according to a preset VPN network interface and the VPN network address.
In an embodiment, the obtaining module 10 is further configured to send a data packet request to an application server according to a preset receiving type, where the application server feeds back a service data packet when determining that a service type of the service data packet matches a receiving type corresponding to the data packet request; and receiving a service data packet sent by the application server, and determining an opposite-end external system corresponding to the service data packet.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data transmission method for a switched line, the data transmission method for a switched line comprising:
acquiring a service data packet sent by an application server, and determining an opposite-end external system corresponding to the service data packet;
determining a private network route and a VPN network route corresponding to the opposite-end external system;
selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy;
and transmitting the service data packet to the opposite-end external system through the route to be transmitted.
2. The line-switching data transmission method according to claim 1, wherein the selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection policy includes:
carrying out network speed test on the private network route and the VPN network route to determine the corresponding communication quantity of the private network route and the corresponding communication quantity of the VPN network route;
and selecting a route with large connecting quantity from the private network route and the VPN network route as a route to be transmitted.
3. The line-switching data transmission method according to claim 1, wherein the selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection policy includes:
determining a service type corresponding to the service data packet;
searching a corresponding transmission requirement according to the service type;
and selecting a route meeting the transmission requirement from the private network route and the VPN network route as a route to be transmitted.
4. The switched-line data transmission method according to claim 3, wherein after the service data packet is transmitted to the peer external system through the route to be transmitted, the method further includes:
when the transmission abnormity is detected, stopping transmitting data through the route to be transmitted;
and switching the network route, and transmitting the service data packet to the opposite-end external system through the switched network route.
5. The line-switching data transmission method according to claim 4, wherein the transmitting the service data packet to the peer external system through the to-be-transmitted route includes:
acquiring preset forwarding configuration information, wherein the preset forwarding configuration information at least comprises allowable failure times and connection time limit;
transmitting the service data packet to the opposite-end external system through the route to be transmitted according to the preset forwarding configuration information;
when the transmission abnormality is detected, stopping data transmission through the route to be transmitted, including:
when the connection establishment time length with the opposite-end external system is longer than the connection time limit, determining that the connection fails;
and when the connection failure times are larger than the allowable failure times, judging that the transmission is abnormal, and stopping transmitting data through the route to be transmitted.
6. The switched-line data transmission method according to any one of claims 1 to 5, wherein the determining the private network route and the VPN network route corresponding to the peer external system includes:
determining a private network address and a VPN network address corresponding to the opposite-end external system;
determining a private network route according to a preset private network interface and the private network address;
and determining the VPN network route according to a preset VPN network interface and the VPN network address.
7. The line-switching data transmission method according to any one of claims 1 to 5, wherein the obtaining a service data packet sent by an application server and determining an external system of an opposite end to which the service data packet corresponds, includes:
sending a data packet request to an application server according to a preset receiving type, wherein the application server feeds back a service data packet when determining that the service type of the service data packet is matched with the receiving type corresponding to the data packet request;
and receiving a service data packet sent by the application server, and determining an opposite-end external system corresponding to the service data packet.
8. A data transmission apparatus of a switched line, characterized in that the data transmission apparatus of the switched line comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a service data packet sent by an application server and determining an opposite-end external system corresponding to the service data packet;
the determining module is used for determining a private network route and a VPN network route corresponding to the opposite-end external system;
the selection module is used for selecting a route to be transmitted from the private network route and the VPN network route according to a preset selection strategy;
and the transmission module is used for transmitting the service data packet to the opposite-end external system through the route to be transmitted.
9. A data transmission apparatus that switches lines, the apparatus comprising: a memory, a processor, and a switched-line data transmission program stored on the memory and executable on the processor, the switched-line data transmission program being configured to implement the switched-line data transmission method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a data transmission program of a switching line, which when executed by a processor implements the data transmission method of a switching line according to any one of claims 1 to 7.
CN202111546285.5A 2021-12-16 2021-12-16 Data transmission method, device, equipment and storage medium for switching line Active CN114268578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111546285.5A CN114268578B (en) 2021-12-16 2021-12-16 Data transmission method, device, equipment and storage medium for switching line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111546285.5A CN114268578B (en) 2021-12-16 2021-12-16 Data transmission method, device, equipment and storage medium for switching line

Publications (2)

Publication Number Publication Date
CN114268578A true CN114268578A (en) 2022-04-01
CN114268578B CN114268578B (en) 2024-04-02

Family

ID=80827572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111546285.5A Active CN114268578B (en) 2021-12-16 2021-12-16 Data transmission method, device, equipment and storage medium for switching line

Country Status (1)

Country Link
CN (1) CN114268578B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885115A (en) * 2022-07-06 2022-08-09 杭州峰图信息技术有限责任公司 Automatic switching device for communication line

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007009347A1 (en) * 2005-07-15 2007-01-25 Huawei Technologies Co., Ltd. A method and apparatus for transmitting service stream on a virtual interchange system
CN101159670A (en) * 2007-11-02 2008-04-09 华为技术有限公司 Service transmission method and device thereof
CN102833167A (en) * 2012-08-28 2012-12-19 瑞斯康达科技发展股份有限公司 Method and data for transmitting data between local area networks
CN103312579A (en) * 2013-05-29 2013-09-18 深信服网络科技(深圳)有限公司 Line switching method and device
WO2015085808A1 (en) * 2013-12-09 2015-06-18 成都达信通通讯设备有限公司 Secure application system with mobile terminal automatically switching different channel networking interfaces
CN111224881A (en) * 2019-11-28 2020-06-02 深信服科技股份有限公司 Routing method, system, equipment and computer readable storage medium
CN111901387A (en) * 2020-07-01 2020-11-06 中国联合网络通信集团有限公司 Connection method and device of cloud special line

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007009347A1 (en) * 2005-07-15 2007-01-25 Huawei Technologies Co., Ltd. A method and apparatus for transmitting service stream on a virtual interchange system
CN101159670A (en) * 2007-11-02 2008-04-09 华为技术有限公司 Service transmission method and device thereof
CN102833167A (en) * 2012-08-28 2012-12-19 瑞斯康达科技发展股份有限公司 Method and data for transmitting data between local area networks
CN103312579A (en) * 2013-05-29 2013-09-18 深信服网络科技(深圳)有限公司 Line switching method and device
WO2015085808A1 (en) * 2013-12-09 2015-06-18 成都达信通通讯设备有限公司 Secure application system with mobile terminal automatically switching different channel networking interfaces
CN111224881A (en) * 2019-11-28 2020-06-02 深信服科技股份有限公司 Routing method, system, equipment and computer readable storage medium
CN111901387A (en) * 2020-07-01 2020-11-06 中国联合网络通信集团有限公司 Connection method and device of cloud special line

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885115A (en) * 2022-07-06 2022-08-09 杭州峰图信息技术有限责任公司 Automatic switching device for communication line

Also Published As

Publication number Publication date
CN114268578B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
US7177952B1 (en) Method and system for switching between two network access technologies without interrupting active network applications
US6591306B1 (en) IP network access for portable devices
US8543706B2 (en) Communication module for connecting application program to virtual private network
JP2005167435A (en) Vrrp technology sustaining confidentiality of vr
CN108737183B (en) Method and device for monitoring forwarding table item
CN114465931A (en) Network detection method, device, electronic equipment and storage medium
CN114268578B (en) Data transmission method, device, equipment and storage medium for switching line
WO2019196914A1 (en) Method for discovering forwarding path, and related device thereof
US7747849B2 (en) Secure communications equipment for processing data packets according to the send mechanism
CN110601989A (en) Network traffic balancing method and device
CN107659436A (en) A kind of method and device for preventing service disconnection
US20220294728A1 (en) Packet Transmission Path Switching Method, Device, and System
Chiu et al. Design the dns-like smart switch for heterogeneous network base on sdn architecture
CN110545240B (en) Method for establishing label forwarding table and forwarding message based on distributed aggregation system
US11082260B2 (en) Network system, network device, and recording medium
Cisco Troubleshooting Internetworking Systems
Cisco General Switch Commands
Cisco Release Notes for Catalyst 4000 Family Layer 3 Services Module
JP2004343420A (en) Network terminal equipment and its control method
JP6898120B2 (en) Network system, network system address resolution method, and base-side connection device
EP3200433A1 (en) Ipv6 address management method, device and terminal
US20200274791A1 (en) Multi-vrf and multi-service insertion on edge gateway virtual machines
JP3575369B2 (en) Access routing method and access providing system
JP2001136202A (en) Method and system for setting connection in tcp/ip
WO2023134350A1 (en) Message sending method, message receiving method, information sending method, and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant