Forwarding table verification method and device, storage medium and electronic device
By simulating signal transmission through a virtual master station and virtual measurement and control device, and combining it with a message mirroring capture and comparison device, the new forwarding table is automatically verified. This solves the problems of low verification efficiency and high risk after the transformation of substation remote control devices, and achieves efficient and safe forwarding table verification.
Patent Information
- Application Number
- CN202211433761.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-16
- Publication Date
- 2026-03-17
- Estimated Expiration
- 2042-11-16
AI Technical Summary
In existing technologies, the verification efficiency of the transfer table after the substation remote control device is modified is low and there are high operational risks.
By simulating the virtual master station and virtual telemetry and control device of the master station, remote control, remote signaling and telemetry signals are sent to the old telemetry device and the new telemetry device respectively. The message mirroring capture and comparison device is used to collect and compare the mirrors and generate the verification results of the new forwarding table.
It enables automatic verification of new forwarding tables without the need for actual substation connection, improving verification efficiency and avoiding the risks of accidental touches and misoperations.
Smart Images

Figure CN116191657B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of substations, and more particularly to a method and apparatus for verifying a forwarding table, a storage medium, and an electronic device. Background Technology
[0002] After the remote control unit (RCU) of a conventional substation (integrated automation substation) is modified or the transfer table configuration is changed, it is necessary to verify the correctness of the transfer table in the new RCU (modified RCU or RCU with modified transfer table).
[0003] In existing technologies, verification is typically performed without power interruption. This involves simultaneously connecting the new and old remote control devices to the substation and manually sending remote control, remote signaling, and telemetry signals to test the accuracy of the relay table in the new remote control device. However, due to the large number of remote control, remote signaling, and telemetry nodes involved, manual operation is inefficient and carries risks such as accidental contact and misoperation. Summary of the Invention
[0004] This application provides a method, apparatus, storage medium, and electronic device for verifying forwarding tables, aiming to solve the problems of low efficiency and high operational risk in existing forwarding table verification methods.
[0005] To achieve the above objectives, this application provides the following technical solution:
[0006] A forwarding table verification method is applied to a verification system, the verification system including a virtual master station for simulating a scheduling master station, a virtual telemetry and control device for simulating a telemetry and control device, an old remote telemetry device, a new remote telemetry device configured with a pre-generated new forwarding table, and a message mirroring capture and comparison device, the method including:
[0007] The virtual master station is controlled to send remote control signals corresponding to each remote control node to the old remote control device and the new remote control device respectively, so that the old remote control device and the new remote control device send remote control messages corresponding to each remote control signal to the virtual measurement and control device based on their own forwarding tables;
[0008] The virtual telemetry and control device is controlled to send the telemetry signal corresponding to each telemetry node and the telemetry signal corresponding to each telemetry node to the old telemetry device and the new telemetry device respectively, so that the old telemetry device and the new telemetry device send the telemetry message corresponding to each telemetry signal and the telemetry message corresponding to each telemetry signal to the virtual master station based on their own forwarding table;
[0009] The message mirroring and comparison device is used to mirror and collect the messages sent by the old remote control device and the new remote control device; the messages include the remote control message, the remote signaling message and the telemetry message;
[0010] After completing the mirror acquisition of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to all remote signaling nodes, and telemetry messages corresponding to all telemetry nodes, the verification results of the new forwarding table are generated based on the messages acquired through mirror acquisition.
[0011] Optionally, the pre-generation process of the new forwarding table in the above method includes:
[0012] Obtain the correspondence between the old logic device and the new logic device; the old logic device refers to the logic device in the old remote control device, and the new logic device refers to the logic device in the new remote control device;
[0013] Based on the correspondence, each logical device in the logical device-point number mapping relationship included in the old forwarding table is replaced with the corresponding new logical device to obtain a new forwarding table; wherein, the old forwarding table is the forwarding table in the old remote control device.
[0014] Optionally, after performing mirror acquisition of the messages sent by the old remote control device and the new remote control device using the message mirror capture and comparison device, the above method further includes:
[0015] Store the messages captured by the mirror.
[0016] Optionally, in the above method, the new forwarding table includes a new remote control forwarding table, a new remote signaling forwarding table, and a new telemetry forwarding table. The step of generating the verification result of the new forwarding table based on each message acquired through mirroring includes:
[0017] According to the message type, the messages acquired by the mirror are grouped to obtain remote control message group, remote signaling message combination telemetry message group;
[0018] Using the preset comparison program in the message mirror capture and comparison device, the two remote control messages corresponding to the same mirror acquisition time in the remote control message group are compared. Based on the comparison results of all the two remote control messages corresponding to the same mirror acquisition time, the verification result of the new remote control forwarding table is generated.
[0019] Each remote signaling message in the remote signaling message group is imported into a preset first table. Using a pre-written first function, two remote signaling messages corresponding to the same mirror acquisition time in the remote signaling message group are compared. Based on the comparison results of all two remote signaling messages corresponding to the same mirror acquisition time, a verification result of the new remote signaling forwarding table is generated.
[0020] Each telemetry message in the telemetry message group is imported into a preset second table. Using a pre-written second function, two telemetry messages corresponding to the same image acquisition time in the telemetry message group are compared. Based on the comparison results of all two telemetry messages corresponding to the same image acquisition time, a verification result of a new telemetry forwarding table is generated.
[0021] A forwarding table verification device is applied to a verification system, the verification system including a virtual master station for simulating a scheduling master station, a virtual telemetry and control device for simulating a telemetry and control device, an old remote telemetry device, a new remote telemetry device configured with a pre-generated new forwarding table, and a message mirroring capture and comparison device, the device comprising:
[0022] The first control unit is used to control the virtual master station to send the remote control signal corresponding to each remote control node to the old remote control device and the new remote control device respectively, so that the old remote control device and the new remote control device send the remote control message corresponding to each remote control signal to the virtual measurement and control device based on their own forwarding table;
[0023] The second control unit is used to control the virtual telemetry and control device to send the telemetry signal corresponding to each telemetry node and the telemetry signal corresponding to each telemetry node to the old telemetry device and the new telemetry device respectively, so that the old telemetry device and the new telemetry device send the telemetry message corresponding to each telemetry signal and the telemetry message corresponding to each telemetry signal to the virtual master station based on their own forwarding table.
[0024] The acquisition unit is used to perform mirror acquisition of messages sent by the old remote control device and the new remote control device using a message mirror capture and comparison device; the messages include the remote control message, the remote signaling message and the telemetry message;
[0025] The verification unit is used to generate the verification result of the new forwarding table based on each message acquired through mirror acquisition after completing the mirror acquisition of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to remote signaling nodes, and telemetry messages corresponding to telemetry nodes.
[0026] The aforementioned apparatus may optionally further include:
[0027] The acquisition unit is used to acquire the correspondence between the old logic device and the new logic device; the old logic device is the logic device in the old remote control device, and the new logic device is the logic device in the new remote control device;
[0028] A generation unit is used to replace each logical device in the logical device-point number mapping relationship included in the old forwarding table with the corresponding new logical device according to the correspondence relationship, so as to obtain a new forwarding table; wherein, the old forwarding table is the forwarding table in the old remote control device.
[0029] The aforementioned apparatus may optionally further include:
[0030] The storage unit is used to store the messages captured by the mirror.
[0031] Optionally, in the aforementioned apparatus, the new forwarding table includes a new remote control forwarding table, a new remote signaling forwarding table, and a new telemetry forwarding table. When the verification form generates the verification result of the new forwarding table based on each message acquired through mirroring, it is specifically used for:
[0032] According to the message type, the messages acquired by the mirror are grouped to obtain remote control message group, remote signaling message combination telemetry message group;
[0033] Using the preset comparison program in the message mirror capture and comparison device, the two remote control messages corresponding to the same mirror acquisition time in the remote control message group are compared. Based on the comparison results of all the two remote control messages corresponding to the same mirror acquisition time, the verification result of the new remote control forwarding table is generated.
[0034] Each remote signaling message in the remote signaling message group is imported into a preset first table. Using a pre-written first function, two remote signaling messages corresponding to the same mirror acquisition time in the remote signaling message group are compared. Based on the comparison results of all two remote signaling messages corresponding to the same mirror acquisition time, a verification result of the new remote signaling forwarding table is generated.
[0035] Each telemetry message in the telemetry message group is imported into a preset second table. Using a pre-written second function, two telemetry messages corresponding to the same image acquisition time in the telemetry message group are compared. Based on the comparison results of all two telemetry messages corresponding to the same image acquisition time, a verification result of a new telemetry forwarding table is generated.
[0036] A storage medium storing an instruction set, wherein the instruction set, when executed by a processor, implements the forwarding table verification method as described above.
[0037] An electronic device, comprising:
[0038] Memory, used to store at least one set of instructions;
[0039] A processor is configured to execute a set of instructions stored in the memory, thereby implementing the forwarding table verification method described above.
[0040] Compared with the prior art, this application has the following advantages:
[0041] This application provides a forwarding table verification method, apparatus, storage medium, and electronic device. The method controls a virtual master station (simulating a dispatching master station) to send remote control signals corresponding to each remote control node to both the old and new remote control devices (TDPs). It also controls a virtual measurement and control device (simulating a measurement and control unit) to send remote signaling signals corresponding to each remote signaling node and telemetry signals corresponding to each telemetry node to both the old and new TDPs. A message mirroring capture and comparison device then mirrors and collects the messages sent by the old and new TDPs. After completing the mirroring and collection of all remote control messages, remote signaling messages, and telemetry messages corresponding to all remote control nodes, remote signaling messages, and telemetry messages, a verification result for the new forwarding table is generated based on the mirrored messages. Therefore, this application's solution, through simulation technology, achieves automatic verification of the new forwarding table without connecting the old and new TDPs to a substation, thereby improving verification efficiency and avoiding operational risks such as accidental contact or misoperation. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0043] Figure 1 A schematic diagram of the structure of a verification system provided in this application;
[0044] Figure 2 An architecture diagram of a verification system provided in this application;
[0045] Figure 3 A flowchart of a forwarding table verification method provided in this application;
[0046] Figure 4 Example diagram of a forwarding table verification method provided in this application;
[0047] Figure 5 Another flowchart of a forwarding table verification method provided in this application;
[0048] Figure 6 Another example diagram of a forwarding table verification method provided in this application;
[0049] Figure 7 Another example diagram of a forwarding table verification method provided in this application;
[0050] Figure 8 Another flowchart of a forwarding table verification method provided in this application;
[0051] Figure 9 Another example diagram of a forwarding table verification method provided in this application;
[0052] Figure 10 A schematic diagram of a forwarding table verification device provided in this application;
[0053] Figure 11 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation
[0054] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0055] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0056] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different systems, modules or units, and are not used to limit the order of functions performed by these systems, modules or units or their interdependencies.
[0057] It should be noted that the terms "a" and "a plurality of" used in this application disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0058] This application can be used in a wide range of general-purpose or special-purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, distributed computing environments including any of the above systems or devices, etc.
[0059] In existing forwarding table verification schemes, during remote control forwarding table verification, the dispatch master station sends remote control commands to the new and old remote control devices respectively. Then, it compares and judges the remote control records by connecting a laptop to the monitoring and control device or by checking the remote control records on the device panel of the remote control device. Telemetry forwarding table verification uses static verification at the dispatch end. Remote signaling forwarding table verification requires manual simulation of the position setting on the terminal block behind the monitoring and control device screen in the station. A shorting wire is used to short-circuit the remote signaling power supply and the remote signaling terminal to trigger the monitoring and control device to send the corresponding remote signaling signal upwards. This signal is transmitted to the new and old remote control devices via the substation front-end unit. After receiving the remote signaling signal, the new and old remote control devices parse the content of the received signal and find the corresponding remote signaling point in the address column of the forwarding table configured in the device. Then, they send the corresponding network message to the superior dispatch master station. The monitoring personnel at the dispatch master station remotely verify the signal light display board of the master station.
[0060] The existing forwarding table verification scheme not only requires isolating the remote control output circuit of the measurement and control device, but also requires blocking the corresponding interval data at the dispatch master station. Maintenance personnel are at risk of accidental contact or misoperation. Furthermore, due to the large amount of content involved, the verification workload is large, resulting in a long verification cycle. In addition, the joint commissioning work involves three parties: operation and maintenance, maintenance, and dispatch. If there is other maintenance work, it will cause conflicts and interference to the joint commissioning work, resulting in low verification efficiency.
[0061] Therefore, this application provides a method, apparatus, system, storage medium, and electronic device for verifying forwarding tables, which can solve the problems of low efficiency and high security risks in existing forwarding table verification.
[0062] In this embodiment, for ease of understanding, the relevant terms involved in this application are explained as follows:
[0063] Remote control units (RTUs) are important station control layer devices in substations. They enable communication with equipment in the substation bays, mirror the acquisition of telemetry and telesignal data from equipment in the substation, and send remote control and remote adjustment commands to control the status of primary equipment. They also enable communication with control centers at all levels, providing data, graphics, and file transmission services to enable the main station system to realize remote monitoring and control, information query, and other functions of the substation.
[0064] Remote signaling information refers to the position status signals of major circuit breakers and disconnectors in substations, the action signals of important relay protection and automatic devices, and some operating status signals.
[0065] Remote signal verification is the process of confirming the consistency between the remote signal transmission table in the new remote control system and the old remote control system. When a substation is put into operation, the remote signaling signals of each bay's monitoring and control device are arranged in a table, with each signal having its own number. This table is the remote signal transmission table in the remote control system. After the remote control system is upgraded, it is necessary to verify that the transmission table in the new system remains unchanged compared to the old table; this is remote signal verification.
[0066] Message: An information transmission unit consisting of one or more frames.
[0067] Dispatch master station: A place for remote monitoring of multiple substations within a region.
[0068] Protocol: In a communication network, to ensure correct, effective, and reliable data transmission between communicating parties, a series of regulations govern the sending and receiving processes, constraining their coordinated work. A communication protocol refers to the strict agreements necessary to initiate and maintain communication, requiring a set of rules regarding information transmission format and content. Generally, conventional substation bay and station control layers use the Siemens 8Fw protocol or the IEC-60870-5-103 protocol, while remote control and dispatch master stations use the IEC-60870-5-104 protocol.
[0069] See Figure 1 This application provides a verification system, including:
[0070] Virtual master station 101, virtual measurement and control device 102, old remote control device 103, new remote control device 104 and message mirror capture and comparison device 105.
[0071] The virtual master station 101 is connected to the old remote control unit 103 and the new remote control unit 104 configured with a pre-generated new forwarding table. Specifically, the virtual master station 101 is connected to the old remote control unit 103 and the new remote control unit 104 configured with a pre-generated new forwarding table through a first communication channel. The virtual measurement and control unit 102 is connected to the old remote control unit 103 and the new remote control unit 104 through a second communication channel.
[0072] The virtual master station 101 is used to simulate the scheduling master station and send the remote control signal corresponding to each remote control node to the old remote control device 103 and the new remote control device 104 respectively, so that the old remote control device 103 and the new remote control device 104 send the remote control message corresponding to each remote control signal to the virtual measurement and control device 102 based on their own forwarding tables.
[0073] The virtual telemetry and control device 102 is used to simulate a telemetry and control device, and sends the telemetry signal corresponding to each telemetry node to the old telemetry device 103 and the new telemetry device 104 respectively, so that the old telemetry device 103 and the new telemetry device 104 send the telemetry message corresponding to each telemetry signal and the telemetry message corresponding to each telemetry signal to the virtual master station 101 based on their own forwarding table.
[0074] The message mirror capture and comparison device 105 is used to perform mirror acquisition of messages sent by the old remote control device 103 and the new remote control device 104. After completing the mirror acquisition of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to remote signaling nodes, and telemetry messages corresponding to telemetry nodes, it generates the verification results of the new forwarding table based on each message acquired through mirror acquisition.
[0075] For example, the first communication channel can be a control test network, and the second communication channel can be a station control layer test network.
[0076] In this embodiment, the pre-generation process of the new forwarding table includes the following steps:
[0077] Obtain the mapping relationship between the old logical devices and the new logical devices;
[0078] Based on the correspondence, each logical device in the logical device-point number mapping relationship included in the old forwarding table is replaced with the corresponding new logical device to obtain the new forwarding table; wherein, the old forwarding table is the forwarding table in the old remote control device.
[0079] In this embodiment, the forwarding table in the old remote control device is obtained. By parsing the forwarding table, the remote signaling forwarding table, the telemetry forwarding table, and the remote control forwarding table are obtained. That is to say, the forwarding table includes the remote signaling forwarding table, the telemetry forwarding table, and the remote control forwarding table. It should be noted that the forwarding table includes the logical device-point number mapping relationship.
[0080] In this embodiment, the correspondence between the old logic device and the new logic device is obtained. Specifically, the forwarding table in the old remote control device is obtained, and the obtained forwarding table in the old remote control device is imported into the preset system to obtain the correspondence between the old logic device and the new logic device. The preset system stores the device information of the logic device in the new remote control device. The old logic device is the logic device in the forwarding table of the old remote control device, and the new logic device is the logic device in the new remote control device.
[0081] In this embodiment, according to the correspondence, each logical device in the logical device-point number mapping relationship of the old forwarding table is replaced with the corresponding new logical device to obtain a new forwarding table. Specifically, according to the correspondence between the old logical devices and the new logical devices, the logical devices in the logical device-point number mapping relationship of the old forwarding table, including the remote control forwarding table, the remote signaling forwarding table, and the telemetry forwarding table, are replaced with the corresponding new logical devices to obtain a new remote control forwarding table, a new remote signaling forwarding table, and a new telemetry forwarding table.
[0082] The verification system provided in this application embodiment obtains the correspondence between old and new logical devices, and then replaces the logical devices in the mapping relationship of the old forwarding table with the corresponding new logical devices based on the correspondence, thereby realizing the automatic generation of new forwarding tables. Compared with the existing method of manually creating new forwarding tables, it improves efficiency and accuracy.
[0083] In this embodiment, the virtual master station is used to simulate the scheduling master station and send the remote control signal corresponding to each remote control node to the old remote control device and the new remote control device respectively. Specifically, the virtual master station sends the remote control signal corresponding to each remote control node to the old remote control device and the new remote control device respectively through the first communication channel. The remote control signal is a message of a preset first message type. For example, the preset first message type can be the IEC-60870-5-104 type.
[0084] After receiving the remote control signal sent by the virtual master station, the old remote control device processes the remote control signal using the forwarding table in the old remote control device to obtain a remote control message. Specifically, it processes the remote control signal using the remote control forwarding table in the old remote control device to obtain a remote control message, and then sends the remote control message to the virtual measurement and control device through the second communication channel.
[0085] After receiving the remote control signal sent by the virtual master station, the new remote control device processes the remote control signal using the new forwarding table in the new remote control device to obtain a remote control message. Specifically, it processes the remote control signal using the new remote control forwarding table in the new remote control device to obtain a remote control message, and then sends the remote control message to the virtual measurement and control device through the second communication channel.
[0086] The remote control message is a message of a preset second message type. For example, the preset second message type can be the Siemens 8FW protocol or the IEC-60870-5-103 type.
[0087] In this embodiment, the message mirroring capture and comparison device performs real-time mirror monitoring of the second communication channel. After detecting that the new remote control device and the old remote control device send remote control messages to the virtual telemetry and control device, the device performs mirror acquisition of the remote control messages sent by the old remote control device and the new remote control device.
[0088] In this embodiment, the virtual telemetry and control device simulates a telemetry and control device, sending remote signaling signals corresponding to each remote signaling node and remote signaling signals corresponding to each telemetry node to both the old and new telemetry devices. Specifically, the virtual telemetry and control device sends these signals via a second communication channel to both the old and new telemetry devices. Both the remote signaling signals and telemetry signals are preset messages of a second message type.
[0089] After receiving the remote signaling signal sent by the virtual telemetry and control device, the old remote control device processes the remote signaling signal using the forwarding table in the old remote control device to obtain a remote signaling message. Specifically, the remote signaling signal is processed using the remote signaling forwarding table in the old remote control device to obtain a remote signaling message, and then the remote signaling message is sent to the virtual master station through the first communication channel.
[0090] After receiving the telemetry signal sent by the virtual telemetry and control device, the old telemetry device processes the telemetry signal using the forwarding table in the old telemetry device to obtain a telemetry message. Specifically, it processes the telemetry signal using the telemetry forwarding table in the old telemetry device to obtain a telemetry message, and then sends the telemetry message to the virtual master station through the first communication channel.
[0091] After receiving the remote signaling signal sent by the virtual telemetry and control device, the new remote telemetry device processes the remote signaling signal using the new forwarding table in the new remote telemetry device to obtain a remote signaling message. Specifically, it processes the remote signaling signal using the new remote signaling forwarding table in the new remote telemetry device to obtain a remote signaling message, and then sends the remote signaling message to the virtual telemetry and control device through the first communication channel.
[0092] After receiving the telemetry signal sent by the virtual telemetry and control device, the new telemetry device processes the telemetry signal using the new forwarding table in the new telemetry device to obtain a telemetry message. Specifically, the new telemetry forwarding table in the new telemetry device processes the telemetry signal to obtain a telemetry message, and then sends the telemetry message to the virtual telemetry and control device through the first communication channel.
[0093] In this embodiment, both the remote signaling message and the telemetry message are preset messages of the first message type.
[0094] In this embodiment, the message mirroring capture and comparison device performs real-time mirror monitoring of the first communication channel. After detecting that the new and old remote control devices send remote signaling messages or telemetry messages to the virtual master station, the device performs mirror acquisition of the remote signaling messages and telemetry messages sent by the old and new remote control devices.
[0095] In this embodiment, after completing the mirror acquisition of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to all remote signaling nodes, and telemetry messages corresponding to all telemetry nodes, a new forwarding table verification result is generated based on each mirrored message.
[0096] In this embodiment, the message mirroring capture and comparison device groups the mirrored messages according to message type to obtain remote control message groups, remote signaling message groups, and telemetry message groups. Using the preset comparison program in the message mirroring capture and comparison device, it compares two remote control messages corresponding to the same mirroring acquisition time in the remote control message group. Based on the comparison results of all two remote control messages corresponding to the same mirroring acquisition time, a verification result of the new remote control forwarding table is generated. Specifically, if all two remote control messages corresponding to the same mirroring acquisition time are successfully compared, a verification result indicating that the new remote control forwarding table has passed verification is generated. If the comparison of any two remote control messages corresponding to any mirroring acquisition time fails, a verification result indicating that the new remote control forwarding table has failed verification is generated.
[0097] The remote signaling message group is imported into a preset first table. Using a pre-written first function, two remote signaling messages corresponding to the same mirror acquisition time in the remote signaling message group are compared. Based on the comparison results of all two remote signaling messages corresponding to the same mirror acquisition time, a verification result of the new remote signaling forwarding table is generated. Specifically, if all two remote signaling messages corresponding to the same mirror acquisition time are successfully compared, a verification result indicating that the new remote signaling forwarding table has passed verification is generated. If the comparison of two remote signaling messages corresponding to any mirror acquisition time fails, a verification result indicating that the new remote signaling forwarding table has failed verification is generated.
[0098] The telemetry message group is imported into a pre-defined second table. Using a pre-written second function, the two telemetry messages corresponding to the same mirror acquisition time in the telemetry message group are compared. Based on the comparison results of all two telemetry messages corresponding to the same mirror acquisition time, a verification result of the new telemetry forwarding table is generated. Specifically, if all two telemetry messages corresponding to the same mirror acquisition time are successfully compared, a verification result indicating that the new telemetry forwarding table has passed verification is generated. If the comparison of two telemetry messages corresponding to any mirror acquisition time fails, a verification result indicating that the new telemetry forwarding table has failed verification is generated.
[0099] See Figure 2 The system architecture of the verification system provided in this application embodiment can be divided into three layers, including a physical layer for input and output data, a transmission layer for communication transmission, and an application layer for parsing, comparison, and verification.
[0100] The physical layer supports TPC and UDP network interfaces and allows for custom expansion of other types of interfaces; the transport layer can implement the IEC-60870-5-103 and IEC-60870-5-104 protocols; and the application layer implements the parsing, comparison, and verification of remote signaling, telemetry, and remote control messages.
[0101] The verification system provided in this application simulates a master station sending remote control signals corresponding to each remote control node to both the old and new remote control devices (TDPs). A virtual measurement and control device simulates a measurement and control device, sending remote signaling signals corresponding to each remote signaling node and telemetry signals corresponding to each telemetry node to both the old and new TDPs. A message mirroring and comparison device then mirrors and collects the messages sent by the old and new TDPs. After completing the mirroring and collection of all remote control messages, remote signaling messages, and telemetry messages corresponding to all remote control nodes, remote signaling messages, and telemetry messages, the system generates verification results for the new forwarding table based on the mirrored messages. Therefore, this application's solution, through simulation technology, achieves automatic verification of the new forwarding table without connecting the old and new TDPs to a substation, thereby improving verification efficiency and avoiding operational risks such as accidental contact or misoperation.
[0102] This application also provides a forwarding table verification method, which is applied to the monitoring device provided in the above embodiments. The flowchart of the method is as follows: Figure 3 As shown, it specifically includes:
[0103] S301, the control virtual master station sends the remote control signal corresponding to each remote control node to the old remote control device and the new remote control device respectively, so that the old remote control device and the new remote control device send the remote control message corresponding to each remote control signal to the virtual measurement and control device based on their own forwarding table.
[0104] In this embodiment, the virtual master station controls the sending of remote control signals corresponding to each remote control node to the old remote control device and the new remote control device respectively. Specifically, for each remote control node, the virtual master station controls the sending of the remote control signal corresponding to that remote control node to the old remote control device and the new remote control device respectively through the first communication channel.
[0105] It should be noted that the remote control signals of each remote control node can be sent sequentially by setting the transmission period.
[0106] It should be noted that the remote control signal is a message of a preset first message type. For example, the preset first message type can be the IEC-60870-5-104 type.
[0107] For example, the front-end information display interface of the virtual main site is as follows: Figure 4 As shown, in simulated remote control operation, remote control signals can be sent to both the old and new remote control devices by setting the logical device number, remote control number, and operation type, and then triggering the send button. For example, the remote control device number can be set to 1, and the operation type can be set to "closed". It should be noted that setting the logical device number, remote control number, and operation type, as well as triggering the send button, can be executed by a pre-written automatic program.
[0108] In this embodiment, the front-end information display interface of the virtual main station also includes a copy-down button and a copy-up-down button.
[0109] In this embodiment, the new remote control device is equipped with a pre-generated new transponder table, which includes a new remote control transponder table, a new remote signaling transponder table, and a new telemetry transponder table.
[0110] See Figure 5 The process of generating a new forwarding table includes the following steps:
[0111] S501, Obtain the correspondence between the old logic device and the new logic device.
[0112] In this embodiment, the forwarding table in the old remote control device is obtained, and the obtained forwarding table in the old remote control device is imported into the preset system. The preset system generates the correspondence between the old logic device and the new logic device. The preset system stores the device information of the logic device of the new remote control device. For example, the preset system can be the NS3000 V8 system.
[0113] Among them, the old logic device refers to the logic device in the old remote control unit, and the new logic device refers to the logic device in the new remote control unit.
[0114] It should be noted that the forwarding table includes a logical device-point number mapping relationship, that is, a mapping relationship between logical devices and point numbers. The corresponding point number can be found through the logical device and the mapping relationship, and the corresponding logical device can also be found through the point number and the mapping relationship.
[0115] S502. Based on the correspondence, replace each logical device in the logical device-point number mapping relationship included in the old forwarding table with the corresponding new logical device to obtain the new forwarding table.
[0116] In this embodiment, for each correspondence, the logical device-dot mapping relationship corresponding to the old logical device in the old forwarding table is found, and the logical device in the found logical device-dot mapping relationship is replaced with the new logical device in the correspondence.
[0117] In this embodiment, after replacing all logical devices in the logical device-dot mapping relationships included in the old forwarding table, a new forwarding table is obtained.
[0118] In this embodiment, by obtaining the correspondence between the old and new logical devices, the logical devices in the mapping relationship of the old forwarding table are replaced with the corresponding new logical devices based on the correspondence, thereby realizing the automatic generation of the new forwarding table. Compared with the existing method of manually creating new forwarding tables, this improves efficiency and accuracy.
[0119] In this embodiment, after receiving the remote control signal, the old remote control device processes the remote control signal based on the forwarding table in the old remote control device to obtain a remote control message, and sends the remote control message to the virtual measurement and control device through the second communication channel.
[0120] In this embodiment, after receiving the remote control signal, the new remote control device processes the remote control signal based on the forwarding table in the new remote control device to obtain the remote control message. That is, the remote control signal is processed based on the new remote control forwarding table in the new forwarding table to obtain the remote control message.
[0121] It should be noted that the remote control message is a message of the preset second message type. For example, the preset second message type can be the Siemens 8FW protocol or the IEC-60870-5-103 type.
[0122] S302. The control virtual telemetry and control device sends the telemetry signal corresponding to each telemetry node to the old telemetry device and the telemetry signal corresponding to each telemetry node to the new telemetry device, so that the old telemetry device and the new telemetry device send the telemetry message corresponding to each telemetry signal and the telemetry message corresponding to each telemetry signal to the virtual master station based on their own forwarding table.
[0123] In this embodiment, the virtual control device sends the remote signaling signal corresponding to each remote signaling node and the telemetry signal corresponding to each telemetry node to the old remote control device and the new remote control device, respectively. Specifically, for each remote signaling node, the virtual control device sends the remote signaling signal corresponding to that remote signaling node to the old remote control device and the new remote control device through the second communication channel.
[0124] Among them, the remote signaling signal is a message of the second message type.
[0125] For example, the front-end display interface of the virtual measurement and control device under simulated remote signaling conditions is as follows: Figure 6 As shown, by setting the logical device point number, remote signaling point number, and remote signaling location, and triggering the send button, remote signaling signals can be sent to both the old and new remote control devices. For example, the remote control device point number can be set to 1, the remote signaling point number to 0, and the operation type to "closed"; or the remote control device point number can be set to 1, the remote signaling point number to 1, and the operation type to "closed". It should be noted that remote signaling signals corresponding to multiple remote signaling nodes (i.e., remote signaling point numbers) can be sent at once.
[0126] In this embodiment, the virtual control device sends telemetry signals corresponding to each telemetry node to both the old and new telemetry devices. Specifically, for each telemetry node, the virtual control device sends the corresponding telemetry signal to both the old and new telemetry devices via the second communication channel.
[0127] Among them, the telemetry signal is a message of the second message type.
[0128] For example, the front-end display interface of the virtual measurement and control device in simulated telemetry conditions is as follows: Figure 7 As shown, by setting the logical device number, telemetry point number, and telemetry value, and triggering the send button, telemetry signals can be sent to both the old and new remote control devices. For example, the remote control device number can be set to 1, the telemetry signaling point number to 0, and the telemetry value to 100; the remote control device number can be set to 1, the telemetry signaling point number to 1, and the telemetry value to 200; and the remote control device number can be set to 1, the telemetry signaling point number to 2, and the telemetry value to 300. It should be noted that multiple telemetry signals corresponding to multiple telemetry nodes (i.e., telemetry point numbers) can be sent at once.
[0129] After receiving the remote signaling signal sent by the virtual telemetry and control device, the old remote control device processes the remote signaling signal using the forwarding table in the old remote control device to obtain a remote signaling message. Specifically, the remote signaling signal is processed using the remote signaling forwarding table in the old remote control device to obtain a remote signaling message, and then the remote signaling message is sent to the virtual master station through the first communication channel.
[0130] After receiving the remote signaling signal sent by the virtual telemetry and control device, the new remote telemetry device processes the remote signaling signal using the new forwarding table in the new remote telemetry device to obtain a remote signaling message. Specifically, it processes the remote signaling signal using the new remote signaling forwarding table in the new remote telemetry device to obtain a remote signaling message, and then sends the remote signaling message to the virtual telemetry and control device through the first communication channel.
[0131] After receiving the telemetry signal sent by the virtual telemetry and control device, the old telemetry device processes the telemetry signal using the forwarding table in the old telemetry device to obtain a telemetry message. Specifically, it processes the telemetry signal using the telemetry forwarding table in the old telemetry device to obtain a telemetry message, and then sends the telemetry message to the virtual master station through the first communication channel.
[0132] After receiving the telemetry signal sent by the virtual telemetry and control device, the new telemetry device processes the telemetry signal using the new forwarding table in the new telemetry device to obtain a telemetry message. Specifically, the new telemetry forwarding table in the new telemetry device processes the telemetry signal to obtain a telemetry message, and then sends the telemetry message to the virtual telemetry and control device through the first communication channel.
[0133] It should be noted that both remote signaling messages and telemetry messages are preset first type messages. For example, the preset first message type can be IEC-60870-5-104 type, that is, both remote signaling messages and telemetry messages are IEC-60870-5-104 type messages.
[0134] S303. Use the message mirroring capture and comparison device to mirror and collect messages sent by the old and new remote control devices.
[0135] In this embodiment, a message mirroring capture and comparison device is used to perform real-time mirror monitoring of the first and second communication channels. This means mirror monitoring of messages sent by the old and new remote control devices (RTDs). When the old and new RTDs are detected sending messages through either the first or second communication channel, the messages are mirrored and captured. These messages include remote control messages, remote signaling messages, and telemetry messages.
[0136] Optionally, the messages acquired by the mirror can also be stored, that is, the remote control messages, remote signaling messages and telemetry messages acquired by the mirror can be stored.
[0137] In the method provided in this application embodiment, by storing the messages collected by mirroring, after completing the mirror collection of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to remote signaling nodes, and telemetry messages corresponding to telemetry nodes, it is possible to generate the verification results of a new forwarding table offline based on each message collected by mirroring.
[0138] S304. After completing the mirror acquisition of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to all remote signaling nodes, and telemetry messages corresponding to all telemetry nodes, generate the verification results of the new forwarding table based on each message acquired through mirror acquisition.
[0139] In this embodiment, after completing the mirror acquisition of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to all remote signaling nodes, and telemetry messages corresponding to all telemetry nodes, a new forwarding table verification result is generated based on each message acquired through mirror acquisition.
[0140] See Figure 8 The process of generating the verification results of a new forwarding table based on the various messages collected by the mirror includes the following steps:
[0141] S801. According to the message type, the messages acquired by the mirror are grouped to obtain remote control message group, remote signaling message combination, and telemetry message group.
[0142] In this embodiment, the messages acquired by the mirror are grouped according to their message types to obtain remote control message groups and remote signaling message combination telemetry message groups. Specifically, the messages are grouped according to their message types and related fields in the messages to obtain remote control message groups and remote signaling message combination telemetry message groups.
[0143] S802. Using the preset comparison program in the message mirror capture and comparison device, compare two remote control messages corresponding to the same mirror acquisition time included in the remote control message group. Based on the comparison results of all two remote control messages corresponding to the same mirror acquisition time, generate the verification result of the new remote control forwarding table.
[0144] In this embodiment, a preset comparison program is set in advance in the message mirror capture and comparison device. This allows the preset comparison program in the message mirror capture and comparison device to compare two remote control messages that correspond to the same mirror acquisition time in the remote control message group. The mirror acquisition time is the time of the mirror acquisition message. The two remote control messages that correspond to the same mirror acquisition time include remote control messages sent by the old remote control device and the new remote control device for the same remote control signal.
[0145] Compare two remote control messages that correspond to the same image acquisition time in the remote control message group. That is, compare whether the contents of multiple preset first fields in the contents of the two remote control messages are consistent. Multiple preset first fields include, but are not limited to, information name, remote control point number, timestamp, remote control type, command and operation result.
[0146] In this embodiment, if the contents of multiple preset first fields in the contents of two remote control messages corresponding to the same image acquisition time are consistent, a comparison result indicating successful comparison of the remote control messages is generated; if the contents of any preset first field are inconsistent, a comparison result indicating failed comparison of the remote control messages is generated.
[0147] In this embodiment, if the comparison results of two remote control messages corresponding to the same mirror acquisition time all indicate that the remote control message comparison is successful, a verification result indicating that the new remote control forwarding table verification is passed is generated. If the comparison result of any two remote control messages corresponding to the same mirror acquisition time indicates that the remote control message comparison fails, a verification result indicating that the new remote control forwarding table verification is not passed is generated.
[0148] S803. Import each remote signaling message included in the remote signaling message group into a preset first table. Using a pre-written first function, compare two remote signaling messages corresponding to the same mirror acquisition time included in the remote signaling message group. Based on the comparison results of all two remote signaling messages corresponding to the same mirror acquisition time, generate the verification result of the new remote signaling forwarding table.
[0149] In this embodiment, a first function is pre-written to compare two remote signaling messages that correspond to the same mirror acquisition time in the remote signaling message group.
[0150] In this embodiment, each remote signaling message in the remote signaling message group is imported into a preset first table. A pre-written first function is then used to compare two remote signaling messages in the remote signaling message group that correspond to the same mirror acquisition time. These two remote signaling messages corresponding to the same mirror acquisition time include remote signaling messages sent by the old remote control device and the new remote control device for the same remote signal.
[0151] Compare two remote signaling messages that correspond to the same mirror acquisition time in the remote signaling message group. That is, compare whether the contents of multiple preset second fields in the contents of the two remote signaling messages are consistent. Multiple preset second fields include, but are not limited to, remote signaling point number, remote signaling name, and current remote signaling separation and combination value.
[0152] In this embodiment, if the contents of multiple preset second fields in the contents of two remote signaling messages corresponding to the same image acquisition time are consistent, a comparison result indicating successful remote signaling message comparison is generated; if the contents of any preset second field are inconsistent, a comparison result indicating failed remote signaling message comparison is generated.
[0153] In this embodiment, if the comparison results of two remote signaling messages corresponding to the same mirror acquisition time all indicate that the remote signaling message comparison is successful, a verification result indicating that the new remote signaling forwarding table verification has passed is generated. If the comparison result of any two remote signaling messages corresponding to the same mirror acquisition time indicates that the remote signaling message comparison fails, a verification result indicating that the new remote signaling forwarding table verification has failed is generated.
[0154] S804. Import each telemetry message in the telemetry message group into the preset second table. Using the pre-written second function, compare two telemetry messages corresponding to the same mirror acquisition time in the telemetry message group. Based on the comparison results of all two telemetry messages corresponding to the same mirror acquisition time, generate the verification results of the new telemetry forwarding table.
[0155] In this embodiment, a second function is pre-written to compare two telemetry messages in the same telemetry message group that correspond to the same image acquisition time.
[0156] In this embodiment, each telemetry message in the telemetry message group is imported into a preset second table. A pre-written second function is then used to compare two telemetry messages in the telemetry message group that correspond to the same mirror acquisition time. These two telemetry messages corresponding to the same mirror acquisition time include telemetry messages sent by the old telemetry device and the new telemetry device for the same telemetry signal.
[0157] Compare two telemetry messages that correspond to the same mirror acquisition time in the telemetry message group. That is, compare whether the contents of multiple preset third fields in the contents of the two telemetry messages are consistent. Multiple preset third fields include, but are not limited to, telemetry point number, information name, and telemetry value.
[0158] In this embodiment, if the contents of multiple preset third fields in the contents of two telemetry messages corresponding to the same image acquisition time are consistent, a comparison result indicating successful telemetry message comparison is generated; if the contents of any preset third field are inconsistent, a comparison result indicating failed telemetry message comparison is generated.
[0159] In this embodiment, if the comparison results of two telemetry messages corresponding to the same mirror acquisition time all indicate that the telemetry message comparison is successful, a verification result indicating that the new telemetry forwarding table verification is passed is generated. If the comparison result of two telemetry messages corresponding to any one mirror acquisition time indicates that the telemetry message comparison fails, a verification result indicating that the new telemetry forwarding table verification fails is generated.
[0160] The forwarding table verification method provided in this application embodiment controls a virtual master station of the simulated dispatching master station to send remote control signals corresponding to each remote control node to both the old and new remote control devices. A virtual measurement and control device of the simulated measurement and control device sends remote signaling signals corresponding to each remote signaling node and telemetry signals corresponding to each telemetry node to both the old and new remote control devices. Then, through a message mirroring capture and comparison device, the messages sent by the old and new remote control devices are mirrored and collected. After completing the mirroring collection of remote control messages, remote signaling messages, and telemetry messages corresponding to all remote control nodes, remote signaling messages, and telemetry messages, the verification result of the new forwarding table is generated based on the mirrored collected messages. Therefore, this application solution, through simulation technology, achieves automatic verification of the new forwarding table without connecting the new and old remote control devices to the substation, thereby improving verification efficiency and avoiding operational risks such as accidental contact and misoperation.
[0161] In the forwarding table verification method provided in this application embodiment, by storing the messages collected by mirroring, after completing the mirror collection of remote control messages corresponding to all remote control nodes, remote signaling messages corresponding to remote signaling nodes, and telemetry messages corresponding to telemetry nodes, it is possible to generate a new forwarding table verification result offline based on each message collected by mirroring.
[0162] See Figure 9 The specific implementation process of the forwarding table verification method provided in the above embodiments of this application is illustrated below:
[0163] A virtual master station and virtual telemetry and control devices are used to simulate the dispatch master station and the substation bay layer telemetry and control devices. The virtual master station essentially functions as a protocol simulation device, simulating remote control operation commands received by the telecontrol system from the dispatch master station and sending IEC-60870-5-104 type messages. After receiving the remote control operation commands (i.e., the aforementioned remote control signals), the new and old telecontrol devices convert the commands into remote control messages and forward them to the virtual telemetry and control system. The virtual telemetry and control system simulates all station remote signaling and telemetry signals, sending Siemens 8FW protocol or IEC-60870-5-103 type messages. These messages are then converted into IEC-60870-5-104 type messages (i.e., remote signaling messages and telemetry messages) by the new and old telecontrol devices and sent to the virtual master station. A message mirroring and comparison device monitors the uplink and downlink data channels of the new and old telecontrol systems through mirroring, analyzing and comparing the consistency of the communication messages (i.e., remote control messages, remote signaling messages, and telemetry messages) between the two telecontrol systems.
[0164] Specifically,
[0165] (1) Automatically generate a new telecontrol transfer table. Use an automatic library import tool to convert the old telecontrol configuration file into a format suitable for the new telecontrol. Import the NSC300 (old telecontrol model) conversion table into the NS3000 V8 system, automatically match the logical device correspondence in the NSC300 and NS3000V8 logical device tables, and generate a common file that can be used by the new telecontrol.
[0166] (2) Establish an offline verification test network. Connect the virtual master station of the new and old remote control devices, the virtual measurement and control device, and the message mirroring capture and comparison device to the network.
[0167] (3) Establish communication. The automatic point-to-point device (i.e., virtual master station and virtual telemetry and control device) establishes communication with the new and old remote control devices respectively.
[0168] (4) Start the simulation. The automatic point-to-point device starts the simulation of IEC-60870-5-103 and IEC-60870-5-104 protocols.
[0169] (5) Message parsing and comparison. The telemetry and tele-signaling messages transmitted by the old and new telecontrol units were exported using the 104client scheduling simulation tool. Functions were written in Excel (i.e., the first and second functions mentioned above) to compare the exported telemetry and tele-signaling messages (4200 messages across 50 intervals) from the old and new telecontrol units with the messages to be written using an Excel macro to identify mismatches and omissions. Remote control function verification was performed using an interval-level message mirroring capture and comparison device.
[0170] It should be noted that although the operations are described in a specific order, this should not be interpreted as requiring these operations to be executed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous.
[0171] It should be understood that the various steps described in the method embodiments disclosed in this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.
[0172] and Figure 3 Corresponding to the method described above, this application also provides a forwarding table verification device for verifying... Figure 3 The specific implementation of the method is shown in the following structural diagram. Figure 10 As shown, it specifically includes:
[0173] The first control unit 1001 is used to control the virtual master station to send the remote control signal corresponding to each remote control node to the old remote control device and the new remote control device respectively, so that the old remote control device and the new remote control device send the remote control message corresponding to each remote control signal to the virtual measurement and control device based on their own forwarding table;
[0174] The second control unit 1002 is used to control the virtual telemetry and control device to send the telemetry signal corresponding to each telemetry node and the telemetry signal corresponding to each telemetry node to the old telemetry device and the new telemetry device respectively, so that the old telemetry device and the new telemetry device send the telemetry message corresponding to each telemetry signal and the telemetry message corresponding to each telemetry signal to the virtual master station based on their own forwarding table.
[0175] The acquisition unit 1003 is used to perform mirror acquisition of messages sent by the old remote control device and the new remote control device using a message mirror capture and comparison device; the messages include the remote control message, the remote signaling message and the telemetry message;
[0176] The verification unit 1004 is used to generate the verification result of the new forwarding table based on each message acquired by the mirror acquisition after completing the mirror acquisition of the remote control messages corresponding to all remote control nodes, the remote signaling messages corresponding to all remote signaling nodes, and the telemetry messages corresponding to all telemetry nodes.
[0177] The forwarding table verification device provided in this application embodiment uses simulation technology to automatically verify the new forwarding table without connecting the new and old remote control devices to the substation, thereby improving verification efficiency and avoiding operational risks such as accidental contact and misoperation.
[0178] In one embodiment of this application, based on the foregoing solution, it can also be configured as follows:
[0179] The acquisition unit is used to acquire the correspondence between the old logic device and the new logic device; the old logic device is the logic device in the old remote control device, and the new logic device is the logic device in the new remote control device;
[0180] A generation unit is used to replace each logical device in the logical device-point number mapping relationship included in the old forwarding table with the corresponding new logical device according to the correspondence relationship, so as to obtain a new forwarding table; wherein, the old forwarding table is the forwarding table in the old remote control device.
[0181] In one embodiment of this application, based on the foregoing solution, it can also be configured as follows:
[0182] The storage unit is used to store the messages captured by the mirror.
[0183] In one embodiment of this application, based on the foregoing scheme, the new forwarding table includes a new remote control forwarding table, a new remote signaling forwarding table, and a new telemetry forwarding table. When the verification unit 1004 generates the verification result of the new forwarding table based on each message acquired through mirroring, it is specifically used for:
[0184] According to the message type, the messages acquired by the mirror are grouped to obtain remote control message group, remote signaling message combination telemetry message group;
[0185] Using the preset comparison program in the message mirror capture and comparison device, the two remote control messages corresponding to the same mirror acquisition time in the remote control message group are compared. Based on the comparison results of all the two remote control messages corresponding to the same mirror acquisition time, the verification result of the new remote control forwarding table is generated.
[0186] Each remote signaling message in the remote signaling message group is imported into a preset first table. Using a pre-written first function, two remote signaling messages corresponding to the same mirror acquisition time in the remote signaling message group are compared. Based on the comparison results of all two remote signaling messages corresponding to the same mirror acquisition time, a verification result of the new remote signaling forwarding table is generated.
[0187] Each telemetry message in the telemetry message group is imported into a preset second table. Using a pre-written second function, two telemetry messages corresponding to the same image acquisition time in the telemetry message group are compared. Based on the comparison results of all two telemetry messages corresponding to the same image acquisition time, a verification result of a new telemetry forwarding table is generated.
[0188] This application also provides a storage medium storing an instruction set, wherein the forwarding table verification method disclosed in any of the above embodiments is executed when the instruction set is run.
[0189] This application also provides an electronic device, the structural schematic diagram of which is shown below. Figure 11 As shown, it specifically includes a memory 1101 for storing at least one set of instructions; and a processor 1102 for executing the set of instructions stored in the memory, thereby implementing the forwarding table verification method disclosed in any of the embodiments above by executing the set of instructions.
[0190] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
[0191] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of the disclosure herein. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0192] The above description is merely a preferred embodiment disclosed in this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A forwarding table verification method, characterized in that, The method is applied to a verification system, and the verification system comprises a virtual master station for simulating a dispatching master station, a virtual measuring and controlling device for simulating a measuring and controlling device, an old remote device, a new remote device configured with a pre-generated new forwarding table, and a message mirror capturing and comparing device, and the method comprises the following steps: controlling the virtual master station to send a remote control signal corresponding to each remote control node to the old remote device and the new remote device respectively, so that the old remote device and the new remote device send a remote control message corresponding to each remote control signal to the virtual measuring and controlling device based on their own forwarding tables; controlling the virtual measuring and controlling device to send a remote signaling signal corresponding to each remote signaling node and a remote measuring signal corresponding to each remote measuring node to the old remote device and the new remote device respectively, so that the old remote device and the new remote device send a remote signaling message corresponding to each remote signaling signal and a remote measuring message corresponding to each remote measuring signal to the virtual master station based on their own forwarding tables; capturing and collecting messages sent by the old remote device and the new remote device by using the message mirror capturing and comparing device; the messages comprise the remote control messages, the remote signaling messages and the remote measuring messages; after completing the mirror collection of the remote control messages corresponding to all remote control nodes, the remote signaling messages corresponding to remote signaling nodes and the remote measuring messages corresponding to remote measuring nodes, generating a verification result of the new forwarding table based on the messages collected by the mirror collection.
2. The method of claim 1, wherein, the pre-generation process of the new forwarding table comprises the following steps: obtaining a correspondence between an old logical device and a new logical device; the old logical device is a logical device in the old remote device, and the new logical device is a logical device in the new remote device; replacing the logical device in each logical device-point number mapping relationship included in an old forwarding table with a corresponding new logical device according to the correspondence, to obtain a new forwarding table; wherein the old forwarding table is a forwarding table in the old remote device.
3. The method of claim 1, wherein, after the message mirror capturing and comparing device is used to capture and collect the messages sent by the old remote device and the new remote device, the method further comprises the following steps: storing the messages collected by the mirror collection.
4. The method of claim 3, wherein, the new forwarding table comprises a new remote control forwarding table, a new remote signaling forwarding table and a new remote measuring forwarding table, and the method of generating a verification result of the new forwarding table based on the messages collected by the mirror collection comprises the following steps: grouping the messages collected by the mirror collection according to message types, to obtain a remote control message group, a remote signaling message group and a remote measuring message group; comparing two remote control messages corresponding to a same mirror collection time included in the remote control message group by using a preset comparison program in the message mirror capturing and comparing device, and generating a verification result of the new remote control forwarding table based on comparison results of all the two remote control messages corresponding to the same mirror collection time; importing each remote signaling message included in the remote signaling message group into a preset first table, comparing two remote signaling messages corresponding to a same mirror collection time included in the remote signaling message group by using a pre-written first function, and generating a verification result of the new remote signaling forwarding table based on comparison results of all the two remote signaling messages corresponding to the same mirror collection time. The telemetry messages included in the telemetry message group are imported into a preset second table, and two telemetry messages corresponding to the same mirror collection time included in the telemetry message group are compared by using a second function written in advance, and a verification result of the new telemetry forwarding table is generated based on comparison results of all the two telemetry messages corresponding to the same mirror collection time.
5. A forwarding table verification apparatus characterized by comprising: The application is applied to a verification system, and the verification system comprises a virtual master station for simulating a dispatching master station, a virtual TT&C device for simulating a TT&C device, an old remote device, a new remote device configured with a pre-generated new forwarding table, and a message mirror capturing and comparing device. A first control unit is configured to control the virtual master station to send a remote control signal corresponding to each remote control node to the old remote device and the new remote device respectively, so that the old remote device and the new remote device send a remote control message corresponding to each remote control signal to the virtual TT&C device based on their own forwarding tables. A second control unit is configured to control the virtual TT&C device to send a remote signal corresponding to each remote signal and a telemetry signal corresponding to each telemetry node to the old remote device and the new remote device respectively, so that the old remote device and the new remote device send a remote signal message corresponding to each remote signal and a telemetry message corresponding to each telemetry signal to the virtual master station based on their own forwarding tables. A collection unit is configured to capture messages sent by the old remote device and the new remote device by using the message mirror capturing and comparing device, and the messages include the remote control message, the remote signal message and the telemetry message. A verification unit is configured to generate a verification result of the new forwarding table based on each message captured by the mirror after completing mirror collection of the remote control message corresponding to each remote control node, the remote signal message corresponding to each remote signal node and the telemetry message corresponding to each telemetry node.
6. The apparatus of claim 5, wherein, Further comprising: An acquisition unit is configured to acquire a correspondence between an old logical device and a new logical device. The old logical device is a logical device in the old remote device, and the new logical device is a logical device in the new remote device. A generation unit is configured to replace a logical device in each logical device-point number mapping relationship included in an old forwarding table with a corresponding new logical device according to the correspondence to obtain a new forwarding table, wherein the old forwarding table is a forwarding table in the old remote device.
7. The apparatus of claim 5, wherein, Further comprising: A storage unit is configured to store the messages captured by the mirror.
8. The apparatus of claim 6, wherein, The new forwarding table includes a new remote control forwarding table, a new remote signal forwarding table and a new telemetry forwarding table, and the verification unit is specifically configured to: group each message captured by the mirror according to a message type to obtain a remote control message group, a remote signal message group and a telemetry message group; compare two remote control messages corresponding to the same mirror collection time included in the remote control message group by using a preset comparison program in the message mirror capturing and comparing device, and generate a verification result of the new remote control forwarding table based on comparison results of all the two remote control messages corresponding to the same mirror collection time. The telesign messages included in the telesign message group are introduced into a preset first table, two telesign messages corresponding to the same mirror image collection time in the telesign message group are compared by using a first function written in advance, a verification result of a new telesign forwarding table is generated based on comparison results of all the two telesign messages corresponding to the same mirror image collection time. The telesign messages included in the telesign message group are introduced into a preset first table, two telesign messages corresponding to the same mirror image collection time in the telesign message group are compared by using a first function written in advance, a verification result of a new telesign forwarding table is generated based on comparison results of all the two telesign messages corresponding to the same mirror image collection time.
9. A storage medium, characterized by The storage medium stores an instruction set, wherein the instruction set is executed by the processor to implement the forwarding table verification method of any one of claims 1-4.
10. An electronic device, comprising: Comprise: A memory for storing at least one set of instructions; A processor for executing the instruction set stored in the memory, and by executing the instruction set, the forwarding table verification method of any one of claims 1-4 is implemented.