CN106254280A - A kind of switch - Google Patents
A kind of switch Download PDFInfo
- Publication number
- CN106254280A CN106254280A CN201610654027.1A CN201610654027A CN106254280A CN 106254280 A CN106254280 A CN 106254280A CN 201610654027 A CN201610654027 A CN 201610654027A CN 106254280 A CN106254280 A CN 106254280A
- Authority
- CN
- China
- Prior art keywords
- message
- port
- data
- switch
- control module
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
- H04L49/102—Packet switching elements characterised by the switching fabric construction using shared medium, e.g. bus or ring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention relates to a kind of switch, this switch is all correspondingly provided with port control modules at each port, and described port control modules forms looped network by universal serial bus, and transmits loop message in looped network.Described loop message includes that several include source address portion, destination address component and data division for the message unit corresponding with described port, each message unit.Each port control modules is by identifying the source address portion in loop message or destination address component, for loading data into the data division of corresponding message unit or the data read-out of the data division by corresponding message unit.Owing to this switch uses serial looped network transmission message, it is to avoid the target port query time that mapping table causes is inconsistent, so that the transmission delay of each port has concordance so that the real-time of this switch is improved.
Description
Technical field
The present invention relates to a kind of switch, be particularly well-suited to the switch of intelligent substation.
Background technology
Switch plays an important role as the communication apparatus that intelligent substation is important.Intelligent substation generally uses point
Rotating fields designs, i.e. station level, wall and process layer, and wherein, the switch arranged between wall and process layer needs reality
Time interactive information, high to the requirement of real-time of switch.
CN101409669A discloses a kind of switch, and this switch is by reflecting of preserving in inquiry uplink interface card
Firing table, by message transmissions to corresponding destination address ports.On the one hand, this switch carries out message transmissions and relies on mapping table, needs
Will be to mapping table real-time update, maintenance work is relatively big, consumes resource many;On the other hand, map information is more, each target port
Corresponding query time is inconsistent, causes the transmission delay that each port of this switch is corresponding inconsistent, thus makes this switch
Real-time reduces.
Summary of the invention
It is an object of the invention to provide a kind of switch, the problem in order to solve is that the transmission of each port of switch is consistent
Property.
For achieving the above object, the solution of the present invention includes: this switch includes uplink port and downlink port, Mei Geduan
Mouth is all correspondingly provided with port control modules, and described switch also includes the storage mould of connection corresponding with uplink port control module
Block;Described port control modules forms looped network by universal serial bus;Looped network transmits loop message, if described loop message includes
Dry is used for the message unit corresponding with described port, and each message unit includes source address portion, destination address component sum
According to part;Source address portion in each port control modules identification loop message or destination address component, for loading data
To the data division of corresponding message unit or the data read-out of the data division by corresponding message unit.
As a further improvement on the present invention, described loop message include sending loop message and under send loop message;Under
Downlink port data, according to the source address above sent in loop message, are loaded into the number of corresponding message unit by row port control modules
According to part, and add destination address;Uplink port control module, according to the destination address above sent in loop message, extracts correspondence
The data of the data division of message unit;Uplink port control module according under send the source address in loop message, by upstream ends
Mouth data are loaded into the data division of corresponding message unit, and add destination address;Downlink port control module according under give
Destination address in loop message, extracts the data of the data division of corresponding message unit.
As the another kind of improvement of the present invention, described uplink port is used for connecting station level and wall in intelligent substation
Equipment, described downlink port is used for connecting process layer in intelligent substation equipment.
As the another kind of improvement of the present invention, in described loop message, source address and destination address are mac address.
As the another kind of improvement of the present invention, main control module is used for sending loop message;Described upstream or downstream port control
Molding block is as main control module, or independent of the processing module of upstream or downstream port control modules as main control module.
Switch of the present invention uses the mode of serial looped network to transmit data so that the transmission delay one that each port is corresponding
Causing, real-time is improved, and meets the communicating requirement between intelligent substation wall and process layer.Reflect it addition, avoid
The resource consumption that the updating maintenance of firing table causes.
Concrete, switch of the present invention can use real-time ethernet, is used for realizing intelligent substation intermediate interlayer and process
Communication between Ceng.
Use the built-in upstream or downstream port control modules of switch as main control module, the one-tenth of switch can be reduced
This.It is of course also possible to arrange the processing module independent of upstream or downstream port control modules as main control module, although increase
The cost of switch, but the processing speed of switch is greatly improved so that the serviceability of switch is more preferably.
Accompanying drawing explanation
Fig. 1 is the hardware connection schematic diagram of switch of the present invention;
Fig. 2 is loop network link mode of operation schematic diagram;
Fig. 3 is single-link mode of operation schematic diagram;
Fig. 4 is the hardware connection schematic diagram of switch embodiment.
Detailed description of the invention
The present invention will be further described in detail below in conjunction with the accompanying drawings.
The hardware connection of switch of the present invention is as it is shown in figure 1, include uplink port and downlink port, and uplink port correspondence sets
Having uplink port control module, downlink port is correspondingly provided with downlink port control module.Wherein, uplink port control module is corresponding
Connect memory module, described uplink port control module and described downlink port control module and form looped network by universal serial bus,
And in looped network, transmit loop message.Described port is only intended to connect communication equipment, and by corresponding port control modules control
The data of uplink equipment processed or load data in communication equipment.
Represent for convenience, port and the corresponding port control modules connected thereof are collectively expressed as by Fig. 2, Fig. 3 and Fig. 4
Port.
The transmission path schematic diagram of described loop message is as shown in Figure 2.Wherein, data link is full duplex mode of operation.
When looped network occurs link down, then automatically form single-link mode of operation as shown in Figure 3, at the ending port pair of serial
Data return, thus ensure the integrity of data.
A kind of embodiment of this switch as shown in Figure 4, including 3 uplink ports and 4 downlink ports, each upstream ends
Mouth is respectively connected to line protective devices 1, line protective devices 2, supervising device;Each downlink port is respectively connected to circuit 1 and merges list
Unit, circuit 1 intelligent terminal, circuit be 2-in-1 and unit, circuit 2 intelligent terminal.
When switch powers on for the first time, run initialization process.First detect in the memory element that each uplink port is corresponding
Whether there is configuration information flag bit, if not, using uplink port 1 as main control module, send and initialize loop message, and drive
Dynamic annularly bus is sequentially transmitted, and carries out initialization operation.If through timing often T, main control module does not sends data yet, then by upper
Row port 2 starts to send initialization loop message as main control module, by that analogy, until main control module sends initializes loop
Message.Wherein, Initial message is reserved with the blank data message position for loading each port mac address.
It is of course also possible to arrange independent of the processing module of upstream or downstream port control modules as main control module, this
Sample can improve the processing speed of switch, and the serviceability making switch is more excellent.
Concrete, in the present embodiment, the configuration information flag bit of each memory module is sky, so, uplink port 1 conduct
Main control module, whole ports are carried out initialize register:
(1) main control module sends Initial message.
(2) above-mentioned Initial message transmits successively along looped network, and uplink port 1 receives this message, then at the sky of this message
White data message position logs in, and loads uplink port 1 and connects the mac address of equipment;Message is transferred to upstream ends along looped network
Mouth 2, uplink port 2 receives this message, then the clear data information position at this message logs in, and loads uplink port 2
The mac address of connection equipment;
……
Message is transferred to downlink port 4 along looped network, and downlink port 4 receives this message, then in the clear data of this message
Information position logs in, and loads downlink port 4 and connects the mac address of equipment;
Message is transferred to downlink port 3 along looped network, and downlink port 3 receives this message, then in the clear data of this message
Information position logs in, and loads downlink port 3 and connects the mac address of equipment;
……
Message passes sequentially through each port along looped network, and the initialization completing all access interface logs in, and generates containing unbroken loop
The message of pipeline equipment mac address, and drive in the memory module being stored in the connection of each uplink port control module correspondence.
When initializing beginning, if main control module detects port m new access device, then reserved newly-increased in loop message
The blank data message position of equipment, and perform above-mentioned initialization logon operation, add in the clear data information position of message
Carry newly added equipment information.
After switch completes initialization process, carry out data transmission.Data-transfer process includes sending data link process
Data link process is sent under with.On send and in data link process transmission, send loop message, under send and give under data link process transmission
Loop message.Wherein, above send loop message with under send the form of loop message identical, all include that several are for each with switch
The message unit that port is corresponding, each message unit includes source address portion, destination address component and data division successively, or
Destination address component, source address portion and data division.
Concrete, in the present embodiment, the form of message unit is port access device mac address+target mac address+number
According to.
Loop message is during looped network transmits, and each port control modules all identifies that belonging to Self address (or sets
Fixed address) (one or more) message unit, data are filled in this message unit, or by this message unit
Data extract.And for being not belonging to other message units of Self address (or the address set), the most direct transparent biography
It is passed to next port control module.
Wherein, the present embodiment on send data link process to include:
(1) main control module sends in real time and send loop message, above send loop message to include 4 message units, each message
The corresponding downlink port of the unit (downstream end in looped network after sending the message unit number in loop message on i.e. and initializing
Mouth number is consistent).
(2) this message is transferred to downlink port 1, downlink port 2, downlink port 3 and downlink port 4, each downstream end successively
Each port data, according to the mac address, source above sent in loop message, is loaded into the data of corresponding message unit by mouth control module
Part, and add target mac address;
Concrete, in the present embodiment, in loop, the data of transmission include sv data and goose data, then each downstream end
The concrete form of message unit that mouth is corresponding is as follows:
Downlink port 1: circuit 1 combining unit mac address+route protection 1mac address+sv data (1522 byte);
Downlink port 2: circuit 1 intelligent terminal mac address+route protection 1mac address+goose data (1522 byte);
Downlink port 3: circuit is 2-in-1 and unit mac address+route protection 2mac address+sv data (1522 byte);
Downlink port 4: circuit 2 intelligent terminal mac address+route protection 2mac address+goose data (1522 byte).
(3), after the data sending loop message to complete all downlink ports on described load, it is transferred to up successively along looped network
Port 3, uplink port 2 and uplink port 1, uplink port control module, according to the target mac address above sent in loop message, carries
Take the data of the data division of corresponding message unit.
Concrete, in the present embodiment, uplink port 1 extracts circuit 1 combining unit and the number of circuit 1 intelligent terminal
According to, in uplink port 2, extract that circuit is 2-in-1 and unit and the data of circuit 2 intelligent terminal, extract all in uplink port 3
Data.
It addition, send data link process to include under the present embodiment:
(1) main control module sends down in real time and send loop message.
(2) this message is transferred to uplink port 1, uplink port 2 and uplink port 3, each uplink port control module successively
Send the mac address, source in loop message under according to, each port data is loaded into the data division of corresponding message unit, and adds
Add target mac address.
Concrete, in the present embodiment, the concrete form of message unit that each uplink port is corresponding is as follows:
What the message unit quantity that each uplink port includes communicated with this uplink port descending is connected device-dependent, than
As, in the present embodiment, downlink port 1 and downlink port 2 extract the data of route protection 1, downlink port 3 and downlink port 4
Extract the data of route protection 2, extract the data of monitoring device at all downlink ports.
Therefore, uplink port 1 needs to send information to downlink port 1 and downlink port 2, and uplink port 1 includes two reports
Literary composition unit:
Route protection 1mac address+circuit 1 combining unit mac address+configuration information or calling information+route protection 1 move
Make information+warning information;
Route protection 1mac address+circuit 1 intelligent terminal mac address+configuration information or calling information+route protection 1 move
Make information+warning information.
Uplink port 2 sends information due to needs to downlink port 3 and downlink port 4, therefore, and the message of uplink port 2
Unit should include:
Route protection 2mac address+circuit is 2-in-1 and unit mac address+configuration information or calling information+route protection 2 move
Make information+warning information;
Route protection 2mac address+circuit 2 intelligent terminal mac address+configuration information or calling information+route protection 2 move
Make information+warning information.
Uplink port 3 sends information due to needs to downlink port 1, downlink port 2, downlink port 3 and downlink port 4,
Therefore, the message unit of uplink port 3 should include:
Monitoring device mac address+circuit 1 combining unit mac address+configuration information or calling information;
Monitoring device mac address+circuit 1 intelligent terminal mac address+configuration information or calling information;
Monitoring device mac address+circuit is 2-in-1 and unit mac address+configuration information or calling information;
Monitoring device mac address+circuit 2 intelligent terminal mac address+configuration information or calling information.
(3), after the data sending loop message to complete each uplink port under described load, downstream end it is transferred to successively along looped network
Mouthfuls 4, downlink port 3, downlink port 2 and downlink port 1, each downlink port control module according under send the target in loop message
Mac address, extracts the data of the data division of corresponding message unit.
As another embodiment, source address and the destination address of this switch transmission message are not limited to mac address, also
It can be IP address;This switch is not limited to be applied to power system, it is also possible to be applied to other communications fields.Therefore, this friendship
Change planes and there is wide range of application.
It is presented above specific embodiment, but the present invention is not limited to described embodiment.The base of the present invention
This thinking is above-mentioned basic scheme, for those of ordinary skill in the art, according to the teachings of the present invention, designs various change
The model of shape, formula, parameter are not required to spend creative work.The most right
Change that embodiment is carried out, revise, replace and modification still falls within protection scope of the present invention.
Claims (5)
1. a switch, including uplink port and downlink port, it is characterised in that each port is all correspondingly provided with port controlling
Module, described switch also includes the memory module of connection corresponding with uplink port control module;Described port control modules leads to
Cross universal serial bus and form looped network;In looped network transmit loop message, described loop message include several for described port pair
The message unit answered, each message unit includes source address portion, destination address component and data division;Each port control modules
Identify the source address portion in loop message or destination address component, for loading data into the data portion of corresponding message unit
Point or the data read-out of data division by corresponding message unit.
Switch the most according to claim 1, it is characterised in that described loop message include sending loop message and under give
Loop message;
Downlink port data, according to the source address above sent in loop message, are loaded into corresponding message list by downlink port control module
The data division of unit, and add destination address;Uplink port control module, according to the destination address above sent in loop message, carries
Take the data of the data division of corresponding message unit;
Uplink port control module according under send the source address in loop message, uplink port data are loaded into corresponding message list
The data division of unit, and add destination address;Downlink port control module according under send the destination address in loop message, carry
Take the data of the data division of corresponding message unit.
Switch the most according to claim 1 and 2, it is characterised in that described uplink port is used for connecting intelligent substation
Middle station level and bay device, described downlink port is used for connecting process layer in intelligent substation equipment.
Switch the most according to claim 1 and 2, it is characterised in that source address and destination address in described loop message
It is mac address.
Switch the most according to claim 1 and 2, it is characterised in that main control module is used for sending loop message;On described
Row or downlink port control module are as main control module, or the processing module independent of upstream or downstream port control modules is made
For main control module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610654027.1A CN106254280A (en) | 2016-08-10 | 2016-08-10 | A kind of switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610654027.1A CN106254280A (en) | 2016-08-10 | 2016-08-10 | A kind of switch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106254280A true CN106254280A (en) | 2016-12-21 |
Family
ID=58079263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610654027.1A Pending CN106254280A (en) | 2016-08-10 | 2016-08-10 | A kind of switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254280A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981404A (en) * | 2019-03-18 | 2019-07-05 | 浙江中控研究院有限公司 | Ad hoc network structure and its diagnostic method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030043817A1 (en) * | 2001-07-06 | 2003-03-06 | Abbas Rashid | Cross-bar switch supporting implicit multicast addressing |
CN101924659A (en) * | 2009-06-12 | 2010-12-22 | 中兴通讯股份有限公司 | Network equipment and method for detecting links of physical ports of same |
-
2016
- 2016-08-10 CN CN201610654027.1A patent/CN106254280A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030043817A1 (en) * | 2001-07-06 | 2003-03-06 | Abbas Rashid | Cross-bar switch supporting implicit multicast addressing |
CN101924659A (en) * | 2009-06-12 | 2010-12-22 | 中兴通讯股份有限公司 | Network equipment and method for detecting links of physical ports of same |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981404A (en) * | 2019-03-18 | 2019-07-05 | 浙江中控研究院有限公司 | Ad hoc network structure and its diagnostic method |
CN109981404B (en) * | 2019-03-18 | 2020-10-30 | 浙江中控研究院有限公司 | Ad hoc network structure and diagnosis method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103616592B (en) | A kind of relay protection real-time digital dynamic simulation test system based on IEC61850 | |
CN101438258A (en) | Adapter to convert USB device into WUSB device | |
CN105049551A (en) | System and method for automatically distributing address via bus | |
CN103248526A (en) | Communication equipment and method for achieving out-of-band monitoring and management, and master-slave switching method | |
CN104009976B (en) | A kind of real-time communication method being used between more main station systems and its equipment | |
TW358911B (en) | Data package sorting transmission method | |
CN206433003U (en) | Ethernet link switching device | |
CN109756588A (en) | A kind of automatic distribution address system and method for RS485 communication | |
CN107819659A (en) | A kind of intelligent level UNICOM communication network based on SPI | |
CN102404414B (en) | Ethernet communication system and method based on MMC/SD interface | |
CN207588888U (en) | A kind of test device and mainboard | |
CN103701680A (en) | Cross-PCIe domain message transmitting method, equipment and system | |
CN109067630A (en) | A kind of serial data communication link branch cooperative control device | |
CN114422297A (en) | Multi-scene virtual network traffic monitoring method, system, terminal and medium | |
CN106254280A (en) | A kind of switch | |
CN107357756A (en) | The system that more equipment carry out IIC communications under holotype | |
CN107800465A (en) | A kind of electric line carrier communication transmission method | |
CN101345681B (en) | Operation method for connecting main unit of intelligent electric appliance through serial bus | |
CN203027289U (en) | System for realizing serial communication among computer, host computer and slave computer | |
CN107229586B (en) | Communication means based on RS485 bridge circuit device | |
CN108777628A (en) | The method that low energy consumption interchanger and interchanger reduce Ethernet energy consumption | |
CN101192911B (en) | A data transmission method and system under time division multiplexing | |
CN109802877A (en) | A kind of CAN bus based Communication System Design | |
CN202935897U (en) | Sudden-stop lock switch position recognition device of belt conveyor | |
CN208768087U (en) | A kind of serial data communication link branch cooperative control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161221 |