A Fast Verification Method for the Data Channel of the CSD Switch in an Intelligent Substation
By automatically generating test data flow and automatically verifying switch links, the problem of low manual operation efficiency in the data channel verification process of CSD switches of smart substations is solved, and efficient and accurate data channel verification is achieved.
Patent Information
- Application Number
- CN202311606573.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2043-11-28
AI Technical Summary
In the prior art, the verification process of the CSD switch data channel of the smart substation relies on manual operation, which has a huge workload and low efficiency.
By analyzing the CSD switch configuration description file, generating the basic table and verification table of the switch port data transceiver relationship, automatically generating test data flow, automatically verifying the correctness of the switch link, and reducing manual participation.
It improves the verification efficiency of the data transmission and reception relationship of the switch port in the process layer network of the intelligent substation, has high test accuracy, and reduces manual workload.
Smart Images

Figure CN117650996B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent substation CSD switch testing, and particularly relates to a method for quickly verifying the data channel of an intelligent substation CSD switch. Background Art
[0002] The CSD file of an intelligent substation is a switch configuration description file, the content of which includes the subscription relationship of IED devices and the network topology relationship. Based on the SCD file, the subscription relationship of GOOSE / SV is obtained, and the CSD configuration file is generated in combination with the network topology relationship. In the process layer network of an intelligent substation, the switch generates a data mapping relationship by importing the CSD configuration file. The data flow directions of the SV messages and GOOSE messages inside the port are fixed, and only the configured SV messages or GOOSE messages are allowed to pass through the switch link. Verifying whether the configured link of the CSD switch is correct manually requires a huge amount of work. By manually sorting out the data port link relationship, not only the normal configuration between ports needs to be verified and tested, but also the abnormal configuration between ports needs to be verified and tested. This mode of manual configuration and verification has a huge workload. Summary of the Invention
[0003] In view of this, the present invention aims to overcome the above deficiencies in the prior art and proposes a method for quickly verifying the data channel of an intelligent substation CSD switch.
[0004] To achieve the above object, the technical solution of the present invention is realized as follows:
[0005] A method for quickly verifying the data channel of an intelligent substation CSD switch includes the following steps:
[0006] Step 1: Analyze the CSD switch configuration description file, create the data sending and receiving relationship of the switch ports, generate the basic table of the switch data sending and receiving relationship and the verification table of the switch data sending and receiving relationship, and perform self-checking on the basic table of the switch data sending and receiving relationship and the verification table of the switch data sending and receiving relationship;
[0007] Step 2: Connect the switch ports and the tester ports in one-to-one correspondence, and at the same time, based on the basic table of the switch data sending and receiving relationship created in Step 1, merge the ports with the same attributes to generate the control block transmission port mapping table;
[0008] Step 3: Based on the control block transmission port mapping table in Step 2, sequentially select an un-verified entry from the control block transmission port mapping table for verification;
[0009] Step 4: Automatically generate the correct test data stream based on the control block transmission port mapping table and start the test;
[0010] Step 5: Based on the control block transfer port mapping table, automatically generate a test data stream for abnormal data and start the test;
[0011] Step 6: According to the entries in the control block transfer port mapping table, mark the current test item as the completed state, and at the same time automatically jump to Step 3 to continue testing other entries until all the entries in the control block transfer port mapping table are completed;
[0012] Step 7: Based on the entries in the control block transfer port mapping table and the judgment results of the control block data stream connection status for each port in Steps 5 and 6, automatically display the test results in a graphical manner.
[0013] Further, in the above-mentioned Step 1,
[0014] Based on the CSD switch configuration description file, parse the "Topology" node to generate a basic table of the switch data sending and receiving relationship; the specific data content includes: data type, APPID, multicast MAC address, VLAN, priority, confRev, data set name, control block name; the data types include: SV input, SV output, GOOSE input, GOOSE output;
[0015] Based on the CSD switch configuration description file, parse the "SwConfig" node to generate a verification table for all switch data sending and receiving relationships; the specific data content includes: APPID, multicast MAC address, VLAN.
[0016] Further, in the above-mentioned Step 1, the self-verification of the basic table of the switch data sending and receiving relationship and the verification table of the switch data sending and receiving relationship includes:
[0017] By judging whether all the entries in the basic table of the switch data sending and receiving relationship are consistent with all the entries in the verification table of the switch data sending and receiving relationship, if they are inconsistent, an alarm prompt will be given.
[0018] Further, in the above-mentioned Step 2,
[0019] The same attributes include: APPID, multicast MAC address, VLAN;
[0020] The entries in the control block transfer port mapping table include: switch input port, switch output port list, data type, APPID, multicast MAC address, VLAN, priority, confRev, data set name, control block name.
[0021] Further, the above-mentioned Step 4 specifically includes:
[0022] Extract data from the control block transfer port mapping table to create test cases. The extracted data entries include: APPID, multicast MAC address, VLAN, priority, confRev, dataset name, and control block name data. Based on the creation rules of SV and GOOSE messages in IEC61850, test cases are automatically generated. By sending traffic from the sending port and monitoring the traffic information in real time at the receiving port, the connectivity between ports is judged.
[0023] Furthermore, judging the connectivity between ports by sending traffic from the sending port and monitoring the traffic information in real time at the receiving port includes:
[0024] After starting the test, the tester continuously loads traffic at the maximum load (100%) of the channel;
[0025] During the process of real-time monitoring and analyzing data, judge the port connectivity status by analyzing the traffic size of the receiving port of the tester in real time;
[0026] If the received traffic is equal to the set maximum load, judge that the status of this entry is normal;
[0027] If the received traffic is not equal to the set maximum load, judge that this entry is abnormal.
[0028] Furthermore, the specific content of step 5 includes:
[0029] The types of abnormal data include: APPID abnormality, VLAN abnormality, MAC address abnormality. Among them,
[0030] APPID abnormality forms a test case by modifying the inconsistency between the APPID value and the APPID value in the control block transfer port mapping table;
[0031] MAC abnormality forms a test case by modifying the inconsistency between the MAC value and the MAC value in the control block transfer port mapping table;
[0032] VLAN abnormality forms a test case by modifying the inconsistency between the VLAN value and the VLAN value in the control block transfer port mapping table;
[0033] Based on the above APPID abnormal values, MAC abnormal values, and VLAN abnormal values, extract other data from the control block transfer port mapping table to create test cases. The extracted data entries include: priority, confRev, dataset name, and control block name data. Based on the creation rules of SV and GOOSE messages in IEC61850, test cases are automatically generated; judge the connectivity between ports by sending traffic from the sending port and monitoring the traffic information in real time at the receiving port.
[0034] Further, by sending traffic from the sending port and monitoring traffic information in real time at the receiving port, determining the connectivity between ports includes:
[0035] After starting the test, the tester continuously loads traffic according to the maximum load (100%) of the channel;
[0036] During the process of real-time monitoring and analyzing data, by analyzing the size of the traffic at the receiving port of the tester in real time, the port connectivity status is determined;
[0037] If the received traffic is equal to zero (no loaded traffic), it is determined that the status of this entry is normal;
[0038] If the received traffic is not equal to zero (there is loaded traffic), it is determined that this entry is abnormal.
[0039] Compared with the prior art, the method for quickly verifying the data channel of the CSD switch in the intelligent substation of the present invention has the following advantages:
[0040] The present invention automatically calculates the data sending and receiving relationships of each switch port in the process layer network of the intelligent substation, and at the same time automatically generates test data streams to automatically verify whether the switch link is correct. The test accuracy is high, the workload of manual participation is reduced, and the work efficiency is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The schematic embodiments and descriptions thereof of the present invention are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0042] Figure 1 It is a flowchart of a method for quickly verifying the data channel of the CSD switch in the intelligent substation;
[0043] Figure 2 It is a schematic diagram of the connection between the network tester and the switch;
[0044] Figure 3 It is the display style of the test result;
[0045] Figure 4 It is the structural diagram of the SwConfig node of the CSD switch configuration description file;
[0046] Figure 5 It is the structural diagram of the Topology node of the CSD switch configuration description file. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0047] It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.
[0048] In the description of the present invention, it should be understood that the orientation or positional relationships indicated by the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. are based on the orientation or positional relationships shown in the drawings. These are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise stated, the meaning of "plural" is two or more.
[0049] In the description of the present invention, it should be noted that unless otherwise clearly specified and limited, the terms "installed", "connected", "connected to" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood through specific situations.
[0050] The present invention will be described in detail below with reference to the drawings and in conjunction with embodiments.
[0051] As Figure 1 shown, the present invention provides a method for quickly verifying the data channel of an intelligent substation CSD switch, including the following steps:
[0052] Step 1, parse the CSD switch configuration description file and create the data receiving and sending relationship of the switch ports.
[0053] Based on the CSD switch configuration description file, parse the "Topology" node and generate the basic table of all switch data receiving and sending relationships. As Figure 5 shown, parse the "Switch" node under the "Topology" node and create the basic table of the data receiving and sending relationship of one switch port,
[0054] This basic table contains the received and sent data of all SV and GOOSE data passing through the ports of this switch.
[0055] The specific data content includes: data type, APPID, multicast MAC address, VLAN, priority, confRev, dataset name, control block name.
[0056] The data types include: SV input, SV output, GOOSE input, GOOSE output.
[0057] Based on the CSD switch configuration description file, parse the "SwConfig" node to generate an all-switch data transceiver relationship verification table.
[0058] Such as Figure 4 As shown, parse the "SwitchPar" node under the "SwConfig" node to create a switch port data transceiver relationship verification table, which contains all data information forwarded through this switch port.
[0059] The specific data content includes: APPID, multicast MAC address, VLAN.
[0060] Step 2, self-verification of the internal forwarding relationship of the CSD switch configuration description file data.
[0061] Since there are control block data forwarding relationships in the "Topology" node and "SwConfig" node data of the CSD switch configuration description file, it is necessary to perform self-verification on the switch data transceiver relationship basic table and switch data transceiver relationship verification table created in Step 1. By judging whether all entries in the switch data transceiver relationship basic table are consistent with all entries in the switch data transceiver relationship verification table, if there are inconsistencies in APPID, multicast MAC address, and VLAN in the entries of the two tables, there may be an incorrect configuration of the switch, and an alarm prompt is given.
[0062] Step 3, test-connect the switch to the tester and create a control block transmission port mapping table at the same time.
[0063] Such as Figure 2 As shown, connect the switch ports to the tester ports one by one.
[0064] Based on the switch port data transceiver relationship basic table created in Step 1, merge the ports with the same attributes to generate a control block transmission port mapping table. The same attributes include: APPID, multicast MAC address, VLAN.
[0065] The entries of the control block transmission port mapping table include: switch input port, switch output port list, data type, APPID, multicast MAC address, VLAN, priority, confRev, dataset name, control block name.
[0066] Step 4, sequentially select an unverified entry from the control block transmission port mapping table for verification.
[0067] Based on the control block transfer port mapping table in step 3, select an unverified entry from the control block transfer port mapping table in sequence for verification.
[0068] Check that the input port of the switch is connected to the output port of the tester's test data, and the output port of the switch is connected to the input port of the tester's test data.
[0069] If the connection is abnormal, issue a port connection error prompt.
[0070] Step 5, verification of the connectivity of normal data
[0071] Based on the control block transfer port mapping table, automatically generate the correct test data stream and start the test.
[0072] Extract data from the control block transfer port mapping table to create test cases. The extracted data entries include: APPID, multicast MAC address, VLAN, priority, confRev, dataset name, control block name data. Based on the SV and GOOSE message creation rules in IEC61850, automatically generate test cases.
[0073] By sending traffic from the sending port and monitoring the traffic information in real time at the receiving port, judge the connectivity between ports. Specifically:
[0074] After starting the test, the tester continuously loads traffic at the maximum load (100%) of the channel. Monitor and analyze the data in real time. By analyzing the traffic size of the receiving port of the tester in real time, judge the port connectivity status.
[0075] If the received traffic is equal to the set maximum load, judge that the status of this entry is normal.
[0076] If the received traffic is not equal to the set maximum load, judge that this entry is abnormal.
[0077] Step 6, verification of the blocking of abnormal data
[0078] Based on the control block transfer port mapping table, automatically generate the test data stream of abnormal data and start the test. The types of abnormal data include: abnormal APPID, abnormal VLAN, abnormal MAC address. Specifically:
[0079] The abnormal APPID forms a test case by modifying the inconsistency between the APPID value and the APPID value in the control block transfer port mapping table.
[0080] The MAC abnormality forms a test case by modifying the inconsistency between the MAC value and the MAC value in the control block transfer port mapping table.
[0081] The VLAN exception is used to form a test case by modifying the inconsistency between the VLAN value and the VLAN value in the control block transfer port mapping table.
[0082] Based on the above-mentioned APPID exception value, MAC exception value, and VLAN exception value, other data is extracted from the control block transfer port mapping table to create test cases. The extracted data entries include: priority, confRev, dataset name, and control block name data.
[0083] Based on the SV and GOOSE message creation rules in IEC61850, test cases are automatically generated.
[0084] By sending traffic from the sending port and monitoring the traffic information in real time at the receiving port, the connectivity between ports is judged. Specifically:
[0085] After starting the test, the tester continuously loads traffic according to the maximum load (100%) of the channel.
[0086] During the real-time monitoring and analysis of data, the connectivity status of the ports is judged by analyzing the traffic size of the receiving port of the tester in real time. If the received traffic is equal to zero (no loaded traffic), the status of the entry is judged to be normal. If the received traffic is not equal to zero (there is loaded traffic), the entry is judged to be abnormal.
[0087] Step 7: Loop test, automatically select the unfinished entries for verification until all entries are verified.
[0088] According to the entries in the control block transfer port mapping table, the current test item is marked as completed, and at the same time, it automatically jumps to Step 4 to continue testing other entries until all entries in the control block transfer port mapping table are completed.
[0089] Step 8: Display the test results of the connectivity status of the switch data channels.
[0090] Based on the entries in the control block transfer port mapping table and the judgment results of the connectivity status of the control block data flow for each port in Steps 6 and 7, the test results are automatically displayed in a graphical manner.
[0091] As Figure 3 shown:
[0092] For intelligent substation process layer switches with control block data transmission and reception between ports, a control block rectangle is drawn and represented by the APPID value, and multiple control block information is arranged side by side.
[0093] Based on the normal data test results shown in Step 5, the control block data with abnormal transmission and reception between ports and their port information are displayed in the bottom alarm prompt information area.
[0094] Based on the test results of the abnormal data shown in Step 6, display the list of abnormal data that can pass between ports in the bottom warning prompt information area.
[0095] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for rapid verification of data channels of CSD switches in smart substations, characterized by: The steps include: Step 1: Parse the CSD switch configuration description file, create the switch port data transceiver relationship, generate the switch data transceiver relationship basic table and the switch data transceiver relationship verification table, and perform self-verification on the switch data transceiver relationship basic table and the switch data transceiver relationship verification table; Step 2: Connect the switch ports to the tester ports one by one. Based on the basic table of switch data transmission and reception relationships created in step 1, merge ports with the same attributes to generate a control block transmission port mapping table. Step 3: Based on the control block transmission port mapping table in step 2, sequentially select an unverified entry from the control block transmission port mapping table for verification; Step 4: Based on the control block transmission port mapping table, automatically generate the correct test data stream and start the test; Test cases are created by extracting data from the control block transmission port mapping table. The extracted data entries include: APPID, multicast MAC address, VLAN, priority, confRev, dataset name, and control block name data. Based on the SV and GOOSE message creation rules in IEC61850, test cases are automatically generated. By sending traffic from the sending port and monitoring the traffic information in real time at the receiving port, the connectivity between ports can be determined. By sending traffic from the sending port and monitoring the traffic information in real time on the receiving port, the connectivity between the ports can be determined, including: After starting the test, the tester continuously loads the flow according to the maximum load of the channel, that is, 100% load; Real-time monitoring and analysis of data process, through real-time analysis of the tester's receiving port traffic size, to determine the port connectivity status; If the received traffic is equal to the set maximum load, the entry is considered to be in normal state; If the received traffic is not equal to the set maximum load, the entry is considered abnormal; Step 5: Based on the control block transmission port mapping table, automatically generate a test data stream of abnormal data and start testing; abnormal data types include: APPID abnormality, VLAN abnormality, MAC address abnormality, among which, The APPID exception is formed by modifying the inconsistency between the APPID value and the APPID value in the control block transmission port mapping table to form a test case; MAC anomaly is formed by modifying the MAC value and the inconsistency between the MAC value in the control block transmission port mapping table to form a test case; VLAN anomalies are formed by modifying the inconsistency between the VLAN value and the VLAN value in the control block transmission port mapping table to form a test case; Based on the aforementioned APPID, MAC, and VLAN anomaly values, other data is extracted from the control block transmission port mapping table to create test cases. The extracted data items include priority, confRev, dataset name, and control block name data. Based on the SV and GOOSE message creation rules in IEC61850, test cases are automatically generated. By sending traffic from the sending port and monitoring the traffic information in real time at the receiving port, the connectivity between ports is determined. By sending traffic from the sending port and monitoring the traffic information in real time on the receiving port, the connectivity between the ports can be determined, including: After starting the test, the tester continuously loads the flow at 100% of the maximum load of the channel; Real-time monitoring and analysis of data process, through real-time analysis of the tester's receiving port traffic size, to determine the port connectivity status; If the received traffic is zero, that is, there is no loading traffic, the entry is considered to be in normal state; If the received traffic is not equal to zero, that is, there is loading traffic, the entry is judged to be abnormal; Step 6: Mark the entry corresponding to the current test item as completed according to the control block transmission port mapping table entry, and automatically jump to step 3 to continue testing other entries until all control block transmission port mapping table entries are tested; Step 7: Based on the control block transmission port mapping table entries and the control block data flow connectivity status judgment results of each port in steps 5 and 6, the test results are automatically displayed in a graphical manner.
2. A method for rapid verification of data channels of a CSD switch in a smart substation according to claim 1, characterized in that: In the step 1, Based on the CSD switch configuration description file, parse the Topology node and generate the basic table of switch data transmission and reception relationship; Specific data content includes: data type, APPID, multicast MAC address, VLAN, priority, confRev, data set name, control block name; data types include: SV input, SV output, GOOSE input, GOOSE output; Based on the CSD switch configuration description file, the SwConfig node is parsed to generate a switch data transmission and reception relationship verification table; the specific data content includes: APPID, multicast MAC address, and VLAN.
3. A method for rapid verification of data channels of a smart substation CSD switch according to claim 1, characterized in that: In step 1, the self-checking of the switch data transceiver relationship basic table and the switch data transceiver relationship verification table includes: By judging whether all entries in the switch data transceiver relationship basic table are consistent with all entries in the switch data transceiver relationship verification table, if they are inconsistent, an alarm prompt is given.
4. A method for rapid verification of data channels of a smart substation CSD switch according to claim 1, characterized in that: In the step 2, The same attributes include: APPID, multicast MAC address, and VLAN; The control block transmission port mapping table entries include: switch input port, switch output port list, data type, APPID, multicast MAC address, VLAN, priority, confRev, dataset name and control block name.
Citation Information
Patent Citations
Switch forwarding information real-time comparison method based on CSD file
CN113014517A
CSD link automatic verification method of intelligent substation switch
CN113645101A