A kind of message forwarding method of intelligent substation simulation training system and device
Technical field
The present invention relates to technical field of electric power, particularly a kind of message forwarding method of intelligent substation simulation training system and device.
Background technology
In electric power system, usually need intelligent substation simulation training system.In this intelligent substation simulation training system, usually need to forward message.Type of message due to intelligent substation is fixing, and the logical relation of intelligent substation all messages after having designed is determined.But traditional method forwarded message, usually need to carry out cumbersome VLAN or multicast address configuration, there are the following problems for it: easily make mistakes when forwarding, complex operation, stability and reliability be not high.
Summary of the invention
The technical problem to be solved in the present invention is, easily make mistakes when forwarding for prior art above-mentioned, defect that complex operation, stability and reliability are not high, the message forwarding method of higher, simple and quick, the stability of accuracy and the higher intelligent substation simulation training system of reliability and device when a kind of forwarding be provided.
The technical solution adopted for the present invention to solve the technical problems is: the message forwarding method constructing a kind of intelligent substation simulation training system, comprises the steps:
A), after intelligent substation has designed, SCD file is downloaded to all switches of network;
B) described switch is resolved described SCD file, obtains SCD configuration identifier table; The list item of described SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title;
C) the ISIS agreement by improving obtains the network topology of described switch, and generates the network topology table of switch; The list item of described network topology table comprises switch system mark and switch ports themselves;
D) resolve each field entering the message of described switch ports themselves, form intelligent electronic device automatic learning table;
E) the network topology table of described SCD configuration identifier table, switch and intelligent electronic device automatic learning table are mapped, form the forwarding relation table of each port of intelligent electronic device and each port of switch;
F) carry out intelligence to described message to forward.
In the message forwarding method of intelligent substation simulation training system of the present invention, described message is IEC61850 message.
In the message forwarding method of intelligent substation simulation training system of the present invention, described step B) comprise further:
B1) described switch is resolved SCD file and is obtained message subscribing relationship;
B2) SCD configuration identifier table is formed; The list item of described SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title.
In the message forwarding method of intelligent substation simulation training system of the present invention, the list item of described intelligent electronic device automatic learning table comprises application identities and switch ports themselves.
In the message forwarding method of intelligent substation simulation training system of the present invention, described step D) comprise further:
D1) message entering switch ports themselves is resolved by intelligent electronic device Auto-learning Method;
D2) its application identities is obtained;
D3) described intelligent electronic device automatic learning table is generated.
The invention still further relates to a kind of device realizing the message forwarding method of above-mentioned intelligent substation simulation training system, comprising: download unit: for after intelligent substation has designed, SCD file is downloaded to all switches of network;
Resolving acquiring unit: for making described switch resolve described SCD file, obtaining SCD configuration identifier table; The list item of described SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title;
Topology generation unit: the network topology obtaining described switch for the ISIS agreement by improving, and generate the network topology table of switch; The list item of described network topology table comprises switch system mark and switch ports themselves;
Field resolution unit: for resolving each field of the message entering described switch ports themselves, forms intelligent electronic device automatic learning table;
Map unit: for the network topology table of described SCD configuration identifier table, switch and intelligent electronic device automatic learning table being mapped, forms the forwarding relation table of each port of intelligent electronic device and each port of switch;
Retransmission unit: forward for carrying out intelligence to described message.
Realize in the device of the message forwarding method of above-mentioned intelligent substation simulation training system of the present invention, described message is IEC61850 message.
Realize in the device of the message forwarding method of above-mentioned intelligent substation simulation training system of the present invention, described parsing acquiring unit comprises further:
Receive message module: resolve SCD file for making described switch and obtain message subscribing relationship;
Configuration identifier table forms module: for the formation of SCD configuration identifier table; The list item of described SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title.
Realize in the device of the message forwarding method of above-mentioned intelligent substation simulation training system of the present invention, the list item of described intelligent electronic device automatic learning table comprises application identities and switch ports themselves.
Realize in the device of the message forwarding method of above-mentioned intelligent substation simulation training system of the present invention, described field resolution unit comprises further:
Packet parsing module: for being resolved the message entering switch ports themselves by intelligent electronic device Auto-learning Method;
Application identities acquisition module: for obtaining its application identities;
Automatic learning generation module: for generating described intelligent electronic device automatic learning table.
Implement message forwarding method and the device of intelligent substation simulation training system of the present invention, there is following beneficial effect: obtain SCD configuration identifier table due to parsing can be carried out to SCD file intelligently, obtained the network topology of described switch by the ISIS agreement improved, and generate the network topology table of switch; Resolve each field entering the message of described switch ports themselves, form intelligent electronic device automatic learning table; Finally the network topology table of SCD configuration identifier table, switch and intelligent electronic device automatic learning table are mapped, form the forwarding relation table of each port of intelligent electronic device and each port of switch, so just achieve and the intelligence of message is forwarded, it no longer needs to carry out cumbersome VLAN or multicast address configuration, thus when it forwards higher, simple and quick, the stability of accuracy and reliability higher.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of method in the message forwarding method of intelligent substation simulation training system of the present invention and device embodiment;
Fig. 2 is that in described embodiment, switch is resolved SCD file, obtains the particular flow sheet of SCD configuration identifier table;
Fig. 3 resolves each field entering the message of switch ports themselves in described embodiment, form the particular flow sheet of intelligent electronic device automatic learning table;
Fig. 4 is the structural representation of device in described embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the message forwarding method and device embodiment of intelligent substation simulation training system of the present invention, the flow chart of the message forwarding method of its intelligent substation simulation training system as shown in Figure 1.In Fig. 1, the message forwarding method of this intelligent substation simulation training system comprises the steps:
After step S01 intelligent substation has designed, SCD file is downloaded to all switches of network: in this step, after intelligent substation has designed, SCD file is downloaded to all switches of network.
Step S02 switch is resolved SCD file, obtains SCD configuration identifier table: in this step, switch is resolved SCD file, obtains SCD configuration identifier table.The list item of this SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title.
Step S03 obtains the network topology of switch by the ISIS agreement improved, and generate the network topology table of switch: in this step, the network topology of switch is obtained by the ISIS agreement improved, and generate the network topology table of switch, in other words, namely by the syntople of the ISIS protocol discovery switch network of improvement, generate the network topology table of switch.The list item of this network topology table comprises switch system mark and switch ports themselves.
Step S04 resolves each field entering the message of switch ports themselves, forms intelligent electronic device automatic learning table: in this step, resolve respectively each field of the message entering switch ports themselves, forms intelligent electronic device automatic learning table.The list item of above-mentioned intelligent electronic device automatic learning table comprises application identities and switch ports themselves.
The network topology table of SCD configuration identifier table, switch and intelligent electronic device automatic learning table map by step S05, form the forwarding relation table of each port of intelligent electronic device and each port of switch: in this step, the network topology table of SCD configuration identifier table, switch and intelligent electronic device automatic learning table are combined, the mapping relations of each port of intelligent electronic device and each port of switch can be obtained completely, form the forwarding relation table of each port of intelligent electronic device and each port of switch.
Step S06 carries out intelligence to message and forwards: in this step, and carry out intelligence to message and forward, in the present embodiment, this message is IEC61850 message.The method of the present embodiment no longer needs to carry out cumbersome VLAN or multicast address configuration, thus when it forwards higher, simple and quick, the stability of accuracy and reliability higher.
For the present embodiment, above-mentioned steps S02 also can refinement further, and the flow chart after its refinement as shown in Figure 2.In Fig. 2, this step S02 comprises further:
Step S21 switch is resolved SCD file and is obtained message subscribing relationship: in this step, and switch is resolved SCD file and obtained message subscribing relationship.Particularly, can be obtained publisher-subscriber's relation of every bar GOOSE and SV message by translation SCD file, the certainty realized based on application function exchanges.
Step S22 forms SCD configuration identifier table: in this step, and form SCD configuration identifier table, the list item of this SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title.In the present embodiment, exchange the forwarding relation of the parsing SCD file of function intelligence, save the artificial parsing work taken time and effort, the patterned display virtual line of energy simultaneously, supports daily record and the alarm of virtual secondary circuit abnormal conditions.
For the present embodiment, above-mentioned steps S04 also can refinement further, and the flow chart of its refinement as shown in Figure 3.In Fig. 3, above-mentioned steps S04 comprises further:
Step S41 resolves the message entering switch ports themselves by intelligent electronic device Auto-learning Method: in this step, is resolved the message entering switch ports themselves, all will will resolve each field of message by intelligent electronic device Auto-learning Method.
Step S42 obtains its application identities: in this step, obtains the application identities of each field.
Step S43 generates intelligent electronic device automatic learning table: in this step, generates intelligent electronic device automatic learning table.
In the present embodiment, the message forwarding method of this intelligent substation simulation training system supports the Intelligent Recognition of intelligent electronic device, realize " plug and play " of intelligent electronic device at any thing port, all devices can access the arbitrary port of the whole network switch nearby, convenient debugging and engineering wiring.Intelligent electronic device and switch physical port can be bound after having debugged, and carry out alarm prompting when misconnection port.Meanwhile, the sending/receiving message communication flow comprising each intelligent electronic device can be predicted, the normal discharge of often kind of message can be calculated, the important information such as burst flow and abnormal flow.
The present embodiment also relates to a kind of device realizing the message forwarding method of above-mentioned intelligent substation simulation training system, and its structural representation as shown in Figure 4.In Fig. 4, this device comprises download unit 1, resolves acquiring unit 2, Topology generation unit 3, field resolution unit 4, map unit 5 and retransmission unit 6; Wherein, SCD file, for after intelligent substation has designed, is downloaded to all switches of network by download unit 1; Resolving acquiring unit 2 to resolve described SCD file for making described switch, obtaining SCD configuration identifier table; The list item of described SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title; Topology generation unit 3 obtains the network topology of switch for the ISIS agreement by improving, and generates the network topology table of switch; The list item of network topology table comprises switch system mark and switch ports themselves; Field resolution unit 4, for resolving each field of the message entering switch ports themselves, forms intelligent electronic device automatic learning table; The list item of this intelligent electronic device automatic learning table comprises application identities and switch ports themselves; Map unit 5, for the network topology table of SCD configuration identifier table, switch and intelligent electronic device automatic learning table being mapped, forms the forwarding relation table of each port of intelligent electronic device and each port of switch; Retransmission unit 6 forwards for carrying out intelligence to message.This message is IEC61850 message.The method of the present embodiment no longer needs to carry out cumbersome VLAN or multicast address configuration, thus when it forwards higher, simple and quick, the stability of accuracy and reliability higher.
In the present embodiment, above-mentioned parsing acquiring unit 2 comprises Receive message module 21 further and configuration identifier table forms module 22; Wherein, Receive message module 21 is resolved SCD file for making switch and obtains message subscribing relationship; Configuration identifier table forms module 22 for the formation of SCD configuration identifier table; The list item of this SCD configuration identifier table comprises application identities, intelligent electronic device title and intelligent electronic device port title.In the present embodiment, exchange the forwarding relation of the parsing SCD file of function intelligence, save the artificial parsing work taken time and effort, the patterned display virtual line of energy simultaneously, supports daily record and the alarm of virtual secondary circuit abnormal conditions.
In the present embodiment, field resolution unit 4 comprises packet parsing module 41, application identities acquisition module 42 and automatic learning generation module 43 further; Wherein, packet parsing module 41 is for resolving the message entering switch ports themselves by intelligent electronic device Auto-learning Method; Application identities acquisition module 42 is for obtaining its application identities; Automatic learning generation module 43 is for generating intelligent electronic device automatic learning table.
In a word, the present invention supports the Intelligent Recognition of intelligent electronic device, and realize " plug and play " of intelligent electronic device at any thing port, all devices can access the arbitrary port of the whole network switch nearby, convenient debugging and engineering wiring.Intelligent electronic device and switch physical port can be bound after having debugged, and carry out alarm prompting when misconnection port.Meanwhile, the sending/receiving message communication flow comprising each intelligent electronic device can be predicted, the normal discharge of often kind of message can be calculated, the important information such as burst flow and abnormal flow.The present invention can the forwarding realizing message of accurate simple and fast, and reliable and stable.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.