CN102624943A - Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports - Google Patents

Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports Download PDF

Info

Publication number
CN102624943A
CN102624943A CN2012101072050A CN201210107205A CN102624943A CN 102624943 A CN102624943 A CN 102624943A CN 2012101072050 A CN2012101072050 A CN 2012101072050A CN 201210107205 A CN201210107205 A CN 201210107205A CN 102624943 A CN102624943 A CN 102624943A
Authority
CN
China
Prior art keywords
electronic device
intelligent electronic
application identities
message
device port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012101072050A
Other languages
Chinese (zh)
Other versions
CN102624943B (en
Inventor
刘之尧
陈志光
张弛
曾耿晖
李一泉
竹之涵
李锦艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU PTSWITCH COMPUTER TECHNOLOGY Co Ltd
GUANGDONG CENTER OF ELECTRIC DISPATCHING AND TRANSFORMING
Original Assignee
GUANGZHOU PTSWITCH COMPUTER TECHNOLOGY Co Ltd
GUANGDONG CENTER OF ELECTRIC DISPATCHING AND TRANSFORMING
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU PTSWITCH COMPUTER TECHNOLOGY Co Ltd, GUANGDONG CENTER OF ELECTRIC DISPATCHING AND TRANSFORMING filed Critical GUANGZHOU PTSWITCH COMPUTER TECHNOLOGY Co Ltd
Priority to CN201210107205.0A priority Critical patent/CN102624943B/en
Publication of CN102624943A publication Critical patent/CN102624943A/en
Application granted granted Critical
Publication of CN102624943B publication Critical patent/CN102624943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a system for ensuring a switch to carry out automatic learning on intelligent electronic equipment ports. The method comprises the following steps: analyzing an SCD (Science Citation Database) file to generate an application identifier configuration table, wherein lists of application identifiers, names of intelligent electronic equipment and names of the intelligent electronic equipment ports are stored in table items of the application identifier configuration table; analyzing a massage entering each port of the switch in real time to generate an application identifier switching port table, wherein lists of the application identifiers and port numbers of the switch are stored in table items of the application identifier switching port table; and generating an intelligent electronic equipment port table by the application identifier configuration table and the application identifier switching port table, wherein the lists of the application identifiers, the names of the intelligent electronic equipment, the port numbers of the switch and the names of the intelligent electronic equipment ports are stored in table items of the intelligent electronic equipment port table. The invention provides the basis for implementing more application functions of the switch.

Description

Switch is to automatic learning method of intelligent electronic device port and system
Technical field
The present invention relates to the power technology field, particularly a kind of switch is to automatic learning method of intelligent electronic device port and system.
Background technology
Along with the develop rapidly of the huge day by day and network communications technology of scale of power, intelligent substation is the important motive force of intelligent grid development as a technical field in the ascendant.Intelligent substation is between primary equipment and secondary device and the secondary device higher levels of information sharing degree to be provided based on the ethernet communication technology, and Ethernet switch makes up the nucleus equipment of Ethernet just.Each port of Ethernet switch all directly with a network in equipment link to each other, and generally all be operated in full duplex mode.The exchange function is communicated with many to port simultaneously, makes each network equipment to intercommunication mutually can both carry out ensuring escapement from confliction transmission data.
General; Switch is through resolving and form mac address table to realize learning functionality to source address; But; This mac address table can only be mapped the port of switch and the MAC Address of intelligent electronic device, and can't show the corresponding relation between each port of switch and each port of intelligent electronic device, nor is beneficial to operations staff's checking for message subscribing relationship in the network.
Summary of the invention
The objective of the invention is to overcome the shortcoming and defect of above-mentioned prior art, propose a kind of switch, realize more application functions for switch the basis is provided automatic learning method of intelligent electronic device port and system.
The object of the invention is realized through following technical proposals:
A kind of switch comprises the steps: the automatic learning method of intelligent electronic device port
Resolve the SCD file and generate the application identities allocation list, preserve the tabulation of application identities, intelligent electronic device title, intelligent electronic device port title in the said application identities allocation list list item;
The message that real time parsing gets into each port of switch generates application identities exchange end oral thermometer, preserves the tabulation of application identities, switch ports themselves number in the said application identities exchange end oral thermometer list item;
Generate the intelligent electronic device port table through application identities allocation list and application identities switching port table, preserve the tabulation of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the said intelligent electronic device port table list item.
A kind of switch comprises the automatic learning system of intelligent electronic device port:
SCD document analysis module; Be used to resolve the SCD file and generate the application identities allocation list; Preserve the tabulation of application identities, intelligent electronic device title, intelligent electronic device port title in the said application identities allocation list list item, and the application identities allocation list is transferred to intelligent electronic device port table generation module;
The packet parsing module; Be used for the message generation application identities exchange end oral thermometer that real time parsing gets into each port of switch; Preserve the tabulation of application identities, switch ports themselves number in the said application identities exchange end oral thermometer list item, and application identities exchange end oral thermometer is transferred to intelligent electronic device port table generation module;
Intelligent electronic device port table generation module; Be used for obtaining the intelligent electronic device port table, preserve the tabulation of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the said intelligent electronic device port table list item through application identities allocation list and application identities exchange end oral thermometer.
According to the scheme in the present embodiment; Through application identities exchange end oral thermometer that analytic message is obtained with resolve application identities allocation list that the SCD file obtains and combine one of formation to contain the intelligent electronic device port table of information such as application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title; This table can react the mapping relations of each port of each port of switch and intelligent electronic device clearly; Realized the learning ability of switch, be beneficial to operations staff's checking for message subscribing relationship in the network to the intelligent electronic device port.
Description of drawings
Fig. 1 is the frame structure sketch map of GOOSE message and SV message;
Fig. 2 is the schematic flow sheet of switch of the present invention to the automatic learning method embodiment of intelligent electronic device port;
Fig. 3 is the structural representation of switch of the present invention to the automatic learning system embodiment of intelligent electronic device port;
Fig. 4 is a kind of concrete structure sketch map of the packet parsing module among Fig. 3;
Fig. 5 is a kind of concrete structure sketch map of the application identities resolution unit among Fig. 4;
Fig. 6 is a kind of concrete structure sketch map of intelligent electronic device port table generation module among Fig. 3.
Embodiment
Below in conjunction with embodiment and accompanying drawing the present invention is done further explain, but execution mode of the present invention is not limited thereto.
Embodiment 1
Switch is responsible for transmitting three types message altogether in the intelligent substation process layer network; To the time message, GOOSE (Generic Object Oriented Substation Event, general substation incident) message and SV (sampled value sampled value) message.Present embodiment mainly realizes that based on the parsing to GOOSE message and SV message switch learns the intelligent electronic device port automatically.Referring to shown in Figure 1, be the frame structure sketch map of GOOSE message and SV message, from Fig. 1, can know, no matter be GOOSE message or SV message, preceding 12 bytes are all represented destination address and source address.0x8100; 0x88B8 and 0x88BA are the ethernet type sign; It is VLAN (VLAN) sign that 0x8100 represents the field after this field; It is the GOOSE message that 0x88B8 represents this message, is the SV message and 0x88BA represents this message, 0x88B8 or 0x88BA followed with byte be APPID.APPID is an application identities; The application identities of GOOSE message at 0x0 between the 0x3FFF, unique identification one road GOOSE, the application identities value of SV in 0x4000 between the 0x7FFF; Unique identification one road adopted value; Data are the data message that message carries, and variable-length, CRC are CRC.Also there are some GOOSE messages, SV message not to be with the VLAN label, promptly after source address, closely follow 0x88B8 or 0x88BA.
Referring to shown in Figure 2, be the schematic flow sheet of switch of the present invention to the automatic learning method embodiment of intelligent electronic device port, it comprises step:
Step S101: resolve SCD (Substation Configuration Description; Substation configuration description) file generates the application identities allocation list; Preserve the tabulation of application identities, intelligent electronic device title, intelligent electronic device port title in the said application identities allocation list list item; Get into step S102; Wherein, the SCD file is the file that is used for the intelligent substation configuration of IEC 61850 definition, has contained paragraphs such as the whole intelligent electronic devices of description intelligent substation, communicate configuration and transformer station's topological structure.Can recognize the configuring condition of the intelligent electronic device in the bed rearrangement transformer station and the message subscribing relationship between them through the parsing of SCD file; The structure of application identities allocation list is referring to shown in the table 1; Table 1 just for the ease of image understand the application identities allocation list, and be not construed as limiting the invention, can know by table 1; Comprise contents such as application identities, intelligent electronic device title, intelligent electronic device port title in the table; Each application identities corresponding an intelligent electronic device port title, accordingly each application identities also corresponding an intelligent electronic device title, that is to say; After having confirmed a certain application identities, in table 1, can inquire intelligent electronic device title and intelligent electronic device port title that should application identities;
Table 1 application identities allocation list
Application identities The intelligent electronic device title Intelligent electronic device port title
Step S102: the message that real time parsing gets into each port of switch generates application identities exchange end oral thermometer; Preserve the tabulation of application identities, switch ports themselves number in the said application identities exchange end oral thermometer list item; Get into step S103, wherein, unique switch ports themselves of correspondence of each application identities number in the application identities exchange end oral thermometer; That is to say in case from message, parse application identities; Just can know the switch ports themselves number that receives this message, the structure of application identities exchange end oral thermometer is referring to shown in the table 2, and table 2 is just understood application identities exchange end oral thermometer for the ease of image; And be not construed as limiting the invention; Switch ports themselves in the table 2 number is the port numbers that this message gets into switch, and switch is through real-time analytic message (comprising GOOSE message, SV message etc.), dynamically generates and maintenance application identifies the exchange end oral thermometer;
Table 2 application identities exchange end oral thermometer
Application identities Switch ports themselves number
Step S103: generate the intelligent electronic device port table through application identities allocation list and application identities switching port table; Preserve the tabulation of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the said intelligent electronic device port table list item; Be equivalent to the content in table 1 and the table 2 is integrated formation table 3; Table 3 is just understood the intelligent electronic device port table for the ease of image; And be not construed as limiting the invention; Comprised the tabulation of contents such as application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the table 3; In case parse its entrained application identities in the message, just can know the intelligent electronic device title and the intelligent electronic device corresponding port title of the switch ports themselves number that receives this message and this message of transmission, promptly realized the learning ability of switch to the intelligent electronic device port.
Table 3 intelligent electronic device port table
Application identities The intelligent electronic device title Intelligent electronic device port title Switch ports themselves number
In view of the above; According to the scheme in the present embodiment; Through application identities exchange end oral thermometer that analytic message is obtained with resolve application identities allocation list that the SCD file obtains and combine one of formation to contain the intelligent electronic device port table of information such as application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title; This table can react the mapping relations of each port of each port of switch and intelligent electronic device clearly; Realized the learning ability of switch to the intelligent electronic device port, simultaneously, the operations staff can check message subscribing relationship in the network through intelligent electronic device end table.
In practical implementation, step S102 can specifically realize through following steps:
Step S1021: the application identities in the analytic message, and obtain the source port of the port of this message entering switch as message, and get into step S1022, wherein, the port that obtains corresponding message entering switch can pass through existing techniques in realizing, does not add at this and gives unnecessary details;
Step S1022: search the list item that whether contains corresponding current application sign in the application identities exchange end oral thermometer according to the current application sign, if not, get into step S1023a, if get into step S1023b;
Step S1023a: the source port number of current application sign, message is added in the application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item; Wherein, Switch ports themselves is number corresponding in the source port number of message and the application identities exchange end oral thermometer, just with the source port number of message in return the machine port numbers add the correspondence position in the application identities exchange end oral thermometer to;
Step S 1023b: whether the switch ports themselves of judging corresponding current application sign in the application identities exchange end oral thermometer number is the source port number of message, if not, gets into step S1024;
Step S1024: the switch ports themselves number that upgrades corresponding current application sign in the application identities exchange end oral thermometer with the source port number of message.
In a preferred embodiment, the application identities in the analytic message among the step S1021 specifically can comprise the steps:
Step S10211: the 13,14 byte of resolving the message that receives gets into step S10212 as ethernet type; Frame structure according to GOSSE message, SV message among Fig. 1 can be known; Preceding 12 bytes are represented destination address and source address, and the 13,14 or the 17,18 byte just represent ethernet type, at this; At first resolve the 13,14 byte as ethernet type, promptly current ethernet type is the parsing content of the 13,14 byte;
Step S10212: judge whether ethernet type is first ethernet type, if get into step S10213; If not; Get into step S10214, wherein, judge whether to be that first ethernet type judges promptly whether the corresponding byte of ethernet type is 0x8100; If then explain and contain VLAN ID in the message;
Step S10213: the 17, ten Eight characters joint of resolving current message gets into step S10214 as ethernet type, and at this moment, current ethernet type is the parsing content of the 17, ten Eight characters joint;
Step S 10214: judge whether ethernet type is second ethernet type or three-ethernet type; If two bytes of byte back of then resolving corresponding ethernet type in the current message are as application identities, promptly resolve two bytes after second ethernet type and then or the corresponding byte of three-ethernet type; Wherein, Judge whether ethernet type is that second ethernet type or three-ethernet type judge promptly whether the corresponding byte of ethernet type is 0x88B8 or 0x88BA because no matter whether contain VLAN ID in the message, two bytes after the corresponding byte of 0x88B8 or 0x88BA all corresponding application identities; If not; Process ends then, promptly current message neither the SV message neither the GOSSE message.
On the other hand, application identities allocation list and application identities switching port table generation intelligent electronic device port table can specifically comprise following content:
After step S1023a accomplishes; Can be identified at according to current application and search corresponding intelligent electronic device title, intelligent electronic device port title in the application identities allocation list; And add current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, message source port to the intelligent electronic device port table as new intelligent electronic device port table list item information; Promptly after having added new list item in the table 2, also add new list item in the table 3 accordingly;
After step S1024 accomplishes,, promptly after having upgraded certain bar list item item in the table 2, also upgrade corresponding list item in the table 3 accordingly with the list item information of corresponding current application sign in the source port number renewal smart electronics port table of message;
When the result of determination of step S1023b when being; Perhaps when with current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, when the message source port adds the intelligent electronic device port table to as new intelligent electronic device port table list item information; Perhaps when the source port number with message upgrades the list item of corresponding current application sign in the smart electronics port table, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
In addition; Because the message that sends less than corresponding intelligent electronic device possibly appear checking and accepting for a long time in the influence of chain rupture or aging mechanism, switch, at this moment; Need the corresponding list item in the corresponding deletion intelligent electronic device port table; Be specially: when the be connected disconnection of switch with the intelligent electronic device port, when promptly chain rupture occurring, the list item information corresponding in the deletion intelligent electronic device port table with this intelligent electronic device port; Also perhaps when the list item information that detects in the intelligent electronic device port table; If an above list item information in the intelligent electronic device port table is not refreshed in Preset Time; Then delete list item information corresponding in the intelligent electronic device port table; Wherein, Preset Time can design according to actual conditions, as selects two cycles (the cycle card can be made as 60 seconds but also be not limited to 60 seconds).
Embodiment 2
According to the switch of the invention described above to the automatic learning method of intelligent electronic device port; The present invention also provides a kind of switch to the automatic learning system of intelligent electronic device port, below is elaborated with regard to the embodiment of switch of the present invention to the automatic learning system of intelligent electronic device port.
Referring to shown in Figure 3, be switch of the present invention to the automatic learning system embodiment sketch map of intelligent electronic device port, it comprises:
SCD document analysis module 201 is used to resolve the SCD file and generates the application identities allocation list, preserves the tabulation of application identities, intelligent electronic device title, intelligent electronic device port title in the said application identities allocation list list item; And the application identities allocation list is transferred to intelligent electronic device port table generation module 203; The structure of application identities allocation list is referring to shown in the table 1, table 1 just for the ease of image understand the application identities allocation list, and be not construed as limiting the invention; Can know by table 1; Comprise contents such as application identities, intelligent electronic device title, intelligent electronic device port title in the table, each application identities corresponding an intelligent electronic device port title, accordingly each application identities also corresponding an intelligent electronic device title; That is to say; After having confirmed a certain application identities, in table 1, can inquire intelligent electronic device and intelligent electronic device port that should application identities, and intelligent electronic device and intelligent electronic device port all are unique;
Packet parsing module 202; Be used for the message that real time parsing gets into each port of switch and generate application identities exchange end oral thermometer, preserve the tabulation of application identities and switch ports themselves number in the said application identities exchange end oral thermometer list item, and application identities exchange end oral thermometer is transferred to intelligent electronic device port table generation module 203; Wherein, Unique switch ports themselves of correspondence of each application identities number in the application identities exchange end oral thermometer that is to say in case from message, parse application identities, just can know the switch ports themselves number of this message of reception; The structure of application identities exchange end oral thermometer is referring to shown in the table 2; Table 2 just for the ease of image understand application identities exchange end oral thermometer, and be not construed as limiting the invention, the switch ports themselves in the table 2 number is the port numbers that this message gets into switch; Switch dynamically generates and maintenance application sign exchange end oral thermometer through real-time analytic message (comprising GOOSE message, SV message etc.);
Intelligent electronic device port table generation module 203; Be used for obtaining the intelligent electronic device port table through application identities allocation list and application identities exchange end oral thermometer; The tabulation of preserving application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the said intelligent electronic device port table list item is equivalent to the content in table 1 and the table 2 is integrated formation table 3; Table 3 is just understood the intelligent electronic device port table for the ease of image; And be not construed as limiting the invention; Comprised the tabulation of contents such as application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the table 3; In case parse its entrained application identities in the message, just can know the intelligent electronic device and the intelligent electronic device corresponding port of the switch ports themselves number that receives this message and this message of transmission, promptly realized the learning ability of switch to the intelligent electronic device port.
In view of the above; According to the scheme in the present embodiment; Through application identities exchange end oral thermometer that analytic message is obtained with resolve application identities allocation list that the SCD file obtains and combine one of formation to contain the intelligent electronic device port table of information such as application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title; This table can react the mapping relations of each port of each port of switch and intelligent electronic device clearly; Realized the learning ability of switch to the intelligent electronic device port, simultaneously, the operations staff can check message subscribing relationship in the network through intelligent electronic device end table.
In a preferred embodiment, packet parsing module 202 can comprise:
Application identities resolution unit 301 is used for the application identities of analytic message;
Switch ports themselves acquiring unit 302 is used to obtain the source port number that corresponding message gets into message;
Search unit 303, be used for searching the list item whether application identities exchange end oral thermometer contains corresponding current application sign according to the current application sign;
First adding device 304; Be used for when the lookup result of searching unit 303 for not the time; Then the source port number with current application sign, message adds in the application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item; Wherein, switch ports themselves is number corresponding in the source port number of message and the application identities exchange end oral thermometer, just with the source port number of message in return the machine port numbers add the correspondence position in the application identities exchange end oral thermometer to;
First judging unit 305, be used for when the lookup result of searching the unit when being, judge whether the switch ports themselves of corresponding current application sign in the application identities exchange end oral thermometer number is the source port number of message;
First updating block 306, be used for when the result of determination of first judging unit for not the time, upgrade corresponding current application identifies in the application identities exchange end oral thermometer switch ports themselves number with the source port number of message.
Wherein, above-mentioned application identities resolution unit 301 can further include:
The first byte resolution unit 401 is used for resolving the 13,14 byte of message of receiving as ethernet type, and ethernet type is transferred to second judging unit;
Second judging unit 402 is used to judge whether ethernet type is first ethernet type, wherein, judges whether to be that first ethernet type judges promptly whether the corresponding byte of ethernet type is 0x8100, if then explain and contain VLAN ID in the message;
The second byte resolution unit 403, be used for when the result of determination of second judging unit 403 when being, the 17, ten Eight characters joint of analytic message is as ethernet type, and analysis result is transferred to the 3rd judging unit 403;
The 3rd judging unit 404; Be used for when the result of determination of second judging unit 402 for not the time; Perhaps after the 17, ten Eight characters of the second byte resolution unit, 403 completion analytic messages save as ethernet type; Judge whether ethernet type is second ethernet type or three-ethernet type, will judge just whether the corresponding byte of ethernet type is 0x88B8 or 0x88BA;
The 3rd byte resolution unit 405; Be used for when the result of determination of the 3rd judging unit 404 when being;, wherein, two bytes in the analytic message after the byte of corresponding ethernet type are as application identities; Be because no matter whether contain VLAN ID in the message, two bytes after the corresponding byte of second ethernet type or three-ethernet type all corresponding application identities.
On the other hand, intelligent electronic device port table generation module 203 can specifically comprise:
Second adding device 501; Be used for behind the first adding device 304 application identities exchange end oral thermometer that the source port number of current application sign, message is new as new application identities exchange end oral thermometer list item information interpolation; Be identified at intelligent electronic device title, the intelligent electronic device port title of searching correspondence in the application identities allocation list according to current application, and add current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, message source port to the intelligent electronic device port table as new intelligent electronic device port table list item information;
Second updating block 502; Be used for after the source port number of first updating block, 306 usefulness messages upgrades the switch ports themselves number of the corresponding current application sign of application identities exchange end oral thermometer, upgrade the list item information that corresponding current application identifies in the smart electronics port table with the source port number of message;
Refresh unit 503; Be used for when the result of determination of first judging unit 305 when being; Perhaps when second adding device 501 with current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, when the message source port adds the intelligent electronic device port table to as new intelligent electronic device port table list item information; Perhaps when the source port number of second updating block, 502 usefulness messages upgrades the list item of corresponding current application sign in the smart electronics port table, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
In addition, because the influence of chain rupture or aging mechanism, the message that sends less than corresponding intelligent electronic device possibly appear checking and accepting for a long time in switch; At this moment; Need the corresponding list item in the corresponding deletion intelligent electronic device port table, therefore, in a preferred embodiment; Switch of the present invention is to the automatic learning system of intelligent electronic device port; Can also comprise first delete cells, be used for, the list item information corresponding in the deletion intelligent electronic device port table with this intelligent electronic device port when the disconnection that is connected of switch with the intelligent electronic device port; Can also comprise second delete cells; Be used for detecting the list item information of intelligent electronic device port table; If an above list item information in the intelligent electronic device port table is not refreshed in Preset Time, then delete list item information corresponding in the intelligent electronic device port table, wherein; First delete cells and second delete cells can be placed on separately in the system; Also can be placed on jointly in the system, Preset Time can design according to actual conditions, as selects two cycles (the cycle card can be made as 60 seconds but also be not limited to 60 seconds).
The above embodiment has only expressed several kinds of execution modes of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with accompanying claims.

Claims (10)

1. a switch is characterized in that the automatic learning method of intelligent electronic device port, comprises the steps:
Resolve the SCD file and generate the application identities allocation list, preserve the tabulation of application identities, intelligent electronic device title, intelligent electronic device port title in the said application identities allocation list list item;
The message that real time parsing gets into each port of switch generates application identities exchange end oral thermometer, preserves the tabulation of application identities, switch ports themselves number in the said application identities exchange end oral thermometer list item;
Generate the intelligent electronic device port table through application identities allocation list and application identities switching port table, preserve the tabulation of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the said intelligent electronic device port table list item.
2. switch according to claim 1 is characterized in that to the automatic learning method of intelligent electronic device port the message generation application identities exchange end oral thermometer that said real time parsing gets into each port of switch comprises the steps:
Application identities in the analytic message, and obtain the source port of the port of this message entering switch as message;
Search the list item that whether contains corresponding current application sign in the application identities exchange end oral thermometer according to the current application sign;
If not, then the source port number with current application sign, message adds in the application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item, and wherein switch ports themselves is number corresponding in the source port number of message and the application identities exchange end oral thermometer;
If judge then whether the switch ports themselves of corresponding current application sign in the application identities exchange end oral thermometer number is the source port number of message;
If result of determination is not for, then upgrade corresponding current application identifies in the application identities exchange end oral thermometer switch ports themselves number with the source port number of message.
3. switch according to claim 2 is characterized in that to the automatic learning method of intelligent electronic device port the application identities in the said analytic message comprises the steps:
The 13,14 byte of the message that parsing receives is as ethernet type;
Judge whether ethernet type is first ethernet type;
If first ethernet type, the 17, ten Eight characters joint of then resolving current message be as judging behind the ethernet type whether ethernet type is second ethernet type or three-ethernet type again,
If not first ethernet type judges directly then whether ethernet type is second ethernet type or three-ethernet type;
If second ethernet type or three-ethernet type, two bytes of byte back of then resolving corresponding ethernet type in the current message are as application identities.
According to claim 2 or 3 described switches to the automatic learning method of intelligent electronic device port, it is characterized in that, saidly generate the intelligent electronic device port table through application identities allocation list and application identities switching port table and comprise:
After the source port number with current application sign, message adds in the new application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item information; Be identified at intelligent electronic device title, the intelligent electronic device port title of searching correspondence in the application identities allocation list according to current application, and add current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, message source port to the intelligent electronic device port table as new intelligent electronic device port table list item information;
Behind the switch ports themselves that upgrades corresponding current application sign in the application identities exchange end oral thermometer with the source port number of message number, upgrade corresponding current application identifies in the smart electronics port table switch ports themselves number with the source port number of message;
When the switch ports themselves of corresponding current application sign in the application identities exchange end oral thermometer number is the source port number of message; Perhaps when with current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, when the message source port adds the intelligent electronic device port table to as new intelligent electronic device port table list item information; Perhaps when the source port number with message upgrades the switch ports themselves of corresponding current application sign in the smart electronics port table, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
5. switch according to claim 4 is characterized in that the automatic learning method of intelligent electronic device port, also comprises step:
When detect switch and intelligent electronic device port be connected the information of breaking off the time, the list item information corresponding in the deletion intelligent electronic device port table with this intelligent electronic device port;
Perhaps/with
Detect the list item information in the intelligent electronic device port table,, then delete list item information corresponding in the intelligent electronic device port table if an above list item information in the intelligent electronic device port table is not refreshed in Preset Time.
6. a switch is characterized in that the automatic learning system of intelligent electronic device port, comprising:
SCD document analysis module; Be used to resolve the SCD file and generate the application identities allocation list; Preserve the tabulation of application identities, intelligent electronic device title, intelligent electronic device port title in the said application identities allocation list list item, and the application identities allocation list is transferred to intelligent electronic device port table generation module;
The packet parsing module; Be used for the message generation application identities exchange end oral thermometer that real time parsing gets into each port of switch; Preserve the tabulation of application identities, switch ports themselves number in the said application identities exchange end oral thermometer list item, and application identities exchange end oral thermometer is transferred to intelligent electronic device port table generation module;
Intelligent electronic device port table generation module; Be used for obtaining the intelligent electronic device port table, preserve the tabulation of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title in the said intelligent electronic device port table list item through application identities allocation list and application identities exchange end oral thermometer.
7. switch according to claim 6 is characterized in that to the automatic learning system of intelligent electronic device port said packet parsing module comprises:
The application identities resolution unit is used for the application identities of analytic message;
The switch ports themselves acquiring unit is used to obtain message and gets into the source port of the port of switch as message;
Search the unit, be used for searching the list item whether application identities exchange end oral thermometer contains corresponding current application sign according to the current application sign;
First adding device; Be used for when the lookup result of searching the unit for not the time; The source port number of current application sign, message is added in the application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item; Wherein, switch ports themselves is number corresponding in the source port number of message and the application identities exchange end oral thermometer;
First judging unit, be used for when the lookup result of searching the unit when being, judge whether the switch ports themselves of corresponding current application sign in the application identities exchange end oral thermometer number is the source port number of message;
First updating block, be used for when the result of determination of first judging unit for not the time, upgrade corresponding current application identifies in the application identities exchange end oral thermometer switch ports themselves number with the source port number of message.
8. switch according to claim 7 is characterized in that to the automatic learning system of intelligent electronic device port said application identities resolution unit comprises:
The first byte resolution unit is used for resolving the 13,14 byte of message of receiving as ethernet type, and ethernet type is transferred to second judging unit;
Second judging unit is used to judge whether ethernet type is first ethernet type;
The second byte resolution unit, be used for when the result of determination of second judging unit when being, the 17, ten Eight characters joint of analytic message is as ethernet type, and analysis result is transferred to the 3rd judging unit;
The 3rd judging unit; Be used for when the result of determination of second judging unit for not the time; Perhaps after the 17, ten Eight characters of second byte resolution unit completion analytic message save as ethernet type, judge whether ethernet type is second ethernet type or three-ethernet type;
The 3rd byte resolution unit, be used for when the result of determination of the 3rd judging unit when being, two bytes in the analytic message after the byte of corresponding ethernet type are as application identities.
According to claim 7 or 8 described switches to the automatic learning system of intelligent electronic device port, it is characterized in that said intelligent electronic device port table generation module comprises:
Second adding device; Be used for behind first adding device application identities exchange end oral thermometer that the source port number of current application sign, message is new as new application identities exchange end oral thermometer list item information interpolation; Be identified at intelligent electronic device title, the intelligent electronic device port title of searching correspondence in the application identities allocation list according to current application, and add current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, message source port to the intelligent electronic device port table as new intelligent electronic device port table list item information;
Second updating block; Be used for when first updating block upgrades the switch ports themselves number of the corresponding current application sign of application identities exchange end oral thermometer with the source port number of message after, upgrade corresponding current application identifies in the smart electronics port table switch ports themselves number with the source port number of message;
Refresh unit; Be used for when the result of determination of first judging unit when being; Perhaps when second adding device with current application sign, the current intelligent electronic device title that finds, the current intelligent electronic device port title that finds, when the message source port adds the intelligent electronic device port table to as new intelligent electronic device port table list item information; Perhaps when second updating block upgrades the switch ports themselves of corresponding current application sign in the smart electronics port table with the source port number of message, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
10. switch according to claim 9 is characterized in that also comprising step to the automatic learning system of intelligent electronic device port:
Also comprise first delete cells, be used to detect switch and intelligent electronic device port be connected the information of breaking off the time, the list item information corresponding in the deletion intelligent electronic device port table with this intelligent electronic device port;
Perhaps/with
Also comprise second delete cells; Be used for detecting the list item information of intelligent electronic device port table; If an above list item information in the intelligent electronic device port table is not refreshed in Preset Time, then delete list item information corresponding in the intelligent electronic device port table.
CN201210107205.0A 2012-04-12 2012-04-12 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports Active CN102624943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210107205.0A CN102624943B (en) 2012-04-12 2012-04-12 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210107205.0A CN102624943B (en) 2012-04-12 2012-04-12 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports

Publications (2)

Publication Number Publication Date
CN102624943A true CN102624943A (en) 2012-08-01
CN102624943B CN102624943B (en) 2014-09-17

Family

ID=46564623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210107205.0A Active CN102624943B (en) 2012-04-12 2012-04-12 Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports

Country Status (1)

Country Link
CN (1) CN102624943B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333536A (en) * 2014-10-17 2015-02-04 广州供电局有限公司 Message forwarding method and device for intelligent substation simulation training system
CN105281933A (en) * 2014-06-24 2016-01-27 广西电网公司 Network message learning method and device
CN106452891A (en) * 2016-10-25 2017-02-22 北京博维亚讯技术有限公司 SCD file based VLAN automatic configuration method and device, and switch
CN107835091A (en) * 2017-09-29 2018-03-23 中国电力科学研究院 The process-level network data parameters optimization method and system of a kind of intelligent substation
CN109587025A (en) * 2018-10-19 2019-04-05 国网四川省电力公司电力科学研究院 A kind of intelligent substation switch of port self study
CN110138616A (en) * 2019-05-22 2019-08-16 国电南瑞南京控制系统有限公司 A kind of intelligent substation switch IED facility information learning method
CN111030951A (en) * 2019-11-11 2020-04-17 国电南瑞南京控制系统有限公司 Learning system and method for IED equipment in intelligent substation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043356A (en) * 2006-05-19 2007-09-26 华为技术有限公司 Method for preventing MAC address cheat
CN101409463A (en) * 2008-12-02 2009-04-15 江西省电力科学研究院 Protection and video system gang control method for electric power system digitalization transforming plant
CN101488862A (en) * 2009-02-23 2009-07-22 中兴通讯股份有限公司 Distributed Ethernet switch and internal MAC address maintaining method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043356A (en) * 2006-05-19 2007-09-26 华为技术有限公司 Method for preventing MAC address cheat
CN101409463A (en) * 2008-12-02 2009-04-15 江西省电力科学研究院 Protection and video system gang control method for electric power system digitalization transforming plant
CN101488862A (en) * 2009-02-23 2009-07-22 中兴通讯股份有限公司 Distributed Ethernet switch and internal MAC address maintaining method thereof

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281933A (en) * 2014-06-24 2016-01-27 广西电网公司 Network message learning method and device
CN104333536A (en) * 2014-10-17 2015-02-04 广州供电局有限公司 Message forwarding method and device for intelligent substation simulation training system
CN104333536B (en) * 2014-10-17 2018-02-13 广州供电局有限公司 A kind of message forwarding method and device of intelligent substation simulation training system
CN106452891A (en) * 2016-10-25 2017-02-22 北京博维亚讯技术有限公司 SCD file based VLAN automatic configuration method and device, and switch
CN106452891B (en) * 2016-10-25 2019-04-02 北京博维亚讯技术有限公司 VLAN method of automatic configuration, device and interchanger based on SCD file
CN107835091A (en) * 2017-09-29 2018-03-23 中国电力科学研究院 The process-level network data parameters optimization method and system of a kind of intelligent substation
CN107835091B (en) * 2017-09-29 2021-08-20 中国电力科学研究院 Method and system for optimizing process layer network data parameters of intelligent substation
CN109587025A (en) * 2018-10-19 2019-04-05 国网四川省电力公司电力科学研究院 A kind of intelligent substation switch of port self study
CN109587025B (en) * 2018-10-19 2020-10-27 国网四川省电力公司电力科学研究院 Port self-learning intelligent substation switch
CN110138616A (en) * 2019-05-22 2019-08-16 国电南瑞南京控制系统有限公司 A kind of intelligent substation switch IED facility information learning method
CN111030951A (en) * 2019-11-11 2020-04-17 国电南瑞南京控制系统有限公司 Learning system and method for IED equipment in intelligent substation

Also Published As

Publication number Publication date
CN102624943B (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN102624943B (en) Method and system for ensuring switch to carry out automatic learning on intelligent electronic equipment ports
US10609550B2 (en) Multi-device monitoring and control using intelligent device channel sharing
CN101951597B (en) Method, device and system for communicating among different types of networks
CN102752224B (en) Switch message forwarding method and device
AU2012253078A1 (en) Data acquisition concentrator and data acquisition method
CN106134133B (en) Tunneling time critical messages between substations over WAN
CN108769943B (en) Method and system for establishing power utilization information acquisition network by mixing multiple communication modes
CN106254381A (en) Protocol analysis method, device and comprise the Layer2 switching system of protocol analysis device
CN103329488A (en) Network system and method of controlling path
CN102694855A (en) Meteorological disaster early warning information publishing system and method on basis of Beidou satellite
CN107612590A (en) A kind of power line carrier and wireless MAC layer mixed networking methods
CN103647717A (en) Message accurate recognition-based substation communication network deterministic path switching method
CN103780425A (en) A method and a controller device for configuring a software-defined network
CN104734947A (en) Single-fiber interconnection type home gateway
CN101778035B (en) Virtual private LAN service communication method and device
CN102347889A (en) Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service)
CN104065160B (en) Exception message processing method in a kind of electric power system
CN102497017A (en) Power grid failure information comprehensive collection platform and collection method
CN105227403B (en) A kind of OpenStack network flow monitoring methods
CN103646524A (en) Communication method of double-mode local communication module device of electric energy meter
CN103107932B (en) Establish the method and device in MAC IN MAC tunnels
CN102025598A (en) Method for updating local mapping table of access router, and local access router
CN112073326B (en) Intelligent substation process layer network data flow control method
CN107800465A (en) A kind of electric line carrier communication transmission method
CN110798862B (en) Method and device for transmitting data between service terminal and service master station

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant