CN111182022A - Data transmission method and device, storage medium and electronic device - Google Patents

Data transmission method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111182022A
CN111182022A CN201911056416.4A CN201911056416A CN111182022A CN 111182022 A CN111182022 A CN 111182022A CN 201911056416 A CN201911056416 A CN 201911056416A CN 111182022 A CN111182022 A CN 111182022A
Authority
CN
China
Prior art keywords
target
data
network
network node
forwarding
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
CN201911056416.4A
Other languages
Chinese (zh)
Other versions
CN111182022B (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.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Cloud Computing Beijing 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 Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Cloud Computing Beijing Co Ltd
Priority to CN201911056416.4A priority Critical patent/CN111182022B/en
Publication of CN111182022A publication Critical patent/CN111182022A/en
Application granted granted Critical
Publication of CN111182022B publication Critical patent/CN111182022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The invention discloses a data transmission method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring a data forwarding request, wherein the data forwarding request is used for requesting to send target data from source network equipment to target network equipment; responding to the data forwarding request, and determining a target network node configured with a private line communication resource in a communication network; generating a target communication channel for transmitting target data according to a target network node; target data is sent from the source network device to the target network device in the target communication channel. The invention solves the technical problem of data transmission in the related technology.

Description

Data transmission method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a data transmission method and apparatus, a storage medium, and an electronic apparatus.
Background
The problem that the cross-domain public network delay is large and the packet loss rate is high in the aspect of network of the game sea-going business is solved, so that the player experience of the instant battle game is poor. The cross-border special line of the cloud manufacturer can realize network transmission with low delay and low packet loss. However, the coverage range of cloud manufacturers is not large enough, the special line is not enough, and the acceleration scheme of the global uniform type cannot be realized.
At present, data is mainly forwarded by using public Network acceleration and private line acceleration, and a typical product of the public Network acceleration is dynamic acceleration of a Content Delivery Network (CDN). The special line acceleration is a Data transmission channel with low time delay and low packet loss rate, which is provided for a client by a small number of head cloud factories by utilizing the capability of respective special lines and an Internet Data Center (IDC for short). However, the private line acceleration is three-layer acceleration by using a network private line, and if the game requires a port-level mapping and load balancing function, the requirement of data transmission cannot be met.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and device, a storage medium and an electronic device, which are used for at least solving the technical problem of data transmission in the related technology.
According to an aspect of the embodiments of the present invention, there is provided a data transmission method, including: acquiring a data forwarding request, wherein the data forwarding request is used for requesting to send target data from source network equipment to target network equipment; responding to the data forwarding request, and determining a target network node configured with a private line communication resource in a communication network; generating a target communication channel for transmitting the target data according to the target network node; and transmitting the target data from the source network device to the target network device in the target communication channel.
According to another aspect of the embodiments of the present invention, there is also provided a data transmitting apparatus, including: the system comprises an acquisition module, a sending module and a receiving module, wherein the acquisition module is used for acquiring a data forwarding request, and the data forwarding request is used for requesting to send target data from source network equipment to target network equipment; a first determining module, configured to determine, in a communication network, a target network node configured with a dedicated communication resource in response to the data forwarding request; a first generating module, configured to generate a target communication channel for sending the target data according to the target network node; a first sending module, configured to send the target data from the source network device to the target network device in the target communication channel.
Optionally, the first determining module includes: a first determining unit, configured to determine a network device cluster established in each region in the communication network, where each network device in the network device cluster is to be a network node in the communication network; a second determining unit, configured to use the network node corresponding to the network device configured with the dedicated communication resource determined from the network device cluster as the target network node.
Optionally, the first generating module includes: an obtaining unit, configured to obtain quaternary group data of the network device corresponding to the target network node, where the quaternary group data includes: a source IP address, a source port, a destination IP address, and a destination port; and the third determining unit is used for determining the target communication channel according to the quadruple data.
Optionally, the sending module includes: a fourth determining unit, configured to determine an access domain name and an access port of the target network node; a generating unit, configured to generate a dynamic port mapping corresponding to the access domain name and the access port, where the dynamic port mapping is used to instruct the target network node to send the target data to a next network node corresponding to the target network node.
Optionally, the sending module includes: a setting unit, configured to set, when the target network node includes multiple forwarding devices, a weight of each of the multiple forwarding devices according to the mapping of the dynamic port; a fifth determining unit, configured to determine, according to the weight of each forwarding device, a target forwarding device that forwards the target data at the target network node; a first sending unit, configured to send, in the target communication channel, the target data from the source network device to the target network device by using the target forwarding device.
Optionally, the sending module includes: a sixth determining unit, configured to determine link information for forwarding the target data, where the link information includes at least one of: area information accessed by the source network device, area information of the target network device, a starting network node of the target data, a target network node of the target data, network information of a network node through which the target data is forwarded, information of forwarding equipment for forwarding the target data, and cluster information of the target network node; a second sending unit, configured to send the target data from the source network device to the target network device in the target communication channel according to the link information.
Optionally, the apparatus further comprises at least one of: a second sending module, configured to send a probe instruction to a target network node after a target communication channel for sending the target data is generated according to the target network node, where the probe instruction is used to probe whether the target network node fails; an adjusting module, configured to adjust the target communication channel when first failure information is received, where the first failure information is used to indicate that the target network node fails; and the second determining module is used for determining that the target network equipment fails under the condition of receiving the second failure information.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above data transmission method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the data transmission method through the computer program.
In the embodiment of the invention, a data forwarding request is acquired, wherein the data forwarding request is used for requesting to send target data from source network equipment to target network equipment; responding to the data forwarding request, and determining a target network node configured with a private line communication resource in a communication network; generating a target communication channel for transmitting target data according to a target network node; target data is sent from the source network device to the target network device in the target communication channel. The time delay of data transmission is reduced, and the efficiency of data transmission is improved. And further the technical problem of data transmission in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative data transmission method according to an embodiment of the present invention;
fig. 2 is a flow chart of an alternative data transmission method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative communication channel in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative defined communication channel according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative definition of a communication channel according to an embodiment of the present invention;
FIG. 6 is a schematic diagram (III) of an alternative defined communication channel according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an alternative listener in accordance with embodiments of the invention;
FIG. 8 is a schematic diagram of an alternative forwarding network according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating an alternative quad of data to be forwarded according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an alternative forwarding rule according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of an alternative network node weight according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a method of altering a forwarding algorithm at a network node according to an embodiment of the invention;
fig. 13 is a schematic structural diagram of an alternative data transmission apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a data transmission method is provided, and optionally, as an optional implementation manner, the data transmission method may be applied, but not limited, to an environment as shown in fig. 1.
The client in fig. 1 may operate in a user equipment 102, where the user equipment 102 includes a memory 104 for storing data to be forwarded and a processor 106 for processing the data to be forwarded. The user equipment 102 sends the data to be forwarded to the server 112 via the target communication channel 110, which is determined by S102-S106. The server 112 includes a database 114 for storing data to be forwarded and a processing engine 116 for processing the data to be forwarded. As shown in fig. 1, the data to be forwarded obtained on the client may be sent to the server 112.
Optionally, the data sending method may be but is not limited to be applied to a client running on a user equipment 102 that can forward data, the user equipment 102 may be a mobile phone, a tablet computer, a notebook computer, a PC, or the like, and the target communication 110 may include but is not limited to a plurality of network nodes, and the network nodes are connected through a dedicated network line. The server 112 may include, but is not limited to, any hardware device capable of performing computations.
Optionally, as an optional implementation manner, as shown in fig. 2, the data sending method includes:
s202: acquiring a data forwarding request, wherein the data forwarding request is used for requesting to send target data from source network equipment to target network equipment;
s204: responding to the data forwarding request, and determining a target network node configured with a private line communication resource in a communication network;
s206: generating a target communication channel for transmitting target data according to a target network node;
s208: target data is sent from the source network device to the target network device in the target communication channel.
Optionally, in this embodiment, the data sending method may be applied to, but not limited to, a scenario in which data needs to be sent, for example, in a cross-domain service scenario of a game, a problem of large cross-domain public network delay and a high packet loss rate may be encountered in a network, which results in poor player experience of an instant battle game, and a network dedicated line is used to accelerate a network, so that network transmission of a game service with low delay and low packet loss can be implemented. The source network device may be, but is not limited to being, a plurality of clients in one area, and the target network device includes, but is not limited to being, a source station server in one area.
Alternatively, for example, in the case that the source network device is a plurality of clients and the target network device is a source station server, a target communication channel between the source network device and the target network device is as shown in fig. 3, and data interaction is performed between the clients and the source station server through the target communication channel. The source station server is deployed in an area B, a client in the area A accesses the source station server in the area B, only the client accesses a virtual IP VIP + PORT number PORT in an access point to enter a target communication channel, and target data are transmitted to a destination through the target communication channel and then forwarded to the configured source station server.
Alternatively, for example, the target communication channel may be configured by:
s1, creating a target communication channel according to the acceleration area accessed by the client and the source station area where the source station server is located, as shown in fig. 4, including defining the name of the target communication channel, the source station area where the server is located, and the acceleration area accessed by the client.
S2, after creating the target communication channel, setting an access virtual IP VIP and an access scope Domain of the target communication channel. For example, as shown in fig. 5, the channel name defining the target communication channel is "Link-93 rwj9zl qaaptest", VIP is "49.51.66.61", and the domain name is "Link-93 rwj9zl.
S3: the source station server information is entered and the internet protocol IP address or domain name of the target communication channel can be selected, as shown in fig. 6.
And S4, creating a listener of the target communication channel and binding the corresponding source station server. The monitor is used for determining the access Port of the client, the access Port supports the user-defined specification of the client, and the access Port can also be generated. The player accesses the target communication channel by accessing the VIP + PORT, and the access request is forwarded to the bound source station server. For example, as shown in fig. 7, the Listener may be "Listener-4 rk54tg 7111", the forwarding Protocol used is "Transmission Control Protocol (TCP)", the source port is "111", the bound source station server is "11.11.11.11", the source station type is "IP address", and the service status is "normal".
Through the embodiment, the client can realize the private line acceleration only by appointing the access area, the source station area and the source station server information through the simplified configuration of the target communication channel, and the data sending efficiency is improved.
Optionally, the target communication channel includes a plurality of target network nodes, and the target communication channel may include a plurality of target network nodes. And determining an optimal target communication channel from the plurality of target communication channels by using a four-layer data transmission algorithm. The link formed by the target network nodes in the target communication channel is the shortest link, the time delay section for forwarding the target data is realized, and the efficiency is high.
Optionally, in this embodiment, the target network nodes may be connected by a dedicated line, and dedicated line acceleration of the target data may be implemented by anycasting an Anycast. The forwarding mode of Anycast enables the public network request of the user to select the nearby network node to enter, and improves the quality of the transmission link. Essentially, the anycast is adopted in the addressing link based on a public network IP. The principle is as follows: the ordinary IP is unicast addressing and is a public network in the whole process. If Anycast is used, the public network IP is addressed in an Anycast mode, routing is sent at a plurality of network nodes, the data to be forwarded of the client only needs to travel to the nearest network node through the public network, and the remaining distance can travel to a more guaranteed intranet. Namely, long-distance public network transmission is changed into self-built internal network transmission, thereby realizing the acceleration effect.
Optionally, in this embodiment, the four-layer data sending algorithm includes, but is not limited to, full network translation Fullnat, which is essentially a combination of source address translation Snat + destination address translation Dnat. The quadruple data of the network device corresponding to one target network node includes < source IP address: source port: destination IP address: destination port >. And when forwarding is carried out in the Fullnat mode, replacing the source IP address and the destination IP address. For example, when the target data is forwarded from the network node a to the network node C, and the middle of the data needs to pass through the network node B, the source IP address of the target data is converted into the IP address of a, and the target IP address of the target data is converted into the IP address of B. And after the data to be forwarded is sent to the point B, converting the source IP address of the target data into the IP address of the point B, and converting the destination IP address of the target data into the IP address of the point C.
According to the embodiment, the target communication channel is determined through the four-layer data sending algorithm so as to determine the IP address of the next hop of the target data, so that the optimal path for forwarding the target data can be determined, the data sending efficiency is improved, the time delay is reduced, and the game experience of game players is improved.
In an alternative embodiment, determining a target network node configured with dedicated communication resources in a communication network comprises:
s1, determining network equipment clusters built in each region in the communication network, wherein each network equipment in the network equipment clusters is used as a network node in the communication network;
and S2, taking the network node corresponding to the network equipment which is determined from the network equipment cluster and is configured with the private line communication resource as the target network node.
Optionally, in this embodiment, as shown in fig. 8, a network device cluster is built in each region, and each network device in the network device cluster is to be used as a network node in the communication network. The network nodes include, but are not limited to, various types of cloud nodes or customized nodes, etc., which may cover various regions. Network private lines are pulled between the network nodes, such as: the network nodes are communicated through a cloud network or a peer-to-peer connection. And the communication with other cooperative cloud networks is carried out through a private line. The network wires connecting the network nodes constitute the edges of the forwarding network. Due to the transitivity of the Fullnat mode, as shown in fig. 8, the region a is communicated with the region B, and the region B is communicated with the region C, so that the network transmission from the region a to the region C can be realized.
Through the embodiment, the network nodes with the connection establishment capability are connected through the network private line, all the network nodes can be communicated only by needing few network private lines, even only one network private line is needed by a cross-cloud manufacturer, the intercommunication cost among the cloud manufacturers is greatly reduced, and the coverage range of the cloud network is expanded.
In an optional embodiment, generating a target communication channel for transmitting target data according to a target network node comprises:
s1, acquiring quadruple data of the network equipment corresponding to the target network node, wherein the quadruple data comprises: a source IP address, a source port, a destination IP address, and a destination port;
and S2, determining a target communication channel according to the quadruple data.
Optionally, in this embodiment, one quadruplet of data includes < source IP address: source port: destination IP address: destination port >. When forwarding is performed in the Fullnat mode, the source IP and the destination IP are replaced, as shown in fig. 9, that is, the source IP is converted into the own IP, and the destination IP is converted into the IP of the next hop, for example, when forwarding the target data from the network node a to the network node C, the destination data needs to pass through the network node B, the source IP address of the target data is converted into the IP address of a, and the destination IP address of the target data is converted into the IP address of B. And after the data to be forwarded is sent to the point B, converting the source IP address of the target data into the IP address of the point B, and converting the destination IP address of the target data into the IP address of the point C.
Optionally, the quadruplet data may also be Req: < Access, Dest, RSIP, RSPort >, which respectively represent an acceleration region, a source station region, an IP/Domain of a server, and a server port. In this embodiment, as shown in fig. 10, after determining the quadruplet data Req: < Access, Dest, RSIP, RSPort >, the quadruplet data is sent to the route management Manager, and the route management Manager generates a Region List corresponding to the quadruplet data, where the Region List includes a forwarding link for forwarding the target data. From the forwarding link, a target communication channel may be determined. The Region List sends the forwarding link to the Proxy management Proxy Manager, and the Proxy Manager encapsulates the forwarding link and the media gateway control protocol command RSIP RSPort corresponding to the quadruplet data into a forward rule, i.e. a Fullnat forwarding rule, where the Fullnat forwarding rule includes a target network node in a target communication channel, and also includes an IP address and a forwarding port from each network node to a next-hop network node. And sending the Fullnat forwarding rule to a rule control server, and distributing the Fullnat forwarding rule to each network node Agent by the rule control server. And the Agent acquires the target communication channel and the network node forwarded by the next hop from the Fullnat forwarding rule so as to send the target data to the source server.
According to the embodiment, the target communication channel is determined through the four-layer data sending algorithm so as to determine the IP address of the next hop of the target data, so that the optimal path for forwarding the target data can be determined, the data sending efficiency is improved, the time delay is reduced, and the game experience of game players is improved.
In an alternative embodiment, sending the target data from the source network device to the target network device in the target communication channel includes:
s1, determining the access domain name and access port of the target network node;
and S2, generating a dynamic port application mapping corresponding to the access domain name and the access port, wherein the dynamic port application mapping is used for instructing the target network node to send the target data to the next network node corresponding to the target network node.
Optionally, in this embodiment, the access domain name and the access port may be determined by route management in the forwarding network, and as shown in Router manager in fig. 10, the route management is responsible for managing the forwarding network, and includes cluster machine management, failure machine elimination, cluster scaling, dedicated line quality and packet loss rate detection, dedicated line topology network maintenance, and the like. After the user designates the acceleration area accessed by the client and the area where the source station server is located, the routing management is performed according to the acceleration area: and the source station area is used for distributing link information in combination with the current special line quality.
In this embodiment, the edge weight in the forwarding network is a comprehensive consideration of delay and packet loss, and the shortest path algorithm is used to select the optimal link.
By the embodiment, the forwarding path of the target data can be determined, the optimal link can be selected, and the data sending efficiency is improved.
In an alternative embodiment, sending the target data from the source network device to the target network device in the target communication channel includes:
s1, setting the weight of each forwarding device in the multiple forwarding devices by using the dynamic port in the condition that the target network node comprises multiple forwarding devices;
s2, determining the target forwarding equipment for forwarding the target data at the target network node according to the weight of each forwarding equipment;
s3, the target forwarding device is utilized to send the target data from the source network device to the target network device in the target communication channel.
Alternatively, in this embodiment, as shown in fig. 11, it is assumed that the cluster a and the next-hop cluster B are transmitted through an intranet. A forwarding rule corresponding to machine a1 may be generated:
Figure BDA0002256659600000111
Figure BDA0002256659600000121
therefore, the forwarding weight of each cluster is determined, and the function of load balancing is realized.
Optionally, as shown in fig. 12, the forwarding rule at the network node is changed, and after the network node configures the forwarding rule, the configuration of the forwarding rule is changed based on the configuration update request. And sending a forwarding instruction to each network node after all network nodes are configured and updated.
According to the embodiment, a forwarding algorithm needs to be issued on a plurality of cluster machines through one forwarding link, in order to ensure the consistency and correctness of a forwarding task without influencing the forwarding of the current forwarding rule, only after all configuration files are updated and check configuration files, a forwarding configuration instruction is issued, and the consistency of the change of the forwarding rule is ensured.
In an alternative embodiment, sending the target data from the source network device to the target network device in the target communication channel includes:
s1, link information of the forwarding target data is determined, wherein the link information comprises at least one of the following: the method comprises the following steps that area information accessed by source network equipment, area information of target network equipment, a starting network node of target data, a target network node of the target data, network information of network nodes through which the target data are forwarded, information of forwarding equipment for forwarding the target data and cluster information of the target network node;
and S2, sending the target data from the source network equipment to the target network equipment in the target communication channel according to the link information.
Optionally, the link information may include the following structure:
Struct link_info{
HopInfo,// record link region information, which needs to be provided in order of accelerating region to source station
The network information of each hop of the networkInfo/link can be selected to be common/internal network
Vmlnfo// forwarder information, including cluster information and machine information
}
In an optional embodiment, after generating the target communication channel for transmitting the target data according to the target network node, the method further comprises one of:
s1, sending a detection instruction to the target network node, wherein the detection instruction is used for detecting whether the target network node has a fault;
s2, under the condition that first fault information is received, adjusting a target communication channel, wherein the first fault information is used for indicating that a target network node has a fault;
s3, in case of receiving the second failure information, determining that the target network device has failed.
Optionally, in this embodiment, the first failure information is used to identify whether the target network node fails, that is, mutual check between the target network nodes may be performed. For example, the network node agent uses tcp to detect the IP of the next-hop network node, i.e. PORT, if the detection result is not successful, the next-hop network node fails, and the agent will remove the forwarding rule of the next-hop network node in the forwarding configuration.
Optionally, in this embodiment, the second failure information is used to identify whether the target network device fails. For example, in the case where the target network device is the source station server, the last network node in the target communication channel has a function of detecting whether the source station server fails. And under the condition of receiving second fault information sent by the last network node, determining that the source station server fails.
Through the embodiment, the second-level rejection function of the fault node can be realized by triggering detection inspection at the second level. And the second-level switching and alarming functions can be realized, the reliability and stability of the forwarding rule are further improved, and the forwarding quality is ensured.
In an optional embodiment, the forwarding network in this embodiment further includes a Control Server module, which is mainly used for agent management and forwarding algorithm issuing. After the rule module generates the forwarding algorithm, the forwarding algorithm is uniformly submitted to the Control Server module for issuing. The Constrrol Server module is responsible for establishing connection with the Agent on the transponder, maintaining long connection with the Agent through the heel Beat and recording connection information. When receiving the forwarding rule of the rule module, the module can find the corresponding connection through the virtual _ server information, and issue the corresponding forwarding responsibility to the agent of the corresponding machine.
In summary, the embodiment is based on the forwarding mode of Fullnat, so that the network forwarding has transitivity. The construction of the forwarding network becomes simple, and the acceleration Mesh network covering the whole world can be constructed by using fewer special lines. Based on the detection of private line packet loss and time delay and the shortest path algorithm, the routing module can select the link with the best quality in the current acceleration network to realize the construction of forwarding the four-layer link. Meanwhile, the routing module can dynamically monitor the change of the route, and can immediately trigger the link switching when the special line fails. The forwarding algorithm is simple to configure based on Fullnat, the current node only needs to pay attention to forwarding of the next hop, the configuration is simple, the configuration of the forwarding algorithm is effective through the forwarding algorithm of Control-Agent, and the second-level implementation can be achieved. The delivery from the detection of a new forwarding configuration is on the order of seconds even if the private line fails. The realization of the health check mechanism can realize the second-level elimination of the fault forwarder and ensure the stability of the forwarding link. The dynamic port mapping scheme of the rule management module enables the machine to be multiplexed, and the same forwarding cluster can meet a plurality of different forwarding requirements.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a data transmission apparatus for implementing the data transmission method. As shown in fig. 13, the apparatus includes: an obtaining module 1302, a first determining module 1304, a first generating module 1306 and a first sending module 1308, which are explained below:
an obtaining module 1302, configured to obtain a data forwarding request, where the data forwarding request is used to request that target data is sent from a source network device to a target network device;
a first determining module 1304, configured to determine, in response to the data forwarding request, a target network node configured with a dedicated communication resource in a communication network;
a first generating module 1306, configured to generate a target communication channel for transmitting the target data according to the target network node;
a first sending module 1308, configured to send the target data from the source network device to the target network device in the target communication channel.
Optionally, the first determining module includes:
a first determining unit, configured to determine a network device cluster established in each region in the communication network, where each network device in the network device cluster is to be a network node in the communication network;
a second determining unit, configured to use the network node corresponding to the network device configured with the dedicated communication resource determined from the network device cluster as the target network node.
Optionally, the first generating module includes:
an obtaining unit, configured to obtain quaternary group data of the network device corresponding to the target network node, where the quaternary group data includes: a source IP address, a source port, a destination IP address, and a destination port;
and the third determining unit is used for determining the target communication channel according to the quadruple data.
Optionally, the sending module includes:
a fourth determining unit, configured to determine an access domain name and an access port of the target network node;
a generating unit, configured to generate a dynamic port mapping corresponding to the access domain name and the access port, where the dynamic port mapping is used to instruct the target network node to send the target data to a next network node corresponding to the target network node.
Optionally, the sending module includes:
a setting unit, configured to set, when the target network node includes multiple forwarding devices, a weight of each of the multiple forwarding devices according to the mapping of the dynamic port;
a fifth determining unit, configured to determine, according to the weight of each forwarding device, a target forwarding device that forwards the target data at the target network node;
a first sending unit, configured to send, in the target communication channel, the target data from the source network device to the target network device by using the target forwarding device.
Optionally, the sending module includes:
a sixth determining unit, configured to determine link information for forwarding the target data, where the link information includes at least one of: area information accessed by the source network device, area information of the target network device, a starting network node of the target data, a target network node of the target data, network information of a network node through which the target data is forwarded, information of forwarding equipment for forwarding the target data, and cluster information of the target network node;
a second sending unit, configured to send the target data from the source network device to the target network device in the target communication channel according to the link information.
Optionally, the apparatus further comprises at least one of:
a second sending module, configured to send a probe instruction to a target network node after a target communication channel for sending the target data is generated according to the target network node, where the probe instruction is used to probe whether the target network node fails;
an adjusting module, configured to adjust the target communication channel when first failure information is received, where the first failure information is used to indicate that the target network node fails;
and the second determining module is used for determining that the target network equipment fails under the condition of receiving the second failure information.
According to yet another aspect of the embodiments of the present invention, there is also provided an electronic apparatus for implementing the data transmission method, as shown in fig. 14, the electronic apparatus includes a memory 1402 and a processor 1404, the memory 1402 stores therein a computer program, and the processor 1404 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a data forwarding request, wherein the data forwarding request is used for requesting to send target data from a source network device to a target network device;
s2, responding to the data forwarding request, and determining a target network node configured with private line communication resources in the communication network;
s3, generating a target communication channel for sending target data according to the target network node;
s4, the target data is sent from the source network device to the target network device in the target communication channel.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 14 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 14 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
The memory 1402 may be configured to store software programs and modules, such as program instructions/modules corresponding to the data transmission method and apparatus in the embodiments of the present invention, and the processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, that is, implementing the data transmission method. Memory 1402 may include high-speed random access memory, and may also include 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 1402 may further include memory located remotely from the processor 1404, which may be connected to a terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1402 may be specifically but not limited to information such as a main sentence to be forwarded. As an example, as shown in fig. 14, the memory 1402 may include, but is not limited to, an obtaining module 1302, a first determining module 1304, a first generating module 1306, and a first sending module 1308 of the data sending apparatus. In addition, the data transmission device may further include, but is not limited to, other module units in the data transmission device, which is not described in detail in this example.
Optionally, the transmitting device 1406 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1406 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmitting device 1406 is a Radio Frequency (RF) module, which is used to communicate with the internet by wireless means.
In addition, the electronic device further includes: a display 1408 for displaying the target data; and a connection bus 1410 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
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.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A data transmission method, comprising:
acquiring a data forwarding request, wherein the data forwarding request is used for requesting to send target data from source network equipment to target network equipment;
responding to the data forwarding request, and determining a target network node configured with a private line communication resource in a communication network;
generating a target communication channel for transmitting the target data according to the target network node;
sending the target data from the source network device to the target network device in the target communication channel.
2. The method of claim 1, wherein determining the target network node configured with the dedicated communication resource in the communication network comprises:
determining a network equipment cluster constructed in each region in the communication network, wherein each network equipment in the network equipment cluster is used as a network node in the communication network;
and taking the network node corresponding to the network equipment configured with the private line communication resource determined from the network equipment cluster as the target network node.
3. The method of claim 2, wherein generating a target communication channel for sending the target data according to the target network node comprises:
acquiring quaternary group data of the network device corresponding to the target network node, wherein the quaternary group data comprises: a source IP address, a source port, a destination IP address, and a destination port;
and determining the target communication channel according to the quadruple data.
4. The method of claim 1, wherein sending the target data from the source network device to the target network device in the target communication channel comprises:
determining an access domain name and an access port of the target network node;
generating a dynamic port response map corresponding to the access domain name and access port, wherein the dynamic port response map is used for instructing the target network node to forward the target data to a next network node corresponding to the target network node.
5. The method of claim 4, wherein sending the target data from the source network device to the target network device in the target communication channel comprises:
setting the weight of each forwarding device in the plurality of forwarding devices by using the dynamic port in a mapping manner under the condition that the target network node comprises the plurality of forwarding devices;
determining target forwarding equipment for forwarding the target data at the target network node according to the weight of each forwarding equipment;
and transmitting the target data from the source network device to the target network device by utilizing the target forwarding device in the target communication channel.
6. The method of claim 1, wherein sending the target data from the source network device to the target network device in the target communication channel comprises:
determining link information for forwarding the target data, wherein the link information comprises at least one of the following: the information of the area accessed by the source network device, the information of the area where the target network device is located, the initial network node of the target data, the target network node of the target data, the network information of the network node through which the target data is forwarded, the information of the forwarding device which forwards the target data, and the cluster information of the target network node;
and sending the target data from the source network equipment to the target network equipment in the target communication channel according to the link information.
7. The method of claim 1, wherein after generating a target communication channel for transmitting the target data according to the target network node, the method further comprises one of:
sending a detection instruction to a target network node, wherein the detection instruction is used for detecting whether the target network node fails;
adjusting the target communication channel under the condition that first fault information is received, wherein the first fault information is used for indicating that the target network node has a fault;
and under the condition that the second fault information is received, determining that the target network equipment has faults.
8. A data transmission apparatus, comprising:
the system comprises an acquisition module, a sending module and a receiving module, wherein the acquisition module is used for acquiring a data forwarding request, and the data forwarding request is used for requesting to send target data from source network equipment to target network equipment;
the first determining module is used for responding to the data forwarding request and determining a target network node configured with a private line communication resource in a communication network;
the first generation module is used for generating a target communication channel for sending the target data according to the target network node;
a first sending module, configured to send the target data from the source network device to the target network device in the target communication channel.
9. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN201911056416.4A 2019-10-31 2019-10-31 Data transmission method and device, storage medium and electronic device Active CN111182022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911056416.4A CN111182022B (en) 2019-10-31 2019-10-31 Data transmission method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911056416.4A CN111182022B (en) 2019-10-31 2019-10-31 Data transmission method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111182022A true CN111182022A (en) 2020-05-19
CN111182022B CN111182022B (en) 2023-08-29

Family

ID=70650029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911056416.4A Active CN111182022B (en) 2019-10-31 2019-10-31 Data transmission method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111182022B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118222A (en) * 2020-08-11 2020-12-22 深圳市欣博跃电子有限公司 Data forwarding method and device, electronic equipment and storage medium
CN112995273A (en) * 2021-01-28 2021-06-18 腾讯科技(深圳)有限公司 Network call-through scheme generation method and device, computer equipment and storage medium
CN114025010A (en) * 2021-10-20 2022-02-08 北京奥星贝斯科技有限公司 Method for establishing connection and network equipment
CN114201437A (en) * 2021-12-06 2022-03-18 苏州长风航空电子有限公司 Communication method, terminal device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833167A (en) * 2012-08-28 2012-12-19 瑞斯康达科技发展股份有限公司 Method and data for transmitting data between local area networks
CN107278360A (en) * 2017-06-16 2017-10-20 唐全德 A kind of system for realizing network interconnection, method and device
CN109981734A (en) * 2019-02-21 2019-07-05 广东星辉天拓互动娱乐有限公司 A kind of world business accelerated method Internet-based
CN110138876A (en) * 2019-05-30 2019-08-16 北京达佳互联信息技术有限公司 Task deployment method, apparatus, equipment and platform
CN110213147A (en) * 2019-02-22 2019-09-06 企商在线(北京)网络股份有限公司 A kind of cloud network interoperability methods, device, storage medium and terminal device
US20200169923A1 (en) * 2017-08-04 2020-05-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd Communication method, network device, and terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833167A (en) * 2012-08-28 2012-12-19 瑞斯康达科技发展股份有限公司 Method and data for transmitting data between local area networks
CN107278360A (en) * 2017-06-16 2017-10-20 唐全德 A kind of system for realizing network interconnection, method and device
US20200169923A1 (en) * 2017-08-04 2020-05-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd Communication method, network device, and terminal device
CN109981734A (en) * 2019-02-21 2019-07-05 广东星辉天拓互动娱乐有限公司 A kind of world business accelerated method Internet-based
CN110213147A (en) * 2019-02-22 2019-09-06 企商在线(北京)网络股份有限公司 A kind of cloud network interoperability methods, device, storage medium and terminal device
CN110138876A (en) * 2019-05-30 2019-08-16 北京达佳互联信息技术有限公司 Task deployment method, apparatus, equipment and platform

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118222A (en) * 2020-08-11 2020-12-22 深圳市欣博跃电子有限公司 Data forwarding method and device, electronic equipment and storage medium
CN112995273A (en) * 2021-01-28 2021-06-18 腾讯科技(深圳)有限公司 Network call-through scheme generation method and device, computer equipment and storage medium
CN112995273B (en) * 2021-01-28 2022-03-04 腾讯科技(深圳)有限公司 Network call-through scheme generation method and device, computer equipment and storage medium
CN114025010A (en) * 2021-10-20 2022-02-08 北京奥星贝斯科技有限公司 Method for establishing connection and network equipment
CN114025010B (en) * 2021-10-20 2024-04-16 北京奥星贝斯科技有限公司 Method for establishing connection and network equipment
CN114201437A (en) * 2021-12-06 2022-03-18 苏州长风航空电子有限公司 Communication method, terminal device and storage medium
CN114201437B (en) * 2021-12-06 2024-03-29 苏州长风航空电子有限公司 Communication method, terminal device and storage medium

Also Published As

Publication number Publication date
CN111182022B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
US10779339B2 (en) Wireless roaming using a distributed store
US10348571B2 (en) Methods and apparatus for accessing dynamic routing information from networks coupled to a wide area network (WAN) to determine optimized end-to-end routing paths
CN111182022B (en) Data transmission method and device, storage medium and electronic device
CN107026890B (en) Message generation method based on server cluster and load balancer
US10523556B2 (en) Method and system for routing connections in a software-defined wide area network
EP2235885B1 (en) Mapless global traffic load balancing via anycast
CN105049361B (en) Identifying likely faulty components in a distributed system
CN109728962B (en) Method and equipment for sending message
EP2451125B1 (en) Method and system for realizing network topology discovery
CN104717081A (en) Gateway function realization method and device
US9467374B2 (en) Supporting multiple IEC-101/IEC-104 masters on an IEC-101/IEC-104 translation gateway
CN106357542B (en) The method and software defined network controller of multicast service are provided
US20220345331A1 (en) Two-layer private line network system, configuration method, and device
CN104618243A (en) Routing method, device and system, and gateway scheduling method and device
JP7389091B2 (en) METHODS, APPARATUS AND SYSTEM FOR CONTROLLING TRAFFIC FORWARDING
CN104980368A (en) Bandwidth guarantee method and apparatus in software defined network (SDN)
CN107276846B (en) Gateway disaster tolerance method, device and storage medium
US20140317271A1 (en) Method and node apparatus for collecting information in content network based on information-centric networking
CN112910704A (en) Local area network system, method and device supporting dynamic self-adaptive network configuration
EP3503484A1 (en) Message transmission method, device and network system
US7711780B1 (en) Method for distributed end-to-end dynamic horizontal scalability
CN106209634B (en) Learning method and device of address mapping relation
CN111988439A (en) ARP request suppression system, method, equipment and storage medium
JP6406712B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN111131530B (en) Carrier-class network address conversion method and device

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