CN111800491A - Data transmission method, system, computing device and storage medium - Google Patents
Data transmission method, system, computing device and storage medium Download PDFInfo
- Publication number
- CN111800491A CN111800491A CN202010583073.3A CN202010583073A CN111800491A CN 111800491 A CN111800491 A CN 111800491A CN 202010583073 A CN202010583073 A CN 202010583073A CN 111800491 A CN111800491 A CN 111800491A
- Authority
- CN
- China
- Prior art keywords
- data
- response time
- time
- transfer
- data response
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 191
- 238000000034 method Methods 0.000 title claims abstract description 86
- 230000004044 response Effects 0.000 claims abstract description 268
- 238000012546 transfer Methods 0.000 claims abstract description 237
- 238000004590 computer program Methods 0.000 claims description 20
- 238000012360 testing method Methods 0.000 claims description 20
- 238000012545 processing Methods 0.000 abstract description 7
- 230000002035 prolonged effect Effects 0.000 abstract 1
- 230000008569 process Effects 0.000 description 33
- 238000004891 communication Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 239000008280 blood Substances 0.000 description 2
- 210000004369 blood Anatomy 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/562—Brokering proxy services
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/33—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using wide area network [WAN] connections
- A63F13/335—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using wide area network [WAN] connections using Internet
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
- A63F13/352—Details of game servers involving special game server arrangements, e.g. regional servers connected to a national server or a plurality of servers managing partitions of the game world
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling 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/63—Routing a service request depending on the request content or context
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/40—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network
- A63F2300/407—Data transfer via internet
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
- A63F2300/51—Server architecture
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
- A63F2300/53—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
- A63F2300/531—Server assignment
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application provides a data transmission method, a data transmission system, a computing device and a storage medium. In an embodiment of the present application, the method is used for data transmission between a first device and a second device, and includes: acquiring at least one first data response time between first equipment and at least one transfer equipment; acquiring at least one second data response time between at least one transfer device and a second device; and aiming at each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time, and selecting a target transfer device and a corresponding transmission path from at least one transfer device so as to meet the data transmission requirement and perform data transmission. The relay device meeting the data transmission requirement is selected based on the time sum, so that the data transmission time can be prolonged, and meanwhile, the resources of the first device and the second device are saved to improve the processing capacity of the devices due to the fact that the data transmission is carried out through the relay device.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data transmission method, a data transmission system, a computing device, and a storage medium.
Background
With the rapid development of the internet, users can be provided with many services, such as online instant messaging, online entertainment, online shopping, etc., through the internet. However, as the number of users increases and the amount of traffic increases, a plurality of service devices are required to provide services.
However, since there are multiple service devices, each of which can store different data, it is necessary to communicate between the service devices to transmit the required data for business needs. However, since each service device needs to maintain a communication connection for communication, each service device needs to manage these multiple communication connections, and it is easy to cause a long communication time and consume too much resources of each service device.
Disclosure of Invention
Aspects of the present application provide a data transmission method, system, computing device, and storage medium, which are used to perform data transmission relatively quickly and improve resource utilization.
An embodiment of the present application provides a data transmission method, configured to perform data transmission between a first device and a second device, where the method includes: acquiring at least one first data response time between the first equipment and at least one transfer equipment; acquiring at least one second data response time between the at least one transit device and the second device; for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time; and selecting a target transfer device and a corresponding transmission path from the at least one transfer device according to the time sum so as to meet the data transmission requirement and perform data transmission.
An embodiment of the present application further provides a data transmission system, configured to perform data transmission between a first device and a second device, where the system includes: the system comprises a first device and at least one transfer device; the first equipment acquires at least one first data response time between the first equipment and at least one transfer equipment; acquiring at least one second data response time between the at least one transit device and the second device; for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time; according to the time sum, selecting a target transfer device and a corresponding transmission path from the at least one transfer device to meet the data transmission requirement and perform data transmission; the transit device is configured to receive the acquisition request sent by the first device, and return the second response time in response to the acquisition request.
An embodiment of the present application further provides a computing device, configured to perform data transmission between a first device and a second device, where the computing device includes: a memory and a processor; the memory for storing a computer program; the processor to execute the computer program to: acquiring at least one first data response time between the first equipment and at least one transfer equipment; acquiring at least one second data response time between the at least one transit device and the second device; for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time; and selecting a target transfer device and a corresponding transmission path from the at least one transfer device according to the time sum so as to meet the data transmission requirement and perform data transmission.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program, which when executed by one or more processors causes the one or more processors to implement the steps of the above-mentioned method.
In the embodiment of the application, the method and the device are used for performing data transmission between first equipment and second equipment, and acquiring at least one first data response time between the first equipment and at least one transfer equipment; acquiring at least one second data response time between at least one transfer device and a second device; and aiming at each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time, and selecting a target transfer device and a corresponding transmission path from at least one transfer device so as to meet the data transmission requirement and perform data transmission. Since the transfer device meeting the data transmission requirement can be selected based on the time sum, the data transmission time can be increased. Meanwhile, as the data transmission is carried out through the transfer equipment, the resources of the first equipment and the second equipment are saved, and the saved resources can be used for other processing of the service so as to improve the processing capacity of the equipment.
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 application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart of a data transmission method according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of data transmission according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a data transmission system in accordance with an exemplary embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission device according to another exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of a computing device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some 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.
As can be seen from the foregoing, since a plurality of service devices need to communicate with each other, the communication speed is reduced, and resources of each service device are wasted too much. Therefore, the embodiment of the application provides a data transmission method, which can perform data transmission between devices relatively quickly and improve the utilization rate of device resources.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a data transmission method according to an exemplary embodiment of the present application. The method 100 provided by the embodiment of the present application may be executed by a service device, such as a server, and is applied in a scenario where a first device and a second device perform data transmission. The method 100 comprises the steps of:
101: a first data response time between the first device and at least one relay device is obtained.
102: and acquiring a second data response time between the at least one transfer device and the second device.
103: and determining the time sum of the first data response time and the second data response time aiming at the forwarding path corresponding to each transfer device.
104: and selecting target transfer equipment from at least one transfer equipment according to the time sum so as to meet the data transmission requirement and perform data transmission.
The following is detailed for the above steps:
101: at least one first data response time between the first device and the at least one relay device is obtained.
The first device and the second device are devices which need to perform data transmission. If the first device is acting as a sending device, then the second device may act as a receiving device. If the second device is acting as a sending device, then the first device may act as a receiving device. The first device and the second device may be service devices, such as servers, or terminal devices, such as computers. Or, one of the first device and the second device is a terminal, such as a computer, and the other device is a service device, such as a server. In summary, any device requiring data transmission may be within the scope of the embodiments of the present application.
It should be noted that, for the embodiment of the present application, when the second device is a sending device, step 101 may also be to acquire a first data response time between the second device and at least one relay device.
The relay device refers to a device for forwarding data, and the specific implementation form of the relay device may be a physical device, such as a Hub server (relay server), or a relay process deployed in the physical device, such as a Hub relay process. For the transit server, one transit server may be for at least one transmission path, and one transmission path may refer to, for example, the path1 of the transit server communication connection server a and the path2 of the transit server communication connection server B, where the path1 and the path2 constitute a complete transmission path. A simpler way is that one transit server corresponds to one transmission path. For a relay process, a physical device (the physical device may be a server or the like) to which the relay process belongs may have a plurality of relay processes, and each relay process (as a relay device) corresponds to one transmission path.
Based on this, it should be understood that each relay server (as a relay device) or each relay process (as a relay device) may correspond to one or more devices that are communicatively connected, and thus naturally, one or more data response times may correspond to the devices having the communicative connection.
The data response time refers to a time for the first device to send data to the relay device and obtain response data of the relay device. For example, it can be represented by Ping (Packet Internet Groper) value. It should be understood that the Ping value can represent the data response time and also the response speed, i.e. the larger the value, the slower the data transmission speed is, the longer the transmission path is; the smaller the value, the faster the data transmission speed, and the shorter the transmission path.
The manner of obtaining the first data response time may include: the stored first data response time is retrieved from the first device local storage area. The first data response time of each relay device having a communication connection with the first device may be stored in the first device. The first device may be directly located and retrieved.
And the manner of determining the first data response time may include: the first equipment sends test data to at least one transfer equipment and receives corresponding response data; determining a first data response time according to the time of the received response data; and storing the first data response time and the corresponding transfer equipment.
For example, as described above, with respect to a gaming service, there are multiple users playing an online game. The user can log in the account through a terminal of the user, such as a computer or a mobile phone, the account is verified through the server, and the user can log in the account after the verification is passed. Thus, the user can play an online game. In order to increase the interest of the game, the online game is usually an online group game or an online multiplayer game. I.e. multiple users playing an online game together. To support this type of gaming, it is necessary to support users in different geographic areas to be able to play the game together. However, typically, a plurality of users who play a game together may be divided per geographic area, e.g., in geographic area units of a city. The terminals of the users in each geographical area are usually connected to the server in the same geographical area to improve data transmission. Since the terminals of different users are connected with different servers, there are situations where at least two servers, or even multiple servers, perform data transmission in order to play together, so as to realize that multiple users play together online. Based on this, when a plurality of users play an online game together, for example. Two team users play an online game PK (battle block). Data transmission between servers is required.
For example, the first device, i.e., the server, sends a test packet to a transit server having a communication connection (e.g., a TCP/IP (transmission control Protocol/Internet Protocol) connection) with the first device, where the test packet may carry test data. And after receiving the test data packet, the transfer server responds to the test data packet and sends response data to the first equipment. The first device may count time from when the test packet is sent until response data returned by the relay server is received, and determine a time corresponding to when the response data is received, as a first data response time, that is, a Ping value. Thus, the first device may store the identification of the transit server, such as the ID, and the corresponding first data response time in the local storage area.
It should be understood that the above example can also be applied to a relay process as a relay device. The following examples of the relay server can be applied to the relay process, and will not be described in detail later.
Due to the fact that the network condition of the relay device or the connection condition with other devices may change frequently, in order to determine the first data response time more accurately, the test data may be sent to at least one relay device at regular time. To enable updating of the first data response time to determine a current first data response time. Wherein the timing time may be determined based on a service requirement (e.g., a game service), such as 12 s. The specific data response time determination process has been described above, and will not be described herein.
In addition, in order to facilitate other devices, such as a server or other terminals, to also obtain the data response time between the relay device and the other devices, the first device may return the first data response time to the relay device after determining the first data response time.
Specifically, the method 100 may further include: and returning the first data response time to the at least one transfer device so as to enable the at least one transfer device to store.
For example, according to the foregoing, after determining the first data response time corresponding to each transfer device, the first device returns each first data response time to the corresponding transfer device, so that the transfer device stores the first data response time, and other devices acquire the corresponding first data response time from the transfer device in the following process, so as to select the transfer device.
It should be noted that, for the relay device, the storage format may be the ID of the service device and the corresponding data response time.
In order to save the storage space and efficiently select the target relay device, the first data response time greater than a certain time value may be deleted, that is, the relay device corresponding to such time is not stored.
Specifically, the method 100 may further include: and when the first data response time is greater than the response time threshold, deleting the transfer equipment corresponding to the first data response time greater than the response time threshold.
It should be noted that the time threshold may be set according to the service requirement (e.g., game service).
102: and acquiring at least one second data response time between the at least one transit device and the second device.
The obtaining of the at least one second data response time between the at least one relay device and the second device includes: at least one second data response time stored in the at least one relay device is acquired.
According to the foregoing, after the first data response time is determined, the first device returns the first data response time to the corresponding transfer device for storage. Then it may receive and store other data response times sent by other devices with which it is communicatively connected, for any of the intermediate devices. So that other devices can acquire the data response time required by each device.
For example, according to the foregoing, the first device may acquire Ping values corresponding to the respective relay servers and the second device in communication connection from the plurality of relay servers.
It should be noted that, when at least two transit servers or transit processes exist before the first device and the second device. For example, server a is communicatively coupled to Hub server a, Hub server a is communicatively coupled to Hub server B, and Hub server B is communicatively coupled to server B.
In this scenario, the first data response time in the foregoing step 101 may refer to a data response time between the first device and a relay server directly connected in communication therewith, such as a data response time between the server a and the Hub server a. Or may be a data response time between the first device and a transit server that is not in direct communication connection with the first device, such as a data response time between server a and Hub server B. That is, the first data response time refers to a data response time between the first device and any one of the at least two relay servers.
For convenience of description, in the embodiment of the present application, a data response time between a first device and a relay server directly connected to the first device in communication may be taken as a first data response time, and the following description is given by taking this as an example: other forms of determination of the first data response time are similar and will not be described in detail.
Then, based on this, the second data response time, which may be the data response time between the transit server and the second device directly communicatively connected thereto, is also similar to the first data response time. For example, if server a is communicatively coupled to Hub server a and Hub server a is communicatively coupled to server B, then the second data response time is the data response time between Hub server a and server B. The second data response time may also be a data response time between the transit server and a second device that is not in direct communication connection therewith. For example, server a is communicatively coupled to Hub server a, Hub server a is communicatively coupled to Hub server B, and Hub server B is communicatively coupled to server B. Then the second data response time is the data response time from Hub server a to Hub server B to server B.
In any case, the first data response time and the second data response time may be acquired. The data response time corresponding to the direct communication connection between the transit server and the device may be obtained from the transit server directly connected to the device. For the indirect connection between the relay server and the device, it is necessary to acquire the data response time between the device and the direct connection relay server and the data response time between the relay server and the relay server. For example, server a is communicatively coupled to Hub server a, Hub server a is communicatively coupled to Hub server B, and Hub server B is communicatively coupled to server B. Taking the second data response time as an example, the second data response time between Hub server a and server B includes the data response time between Hub server a and Hub server B and the data response time between Hub server B and server B. Thereby acquiring the two periods of time.
It should be further noted that, the acquisition and determination of the data response time between the relay servers are similar to the acquisition and determination of the data response time between the servers and the relay servers, and thus the description thereof is omitted here. For example, the data response time between the transit servers may be initiated by one of the transit servers to send the test data, and the final data response time may be stored in the corresponding transit server. That is, for each relay server, it is necessary to determine a corresponding data response time as long as the device with which the relay server is communicatively connected. Alternatively, the transit server may send the time to other transit servers connected thereto, so that the transit server can determine the data response time with the device whether the device is directly connected, such as server a, or indirectly connected.
Specifically, the manner of obtaining at least one second data response time between at least one transit device and a second device may specifically include: acquiring at least one data response time stored in the transfer device from at least one transfer device, wherein each data response time corresponds to the data response time between the transfer device and other devices; at least one second data response time corresponding to the second device is selected from the at least one data response time.
For example, according to the foregoing, the first device may further acquire all the data response times from the multiple transit servers, and select the data response time corresponding to the second device as the second data response time.
In addition, for the case that the first device and the second device are in communication connection via more than two relay servers, the second data response time may be determined according to the foregoing manner, and details are not repeated here. Only the description is as follows: when one transit device may be a direct connection device or a non-direct connection device, there may be a plurality of data response times. For example, server a is communicatively coupled to Hub server a, which may be directly communicatively coupled to server B. Alternatively, server a is communicatively coupled to Hub server a, Hub server a is communicatively coupled to Hub server B, and Hub server B is communicatively coupled to server B. There may be two data response times for Hub server a.
103: and determining the time sum of the corresponding first data response time and the corresponding second data response time for each transfer device.
Each transit device may correspond to at least one transmission path, which has been described above. For a plurality of relay devices, each relay device may correspond to at least one transmission path. There may be only one relay device, and the relay device corresponds to only one transmission path.
As can be seen from the foregoing, for one Hub server for forwarding, it may also be configured as a Hub server having multiple forwarding processes, each of which performs the actions of each of the above Hub servers, each of which corresponds to one transmission path, and each of which corresponds to a service device and has a communication connection with the service device, and has a corresponding data response time. For example, the transmission path corresponding to the relay process "001" is a relay path or a transmission path corresponding to the server1, the relay process "001" and the server2, which are sequentially connected, and corresponds to the data response time from the server1 to the relay process "001" and the data response time from the relay process "001" to the server 2. For the one Hub server, it may store data response times corresponding to these multiple relay processes, such as the data response time from the server1 to the relay process "001" and the data response time from the relay process "001" to the server 2.
And a few transit devices, such as Hub servers, can be deployed more optimally, and a plurality of transit processes are arranged in each transit device. When the first device and the second device are connected through a plurality of Hub servers, a plurality of relay processes can exist between the first device and the second device for connection so as to transmit data. The time and determination method of the connection method of the multiple forwarding processes is similar to the connection method of the Hub servers described above, and will not be described here again. Therefore, the transmission speed can be improved, and the equipment cost can be relatively low. The specific implementation has been described above, and will not be described in detail.
For example, according to the foregoing, after the data response time is obtained, the first device performs summation to obtain a time sum.
104: and selecting a target transfer device and a corresponding transmission path from at least one transfer device according to the sum of time so as to meet the data transmission requirement and perform data transmission.
The target transfer device is a device that transfers data for the first device and the second device, such as a target transfer server. The target relay device may be plural or one.
The selection mode can be selected according to the time sum and the corresponding time threshold value:
specifically, selecting a target transfer device and a corresponding transmission path from at least one transfer device according to the time sum includes: selecting the transfer equipment corresponding to the time sum meeting the time threshold value as target transfer equipment according to the time sum corresponding to at least one transfer equipment; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time sum.
For example, as described above, after determining the time sums corresponding to the plurality of transit servers, the first device compares each time sum with a time threshold, where the time sum meets the range of the time threshold if the time sum corresponding to the transit server ID "01" is 0.01s and the time threshold is 0.01s or less. The first device may regard the transit server ID "01" as the target transit device. Thus, the first device transmits the transmission data to the relay server ID "01", and then transmits the transmission data to the second device from the relay server ID "01".
For the condition of data transmission through a plurality of transit servers or transit processes, at least one transmission path meeting the transmission requirement is determined according to the sum of time, and the corresponding transit equipment can be finally determined according to the transit servers or transit processes existing on the transmission path.
It should be noted that the time threshold may be determined according to the service requirement, such as the game service requirement.
For the game service, taking the case of connecting the first device and the second device through one transit device as an example, a scene description is performed: the users in the team 1 may all be playing online games in the server1, i.e. in-game data transfer, such as equipment selection, forward, backward, hiding of game characters, etc. The users in team 2 may all be playing online games in server 2. When performing PK by team 1 and team 2, PK may be performed in server1 or server2, or in a server that performs PK management in a unified manner, such as a central server. And finally, selecting the server for performing PK, wherein the final PK result return value needs to be sent to the corresponding server for data storage, and then returned to the corresponding user. For example, team 1 and team 2 perform PK in server1, and then determine the transit server carrying data transmission between server1 and server2 in the above manner. After the PK is finished, the server1 returns data corresponding to the PK result to the server2, such as final level, blood volume, task, etc. of each user in team 1 and team 2.
It should be noted that, during the data transmission process, the data that changes before and after the user PK may be compared by using xdelta3 difference algorithm, and the data to be transmitted is compressed, and may also be encrypted by using MD5(Message digest algorithm MD 5) and sent to the corresponding server, so that the corresponding server checks whether the content is accurate according to MD 5.
For example, the server1 compresses the difference data (e.g., the amount of blood of the game character corresponding to the user has changed), encrypts the difference data by md5 to generate compressed data, and transmits the compressed data and the corresponding md5 to the server 2. After receiving the data, the server2 checks whether the content is correct according to md5, and if so, decompresses the data and stores the decompressed data.
The mode of selecting the transfer device may be selected according to the minimum value of the sum of time:
specifically, selecting a target transfer device and a corresponding transmission path from at least one transfer device according to the time sum includes: selecting the transfer equipment corresponding to the minimum value of the time sum as target transfer equipment according to the time sum corresponding to at least one transfer equipment; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time and minimum value.
For example, according to the foregoing, after determining the time sums corresponding to the plurality of relay servers, the first device selects the minimum value from the plurality of time sums, thereby determining the minimum time and the corresponding relay server, and uses the minimum time and the corresponding relay server as the target relay server to perform data transmission.
Fig. 2 shows a process of data transmission. Among them, the Server may have a Server1, a Server2, a … … Server N-1, and a Server N. Different servers are in different geographical areas, such as physical room areas. Such as Server1 and Server2 in Area1, and Server-1 and Server in Area 2. And there may be different transit server hubs in different areas, such as Hub1 and Hub2 in Area 1; HubN in Area 2. When the Server1 performs data transmission with the Server n, the Server1 may first obtain the data response time corresponding to each Hub from its own local location, and then obtain the data response time corresponding to the Server n, that is, the data response time corresponding to each Hub when the Hub is in communication connection with the Server n, from different transfer servers. Each data response time may be considered to correspond to one transmission Path, e.g., a data response time between the Server1 and the Hub1 may correspond to the Path11, a data response time between the Server1 and the Hub2 may correspond to the Path12, etc. Similarly, the data response time between each transit server and the ServerN may be regarded as corresponding to one transmission path. For example, the data response time between HubN and ServerN may correspond to path PathNN, etc.
According to the specific implementation manner described above, the transit Server corresponding to the time and the minimum value may be determined, for example, HubN, the Server1 and the ServerN perform data transmission through HubN, and the transmission paths may be Path1N and PathNN.
In order to perform data transmission more quickly, the service devices in the same geographic area may be divided, so as to select a relay device belonging to the same geographic area to perform data relay. The geographical area may be divided in units of cities or in units of the same physical machine room.
Specifically, when there are at least two target transfer devices that meet the data transmission requirement, the method 100 further includes: when the first device and the second device exist in the same geographic area, selecting a target transfer device in the same geographic area from at least two target transfer devices as a final target transfer device.
More specifically, in the case that there are at least two target relay devices that satisfy the data transmission requirement, the method 100 further includes: when the first device and the second device exist in the same physical machine room, selecting a target transfer device in the same physical machine room from at least two target transfer devices as a final target transfer device.
For example, as described above, as shown in fig. 2, the Server1 and the Server2 located in the same physical room Area1 may select the Hub1 or the Hub2 that belong to the same physical room Area1 when data transmission is performed. At this time, the Hub1 and the HubN meeting the data transmission requirement may be determined first, and at this time, the same physical machine room Hub1 is selected as the final target transfer device.
In addition, the relay servers in the same physical machine room may be selected first, and based on this, the relay servers may be selected from the relay devices in the same physical machine room according to the time. At this time, according to the foregoing example, as to which relay server of the two relay servers Hub1 and Hub2 can minimize the above-described sum of times, which relay server is selected.
In addition, it may be predetermined whether the first device and the second device are for the same geographic area, such as city a. If yes, the target transfer equipment can be selected based on the transfer equipment in the same geographic area.
In addition, in order to more quickly and conveniently select the target transfer device, it may be determined whether the first device and the second device are in the same physical machine room or the same geographical area before the data response time is obtained.
Specifically, the method 100 further includes: when the first equipment and the second equipment exist in the same geographic area, determining at least one transfer equipment in the same geographic area; the step of acquiring a first data response time between the first device and at least one relay device is performed for at least one relay device in the same geographical area.
More specifically, the method 100 further includes: when the first equipment and the second equipment exist in the same physical machine room, determining at least one transfer equipment in the same physical machine room; and aiming at least one transfer device in the same physical machine room, executing the step of acquiring the first data response time between the first device and the at least one transfer device.
For example, as described above, as shown in fig. 2, the first device may first determine whether the second device belongs to the same geographical area (e.g., the same city) as itself, such as a physical machine room. If so, the first device may preferentially screen out all transit servers, such as Hub1 and Hub2, in the same physical room, such as Area 1. Or two relay processes. The target transit server is finally selected based on the two transit servers or the two transit processes executing step 101-104. Due to the specific implementation process, the foregoing has been described, and will not be further described here. Similar to the same physical machine room in the same geographical area, the description is omitted here.
In addition, a transfer device or a transfer process can be randomly selected directly from the same geographical area or the same physical machine room for data transmission.
In addition to the selection of the target relay device according to the geographical area, the selection may be made according to other requirements of the business, such as a battle area of a game business. I.e., PK area in online game, etc.
For example, server1 and server2 belong to the same war zone, and the war zone also has corresponding ID, and there may be two teams performing PK on these two servers. Such as team 1 playing an online game on server1, i.e. server1 provides an online gaming service. Team 2 plays on line on server 2. Therefore, the target transfer device can be selected through the steps 101-104 to perform data transmission. Or, the data transmission is carried out through a preset transfer device configured in a manual mode. For example, team 1 and team 2 may perform the PK on server1 or server 2. And synchronizes the PK results to another server through the mediation device.
In order to meet more service demands, the transit servers may be statically set, that is, more transit servers may be set according to the service demands, for example, for a city with an increased service volume. After the transfer server is set, the transfer server can be actively in communication connection with the server, so that the determination and acquisition of data response time are realized, and data transmission is realized. It is also possible to dynamically set the transit server.
Specifically, the method 100 further includes: under the condition that transfer equipment which can be used for data transmission between first equipment and second equipment cannot meet the data transmission requirement, newly adding transfer equipment according to the geographic area where the first equipment or the second equipment is located; and carrying out data transmission between the first equipment and the second equipment through the newly added transfer equipment.
More specifically, the method 100 further includes: under the condition that transfer equipment which can be used for data transmission between first equipment and second equipment cannot meet the data transmission requirement, newly adding transfer equipment according to a physical machine room where the first equipment or the second equipment is located; and carrying out data transmission between the first equipment and the second equipment through the newly added transfer equipment.
For example, according to the foregoing, after determining the time sum, if there is no time sum satisfying the time threshold, the first device may determine the target transit server by the time sum minimum value. And sends a message to the management server indicating this. The management server sends the message to the terminal of the operation and maintenance personnel, so that the operation and maintenance personnel can newly deploy a transfer device in a physical machine room where the first device or the second device is located or in the same geographic area (such as the same city), so as to realize data transmission between the first device and the second device. After the newly added transfer device is deployed, the communication connection can be performed between the first device and the second device, and the corresponding data response time is determined and obtained.
It should be noted that, in addition to deploying a newly added relay device, a corresponding relay process may be created in a relay device in the same existing physical machine room, or a corresponding relay process may be created in a relay device in the same existing geographic area, so as to perform data transmission between the first device and the second device.
Based on the similar inventive concept, fig. 3 shows a schematic diagram of a data transmission system provided by another exemplary embodiment of the present application. The system 300 provided in the embodiment of the present application is used for data transmission between a first device and a second device, and the system 300 may include: a first device 301 and at least one relay device 302.
The first device 301 acquires at least one first data response time between the first device and at least one relay device; acquiring at least one second data response time between at least one transfer device and a second device; for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time; and selecting a target transfer device and a corresponding transmission path from at least one transfer device according to the sum of time so as to meet the data transmission requirement and perform data transmission.
The transit device 302 is configured to receive the obtaining request sent by the first device, and return a second response time in response to the obtaining request.
In addition, the system 100 further includes: a second device 303.
The second device 303 is configured to determine at least one second data response time between the second device and at least one relay device, and send the corresponding second data response time to the corresponding relay device for storage.
Since the foregoing has described in detail specific embodiments of the system 300, further description is omitted.
In addition, reference may also be made to various steps in the method 200, which are not described in detail in the present system 300.
Fig. 4 is a schematic structural framework diagram of a data transmission device according to an exemplary embodiment of the present application. The apparatus 400 may be applied to a service device, such as a server. The apparatus 400 is used for data transmission between a first device and a second device, and the apparatus 400 includes an obtaining module 401, a determining module 402, and a selecting module 403; the following detailed description is directed to the functions of the various modules:
the obtaining module 401 obtains at least one first data response time between the first device and at least one relay device.
The obtaining module 401 is configured to obtain at least one second data response time between at least one transit device and a second device.
A determining module 402, configured to determine, for each transit apparatus, a time sum of the corresponding first data response time and the corresponding second data response time.
The selecting module 403 is configured to select a target relay device and a corresponding transmission path from at least one relay device according to the sum of time, so as to meet a data transmission requirement and perform data transmission.
In addition, the apparatus 400 further comprises: the transmitting module is used for transmitting the test data to at least one transfer device and receiving corresponding response data; a determining module 402, further configured to determine a first data response time according to the time of the received response data; and the storage module is used for storing the first data response time and the corresponding transfer equipment.
Specifically, the sending module is configured to send the test data to at least one transfer device at regular time.
In addition, the sending module is further configured to return the first data response time to the at least one relay device, so that the at least one relay device stores the first data response time.
Specifically, the obtaining module 401 is configured to obtain at least one second data response time stored in at least one transit device.
Specifically, the selecting module 403 is configured to select, according to a time sum corresponding to at least one transfer device, a transfer device corresponding to a time sum meeting a time threshold as a target transfer device; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time sum.
Specifically, the selecting module 403 is configured to select, according to a sum of time corresponding to at least one transfer device, a transfer device corresponding to a minimum value of the sum of time as a target transfer device; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time and minimum value.
In addition, when there are at least two target relay devices that satisfy the data transmission requirement, the selecting module 403 is further configured to select, when the first device and the second device exist in the same geographic area, a target relay device in the same geographic area from the at least two target relay devices as a final target relay device.
In addition, when there are at least two target relay devices that meet the data transmission requirement, the selecting module 403 is further configured to select, when the first device and the second device exist in the same physical machine room, a target relay device in the same physical machine room from the at least two target relay devices as a final target relay device.
In addition, the apparatus 400 further comprises: and the deleting module is used for deleting the transfer equipment corresponding to the first data response time which is greater than the response time threshold when the first data response time is greater than the response time threshold.
Specifically, the obtaining module 401 includes: an acquisition unit configured to acquire, from at least one relay device, at least one data response time stored in the relay device, each data response time corresponding to a data response time between the relay device and another device; a selecting unit for selecting at least one second data response time corresponding to the second device from the at least one data response time.
In addition, the apparatus 400 further comprises: an adding module for: under the condition that transfer equipment which can be used for data transmission between first equipment and second equipment cannot meet the data transmission requirement, newly adding transfer equipment according to the geographic area where the first equipment or the second equipment is located; and the transmission module is used for transmitting data between the first equipment and the second equipment through the newly added transfer equipment.
While the internal functions and structures of the apparatus 400 shown in FIG. 4 are described above, in one possible design, the structures of the apparatus 400 shown in FIG. 4 may be implemented as a computing device, such as a server. As shown in fig. 5, the apparatus 500 is used for data transmission between a first device and a second device, and the apparatus 500 may include: a memory 501 and a processor 502;
a memory 501 for storing a computer program.
A processor 502 for executing a computer program for: acquiring at least one first data response time between first equipment and at least one transfer equipment; acquiring at least one second data response time between at least one transfer device and a second device; for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time; and selecting a target transfer device and a corresponding transmission path from at least one transfer device according to the sum of time so as to meet the data transmission requirement and perform data transmission.
Further, the processor 502 is further configured to: sending test data to at least one transfer device and receiving corresponding response data; determining a first data response time according to the time of the received response data; and storing the first data response time and the corresponding transfer equipment.
Specifically, the processor 502 is specifically configured to: and sending the test data to at least one transfer device at regular time.
Further, the processor 502 is further configured to: and returning the first data response time to the at least one transfer device so as to enable the at least one transfer device to store.
Specifically, the processor 502 is specifically configured to: at least one second data response time stored in the at least one relay device is acquired.
Specifically, the processor 502 is specifically configured to: selecting the transfer equipment corresponding to the time sum meeting the time threshold value as target transfer equipment according to the time sum corresponding to at least one transfer equipment; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time sum.
Specifically, the processor 502 is specifically configured to: selecting the transfer equipment corresponding to the minimum value of the time sum as target transfer equipment according to the time sum corresponding to at least one transfer equipment; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time and minimum value.
In addition, when there are at least two target relay devices that satisfy the data transmission requirement, the processor 502 is further configured to: and when the first device and the second device exist in the same geographical area, selecting a target transfer device in the same geographical area from at least two target transfer devices as a final target transfer device.
In addition, when there are at least two target relay devices that satisfy the data transmission requirement, the processor 502 is further configured to: when the first device and the second device exist in the same physical machine room, selecting a target transfer device in the same physical machine room from at least two target transfer devices as a final target transfer device.
Further, the processor 502 is further configured to: and when the first data response time is greater than the response time threshold, deleting the transfer equipment corresponding to the first data response time greater than the response time threshold.
Specifically, the processor 502 is specifically configured to: acquiring at least one data response time stored in the transfer device from at least one transfer device, wherein each data response time corresponds to the data response time between the transfer device and other devices; at least one second data response time corresponding to the second device is selected from the at least one data response time.
Further, the processor 502 is further configured to: under the condition that transfer equipment which can be used for data transmission between first equipment and second equipment cannot meet the data transmission requirement, newly adding transfer equipment according to the geographic area where the first equipment or the second equipment is located; and carrying out data transmission between the first equipment and the second equipment through the newly added transfer equipment.
Additionally, embodiments of the present invention provide a computer storage medium, where the computer program, when executed by one or more processors, causes the one or more processors to implement the steps of a data transmission method in the method embodiment of fig. 1.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, 203, etc., are merely used for distinguishing different operations, and the sequence numbers themselves do not represent any execution order. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable multimedia data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable multimedia data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable multimedia data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable multimedia data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Embodiments of the present invention also include these and other aspects as specified in the following numbered clauses:
1. a data transmission method for data transmission between a first device and a second device, the method comprising:
acquiring at least one first data response time between the first equipment and at least one transfer equipment;
acquiring at least one second data response time between the at least one transit device and the second device;
for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time;
and selecting a target transfer device and a corresponding transmission path from the at least one transfer device according to the time sum so as to meet the data transmission requirement and perform data transmission.
2. The method of clause 1, further comprising:
sending test data to the at least one transfer device and receiving corresponding response data;
determining the first data response time according to the time of the received response data;
and storing the first data response time and the corresponding transfer equipment.
3. The method according to clause 2, wherein the sending test data to the at least one transfer device includes:
and sending test data to the at least one transfer device at regular time.
4. The method of clause 2, further comprising:
and returning the first data response time to the at least one transfer device so as to enable the at least one transfer device to store.
5. The method according to clause 1, wherein the obtaining at least one second data response time between the at least one relay device and the second device comprises:
and acquiring at least one second data response time stored in the at least one transfer device.
6. The method according to clause 1, wherein the selecting a target relay device and a corresponding transmission path from the at least one relay device according to the time sum includes:
selecting the transfer equipment corresponding to the time sum meeting the time threshold value as the target transfer equipment according to the time sum corresponding to at least one transfer equipment;
and determining the corresponding transmission path according to the target transfer equipment and the corresponding time sum.
7. The method according to clause 1, wherein the selecting a target relay device and a corresponding transmission path from the at least one relay device according to the time sum includes:
selecting the transfer equipment corresponding to the minimum value of the time sum as the target transfer equipment according to the time sum corresponding to at least one transfer equipment;
and determining the corresponding transmission path according to the target transfer equipment and the corresponding time and the minimum value.
8. The method according to clause 1, wherein, when there are at least two target relay devices that satisfy the data transmission demand, the method further comprises:
and when the first device and the second device exist in the same geographic area, selecting a target transfer device in the same geographic area from at least two target transfer devices as the final target transfer device.
9. The method according to clause 1, wherein, when there are at least two target relay devices that satisfy the data transmission demand, the method further comprises:
and when the first device and the second device exist in the same physical machine room, selecting a target transfer device in the same physical machine room from at least two target transfer devices as the final target transfer device.
10. The method of clause 1, further comprising:
and when the first data response time is greater than the response time threshold, deleting the transfer equipment corresponding to the first data response time greater than the response time threshold.
11. The method according to clause 1, wherein the obtaining at least one second data response time between the at least one relay device and the second device comprises:
acquiring at least one data response time stored in the transfer device from the at least one transfer device, wherein each data response time corresponds to the data response time between the transfer device and other devices;
selecting at least one second data response time corresponding to the second device from the at least one data response time.
12. The method of clause 1, further comprising:
under the condition that transfer equipment which can be used for data transmission between first equipment and second equipment cannot meet the data transmission requirement, newly adding transfer equipment according to the geographic area where the first equipment or the second equipment is located;
and performing data transmission between the first device and the second device through the newly added transfer device.
13. A data transmission system for data transmission between a first device and a second device, the system comprising: the system comprises a first device and at least one transfer device;
the first equipment acquires at least one first data response time between the first equipment and at least one transfer equipment;
acquiring at least one second data response time between the at least one transit device and the second device;
for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time;
according to the time sum, selecting a target transfer device and a corresponding transmission path from the at least one transfer device to meet the data transmission requirement and perform data transmission;
the transit device is configured to receive the acquisition request sent by the first device, and return the second response time in response to the acquisition request.
14. The system of clause 13, further comprising: a second device;
the second device is configured to determine at least one second data response time between the second device and the at least one relay device, and send the corresponding second data response time to the corresponding relay device for storage.
15. A computing device for data transfer between a first device and a second device, the device comprising: a memory and a processor;
the memory for storing a computer program;
the processor to execute the computer program to:
acquiring at least one first data response time between the first equipment and at least one transfer equipment;
acquiring at least one second data response time between the at least one transit device and the second device;
for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time;
and selecting a target transfer device and a corresponding transmission path from the at least one transfer device according to the time sum so as to meet the data transmission requirement and perform data transmission.
16. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by one or more processors, causes the one or more processors to implement the steps of the method of any one of clauses 1-12.
17. A data transmission apparatus for performing data transmission between a first device and a second device, comprising: the device comprises an acquisition module, a determination module and a selection module;
the acquisition module is used for acquiring at least one first data response time between the first equipment and at least one transfer equipment;
the acquisition module is used for acquiring at least one second data response time between at least one transfer device and a second device;
the determining module is used for determining the sum of the corresponding first data response time and the corresponding second data response time for each transfer device;
and the selection module is used for selecting the target transfer equipment and the corresponding transmission path from the at least one transfer equipment according to the sum of time so as to meet the data transmission requirement and perform data transmission.
18. The apparatus of clause 17, further comprising:
the transmitting module is used for transmitting the test data to at least one transfer device and receiving corresponding response data;
the determining module is further configured to determine a first data response time according to the time of the received response data;
and the storage module is used for storing the first data response time and the corresponding transfer equipment.
19. The apparatus of clause 17, wherein,
the obtaining module is configured to obtain at least one second data response time stored in at least one transfer device.
20. The apparatus of clause 18, wherein,
and the sending module is used for sending the test data to at least one transfer device at regular time.
21. The apparatus of clause 18, wherein,
the sending module is further configured to return the first data response time to the at least one transfer device, so that the at least one transfer device stores the first data response time.
22. The apparatus of clause 17, wherein,
the selection module is used for selecting the transfer equipment corresponding to the time sum meeting the time threshold value as the target transfer equipment according to the time sum corresponding to at least one transfer equipment; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time sum.
23. The apparatus of clause 17, wherein,
the selection module is used for selecting the transfer equipment corresponding to the minimum value of the time sum as the target transfer equipment according to the time sum corresponding to at least one transfer equipment; and determining a corresponding transmission path according to the target transfer equipment and the corresponding time and minimum value.
24. The apparatus according to clause 17, wherein, when there are at least two target relay devices that satisfy the data transmission requirement, the selecting module is further configured to select, from the at least two target relay devices, a target relay device in the same geographic area as a final target relay device when the first device and the second device exist in the same geographic area.
25. The apparatus according to clause 17, wherein, when there are at least two target relay devices that satisfy the data transmission requirement, the selecting module is further configured to select, when the first device and the second device exist in the same physical machine room, a target relay device in the same physical machine room from the at least two target relay devices as a final target relay device.
27. The apparatus of clause 17, further comprising:
and the deleting module is used for deleting the transfer equipment corresponding to the first data response time which is greater than the response time threshold when the first data response time is greater than the response time threshold.
28. The apparatus of clause 17, wherein,
the acquisition module includes: an acquisition unit configured to acquire, from at least one relay device, at least one data response time stored in the relay device, each data response time corresponding to a data response time between the relay device and another device; a selecting unit for selecting at least one second data response time corresponding to the second device from the at least one data response time.
29. The apparatus of clause 17, further comprising: an adding module for: under the condition that transfer equipment which can be used for data transmission between first equipment and second equipment cannot meet the data transmission requirement, newly adding transfer equipment according to the geographic area where the first equipment or the second equipment is located; and the transmission module is used for transmitting data between the first equipment and the second equipment through the newly added transfer equipment.
Claims (10)
1. A data transmission method for data transmission between a first device and a second device, the method comprising:
acquiring at least one first data response time between the first equipment and at least one transfer equipment;
acquiring at least one second data response time between the at least one transit device and the second device;
for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time;
and selecting a target transfer device and a corresponding transmission path from the at least one transfer device according to the time sum so as to meet the data transmission requirement and perform data transmission.
2. The method of claim 1, further comprising:
sending test data to the at least one transfer device and receiving corresponding response data;
determining the first data response time according to the time of the received response data;
and storing the first data response time and the corresponding transfer equipment.
3. The method of claim 1, wherein the obtaining at least one second data response time between the at least one relay device and the second device comprises:
and acquiring at least one second data response time stored in the at least one transfer device.
4. The method according to claim 1, wherein the selecting a target relay device and a corresponding transmission path from the at least one relay device according to the time sum comprises:
selecting the transfer equipment corresponding to the time sum meeting the time threshold value as the target transfer equipment according to the time sum corresponding to at least one transfer equipment;
and determining the corresponding transmission path according to the target transfer equipment and the corresponding time sum.
5. A data transmission apparatus for performing data transmission between a first device and a second device, comprising: the device comprises an acquisition module, a determination module and a selection module;
the acquisition module is used for acquiring at least one first data response time between the first equipment and at least one transfer equipment;
the acquisition module is used for acquiring at least one second data response time between at least one transfer device and a second device;
the determining module is used for determining the sum of the corresponding first data response time and the corresponding second data response time for each transfer device;
and the selection module is used for selecting the target transfer equipment and the corresponding transmission path from the at least one transfer equipment according to the sum of time so as to meet the data transmission requirement and perform data transmission.
6. The apparatus of claim 5, further comprising:
the transmitting module is used for transmitting the test data to at least one transfer device and receiving corresponding response data;
the determining module is further configured to determine a first data response time according to the time of the received response data;
and the storage module is used for storing the first data response time and the corresponding transfer equipment.
7. The apparatus of claim 5,
the obtaining module is configured to obtain at least one second data response time stored in at least one transfer device.
8. A data transmission system for transmitting data between a first device and a second device, the system comprising: the system comprises a first device and at least one transfer device;
the first equipment acquires at least one first data response time between the first equipment and at least one transfer equipment;
acquiring at least one second data response time between the at least one transit device and the second device;
for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time;
according to the time sum, selecting a target transfer device and a corresponding transmission path from the at least one transfer device to meet the data transmission requirement and perform data transmission;
the transit device is configured to receive the acquisition request sent by the first device, and return the second response time in response to the acquisition request.
9. A computing device for data transmission between a first device and a second device, the device comprising: a memory and a processor;
the memory for storing a computer program;
the processor to execute the computer program to:
acquiring at least one first data response time between the first equipment and at least one transfer equipment;
acquiring at least one second data response time between the at least one transit device and the second device;
for each transfer device, determining the time sum of the corresponding first data response time and the corresponding second data response time;
and selecting a target transfer device and a corresponding transmission path from the at least one transfer device according to the time sum so as to meet the data transmission requirement and perform data transmission.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by one or more processors, causes the one or more processors to implement the steps of the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010583073.3A CN111800491A (en) | 2020-06-23 | 2020-06-23 | Data transmission method, system, computing device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010583073.3A CN111800491A (en) | 2020-06-23 | 2020-06-23 | Data transmission method, system, computing device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111800491A true CN111800491A (en) | 2020-10-20 |
Family
ID=72803743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010583073.3A Pending CN111800491A (en) | 2020-06-23 | 2020-06-23 | Data transmission method, system, computing device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111800491A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112910901A (en) * | 2021-02-04 | 2021-06-04 | 百果园技术(新加坡)有限公司 | Device selection method, device and storage medium |
CN113259225A (en) * | 2021-05-13 | 2021-08-13 | 杭州米络星科技(集团)有限公司 | Instant messaging method, server and instant messaging system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140072025A1 (en) * | 2012-09-07 | 2014-03-13 | Renesas Electronics Corporation | Transmission apparatus and communication system |
US20140098811A1 (en) * | 2012-10-10 | 2014-04-10 | Samsung Electronics Co., Ltd | Method and apparatus for media data delivery control |
CN110392409A (en) * | 2019-08-30 | 2019-10-29 | 深圳供电局有限公司 | WMSNs multi-path QoS routing method, system and storage medium based on power distribution communication network |
CN110661860A (en) * | 2019-09-18 | 2020-01-07 | 华为技术有限公司 | Method for establishing call and call equipment |
CN110868459A (en) * | 2019-11-01 | 2020-03-06 | 腾讯科技(深圳)有限公司 | Data transmission method, device, terminal and storage medium |
-
2020
- 2020-06-23 CN CN202010583073.3A patent/CN111800491A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140072025A1 (en) * | 2012-09-07 | 2014-03-13 | Renesas Electronics Corporation | Transmission apparatus and communication system |
US20140098811A1 (en) * | 2012-10-10 | 2014-04-10 | Samsung Electronics Co., Ltd | Method and apparatus for media data delivery control |
CN110392409A (en) * | 2019-08-30 | 2019-10-29 | 深圳供电局有限公司 | WMSNs multi-path QoS routing method, system and storage medium based on power distribution communication network |
CN110661860A (en) * | 2019-09-18 | 2020-01-07 | 华为技术有限公司 | Method for establishing call and call equipment |
CN110868459A (en) * | 2019-11-01 | 2020-03-06 | 腾讯科技(深圳)有限公司 | Data transmission method, device, terminal and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112910901A (en) * | 2021-02-04 | 2021-06-04 | 百果园技术(新加坡)有限公司 | Device selection method, device and storage medium |
CN112910901B (en) * | 2021-02-04 | 2023-09-12 | 百果园技术(新加坡)有限公司 | Device selection method, device and storage medium |
CN113259225A (en) * | 2021-05-13 | 2021-08-13 | 杭州米络星科技(集团)有限公司 | Instant messaging method, server and instant messaging system |
CN113259225B (en) * | 2021-05-13 | 2022-06-28 | 杭州米络星科技(集团)有限公司 | Instant messaging method, server and instant messaging system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106549878B (en) | Service distribution method and device | |
CN108881354B (en) | Push information storage method and device, server and computer storage medium | |
CN111163130B (en) | Network service system and data transmission method thereof | |
CN107979525A (en) | A kind of red packet distribution method, equipment and medium | |
CN112256495A (en) | Data transmission method and device, computer equipment and storage medium | |
CN112121413B (en) | Response method, system, device, terminal and medium for function service | |
CN111282262B (en) | Game server communication method and device | |
CN110113414B (en) | Method, device, server and storage medium for managing copies | |
CN103281346A (en) | Disconnection reconnection method, network system and proxy server | |
CN105553831A (en) | Message delivery method and system | |
CN111800491A (en) | Data transmission method, system, computing device and storage medium | |
CN109413202B (en) | System and method for sorting block chain transaction information | |
CN111290965B (en) | Test method, test device, computer equipment and storage medium | |
CN111431730A (en) | Service processing method, system, computer equipment and readable medium | |
CN112295234B (en) | Method and device for obtaining game props | |
CN111586438B (en) | Method, device and system for processing service data | |
CN113413586B (en) | Virtual object transmission method, device, equipment and storage medium | |
CN116996421A (en) | Network quality detection method and related equipment | |
CN105429981A (en) | Game voice transmission method, terminal, voice service module and game system | |
US10798147B2 (en) | Constraint based controlled seeding | |
CN114452642A (en) | Game picture display method, storage medium and electronic device | |
CN116244164A (en) | Test data packet generation method and device, electronic equipment and storage medium | |
CN113468200A (en) | Method and device for expanding fragments in block chain system | |
KR20080086142A (en) | Method of providing mobile application and computer-readable medium having thereon program performing function embodying the same | |
CN113209635B (en) | Data processing method, device and storage medium based on cache queue |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201020 |
|
RJ01 | Rejection of invention patent application after publication |