[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111182022B - 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
CN111182022B
CN111182022B CN201911056416.4A CN201911056416A CN111182022B CN 111182022 B CN111182022 B CN 111182022B CN 201911056416 A CN201911056416 A CN 201911056416A CN 111182022 B CN111182022 B CN 111182022B
Authority
CN
China
Prior art keywords
target
network
data
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.)
Active
Application number
CN201911056416.4A
Other languages
Chinese (zh)
Other versions
CN111182022A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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 special line communication resources in a communication network; generating a target communication channel for transmitting target data according to the target network node; the 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 art.

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 of large delay of a cross-domain public network and high packet loss rate of the game sea service in the aspect of network can be faced, so that the player experience of the instant fight game is poor. The cross-border private line of the cloud manufacturer can realize low-delay and low-packet-loss network transmission. However, cloud manufacturers have insufficient coverage and special lines, and cannot realize a global concurrent acceleration scheme.
Currently, data is forwarded mainly 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 (Content Delivery Network, abbreviated as CDN). The dedicated line acceleration is a low-delay and low-packet-loss data transmission channel provided for clients by a few head cloud factories by utilizing the construction capability of respective dedicated lines and internet data centers (Internet Data Center, abbreviated as IDCs). However, dedicated line acceleration is three-layer acceleration by using a network dedicated line, and if a game requires port level mapping and load balancing functions, the requirement of data transmission cannot be met.
In view of the above problems, no effective solution has been proposed at present.
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 art.
According to an aspect of an embodiment 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 special line communication resources 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 embodiment of the present invention, there is also provided a data transmitting apparatus, including: the system comprises an acquisition module, a data forwarding module and a data forwarding module, wherein the acquisition module is used for 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; a first determining module, configured to determine a target network node configured with a dedicated line communication resource in a communication network in response to the data forwarding request; the first generation module is used for generating a target communication channel for transmitting the target data according to the target network node; and the first sending module is used for sending the target data from the source network equipment to the target network equipment in the target communication channel.
Optionally, the first determining module includes: a first determining unit, configured to determine a network device cluster set up in each region in the communication network, where each network device in the network device cluster is to be used as a network node in the communication network; and the second determining unit is used for taking the network node corresponding to the network equipment which is determined from the network equipment cluster and is configured with the special line communication resource as the target network node.
Optionally, the first generating module includes: an obtaining unit, configured to obtain four-tuple data of a network device corresponding to the target network node, where the four-tuple 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 four-tuple 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; and the generating unit is used for generating a dynamic port mapping corresponding to the access domain name and the access port, wherein the dynamic port 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, the sending module includes: a setting unit, configured to, when the target network node includes a plurality of forwarding devices, set a weight of each forwarding device in the plurality of forwarding devices by using the dynamic port mapping; a fifth determining unit, configured to determine, according to the weight of each forwarding device, a target forwarding device forwarding the target data at the target network node; and the first sending unit is used for sending the target data from the source network device to the target network device by using the target forwarding device in the target communication channel.
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: the method comprises the steps of accessing area information of the source network equipment, area information of the target network equipment, an initial 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; and a second transmitting unit, configured to transmit the target data from the source network device to the target network device according to the link information in the target communication channel.
Optionally, the apparatus further comprises at least one of: the second sending module is used for sending a detection instruction to the target network node after generating a target communication channel for sending the target data according to the target network node, wherein the detection instruction is used for detecting whether the target network node has a fault or not; the adjusting module is used for adjusting the target communication channel under the condition of receiving first fault information, wherein the first fault information is used for indicating 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 having a computer program stored therein, wherein the computer program is configured to perform the above-described data transmission method when run.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the data transmission method described above through the computer program.
In the embodiment of the invention, an acquired data forwarding request is adopted, 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 special line communication resources in a communication network; generating a target communication channel for transmitting target data according to the target network node; the 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 solves the technical problem of data transmission in the related art.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative data transmission method according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative data transmission method according to an embodiment of the application;
FIG. 3 is a schematic diagram of an alternative communication channel according to an embodiment of the application;
FIG. 4 is a schematic diagram (one) of an alternative defined communication channel according to an embodiment of the application;
FIG. 5 is a schematic diagram (II) of an alternative defined communication channel according to an embodiment of the application;
FIG. 6 is a schematic diagram (III) of an alternative defined communication channel according to an embodiment of the application;
FIG. 7 is a schematic diagram of an alternative listener in accordance with embodiments of the present application;
fig. 8 is a schematic diagram of an alternative forwarding network according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an alternative quadruple of data to be forwarded according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an alternative forwarding rule according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an alternative network node weight according to an embodiment of the invention;
FIG. 12 is a schematic diagram of a forwarding algorithm at a change network node according to an embodiment of the present invention;
fig. 13 is a schematic structural view of an alternative data transmission apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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 embodiment of the present invention, there is provided a data transmission method, optionally, as an optional implementation manner, the above data transmission method may be applied, but not limited to, in the environment shown in fig. 1.
In fig. 1, the client may be implemented 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, data to be forwarded acquired on the client may be sent to the server 112.
Optionally, the data sending method may be, but not limited to, applied to a client running on the user equipment 102 that may forward data, where the user equipment 102 may be a mobile phone, a tablet computer, a notebook computer, a PC, etc., and the target communication 110 may include, but is not limited to, a plurality of network nodes, where the network nodes are connected by a network dedicated line. The server 112 may include, but is not limited to, any hardware device that can perform calculations.
Optionally, as an optional embodiment, 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 special line communication resources in a communication network;
s206: generating a target communication channel for transmitting target data according to the target network node;
s208: the target data is sent from the source network device to the target network device in the target communication channel.
Optionally, in this embodiment, the above data sending method may be, but is not limited to, applied to a scenario where data needs to be sent, for example, in a cross-domain service scenario of a game, the problem of large delay of a cross-domain public network and high packet loss rate may be faced in the network aspect, which results in poor experience of a player of an instant combat game, and network acceleration is performed by using a network dedicated line, so that low-delay and low-packet loss network transmission of a game service can be realized. Wherein the source network device may be, but is not limited to being, a plurality of clients in an area, and the target network device includes, but is not limited to being, a source station server in an area.
Alternatively, for example, in the case where 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 interaction of data is performed between the clients and the source station server through the target communication channel. The source station server is deployed in the area B, the client side of the area A accesses the source station server of the area B, only the access point accesses the virtual IP VIP+port number PORT to enter a target communication channel, and target data is 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 an acceleration area accessed by a client and a source station area where a source station server is located, wherein the target communication channel comprises a name defining the target communication channel, the source station area where the server is located and the acceleration area accessed by the client as shown in figure 4.
S2, after the target communication channel is established, setting an access virtual IP VIP and an access range Domain of the target communication channel. For example, as shown in fig. 5, a channel name defining a target communication channel is "Link-93rwj9zl qaaptest", VIP is "49.51.66.61", and a domain name is "Link-93rwj9zl.
S3: the source station server information is entered and the internet protocol IP address or domain name of the destination communication channel may be selected as shown in fig. 6.
S4, creating a listener of the target communication channel and binding a corresponding source station server. The monitor is used for determining an access Port of the client, and the access Port supports the custom specification of the client and can also generate the access Port. The player accesses the target communication channel by accessing 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-4rk54tg7111", the forwarding protocol used is "transmission control protocol (Transmission Control Protocol, abbreviated as TCP)", the source port is "111", the bound source server is "11.11.11.11", the source type is "IP address", and the service status is "normal".
Through the embodiment, through simplified configuration of the target communication channel, the client can realize special line acceleration only by specifying the access area, the source station area and the source station server information, and the efficiency of data transmission is increased.
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 multi-item label 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, and the delay period for forwarding the target data is high in efficiency.
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 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, anycast is adopted in the addressing link based on a public network IP. The principle is as follows: common IP is unicast addressing, which goes through the public network. If Anycast is used, the public network IP addresses in an Anycast mode, routes are sent at a plurality of network nodes, data to be transferred of the client only need to travel the public network to reach the nearest network node, and the rest path can travel a more guaranteed intranet. Namely, the long-distance public network transmission is changed into the self-built intranet transmission, so that the acceleration effect is realized.
Alternatively, in the present embodiment, the four layer data transmission 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 four-tuple data of the network device corresponding to one target network node includes < source IP address: source port: destination IP address: destination port >. When forwarding is performed in the Fullnat mode, the source IP address and the destination IP address are replaced. I.e. the source IP address is converted into its own IP address, the destination IP address is converted into the next hop IP address, e.g. the destination data is forwarded from network node a to network node C, the intermediate network node B is needed, the source IP address of the destination data is converted into the IP address of a, and the destination IP address of the destination data is converted into the IP address of B. After the data to be forwarded is sent to the point B, the source IP address of the target data is converted into the IP address of the point B, and the destination IP address of the target data is converted into the IP address of the point C.
According to the embodiment, the target communication channel is determined through the four-layer data transmission algorithm, so that the IP address of the next hop of the target data is determined, and the optimal path for forwarding the target data can be determined, thereby improving the data transmission efficiency, reducing the time delay and improving the game experience of a game player.
In an alternative embodiment, determining a target network node configured with dedicated line communication resources in a communication network comprises:
s1, determining a network equipment cluster built in each region in a communication network, wherein each network equipment in the network equipment cluster is used as a network node in the communication network;
s2, taking the network node corresponding to the network equipment which is determined from the network equipment cluster and is configured with the special line communication resource as a target network node.
Alternatively, in this embodiment, as shown in fig. 8, a network device cluster is set up in each region, and each network device in the network device cluster will be a network node in the communication network. Network nodes include, but are not limited to, various types of cloud nodes or custom nodes, etc., which may cover various territories. Pulling network leased lines between network nodes, such as: the network nodes are opened up by a cloud network or peer-to-peer connection. And communicating with other cooperative cloud networks through a private line. The network private lines connecting the network nodes form the edges of the forwarding network. Because of the transitivity of the fulnnat mode, as shown in fig. 8, the communication between the region a and the region B, and the communication between the region B and the region C can be realized, so that the network transmission between the region a and the region C can be realized.
According to the embodiment, the network nodes with the connection establishment capability are connected through the network private lines, all the network nodes can be communicated only by a few network private lines, even a cloud manufacturer only needs one network private line, the intercommunication cost among cloud manufacturers is greatly reduced, and the coverage range of a cloud network is enlarged.
In an alternative embodiment, generating a target communication channel for transmitting target data from a target network node comprises:
s1, acquiring four-tuple data of network equipment corresponding to a target network node, wherein the four-tuple data comprise: a source IP address, a source port, a destination IP address, and a destination port;
s2, determining a target communication channel according to the four-tuple data.
Optionally, in this embodiment, one quadruple of data includes < source IP address: source port: destination IP address: destination port >. When forwarding in the fulnnat mode, the source IP and the destination IP are replaced, as shown in fig. 9, i.e. the source IP is converted into the own IP, the destination IP is converted into the next-hop IP, for example, the destination data is forwarded from the network node a to the network node C, and if the destination data needs to pass through the network node B in the middle, the source IP address of the destination data is converted into the IP address of a, and the destination IP address of the destination data is converted into the IP address of B. After the data to be forwarded is sent to the point B, the source IP address of the target data is converted into the IP address of the point B, and the destination IP address of the target data is converted into the IP address of the point C.
Optionally, the four-tuple data may also be Req < Access, dest, RSIP, RSPort >, respectively representing acceleration region, source region, IP/Domain of the server, server port. In this embodiment, as shown in fig. 10, after determining that the four-tuple data Req: < Access, dest, RSIP, RSPort >, the four-tuple data is sent to the route Manager, where the route Manager generates a Region List corresponding to the four-tuple data, where the Region List includes a forwarding link for forwarding the target data. The target communication channel may be determined from the forwarding link. The Region List sends the forwarding link to Proxy Manager, and the Proxy Manager encapsulates the forwarding link and the media gateway control protocol command RSIP RSPort corresponding to the quadruple data into a forward rule, namely a fulnnat forwarding rule, where the fulnnat forwarding rule includes a target network node in the 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. The Agent learns 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 transmission algorithm, so that the IP address of the next hop of the target data is determined, and the optimal path for forwarding the target data can be determined, thereby improving the data transmission efficiency, reducing the time delay and improving the game experience of a game player.
In an alternative embodiment, transmitting the target data from the source network device to the target network device in the target communication channel includes:
s1, determining an access domain name and an access port of a target network node;
s2, generating a dynamic port mapping corresponding to the access domain name and the access port, wherein the dynamic port mapping is used for indicating 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, as shown in fig. 10, where the route management is responsible for managing the forwarding network, including cluster machine management, fault machine rejection, cluster scaling, dedicated line quality and packet loss rate detection, dedicated line topology network maintenance, and so on. After a user designates an acceleration area accessed by a client and an area where a source station server is located, route management is performed according to the acceleration area: and the source station area is used for distributing a link message by combining the current special line quality.
In this embodiment, the weight of the edge in the forwarding network is a comprehensive consideration of the comprehensive delay and packet loss, and the shortest path algorithm is used to select the best link.
According to the embodiment, the forwarding path of the target data can be determined, the optimal link is selected, and the efficiency of data transmission is improved.
In an alternative embodiment, transmitting the target data from the source network device to the target network device in the target communication channel includes:
s1, under the condition that a target network node comprises a plurality of forwarding devices, setting the weight of each forwarding device in the plurality of forwarding devices by using a dynamic port mapping;
s2, determining a target forwarding device for forwarding target data at a target network node according to the weight of each forwarding device;
and S3, transmitting the target data from the source network device to the target network device by using the target forwarding device in the target communication channel.
Alternatively, in the present embodiment, as shown in fig. 11, it is assumed that transmission is performed between cluster a and next hop cluster B through the intranet. Forwarding rules corresponding to machine A1 may be generated:
thereby determining the forwarding weight of each cluster and realizing the function of load balancing.
Optionally, as shown in fig. 12, a schematic diagram of changing the forwarding rule at the network node, where after the network node configures the forwarding rule, the configuration of the forwarding rule is changed based on the configuration update request. And sending forwarding instructions to each network node after all network nodes are configured for updating.
According to the embodiment, a forwarding algorithm is required to be issued by a forwarding link on a plurality of machines in a plurality of clusters, so that the consistency and the correctness of a forwarding task are guaranteed in order not to influence the forwarding of the current forwarding rule, and a forwarding configuration instruction is issued only after all configuration files are updated and check configuration files, so that the consistency of forwarding rule change is guaranteed.
In an alternative embodiment, transmitting the target data from the source network device to the target network device in the target communication channel includes:
s1, determining link information of forwarding target data, wherein the link information comprises at least one of the following: the method comprises the steps of accessing area information of source network equipment, area information of target network equipment, an initial network node of 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;
s2, the target data is sent from the source network equipment to the target network equipment according to the link information in the target communication channel.
Alternatively, the link information may include the following structure:
Struct link_info{
hopinfo,// recording link region information, which is provided in order of accelerating region to source station
Network information of each hop of the NetworkInfo// link, co/intranet may be selected
VmInfo// transponder information, including cluster information and machine information
}
In an alternative 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 a target network node, wherein the detection instruction is used for detecting whether the target network node has a fault or not;
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 breaks down;
and S3, under the condition that the second fault information is received, determining that the target network equipment fails.
Optionally, in this embodiment, the first failure information is used to identify whether the target network node is failed, i.e. that mutual checks between the target network nodes can be performed. For example, the network node agent detects the IP of the next-hop network node by using a tcppling mode, if the detection result is not good, the next-hop network node fails, and the agent can reject the forwarding rule of the next-hop network node in the forwarding configuration.
Optionally, in this embodiment, the second fault information is used to identify whether the target network device has a fault. For example, in the case where the target network device is a source station server, the last network node in the target communication channel has a function of detecting whether the source station server has failed. And under the condition that the second fault information sent by the last network node is received, determining that the source station server fails.
According to the embodiment, the second-level rejection function of the fault node can be realized through second-level triggering detection and inspection. 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 management of the agent and issuing of the forwarding algorithm. After the rule module generates the forwarding algorithm, the forwarding algorithm is uniformly submitted to the Control Server module for issuing. The Conrtrol Server module is responsible for establishing connection with the agents on the forwarder, maintaining the long connection with the agents through the Hear Beat and recording connection information. When receiving the forwarding rule of the rule module, the module can find the corresponding connection through virtual_server information and send 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 is transitive. 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 detection of special line packet loss and time delay and a shortest path algorithm, the routing module can select a link with the best quality in the current accelerating network to realize construction of a forwarding four-layer link. Meanwhile, the routing module can dynamically monitor the change of the routing, and can immediately trigger the link switching when the special line fails. Based on Fullnat forwarding algorithm, the configuration is simple, the current node only needs to pay attention to the forwarding of the next hop, the configuration is simple, the configuration generation of the forwarding algorithm can be realized in a second level through the forwarding algorithm of Control-Agent. Even if a private line fails, the delivery from the detection of a new forwarding configuration is on the order of seconds. The implementation of the health checking mechanism can realize the second-level rejection of the fault transponder and ensure the stability of the forwarding link. The dynamic port mapping scheme of the rule management module enables the machines 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 foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a data transmission apparatus for implementing the above data transmission method. As shown in fig. 13, the apparatus includes: the acquisition module 1302, the first determination module 1304, the first generation module 1306, and the first transmission module 1308, the apparatus is described below:
an obtaining module 1302, configured to obtain a data forwarding request, where the data forwarding request is used to request to send target data 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 line communication resource in the communication network;
a first generating module 1306, configured to generate, according to the target network node, a target communication channel for transmitting the target data;
a first transmitting module 1308 is configured to transmit 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 set up in each region in the communication network, where each network device in the network device cluster is to be used as a network node in the communication network;
And the second determining unit is used for taking the network node corresponding to the network equipment which is determined from the network equipment cluster and is configured with the special line communication resource as the target network node.
Optionally, the first generating module includes:
an obtaining unit, configured to obtain four-tuple data of a network device corresponding to the target network node, where the four-tuple 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 four-tuple 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;
and the generating unit is used for generating a dynamic port mapping corresponding to the access domain name and the access port, wherein the dynamic port 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, the sending module includes:
a setting unit, configured to, when the target network node includes a plurality of forwarding devices, set a weight of each forwarding device in the plurality of forwarding devices by using the dynamic port mapping;
A fifth determining unit, configured to determine, according to the weight of each forwarding device, a target forwarding device forwarding the target data at the target network node;
and the first sending unit is used for sending the target data from the source network device to the target network device by using the target forwarding device in the target communication channel.
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: the method comprises the steps of accessing area information of the source network equipment, area information of the target network equipment, an initial 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;
and a second transmitting unit, configured to transmit the target data from the source network device to the target network device according to the link information in the target communication channel.
Optionally, the apparatus further comprises at least one of:
The second sending module is used for sending a detection instruction to the target network node after generating a target communication channel for sending the target data according to the target network node, wherein the detection instruction is used for detecting whether the target network node has a fault or not;
the adjusting module is used for adjusting the target communication channel under the condition of receiving first fault information, wherein the first fault information is used for indicating 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 a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above-described data transmission method, as shown in fig. 14, the electronic device comprising a memory 1402 and a processor 1404, the memory 1402 having stored therein a computer program, the processor 1404 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described 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 source network equipment to target network equipment;
s2, responding to the data forwarding request, and determining a target network node configured with special line communication resources in the communication network;
s3, generating a target communication channel for transmitting target data according to the target network node;
and S4, transmitting the target data from the source network equipment to the target network equipment in the target communication channel.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 14 is only schematic, 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, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 14 is not limited to the 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 used to store software programs and modules, such as program instructions/modules corresponding to the data transmission method and apparatus in the embodiment of the present invention, and the processor 1404 executes the software programs and modules stored in the memory 1402 to perform various functional applications and data processing, i.e., implement the data transmission method described above. 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, memory 1402 may further include memory located remotely from processor 1404, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Wherein memory 1402 may be used for, but is not limited to, information of a main sentence to be forwarded. As an example, as shown in fig. 14, the memory 1402 may include, but is not limited to, the acquisition module 1302, the first determination module 1304, the first generation module 1306, and the first transmission module 1308 in the data transmission apparatus. In addition, other module units in the data transmission device may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1406 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1406 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1406 is a Radio Frequency (RF) module that is used to communicate wirelessly with the internet.
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 device.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by 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 exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (8)

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 in a network equipment cluster;
generating a target communication channel for transmitting the target data according to the target network nodes, wherein the target communication channel comprises a plurality of target network nodes, and a link formed by the target network nodes in the target communication channel is the shortest link;
When the target network node comprises a plurality of forwarding devices, setting the weight of each forwarding device in the plurality of forwarding devices by using a dynamic port mapping, wherein the dynamic port mapping is used for indicating the target network node to forward the target data to the next network node corresponding to the target network node;
determining a target forwarding device forwarding the target data at the target network node according to the weight of each forwarding device;
transmitting the target data from the source network device to the target network device using the target forwarding device in the target communication channel;
before the acquiring the data forwarding request, the method further includes: and determining the network equipment clusters built in each region in the communication network, wherein each network equipment in the network equipment clusters is used as one network node in the communication network, the network node covers each region in the communication network, and a network private line is pulled among the network nodes in the network equipment clusters.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
Generating a target communication channel for transmitting the target data according to the target network node comprises: determining the target communication channel through a four-layer data transmission algorithm to determine the IP address of the next hop of the target data;
after the generating a target communication channel for transmitting the target data according to the target network node, the method further comprises:
the target network node obtains four-tuple data of target data, wherein the four-tuple data comprises: a source IP address, a source port, a destination IP address, and a destination port;
the destination network node converts the source IP address to its own IP address and the destination IP address to the IP address of the next hop.
3. The method of claim 1, comprising, prior to the setting the weight of each of the plurality of forwarding devices using dynamic port mapping:
determining an access domain name and an access port of the target network node;
the dynamic port mapping corresponding to the access domain name and access port is generated.
4. The method of claim 1, wherein transmitting 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 regional information accessed by the source network equipment, the regional information of the target network equipment, the initial network node of the target data, the target network node of the target data network information of a network node through which the target data passes, information of forwarding equipment for forwarding the target data, and cluster information of the target network node;
and transmitting the target data from the source network device to the target network device according to the link information in the target communication channel.
5. The method according to claim 1, wherein after generating a target communication channel for transmitting the target data from 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 has a fault or not;
under the condition of receiving first fault information, adjusting the target communication channel, wherein the first fault information is used for indicating that the target network node breaks down;
And under the condition that the second fault information is received, determining that the target network equipment fails.
6. A data transmission apparatus, comprising:
the system comprises an acquisition module, a data forwarding module and a data forwarding module, wherein the acquisition module is used for 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;
the first determining module is used for responding to the data forwarding request and determining a target network node configured with special line communication resources 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 nodes, wherein the target communication channel comprises a plurality of target network nodes, and a link formed by the target network nodes in the target communication channel is the shortest link;
a first sending module, configured to send, in the target communication channel, the target data from the source network device to the target network device;
the first determining module includes:
a first determining unit, configured to determine a network device cluster set up in each region in the communication network, where each network device in the network device cluster is to be used as a network node in the communication network, the network node covers each region in the communication network, and a network dedicated line is pulled between each network node in the network device cluster;
A second determining unit, configured to determine the target network node from the network device cluster;
the first sending module includes:
a setting unit, configured to set, in a case where a plurality of forwarding devices are included in the target network node, a weight of each forwarding device in the plurality of forwarding devices by using a dynamic port mapping, where the dynamic port mapping is used to instruct the target network node to forward the target data to a next network node corresponding to the target network node;
a fifth determining unit, configured to determine, according to the weight of each forwarding device, a target forwarding device forwarding the target data at the target network node;
and the first sending unit is used for sending the target data from the source network equipment to the target network equipment by using the target forwarding equipment in the target communication channel.
7. A computer readable storage medium comprising a stored program, wherein the program when run performs the method of any one of the preceding claims 1 to 5.
8. 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 according to any of the claims 1 to 5 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 CN111182022A (en) 2020-05-19
CN111182022B true 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)

Families Citing this family (6)

* 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
CN112995273B (en) * 2021-01-28 2022-03-04 腾讯科技(深圳)有限公司 Network call-through scheme generation method and device, computer equipment and storage medium
CN113285833B (en) 2021-05-26 2023-03-31 北京百度网讯科技有限公司 Method and device for acquiring information
CN114025010B (en) * 2021-10-20 2024-04-16 北京奥星贝斯科技有限公司 Method for establishing connection and network equipment
CN114201437B (en) * 2021-12-06 2024-03-29 苏州长风航空电子有限公司 Communication method, terminal device and storage medium
CN118250334A (en) * 2022-12-22 2024-06-25 维沃软件技术有限公司 Method and device for realizing computing service, communication equipment and storage medium

Citations (5)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110832902A (en) * 2017-08-04 2020-02-21 Oppo广东移动通信有限公司 Communication method, network equipment and terminal equipment

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN111182022A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111182022B (en) Data transmission method and device, storage medium and electronic device
US10523556B2 (en) Method and system for routing connections in a software-defined wide area network
CN102893556B (en) Method, system and equipment for source peer-to-peer Diameter based on capacity load Sharing
CN104780066B (en) Determined for the physical pathway of virtual network stream of packets
CN102571749B (en) Data transmission system and method using relay server
CN111771359B (en) Method and system for connecting communication networks
CN102404418B (en) Method, device and system for distributing IP (internet protocol) address for user terminal
CN104539531A (en) Data transmission method and device
CN104270291A (en) Content delivery network (CDN) quality monitoring method
US10320653B2 (en) Route topology discovery in data networks
CN102447624A (en) Load balancing method in server cluster, as well as node server and cluster
WO2021227863A1 (en) Disaster recovery method and apparatus for hybrid cloud private line access network
CN109728962A (en) A kind of method and apparatus sending message
CN104618243A (en) Routing method, device and system, and gateway scheduling method and device
US9467374B2 (en) Supporting multiple IEC-101/IEC-104 masters on an IEC-101/IEC-104 translation gateway
US20220345331A1 (en) Two-layer private line network system, configuration method, and device
US20150055656A1 (en) Network appliance redundancy system, control apparatus, network appliance redundancy method and program
US20060168084A1 (en) Method and apparatus for rendering load balancing and failover
EP3989512A1 (en) Method for controlling traffic forwarding, device, and system
CN104980368A (en) Bandwidth guarantee method and apparatus in software defined network (SDN)
CN112910704B (en) Local area network system, method and device supporting dynamic self-adaptive network configuration
CN111262715B (en) Virtual intranet acceleration method and system and computer equipment
CN107276846B (en) Gateway disaster tolerance method, device and storage medium
US8750166B2 (en) Route topology discovery in data networks
CN102857435B (en) Method and device for forwarding three-layer data flow in data center site

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