Power secondary system network transmission method and device based on multi-path evaluation algorithm
By using the multi-path evaluation algorithm and MPTCP protocol in the power secondary system, the data distribution strategy is adjusted according to the quality of the network dedicated line, which solves the problems of network switching delay and personalized adjustment, and achieves low-latency and high-flexibility data transmission.
Patent Information
- Application Number
- CN202211155151.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-22
AI Technical Summary
In the power secondary system, the switching process of network dedicated lines will cause delays of tens of seconds, affecting delay-sensitive services. In addition, the network interface designs of different hosts and servers are different, resulting in the need for network switching software to be customized for different types of equipment. The workload of adjusting to one is huge.
Adopt a power secondary system network transmission method based on multi-path evaluation algorithm, establish at least two TCP subflows through the MPTCP protocol, obtain current network parameters, use a pre-trained decision tree model to determine the transmission strategy, and adjust the data according to the quality of the network dedicated line Distribution strategy to ensure low latency and high flexibility of data transmission.
It improves the adaptability of the power secondary system, reduces network switching delays, reduces upgrade costs, and eliminates the need for personalized adjustments for different devices, achieving low latency and high flexibility in data transmission.
Smart Images

Figure CN115883451B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology of power secondary systems, and in particular to a power secondary system network transmission method and device based on a multi-path evaluation algorithm. Background Art
[0002] In the power secondary system, in order to ensure the timely, effective, safe and complete transmission of instructions and data, a transmission network is built between the equipment in the production control area using dedicated network lines. The dedicated network line is a separate transmission channel specially opened by the operator for certain customers. It is physically isolated from other networks, safe and reliable, and users establish network flows through dedicated network lines. However, for dedicated network lines, once a link is interrupted due to extreme circumstances, the system often needs to issue an early warning, and then the centralized control center and grassroots units manually confirm the situation and report it to their superiors. At this time, it may not be possible to re-establish the dedicated line connection, which will cause serious damage to delay-sensitive applications (such as production equipment control programs).
[0003] In the related technology, network awareness software can be designed. Once the software detects that the unresponsiveness time of the network dedicated line exceeds a preset threshold, the network switching program will be started to connect the network flow established on the unresponsive dedicated line to the backup dedicated line to ensure that the communication can continue to be transmitted.
[0004] However, in the related technology, since the network switching involves the control of the kernel state from the user state, even if the communication can be transmitted, there will be a delay of tens of seconds during the startup of the switching program, which will still affect some delay-sensitive services (such as the control of power generation equipment and the control of energy storage charging and discharging). In addition, because the network interface design methods of different hosts and servers are different, the network switching software needs to make one-to-one adjustments for different types of devices, which is a huge workload. Summary of the invention
[0005] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0006] To this end, the first purpose of the present invention is to propose a power secondary system network transmission method based on a multi-path evaluation algorithm. The method proposed in the present invention can design a multi-path-based evaluation algorithm in the scenario of the power secondary system, customize a scheduler based on the MPTCP protocol, and adjust the strategy according to the quality of the network dedicated line to distribute scheduling data, so as to enhance the adaptability of the power secondary system and ensure that data transmission has low latency and high flexibility.
[0007] The second object of the present invention is to propose a cross-layer transmission device for a secondary power system network based on MPTCP.
[0008] A third object of the present invention is to provide a computer device.
[0009] A fourth object of the present invention is to provide a non-transitory computer-readable storage medium.
[0010] To achieve the above object, a first embodiment of the present invention provides a method, comprising:
[0011] Establishing 104 a protocol connection through MPTCP, and dropping 104 data frames from the application layer to the transport layer, wherein the establishing 104 protocol connection through MPTCP includes at least two TCP sub-flows;
[0012] Acquire data frames through the transport layer, collect current network parameters through the scheduler, and determine characteristic information corresponding to the current network parameters;
[0013] Obtaining a pre-trained decision tree model, and determining a transmission strategy corresponding to the 104 data frame according to the decision tree model of the feature information corresponding to the current network parameters;
[0014] Based on the transmission strategy, the 104 data frames are distributed to corresponding TCP sub-flows for data transmission.
[0015] Optionally, in an embodiment of the present invention, before dropping 104 the data frame to the transport layer through the application layer, the method further includes:
[0016] Acquire data information in the power system, and generate the 104 data frames according to a preset protocol, wherein the 104 data frames include one or more of a start frame, a start confirmation frame, and an information frame.
[0017] Optionally, in one embodiment of the present invention, establishing the MPTCP connection includes:
[0018] The at least two TCP sub-streams are established according to the number of available network cards in the operating system, wherein the at least two TCP sub-streams include at least one primary network dedicated line and at least one backup network dedicated line.
[0019] Optionally, in one embodiment of the present invention, before obtaining the pre-trained decision tree model, the method includes:
[0020] Capturing data packets from a network dedicated line, extracting the feature information based on the results of the data packets, and generating a training data set based on the feature information;
[0021] Using the training data set, calling a decision tree module in a function library of a program programming language to train an initial decision tree model to obtain a trained decision tree model;
[0022] The trained decision tree model is encapsulated into a function, and the encapsulated function is embedded into the scheduler.
[0023] Optionally, in an embodiment of the present invention, distributing the 104 data frames to corresponding TCP substreams for data transmission based on the transmission strategy includes:
[0024] If the training result shows that the quality of the primary network dedicated line meets the preset condition, the 104 data frame is distributed to the primary network dedicated line in the TCP sub-flow by the scheduler;
[0025] If the training result is that the quality of the main network dedicated line does not meet the preset condition, the 104 data frames are distributed to each TCP sub-flow at the same time by the scheduler for redundant transmission.
[0026] Optionally, in an embodiment of the present invention, if the training result is that the quality of the primary network dedicated line does not meet a preset condition, the 104 data frames are simultaneously distributed to each TCP sub-stream for redundant transmission by the scheduler, including:
[0027] A timeout threshold is set. If the current network parameters are not collected by the scheduler within the timeout threshold, a set of poor feature values are sent to the scheduler, so that the training result obtained by the decision tree model is that the quality of the main network dedicated line does not meet the preset conditions, so that the 104 data frames are distributed to the TCP sub-streams at the same time for redundant transmission through the scheduler.
[0028] To achieve the above-mentioned purpose, a second aspect of the present invention proposes a power secondary system network transmission device based on a multi-path evaluation algorithm, comprising:
[0029] An establishing module, configured to establish 104 protocol connections through MPTCP, and to drop 104 data frames from the application layer to the transport layer, wherein the establishing 104 protocol connections through MPTCP includes at least two TCP sub-streams;
[0030] A processing module, used to obtain data frames through the transport layer, collect the latest network parameter data through the scheduler, and calculate characteristic information;
[0031] A training module, used to train a decision tree model by calling an algorithm, and select a transmission strategy for transmitting the 104 data frames based on a training result of the training decision tree model;
[0032] A transmission module is used to distribute the 104 data frames to corresponding TCP sub-flows based on the transmission strategy of the 104 data frames.
[0033] In summary, the present invention proposes a power secondary system network transmission method and device based on a multi-path evaluation algorithm, which can adjust the data distribution and scheduling strategy according to the quality of the network dedicated line in the scenario of the power secondary system, so as to enhance the adaptability of the system and ensure low latency and high flexibility of data transmission.
[0034] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor; wherein, when the processor executes the computer program, the method described in the first aspect of the present invention is implemented.
[0035] To achieve the above-mentioned purpose, the fourth aspect of the present invention provides a non-temporary computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect of the present invention is implemented.
[0036] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0038] Figure 1 A structural diagram of the position of each protocol in the network protocol stack provided by an embodiment of the present invention;
[0039] Figure 2 A flow chart of a power secondary system network transmission method based on a multi-path evaluation algorithm provided by an embodiment of the present invention;
[0040] Figure 3 A structural diagram of a power secondary system network transmission device based on a multi-path evaluation algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0042] The following describes a power secondary system network transmission method and device based on a multi-path evaluation algorithm according to an embodiment of the present invention with reference to the accompanying drawings.
[0043] It should be noted that before starting to execute the transmission method, it is necessary to determine the position of each protocol in the network protocol stack to ensure compatibility.
[0044] Figure 1 This is a structural diagram of the position of each protocol provided by an embodiment of the present invention in the network protocol stack.
[0045] like Figure 1 As shown, in a top-down order, the first layer of the structure is the 104 protocol, which belongs to the application layer. Before sending data to the transport layer, the data information in the power system should be obtained first, and the 104 data frame should be generated according to the requirements of the 104 protocol. The 104 data frame can include at least one of the start frame, the start confirmation frame and the information frame, and then the 104 data frame is filled into the TCP message. When transmitting the data frame, the four-tuple information of the connection (source address, destination address, source port number, destination port number) is required. And, the 104 data frame can be mainly used in the power secondary system for communication transmission.
[0046] The second layer is the MPTCP management layer, MPTCP scheduler, and multiple established TCP sub-streams, all of which belong to the transport layer and can receive data from the application layer based on the traditional TCP protocol. In the application scenario, the present invention assumes that there are two network dedicated lines between the production control area and the centralized control center, one main network dedicated line and one backup network dedicated line. MPTCP will establish at least two TCP sub-streams based on the above information. After the connection is established, when the 104 frame reaches the transport layer, the MPTCP scheduler will control its transmission method. Among them, if Figure 1 As shown, an MPTCP can have three TCP substreams, namely TCP substream 1, TCP substream 2 and TCP substream 3, and the three TCP substreams are independent of each other. Since the MPTCP protocol can only have one main connection among multiple TCP substreams, that is, TCP substream 1 can be used to identify the main network dedicated line, and TCP substream 2 and TCP substream 3 can be used to identify the backup network dedicated line. After each TCP substream receives the data content of the upper layer, it will use the standard TCP protocol for data transmission.
[0047] The third layer is the network layer, which can further manage data communications in the network based on the transmission function of 104 data frames between two adjacent endpoints provided by the data link layer, and try to transmit data from the source to the destination through several intermediate nodes, thereby providing the most basic end-to-end data transmission service to the transport layer.
[0048] The fourth layer is the data link layer. The data link layer provides services to the network layer based on the services provided by the physical layer. Its most basic service is to reliably transmit data from the physical layer to the target machine network layer of the adjacent node.
[0049] The fifth layer is the physical layer, which mainly provides data transmission channels and transmits data for data terminal devices.
[0050] In addition, for ease of understanding, some terms involved in the method provided by the present invention are explained.
[0051] 1. MPTCP (MultiPathTCP) was developed by the Internet Engineering Task Force MultiPathTCP Working Group. The Internet Engineering Task Force released RFC 6824 as the standard for MPTCP in January 2013. The MPTCP protocol can use multiple links in the network for data transmission at the same time. It has a programmable transmission control packet scheduler, which can make customized transmission optimization for high bandwidth demand scenarios, fast response scenarios, service communication guarantee scenarios and poor quality links to ensure network transmission services.
[0052] 2. Dedicated network line: Dedicated network line is usually developed by network operators specifically for a specific business, and its network is only used to carry data information of that business.
[0053] Based on the above, MPTCP usually uses joint congestion control algorithms such as LIA, OLIA, BALIA, and wVegas, which cannot fully exert the maximum advantage of multi-link transmission. However, in the present invention, because data transmission uses a dedicated network line, there is no need to consider fairness among multiple network flows.
[0054] 3. Scheduler. The scheduler is one of the core components of MPTCP. It can decide to push the data packets received from the upper layer to a specified link at a certain time, and its internal scheduling algorithm plays a decision-making role in the network communication mode.
[0055] Figure 2 A schematic flow chart of a power secondary system network transmission method based on a multi-path evaluation algorithm provided in an embodiment of the present invention.
[0056] like Figure 2 As shown, the power secondary system network transmission method based on the multi-path evaluation algorithm includes the following steps:
[0057] Step S1: Establish 104 protocol connections through MPTCP, and push 104 data frames down to the transport layer through the application layer, wherein the 104 protocol connections established through MPTCP include at least two TCP sub-streams.
[0058] In one embodiment of the present invention, during transmission, the 104 protocol only uses the four-tuple information of the TCP sub-stream A, and after receiving the application layer data, the MPTCP management layer will re-determine the transmission mode of the two sub-streams according to its own configured strategy.
[0059] Step S2: Acquire data frames through the transport layer, collect current network parameters through the scheduler, and determine characteristic information corresponding to the current network parameters.
[0060] In one embodiment of the present invention, the scheduler is one of the core components of MPTCP, and the scheduling algorithm inside the scheduler has a decision-making effect on the network communication mode.
[0061] And, in one embodiment of the present invention, the method for determining feature information includes:
[0062] Extracted from the protocol stack of the TCP substream;
[0063] Obtained through feature information calculation.
[0064] Specifically, in one embodiment of the present invention, the features used in the decision tree path evaluation algorithm can be as follows:
[0065] As shown in Table 1.
[0066]
[0067] For example, in one embodiment of the present invention, the feature win_size can be directly extracted from the protocol stack of the TCP substream, and the calculation method of other features in the table is:
[0068] tcprtt=time_synack-time_syn;
[0069] sloss=counter_(loss_s) / counter_(total_s);
[0070] dloss=counter_(loss_d) / counter_(total_d);
[0071] sjit=OWD_(max_s)-OWD_(min_s);
[0072] djit=OWD_(max_d)-OWD_(min_d);
[0073] Among them, the corresponding meanings of other factors in the above formula are as follows: time_syn represents the timestamp when the TCP subflow initiates the handshake, time_synack represents the timestamp when the TCP subflow receives the handshake ACK, counter_(loss_s) is the number of data packets lost from the source to the destination, counter_(total_s) is the number of data packets from the source to the destination, counter_(loss_d) is the number of data packets lost from the destination to the source, counter_(total_d) is the number of data packets from the destination to the source, OWD_(max_s) is the maximum one-way delay from the destination to the source, OWD_(min_s) is the minimum one-way delay from the destination to the source, OWD_(max_d) is the maximum one-way delay from the source to the destination, and OWD_(min_d) is the minimum one-way delay from the source to the destination.
[0074] Step S3: Obtain a pre-trained decision tree model, and determine 104 a transmission strategy corresponding to the data frame according to the decision tree model of feature information corresponding to the current network parameters.
[0075] Among them, in one embodiment of the present invention, before obtaining the pre-trained decision tree model, it includes:
[0076] Capture data packets from the network dedicated line, extract feature information based on the results of the data packets, and generate a training data set based on the feature information;
[0077] Using the training data set, calling the decision tree module in the function library of the program programming language to train the initial decision tree model, and obtaining a trained decision tree model;
[0078] The trained decision tree model is encapsulated into a function, and the encapsulated function is embedded into the scheduler.
[0079] For example, in one embodiment of the present invention, since the packet capture results in the network dedicated line to be optimized may include both the results when the network quality is good and the results when the network quality is poor, the data packets of the network dedicated line to be optimized can be captured first to help the training model to fully understand the network. Then, based on the packet capture results and the characteristic information calculation formula mentioned in step S2, the captured data packets can be feature extracted to form a data set. In this embodiment, the data set can be divided into a test set and a training set at a ratio of 2 to 8. After that, after the feature generation is completed, the decision tree module in the scikit-learn library adapted to the Python language is used to train the model. Finally, the trained model is displayed, and the model structure is described using the "if-else" statement in the C language, and encapsulated into a function, and the encapsulated function is embedded in the decision part of the MPTCP scheduler.
[0080] It should be noted that compared with the method of switching network dedicated lines through software programs, since the MPTCP protocol has been integrated into major operating systems (supported by Windows and Linux), the present invention only needs to update the protocol stack after designing the scheduler. There is no need to additionally design or implement network switching software suitable for different hosts. The upgrade cost of the present invention is very low, and only the scheduler of the kernel-state protocol stack is modified. Compared with the network switching software in the user state, the present invention has lower latency when encountering network fluctuations and is safer and more reliable during operation.
[0081] Step S4: Based on the transmission strategy, distribute the 104 data frames to the corresponding TCP sub-flows for data transmission.
[0082] In one embodiment of the present invention, based on the transmission strategy, the data frame 104 is distributed to the corresponding TCP sub-flow for data transmission, including:
[0083] If the training result shows that the quality of the main network dedicated line meets the preset conditions, the scheduler distributes 104 data frames to the main network dedicated line in the TCP sub-flow;
[0084] If the training result indicates that the quality of the main network dedicated line does not meet the preset conditions, the scheduler will simultaneously distribute 104 data frames to each TCP sub-flow for redundant transmission.
[0085] Furthermore, in one embodiment of the present invention, the preset condition may be a preset signal strength threshold, including:
[0086] When the signal strength is greater than or equal to the first threshold, the quality of the primary network dedicated line meets the preset condition;
[0087] When the signal strength is less than the first threshold, the quality of the primary network dedicated line does not meet the preset condition.
[0088] Further, in one embodiment of the present invention, if the training result shows that the quality of the main network dedicated line does not meet the preset condition, the scheduler simultaneously distributes 104 data frames to each TCP sub-stream for redundant transmission, including:
[0089] A timeout threshold is set. If the current network parameters are not collected by the scheduler within the timeout threshold, a set of poor feature values is sent to the scheduler, so that the training result obtained by the decision tree model is that the quality of the main network dedicated line does not meet the preset conditions, so that the scheduler can distribute 104 data frames to each TCP sub-stream for redundant transmission at the same time.
[0090] By way of example, in one embodiment of the present invention, for example, a timeout threshold is pre-set for the system at 50ms. When the scheduler collects the current network parameters after 60ms, a set of poor feature values is sent to the scheduler. Based on this feature value, the training result obtained by the decision tree model is that the quality of the main network dedicated line does not meet the preset conditions, so that 104 data frames are distributed to each TCP sub-stream simultaneously through the scheduler for redundant transmission.
[0091] Furthermore, in one embodiment of the present invention, a redundant transmission strategy can be used to distribute 104 data frames to multiple TCP substreams, and the 104 data frames are copied, the number of copies is the same as the number of TCP substreams, and the copied copies 104 data frames are then transmitted to the TCP substreams. For example, in one embodiment of the present invention, a redundant transmission strategy can be used to distribute 104 data frames to two TCP substreams, and the 104 data frames are copied to obtain copies 104 data frames, and the 104 data frames and the copies 104 data frames are numbered, and the 104 data frames and the copies 104 data frames are respectively transmitted through two TCP substreams.
[0092] It should be noted that in this embodiment, in the actual application scenario, when the quality of the main network dedicated line does not meet the preset conditions, it is possible that the main network dedicated line is interfered by electromagnetic interference or vibration, and the impact of the interference on the main network dedicated line does not last long, or it may be because the dedicated line equipment of the main network dedicated line has failed. However, as long as the quality of the main network dedicated line does not meet the preset conditions, the transmission strategy of the present invention is full redundant transmission, which can maximize the security of network communication. This is because when the quality of the main network dedicated line meets the preset conditions, the backup network dedicated line can only maintain the connection, so that the data frame is only transmitted on the main network dedicated line. At this time, the overall overhead of the system is close to a single TCP link. Based on this, the system will not occupy too much of the buffer of the transport layer. And, when the quality of the main network dedicated line does not meet the preset conditions, the main network dedicated line is unreliable at this time, and the reliability of the backup dedicated line is unknown. In order to ensure that the data is delivered safely, reliably, timely and effectively, the scheduler uses the full redundant transmission mode to send the same data packet on multiple sub-streams. This allows the receiver to receive a data packet from a certain sub-flow first. Based on this, the sub-flow that has not received the data packet first can discard the late data packet to maximize network communication.
[0093] In summary, the present invention proposes a power secondary system network transmission method based on a multi-path evaluation algorithm. In the scenario of the power secondary system, a multi-path evaluation algorithm is designed, a scheduler based on the MPTCP protocol is customized, and the strategy is adjusted according to the quality of the network dedicated line to distribute the scheduling data, so as to enhance the adaptability of the power secondary system and ensure that the data transmission has low latency and high flexibility.
[0094] Figure 3 A schematic diagram of the structure of a power secondary system network cross-layer transmission device based on MPTCP provided in an embodiment of the present invention.
[0095] like Figure 3 As shown, the MPTCP-based power secondary system network cross-layer transmission device includes the following modules:
[0096] An establishing module, configured to establish 104 a protocol connection through MPTCP, and to drop 104 data frames from the application layer to the transport layer, wherein the protocol connection established 104 through MPTCP includes at least two TCP sub-flows;
[0097] The processing module is used to obtain data frames through the transport layer, collect the latest network parameter data through the scheduler, and calculate the characteristic information;
[0098] A training module, used for training the decision tree model by calling an algorithm, and selecting a transmission strategy for transmitting 104 data frames based on a training result of the training decision tree model;
[0099] The transmission module is used to distribute the 104 data frames to corresponding TCP sub-flows based on the transmission strategy of the 104 data frames.
[0100] In summary, the present invention proposes a power secondary system network transmission device based on a multi-path evaluation algorithm. In the scenario of the power secondary system, a multi-path evaluation algorithm is designed, a scheduler based on the MPTCP protocol is customized, and the strategy is adjusted according to the quality of the network dedicated line to distribute the scheduling data, so as to enhance the adaptability of the power secondary system and ensure that the data transmission has low latency and high flexibility.
[0101] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes a computer device, which has a memory, a processor and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the method described in the first aspect embodiment of the present application is implemented.
[0102] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect embodiment of the present application is implemented.
[0103] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0104] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0105] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0106] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0107] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0108] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0110] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A power secondary system network transmission method based on a multi-path evaluation algorithm, characterized in that: include: Establishing 104 a protocol connection through MPTCP, and dropping 104 data frames from the application layer to the transport layer, wherein the establishing 104 protocol connection through MPTCP includes at least two TCP sub-flows; Acquire data frames through the transport layer, collect current network parameters through the scheduler, and determine characteristic information corresponding to the current network parameters; Obtaining a pre-trained decision tree model, and determining a transmission strategy corresponding to the 104 data frame according to the decision tree model of the feature information corresponding to the current network parameters; Based on the transmission strategy, the 104 data frames are distributed to corresponding TCP sub-streams for data transmission; The establishing of the 104 protocol connection through MPTCP includes: According to the number of available network cards in the operating system, establishing the at least two TCP sub-streams, wherein the at least two TCP sub-streams include at least one primary network dedicated line and at least one backup network dedicated line; Before obtaining the pre-trained decision tree model, the following steps are included: Capturing data packets from a network dedicated line, extracting the feature information based on the results of the data packets, and generating a training data set based on the feature information; Using the training data set, calling a decision tree module in a function library of a program programming language to train an initial decision tree model to obtain a trained decision tree model; The trained decision tree model is encapsulated into a function, and the encapsulated function is embedded into the scheduler.
2. The transmission method according to claim 1, characterized in that: Before the data frame is dropped 104 from the application layer to the transport layer, the method further includes: Acquire data information in the power system, and generate the 104 data frames according to a preset protocol, wherein the 104 data frames include one or more of a start frame, a start confirmation frame, and an information frame.
3. The transmission method according to claim 1, characterized in that: The distributing the 104 data frames to corresponding TCP substreams for data transmission based on the transmission strategy includes: If the training result shows that the quality of the primary network dedicated line meets the preset condition, the 104 data frame is distributed to the primary network dedicated line in the TCP sub-flow by the scheduler; If the training result is that the quality of the main network dedicated line does not meet the preset condition, the 104 data frames are distributed to each TCP sub-flow at the same time by the scheduler for redundant transmission.
4. The transmission method according to claim 3, characterized in that: If the training result is that the quality of the main network dedicated line does not meet the preset condition, the scheduler simultaneously distributes the 104 data frames to each TCP sub-stream for redundant transmission, including: A timeout threshold is set. If the current network parameters are not collected by the scheduler within the timeout threshold, a set of poor feature values are sent to the scheduler, so that the training result obtained by the decision tree model is that the quality of the main network dedicated line does not meet the preset conditions, so that the 104 data frames are distributed to the TCP sub-streams simultaneously through the scheduler for redundant transmission.
5. A power secondary system network transmission device based on a multi-path evaluation algorithm, characterized in that: include: An establishing module, configured to establish 104 protocol connections through MPTCP, and to drop 104 data frames from the application layer to the transport layer, wherein the establishing 104 protocol connections through MPTCP includes at least two TCP sub-streams; A processing module, used to obtain data frames through the transport layer, collect the latest network parameter data through the scheduler, and calculate characteristic information; A training module, used to train a decision tree model by calling an algorithm, and select a transmission strategy for transmitting the 104 data frames based on a training result of the training decision tree model; A transmission module, configured to distribute the 104 data frames to corresponding TCP sub-streams based on a transmission strategy of the 104 data frames; The establishment module is specifically used for: According to the number of available network cards in the operating system, establishing the at least two TCP sub-streams, wherein the at least two TCP sub-streams include at least one primary network dedicated line and at least one backup network dedicated line; Before obtaining the pre-trained decision tree model, the device is also used to: Capturing data packets from a network dedicated line, extracting the feature information based on the results of the data packets, and generating a training data set based on the feature information; Using the training data set, calling a decision tree module in a function library of a program programming language to train an initial decision tree model to obtain a trained decision tree model; The trained decision tree model is encapsulated into a function, and the encapsulated function is embedded into the scheduler.
6. A computer device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Establishment and Control system of Multipath TCP Subflow, and method
CN104243443A
Multi-substream network transmission method and multi-substream network transmission device
CN108540380A
