CN107707484A - A kind of message load sharing structure and method based on differentiation link identification - Google Patents
A kind of message load sharing structure and method based on differentiation link identification Download PDFInfo
- Publication number
- CN107707484A CN107707484A CN201711054501.8A CN201711054501A CN107707484A CN 107707484 A CN107707484 A CN 107707484A CN 201711054501 A CN201711054501 A CN 201711054501A CN 107707484 A CN107707484 A CN 107707484A
- Authority
- CN
- China
- Prior art keywords
- module
- message
- link
- parsing
- load sharing
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/505—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Communicated the invention discloses a kind of based on the message load sharing structure for distinguishing link identification, including some receiving modules, preposition module and some parsing modules, all receiving modules and parsing module with preposition module;Receiving module captures message, notifies preposition module to pre-process the message of capture;Preposition module obtains message link, according to the principle of load sharing, parsing module corresponding to notice according to type of message;Parsing module analytic message.Also disclose that message load sharing method simultaneously.The present invention can effectively realize the purpose of polycaryon processor parsing load sharing, improve the message processing capability of single port.
Description
Technical field
The present invention relates to a kind of based on the message load sharing structure and method of distinguishing link identification, belong to network service neck
Domain.
Background technology
Using message transmissions information such as GOOSE, SV, IP, TCP, UDP, MMS, SNTP in intelligent substation communication network, and
And these messages are analyzed in real time by network message record analysis device, to find and problem analysis.Same
The same link packet that receiving port captures, in time with precedence, logically with relevance, it is easy to real
The message of the link is now parsed according to order of arrival using single thread;If parsed using multiple threads, it is related to line
Operation between journey is extremely complex, realizes difficult.
In existing implementation, Message processing is as shown in figure 1, specific as follows:
(1)There is the device of n message sink mouth, set n message process unit P, each processing unit P to include a reception
Module and a parsing module.
(2)By taking first processing unit P1 as an example, P1 receiving module is responsible for the message of the capture of receiving port 1, will capture
Packet storage notifies P1 parsing module into internal memory.
(3)The message that P1 parsing module parsing port 1 captures, notifies P1 receiving modules release message to account for after parsing
Internal memory.
It can be seen that in above-mentioned flow, the corresponding receiving module of a port and a parsing module, the i.e. report of a port
Text can only be responsible for parsing by a parsing module, when single receiving port message flow is larger, single thread analytic ability deficiency.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of based on the message load sharing knot for distinguishing link identification
Structure.
In order to achieve the above object, the technical solution adopted in the present invention is:
A kind of message load sharing structure based on differentiation link identification, including some receiving modules, preposition module and some solutions
Module is analysed, all receiving modules and parsing module communicate with preposition module;
Receiving module captures message, notifies preposition module to pre-process the message of capture;
Preposition module obtains message link, according to the principle of load sharing, parsing module corresponding to notice according to type of message;
Parsing module analytic message.
The number of receiving module is consistent with physical receipt port number.
The number of parsing module is consistent with processor cores number.
Receiving module captures message, also by the packet storage of capture into internal memory, after parsing module analytic message, leads to
Know memory headroom corresponding to receiving module release.
Preposition module is managed to the historical link of acquisition, if the link obtained is new link, preposition module is pressed
According to the principle of load sharing, selection notifies a parsing module to be responsible for parsing;If the link obtained is existing link,
Preposition module notifies same parsing module to be responsible for parsing.
When the link of acquisition is new link, preposition module is carried out to the parsing module load of all parsing the type messages
Assess, the minimum parsing module of notice load is responsible for parsing.
Do not receive the newly arrived message of certain link more than certain time preposition module, then it is invalid to be set to the link, and
Range of management is removed, when capturing the message of the link again, according to emerging link processing.
A kind of message load sharing method based on differentiation link identification, including,
Start preposition processing module during initialization;
After capturing message, packet storage into internal memory, is transferred to preposition module to pre-process by receiving module;
Preposition module obtains message link, according to the principle of load sharing, parsing module corresponding to notice according to type of message;
Parsing module analytic message, after notify receiving module release corresponding to memory headroom.
The beneficial effect that the present invention is reached:The present invention can effectively realize the mesh of polycaryon processor parsing load sharing
, improve the message processing capability of single port.
Brief description of the drawings
Fig. 1 is existing Message processing structure;
Fig. 2 is the structure of the present invention.
Embodiment
The invention will be further described below in conjunction with the accompanying drawings.Following examples are only used for clearly illustrating the present invention
Technical scheme, and can not be limited the scope of the invention with this.
It is as shown in Fig. 2 a kind of based on the message load sharing structure for distinguishing link identification including some receiving modules, preceding
Module and some parsing modules are put, all receiving modules and parsing module communicate with preposition module.
The number of receiving module is consistent with physical receipt port number, and in figure, physical receipt port number is n, then connects
Module is received with Rx(X=1,2 ..., n)To identify.Receiving module is to capture message, and by packet storage into internal memory, before notice
Module is put to pre-process the message of capture.
Preposition module obtains message link according to type of message, according to the principle of load sharing, notifies corresponding parsing mould
Block.Preposition module is timed management to the historical link of acquisition, if the link obtained is new link, preposition module according to
The principle of load sharing, selection notifies a parsing module to be responsible for parsing, i.e., when the link of acquisition is new link, preposition module
The parsing module load of all parsing the type messages is assessed(Load evaluation can be according to related link circuits number or unit
The number of analytic message in time), the minimum parsing module of notice load is responsible for parsing;If the link obtained is to have existed
Link, preposition module notifies same parsing module to be responsible for parsing.In management, do not received more than certain time preposition module
To the newly arrived message of certain link, then it is invalid to be set to the link, and removes range of management, captures the message of the link again
When, according to emerging link processing.
By taking SV messages as an example, when capturing new SV link packets, load of the preposition module to all SV parsing modules
Assessed, find out the minimum SV parsing modules of a load, distributing capture message to the module is parsed.When SV links are
Existing link, same parsing module is notified to be responsible for parsing.
The number of parsing module is consistent with processor cores number, and in figure, processor cores number is m, then parses mould
Block is with Ay(Y=1,2 ..., m)To identify.Parsing module analytic message, after analytic message, notice receiving module release is corresponding
Memory headroom.
A kind of message load sharing method based on differentiation link identification, it is characterised in that:Including,
Start preposition processing module during initialization;
After capturing message, receiving module;
Preposition module obtains message link, according to the principle of load sharing, parsing module corresponding to notice according to type of message;
Parsing module analytic message, after notify receiving module release corresponding to memory headroom.
The present invention can make full use of polycaryon processor to perform the advantage of multiple threads parallel, effectively realize multinuclear processing
Device parses the purpose of load sharing, improves the message processing capability of single port.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, without departing from the technical principles of the invention, some improvement and deformation can also be made, these are improved and deformation
Also it should be regarded as protection scope of the present invention.
Claims (8)
- It is 1. a kind of based on the message load sharing structure for distinguishing link identification, it is characterised in that:Including some receiving modules, preposition Module and some parsing modules, all receiving modules and parsing module communicate with preposition module;Receiving module captures message, notifies preposition module to pre-process the message of capture;Preposition module obtains message link, according to the principle of load sharing, parsing module corresponding to notice according to type of message;Parsing module analytic message.
- It is 2. according to claim 1 a kind of based on the message load sharing structure for distinguishing link identification, it is characterised in that:Connect The number for receiving module is consistent with physical receipt port number.
- It is 3. according to claim 1 a kind of based on the message load sharing structure for distinguishing link identification, it is characterised in that:Solution The number for analysing module is consistent with processor cores number.
- It is 4. according to claim 1 a kind of based on the message load sharing structure for distinguishing link identification, it is characterised in that:Connect Module capture message is received, also by the packet storage of capture into internal memory, after parsing module analytic message, notifies receiving module Memory headroom corresponding to release.
- It is 5. according to claim 1 a kind of based on the message load sharing structure for distinguishing link identification, it is characterised in that:Before Put module to be managed the historical link of acquisition, if the link obtained is new link, preposition module is according to load sharing Principle, selection notify a parsing module to be responsible for parsing;If the link obtained is existing link, preposition module are led to Know that same parsing module is responsible for parsing.
- It is 6. according to claim 5 a kind of based on the message load sharing structure for distinguishing link identification, it is characterised in that:When When the link of acquisition is new link, preposition module is assessed the parsing module load of all parsing the type messages, is notified The minimum parsing module of load is responsible for parsing.
- It is 7. according to claim 1 a kind of based on the message load sharing structure for distinguishing link identification, it is characterised in that:It is super Cross certain time preposition module and do not receive the newly arrived message of certain link, then it is invalid to be set to the link, and removes management model Enclose, when capturing the message of the link again, according to emerging link processing.
- It is 8. a kind of based on the message load sharing method for distinguishing link identification, it is characterised in that:Including,Start preposition processing module during initialization;After capturing message, packet storage into internal memory, is transferred to preposition module to pre-process by receiving module;Preposition module obtains message link, according to the principle of load sharing, parsing module corresponding to notice according to type of message;Parsing module analytic message, after notify receiving module release corresponding to memory headroom.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711054501.8A CN107707484B (en) | 2017-11-01 | 2017-11-01 | Packet load sharing device and method based on link identification distinguishing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711054501.8A CN107707484B (en) | 2017-11-01 | 2017-11-01 | Packet load sharing device and method based on link identification distinguishing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107707484A true CN107707484A (en) | 2018-02-16 |
CN107707484B CN107707484B (en) | 2021-08-27 |
Family
ID=61177105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711054501.8A Active CN107707484B (en) | 2017-11-01 | 2017-11-01 | Packet load sharing device and method based on link identification distinguishing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107707484B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118686A (en) * | 2022-06-23 | 2022-09-27 | 中国民航信息网络股份有限公司 | System, method, equipment, medium and product for processing passenger message |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090300165A1 (en) * | 2008-05-30 | 2009-12-03 | Square D Company | Message Monitor, Analyzer, Recorder and Viewer in a Publisher-Subscriber Environment |
US20100039954A1 (en) * | 2008-08-18 | 2010-02-18 | Abb Technology Ag | Analyzing communication configuration in a process control system |
CN103995193A (en) * | 2014-04-30 | 2014-08-20 | 贵州电力试验研究院 | Digital substation whole-substation power quality on-line monitoring device |
CN204886410U (en) * | 2015-07-02 | 2015-12-16 | 国网北京市电力公司 | Secondary equipment state monitoring system based on intelligent substation |
CN105721254A (en) * | 2016-03-30 | 2016-06-29 | 华南理工大学 | Method for distinguishing GOOSE, SMV and MMS messages |
CN106410972A (en) * | 2016-11-18 | 2017-02-15 | 国网上海市电力公司 | GOOSE-link-mapping-mechanism-based on-line monitoring system and method |
CN106953749A (en) * | 2017-03-03 | 2017-07-14 | 中国南方电网有限责任公司 | A kind of transformer station process layer network method of real-time |
-
2017
- 2017-11-01 CN CN201711054501.8A patent/CN107707484B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090300165A1 (en) * | 2008-05-30 | 2009-12-03 | Square D Company | Message Monitor, Analyzer, Recorder and Viewer in a Publisher-Subscriber Environment |
US20100039954A1 (en) * | 2008-08-18 | 2010-02-18 | Abb Technology Ag | Analyzing communication configuration in a process control system |
CN103995193A (en) * | 2014-04-30 | 2014-08-20 | 贵州电力试验研究院 | Digital substation whole-substation power quality on-line monitoring device |
CN204886410U (en) * | 2015-07-02 | 2015-12-16 | 国网北京市电力公司 | Secondary equipment state monitoring system based on intelligent substation |
CN105721254A (en) * | 2016-03-30 | 2016-06-29 | 华南理工大学 | Method for distinguishing GOOSE, SMV and MMS messages |
CN106410972A (en) * | 2016-11-18 | 2017-02-15 | 国网上海市电力公司 | GOOSE-link-mapping-mechanism-based on-line monitoring system and method |
CN106953749A (en) * | 2017-03-03 | 2017-07-14 | 中国南方电网有限责任公司 | A kind of transformer station process layer network method of real-time |
Non-Patent Citations (4)
Title |
---|
付国新.戴超金: "智能变电站网络分析与故障录波一体化设计与实现", 《电力自动化设备》 * |
徐路路: "基于CM平台的网络数据包捕获和解析系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
王 鑫,许 力,李 晓,崔新友: "基于FPGA 的GOOSE 报文解析模块设计与实现", 《电力系统保护与控制》 * |
王娇,张惠刚,李广华,许家浩,迟翔: "IEC 61850 新型网络冗余报文捕获解析工具开发", 《电力建设》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118686A (en) * | 2022-06-23 | 2022-09-27 | 中国民航信息网络股份有限公司 | System, method, equipment, medium and product for processing passenger message |
Also Published As
Publication number | Publication date |
---|---|
CN107707484B (en) | 2021-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243350B (en) | A kind of exchange of electric power machine processing method for service stream and its system | |
CN100495985C (en) | Method for rapidly detecting Ethernet exchanger loop failure | |
CN102075246B (en) | Method, system and optical line terminal for obtaining malfunction information of optical network unit | |
US9503380B2 (en) | Communication apparatus, communication method, and computer readable medium | |
CN103618620A (en) | Front-end processor system of multi-layer structure | |
CN101119246A (en) | Data packet sampling statistic method and apparatus | |
CN107547430A (en) | A kind of file transmitting method and device | |
CN107547416A (en) | A kind of processing method and processing device of protocol massages | |
CN1996898A (en) | A system and method for real time detection of the data channel states | |
CN101729312B (en) | Method and system for detecting a link based on ARP protocol | |
CN101753584A (en) | Method for improving rapid message processing speed of intelligent transformer substation under VxWorks system | |
CN206559386U (en) | Embedded industry intelligent gateway and internet of things data acquisition monitoring system based on SoC | |
CN113900426B (en) | Remote equipment control and fault diagnosis system based on 5G+ industrial Internet | |
CN104160735A (en) | Packet processing method, forwarder, packet processing device and packet processing system | |
CN115484047A (en) | Method, device, equipment and storage medium for identifying flooding attack in cloud platform | |
CN107707484A (en) | A kind of message load sharing structure and method based on differentiation link identification | |
CN102082677A (en) | Alarm information processing method, device and system | |
CN110933385B (en) | Video streaming transmission system based on visible light unidirectional network isolation | |
CN112835775A (en) | Simulation network communication method and device and relay protection device simulation test system | |
CN106533728A (en) | Server information collecting method and apparatus | |
Sempere et al. | Multimedia applications in industrial networks: Integration of image processing in profibus | |
CN105847294A (en) | High-frequency electrostatic dust removal power supply system communication protocol converter based on W5500 and communication method | |
CN106230660B (en) | The method and device of sFlow sampling | |
CN109408246A (en) | A kind of adaptive auditing method of industry control network | |
CN112291118A (en) | Multi-core data processing device and method based on FPGA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |