CN116366499B - Data transmission method, device, electronic equipment and medium - Google Patents

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

Info

Publication number
CN116366499B
CN116366499B CN202310601337.7A CN202310601337A CN116366499B CN 116366499 B CN116366499 B CN 116366499B CN 202310601337 A CN202310601337 A CN 202310601337A CN 116366499 B CN116366499 B CN 116366499B
Authority
CN
China
Prior art keywords
receiving end
receiving
target
sending
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310601337.7A
Other languages
Chinese (zh)
Other versions
CN116366499A (en
Inventor
杨旭杰
蒋子豪
江炜轩
毛超丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310601337.7A priority Critical patent/CN116366499B/en
Publication of CN116366499A publication Critical patent/CN116366499A/en
Application granted granted Critical
Publication of CN116366499B publication Critical patent/CN116366499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a data transmission method, a device, electronic equipment and a medium, belonging to the technical field of data transmission, wherein the method comprises the following steps: receiving information to be transmitted sent by a sending end, and acquiring a first network parameter of the sending end according to the information to be transmitted; determining a first distance between the transmitting end and each first receiving end according to the first network parameters and the second network parameters of each first receiving end; determining a plurality of second receiving ends in each first receiving end according to the first distance, and sending test information to each second receiving end; receiving response information fed back by each second receiving end, and determining target time delay between the first receiving end and the second receiving end; and determining a target receiving end in each second receiving end according to the target time delay, sending the information to be transmitted to the target receiving end, and setting a link between the sending end and the target receiving end as a first fixed sending link. In the application, the timeliness of the message is improved.

Description

Data transmission method, device, electronic equipment and medium
Technical Field
The present application relates to the field of data display technologies, and in particular, to a data transmission method, apparatus, electronic device, and medium.
Background
A cluster may be made up of a plurality of node devices, each for processing messages sent by clients. When a client sends a message, the cluster will distribute the message to a certain node device in the cluster.
In an exemplary technique, messages are randomly assigned to node devices in a cluster. If the client is far away from the node equipment, delay fluctuation can be generated when the client sends the message to the node equipment, so that timeliness of the message is reduced.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, electronic equipment and a medium, which are used for solving the problem of low timeliness of messages.
In one aspect, the present application provides a data transmission method, including:
receiving information to be transmitted sent by a sending end, and acquiring a first network parameter of the sending end according to the information to be transmitted;
acquiring second network parameters of each first receiving end, and determining a first distance between the transmitting end and each first receiving end according to the first network parameters and each second network parameter;
determining a plurality of second receiving ends in each first receiving end according to the first distance, and sending test information to each second receiving end, wherein the first distance corresponding to the second receiving end is smaller than a first preset distance;
receiving response information fed back by each second receiving end based on the test information, and determining target time delay between the transmitting end and the second receiving end according to the receiving time point of the response information and the transmitting time point of the test information;
determining a target receiving end in each second receiving end according to the target time delay, sending the information to be transmitted to the target receiving end, setting a link between the sending end and the target receiving end as a first fixed sending link, wherein the target time delay of the target receiving end is smaller than a preset time delay, and the first fixed sending link is used for indicating to send the data of the sending end to the target receiving end.
On the other hand, the application also provides a data transmission device, which comprises:
the first receiving module is used for receiving information to be transmitted sent by a sending end and acquiring a first network parameter of the sending end according to the information to be transmitted;
the acquisition module is used for acquiring second network parameters of each first receiving end and determining a first distance between the sending end and each first receiving end according to the first network parameters and each second network parameter;
the first determining module is used for determining a plurality of second receiving ends in the first receiving ends according to the first distance and sending test information to each second receiving end, and the first distance corresponding to the second receiving ends is smaller than a first preset distance;
the second receiving module is used for receiving response information fed back by each second receiving end based on the test information and determining target time delay between the transmitting end and the second receiving end according to the receiving time point of the response information and the transmitting time point of the test information;
the second determining module is configured to determine a target receiving end in each second receiving end according to the target time delay, send the information to be transmitted to the target receiving end, set a link between the sending end and the target receiving end as a first fixed sending link, and send the data of the sending end to the target receiving end by using the first fixed sending link.
In another aspect, the present application also provides an electronic device, including: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the method as described above.
In another aspect, the present application also provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the method as described above when executed by a processor.
In another aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, implements a method as described above.
The data transmission method, the device, the electronic equipment and the medium provided by the application are used for receiving information to be transmitted sent by a sending end, acquiring first network parameters of the sending end according to the information to be transmitted, acquiring second network parameters of each first receiving end, determining the distance between the sending end and each first receiving end according to the first network parameters and each second network parameters, determining the first receiving end smaller than the preset distance as a second receiving end, sending test information to each second receiving end, receiving response information fed back by each second receiving end, determining target time delay corresponding to the second receiving end based on the receiving time point of the response information and the sending time point of the test information, determining the second receiving end corresponding to the target time delay smaller than the preset time delay as a target receiving end, and finally sending the information to be transmitted to the target receiving end. According to the method and the device, the distance between the sending end and each first receiving end is determined through the network parameters of the sending end and the first receiving ends, then the second receiving end which is close to the sending end is found, and the target receiving end with smaller time delay is determined from a plurality of second receiving ends based on the time delay of the second receiving ends, so that information of the sending end can be transmitted to the target receiving end with smaller time delay, links between the sending end and the target receiving end are fixed, information of the sending end is directly sent to the target sending end, and timeliness of the information is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of a scenario of a data transmission method according to the present application;
fig. 2 is a flowchart of a first embodiment of a data transmission method according to the present application;
fig. 3 is a flowchart of a second embodiment of a data transmission method according to the present application;
fig. 4 is a flowchart of a third embodiment of a data transmission method according to the present application;
fig. 5 is a flowchart of a fourth embodiment of a data transmission method according to the present application;
FIG. 6 is a schematic block diagram of a data transmission device according to the present application;
fig. 7 is a schematic structural diagram of a data transmission device according to the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
A cluster may be made up of a plurality of node devices, each for processing messages sent by clients. When a client sends a message, the cluster will distribute the message to the nodes in the cluster.
The inventors have found that messages are randomly assigned to node devices in a cluster. If the client is far away from the node equipment, delay fluctuation can be generated when the client sends the message to the node equipment, so that timeliness of the message is reduced.
The inventor thinks that the distance between the sending end and each first receiving end is determined through the network parameters of the sending end and the first receiving ends, then a second receiving end which is closer to the sending end is found, and then a target receiving end with smaller time delay is determined from a plurality of second receiving ends based on the time delay of the second receiving ends, so that the information of the sending end can be transmitted to the target receiving end with smaller time delay, the link between the sending end and the target receiving end is fixed, the information of the sending end is directly sent to the target sending end, and the timeliness of the information is improved.
Referring to fig. 1, fig. 1 is a schematic view of a scenario involved in a data transmission method according to the present application. The client is communicatively connected to the data transmission apparatus 200 as the transmitting end 100, and the data transmission apparatus 200 is communicatively connected to a plurality of node devices in the cluster 300, each of which is a receiving end 310. The transmitting end 100 transmits information to the data transmission device 200, and the data transmission device 200 transmits test information to each receiving end 310, so that a receiving end 310 having a smaller delay with the data transmission device 200 can be determined, the receiving end 310 is defined as a target receiving end 320, and the data transmission device 200 transmits the information to the target receiving end 320. The data transmission device 200 may be a node device of the cluster 300, or may be an external device in communication with each node device of the cluster 300.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In addition, the data related to the application can be the data authorized by the user or fully authorized by each party, and the acquisition, the transmission, the use and the like of the data all meet the requirements of national related laws and regulations, and the implementation modes/embodiments of the present disclosure can be mutually combined.
It should be noted that the data transmission method, apparatus, electronic device, medium and program product of the present application may be used in the technical field of data transmission, and may also be used in any field other than data transmission, and the application fields of the data transmission method, apparatus, electronic device, medium and program product of the present application are not limited.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a data transmission method according to the present application, where the data transmission method includes the following steps:
step S201, receiving information to be transmitted sent by a sending end, and obtaining a first network parameter of the sending end according to the information to be transmitted.
In the present embodiment, the execution body is a data transmission device, and for convenience of description, a device is hereinafter referred to as a data transmission device. The apparatus may be any terminal device having data processing capabilities.
The cluster is deployed with a plurality of node devices, defined as receivers, with which the apparatus is communicatively connected. The cluster may be a card cluster.
The client, as a transmitting end, transmits information to the device, the information being defined as information to be transmitted. After receiving the information to be transmitted of the sending end, the device acquires the first network parameter of the sending end based on the information to be transmitted. The information to be transmitted carries, for example, an IP address of the transmitting end, and the device uses the IP address as the first network parameter.
Step S202, obtaining second network parameters of each first receiving end, and determining a first distance between the sending end and each first receiving end according to the first network parameters and each second network parameters.
When each node device in the cluster is deployed, corresponding network parameters are set, the network parameters of each node device can be stored in any node device, and the device sends a request to the node device, so that the network parameters of each node device are obtained. In this embodiment, the node device is defined as a first receiving end, and the network parameter of the node device is defined as a second network parameter.
After obtaining the first network parameters and the second network parameters, the device may determine a distance between the transmitting end and each first receiving end based on the first network parameters and each second network parameter, where the distance is defined as a first distance.
The first network parameter and the second network parameter may be network segments, and the network segments of the respective first node devices are stored in a b+ number, where b+ refers to a binary tree. The device finds a second network parameter close to the first network parameter on the B+ number, and a first receiving end corresponding to the second network parameter close to the first network parameter is defined as a second receiving end. For example, the network segment of the transmitting end is close to the network segment of a certain first receiving end.
Specifically, when the node device is deployed, the position of the node device is determined, the position and the network parameter of the node device are stored in an associated manner, and the network parameter of the client also has a corresponding position. The device determines a distance between the transmitting end and each first receiving end based on the position associated with the first network parameter and the position associated with each second network parameter on the B+ tree, wherein the distance is defined as a first distance.
Step S203, determining a plurality of second receiving ends in each first receiving end according to the first distance, and sending test information to each second receiving end, where the first distance corresponding to the second receiving end is smaller than the first preset distance.
The device determines a plurality of second receiving ends in each first receiving end based on the first distance, wherein the first distance corresponding to the second receiving ends is smaller than the first preset distance, namely the first receiving end corresponding to the first distance smaller than the first preset distance is determined as the second receiving end.
The distance between the second receiving end and the device is smaller, and thus the time delay between the second receiving end and the device may also be smaller. In order to accurately determine the time delay between the second receiving end and the device, the device sends test information to each second receiving end. The test information may be a heartbeat packet, that is, the receiving end receives the heartbeat packet and needs to feed back response information to the device.
Step S204, receiving response information fed back by each second receiving end based on the test information, and determining target time delay between the sending end and the second receiving end according to the receiving time point of the response information and the sending time point of the test information.
And the second receiving end feeds back response information to the device after receiving the test information. The device can determine the target time delay between the second receiving end and the transmitting end for transmitting the response information based on the receiving time point of the response information and the transmitting time point of the test information. The device sends test information to the receiving end a, and the sending time point of the test information is 9:00:01, the time point of the device receiving the response information sent by the receiving end a is 9:00:03, the target time delay between the receiving end a and the device= (3 s-1 s)/2=1s, i.e. the time delay between the receiving end a and the device is 1 second.
In step S205, a target receiving end is determined in each second receiving end according to the target time delay, the information to be transmitted is sent to the target receiving end, the link between the sending end and the target receiving end is set as a first fixed sending link, the target time delay of the target receiving end is smaller than the preset time delay, and the first fixed sending link is used for indicating to send the data of the sending end to the target receiving end.
The target time delay is arranged between each second receiving end and the device, namely, each second receiving end corresponds to one target time delay, the device can determine the target receiving end from the second receiving ends based on the target time delay, and the target time delay of the target receiving end is smaller than the preset time delay. In an example, the second receiving end corresponding to the target delay smaller than the preset delay may be used as the target receiving end. In another example, the apparatus takes a second receiving end corresponding to the minimum target delay as a target receiving end.
After determining the target receiving end, the device sends the information to be transmitted to the target receiving end, and a first fixed sending link is set on a link between the sending end and the target receiving end, wherein the first fixed sending link is used for indicating to send the data of the sending end to the target receiving end, namely the device can directly send the information of the receiving end to the target receiving end later. The device can store the identification of the transmitting end and the identification of the target receiving end in an associated mode, and the first fixed transmission link is stored in the running mode.
In this embodiment, the method includes receiving information to be transmitted sent by a transmitting end, acquiring first network parameters of the transmitting end according to the information to be transmitted, acquiring second network parameters of each first receiving end, determining a distance between the transmitting end and each first receiving end according to the first network parameters and each second network parameter, determining a first receiving end smaller than a preset distance as a second receiving end, sending test information to each second receiving end, receiving response information fed back by each second receiving end, determining a target time delay corresponding to the second receiving end based on a receiving time point of the response information and a sending time point of the test information, determining a second receiving end corresponding to the target time delay smaller than the preset time delay as a target receiving end, and finally sending the information to be transmitted to the target receiving end. In this embodiment, the distance between the transmitting end and each first receiving end is determined through the network parameters of the transmitting end and the first receiving ends, then the second receiving end closer to the transmitting end is found, and then the target receiving end with smaller time delay is determined from a plurality of second receiving ends based on the time delay of the second receiving ends, so that the information of the transmitting end can be transmitted to the target receiving end with smaller time delay, and the link between the transmitting end and the target receiving end is fixed, so that the information of the transmitting end is directly transmitted to the target transmitting end, and the timeliness of the information is improved.
Referring to fig. 3, fig. 3 is a second embodiment of the data transmission method according to the present application, based on the first embodiment, step S203 includes:
step S301, obtaining a network segment range of each cluster partition in the cluster.
In this embodiment, the cluster includes a plurality of cluster partitions, each of which is provided with a plurality of node devices, and each of the node devices has a network segment. In addition, the network segments of the respective node devices in the cluster partition are proximate, and thus, the network segments of the respective node devices within the cluster partition constitute the network segment range of the cluster partition. The network segment ranges may be stored in association with an identification of the cluster partition. The device acquires the network segment range of each cluster partition in the cluster based on the stored information.
Step S302, determining a second distance between the transmitting end and each cluster partition according to the first network segment and the lower limit network segment value of each network segment range, wherein the first network parameter comprises the first network segment.
The network segment range has an upper limit network segment value and a lower limit network segment value, and the device can determine a second distance between the sending end and each cluster partition through the first network segment of the sending end and the lower limit network segment value of each cluster partition, wherein the second distance is the shortest distance between the sending end and each cluster partition. For example, the lower-limit segment value corresponds to one location, and the first segment of the sender corresponds to one location, so that the second distance between the sender and the cluster partition can be calculated by two locations. The first network parameter includes a first network segment, and the device may acquire the first network segment through an IP address of the transmitting end.
Step S303, determining a target partition in each cluster partition according to a second distance, wherein the second distance corresponding to the target partition is smaller than a second preset distance.
And after determining the second distance corresponding to each cluster partition, the device determines the cluster partition corresponding to the second distance smaller than the second preset distance as the target partition. Or determining the cluster partition corresponding to the minimum second distance as the target partition.
Step S304, each node device of the target partition is determined to be a first receiving end, and a second network segment of each first receiving end is acquired, wherein the second network parameters comprise the second network segments.
After determining the target partition, the device determines each node device in the target partition as a first receiving end, and then acquires a second network segment of each first receiving end, that is, the second network parameters of the first receiving ends comprise the second network segment.
After determining the second network segment of the first receiving end, the device determines the first position of the transmitting end based on the first network segment, that is, acquires the position associated with the first network segment as the first position. The device determines a second position of the second receiving end based on the second network segment, namely, the position associated with the second network segment is obtained as the second position, and the device determines the position between the first receiving end and the sending end through the first position and the second position. The linear distance between the first position and the second position is the distance between the two positions.
In an example, node devices of the cluster partition process information of different topics, e.g. node device 1 is responsible for processing messages of topic 1, node device 2 is responsible for processing messages of process 2. The device determines the target theme to which the information to be transmitted belongs, and the information to be transmitted is required to be sent to a target receiving end for processing the target theme. In this regard, after determining the plurality of target partitions, the apparatus first obtains a time delay between a third receiving end and each fourth receiving end in the target partition, where the time delay may be defined as a second time delay, the time delay between the second receiving end and the apparatus is defined as the second time delay, the third receiving end is a node device in the target partition that processes information of the target subject, and the fourth receiving end is a node device in the target partition except the third receiving end. The node equipment between the device and the target partition has a first time delay, and the device calculates the total time delay corresponding to each fourth receiving end, namely the total time delay is the sum of the first time delay between the fourth receiving end and the device and the second time delay between the third receiving end and the fourth receiving end. The device determines the minimum time delay in all total time delays, the fourth receiving end corresponding to the minimum time delay is determined to be the target receiving end, the device transmits the information to be transmitted to the target receiving end, and the target receiving end transmits the information to be transmitted to the third receiving end.
In this embodiment, the device acquires the network segment range of each cluster partition in the cluster, determines the second distance between the transmitting end and each cluster partition according to the first network segment and the lower limit network segment value of each network segment range, and determines the target partition in each cluster partition through the second distance, thereby determining each node device of the target partition as the first receiving end, that is, screening out the node devices with a relatively close distance to the transmitting end from a plurality of node devices as the first receiving end, reducing the data processing capacity of the device, and saving the computing resources of the device.
Referring to fig. 4, fig. 4 is a third embodiment of the data transmission method according to the present application, based on the first or second embodiment, step S201 includes:
step S401, detecting whether to store a second fixed transmission link associated with the transmitting end;
step S402, when the second fixed transmission link associated with the transmitting end is not stored, the first network parameter of the transmitting end is obtained according to the information to be transmitted.
In this embodiment, if the device receives the information sent by the sender for the first time, the device does not store the fixed sender link of the sender, so the device needs to fix the link for the sender, so that the device sends the message of the sender to the fixed receiver based on the fixed link.
In this regard, after receiving the information to be transmitted, the device detects whether to store a fixed transmission link associated with the transmitting end, where the fixed transmission link is defined as a second fixed transmission link. The device has an identification of the terminal that received the message recorded therein, for example. After receiving the information to be transmitted sent by the sending end, the device acquires the identification of the sending end based on the information to be transmitted and detects whether the identification is recorded or not. If the identification is not recorded, it can be determined that the transmitting end transmits information to the device for the first time, that is, the device does not store the second fixed transmission link associated with the transmitting end, and the device acquires the first network parameter of the transmitting end according to the information to be transmitted, that is, the device configures the fixed transmission link for the transmitting end.
In this embodiment, the device detects whether a second fixed transmission link associated with the transmitting end is stored, and if the second fixed transmission link is not stored, obtains a first network parameter of the transmitting end based on information to be transmitted, so as to configure the fixed transmission link for the transmitting end.
Referring to fig. 5, fig. 5 is a diagram illustrating a fourth embodiment of a data transmission method according to the present application, and after step S401, further includes:
in step S501, when a second fixed transmission link associated with the transmitting end is stored, information to be transmitted is transmitted to a receiving end corresponding to the second fixed transmission link.
In this embodiment, when detecting that the identifier of the transmitting end is recorded, the device determines that the transmitting end does not transmit information to the device for the first time, that is, the transmitting end is associated with a second fixed transmitting link, and the device transmits information to be transmitted to a receiving end corresponding to the second fixed transmitting link.
Further, the node devices in the cluster partition may have unstable networks, which may cause delay increase of data transmission, and even if the information sending link of the sending end is fixed, the device needs to determine whether the receiving end corresponding to the fixed sending link has the situation of delay increase caused by unstable networks.
In this regard, the apparatus determines a third receiving end corresponding to the second fixed transmission link. In view of the above occurrence of the third receiving end, the third receiving end occurring in this embodiment may also be defined as a fifth receiving end. The device acquires the historical record information of the network quality of the third receiving end, and predicts the predicted network quality parameter of the third receiving end in the current time period based on the historical record information. The device acquires the actual network quality parameter of the third receiving end in the current time period, and when the difference between the predicted network quality parameter and the actual network quality parameter is smaller than the preset difference and the predicted network quality parameter is smaller than the preset threshold, the time delay of the third receiving end can be determined not to be increased, and the device sends information to be transmitted to the third receiving end.
In an example, the history information records network quality parameters of the third receiving end in different time periods of each day, and if the network quality parameters are higher than a preset threshold, the delay of the third receiving end is not greatly affected. The device can train a prediction model in advance based on a plurality of pieces of history information, and output the current latest history information to the prediction model, so that the predicted network quality parameter of the third receiving end in the current time period can be obtained.
The difference between the predicted network quality parameter and the actual network quality parameter is smaller than a preset difference, which can represent that the network quality parameter of the third receiving end changes according to rules, so that when the predicted network quality parameter is smaller than a preset threshold, the time delay of the third receiving end can be determined not to be increased. If the difference between the predicted network quality parameter and the actual network quality parameter is greater than or equal to the preset difference, it may be determined that the network quality of the third receiving end does not fluctuate according to the previous rule, where the probability of network fluctuation of the third receiving end is greater, that is, the delay of the third receiving end is greatly affected, and the device acquires the first network parameter of the transmitting end based on the information to be transmitted, that is, the device reconfigures the fixed transmitting link for the transmitting end.
In this embodiment, the device detects whether to store the second fixed transmission link associated with the transmitting end, and if not, obtains the first network parameter of the transmitting end based on the information to be transmitted, that is, configures the fixed transmission link for the transmitting end.
In an embodiment, the device sends a plurality of test information to each second receiving end, so that the device can receive response information fed back by the second receiving ends based on each test information, and therefore, the device can calculate a plurality of target time delays of each second receiving end, and the device determines stability of the second receiving ends based on the respective target time delays of the second receiving ends, wherein the stability is used for indicating time delay fluctuation of the first receiving ends. The device determines a target receiving end in each second receiving end based on the stability and the target time delay, wherein the target time delay of the target receiving end is smaller than the preset time delay, and the stability of the target receiving end is smaller than the preset fluctuation value.
The device draws points by taking the sending time point of the test information as a horizontal axis and the target time delay corresponding to the test information as a vertical axis, draws a straight line based on fitting of each point in a coordinate system, calculates the longitudinal distance between each target time delay and the straight line, calculates the number of time delays with the longitudinal distance larger than the preset longitudinal distance, obtains stability when the data is in the total number of all time delays, and represents that the time delay fluctuation of the second receiving end is larger when the stability is larger. The device firstly determines a second receiving end corresponding to the target time delay smaller than the preset time length as a receiving end to be determined, and then determines the receiving end to be determined with the stability smaller than the preset fluctuation value as a target receiving end.
In this embodiment, the device sends a plurality of test information to the second receiving end, so as to obtain a plurality of target delays of the second receiving end, and then determines the stability of the second receiving end through the plurality of target delays, so that the target receiving end is accurately determined based on the stability.
In an embodiment, the device sends a plurality of test information to each second receiving end, and the device sends a plurality of test information to each second receiving end, so that the device can receive response information fed back by the second receiving end based on each test information, and therefore the device can calculate a plurality of target delays of each second receiving end. The device determines the average time delay of the second receiving ends based on the target time delays of the second receiving ends, determines the target receiving end in the second receiving ends based on the average time delay, namely, determines the second receiving end corresponding to the average time delay smaller than the preset time delay as the target receiving end, and the average time delay of the target receiving end is smaller than the preset time delay.
The present application also provides a data transmission apparatus, referring to fig. 6, a data transmission apparatus 600 includes:
the first receiving module 610 is configured to receive information to be transmitted sent by a sending end, and obtain a first network parameter of the sending end according to the information to be transmitted;
an obtaining module 620, configured to obtain second network parameters of each first receiving end, and determine a first distance between the sending end and each first receiving end according to the first network parameters and each second network parameter;
the first determining module 630 is configured to determine a plurality of second receiving ends from among the first receiving ends according to a first distance, and send test information to each of the second receiving ends, where the first distance corresponding to the second receiving ends is smaller than a first preset distance;
the second receiving module 640 is configured to receive response information fed back by each second receiving end based on the test information, and determine a target time delay between the sending end and the second receiving end according to a receiving time point of the response information and a sending time point of the test message;
the second determining module 650 is configured to determine a target receiving end in each second receiving end according to the target time delay, send the information to be transmitted to the target receiving end, and set a link between the sending end and the target receiving end as a first fixed sending link, where the target time delay of the target receiving end is smaller than the preset time delay, and the first fixed sending link is used for indicating to send the data of the sending end to the target receiving end.
In one embodiment, the acquisition module 620 includes:
the first acquisition unit is used for acquiring the network segment range of each cluster partition in the cluster;
the first determining unit is used for determining a second distance between the transmitting end and each cluster partition according to the first network segment and the lower limit network segment value of each network segment range, and the first network parameter comprises the first network segment;
the second determining unit is used for determining target partitions in the cluster partitions according to second distances, and the second distances corresponding to the target partitions are smaller than second preset distances;
and the third determining unit is used for determining each node device of the target partition as a first receiving end and acquiring a second network segment of each first receiving end, wherein the second network parameters comprise the second network segments.
In one embodiment, the acquisition module 620 includes:
a fourth determining unit, configured to determine a first position of the transmitting end according to the first network segment, and determine a second position of the first receiving end according to the second network segment;
and a fifth determining unit, configured to determine a first distance between the first receiving end and the transmitting end according to the first position and the second position.
In one embodiment, the first receiving module 610 includes:
the detection unit is used for detecting whether a second fixed transmission link associated with the transmitting end is stored or not;
and the second acquisition unit is used for acquiring the first network parameter of the transmitting end according to the information to be transmitted when the second fixed transmitting link associated with the transmitting end is not stored.
In one embodiment, the first receiving module 610 includes:
and the first sending unit is used for sending the information to be transmitted to the receiving end corresponding to the second fixed sending link when the second fixed sending link associated with the sending end is stored.
In an embodiment, the first transmitting unit includes:
the determining subunit is used for determining a third receiving end corresponding to the second fixed sending link;
the first acquisition subunit is used for acquiring the historical record information of the network quality of the third receiving end;
the prediction subunit is used for predicting the predicted network quality parameter of the third receiving end in the current time period according to the history record information and acquiring the actual network quality parameter of the third receiving end in the current time period;
and the sending subunit is used for sending the information to be transmitted to the third receiving end when the difference between the predicted network quality parameter and the actual network quality parameter is smaller than a preset difference value and the predicted network quality parameter is larger than a preset threshold value.
In an embodiment, the first transmitting unit includes:
the second obtaining subunit is configured to obtain, when the difference between the predicted network quality parameter and the actual network quality parameter is greater than or equal to a preset difference, the first network parameter of the transmitting end according to the information to be transmitted.
In one embodiment, the first determining module 630 includes:
the second sending unit is used for sending a plurality of pieces of test information to each second receiving end;
a sixth determining unit, configured to determine, according to each target delay of the second receiving end, a stability of the second receiving end, where the stability is used to indicate delay fluctuation of the second receiving end;
and a seventh determining unit, configured to determine, in each second receiving end, a target receiving end according to the stability and the target delay, where the stability of the target receiving end is less than a preset fluctuation value.
In one embodiment, the first determining module 630 includes:
the third sending unit is used for sending a plurality of pieces of test information to each second receiving end;
an eighth determining unit, configured to determine an average delay of the second receiving end according to each target delay of the second receiving end;
and a ninth determining unit, configured to determine, according to the average time delay, a target receiving end in each second receiving end, where the average time delay of the target receiving end is smaller than a preset time delay.
Fig. 7 is a hardware configuration diagram of a data transmission apparatus according to an exemplary embodiment.
The data transmission apparatus 700 may include: a processor 71, such as a CPU, a memory 72, and a transceiver 73. It will be appreciated by those skilled in the art that the structure shown in fig. 7 does not constitute a limitation of the data transmission device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. The memory 72 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The processor 71 may invoke a computer program or computer-executable instructions stored in the memory 72 to perform all or part of the steps of the data transmission method described above.
The transceiver 73 is used to receive information transmitted from the external device and transmit information to the external device.
An electronic device, comprising: a processor, a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the data transmission method of any of the embodiments described above.
A non-transitory computer-readable storage medium, which when executed by a processor of a data transmission device, causes the data transmission device to perform the data transmission method described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A data transmission method, comprising:
receiving information to be transmitted sent by a sending end, and acquiring a first network parameter of the sending end according to the information to be transmitted;
acquiring second network parameters of each first receiving end, and determining a first distance between the transmitting end and each first receiving end according to the first network parameters and each second network parameter;
determining a plurality of second receiving ends in each first receiving end according to the first distance, and sending test information to each second receiving end, wherein the first distance corresponding to the second receiving end is smaller than a first preset distance;
receiving response information fed back by each second receiving end based on the test information, and determining target time delay between the transmitting end and the second receiving end according to the receiving time point of the response information and the transmitting time point of the test information;
determining a target receiving end in each second receiving end according to the target time delay, sending the information to be transmitted to the target receiving end, setting a link between the sending end and the target receiving end as a first fixed sending link, wherein the target time delay of the target receiving end is smaller than a preset time delay, and the first fixed sending link is used for indicating to send the data of the sending end to the target receiving end.
2. The method of claim 1, wherein the obtaining the second network parameter of each first receiving end includes:
acquiring a network segment range of each cluster partition in the cluster;
determining a second distance between the transmitting end and each cluster partition according to a first network segment and a lower limit network segment value of each network segment range, wherein the first network parameter comprises the first network segment;
determining a target partition in each cluster partition according to the second distance, wherein the second distance corresponding to the target partition is smaller than a second preset distance;
and determining each node device of the target partition as the first receiving end, and acquiring a second network segment of each first receiving end, wherein the second network parameters comprise the second network segments.
3. The method according to claim 2, wherein determining a first distance between the transmitting end and each of the first receiving ends according to the first network parameter and each of the second network parameters comprises:
determining a first position of the transmitting end according to the first network segment, and determining a second position of the first receiving end according to the second network segment;
and determining a first distance between the first receiving end and the sending end according to the first position and the second position.
4. The method for transmitting data according to claim 1, wherein the obtaining the first network parameter of the transmitting end according to the information to be transmitted includes:
detecting whether a second fixed transmission link associated with the transmitting end is stored or not;
and when the second fixed transmission link associated with the transmitting end is not stored, acquiring the first network parameter of the transmitting end according to the information to be transmitted.
5. The method according to claim 4, wherein after the detecting whether the second fixed transmission link associated with the transmitting end is stored, further comprising:
and when the second fixed transmission link associated with the transmitting end is stored, transmitting the information to be transmitted to a receiving end corresponding to the second fixed transmission link.
6. The method for transmitting data according to claim 5, wherein the sending the information to be transmitted to the receiving end corresponding to the second fixed transmission link includes:
determining a third receiving end corresponding to the second fixed transmission link;
acquiring historical record information of network quality of the third receiving end;
predicting a predicted network quality parameter of the third receiving end in the current time period according to the history information, and acquiring an actual network quality parameter of the third receiving end in the current time period;
and when the difference between the predicted network quality parameter and the actual network quality parameter is smaller than a preset difference value and the predicted network quality parameter is larger than a preset threshold value, sending the information to be transmitted to the third receiving end.
7. The method for data transmission according to claim 6, wherein the obtaining the actual network quality parameter of the third receiving end in the current time period further comprises:
and when the difference value between the predicted network quality parameter and the actual network quality parameter is larger than or equal to a preset difference value, acquiring a first network parameter of the transmitting end according to the information to be transmitted.
8. The method for transmitting data according to any one of claims 1 to 7, wherein the sending test information to each of the second receiving terminals includes:
sending a plurality of test information to each second receiving end;
the determining a target receiving end in each second receiving end according to the target time delay comprises the following steps:
determining the stability of the second receiving end according to each target time delay of the second receiving end, wherein the stability is used for indicating the time delay fluctuation of the second receiving end;
and determining a target receiving end in each second receiving end according to the stability and the target time delay, wherein the stability of the target receiving end is smaller than a preset fluctuation value.
9. The method for transmitting data according to any one of claims 1 to 7, wherein the sending test information to each of the second receiving terminals includes:
sending a plurality of test information to each second receiving end;
the determining a target receiving end in each second receiving end according to the target time delay comprises the following steps:
determining the average time delay of the second receiving end according to each target time delay of the second receiving end;
and determining a target receiving end in each second receiving end according to the average time delay, wherein the average time delay of the target receiving end is smaller than a preset time delay.
10. A data transmission apparatus, comprising:
the first receiving module is used for receiving information to be transmitted sent by a sending end and acquiring a first network parameter of the sending end according to the information to be transmitted;
the acquisition module is used for acquiring second network parameters of each first receiving end and determining a first distance between the sending end and each first receiving end according to the first network parameters and each second network parameter;
the first determining module is used for determining a plurality of second receiving ends in the first receiving ends according to the first distance and sending test information to each second receiving end, and the first distance corresponding to the second receiving ends is smaller than a first preset distance;
the second receiving module is used for receiving response information fed back by each second receiving end based on the test information and determining target time delay between the transmitting end and the second receiving end according to the receiving time point of the response information and the transmitting time point of the test information;
the second determining module is configured to determine a target receiving end in each second receiving end according to the target time delay, send the information to be transmitted to the target receiving end, set a link between the sending end and the target receiving end as a first fixed sending link, and send the data of the sending end to the target receiving end by using the first fixed sending link.
11. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-9.
12. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-9.
CN202310601337.7A 2023-05-26 2023-05-26 Data transmission method, device, electronic equipment and medium Active CN116366499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310601337.7A CN116366499B (en) 2023-05-26 2023-05-26 Data transmission method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310601337.7A CN116366499B (en) 2023-05-26 2023-05-26 Data transmission method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN116366499A CN116366499A (en) 2023-06-30
CN116366499B true CN116366499B (en) 2023-08-15

Family

ID=86922415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310601337.7A Active CN116366499B (en) 2023-05-26 2023-05-26 Data transmission method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116366499B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001077841A2 (en) * 2000-04-07 2001-10-18 Network Appliance, Inc. Method and apparatus for reliable and scalable distribution of data files in distributed networks
CN109639334A (en) * 2018-12-11 2019-04-16 深圳市联智物联网科技有限公司 A kind of repeater
CN110463108A (en) * 2019-06-25 2019-11-15 北京小米移动软件有限公司 Feedback method, device and storage medium
CN112118222A (en) * 2020-08-11 2020-12-22 深圳市欣博跃电子有限公司 Data forwarding method and device, electronic equipment and storage medium
WO2022057846A1 (en) * 2020-09-18 2022-03-24 华为技术有限公司 Device connection method, apparatus, and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312451B (en) * 2019-07-29 2022-10-28 大唐移动通信设备有限公司 Measurement synchronization method, network equipment and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001077841A2 (en) * 2000-04-07 2001-10-18 Network Appliance, Inc. Method and apparatus for reliable and scalable distribution of data files in distributed networks
CN109639334A (en) * 2018-12-11 2019-04-16 深圳市联智物联网科技有限公司 A kind of repeater
CN110463108A (en) * 2019-06-25 2019-11-15 北京小米移动软件有限公司 Feedback method, device and storage medium
CN112118222A (en) * 2020-08-11 2020-12-22 深圳市欣博跃电子有限公司 Data forwarding method and device, electronic equipment and storage medium
WO2022057846A1 (en) * 2020-09-18 2022-03-24 华为技术有限公司 Device connection method, apparatus, and device

Also Published As

Publication number Publication date
CN116366499A (en) 2023-06-30

Similar Documents

Publication Publication Date Title
US9872198B2 (en) Systems and methods for data transmission
US10594598B2 (en) Path setup in a mesh network
EP2337280A1 (en) Method to manage an opportunistic communication network
CN106059806B (en) CAN message sending method and device
CN111884875A (en) Offline device determination method and device
CN112838980B (en) Message processing method, system, device, electronic equipment and storage medium
CN116366499B (en) Data transmission method, device, electronic equipment and medium
US20200329468A1 (en) Beam selection method, terminal device and computer storage medium
CN113783660B (en) Transmission method, transmitting terminal and receiving terminal
US11089592B2 (en) Communication method executed in a long-range wireless network and affording low energy consumption and load management
US10003954B2 (en) Method and apparatus for distributive mobility management
CN107682271B (en) Method and device for generating routing line
CN114466321B (en) Message sending method and device, electronic equipment and storage medium
EP3797492A1 (en) Heuristics for end to end digital communication performance measurement
CN110972231B (en) Method, device, storage medium, network equipment and terminal for configuring system information
CN114422079A (en) Data transmission method and device, computer equipment and storage medium
EP3051919A1 (en) Device and method for wireless communication used in wireless ad hoc network
CN113746725A (en) Gateway selection method and device in multi-gateway environment and storage medium
CN113691882B (en) Method, device, equipment and storage medium for judging network condition
CN115297178B (en) Message sending method and device, storage medium and electronic device
CN108418820B (en) Method and device for receiving serial data
CN116828448A (en) Air upgrading method and equipment for wireless network
CN113711661B (en) Data transmission method, device and medium
CN114158069B (en) Method and device for data transmission in private network
CN116866971A (en) Network communication maintenance method and device of ad hoc network equipment and intelligent equipment

Legal Events

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