CN102624943B - 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
CN102624943B
CN102624943B CN201210107205.0A CN201210107205A CN102624943B CN 102624943 B CN102624943 B CN 102624943B CN 201210107205 A CN201210107205 A CN 201210107205A CN 102624943 B CN102624943 B CN 102624943B
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.)
Active
Application number
CN201210107205.0A
Other languages
Chinese (zh)
Other versions
CN102624943A (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

Landscapes

  • Small-Scale Networks (AREA)

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 intelligent electronic device port Auto-learning Method and system
Technical field
The present invention relates to power technology field, particularly a kind of switch is to intelligent electronic device port Auto-learning Method and system.
Background technology
Along with the develop rapidly of the day by day huge and network communications technology of electrical network scale, intelligent substation is the important impetus of intelligent grid development as a technical field in the ascendant.Intelligent substation is based on ethernet communication technology for providing higher levels of information sharing degree between primary equipment and secondary device and secondary device, and Ethernet switch builds the nucleus equipment of Ethernet just.Each port of Ethernet switch is directly connected with the equipment in a network, and be generally all operated in full duplex mode.Exchange function is communicated with many to port simultaneously, makes the network equipment of every a pair of mutual communication can carry out ensuring escapement from confliction transmission data.
General, switch is by resolving and form mac address table to realize learning functionality to source address, but, this mac address table can only be mapped the MAC Address of the port of switch and intelligent electronic device, and cannot show the corresponding relation between each port of switch and each port of intelligent electronic device, nor be beneficial to operations staff's checking for message subscribing relationship in network.
Summary of the invention
The object of the invention is to overcome the shortcoming and defect of above-mentioned prior art, propose a kind of switch to intelligent electronic device port Auto-learning Method and system, for switch, realize more application functions basis is provided.
Object of the present invention is achieved through the following technical solutions:
Switch, to an intelligent electronic device port Auto-learning Method, comprises the steps:
Resolve substation configuration description (SCD) file generated application identities allocation list, in described application identities allocation list list item, preserve the list of application identities, intelligent electronic device title, intelligent electronic device port title;
The message that real time parsing enters each port of switch generates application identities exchange end oral thermometer, preserves the list of application identities, switch ports themselves number in described application identities exchange end oral thermometer list item;
By application identities allocation list and application identities switching port table, generate intelligent electronic device port table, in described intelligent electronic device port table list item, preserve the list of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title.
Switch, to an intelligent electronic device port automatic learning system, comprising:
SCD document analysis module, be used for resolving substation configuration description (SCD) file generated application identities allocation list, in described application identities allocation list list item, preserve the list of application identities, intelligent electronic device title, intelligent electronic device port title, and application identities allocation list is transferred to intelligent electronic device port table generation module;
Packet parsing module, the message that enters each port of switch for real time parsing generates application identities exchange end oral thermometer, in described application identities exchange end oral thermometer list item, preserve the list of application identities, switch ports themselves number, and application identities exchange end oral thermometer is transferred to intelligent electronic device port table generation module;
Intelligent electronic device port table generation module, for obtaining intelligent electronic device port table by application identities allocation list and application identities exchange end oral thermometer, in described intelligent electronic device port table list item, preserve the list of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title.
According to the scheme in the present embodiment, by application identities exchange end oral thermometer that analytic message is obtained with resolve application identities allocation list that SCD file obtains and be combined and form an intelligent electronic device port table of containing the 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, realize the learning ability of switch to intelligent electronic device port, be beneficial to operations staff's checking for message subscribing relationship in network.
Accompanying drawing explanation
Fig. 1 is the frame structure schematic diagram of GOOSE message and SV message;
Fig. 2 is the schematic flow sheet of switch of the present invention to intelligent electronic device port Auto-learning Method embodiment;
Fig. 3 is the structural representation of switch of the present invention to intelligent electronic device port automatic learning system embodiment;
Fig. 4 is a kind of concrete structure schematic diagram of the packet parsing module in Fig. 3;
Fig. 5 is a kind of concrete structure schematic diagram of the application identities resolution unit in Fig. 4;
Fig. 6 is a kind of concrete structure schematic diagram of intelligent electronic device port table generation module in Fig. 3.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited to this.
Embodiment 1
In transformer station process layer network, switch is responsible for forwarding the message of three types altogether, to time message, GOOSE (Generic Object Oriented Substation Event, general substation event) message and SV (sampled value sampled value) message.The present embodiment is mainly based on the parsing of GOOSE message and SV message is realized to switch to intelligent electronic device port automatic learning.Shown in Figure 1, be the frame structure schematic diagram of GOOSE message and SV message, as can be known from Fig. 1, no matter be GOOSE message or SV message, front 12 bytes all represent destination address and source address.0x8100,0x88B8 and 0x88BA are ethernet type sign, 0x8100 represents that the field after this field is VLAN (VLAN) sign, 0x88B8 represents that this message is GOOSE message, and 0x88BA represents that this message is SV message, the byte that 0x88B8 or 0x88BA follow is below APPID.APPID is application identities, the application identities of GOOSE message at 0x0 between 0x3FFF, unique identification Liao Yi road GOOSE, the application identities value of SV is in 0x4000 between 0x7FFF, unique identification Liao Yi road adopted value, data are the data message that message carries, variable-length, and CRC is CRC.Also there are some GOOSE messages, SV message not to be with VLAN label, after source address, closely follow 0x88B8 or 0x88BA.
Shown in Figure 2, be the schematic flow sheet of switch of the present invention to intelligent electronic device port Auto-learning Method embodiment, it comprises step:
Step S101: resolve SCD (Substation Configuration Description, substation configuration description) file generated application identities allocation list, in described application identities allocation list list item, preserve the list of application identities, intelligent electronic device title, intelligent electronic device port title, enter step S102, wherein, SCD file is the file for intelligent substation configuration of IEC61850 definition, has contained the paragraph content such as the whole intelligent electronic devices of description intelligent substation, communication configuration and transformer station's topological structure.By the parsing of SCD file, can recognize the configuring condition of the intelligent electronic device in bed rearrangement transformer station and the message subscribing relationship between them, the structure ginseng of application identities allocation list is shown in Table 1, table 1 is just understood application identities allocation list for the ease of vivid, and be not construed as limiting the invention, as shown in Table 1, in table, comprise application identities, intelligent electronic device title, the contents such as intelligent electronic device port title, each application identities correspondence an intelligent electronic device port title, corresponding each application identities is corresponding an intelligent electronic device title also, that is to say, after having determined 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 Intelligent electronic device title Intelligent electronic device port title
? ? ?
? ? ?
Step S102: the message that real time parsing enters each port of switch generates application identities exchange end oral thermometer, in described application identities exchange end oral thermometer list item, preserve application identities, the list of switch ports themselves number, enter step S103, wherein, unique switch ports themselves number of correspondence of each application identities in application identities exchange end oral thermometer, once that is to say and parse application identities from message, just can know the switch ports themselves number that receives this message, the structure ginseng of application identities exchange end oral thermometer is shown in Table 2, table 2 is just understood application identities exchange end oral thermometer for the ease of vivid, and be not construed as limiting the invention, switch ports themselves in table 2 number is the port numbers that this message enters switch, switch (comprises GOOSE message by real-time analytic message, SV message etc.), dynamically generate and maintenance application Tag Switching port table,
Table 2 application identities exchange end oral thermometer
Application identities Switch ports themselves number
? ?
? ?
Step S103: generate intelligent electronic device port table by application identities allocation list and application identities switching port table, in described intelligent electronic device port table list item, preserve application identities, intelligent electronic device title, switch ports themselves number, the list of intelligent electronic device port title, be equivalent to the content in table 1 and table 2 to integrate formation table 3, table 3 is just understood intelligent electronic device port table for the ease of vivid, and be not construed as limiting the invention, table 3 has comprised application identities, intelligent electronic device title, switch ports themselves number, the list of the contents such as intelligent electronic device port title, once parse its entrained application identities in message, just can know and receive the port title that the switch ports themselves number of this message and the intelligent electronic device title of this message of transmission and intelligent electronic device are corresponding, realized the learning ability of switch to intelligent electronic device port.
Table 3 intelligent electronic device port table
Application identities Intelligent electronic device title Intelligent electronic device port title Switch ports themselves number
? ? ? ?
? ? ? ?
Accordingly, according to the scheme in the present embodiment, by application identities exchange end oral thermometer that analytic message is obtained with resolve application identities allocation list that SCD file obtains and be combined and form one and contain application identities, intelligent electronic device title, switch ports themselves number, the intelligent electronic device port table of the information such as 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 intelligent electronic device port, simultaneously, operations staff can check message subscribing relationship in network by intelligent electronic device end table.
In concrete enforcement, step S102 can specifically realize as follows:
Step S1021: the application identities in analytic message, and obtain this message and enter the port of switch as the source port of message, enter step S1022, wherein, obtain the port that corresponding message enters switch and can pass through existing techniques in realizing, at this, do not add and repeat;
Step S1022: search the list item that whether contains corresponding current application sign in application identities exchange end oral thermometer according to current application sign, if not, enter step S1023a, if so, enter step S1023b;
Step S1023a: the source port number of current application sign, message is added in application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item, wherein, the source port number of message and switch ports themselves in application identities exchange end oral thermometer are number corresponding, namely by the source port number of message in return machine port numbers add the correspondence position in application identities exchange end oral thermometer to;
Step S1023b: whether the switch ports themselves number that judges corresponding current application sign in application identities exchange end oral thermometer is the source port number of message, if not, enters step S1024;
Step S1024: the switch ports themselves number that upgrades corresponding current application sign in application identities exchange end oral thermometer with the source port number of message.
In a preferred embodiment, the application identities in the analytic message in step S1021, specifically can comprise the steps:
Step S10211: the 13,14 byte of resolving the message receiving enters step S10212 as ethernet type, known according to the frame structure of GOSSE message, SV message in Fig. 1, front 12 bytes represent destination address and source address, and the 13,14 or the 17,18 byte just represents ethernet type, at this, first resolve the 13,14 byte as ethernet type, current ethernet type is the parsing content of the 13,14 byte;
Step S10212: judge whether ethernet type is the first ethernet type, if, enter step S10213, if not, enter step S10214, wherein, determine whether that the first ethernet type judges whether the corresponding byte of ethernet type is 0x8100, if so, illustrate and in message, contain VLAN ID;
Step S10213: resolve the 17, ten Eight characters joints of current message as ethernet type, enter step S10214, now, current ethernet type is the parsing content of the 17, ten Eight characters joints;
Step S10214: judge whether ethernet type is the second ethernet type or three-ethernet type, if, the byte of resolving corresponding ethernet type in current message two bytes are below as application identities, resolve two bytes after the second ethernet type and then or the corresponding byte of three-ethernet type, wherein, judge whether ethernet type is that the second ethernet type or three-ethernet type judge whether the corresponding byte of ethernet type is 0x88B8 or 0x88BA, because no matter whether contain VLAN ID in message, two bytes after the corresponding byte of 0x88B8 or 0x88BA are corresponding application identities all, if not, process ends, be that current message is neither GOSSE message, neither SV 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 completes, can be identified at and in application identities allocation list, search corresponding intelligent electronic device title, intelligent electronic device port title according to current application, and as new intelligent electronic device port table list item information, add current application sign, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, message source port to intelligent electronic device port table, in table 2, added after new list item, in table 3, also added accordingly new list item;
After step S1024 completes, with the source port number of message, upgrade the list item information of corresponding current application sign in smart electronics port table, in table 2, upgraded after certain list item item, in table 3, also upgrade accordingly corresponding list item;
When the result of determination of step S1023b is when being, or when when current application sign, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, message source port add intelligent electronic device port table to as new intelligent electronic device port table list item information, or when the source port number with message upgrades the list item of corresponding current application sign in smart electronics port table, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
In addition, impact due to chain rupture or aging mechanism, may there is checking and accepting for a long time the message sending less than corresponding intelligent electronic device in switch, now, need the corresponding corresponding list item of deleting in intelligent electronic device port table, be specially: when the be connected disconnection of switch with intelligent electronic device port, when there is chain rupture, delete the list item information corresponding with this intelligent electronic device port in intelligent electronic device port table; Also the list item information or in detection intelligent electronic device port table, if more than one list item information in Preset Time in intelligent electronic device port table is not refreshed, delete list item information corresponding in intelligent electronic device port table, wherein, Preset Time can design according to actual conditions, as selects two cycles (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 intelligent electronic device port Auto-learning Method, the present invention also provides a kind of switch to intelligent electronic device port automatic learning system, below with regard to switch of the present invention, the embodiment of intelligent electronic device port automatic learning system is elaborated.
Shown in Figure 3, be switch of the present invention to intelligent electronic device port automatic learning system embodiment schematic diagram, it comprises:
SCD document analysis module 201, be used for resolving SCD file generated application identities allocation list, in described application identities allocation list list item, preserve application identities, intelligent electronic device title, the list of intelligent electronic device port title, and application identities allocation list is transferred to intelligent electronic device port table generation module 203, the structure ginseng of application identities allocation list is shown in Table 1, table 1 is just understood application identities allocation list for the ease of vivid, and be not construed as limiting the invention, as shown in Table 1, in table, comprise application identities, intelligent electronic device title, the contents such as intelligent electronic device port title, each application identities correspondence an intelligent electronic device port title, corresponding each application identities is corresponding an intelligent electronic device title also, that is to say, after having determined 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 are all unique,
Packet parsing module 202, the message that enters each port of switch for real time parsing generates application identities exchange end oral thermometer, in described application identities exchange end oral thermometer list item, preserve the list of application identities and switch ports themselves number, and application identities exchange end oral thermometer is transferred to intelligent electronic device port table generation module 203, wherein, unique switch ports themselves number of correspondence of each application identities in application identities exchange end oral thermometer, once that is to say and parse application identities from message, just can know the switch ports themselves number that receives this message, the structure ginseng of application identities exchange end oral thermometer is shown in Table 2, table 2 is just understood application identities exchange end oral thermometer for the ease of vivid, and be not construed as limiting the invention, switch ports themselves in table 2 number is the port numbers that this message enters switch, switch (comprises GOOSE message by real-time analytic message, SV message etc.), dynamically generate and maintenance application Tag Switching port table,
Intelligent electronic device port table generation module 203, for obtaining intelligent electronic device port table by application identities allocation list and application identities exchange end oral thermometer, in described intelligent electronic device port table list item, preserve application identities, intelligent electronic device title, switch ports themselves number, the list of intelligent electronic device port title is equivalent to the content in table 1 and table 2 to integrate formation table 3, table 3 is just understood intelligent electronic device port table for the ease of vivid, and be not construed as limiting the invention, table 3 has comprised application identities, intelligent electronic device title, switch ports themselves number, the list of the contents such as intelligent electronic device port title, once parse its entrained application identities in message, just can know and receive the port that the switch ports themselves number of this message and the intelligent electronic device of this message of transmission and intelligent electronic device are corresponding, realized the learning ability of switch to intelligent electronic device port.
Accordingly, according to the scheme in the present embodiment, by application identities exchange end oral thermometer that analytic message is obtained with resolve application identities allocation list that SCD file obtains and be combined and form one and contain application identities, intelligent electronic device title, switch ports themselves number, the intelligent electronic device port table of the information such as 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 intelligent electronic device port, simultaneously, operations staff can check message subscribing relationship in network by intelligent electronic device end table.
In a preferred embodiment, packet parsing module 202 can comprise:
Application identities resolution unit 301, for the application identities of analytic message;
Switch ports themselves acquiring unit 302, enters the source port number of message for obtaining corresponding message;
Search unit 303, for searching according to current application sign the list item whether application identities exchange end oral thermometer contains corresponding current application sign;
The first adding device 304, for when to search the lookup result of unit 303 be no, the source port number of current application sign, message is added in application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item, wherein, the source port number of message and switch ports themselves in application identities exchange end oral thermometer are number corresponding, namely by the source port number of message in return machine port numbers add the correspondence position in application identities exchange end oral thermometer to;
The first judging unit 305, when being, judges whether the switch ports themselves number of corresponding current application sign in application identities exchange end oral thermometer is the source port number of message for the lookup result when searching unit;
The first updating block 306, while being no for the result of determination when the first judging unit, upgrades the switch ports themselves number of corresponding current application sign in application identities exchange end oral thermometer with the source port number of message.
Wherein, above-mentioned application identities resolution unit 301 can further include:
The first byte resolution unit 401, for resolving the 13,14 byte of message of receiving as ethernet type, and is transferred to the second judging unit by ethernet type;
The second judging unit 402, for judging whether ethernet type is the first ethernet type, wherein, determines whether the first ethernet type judges whether the corresponding byte of ethernet type is 0x8100, if so, illustrates and in message, contains VLAN ID;
The second byte resolution unit 403, for the result of determination when the second judging unit 403, when being, the 17, ten Eight characters joints of analytic message are as ethernet type, and analysis result is transferred to the 3rd judging unit 403;
The 3rd judging unit 404, for when the result of determination of the second judging unit 402 is while being no, or after the 17, ten Eight characters joints that the second byte resolution unit 403 completes analytic message are as ethernet type, judge whether ethernet type is the second ethernet type or three-ethernet type, namely will judge whether the corresponding byte of ethernet type is 0x88B8 or 0x88BA;
The 3rd byte resolution unit 405, for when the result of determination of the 3rd judging unit 404 is when being, wherein, two bytes in analytic message after the byte of corresponding ethernet type are as application identities, be because no matter whether contain VLAN ID in message, two bytes after the corresponding byte of the second ethernet type or three-ethernet type are corresponding application identities all.
On the other hand, intelligent electronic device port table generation module 203 can specifically comprise:
The second adding device 501, for current application being identified when the first adding device 304, after the source port number of message adds in new application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item information, according to current application, be identified at and in application identities allocation list, search corresponding intelligent electronic device title, intelligent electronic device port title, and current application is identified, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, message source port adds intelligent electronic device port table to as new intelligent electronic device port table list item information,
The second updating block 502, for upgrading when the source port number of the first updating block 306 use messages after the switch ports themselves number of the corresponding current application sign of application identities exchange end oral thermometer, by the list item information that in the source port number renewal smart electronics port table of message, corresponding current application identifies;
Refresh unit 503, for when the result of determination of the first judging unit 305 is when being, or when the second adding device 501 identifies current application, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, when message source port adds intelligent electronic device port table to as new intelligent electronic device port table list item information, or when the source port number of the second updating block 502 use messages upgrades the list item of corresponding current application sign in smart electronics port table, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
In addition, impact due to chain rupture or aging mechanism, may there is checking and accepting for a long time the message sending less than corresponding intelligent electronic device in switch, now, need the corresponding corresponding list item of deleting in intelligent electronic device port table, therefore, in a preferred embodiment, switch of the present invention is to intelligent electronic device port automatic learning system, can also comprise the first delete cells, for when the be connected disconnection of switch with intelligent electronic device port, delete the list item information corresponding with this intelligent electronic device port in intelligent electronic device port table; Can also comprise the second delete cells, for detection of the list item information in intelligent electronic device port table, if more than one list item information in Preset Time in intelligent electronic device port table is not refreshed, delete list item information corresponding in intelligent electronic device port table, wherein, the first delete cells and the second delete cells can be placed on separately in a system, also can jointly be placed in a system, Preset Time can design according to actual conditions, as selects two cycles (cycle card can be made as 60 seconds but also be not limited to 60 seconds).
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, 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 claims.

Claims (10)

1. switch, to an intelligent electronic device port Auto-learning Method, is characterized in that, comprises the steps:
Resolve substation configuration description (SCD) file generated application identities allocation list, in described application identities allocation list list item, preserve the list of application identities, intelligent electronic device title, intelligent electronic device port title;
The message that real time parsing enters each port of switch generates application identities exchange end oral thermometer, preserves the list of application identities, switch ports themselves number in described application identities exchange end oral thermometer list item;
By application identities allocation list and application identities switching port table, generate intelligent electronic device port table, in described intelligent electronic device port table list item, preserve the list of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title.
2. switch according to claim 1, to intelligent electronic device port Auto-learning Method, is characterized in that, the message generation application identities exchange end oral thermometer that described real time parsing enters each port of switch comprises the steps:
Application identities in analytic message, and obtain this message and enter the port of switch as the source port of message;
According to current application sign, search the list item that whether contains corresponding current application sign in application identities exchange end oral thermometer;
If not, the source port number of current application sign, message is added in application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item, wherein the source port number of message and switch ports themselves in application identities exchange end oral thermometer are number corresponding;
Whether the switch ports themselves number that if so, judges corresponding current application sign in application identities exchange end oral thermometer is the source port number of message;
If result of determination is no, with the source port number of message, upgrade the switch ports themselves number of corresponding current application sign in application identities exchange end oral thermometer.
3. switch according to claim 2, to intelligent electronic device port Auto-learning Method, is characterized in that, the application identities in described analytic message comprises the steps:
The 13,14 byte of the message that parsing receives is as ethernet type;
Judge whether the corresponding byte of ethernet type is 0x8100;
If 0x8100, resolves the 17, ten Eight characters joints of current message as judging after ethernet type whether the corresponding byte of ethernet type is 0x88B8 or 0x88BA again,
If not 0x8100 directly judges whether the corresponding byte of ethernet type is 0x88B8 or 0x88BA;
If 0x88B8 or 0x88BA, the byte of resolving corresponding ethernet type in current message two bytes are below as application identities.
According to the switch described in claim 2 or 3 to intelligent electronic device port Auto-learning Method, it is characterized in that, describedly by application identities allocation list and application identities switching port table, generate intelligent electronic device port table and comprise:
When using the source port number of current application sign, message after new application identities exchange end oral thermometer list item information is added in new application identities exchange end oral thermometer, according to current application, be identified at and in application identities allocation list, search corresponding intelligent electronic device title, intelligent electronic device port title, and as new intelligent electronic device port table list item information, add current application sign, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, message source port to intelligent electronic device port table;
When upgrade the switch ports themselves number of corresponding current application sign in application identities exchange end oral thermometer with the source port number of message after, with the source port number of message, upgrade the switch ports themselves number of corresponding current application sign in smart electronics port table;
When in application identities exchange end oral thermometer, the switch ports themselves number of corresponding current application sign is the source port number of message, or when current application is identified, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, when message source port adds intelligent electronic device port table to as new intelligent electronic device port table list item information, or when the source port number with message upgrades the switch ports themselves of corresponding current application sign in smart electronics port table, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
5. switch according to claim 4, to intelligent electronic device port Auto-learning Method, is characterized in that, also comprises step:
When detect switch and intelligent electronic device port be connected the information disconnecting time, delete the list item information corresponding with this intelligent electronic device port in intelligent electronic device port table;
Or
Detect the list item information in intelligent electronic device port table, if more than one list item information in Preset Time in intelligent electronic device port table is not refreshed, delete list item information corresponding in intelligent electronic device port table.
6. switch, to an intelligent electronic device port automatic learning system, is characterized in that, comprising:
SCD document analysis module, be used for resolving substation configuration description (SCD) file generated application identities allocation list, in described application identities allocation list list item, preserve the list of application identities, intelligent electronic device title, intelligent electronic device port title, and application identities allocation list is transferred to intelligent electronic device port table generation module;
Packet parsing module, the message that enters each port of switch for real time parsing generates application identities exchange end oral thermometer, in described application identities exchange end oral thermometer list item, preserve the list of application identities, switch ports themselves number, and application identities exchange end oral thermometer is transferred to intelligent electronic device port table generation module;
Intelligent electronic device port table generation module, for obtaining intelligent electronic device port table by application identities allocation list and application identities exchange end oral thermometer, in described intelligent electronic device port table list item, preserve the list of application identities, intelligent electronic device title, switch ports themselves number, intelligent electronic device port title.
7. switch according to claim 6, to intelligent electronic device port automatic learning system, is characterized in that, described packet parsing module comprises:
Application identities resolution unit, for the application identities of analytic message;
Switch ports themselves acquiring unit, enters the port of switch as the source port of message for obtaining message;
Search unit, for searching according to current application sign the list item whether application identities exchange end oral thermometer contains corresponding current application sign;
The first adding device, for when to search the lookup result of unit be no, the source port number of current application sign, message is added in application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item, wherein, the source port number of message and switch ports themselves in application identities exchange end oral thermometer are number corresponding;
The first judging unit, when being, judges whether the switch ports themselves number of corresponding current application sign in application identities exchange end oral thermometer is the source port number of message for the lookup result when searching unit;
The first updating block, while being no for the result of determination when the first judging unit, upgrades the switch ports themselves number of corresponding current application sign in application identities exchange end oral thermometer with the source port number of message.
8. switch according to claim 7, to intelligent electronic device port automatic learning system, is characterized in that, described application identities resolution unit comprises:
The first byte resolution unit, for resolving the 13,14 byte of message of receiving as ethernet type, and is transferred to the second judging unit by ethernet type;
The second judging unit, for judging whether the corresponding byte of ethernet type is 0x8100;
The second byte resolution unit, for the result of determination when the second judging unit, when being, the 17, ten Eight characters joints of analytic message are as ethernet type, and analysis result is transferred to the 3rd judging unit;
The 3rd judging unit, for when the result of determination of the second judging unit is while being no, or after the 17, ten Eight characters joints that the second byte resolution unit completes analytic message are as ethernet type, judge whether ethernet type correspondence byte is 0x88B8 or 0x88BA;
The 3rd byte resolution unit, for the result of determination when the 3rd judging unit, when being, two bytes in analytic message after the byte of corresponding ethernet type are as application identities.
According to the switch described in claim 7 or 8 to intelligent electronic device port automatic learning system, it is characterized in that, described intelligent electronic device port table generation module comprises:
The second adding device, for current application being identified when the first adding device, after the source port number of message adds in new application identities exchange end oral thermometer as new application identities exchange end oral thermometer list item information, according to current application, be identified at and in application identities allocation list, search corresponding intelligent electronic device title, intelligent electronic device port title, and current application is identified, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, message source port adds intelligent electronic device port table to as new intelligent electronic device port table list item information,
The second updating block, for upgrading with the source port number of message when the first updating block after 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, upgrade the switch ports themselves number that in smart electronics port table, corresponding current application identifies;
Refresh unit, for when the result of determination of the first judging unit is when being, or when the second adding device is when current application sign, the current intelligent electronic device title finding, the current intelligent electronic device port title finding, message source port add intelligent electronic device port table to as new intelligent electronic device port table list item information, or when the second updating block uses the source port number of message to upgrade the switch ports themselves of corresponding current application sign in smart electronics port table, refresh application identities exchange end oral thermometer and intelligent electronic device port table.
10. switch according to claim 9, to intelligent electronic device port automatic learning system, characterized by further comprising step:
Also comprise the first delete cells, for detection of to switch and intelligent electronic device port be connected the information disconnecting time, the list item information corresponding with this intelligent electronic device port in deletion intelligent electronic device port table;
Or
Also comprise the second delete cells, for detection of the list item information in intelligent electronic device port table, if more than one list item information in Preset Time in intelligent electronic device port table is not refreshed, delete list item information corresponding in 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 CN102624943A (en) 2012-08-01
CN102624943B true 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)

Families Citing this family (7)

* 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
CN104333536B (en) * 2014-10-17 2018-02-13 广州供电局有限公司 A kind of message forwarding method and device of intelligent substation simulation training system
CN106452891B (en) * 2016-10-25 2019-04-02 北京博维亚讯技术有限公司 VLAN method of automatic configuration, device and interchanger based on SCD file
CN107835091B (en) * 2017-09-29 2021-08-20 中国电力科学研究院 Method and system for optimizing process layer network data parameters of intelligent substation
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

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

Also Published As

Publication number Publication date
CN102624943A (en) 2012-08-01

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
CN103904779B (en) A kind of full station intelligent terminal analogue means of intelligent substation and using method thereof
AU2012253078B2 (en) Data acquisition concentrator and data acquisition method
CN102752224B (en) Switch message forwarding method and device
CN101951597B (en) Method, device and system for communicating among different types of networks
CN106254381A (en) Protocol analysis method, device and comprise the Layer2 switching system of protocol analysis device
CN103647717A (en) Message accurate recognition-based substation communication network deterministic path switching method
CN104954218A (en) Distributed virtual switching device and forwarding method
CN106408207A (en) Modeling method and system for secondary virtual loop of intelligent substation
CN102694855A (en) Meteorological disaster early warning information publishing system and method on basis of Beidou satellite
CN104065160B (en) Exception message processing method in a kind of electric power system
CN108769943A (en) Communication hybrid building power information acquires the method and system of network
CN102185711A (en) Method and equipment for detecting link failure in hybrid network
CN104598863A (en) Optical cable and fiber core loop display method based on intelligent label
CN103780425A (en) A method and a controller device for configuring a software-defined network
CN104717104B (en) A kind of monitoring method based on time triggered Ethernet
CN112436601B (en) Information flow processing method of intelligent substation, computer equipment and storage medium
CN102045607B (en) Method for enhancing QoS (Quality of Service) and VLAN (Virtual Local Area Network) processing capability in EPON (Ethernet Passive Optical Network) system
CN103646524A (en) Communication method of double-mode local communication module device of electric energy meter
CN112073326B (en) Intelligent substation process layer network data flow control method
CN102025598A (en) Method for updating local mapping table of access router, and local access router
CN106161139A (en) A kind of intelligent substation SV message simulation generates and detection method
CN104202229A (en) Method and system for processing passive optical network (PON) optical line terminal (OLT) equipment QINQ messages
CN113437997B (en) Power line carrier communication method, device, equipment and medium

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