CN112788154A - Data transmission system and method - Google Patents

Data transmission system and method Download PDF

Info

Publication number
CN112788154A
CN112788154A CN202110130685.1A CN202110130685A CN112788154A CN 112788154 A CN112788154 A CN 112788154A CN 202110130685 A CN202110130685 A CN 202110130685A CN 112788154 A CN112788154 A CN 112788154A
Authority
CN
China
Prior art keywords
center
network node
connection
cdn network
connection center
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.)
Pending
Application number
CN202110130685.1A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110130685.1A priority Critical patent/CN112788154A/en
Publication of CN112788154A publication Critical patent/CN112788154A/en
Pending legal-status Critical Current

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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1021Server selection for load balancing based on client or server locations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The data transmission system and the data transmission method provided by the embodiment of the invention send a communication request to a registration center through a CDN network node, wherein the communication request comprises the position information of the CDN network node; the registration center searches a connection center closest to the CDN network node according to the position information of the CDN network node, determines the connection center closest to the CDN network node as a designated connection center, and sends the information of the designated connection center to the CDN network node; the CDN network node establishes connection with the designated connection center according to the information of the designated connection center and sends data to the designated connection center; the connection center receives the data sent by the CDN network node through the connection center, so that the CDN network node can be connected with the connection center closest to the CDN network node, and the data is sent through the connection center, thereby reducing the time delay in the data transmission process and improving the data transmission efficiency.

Description

Data transmission system and method
Technical Field
The present invention relates to the field of information technology, and in particular, to a data transmission system and method.
Background
Currently, a CDN (Content Delivery Network) has been widely used, and a Content of a website can be distributed to a Network edge close to a user through the CDN, so that the user can obtain a desired Content nearby. Therefore, the network congestion can be solved, and the access speed of the user can be improved.
However, the current CDN networks generally use a central communication mechanism, and when there is a demand for message transmission between CDN nodes, the current mainstream message communication mechanism all uses the central communication mechanism. During communication, all network nodes are connected with the central node, and communication is performed by using the message queue, so that data transmission delay is often large.
Disclosure of Invention
The embodiment of the invention aims to provide a data transmission system and a data transmission method so as to solve the problem of network delay in the communication process. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a data transmission system, including:
the system comprises a content delivery network CDN network node, a registration center and a plurality of connection centers at different positions;
the CDN network node is used for sending a communication request to the registration center, wherein the communication request comprises the position information of the CDN network node;
the registration center is used for searching a connection center closest to the CDN network node through the position of each connection center acquired in advance according to the position information of the CDN network node, and the connection center is used as an appointed connection center, and sending identification information of the appointed connection center to the CDN network node;
the CDN network node is also used for establishing connection with the specified connection center according to the identification information of the specified connection center returned by the registration center and sending data to the specified connection center;
and the connection center is used for receiving data sent by the CDN network node.
Optionally, the CDN network node is specifically configured to send verification information to the specified connection center according to the identification information of the specified connection center returned by the registration center;
the connection center is specifically used for receiving the verification information and verifying the verification information; when the verification passes, sending verification passing information to the CDN network node; and sending authentication failure information to the CDN network node when the authentication is not passed.
Optionally, the CDN network node is specifically configured to establish a TCP long connection with the connection center, and send data to the designated connection center through the TCP long connection;
and the connection center is specifically used for receiving data sent by the CDN network node through TCP long connection.
Optionally, the system further includes: a distribution center;
the connection center is also used for storing data sent by the CDN network node in an uplink queue of the connection center;
the distribution center is used for searching the preset command words of the data to be transmitted in the uplink queue, and sequencing the data to be transmitted according to the priority of the preset command words in the data to be transmitted from high to low to obtain a sequenced uplink queue; and sending the sorted uplink queue.
Optionally, the system further includes: a service processing center;
the service processing center is used for returning confirmation information of the received data containing the preset command word to the connection center after receiving the sorted uplink queue;
and the connection center is further configured to store the confirmation information in the downlink queue and send the confirmation information to the CDN network node.
In a second aspect of the present invention, there is provided a data transmission method, including:
the CDN network node sends a communication request to a registration center, wherein the communication request comprises the position information of the CDN network node;
the method comprises the steps that a registration center searches a connection center closest to a CDN network node through the position of each connection center obtained in advance according to the position information of the CDN network node to serve as an appointed connection center, and sends identification information of the appointed connection center to the CDN network node, wherein the system comprises a plurality of connection centers, and the connection centers are distributed at different positions;
the CDN network node establishes connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and sends data to the specified connection center;
and the connection center receives the data sent by the CDN network node through the connection center.
Optionally, the establishing, by the CDN network node, a connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and sending data to the specified connection center, includes:
the CDN network node sends verification information to the designated connection center according to the identification information of the designated connection center returned by the registration center;
the connection center receives the verification information and verifies the verification information;
when the verification is passed, sending verification passing information to the CDN network node, establishing connection with the specified connection center, and sending data to the specified connection center;
and sending authentication failure information to the CDN network node when the authentication is not passed.
Optionally, the establishing, by the CDN network node, a connection with the designated connection center according to the information of the designated connection center, and sending data to the designated connection center includes:
the CDN network node establishes a TCP long connection with the connection center according to the information of the designated connection center and sends data to the designated connection center through the TCP long connection;
the method for receiving data sent by the CDN network node by the connection center includes the following steps:
and the connection center receives data sent by the CDN network node through TCP long connection.
Optionally, the method further includes:
the connection center stores data sent by the CDN network nodes in an uplink queue;
the distribution center searches preset command words for data to be transmitted in the uplink queue, and sorts the data to be transmitted according to the sequence of the priority of the preset command words in the data to be transmitted from high to low to obtain a sorted uplink queue; and sending the sorted uplink queue.
Optionally, the method further includes:
after receiving the sorted uplink queue, the service processing center returns confirmation information of the received data containing the preset command word to the connection center;
the connection center stores the confirmation information in the downlink queue and sends the confirmation information to the CDN network node.
In a third aspect of the present invention, there is provided a data transmission apparatus, applied to a data transmission system, the apparatus including:
the request sending module is used for sending a communication request to the registration center through the CDN network node, wherein the communication request comprises the position information of the CDN network node;
the information sending module is used for searching a connection center closest to the CDN network node through the position of each pre-acquired connection center according to the position information of the CDN network node through the registration center, using the connection center as an appointed connection center, and sending identification information of the appointed connection center to the CDN network node;
the connection establishing module is used for establishing connection with the specified connection center through the CDN network node according to the identification information of the specified connection center returned by the registration center and sending data to the specified connection center;
and the data sending module is used for receiving the data sent by the CDN network node through the connection center.
Optionally, the connection establishing module includes:
the verification information verification submodule is used for receiving the verification information through the connection center and verifying the verification information; when the verification passes, sending verification passing information to the CDN network node; and sending authentication failure information to the CDN network node when the authentication is not passed.
Optionally, the connection establishing module includes:
and the long connection submodule is used for establishing TCP long connection with the connection center through the CDN network node according to the information of the appointed connection center and receiving the data sent by the CDN network node through the TCP long connection.
Optionally, the apparatus further comprises:
the queue storage module is used for storing data sent by the CDN network node in an uplink queue of the connection center through the connection center;
the command word retrieval module is used for retrieving preset command words for the data to be transmitted in the uplink queue through the distribution center, and sorting the data to be transmitted according to the sequence of the priority of the preset command words in the data to be transmitted from high to low to obtain a sorted uplink queue; and sending the sorted uplink queue.
Optionally, the apparatus further comprises:
the service processing module is used for returning confirmation information of the received data containing the preset command word to the connection center after receiving the sorted uplink queue through the service processing center;
and the downlink queue module is used for storing the confirmation information in a downlink queue through the connection center and sending the confirmation information to the CDN network node.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any of the above data transmission methods.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the data transmission methods described above.
The data transmission system and the data transmission method provided by the embodiment of the invention send a communication request to a registration center through a CDN network node, wherein the communication request comprises the position information of the CDN network node; the method comprises the steps that a registration center searches a connection center closest to a CDN network node according to position information of the CDN network node, determines the connection center closest to the CDN network node as a designated connection center, and sends information of the designated connection center to the CDN network node, wherein the data transmission method comprises a plurality of connection centers, and the plurality of connection centers are distributed at different positions; the CDN network node establishes connection with the designated connection center according to the information of the designated connection center and sends data to the designated connection center; the connection center receives the data sent by the CDN network node through the connection center, so that the CDN network node can be connected with the connection center closest to the CDN network node, and the data is sent through the connection center, thereby reducing the time delay in the data transmission process and improving the data transmission efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a first structure of a data transmission system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a second structure of a data transmission system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data transmission system according to a third embodiment of the present invention;
fig. 4 is a schematic flowchart of a data transmission method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a user login process provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a platform deployment architecture provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a data processing flow provided in an embodiment of the present application;
fig. 8 is a schematic flowchart of a process of sending authentication information and performing authentication according to an embodiment of the present invention;
fig. 9 is a schematic flow chart of receiving data through a long connection according to an embodiment of the present invention;
fig. 10 is a schematic flowchart of sorting an uplink queue according to an embodiment of the present invention;
fig. 11 is a schematic flow chart of sending acknowledgement information according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
In a first aspect of the embodiments of the present invention, a data transmission system is provided, including:
therefore, by the data transmission system of the embodiment of the application, the CDN network node can be connected with the nearest connection center, and data is sent through the connection center, so that time delay in the data transmission process is reduced, and the data transmission efficiency is improved.
Referring to fig. 1, fig. 1 is a schematic diagram of a first structure of a data transmission system according to an embodiment of the present invention, including: a CDN network node 101, a registration center 102, and a plurality of connection centers 103 at different positions;
and the CDN network node 101 is configured to send a communication request to the registry.
The communication request comprises position information of the CDN network node. And sending a communication request to the registry, wherein the communication request can comprise various request information, such as login requests sent to the registry when the user logs in the client, and the like. And is not particularly limited. The communication request comprises position information of the CDN network node. The connection centers at different positions may be connection centers at different positions in the network, and each position may be labeled by corresponding to a different IP address.
The data transmission system of the embodiment of the application aims at data needing to be transmitted in the intelligent terminal device, so that the data can be executed through the intelligent terminal device, and specifically, the intelligent terminal device can be a computer or a server and the like.
And the registration center 102 is configured to search, according to the position information of the CDN network node, a connection center closest to the CDN network node through the positions of the connection centers acquired in advance, serve as an appointed connection center, and send identification information of the appointed connection center to the CDN network node.
The position of each connection center acquired in advance may be acquired according to the IP of each connection center. For example, it is judged from the network IP that a connection center is located in shanghai and b connection center is located in shanghai. When the CDN network node is located in shanghai, it is determined that the distance from the closest a-connection center is 3 hops, and the connection center a corresponding to shanghai may be searched as an assigned connection center. When the area where the current CDN network node is located does not have a connection center or a connection center fault, a connection center located in another area and closest to the current CDN network node may be searched for. When a plurality of connection centers closest to the current CDN network node are provided, the connection centers may be selected in a random manner. For example, when the current CDN network node is located in denna, the nearest connection center is found to be the a connection center and the b connection center, and the distances are the same, and one of the a connection center and the b connection center may be selected as the designated connection center in a random manner.
In the actual use process, after the obtained positions of the connection centers are obtained, the distances can be reset through manual setting, and when the connection center closest to the CDN network node is searched through the positions of the connection centers obtained in advance, the search can be performed according to the reset distances.
The registration center can compare the position information of the CDN network node with the position information of the CDN network node, which is stored in advance, so as to find out the connection center closest to the CDN network node as an appointed connection center, and send the identification information of the appointed connection center to the CDN network node. The identification information may be information selected by the CDN network node to connect to the designated connection center. In an actual use process, the registration center may generate the session information according to the communication request of the CDN network node and store the session information in the database. And returning the information of the connection center closest to the CDN and the session information according to the position information of the CDN network node.
One of the connection centers closest to the CDN network node is searched as an appointed connection center according to the position information of the CDN network node, so that the average data transmission time delay of the connection center can be reduced, the expandability of the system is improved, and the reliability of the system is enhanced.
The CDN network node 101 is further configured to establish a connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and send data to the specified connection center.
The CDN network node may initiate a connection request to the designated connection center according to the identification information of the designated connection center. The CDN network node establishes a connection with the designated connection center according to the identification information of the designated connection center replied by the registration center, which may be for establishing multiple types of connections. For example, to establish a long connection, multiple sets of data may be sent over one connection.
In the actual use process, connection is established with the designated connection center, the address and the session information of the CDN network node can be verified through the designated connection center, the access success information is returned to the CDN network node after verification is passed, and otherwise, failure information is returned.
And the connection center 103 is configured to receive data sent by the CDN network node.
The connection center is used for maintaining long connection with the CDN network node, and after receiving data sent by the CDN network node, the connection center can store the received data in the uplink queue.
In an actual use process, based on a receiving side and a sending side of data sent by the CDN network node, the connection center may store the received data in an uplink queue or a downlink queue. For example, when the connection center forwards the received data to other nodes, the received data may be stored in a downstream queue.
Therefore, through the data transmission system of the embodiment of the application, the CDN network node can be connected with the nearest connection center, and data is sent through the connection center, so that time delay in the data transmission process is reduced, and the data transmission efficiency is improved. And one of the connection centers closest to the CDN network node is searched as an appointed connection center according to the position information of the CDN network node, so that the average data transmission time delay of the connection center can be reduced, the expandability of the system is improved, and the reliability of the system is enhanced.
Optionally, the CDN network node 101 is specifically configured to send verification information to the specified connection center according to the identification information of the specified connection center returned by the registration center;
the connection center 103 is specifically configured to receive the verification information and verify the verification information; when the verification passes, sending verification passing information to the CDN network node; and sending authentication failure information to the CDN network node when the authentication is not passed.
Optionally, the CDN network node 101 is specifically configured to establish a TCP long connection with the connection center, and send data to the designated connection center through the TCP long connection; when there is a message transmission, the three-way handshake delay of tcp is reduced.
The connection center 103 is specifically configured to receive data sent by the CDN network node through a TCP long connection.
The method comprises the steps of establishing long connection with a connection center through a CDN network node, sending data to a designated connection center through the long connection, and receiving the data sent by the CDN network node through the long connection by the connection center. The connection center can process data sent by the CDN network node in real time, send the data sent by the CDN network node to the distribution center, receive a data distribution request of the service processing center and distribute the data. Thereby further reducing network delay in the data transmission process.
Optionally, referring to fig. 2, the system further includes: a distribution center;
the connection center 103 is further configured to store data sent by the CDN network node in an uplink queue of the connection center.
The connection center may store data sent by the CDN network node in an upstream queue of the node, and notify the distribution center of distributing the data at the same time.
The distribution center 104 is configured to perform retrieval of preset command words on the data to be transmitted in the uplink queue, and sort the data to be transmitted according to a sequence from high to low of priorities of the preset command words in the data to be transmitted, so as to obtain a sorted uplink queue; and sending the sorted uplink queue.
The distribution center searches preset command words for data to be transmitted in the uplink queue, and the important information in the uplink queue can be obtained according to the search of the command words by setting part of characteristics corresponding to the important information as the command words. And arranging the data containing the preset command words to the front end of the uplink queue to obtain the ordered uplink queue, and then arranging the rearranged uplink queue. The important information can be sent preferentially, so that the time delay of sending the important information is further reduced, and the data transmission efficiency is improved.
Wherein, the distribution center can distribute the data to different service processing centers. The distribution center can take out the message from the uplink queue of the connection center and find the corresponding service processing center according to the characteristic information of the message, wherein the corresponding service processing center can be the service processing center appointed by the distribution center according to the judgment of the uplink file.
Optionally, referring to fig. 3, the system further includes: a service processing center;
and the service processing center 105 is configured to, after receiving the sorted uplink queue, return confirmation information that the data including the preset command word is received to the connection center.
The service processing center can read the message, process the data, and generate a corresponding target IP address according to the data information.
The connection center 103 is further configured to store the confirmation information in a downlink queue, and send the confirmation information to the CDN network node.
And receiving and processing the message through the service processing center. After the service processing center finishes processing, a target IP address of the data can be generated, confirmation information is sent to the corresponding connection center, the connection center sends the data to a downlink queue of the target IP address after receiving the data, and the message is sent when the connection is idle. Therefore, the data with high priority can be ensured to be transmitted to the service processing center without fail, and the transmission reliability of the data with high priority is improved.
Referring to fig. 4, an embodiment of the present invention further provides a data transmission method, which is applied to a data transmission system, where the method includes:
step S11, the CDN network node sends a communication request to the registry.
The communication request comprises position information of the CDN network node.
Step S12, the registration center searches for a connection center closest to the CDN network node through the position of each connection center obtained in advance according to the position information of the CDN network node, and uses the connection center as an appointed connection center, and sends identification information of the appointed connection center to the CDN network node.
The system comprises a plurality of connecting centers, and the connecting centers are distributed at different positions.
And step S13, the CDN network node establishes connection with the designated connection center according to the identification information of the designated connection center returned by the registration center, and sends data to the designated connection center.
And step S14, the connection center receives the data sent by the CDN network node through the connection center.
The communication request comprises position information of the CDN network node. The communication request may be any request sent by the client, such as a login request. For a user login process in the present application, refer to fig. 5, and fig. 5 is a schematic diagram of the user login process provided in the embodiment of the present application. The client carries out user positioning to the positioning service, and after the positioning is successful, the positioning service returns a target network to the client; the client side carries out identity verification through the authentication service; after authentication, registering an authentication session through a session service; asynchronously acquiring resource data through resource service to obtain result data; the client accesses the service through the access service; through the session service, the access is successfully realized after the confirmation of the registration session state. For a remote user, the user's remote session state may also be registered with the remote node. For example, referring to fig. 6, fig. 6 is a schematic diagram of a platform deployment architecture provided in the embodiment of the present application.
In this embodiment of the present application, a connection is established with a designated connection center, and data is sent to the designated connection center, referring to fig. 7, fig. 7 is a schematic diagram of a data processing flow provided in this embodiment of the present application, where when a user sends a message, a back-end server receives the data, checks a command word (determines a service processing module that receives the message according to the command word), and sends a response message to the user, (the response message is an even command word, for example, the command word of service processing a is 1111, and after the message center receives the response message, the message center sends a response message with the command word of 1112), stores the received message in a data body, and distributes the message to a corresponding plugin for processing, however, searches for a session of the receiving user, takes out the message body after the search is successful, and sends the data to a user that needs to receive.
The connection center is used for maintaining long connection with the client node and receiving data sent by the CDN network node.
Optionally, referring to fig. 8, in step S13, the CDN network node establishes a connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and sends data to the specified connection center, where the connection includes:
step S131, the CDN network node sends verification information to the designated connection center according to the identification information of the designated connection center returned by the registration center.
And step S132, the connection center receives the verification information and verifies the verification information.
And step S133, when the verification is passed, sending verification passing information to the CDN network node, establishing connection with the specified connection center, and sending data to the specified connection center.
And step S134, sending authentication failure information to the CDN network node when the authentication fails.
And receiving verification information through the connection center, verifying the verification information, sending verification passing information to the CDN network node when the verification passes, establishing connection with the specified connection center, sending data to the specified connection center, and sending verification failure information to the CDN network node when the verification fails. The reliability of information transmission can be improved, and information transmission failure caused by communication failure is avoided.
Optionally, referring to fig. 9, in step S13, the CDN network node establishes a connection with the designated connection center according to the information about the designated connection center, and sends data to the designated connection center, where the connection includes:
step S135, the CDN network node establishes a TCP long connection with the connection center according to the information of the designated connection center, and sends data to the designated connection center through the TCP long connection.
Step S14, the connection center receives data sent by the CDN network node through the connection center, including:
step S141, the connection center receives data sent by the CDN network node through the TCP long connection.
Optionally, referring to fig. 10, the method further includes:
step S15, the connection center stores the data sent by the CDN network node in an uplink queue.
And step S16, the distribution center searches the data to be transmitted in the uplink queue for preset command words, and sorts the data to be transmitted according to the priority of the preset command words in the data to be transmitted from high to low to obtain a sorted uplink queue.
And step S17, sending the sorted uplink queue.
Optionally, referring to fig. 11, the method further includes:
step S18, after receiving the sorted uplink queue, the service processing center returns a confirmation message that the data containing the preset command word has been received to the connection center.
Step S19, the connection center stores the confirmation information in the downlink queue, and sends the confirmation information to the CDN network node.
Therefore, by the data transmission method in the embodiment of the application, the CDN network node can be connected to the nearest connection center, and data is sent through the connection center, so that time delay in a data transmission process is reduced, and data transmission efficiency is improved. And one of the connection centers closest to the CDN network node is searched as an appointed connection center according to the position information of the CDN network node, so that the average data transmission time delay of the connection center can be reduced, the expandability of the system is improved, and the reliability of the system is enhanced.
Referring to fig. 12, in an embodiment of the present invention, there is further provided a data transmission apparatus, which is applied to a data transmission system, where the apparatus includes:
a request sending module 1201, configured to send a communication request to a registration center through a CDN network node, where the communication request includes location information of the CDN network node;
the information sending module 1202 is configured to search, by the registration center, a connection center closest to the CDN network node through the position of each connection center obtained in advance according to the position information of the CDN network node, serve as an appointed connection center, and send identification information of the appointed connection center to the CDN network node;
a connection establishing module 1203, configured to establish, by using the CDN network node, a connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and send data to the specified connection center;
a data sending module 1204, configured to receive, through the connection center, data sent by the CDN network node.
Optionally, the connection establishing module 1203 includes:
the verification information verification submodule is used for receiving the verification information through the connection center and verifying the verification information; when the verification passes, sending verification passing information to the CDN network node; and sending authentication failure information to the CDN network node when the authentication is not passed.
Optionally, the connection establishing module 1203 further includes:
and the long connection submodule is used for establishing TCP long connection with the connection center through the CDN network node according to the information of the appointed connection center and receiving the data sent by the CDN network node through the TCP long connection.
Optionally, the apparatus further comprises:
the queue storage module is used for storing data sent by the CDN network node in an uplink queue of the connection center through the connection center;
the command word retrieval module is used for retrieving preset command words for the data to be transmitted in the uplink queue through the distribution center, and sorting the data to be transmitted according to the sequence of the priority of the preset command words in the data to be transmitted from high to low to obtain a sorted uplink queue; and sending the sorted uplink queue.
Optionally, the apparatus further comprises:
the service processing module is used for returning confirmation information of the received data containing the preset command word to the connection center after receiving the sorted uplink queue through the service processing center;
and the downlink queue module is used for storing the confirmation information in a downlink queue through the connection center and sending the confirmation information to the CDN network node.
Therefore, through the data transmission device in the embodiment of the application, the CDN network node can be connected to the connection center closest to the CDN network node, and data is sent through the connection center, so that time delay in a data transmission process is reduced, and data transmission efficiency is improved. And one of the connection centers closest to the CDN network node is searched as an appointed connection center according to the position information of the CDN network node, so that the average data transmission time delay of the connection center can be reduced, the expandability of the system is improved, and the reliability of the system is enhanced.
An embodiment of the present invention further provides an electronic device, as shown in fig. 13, including a processor 1301, a communication interface 1302, a memory 1303, and a communication bus 1304, where the processor 1301, the communication interface 1302, and the memory 1303 complete mutual communication through the communication bus 1304,
a memory 1303 for storing a computer program;
the processor 1301 is configured to implement the following steps when executing the program stored in the memory 1303:
the CDN network node sends a communication request to a registration center, wherein the communication request comprises the position information of the CDN network node;
the method comprises the steps that a registration center searches a connection center closest to a CDN network node through the position of each connection center obtained in advance according to the position information of the CDN network node to serve as an appointed connection center, and sends identification information of the appointed connection center to the CDN network node, wherein the system comprises a plurality of connection centers, and the connection centers are distributed at different positions;
the CDN network node establishes connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and sends data to the specified connection center;
and the connection center receives the data sent by the CDN network node through the connection center.
Optionally, when the processor executes the program stored in the memory, any of the above data transmission methods may also be implemented.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the computer-readable storage medium runs on a computer, the computer is caused to execute any one of the data transmission methods in the above embodiments.
In a further embodiment, the present invention also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the data transmission methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method, apparatus, electronic device, storage medium, and computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A data transmission system, comprising:
the system comprises a content delivery network CDN network node, a registration center and a plurality of connection centers at different positions;
the CDN network node is used for sending a communication request to the registration center, wherein the communication request comprises the position information of the CDN network node;
the registration center is used for searching a connection center closest to the CDN network node through the position of each connection center obtained in advance according to the position information of the CDN network node, and the connection center is used as a designated connection center, and sending the identification information of the designated connection center to the CDN network node;
the CDN network node is further configured to establish a connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and send data to the specified connection center;
and the connection center is used for receiving the data sent by the CDN network node.
2. The system of claim 1,
the CDN network node is specifically configured to send the verification information to the specified connection center according to the identification information of the specified connection center returned by the registration center;
the connection center is specifically used for receiving the verification information and verifying the verification information; when the verification passes, sending verification passing information to the CDN network node; and sending authentication failure information to the CDN network node when the authentication is not passed.
3. The system according to claim 2, wherein the CDN network node is specifically configured to establish a TCP long connection with the connection center, and send data to the designated connection center through the TCP long connection;
the connection center is specifically configured to receive, through the TCP long connection, data sent by the CDN network node.
4. The system of claim 1, further comprising: a distribution center;
the connection center is further configured to store data sent by the CDN network node in an uplink queue of the connection center;
the distribution center is used for retrieving preset command words of the data to be transmitted in the uplink queue, and sequencing the data to be transmitted according to the sequence of the priority of the preset command words in the data to be transmitted from high to low to obtain a sequenced uplink queue; and sending the sorted uplink queue.
5. The system of claim 4, further comprising: a service processing center;
the service processing center is used for returning the confirmation information of the received data containing the preset command word to the connection center after receiving the sorted uplink queue;
the connection center is further configured to store the confirmation information in a downlink queue, and send the confirmation information to the CDN network node.
6. A data transmission method, applied to a data transmission system, the method comprising:
the CDN network node sends a communication request to the registration center, wherein the communication request comprises the position information of the CDN network node;
the registration center searches a connection center closest to the CDN network node through the position of each connection center obtained in advance according to the position information of the CDN network node to serve as an appointed connection center, and sends identification information of the appointed connection center to the CDN network node, wherein the system comprises a plurality of connection centers which are distributed at different positions;
the CDN network node establishes connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and sends data to the specified connection center;
and the connection center receives the data sent by the CDN network node through the connection center.
7. The method of claim 6, wherein the establishing, by the CDN network node, a connection with the specified connection center according to the identification information of the specified connection center returned by the registration center, and sending data to the specified connection center includes:
the CDN network node sends the verification information to the designated connection center according to the identification information of the designated connection center returned by the registration center;
the connection center receives the verification information and verifies the verification information;
when the verification is passed, sending verification passing information to the CDN network node, establishing connection with the specified connection center, and sending data to the specified connection center;
and sending authentication failure information to the CDN network node when the authentication is not passed.
8. The method of claim 7, wherein the CDN network node establishes a connection with the designated connection center according to the information about the designated connection center, and sends data to the designated connection center, including:
the CDN network node establishes a TCP long connection with the connection center according to the information of the specified connection center and sends data to the specified connection center through the TCP long connection;
the method for receiving the data sent by the CDN network node by the connection center includes:
and the connection center receives the data sent by the CDN network node through the TCP long connection.
9. The method of claim 6, further comprising:
the connection center stores the data sent by the CDN network node in an uplink queue;
the distribution center searches preset command words for the data to be transmitted in the uplink queue, and sorts the data to be transmitted according to the sequence of the priority of the preset command words in the data to be transmitted from high to low to obtain a sorted uplink queue; and sending the sorted uplink queue.
10. The method of claim 9, further comprising:
after receiving the sorted uplink queue, the service processing center returns confirmation information of the received data containing the preset command word to the connection center;
and the connection center stores the confirmation information in a downlink queue and sends the confirmation information to the CDN network node.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 6 to 10 when executing a program stored in the memory.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 6 to 10.
CN202110130685.1A 2021-01-29 2021-01-29 Data transmission system and method Pending CN112788154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110130685.1A CN112788154A (en) 2021-01-29 2021-01-29 Data transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110130685.1A CN112788154A (en) 2021-01-29 2021-01-29 Data transmission system and method

Publications (1)

Publication Number Publication Date
CN112788154A true CN112788154A (en) 2021-05-11

Family

ID=75760024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110130685.1A Pending CN112788154A (en) 2021-01-29 2021-01-29 Data transmission system and method

Country Status (1)

Country Link
CN (1) CN112788154A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860720A (en) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 Content positioning method and content distribution network node
US20140068005A1 (en) * 2012-08-31 2014-03-06 Microsoft Corporation Identification, caching, and distribution of revised files in a content delivery network
CN104702617A (en) * 2015-03-20 2015-06-10 广东睿江科技有限公司 Data distribution method and device based on CDN (content distribution network)
CN105068864A (en) * 2015-07-24 2015-11-18 北京京东尚科信息技术有限公司 Method and system for processing asynchronous message queue
CN106296439A (en) * 2015-05-15 2017-01-04 中国电力科学研究院 A kind of priority transmission control method mutual based on IEC61968 information
CN107517194A (en) * 2016-06-17 2017-12-26 阿里巴巴集团控股有限公司 A kind of content distributing network returns source authentication method and device
WO2018044520A1 (en) * 2016-08-31 2018-03-08 Level 3 Communications, Llc Anycast manifest retrieval, unicast content retrieval
CN108270811A (en) * 2016-12-30 2018-07-10 中国移动通信集团黑龙江有限公司 A kind of service information distribution method and server
CN109347904A (en) * 2018-08-29 2019-02-15 乐蜜有限公司 The method for building up and system of communication link
CN111371854A (en) * 2020-02-24 2020-07-03 南京甄视智能科技有限公司 Method and device for sending offline message in Internet of things, storage medium and server
CN112243028A (en) * 2020-10-13 2021-01-19 腾讯科技(深圳)有限公司 Content distribution network data transmission method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860720A (en) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 Content positioning method and content distribution network node
US20140068005A1 (en) * 2012-08-31 2014-03-06 Microsoft Corporation Identification, caching, and distribution of revised files in a content delivery network
CN104702617A (en) * 2015-03-20 2015-06-10 广东睿江科技有限公司 Data distribution method and device based on CDN (content distribution network)
CN106296439A (en) * 2015-05-15 2017-01-04 中国电力科学研究院 A kind of priority transmission control method mutual based on IEC61968 information
CN105068864A (en) * 2015-07-24 2015-11-18 北京京东尚科信息技术有限公司 Method and system for processing asynchronous message queue
CN107517194A (en) * 2016-06-17 2017-12-26 阿里巴巴集团控股有限公司 A kind of content distributing network returns source authentication method and device
WO2018044520A1 (en) * 2016-08-31 2018-03-08 Level 3 Communications, Llc Anycast manifest retrieval, unicast content retrieval
CN108270811A (en) * 2016-12-30 2018-07-10 中国移动通信集团黑龙江有限公司 A kind of service information distribution method and server
CN109347904A (en) * 2018-08-29 2019-02-15 乐蜜有限公司 The method for building up and system of communication link
CN111371854A (en) * 2020-02-24 2020-07-03 南京甄视智能科技有限公司 Method and device for sending offline message in Internet of things, storage medium and server
CN112243028A (en) * 2020-10-13 2021-01-19 腾讯科技(深圳)有限公司 Content distribution network data transmission method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SANDIP ROY: "Fuzzy based dynamic load balancing scheme for efficient edge server selection in Cloud-oriented content delivery network using Voronoi diagram", 《IEEEXPLORE》 *
蔡宁: "CDN边缘节点部署位置下沉的研究", 《电信工程技术与标准化》 *

Similar Documents

Publication Publication Date Title
US20080005220A1 (en) Distributed transaction processing method, distributed transaction processing system, transaction management device, and computer product
CN106453460B (en) File distribution method, device and system
CN111083204B (en) File transmission method, device and storage medium
CN117321589A (en) Web crawling by using proxy and application thereof
CN112765583A (en) Single sign-on method, device, equipment and medium
CN114338063A (en) Message queue system, service processing method, and computer-readable storage medium
CN112118151A (en) Network speed measuring method, device, system, electronic equipment and storage medium
CN115168031A (en) Fog calculation system, method, electronic equipment and storage medium
CN115080272A (en) Business data processing method, electronic device and storage medium
CN108401040B (en) Content receiving method, content sending method, device and system for NDN
CN112130931B (en) Application deployment method, node, system and storage medium
CN112788154A (en) Data transmission system and method
US6963993B1 (en) Fail-over file transfer process
CN115118631B (en) Link exception handling method and device, electronic equipment and storage medium
CN113472831B (en) Service access method, device, gateway equipment and storage medium
CN113691520A (en) Method, device, storage medium and electronic device for acquiring streaming media information
CN114338794A (en) Service message pushing method and device, electronic equipment and storage medium
CN106533760A (en) Method and apparatus for constructing CDN system in CM network
CN106447370B (en) Advertisement material data website verification method and device
CN111506846A (en) Web page generation method and device, electronic equipment and storage medium
CN111782938B (en) Information query pushing method and device and computer equipment
CN112988809B (en) Data query method, device, equipment and medium based on relational database
CN115348211B (en) Method for processing computing tasks using available network nodes
CN115134618B (en) Live stream life cycle information processing method and device and computing equipment
CN113242307B (en) Service request processing method, device, server and storage medium

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