Power secondary system network cross-layer transmission method and device based on MPTCP
By using MPTCP to establish multi-path TCP connection and redundant transmission strategies in power secondary systems, the problems of communication interruptions and large engineering volumes are solved in extreme cases, and the timeliness and security of data transmission is achieved.
Patent Information
- Application Number
- CN202211155092.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2042-09-22
AI Technical Summary
In power secondary systems, communications in production control areas may be interrupted at the minute level in extreme cases, and switching of backup network dedicated lines requires a large amount of engineering, resulting in untimely and unsafe data transmission.
Using the MPTCP-based cross-layer transmission method of power secondary system network, by establishing a connection between at least two TCP substreams, obtaining the transmission status and generating a transmission strategy, using a redundant transmission strategy to allocate data to two TCP substreams, and in Trigger alarm information in abnormal state.
It ensures the timeliness and effectiveness of data transmission, reduces communication interruption time in extreme cases, reduces engineering volume, and improves data security.
Smart Images

Figure CN115883450B_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 method and device for cross-layer transmission of power secondary system networks based on MPTCP. Background Art
[0002] In the power secondary system, there are functions for controlling production equipment and collecting data generated by production equipment, as well as other functions, such as production situation forecasting, weather forecasting, etc. In order to ensure the security of production equipment and production data, the system is divided into production control area and management information area according to the importance of system functions. Since the provincial company network needs to remotely access the grassroots network to realize functions such as data acquisition and remote control, it is necessary to ensure timely, effective, safe and complete data transmission, which places high demands on the quality of network dedicated lines. Although network operators often use underground optical fibers for data transmission, there are still extreme situations such as construction damage, bad weather, geological disasters and man-made damage.
[0003] In the related art, a backup network dedicated line can be set up, and once an extreme situation occurs, the backup network dedicated line can be immediately activated. In addition, customized software can be developed.
[0004] However, in the related technology, once an extreme situation occurs, the communication of the production control area will be interrupted for at least minutes because the staff needs to contact the grassroots staff to confirm the situation and then start the emergency plan. In addition, if a backup network dedicated line is set up, it is necessary to develop corresponding network switching software for different server hardware structures, resulting in a very large amount of engineering work. 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 cross-layer transmission method for a power secondary system network based on MPTCP. The method proposed in the present invention can transmit data in a timely and secure manner and be applied to data communication in a power secondary system to ensure work production and protect data security.
[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 starting to transmit 104 data frames, wherein the MPTCP connection includes at least two TCP sub-flows;
[0012] Acquire the transmission status of the at least two TCP sub-flows, generate a corresponding transmission strategy according to the transmission status, and transmit the 104 data frame according to the transmission strategy;
[0013] If it is determined that the transmission state of any one of the at least two TCP sub-flows is in an abnormal state, then for the TCP sub-flow whose transmission state is in an abnormal state, the alarm information triggered by the abnormal state is processed according to a preset scheme.
[0014] Optionally, in one embodiment of the present invention, before starting to transmit 104 data frames, the method further includes:
[0015] 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.
[0016] Optionally, in one embodiment of the present invention, establishing the MPTCP connection includes:
[0017] According to the number of available network cards in the device, the at least two TCP sub-streams are established, wherein the at least two TCP sub-streams include at least one main dedicated line and at least one disaster recovery standby dedicated line.
[0018] Optionally, in an embodiment of the present invention, the number of the TCP substreams is two, and the generating a corresponding transmission strategy according to the transmission state to transmit the 104 data frames according to the transmission strategy includes:
[0019] The 104 data frames are distributed to the two TCP sub-flows using a redundant transmission strategy; wherein,
[0020] The 104 data frame is copied to obtain a replica 104 data frame, and the 104 data frame and the replica 104 data frame are numbered, and the 104 data frame and the replica 104 data frame are transmitted respectively through the two TCP sub-streams.
[0021] Optionally, in one embodiment of the present invention, it further includes:
[0022] If the TCP substream works normally, determining that the transmission state of the TCP substream is normal;
[0023] If the TCP substream is blocked or timed out, determine whether the TCP substream can work normally;
[0024] If the TCP substream is blocked, determine whether the TCP substreams other than the blocked TCP substream can work normally, wherein if the TCP substreams other than the blocked TCP substream can work normally, determine that the transmission state of the TCP substream is normal;
[0025] If the TCP substream times out and the timeout period does not exceed a preset threshold, the transmission state of the TCP substream is determined to be normal;
[0026] If the TCP substream times out and the timeout period exceeds a preset threshold, the transmission state of the TCP substream is determined to be abnormal and an alarm is triggered.
[0027] Optionally, in one embodiment of the present invention, after starting to transmit 104 data frames, the method further includes:
[0028] If a data frame 104 is received through the TCP substream, the data frame 104 is uploaded to a cache for storage;
[0029] If a data packet with the same TCP sub-flow number that has not received the 104 data frame arrives later, it will be directly discarded.
[0030] To achieve the above-mentioned object, a second embodiment of the present invention proposes a power secondary system network cross-layer transmission device based on MPTCP, comprising:
[0031] An establishing module, configured to establish 104 a protocol connection through MPTCP and start transmitting 104 data frames, wherein the establishing 104 protocol connection through MPTCP includes at least two TCP sub-flows;
[0032] An acquisition module, used for acquiring the transmission status of the at least two TCP sub-streams, generating a corresponding transmission strategy according to the transmission status, so as to transmit the 104 data frame according to the transmission strategy;
[0033] The processing module is used for processing the alarm information triggered by the abnormal state according to a preset scheme for the TCP sub-flow whose transmission state is the abnormal state if it is determined that the transmission state of any TCP sub-flow among the at least two TCP sub-flows is the abnormal state.
[0034] In summary, the MPTCP-based cross-layer transmission method and device for the secondary power system network proposed in the present invention can ensure the timeliness and effectiveness of data transmission, and customize the MPTCP transmission mode according to the scenario requirements of the secondary power system to ensure work production and protect data security.
[0035] 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.
[0036] 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.
[0037] 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
[0038] 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:
[0039] Figure 1 A structural diagram of the position of each protocol in the network protocol stack provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of a flow chart of a cross-layer transmission method of a power secondary system network based on MPTCP provided in an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of a full-link redundant data message transmission control algorithm provided by an embodiment of the present invention;
[0042] Figure 4 A network transmission flow chart based on a customized MPTCP protocol provided by an embodiment of the present invention;
[0043] Figure 5 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. DETAILED DESCRIPTION
[0044] 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.
[0045] The following describes the MPTCP-based power secondary system network cross-layer transmission method and device according to an embodiment of the present invention with reference to the accompanying drawings.
[0046] 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.
[0047] 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.
[0048] 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 transmitting data, 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 104 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.
[0049] The second layer is the MPTCP management layer, which belongs 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 dedicated line and one disaster recovery backup dedicated line. MPTCP will establish two TCP sub-flows based on the above information, such as Figure 1 The two TCP sub-flows shown are TCP sub-flow A and TCP sub-flow B. TCP sub-flow A is used to identify the primary dedicated line, and TCP sub-flow B is used to identify the disaster recovery backup dedicated line. After the connection is established, the MPTCP management layer will determine the transmission mode of the data message according to the configuration policy.
[0050] 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.
[0051] 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.
[0052] The fifth layer is the physical layer, which mainly provides data transmission channels and transmits data for data terminal devices.
[0053] In addition, for ease of understanding, some terms involved in the method provided by the present invention are explained.
[0054] 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.
[0055] 2. Dedicated network line: A dedicated network line is usually developed by a network operator specifically for a specific business, and its network is only used to carry data information for that business.
[0056] 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.
[0057] Figure 2 A flow chart of a cross-layer transmission method of a power secondary system network based on MPTCP provided in an embodiment of the present invention.
[0058] like Figure 2 As shown, the MPTCP-based power secondary system network cross-layer transmission method includes the following steps:
[0059] Step S1: Establish 104 a protocol connection through MPTCP and start transmitting 104 data frames, wherein the MPTCP connection includes at least two TCP sub-flows.
[0060] In one embodiment of the present invention, at least two TCP sub-streams are established according to the number of available network cards of the device, wherein the at least two TCP sub-streams include at least one main dedicated line and at least one disaster recovery standby dedicated line. Furthermore, the TCP sub-streams are established by the MPTCP management layer and are established on devices with different physical characteristics.
[0061] Furthermore, in one embodiment of the present invention, when configuring the MPTCP protocol, the standard congestion control algorithm module of TCP (for example, CUBIC or RENO algorithm module) should be used to replace the joint congestion control algorithm module of MPTCP to ensure that the TCP sub-flows run independently.
[0062] And, 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.
[0063] Step S2: Acquire the transmission status of at least two TCP sub-flows, generate a corresponding transmission strategy according to the transmission status, and transmit 104 data frames according to the transmission strategy.
[0064] It should be noted that, in one embodiment of the present invention, for ease of understanding and description, only the transmission status of two TCP sub-streams is obtained, and corresponding transmission strategies are generated according to the transmission status as an example for explanation, and the actual number of TCP sub-streams is not limited.
[0065] In one embodiment of the present invention, a redundant transmission strategy is used to distribute 104 data frames to two TCP sub-streams; wherein, 104 data frames are copied to obtain replica 104 data frames, and 104 data frames and replica 104 data frames are numbered, and 104 data frames and replica 104 data frames are respectively transmitted through two TCP sub-streams.
[0066] Specifically, in one embodiment of the present invention, Figure 3 Schematic diagram of a full-link redundant data message transmission control algorithm provided in an embodiment of the present invention, such as Figure 3 As shown, a redundant transmission strategy is used to allocate 104 data frames to two TCP substreams, and the two TCP substreams are TCP substream A and TCP substream B. The 104 data frames generated in host 1 are 104(m+1). For the data allocated to the two TCP substreams, both are numbered D(x), and then the two are directly filled into the sending windows of the two TCP substreams. In addition, each TCP substream will increase its own number for error recovery, flow control, congestion control and other functions of its own TCP substream. Since the two TCP substreams use different dedicated lines, the TCP numbers of the two substreams are also different. For example, in this embodiment, the number of TCP substream A is S(y), and the number of TCP substream B is S(z). And the two TCP substreams transmit their own data at the same time, and the two TCP substreams do not interfere with each other. In addition, since the two TCP substreams use different dedicated lines, the link properties of the two dedicated lines are different, such as RTT (round trip time), packet loss rate and bandwidth.
[0067] And, in one embodiment of the present invention, 104 data frames are sent simultaneously, but not received simultaneously. Figure 3As shown, TCP substream A may have received 104 data frames numbered m-1, that is, the 204 arrows point to the 104 data frames in the solid-line box, while TCP substream B has not received 104 data frames numbered m-1, that is, the 204 arrows point to the 104 data frames in the dotted-line box. After starting to transmit 104 data frames, if 104 data frames are received through the TCP substream, the 104 data frames are uploaded to the cache for storage; if the data packet with the same number of the TCP substream that has not received 104 data frames arrives later, it will be directly discarded.
[0068] It should be noted that, in one embodiment of the present invention, due to different link attributes of TCP sub-streams, the transmission speeds are different, resulting in that 104 data frames will not be received at the same time. Also, when a redundant transmission strategy is used, after receiving 104 data frames of a certain sub-stream, other sub-streams will stop sending to save bandwidth. In addition, the proportion of redundant transmission can be automatically adjusted according to the number of TCP sub-streams to save bandwidth.
[0069] Step S3: If it is determined that the transmission state of any one of the at least two TCP sub-flows is abnormal, the alarm information triggered by the abnormal state is processed according to a preset scheme for the TCP sub-flow whose transmission state is abnormal.
[0070] In one embodiment of the present invention, the following may be included in determining abnormal status and normal status:
[0071] If the TCP substream works normally, the transmission state of the TCP substream is judged to be normal;
[0072] If the TCP substream is blocked or timed out, determine whether the TCP substream can work normally;
[0073] If the TCP substream is blocked, then determine whether the TCP substreams other than the blocked TCP substream can work normally, wherein if the TCP substreams other than the blocked TCP substream can work normally, then determine that the TCP substream transmission state is normal;
[0074] If a TCP substream times out, and the timeout period does not exceed a preset threshold, the transmission state of the TCP substream is determined to be normal, that is, the timeout period is a network fluctuation that the method can withstand;
[0075] If a TCP substream times out and the timeout period exceeds a preset threshold, the transmission state of the TCP substream is determined to be abnormal and an alarm is triggered.
[0076] Furthermore, in one embodiment of the present invention, the preset threshold value can be set according to different network conditions. Furthermore, the setting of the threshold value will only affect the network transmission of the abnormal state sub-flow, and will not affect the network transmission of the normal state sub-flow.
[0077] For example, in one embodiment of the present invention, for example, if long-distance transmission is required in remote areas, the interference on the network transmission path is relatively large, so the threshold can be appropriately increased; for grassroots units that are closer, the possibility of network interference is relatively small due to the short transmission distance, so the threshold can be appropriately reduced.
[0078] In summary, the MPTCP-based cross-layer transmission method for the power secondary system network proposed in the present invention can ensure the timeliness and effectiveness of data transmission, and customize the MPTCP transmission mode according to the scenario requirements of the power secondary system to ensure work production and protect data security.
[0079] To facilitate understanding of the above description, Figure 4 A network transmission flow chart based on a customized MPTCP protocol is provided for an embodiment of the present invention to provide a detailed description of the network transmission process based on the customized MPTCP protocol.
[0080] like Figure 4 As shown in the figure, the network transmission process based on the customized MPTCP protocol includes the following steps:
[0081] Step 301: An MPTCP connection is established between hosts, and a 104 data frame is generated based on the 104 protocol, and after the 104 data frame is generated, the 104 data frame is transmitted. In the application scenario of this embodiment, the MPTCP connection includes at least two TCP sub-flows.
[0082] Step 302: During the transmission process, the sending window and congestion control module of each TCP sub-flow can sense whether the link is in an abnormal state through the returned ACK message, that is, whether the TCP sub-flow corresponding to the link is in an abnormal state. In addition, the relevant introduction on the determination of the abnormal state can refer to the description of the above embodiment.
[0083] Step 303: If each TCP sub-flow is not in an abnormal state, data transmission can be performed between the hosts according to the above-mentioned full-link redundant data message transmission control algorithm, and step 307 will be entered after the transmission is completed.
[0084] Step 304: If a TCP substream is in an abnormal state, according to the cross-layer transmission method of the power secondary system network based on MPTCP of the present invention, the TCP substream that is not in an abnormal state will still work normally. Taking the application scenario of establishing two TCP substreams as an example, for example, the two TCP substreams are TCP substream A and TCP substream B. When TCP substream A is in an abnormal state and TCP substream B is in a normal state, the transmission speed of the system is the transmission speed of the TCP substream B. Taking the application scenario of establishing more TCP substreams as an example, if a TCP substream is in an abnormal state, the overall transmission speed of the system is the transmission speed of the TCP substream with the fastest transmission speed among all TCP substreams in a normal state.
[0085] Step 305: If the blocked TCP sub-stream times out and the timeout period does not exceed the preset threshold, it indicates that it is a tolerable network fluctuation and no processing is required; if it exceeds the preset threshold, it indicates that there is a problem with the network transmission. At this time, the system can handle the alarm information triggered by the abnormal state according to the preset plan, and can also send a warning message to the user (that is, the administrator).
[0086] Step 306: After the user receives the warning message, the user needs to check the network dedicated line and all devices related to the dedicated line, and repair them to eliminate the alarm message.
[0087] Step 307: One round of data transmission ends.
[0088] Figure 5 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.
[0089] like Figure 5 As shown, the MPTCP-based power secondary system network cross-layer transmission device includes the following modules:
[0090] An establishing module, configured to establish 104 a protocol connection through MPTCP and start transmitting 104 data frames, wherein the establishing 104 protocol connection through MPTCP includes at least two TCP sub-flows;
[0091] An acquisition module, used for acquiring the transmission status of the at least two TCP sub-streams, generating a corresponding transmission strategy according to the transmission status, so as to transmit the 104 data frame according to the transmission strategy;
[0092] The processing module is used for processing the alarm information triggered by the abnormal state according to a preset scheme for the TCP sub-flow whose transmission state is the abnormal state if it is determined that the transmission state of any TCP sub-flow among the at least two TCP sub-flows is the abnormal state.
[0093] In summary, the MPTCP-based cross-layer transmission device for the power secondary system network proposed in the present invention can ensure the timeliness and effectiveness of data transmission, and customize the MPTCP transmission mode according to the scenario requirements of the power secondary system to ensure work production and protect data security.
[0094] 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 the computer program implements the method described in the first aspect embodiment of the present application when executed by the processor.
[0095] 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.
[0096] 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.
[0097] 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.
[0098] 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 those skilled in the art to which the embodiments of the present invention belong.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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 cross-layer transmission method for power secondary system network based on MPTCP, characterized in that: include: Establishing 104 a protocol connection through MPTCP and starting to transmit 104 data frames, wherein the establishing 104 protocol connection through MPTCP includes at least two TCP sub-flows; Acquire the transmission status of the at least two TCP sub-flows, generate a corresponding transmission strategy according to the transmission status, and transmit the 104 data frame according to the transmission strategy; If it is determined that the transmission state of any one of the at least two TCP sub-flows is in an abnormal state, for the TCP sub-flow whose transmission state is in an abnormal state, processing the alarm information triggered by the abnormal state according to a preset scheme; Before starting to transmit 104 data frames, the method further includes: Acquire data information in the power system, and generate the 104 data frame according to a preset protocol, wherein the 104 data frame includes one or more of a start frame, a start confirmation frame, and an information frame; The establishing of the MPTCP connection comprises: According to the number of available network cards of the device, the at least two TCP sub-streams are established, wherein the at least two TCP sub-streams include at least one main dedicated line and at least one disaster recovery standby dedicated line; There are two TCP sub-streams, and generating a corresponding transmission strategy according to the transmission state to transmit the 104 data frames according to the transmission strategy includes: The 104 data frames are distributed to the two TCP sub-streams using a redundant transmission strategy; wherein, The data frame 104 is copied to obtain a copy data frame 104, and the data frame 104 and the copy data frame 104 are numbered, and the data frame 104 and the copy data frame 104 are transmitted through the two TCP sub-streams respectively; Also includes: If the TCP substream works normally, determining that the transmission state of the TCP substream is normal; If the TCP substream is blocked or timed out, determine whether the TCP substream can work normally; If the TCP substream is blocked, determine whether the TCP substreams other than the blocked TCP substream can work normally, wherein if the TCP substreams other than the blocked TCP substream can work normally, determine that the transmission state of the TCP substream is normal; If the TCP substream times out and the timeout period does not exceed a preset threshold, the transmission state of the TCP substream is determined to be normal; If the TCP substream times out and the timeout period exceeds a preset threshold, the transmission state of the TCP substream is determined to be abnormal and an alarm is triggered.
2. The transmission method according to claim 1, characterized in that: After starting to transmit 104 data frames, the method further includes: If a data frame 104 is received through the TCP substream, the data frame 104 is uploaded to a cache for storage; If a data packet with the same TCP sub-flow number that has not received the 104 data frame arrives later, it will be directly discarded.
3. A power secondary system network cross-layer transmission device based on MPTCP, characterized in that: include: An establishing module, configured to establish 104 a protocol connection through MPTCP and start transmitting 104 data frames, wherein the establishing 104 protocol connection through MPTCP includes at least two TCP sub-flows; An acquisition module, used for acquiring the transmission status of the at least two TCP sub-streams, generating a corresponding transmission strategy according to the transmission status, so as to transmit the 104 data frame according to the transmission strategy; A processing module, configured to, if it is determined that the transmission state of any one of the at least two TCP sub-streams is an abnormal state, process the alarm information triggered by the abnormal state according to a preset scheme for the TCP sub-stream whose transmission state is an abnormal state; Before starting to transmit 104 data frames, the method further includes: Acquire data information in the power system, and generate the 104 data frame according to a preset protocol, wherein the 104 data frame includes one or more of a start frame, a start confirmation frame, and an information frame; The establishing of the MPTCP connection comprises: According to the number of available network cards of the device, the at least two TCP sub-streams are established, wherein the at least two TCP sub-streams include at least one main dedicated line and at least one disaster recovery standby dedicated line; There are two TCP sub-streams, and generating a corresponding transmission strategy according to the transmission state to transmit the 104 data frames according to the transmission strategy includes: The 104 data frames are distributed to the two TCP sub-streams using a redundant transmission strategy; wherein, The data frame 104 is copied to obtain a copy data frame 104, and the data frame 104 and the copy data frame 104 are numbered, and the data frame 104 and the copy data frame 104 are transmitted through the two TCP sub-streams respectively; Also includes: If the TCP substream works normally, determining that the transmission state of the TCP substream is normal; If the TCP substream is blocked or timed out, determine whether the TCP substream can work normally; If the TCP substream is blocked, determine whether the TCP substreams other than the blocked TCP substream can work normally, wherein if the TCP substreams other than the blocked TCP substream can work normally, determine that the transmission state of the TCP substream is normal; If the TCP substream times out and the timeout period does not exceed a preset threshold, the transmission state of the TCP substream is determined to be normal; If the TCP substream times out and the timeout period exceeds a preset threshold, the transmission state of the TCP substream is determined to be abnormal and an alarm is triggered.
4. 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 2 is implemented.
5. 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 2 is implemented.