Data transmission method, device, equipment, medium and product
By acquiring and sorting time-triggered flow data in the power communication network, filtering and optimizing routing paths, low-latency and high-reliability data transmission is achieved, solving the problem of uncontrollable delay jitter in traditional IP networks, and improving power business System transmission performance and reliability.
Patent Information
- Application Number
- CN202410758257.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing power business system, the traditional IP network has problems such as uncontrollable delay jitter and packet loss caused by congestion. It cannot meet the timely and accurate requirements of time-sensitive services on the network and affects transmission performance.
By obtaining the time-triggered flow data set in the power communication network, determining the time-triggered flow data sequence after sorting, screening the candidate routing path set, and using the Ant Lion routing optimization algorithm to optimize the final routing path, and allocate transmission time slots according to the transmission order and routing path. , achieving low-latency and high-reliability data transmission.
It effectively reduces business transmission delay, improves network performance and efficiency, improves the reliability and efficiency of business transmission, and meets the high-reliability and low-latency communication requirements of power time-sensitive services.
Smart Images

Figure CN118540284A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power communication networks, and in particular to a data transmission method, device, equipment, medium and product. Background Art
[0002] The new power system is a system of efficient collaboration and interaction among sources, networks, loads, and storage. Advanced information and communication technology has become an important link that closely connects all aspects of the new power system, promoting the deep integration of the new power system in terms of energy, information, and society. With the construction of the new power system, the scenarios of power applications are becoming more diversified and differentiated, which puts forward new requirements for indicators such as latency, jitter, and reliability of communication networks. In order to create a safer, more reliable, greener, and more efficient new power business system, it is necessary to use a new power business communication network architecture with deterministic control of transmission delay as a strong foundation, significantly reduce end-to-end data communication latency, and effectively improve power supply reliability and management efficiency.
[0003] The existing power business system adopts the traditional IP network transmission method, whose main feature is statistical multiplexing. Compared with other transmission methods, it has great advantages in link bandwidth utilization efficiency and openness.
[0004] However, traditional IP networks have problems such as uncontrollable delay jitter and packet loss caused by congestion. Therefore, they cannot guarantee the "timely" and "accurate" network requirements for specific needs, which seriously affects the transmission performance of time-sensitive services. Summary of the invention
[0005] The present invention provides a data transmission method, device, equipment, medium and product to achieve high-reliability and low-latency communication transmission for power time-sensitive services.
[0006] According to a first aspect of the present invention, there is provided a data transmission method, comprising:
[0007] Obtaining a time-triggered flow data set to be transmitted in a power communication network;
[0008] Sorting the frame attributes of each first time-triggered stream data in the time-triggered stream data set to determine a time-triggered stream data sequence;
[0009] Determine a set of candidate routing paths for transmitting the second time-triggered stream data according to the routing information of each second time-triggered stream data in the time-triggered stream data sequence;
[0010] Optimizing the candidate routing path set according to the Ant Lion routing optimization algorithm to determine a final routing path for transmitting the second time-triggered flow data;
[0011] According to the transmission order in the time-triggered stream data sequence and the final routing path, the transmission time slot of each of the second time-triggered stream data is determined, and the transmission is performed in sequence.
[0012] According to a second aspect of the present invention, there is provided a data transmission device, comprising:
[0013] A data set acquisition module, used to acquire a time-triggered flow data set to be transmitted in the power communication network;
[0014] A first determining module, used to sort the frame attributes of each first time-triggered flow data in the time-triggered flow data set to determine a time-triggered flow data sequence;
[0015] A second determining module, configured to determine a set of candidate routing paths for transmitting the second time-triggered flow data according to routing information of each second time-triggered flow data in the time-triggered flow data sequence;
[0016] A third determination module is used to optimize the candidate routing path set according to the Ant Lion routing optimization algorithm to determine a final routing path for transmitting the second time-triggered flow data;
[0017] The data stream transmission module is used to determine the transmission time slot of each of the second time-triggered stream data according to the transmission order in the time-triggered stream data sequence and the final routing path, and transmit them in sequence.
[0018] According to a third aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0019] at least one processor; and
[0020] a memory communicatively connected to the at least one processor; wherein,
[0021] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data transmission method described in any embodiment of the present invention.
[0022] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data transmission method described in any embodiment of the present invention when executed.
[0023] According to a fifth aspect of the present invention, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the data transmission method of any embodiment of the present invention is implemented.
[0024] The technical solution of the embodiment of the present invention is to obtain a time-triggered stream data set to be transmitted in the power communication network; sort the frame attributes of each first time-triggered stream data in the time-triggered stream data set to determine the time-triggered stream data sequence; determine the candidate routing path set for transmitting the second time-triggered stream data according to the routing information of each second time-triggered stream data in the time-triggered stream data sequence; optimize the candidate routing path set according to the ant lion routing optimization algorithm to determine the final routing path for transmitting the second time-triggered stream data; determine the transmission time slot of each second time-triggered stream data according to the transmission order and the final routing path in the time-triggered stream data sequence, and transmit them in sequence. First, the time-triggered stream data is sorted to improve the overall performance and efficiency of the network; the second time-triggered stream data is multi-routed to improve the reliability of network service transmission and the efficiency of service transmission; the transmission time slot of each second time-triggered stream data is determined according to the transmission order, effectively reducing the service transmission delay.
[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 is a flowchart of a data transmission method provided according to Embodiment 1 of the present invention;
[0028] Figure 2 is a flowchart of a data transmission method provided according to Embodiment 2 of the present invention;
[0029] Figure 3 is a structural schematic diagram of a data transmission device provided according to Embodiment 3 of the present invention;
[0030] Figure 4 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] Embodiment 1
[0034] Figure 1 A flowchart of a data transmission method is provided for the first embodiment of the present invention. This embodiment is applicable to the communication transmission of power time-sensitive services. The method can be executed by a data transmission device. The data transmission device can be implemented in the form of hardware and / or software. The data transmission device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0035] S110. Acquire a time-triggered flow data set to be transmitted in the power communication network.
[0036] In this embodiment, the power communication network can be understood as a network architecture that communicates and connects various power services.
[0037] It can be understood that time-triggered flow data refers to data flows triggered at specific time points or time intervals in a time-sensitive network. In a time-sensitive network, different tasks or data flows may need to be triggered, transmitted or processed according to specific time requirements, and time-triggered flow is a mechanism for meeting such time requirements. As a mechanism in a time-sensitive network, time-triggered flow can help achieve accurate triggering and timely processing of time-sensitive services. By setting up a time-triggered flow, you can ensure that tasks or data flows are triggered and transmitted at specific time points or time intervals, thereby meeting the requirements of time-sensitive services.
[0038] Specifically, the processor may receive time-triggered stream data to be transmitted from relevant devices in the power communication network. Since multiple time-triggered streams exist simultaneously in the power communication network, a time-triggered stream data set is formed.
[0039] S120 , sorting the first time-triggered stream data in the time-triggered stream data set according to frame attributes to determine a time-triggered stream data sequence.
[0040] In this embodiment, the first time-triggered stream data can be understood as the time-triggered stream data in the unsorted data set. The frame attribute can be understood as the attribute of the data frame corresponding to each time-triggered stream data. The time-triggered stream data sequence can be understood as the sequence sorted by priority.
[0041] It is understandable that the scheduling order of time-triggered flow data has a great impact on the scheduling success rate of the flow. The time-triggered flow data scheduled first will affect the release time of the later scheduled time-triggered flow data in the network, and then affect the time for the later scheduled time-triggered flow data to arrive at the destination node.
[0042] Specifically, the processor may determine the priority of each first time-triggered flow data according to the frame attribute of each first time-triggered flow data in the time-triggered flow data set and perform multi-level sorting to obtain a time-triggered flow data sequence.
[0043] S130: Determine a candidate routing path set for transmitting the second time-triggered stream data according to the routing information of each second time-triggered stream data in the time-triggered stream data sequence.
[0044] In this embodiment, the second time-triggered flow data can be understood as the sorted time-triggered flow data. The routing information can be understood as information used to determine the starting routing node and the destination routing node. The candidate routing path set can be understood as a set of all unscreened paths that can reach the destination routing node.
[0045] Specifically, the processor can calculate the non-overlapping path group (NRS) between any two nodes in all routing nodes based on the candidate routing set screening algorithm to obtain multiple non-overlapping path groups, and then calculate the probability of the destination node in the non-overlapping path group receiving data, determine the success probability of each non-overlapping path group, and then screen through a given threshold to obtain candidate routing paths that meet the given threshold to form a candidate routing path set.
[0046] S140. Optimize the candidate routing path set according to the Ant Lion routing optimization algorithm to determine a final routing path for transmitting the second time-triggered flow data.
[0047] In this embodiment, the ant lion routing optimization algorithm can be understood as a new type of meta-heuristic swarm intelligence algorithm, which searches for a solution that minimizes the cost function in the search space of candidate solutions. The final routing path can be understood as the optimal routing path after optimization.
[0048] Specifically, the processor can randomly generate a series of initial solutions within the path range corresponding to the candidate routing path set as the initial population of ants and ant lions; the number of ants is determined according to the size of the search space, which is approximately the number of flows routed in the network; the cost function of all ants and ant lions is calculated as the fitness, and the routing combination with the highest fitness, that is, the minimum cost function, becomes the elite ant lion; a corresponding ant lion is selected for each ant through a roulette strategy; the interaction between the ant division and the ants in the trap is simulated to make the ants randomly wander in the search space near the ant lion, and the moving direction of the ants is saved in the matrix, and finally the average is taken. The average is taken as the new position of the ant; the cost function value corresponding to the new position of all ants (i.e. the updated routing combination) is calculated, and it is compared with the cost function value of the corresponding antlion; if the cost of the ant is less than that of its antlion, the ant will replace the original antlion and become a member of the new antlion population; the cost function of all routing combinations in the antlion population is calculated, and the smallest routing combination is taken as the new elite antlion; the fitness to elite antlion determination steps are iteratively executed until the maximum number of iterations is reached; the fitness of the ant and antlion will be recalculated after each iteration, and the final elite antlion after the iteration is the optimized final routing path.
[0049] S150: Determine the transmission time slot of each second time-triggered stream data according to the transmission order and the final routing path in the time-triggered stream data sequence, and transmit them in sequence.
[0050] In this embodiment, the transmission order can be understood as the corresponding arrangement order in the time-triggered stream data sequence. The transmission time slot can be understood as the start time of the transmission.
[0051] It can be known that since the transmission path of each data stream is controllable and there is no waiting and conflict during the transmission process, in order to make the time-triggered stream data arrive as early as possible, it is necessary to let the time-triggered stream data start transmission as early as possible. Therefore, based on a set of time-triggered stream data with a given order, the earliest transmission time slot for starting transmission is allocated to each time-triggered stream data in sequence. In the scheduling of time-triggered stream data, the time slot occupied by a stream in the network is arranged according to its path before the next stream can be scheduled. Therefore, the scheduling of each stream is only related to all the time-triggered streams scheduled before it, so the scheduling order is closely related to the scheduling result.
[0052] Specifically, the processor can schedule each time-triggered data stream in sequence according to the transmission order in the time-triggered stream data sequence, wherein the moment when the currently judged second time-triggered stream data starts to be transmitted in the network is the moment when the previous second time-triggered stream data transmission on the link corresponding to its final routing path is completed; if it is judged that a conflict occurs on a subsequent link, the moment when the currently judged second time-triggered stream data starts to be transmitted on the network is postponed to obtain the transmission time slot of each second time-triggered stream data, and transmit them in sequence according to their corresponding final routing paths.
[0053] The technical solution of the embodiment of the present invention is to obtain a time-triggered stream data set to be transmitted in the power communication network; sort the frame attributes of each first time-triggered stream data in the time-triggered stream data set to determine the time-triggered stream data sequence; determine the candidate routing path set for transmitting the second time-triggered stream data according to the routing information of each second time-triggered stream data in the time-triggered stream data sequence; optimize the candidate routing path set according to the ant lion routing optimization algorithm to determine the final routing path for transmitting the second time-triggered stream data; determine the transmission time slot of each second time-triggered stream data according to the transmission order and the final routing path in the time-triggered stream data sequence, and transmit them in sequence. First, the time-triggered stream data is sorted to improve the overall performance and efficiency of the network; the second time-triggered stream data is multi-routed to improve the reliability of network service transmission and the efficiency of service transmission; the transmission time slot of each second time-triggered stream data is determined according to the transmission order, effectively reducing the service transmission delay.
[0054] Embodiment 2
[0055] Figure 2 This is a flow chart of a data transmission method provided in Embodiment 2 of the present invention. This embodiment is a further refinement of the above embodiment. Figure 2 As shown, the method includes:
[0056] S201. Acquire a time-triggered flow data set to be transmitted in a power communication network.
[0057] S202. The frame attributes include frame size, frame period and deadline. The first time triggered stream data in the time triggered stream data set are sorted according to the frame size and frame period to obtain an intermediate triggered stream data sequence.
[0058] It is understandable that when the output queue resources are generally insufficient, the larger the frame size, the more likely it is that a suitable time slot cannot be found for injection, so flows with larger frame sizes are given priority; the periods of time-triggered flow data in the network are not exactly the same, so the lowest common multiple of these time-triggered flows is set as the super period, and then the gating list is executed once in each super period. Within a super period, time-triggered flows with smaller frame periods will appear frequently, so when the frame sizes are the same, flows with larger frame periods are given priority.
[0059] In this embodiment, the frame size can be understood as the size of the transmitted data. The frame period can be understood as the period of the transmitted data. The deadline can be understood as the stop time. The intermediate trigger stream data sequence can be understood as the result of being arranged according to the attributes.
[0060] Specifically, the processor may first sort the frame sizes in descending order, and when the frame sizes of the first time trigger stream data are the same, the first time trigger stream data with a larger frame period is preferentially selected to obtain an intermediate trigger stream data sequence after sorting.
[0061] S203 . Divide the intermediate trigger stream data sequence according to preset intervals to obtain intermediate trigger stream data subsequences.
[0062] In this embodiment, the preset interval can be understood as the interval value for dividing into multiple paths for scheduling. The intermediate trigger flow data subsequence can be understood as each trigger flow subsequence after segmentation.
[0063] Specifically, the processor may divide the intermediate trigger stream data sequence by preset intervals to obtain intermediate trigger stream data subsequences.
[0064] For example, if the preset interval is n and the intermediate trigger stream data sequence is L, it can be divided into [L / n] intermediate trigger stream data subsequences. Through a reasonable sorting scheme, the waiting time and scheduling delay of the stream can be reduced, the competition and conflict of resources can be reduced, the concurrency and efficiency of the system can be improved, the system load can be balanced, and the stability and reliability of the system can be improved.
[0065] S204 , arranging the triggered stream data in the intermediate triggered stream data subsequence according to each deadline time to obtain a time triggered stream data subsequence.
[0066] In this embodiment, the time-triggered stream data subsequence can be understood as a sorted intermediate triggered stream subsequence.
[0067] Specifically, the processor may reorder the intermediate triggered stream data subsequences respectively, and order the time triggered stream data with a smaller deadline as a priority, to determine the corresponding time triggered stream subsequence.
[0068] S205 . Form a time-triggered stream data sequence according to each time-triggered stream data subsequence.
[0069] Specifically, the processor may sort the subsequences of each time-triggered stream data to form a time-triggered stream data sequence.
[0070] S206: Determine a non-overlapping path group according to the routing information of each second time-triggered flow data in the time-triggered flow data sequence.
[0071] In this embodiment, the non-overlapping path group set can be understood as a set of non-overlapping path groups corresponding to the second time-triggered flow data in the time-triggered flow data sequence.
[0072] Specifically, the processor can perform multi-path routing on each time-triggered stream data subsequence in the time-triggered stream data subsequence, and determine the non-overlapping path group corresponding to each second time-triggered stream data based on the routing information of each second time-triggered stream data in the time-triggered stream data subsequence combined with the candidate routing set screening algorithm, thereby forming a non-overlapping path group set corresponding to the time-triggered stream data sequence.
[0073] S207: Use the routing paths with the same path length in the non-overlapping path group set as a path set to be screened with a corresponding length.
[0074] In this embodiment, the path length can be understood as the transmission length corresponding to the non-overlapping path group. The path set to be screened can be understood as a set of paths of the same length.
[0075] Specifically, the processor may calculate the path length of each routing path in the non-overlapping path group corresponding to each second time-triggered flow data, and take the paths with the same path length as a path set to be screened.
[0076] Exemplarily, the non-overlapping path group NRS set is represented by S≡{s m}, triggering streaming data s at every second m ∈S, calculate the path length of the shortest NRS path and the path length l of the longest NRS path corresponding to it min and l max , so as to determine the length range of the path. In order to avoid missing any paths, we search in sequence according to the length range, and take all non-overlapping paths with equal lengths as a set of paths to be screened, denoted as U l , set U l Contains N Ul non-overlapping paths
[0077] S208: Determine the transmission probability of the destination node receiving a correct data frame under each of the paths to be filtered in the path set to be filtered.
[0078] In this embodiment, the destination node can be understood as the end point node of the transmission. The transmission probability can be understood as the probability value representing the possibility that the path is correct.
[0079] Specifically, the processor may determine the transmission probability that the target node in each to-be-screened path in the to-be-screened path set can receive the correct data frame.
[0080] S209: remove the to-be-screened paths whose transmission probabilities do not reach a preset probability threshold from the to-be-screened path set, and obtain a set of candidate routing paths for transmitting the second time-triggered flow data.
[0081] In this embodiment, the preset probability threshold can be understood as a threshold set for screening paths with a high success probability.
[0082] Specifically, the processor may compare the transmission probability with a preset probability threshold. If the preset probability threshold is not reached, the corresponding path to be screened is removed from the set of candidate routing paths to obtain a set of candidate routing paths for transmitting the second time-triggered flow data. If the candidate routing path set outputted in the end is an empty set, there is no candidate routing path that meets the preset probability threshold. At this time, the result can be recalculated by changing the preset probability threshold.
[0083] Exemplarily, the processor may search for U l Path in After a round of search is completed, the path length is increased, and the transmission probability is compared in the set under the next length to screen the candidate routing path set, and so on; when the path length U of the longest NRS path is searched, l , stop searching.
[0084] S210: Determine the flow delay of each candidate routing path in the candidate routing path set, and the degree of conflict between any two candidate routing paths.
[0085] In this embodiment, the flow delay can be understood as the delay duration during transmission. The conflict degree can be understood as a value used to characterize the degree of conflict between two candidate routing paths.
[0086] Specifically, the processor may determine the flow delay of each candidate routing path in the candidate routing path set and the degree of conflict between any two candidate routing paths through corresponding formulas.
[0087] S211. Determine a first objective function according to each conflict degree and a first preset weight.
[0088] In this embodiment, the first preset weight can be understood as a proportion used to characterize the degree of conflict. The first objective function is a function used to reflect the sum of the degree of conflict of paths in the candidate routing path set.
[0089] Specifically, the processor may sum up the conflict levels to determine the total conflict level between all paths included in the candidate routing path set, and then multiply the total conflict level by the first preset weight to determine the first objective function.
[0090] S212: Determine a second objective function according to the delay of each flow and a second preset weight.
[0091] In this embodiment, the second preset weight can be understood as a proportion used to characterize the flow delay. The second objective function is used to reflect the sum of the path delays.
[0092] Specifically, the processor may determine the delay degree between all paths included in the candidate routing path set according to the sum of the differences between the flow delay and each deadline, and then multiply it by the second preset weight to determine the second objective function.
[0093] S213: Determine a cost function of each candidate routing path according to the first objective function and the second objective function.
[0094] In this embodiment, the cost function can be understood as being used to evaluate and compare the pros and cons of different candidate routing paths.
[0095] Specifically, the processor may determine the cost function of each candidate routing path according to the first objective function and the second objective function.
[0096] Exemplarily, the cost function Cost(R) may be determined by the following formula:
[0097] Cost(R)=W1·O1(R)+W2·O2(R)
[0098] Wherein, W1·O1(R) represents the first objective function, and W2·O2(R) represents the second objective function. The first objective O1 and the second objective O2 can be determined by the following formula:
[0099] O1(R)=∑ i≠j D(s i ,s j )
[0100]
[0101] Among them, s i and j are any two time-triggered flows in the time-triggered flow set S, and the flow delay τ(s m) is the sum of the flow delays in the candidate routing paths corresponding to the flows. Since the heuristic algorithm seeks a solution that minimizes the cost function, and the second goal O2(R) needs to be maximized, O2(R) is negative, and O2(R) is set to the sum of the differences of different flows, and is given an independent weight W2; since the main goal is schedulability, the weight W1 is much larger than W2, and the cost function is always a positive number; the purpose of introducing the second goal O2(R) in the cost function is to ensure that when the values of multiple routing solutions O1(R) are consistent, their cost functions are differentiated, and the algorithm gives priority to solutions with low flow delays as the final routing solution; through the establishment of the cost function, the candidate routing paths that meet the reliability threshold range are further evaluated.
[0102] S214. Optimize the candidate routing path set according to the Ant Lion routing optimization algorithm and the cost function to determine the final routing path for transmitting the second time triggered flow data.
[0103] S215: Determine the time slot length of the second time-triggered flow data according to the final routing path.
[0104] In this embodiment, the time slot length can be understood as a time interval for sending to a destination node.
[0105] Specifically, the processor may determine the time slot length of the second time-triggered flow data by using a corresponding formula according to each final routing path.
[0106] S216: Determine the transmission time slot of each second time-triggered stream data according to the transmission order and time slot length in the time-triggered stream data sequence.
[0107] Specifically, the processor can schedule each second time triggered stream data in turn according to the transmission order in the time triggered stream data sequence, take the end time of the previous second time triggered stream data as the transmission time slot of the current second time triggered stream data, judge the conflict situation of each second time triggered stream data, and then when there is a conflict, delay the transmission time slot of the current second time triggered stream data by the time slot length of the conflicting second time triggered stream data to determine the transmission time slot.
[0108] Further, based on the above embodiment, the steps of determining the transmission time slot of each second time-triggered stream data according to the transmission order and time slot length in the time-triggered stream data sequence can be summarized as follows:
[0109] According to the transmission order in the time-triggered flow data sequence, the link nodes passed by each final routing path are judged in turn for conflicts; if there is a conflict, the postponement time of the conflicting time-triggered flow data to be transmitted later is determined according to the transmission start time and transmission time slot of the two conflicting time-triggered flow data in conflict; according to the postponement time, the transmission time slot of the conflicting time-triggered flow data to be transmitted later is determined; if there is no conflict, the transmission completion time of the second time-triggered flow data of the previous transmission is used as the transmission time slot of the second time-triggered flow data of the current transmission.
[0110] In this embodiment, the link node can be understood as the node passed through during the transmission process. The conflicting time-triggered flow data can be understood as two time-triggered flow data that conflict during the transmission process. The transmission start time can be understood as the time of transmission. The conflicting time-triggered flow data transmitted later can be understood as the conflicting time-triggered flow data that has conflicted but has not been transmitted. The postponed time can be understood as the time of delayed transmission. The second time-triggered flow data of the previous transmission can be understood as the second time-triggered flow data being transmitted in the transmission sequence. The transmission completion time can be understood as the time of transmission to the destination node. The second time-triggered flow data currently transmitted can be understood as the second time-triggered flow data at the next position of the second time-triggered flow data of the previous transmission according to the transmission sequence.
[0111] It can be known that since different data streams have different transmission paths and the bandwidth of the link is limited, the order of data streams on subsequent links cannot be guaranteed. When the first data stream starts at the source node, it will be transmitted on the first link in order until the transmission is completed. However, when subsequent data streams begin to be transmitted on subsequent links, collisions may occur because different data streams may compete for the same link resources. Although the moment when the current data stream starts to be transmitted in the network is the moment when the previous stream on its first link is completed, conflicts may occur in subsequent links. Because in a large-scale traffic scheduling problem, there are multiple data streams that need to be transmitted in the network, it is necessary to determine whether there is a conflict on the current link, that is, whether there is a data stream that has not been transmitted yet. If there is a conflict, it is necessary to postpone the start time of the current data stream in the network to avoid the conflict.
[0112] Specifically, the processor can perform conflict judgment on the link nodes passed by each final routing path in turn according to the transmission order in the time-triggered stream data sequence. First, on the first link starting from the source node in the first final routing path, arrange the second time-triggered stream data with the first arrangement order, and set the time when its transmission starts to be zero time of transmission, and then turn to the next link corresponding to the next final routing path. If there is a conflict between the two, that is, there is a second time-triggered stream data that has not been transmitted yet on the link, then according to the transmission start time and transmission time slot of the two conflicting time-triggered stream data, the postponement time of the later transmitted conflicting time-triggered stream data is determined, and the transmission time slot of the later transmitted conflicting time-triggered stream data is the sum of the original start time and the postponement time; if there is no conflict, the transmission completion time of the second time-triggered stream data of the previous transmission is used as the transmission time slot of the second time-triggered stream data of the current transmission.
[0113] Exemplarily, the transmission time slot of each second time-triggered stream data can be determined by the following steps: Step 1: Arrange the first data stream s1 on the first link starting from the source node, set the time of starting transmission to the zero time of transmission, and then turn to the next link; Step 2: Arrange the current stream s1 on the current link i , and then determine whether there is a conflict. If there is a conflict, it means that there is a flow s that has not been transmitted yet on the link. j If there is a conflict, go to step 3; if there is no conflict, go to step 4; Step 3: Calculate the flow s when the conflict occurs i and Flows j At the transmission start time of the current link Φ i and Φ j , and then the stream s i The sending time at the source node is delayed by time Δt, where Δt = Φ j +C j -Φ i , C j Trigger stream for time j The time slot length of the stream is then arranged on the first link, and then the transmission time slot of the stream is turned to step 2; Step 4: Determine whether the current link is stream s i If not, go to step 2, otherwise go to step 5; Step 5: Send flow s i All instances within the super period are arranged in the corresponding time slots of the link according to the period; Step 6: Take out the next stream to be scheduled in the set, arrange it in the first link, and arrange the start transmission time to be the time when the previous stream completes transmission on this link, and then go to step 2.
[0114] S217: Transmit each second time-triggered stream data in sequence according to the transmission time slot and the final routing path.
[0115] The technical solution of the embodiment of the present invention is to sort the first time-triggered flow data by the frame attribute of each time-triggered flow data, obtain the time-triggered flow data sequence, provide sequential support for subsequent scheduling, reasonably arrange the execution order of the time-triggered flow, and improve the overall performance and efficiency of the network. The non-overlapping path group is determined for each sorted second time-triggered flow data through routing information, and the candidate routing path set is screened out with a preset probability threshold. And the corresponding cost function is established through the candidate routing path set, and the final routing path that minimizes the cost function is searched in the search space of the candidate solution based on the ant lion routing optimization algorithm and the cost function; because the ant lion routing optimization algorithm has better global optimization, fewer adjustment parameters and higher convergence accuracy, it is suitable for combinatorial optimization problems, so the ant lion optimization algorithm is applied to find the optimized routing group, thereby improving the schedulability of the routing solution. According to the transmission order in the time-triggered flow data sequence and the conflict between the second time-triggered flow data, the transmission time slot is allocated to each second time-triggered flow data, and the transmission is scheduled according to the transmission order and the transmission time slot. To ensure that the given time-triggered flow is sent as early as possible, the optimization goal of minimizing the sum of response times is achieved, the efficiency of business transmission is improved, and the business transmission delay is effectively reduced.
[0116] Embodiment 3
[0117] Figure 3 This is a schematic diagram of the structure of a data transmission device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:
[0118] The data set acquisition module 31 is used to acquire the time-triggered flow data set to be transmitted in the power communication network;
[0119] A first determining module 32, configured to sort the frame attributes of each first time-triggered flow data in the time-triggered flow data set to determine a time-triggered flow data sequence;
[0120] A second determining module 33, configured to determine a set of candidate routing paths for transmitting the second time-triggered flow data according to routing information of each second time-triggered flow data in the time-triggered flow data sequence;
[0121] A third determination module 34 is used to optimize the candidate routing path set according to the Ant Lion routing optimization algorithm to determine a final routing path for transmitting the second time-triggered flow data;
[0122] The data stream transmission module 35 is used to determine the transmission time slot of each of the second time-triggered stream data according to the transmission order in the time-triggered stream data sequence and the final routing path, and transmit them in sequence.
[0123] The technical solution of the embodiment of the present invention is to obtain a time-triggered stream data set to be transmitted in the power communication network; sort the frame attributes of each first time-triggered stream data in the time-triggered stream data set to determine the time-triggered stream data sequence; determine the candidate routing path set for transmitting the second time-triggered stream data according to the routing information of each second time-triggered stream data in the time-triggered stream data sequence; optimize the candidate routing path set according to the ant lion routing optimization algorithm to determine the final routing path for transmitting the second time-triggered stream data; determine the transmission time slot of each second time-triggered stream data according to the transmission order and the final routing path in the time-triggered stream data sequence, and transmit them in sequence. First, the time-triggered stream data is sorted to improve the overall performance and efficiency of the network; the second time-triggered stream data is multi-routed to improve the reliability of network service transmission and the efficiency of service transmission; the transmission time slot of each second time-triggered stream data is determined according to the transmission order, effectively reducing the service transmission delay.
[0124] Further, the frame attributes include a frame size, a frame period, and a deadline, and the first determination module is specifically used to:
[0125] Sort the first time-triggered stream data in the time-triggered stream data set according to the frame size and the frame period to obtain an intermediate trigger stream data sequence;
[0126] Dividing the intermediate trigger stream data sequence according to preset intervals to obtain intermediate trigger stream data subsequences;
[0127] Arranging the triggered stream data in the intermediate triggered stream data subsequence according to each of the deadlines to obtain a time triggered stream data subsequence;
[0128] A time-triggered stream data sequence is formed according to each of the time-triggered stream data sub-sequences.
[0129] Furthermore, the second determining module is specifically used for:
[0130] Determine a non-overlapping path group according to the routing information of each second time-triggered flow data in the time-triggered flow data sequence;
[0131] The routing paths with the same path length in the non-overlapping path set are used as a path set to be screened under the corresponding length;
[0132] Determine the transmission probability of the destination node receiving the correct data frame under each to-be-screened path in the to-be-screened path set;
[0133] The paths to be screened whose transmission probabilities do not reach a preset probability threshold are removed from the set of paths to be screened, to obtain a set of candidate routing paths for transmitting the second time-triggered flow data.
[0134] Furthermore, the third determination module is specifically used for:
[0135] Determining the flow delay of each candidate routing path in the candidate routing path set and the degree of conflict between any two candidate routing paths;
[0136] Determining a first objective function according to each of the conflict degrees and the first preset weight;
[0137] Determining a second objective function according to each of the flow delays and a second preset weight;
[0138] Determining a cost function of each of the candidate routing paths according to the first objective function and the second objective function;
[0139] The candidate routing path set is optimized according to the Ant Lion routing optimization algorithm and the cost function to determine a final routing path for transmitting the second time-triggered flow data.
[0140] Furthermore, the data stream transmission module includes:
[0141] a length determining unit, configured to determine a time slot length of the second time-triggered stream data according to the final routing path;
[0142] A time slot determination unit, configured to determine a transmission time slot of each of the second time-triggered stream data according to a transmission order in the time-triggered stream data sequence and the time slot length;
[0143] A data transmission unit is used to transmit the second time-triggered stream data in sequence according to the transmission time slot and the final routing path.
[0144] The time slot determination unit is specifically used for:
[0145] According to the transmission order in the time-triggered stream data sequence, conflict judgment is performed on the link nodes passed by each of the final routing paths in turn;
[0146] If there is a conflict, the delay time of the conflict time trigger flow data to be transmitted later is determined according to the transmission start time and transmission time slot of the two conflicting conflict time trigger flow data;
[0147] Determining, according to the postponement time, a transmission time slot of the post-transmission conflict time-triggering stream data;
[0148] If there is no conflict, the transmission completion time of the second time-triggered stream data of the previous transmission is used as the transmission time slot of the second time-triggered stream data of the current transmission.
[0149] The data transmission device provided in the embodiment of the present invention can execute the data transmission method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0150] Embodiment 4
[0151] Figure 4 A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0152] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0153] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0154] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as a data transmission method.
[0155] In some embodiments, the data transmission method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the data transmission method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the data transmission method in any other appropriate manner (e.g., by means of firmware).
[0156] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0157] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0158] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0159] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0160] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0161] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0162] In one embodiment, the present invention further includes a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, the X data transmission method of any embodiment of the present invention is implemented.
[0163] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0164] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0165] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data transmission method, characterized in that: include: Obtaining a time-triggered flow data set to be transmitted in a power communication network; Sorting the frame attributes of each first time-triggered stream data in the time-triggered stream data set to determine a time-triggered stream data sequence; Determine a set of candidate routing paths for transmitting the second time-triggered stream data according to the routing information of each second time-triggered stream data in the time-triggered stream data sequence; Optimizing the candidate routing path set according to the Ant Lion routing optimization algorithm to determine a final routing path for transmitting the second time-triggered flow data; According to the transmission order in the time-triggered stream data sequence and the final routing path, the transmission time slot of each of the second time-triggered stream data is determined, and the transmission is performed in sequence.
2. The method according to claim 1, characterized in that The frame attributes include frame size, frame period and deadline, and the step of sorting the frame attributes of each first time-triggered stream data in the time-triggered stream data set to determine the time-triggered stream data sequence includes: Sort the first time-triggered stream data in the time-triggered stream data set according to the frame size and the frame period to obtain an intermediate trigger stream data sequence; Dividing the intermediate trigger stream data sequence according to preset intervals to obtain intermediate trigger stream data subsequences; Arranging the triggered stream data in the intermediate triggered stream data subsequence according to each of the deadlines to obtain a time triggered stream data subsequence; A time-triggered stream data sequence is formed according to each of the time-triggered stream data sub-sequences.
3. The method according to claim 1, characterized in that The step of determining a set of candidate routing paths for transmitting the second time-triggered stream data according to the routing information of each second time-triggered stream data in the time-triggered stream data sequence comprises: Determine a non-overlapping path group set according to the routing information of each second time-triggered flow data in the time-triggered flow data sequence; The routing paths with the same path length in the non-overlapping path set are used as a path set to be screened under the corresponding length; Determine the transmission probability of the destination node receiving the correct data frame under each to-be-screened path in the to-be-screened path set; The paths to be screened whose transmission probabilities do not reach a preset probability threshold are removed from the set of paths to be screened, to obtain a set of candidate routing paths for transmitting the second time-triggered flow data.
4. The method according to claim 1, characterized in that The optimizing the candidate routing path set according to the Ant Lion routing optimization algorithm to determine a final routing path for transmitting the second time-triggered flow data includes: Determining the flow delay of each candidate routing path in the candidate routing path set and the degree of conflict between any two candidate routing paths; Determining a first objective function according to each of the conflict degrees and the first preset weight; Determining a second objective function according to each of the flow delays and a second preset weight; Determining a cost function of each of the candidate routing paths according to the first objective function and the second objective function; The candidate routing path set is optimized according to the Ant Lion routing optimization algorithm and the cost function to determine a final routing path for transmitting the second time-triggered flow data.
5. The method according to claim 1, characterized in that: The step of determining the transmission time slot of each of the second time-triggered stream data according to the transmission order in the time-triggered stream data sequence and the final routing path, and transmitting them in sequence, comprises: Determining, according to the final routing path, a time slot length of the second time-triggered flow data; Determine the transmission time slot of each of the second time-triggered stream data according to the transmission order in the time-triggered stream data sequence and the time slot length; The second time-triggered stream data are transmitted in sequence according to the transmission time slot and the final routing path.
6. The method according to claim 5, characterized in that The step of determining the transmission time slot of each of the second time-triggered stream data according to the transmission order in the time-triggered stream data sequence and the time slot length comprises: According to the transmission order in the time-triggered stream data sequence, conflict judgment is performed on the link nodes passed by each of the final routing paths in turn; If there is a conflict, the delay time of the conflict time trigger flow data to be transmitted later is determined according to the transmission start time and transmission time slot of the two conflicting conflict time trigger flow data; Determining, according to the postponement time, a transmission time slot of the post-transmission conflict time-triggering stream data; If there is no conflict, the transmission completion time of the second time-triggered stream data of the previous transmission is used as the transmission time slot of the second time-triggered stream data of the current transmission.
7. A data transmission device, characterized in that: include: A data set acquisition module, used to acquire a time-triggered flow data set to be transmitted in the power communication network; A first determining module, used to sort the frame attributes of each first time-triggered flow data in the time-triggered flow data set to determine a time-triggered flow data sequence; A second determining module, configured to determine a set of candidate routing paths for transmitting the second time-triggered flow data according to routing information of each second time-triggered flow data in the time-triggered flow data sequence; A third determination module is used to optimize the candidate routing path set according to the Ant Lion routing optimization algorithm to determine a final routing path for transmitting the second time-triggered flow data; The data stream transmission module is used to determine the transmission time slot of each of the second time-triggered stream data according to the transmission order in the time-triggered stream data sequence and the final routing path, and transmit them in sequence.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data transmission method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data transmission method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the data transmission method according to any one of claims 1 to 6.
