CN108768882A - A kind of processing method and system of protocol massages - Google Patents
A kind of processing method and system of protocol massages Download PDFInfo
- Publication number
- CN108768882A CN108768882A CN201810366721.2A CN201810366721A CN108768882A CN 108768882 A CN108768882 A CN 108768882A CN 201810366721 A CN201810366721 A CN 201810366721A CN 108768882 A CN108768882 A CN 108768882A
- Authority
- CN
- China
- Prior art keywords
- message
- protocol massages
- protocol
- module
- service
- 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
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- 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/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
-
- 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/32—Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
Abstract
The invention discloses a kind of processing method of protocol massages and systems, are related to field of communication technology.It includes the following steps:Service board obtains type of message after being parsed to the protocol massages that main control unit issues;When the forwarding capability of the protocol massages issued is enabled state, service board is stored in caching after being pre-processed to protocol massages, and packet storage information is stored in corresponding message queue, wherein each type of message corresponds to a message queue;Simultaneously or after, according to the packet storage information extracted from message queue, pretreated protocol massages are obtained from caching and are handled.The present invention reduces processing links, avoid the loss of management agreement message, and may insure that configuration message and event message obtain priority processing, improve the communication efficiency and reliability of service board, are conducive to the maintenance and management of operator.
Description
Technical field
The present invention relates to fields of communication technology, are specifically related to a kind of processing method and system of protocol massages.
Background technology
Passive optical network (Passive Optical Network, PON) system generally comprises optical line terminal (Optical
Line Terminal, OLT), optical distribution network (Optical Distribution Network, ODN), several optical-fiber network lists
First (Optical Network Unit, ONU) or ONT Optical Network Terminal (Optical network terminal, ONT), hereafter
In if not otherwise specified, ONU and ONT are collectively referred to as ONU.OLT is connected with several ONU respectively by ODN, wherein OLT
In network side, centre local side provides network collection and neutralizes access, can complete optical electrical conversion, bandwidth allocation and each channel of control
Connection, and have real time monitoring, management and maintenance function.ONU is located at user side, realizes that the processing of various electric signals is managed with maintenance
Reason, provides user side interface, can provide a user personal computer (Personal Computer, PC) online, the networking telephone
(Voice Over Internet Protocol, VoIP) voice and network protocol television (Internet Protocol
Television, IPTV) multiple business such as set-top box.
Currently, OLT mainly uses card insert type architecture system comprising main control unit and service board (also referred to as interface disc or
Line card).Main control unit is responsible for main exchange, i.e. exchange inside equipment between line card and the exchange to convergence layer network device, and
Service board mainly provides PON interfaces.Communication data between main control unit and service board includes that main control unit is matched to what service board issued
Set the service protocol message between message, the event message that service board is reported to main control unit and main control unit and service board.It is above-mentioned
Configuration message and event message be referred to as management agreement message, management agreement message and service protocol message are by service board
CPU is removed or is added the operations such as VLAN, parsing, configuration, encapsulation and forwarding for different types of message.Due to business
The CPU of disk handles management agreement message receive or to be sent out successively, spend the time it is longer, cause service board with
The communication efficiency of main control unit is low, poor reliability, is unfavorable for the maintenance and management of operator.Especially when being generated in existing network
When certain a large amount of class protocol massages, for example, multicast protocol message floods, it can make the CPU of service board is busy with always processing should
Class protocol massages, are not handled timely or other kinds of agreement report so as to cause other kinds of protocol massages
Text is lost, and the communication disruption between service board and main control unit is even caused when serious.
Invention content
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of processing method of protocol massages and
System reduces processing links, avoids the loss of management agreement message, improves the communication efficiency and reliability of service board, has
Conducive to the maintenance and management of operator.
The present invention provides a kind of processing method of protocol massages comprising following steps:
Service board obtains type of message after being parsed to the protocol massages that main control unit issues;
When the forwarding capability of the protocol massages issued is enabled state, service board carries out the protocol massages pre-
It is stored in caching after processing, and packet storage information is stored in corresponding message queue, wherein each type of message corresponds to one and disappears
Cease queue;
Simultaneously or after, according to the packet storage information extracted from message queue, obtained from caching pretreated
The protocol massages are simultaneously handled.
Based on the above technical solution, the protocol massages include configuration message and issuing service protocol massages, under
Sending service protocol massages include multicast protocol message, line identification protocol massages, RSTP protocol massages and ospf protocol message.
Based on the above technical solution, service board is described in each in the reception filtering allocation list being pre-created
Type of message configuration association list item, the association list item include the type of message, forwarding switch, VLAN ACTION switch and
VLAN ACTION operations;
The forwarding switch includes the enabled of forwarding capability or goes to enable;
The VLAN ACTION switches, which include that VLAN is pretreated, to be enabled or goes to enable;
VLAN ACTION operations include VLAN strippings or VLAN transparent transmissions;
When the VLAN ACTION switches of the protocol massages are pretreated enabled, by the VLAN of the protocol massages
The caching is stored in after stripping;
When the VLAN ACTION switches of the protocol massages go enabled for pretreatment, the protocol massages are directly deposited
Enter the caching.
Based on the above technical solution, when the forwarding capability of the issuing service protocol massages is to go enabled state
When, then abandon the issuing service protocol massages.
Based on the above technical solution, service board extracts each message queue according to the processing priority of setting
In the packet storage information and handled.
Based on the above technical solution, the processing priority of the configuration message is higher than the issuing service agreement report
Text, the multicast protocol message, line identification protocol massages, RSTP protocol massages in the issuing service protocol massages and OSPF associations
The processing priority for discussing message is different or identical.
Based on the above technical solution, service board each described issues industry according to the message forwarding threshold value extraction of setting
The packet storage information in the corresponding message queue of business protocol massages is simultaneously handled.
The present invention also provides a kind of processing systems of protocol massages, are set to service board, the system comprises transmitting-receivings
Module, packet filtering module, configuration module and at least one service protocol module;
The transceiver module is for receiving the protocol massages that main control unit issues;
The packet filtering module after being parsed to the protocol massages for obtaining type of message, when the protocol massages
Forwarding capability when being enabled state, service board is stored in caching after being pre-processed to the protocol massages, and by packet storage
The associated configuration module of the message queue or service protocol module are notified after information deposit message queue, wherein each
Type of message corresponds to a message queue;
The configuration module and each described each one message queue of auto correlation of service protocol module, the configuration
Module and service protocol module are used to extract the packet storage information from the associated message queue, and according to described
Packet storage information obtains the pretreated protocol massages and is handled from caching.
Based on the above technical solution, the protocol massages include configuration message and issuing service protocol massages, under
Sending service protocol massages include multicast protocol message, line identification protocol massages, RSTP protocol massages and ospf protocol message.
Based on the above technical solution, the packet filtering module is additionally operable in the configuration module and service protocol mould
Block is associated with the message queue, and the configuration association list item in allocation list is filtered in the reception of establishment, the association list item when registering
Including the type of message, forwarding switch, VLAN ACTION switches and VLAN ACTION operations.
Based on the above technical solution, the forwarding switch includes the enabled of forwarding capability or goes to enable;
The VLAN ACTION switches, which include that VLAN is pretreated, to be enabled or goes to enable;
VLAN ACTION operations include VLAN strippings or VLAN transparent transmissions.
Based on the above technical solution, when the forwarding capability of the issuing service protocol massages is to go enabled state
When, the packet filtering module is additionally operable to abandon the issuing service protocol massages.
Based on the above technical solution, the packet filtering module deposits the message according to the processing priority of setting
Storage information is transmitted to each protocol module;
The processing priority of the configuration message is higher than the issuing service protocol massages, the issuing service protocol massages
In multicast protocol message, line identification protocol massages, the processing priority of RSTP protocol massages and ospf protocol message it is different
Or it is identical.
Based on the above technical solution, the packet filtering module is additionally operable in the service protocol Module registers,
Flow allocation list is received for the message queue setting associated by the service protocol module, it includes institute to receive flow allocation list
Type of message and message forwarding threshold value are stated, the packet filtering module forwards threshold value according to the processing priority of setting and the message
The packet storage information is transmitted to each service protocol module.
Based on the above technical solution, the system also includes event modules;
The event module is for generating event message and being sent to the packet filtering module;
The packet filtering module is additionally operable to obtain type of message after parsing the event message, according to the hair of establishment
Filter allocation list is passed through, the transceiver module is sent to after adding VLAN in the event message;
The transceiver module is additionally operable to that the event message is sent to main control unit by treated.
Based on the above technical solution, the protocol massages further include reporting service protocol message;
The service protocol module will be for that will report service protocol message to be sent to the packet filtering module;
The packet filtering module be additionally operable to it is described report service protocol message to parse after obtain type of message, and will
It is described that service protocol message is reported to be sent to the transceiver module;
The transceiver module is additionally operable to report service protocol message to be sent to main control unit by described.
Compared with prior art, advantages of the present invention is as follows:
(1) sophisticated category is carried out to management agreement message and service protocol message, each protocol massages is by corresponding
Message queue obtains special processing, and carries out threshold value speed limit to issuing service protocol massages, reduces processing links, avoids pipe
The loss for managing protocol massages, improves the communication efficiency and reliability of service board, is conducive to the maintenance and management of operator.
(2) service board is simultaneously handled the packet storage information in each message queue, improves the report of service board
The communication efficiency of literary treatment effeciency and network.
(3) when receiving protocol massages, packet filtering module uniformly carries out VLAN strippings or the operation of transparent transmission, reduces agreement report
The amount of storage of text saves cache resources;Configuration module and each service protocol module only need processing protocol task, need not be to association
The VLAN processing that view message is decapsulated further improves the Message processing effect of configuration module and each service protocol module
Rate.
(4) it can ensure the priority processing of configuration message and event message, not impacted by other service protocol messages,
To improve service board and main control unit communication reliability.
Description of the drawings
Fig. 1 is the process flow figure of protocol massages of the present invention;
Fig. 2 is the process flow figure of first embodiment of the invention protocol massages;
Fig. 3 is the processing system schematic diagram of fifth embodiment of the invention protocol massages.
Specific implementation mode
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the present invention provides a kind of processing method of protocol massages, includes the following steps:
S1. service board obtains type of message after being parsed to the protocol massages that main control unit issues.
S2. when the forwarding capability of the protocol massages issued is enabled state, service board pre-processes protocol massages
Deposit caching afterwards, and packet storage information is stored in corresponding message queue, wherein each type of message corresponds to a message team
Row.
S3. according to the packet storage information extracted from message queue, pretreated protocol massages are obtained from caching
And it is handled.
Wherein, step S2 and S3 simultaneously or may be executed successively, specifically, for the same protocol massages, step S2 and
S3 is successively executed, and for different protocol massages, step S2 and S3 can successively be executed.
Sophisticated category is carried out to the protocol massages that main control unit issues, and is handled differently by different message queues, is kept away
The loss for exempting from management agreement message improves the communication efficiency and reliability of service board, is conducive to the maintenance and management of operator.
The present invention also provides a kind of processing systems of protocol massages, are set to service board, and present treatment system includes transmitting-receiving mould
Block, packet filtering module, configuration module and at least one service protocol module.
Transceiver module is for receiving the protocol massages that main control unit issues.
Packet filtering module after being parsed to protocol massages for obtaining type of message, when the forwarding of the protocol massages issued
When function is enabled state, service board is stored in caching after being pre-processed to protocol massages, and the deposit of packet storage information is disappeared
The associated configuration module of the message queue or service protocol module are notified after breath queue, wherein each type of message corresponds to one
A message queue.
Configuration module and each service protocol module one message queue of each auto correlation, configuration module and service protocol mould
Block is used to extract packet storage information from associated message queue, and according to packet storage information from being obtained in advance in caching
Protocol massages after reason are simultaneously handled.
First embodiment of the invention provides a kind of processing method of protocol massages, and treatment method can be adapted for PON systems
System, PON system include mainly the Ethernet passive light based on time division multiplexing (Time-Division Multiplexing, TDM)
Network (Ethernet Passive Optical Network, EPON) and gigabit passive optical network (Gigabit Passive
Optical Network, GPON), Wave division multiplexing passive optical network (Wavelength-division multiplexing
PON, WDM-PON) and passive optical network (Time-and Wavelength-Division comprising time-division and wavelength-division multiplex
Multiplexing, TWDM-PON).
In PON system, OLT mainly uses card insert type architecture system comprising main control unit and service board, main control unit issue
Protocol massages include configuration message and issuing service protocol massages, issuing service protocol massages include multicast protocol message, line
Line protocol massages quickly generate tree (Rapid Spanning Tree Protocol, RSTP) protocol massages and open
Shortest path priority protocol message (Open Shortest Path First, OSPF).
The CPU of service board completes send and receive packets task, in addition, the CPU of service board also passes through execution by executing system software
Respective protocol module software completes agreement task.In the present embodiment, the CPU of service board includes transceiver module, packet filtering mould
Block, configuration module and at least one service protocol module, the different service protocol message of each service protocol resume module, example
Such as it is used to handle the multicast protocol module of multicast protocol message, the RSTP protocol modules for handling RSTP protocol massages are used for
Handle the ospf protocol module etc. of ospf protocol message.
When business disk startup initializes, packet filtering module creates caching and message queue first, and completes protocol module note
Volume, specifically includes following steps:
S110. when business disk startup initializes, caching and message queue are created, the caching is for storing what main control unit issued
Protocol massages, each type of message correspond to a message queue.
S120. when configuration module and each service protocol Module registers are to packet filtering module, packet filtering module will match
Module and each service protocol module one message queue of each auto correlation are set, and is configured in allocation list is filtered in the reception of establishment
It is associated with list item, association list item includes type of message, forwarding switch, VLAN ACTION switches and VLAN ACTION operations, is received
It is as shown in table 1 to filter allocation list:
Table 1:Receive filtering allocation list
Forwarding switch includes the enabled of forwarding capability or goes to enable.
VLAN ACTION switches, which include that VLAN is pretreated, to be enabled or goes to enable.
VLAN ACTION operations include VLAN strippings or VLAN transparent transmissions.
The present embodiment is illustrated by taking configuration message and multicast protocol message as an example, wherein the VLAN of configuration message
ACTION switches are enabled, and the VLAN ACTION switches of multicast protocol message is go to enable, and shown in Figure 2, service board is to master
The processing method of the protocol massages issued of manipulating stock quotations includes the following steps:
S210. transceiver module receives the protocol massages that main control unit issues, and is transmitted to packet filtering module.
S220. packet filtering module obtains type of message after carrying out Preliminary Analysis to protocol massages, specifically, to protocol massages
Ethernet type judged, if the TAG value of the configuration message type of master-slave communication, be then judged as configuration message;To association
Second bit (bit) for discussing the target MAC (Media Access Control) address of message is judged, if second bit is 1, is judged as multicast
Protocol massages.
S230. according to type of message, the corresponding table item for receiving filtering allocation list is searched.
S240. judge whether corresponding forwarding switch goes to enable, if so, entering step S250;If it is not, entering step
S260。
S250. protocol massages are abandoned, are terminated.
Packet filtering module is after transceiver module gets protocol massages, according to the message class received in filtering allocation list
Type notifies corresponding configuration module or service protocol module protocol massages to be treated, if receiving filtering allocation list to this
The protocol massages of type are configured to inhibit (that is, not forwarding), then do not transmit the protocol massages, avoid the CPU of waste service board
Resource.
S260. according to type of message, judge whether corresponding VLAN ACTION switches enable, if so, entering step
S270;If it is not, entering step S280.
S270. judge whether VLAN ACTION operations are VLAN strippings, if so, entering step S290;If it is not, entering step
Rapid S280.
S280. multicast protocol message is made no modifications, is put into caching, enters step S291.
S290. the VLAN of configuration message is removed, modified configuration message is put into caching.
Pretreatment to protocol massages includes determining whether to make VLAN according to its type of message and VLAN ACTION switches
Processing shells the VLAN of the protocol massages specifically, when the VLAN ACTION switches of protocol massages are pretreated enabled
It is cached from rear deposit;When the VLAN ACTION switches of protocol massages go enabled for pretreatment, protocol massages are directly stored in slow
It deposits.
S291. packet filtering module packet storage information is stored in after corresponding message queue notify associated configuration module or
Person's service protocol module.Packet storage information includes the packet length and protocol massages place cache location of the protocol massages.
S292. configuration module and service protocol module extract packet storage information from associated message queue, and according to
Packet storage information obtains pretreated protocol massages from caching and carries out subsequent protocol processing.
Service board is extracted the packet storage information in each message queue according to the processing priority of setting and is handled,
Under normal conditions, the processing priority of configuration message is higher than issuing service protocol massages, therefore, service board priority processing configuration report
The corresponding message queue of text, it can be ensured that configuration message obtains timely processing, improve service board and main control unit communication efficiency and
Reliability.Multicast protocol message, line identification protocol massages, RSTP protocol massages and ospf protocol message processing priority not
With or it is identical.
In addition, service board can also forward each issuing service protocol massages of threshold value extraction corresponding according to the message of setting
Packet storage information in message queue is simultaneously handled.
Specifically, configuration module carries out subsequent protocol processing to pretreated configuration message, multicast protocol module is to pre-
Treated, and multicast protocol message carries out subsequent protocol processing.Protocol massages need not move through each configuration module and service protocol
Module, effectively reduces the processing links of protocol massages, and being isolated can between configuration module and each service protocol module
What can be generated influences each other, and improves the reliability of Message processing.
For the same protocol massages, step S291 and S292 are successively executed, for different protocol massages, step S291
Can be successively to execute, or be performed simultaneously with S292.
Service board is extracted the packet storage information in each message queue and is handled simultaneously or successively.Specifically,
In step S292, each service protocol module can extract the packet storage information in associated message queue and be located simultaneously
Reason can also make each service protocol module extraction is associated to disappear by poll or according to the processing priority mode of setting
It ceases the packet storage information in queue and is handled.When service board simultaneously to the packet storage information in each message queue into
When row processing, the Message processing efficiency of service board and the communication efficiency of network are improved.
When receiving protocol massages, packet filtering module uniformly carries out VLAN strippings or the operation of transparent transmission, reduces configuration message
Amount of storage, save cache resources;Configuration module and each service protocol module only need processing protocol task, need not be to agreement
The VLAN processing that message is decapsulated further improves the Message processing efficiency of configuration module and each service protocol module.
In one embodiment, packet filtering module is between send and receive packets task software and the protocol module software of application layer
A module software.
On the basis of first embodiment of the invention, second embodiment of the invention provides a kind of processing side of protocol massages
Method, when business disk startup initializes, packet filtering module creates caching and message queue first, and completes configuration module and each business
Protocol module is registered, and this method further includes:
S130. packet filtering module is that the message queue setting associated by service protocol module receives flow allocation list, is received
Flow allocation list includes type of message and message forwarding threshold value, and message forwarding threshold value can be that forwarding per second receives service protocol report
The maximum value of text.
Message queue can receive flow allocation list accordingly according to the message queue, and control is per second to be sent to the message team
The maximum number for arranging the packet storage information of associated service protocol module, includes the following steps:
S281. message queue starts to send packet storage message, and counts.
S282. in the time in timing in one second, count value is more than the message forwarding threshold for receiving flow allocation list and being configured
When value, stop sending packet storage message.
S283. after the time of timing in one second reaches, count value is emptied, message queue starts to continue to send next report
Text storage message.
Packet filtering module is after transceiver module gets protocol massages, according to the message class received in flow allocation list
Type can control the reception flow for receiving service protocol message, prevent impact service board CPU, and ensure important configuration
Message is handled, and is improved the reliability of protocol massages processing and the stability of service board communication, is conducive to the maintenance of operator.
On the basis of second embodiment of the invention, third embodiment of the invention provides a kind of processing side of protocol massages
The CPU of method, service board further includes event module, and when business disk startup initializes, packet filtering module completes event module registration, also
Including:
Establishment transmission filtering allocation list in configuration association list item, association list item also include type of message, forwarding switch,
VLAN ACTION switches and VLAN ACTION operations, it is as shown in table 2 to send filtering allocation list:
Table 2:Send filtering allocation list
Different from the type of message received in filtering allocation list, the type of message sent in filtering allocation list includes event report
Text and report service protocol message.In addition, the VLAN ACTION operations of event message are addition VLAN.
The processing method of event message includes:
S310. event module generates event message and is sent to packet filtering module.
S320. packet filtering module obtains type of message after being parsed to event message, and VLAN is added in event message
After be sent to transceiver module.
S320 transceiver modules are for by treated, event message to be sent to main control unit.
On the basis of third embodiment of the invention, fourth embodiment of the invention provides a kind of processing side of protocol massages
Method, the service protocol message that reports that service board is sent to main control unit includes multicast protocol message, line identification protocol massages, RSTP
Protocol massages and ospf protocol message.
The present embodiment is illustrated by event message and for reporting multicast protocol message, and this method includes:
The multicast protocol message reported is sent to packet filtering module by S410 multicast protocols module.
S420. packet filtering module is used to obtain type of message after parsing the multicast protocol message reported, and will be upper
The multicast protocol message of report is sent to transceiver module.
S430. transceiver module is used to the multicast protocol message reported being sent to main control unit.
Specifically, the process flow for the protocol massages that service board is sent out includes:
S510. packet filtering module carries out Preliminary Analysis to protocol massages, classifies according to type of message, is divided into event report
Text and the multicast protocol message reported.
S520. the ethernet type of protocol massages is judged, if the TAG of the event message type of master-slave communication
Value, then be judged as event message;Second bit bit of the purpose MAC of message is judged, if 1, then be determined as on
The multicast protocol message of report.
S530. according to type of message, the corresponding table item for sending filtering allocation list is searched, whether judges corresponding forwarding switch
It is enabled, if it is not, entering step S540;If so, entering step S550.
S540. by packet loss, terminate.
S550. judge whether corresponding VLAN ACTION switches enable, if so, entering step S560;Otherwise, into step
Rapid S570.
S560. according to the configuration content of corresponding list item, corresponding VLAN is added to event message, enters step S580.
S570. message is made no modifications, enters step S580.
S580. message transceiver module is passed to be sent out.
Shown in Figure 3, fifth embodiment of the invention provides a kind of processing system of protocol massages, is set to service board
In CPU, present treatment system includes transceiver module, packet filtering module, configuration module and at least one service protocol module.
Transceiver module is for receiving the protocol massages that main control unit issues.
Packet filtering module after being parsed to protocol massages for obtaining type of message, when the forwarding capability of protocol massages is
When enabled state, service board is stored in caching after being pre-processed to protocol massages, and packet storage information is stored in message queue
After notify the associated configuration module of the message queue or service protocol module, wherein each type of message correspond to a message
Queue.
Packet filtering module is additionally operable to when business disk startup initializes, and creates caching and message queue;And registration configuration
Association messages queue when module and service protocol module, and the configuration association list item in allocation list is filtered in the reception of establishment, association
List item includes type of message, forwarding switch, VLAN ACTION switches and VLAN ACTION operations.Wherein, forwarding switch includes
The enabled of forwarding capability either removes to enable VLAN ACTION switches to include that VLAN is pretreated enables or go to enable, VLAN
ACTION operations include VLAN strippings or VLAN transparent transmissions.
Protocol massages include configuration message and issuing service protocol massages, and issuing service protocol massages include multicast protocol report
Text, line identification protocol massages, RSTP protocol massages and ospf protocol message.
When the forwarding capability of issuing service protocol massages is to go enabled state, packet filtering module, which is additionally operable to abandon, issues industry
Business protocol massages.
On the basis of fifth embodiment of the invention, sixth embodiment of the invention provides a kind of processing system of protocol massages
System, when service protocol Module registers are to packet filtering module, packet filtering module is additionally operable to as disappearing associated by service protocol module
It ceases queue setting and receives flow allocation list, it includes type of message and message forwarding threshold value, packet filtering module to receive flow allocation list
Packet storage information is transmitted to the rate of each service protocol module according to the processing priority of setting and message forwarding threshold value.
Specifically, the processing priority of configuration message is higher than issuing service protocol massages, in issuing service protocol massages
Multicast protocol message, line identification protocol massages, RSTP protocol massages and ospf protocol message processing priority it is different or
It is identical.
On the basis of sixth embodiment of the invention, seventh embodiment of the invention provides a kind of processing system of protocol massages
System, protocol module further include event module, and event module is for generating event message and being sent to packet filtering module.
Packet filtering module is filtered according to the transmission of establishment and is configured for obtaining type of message after being parsed to event message
Table is sent to transceiver module after adding VLAN in event message.
Transceiver module is for by treated, event message to be sent to main control unit.
On the basis of seventh embodiment of the invention, eighth embodiment of the invention provides a kind of processing system of protocol massages
System, protocol massages further include reporting service protocol message, and it includes multicast protocol message, line identification association to report service protocol message
Message, RSTP protocol massages and ospf protocol message are discussed, multicast protocol module will be for that will report multicast protocol message to be sent to packet
Filtering module.
Packet filtering module after being parsed to the multicast protocol message reported for obtaining type of message, and the group that will be reported
It broadcasts protocol massages and is sent to transceiver module.
Transceiver module is used to the multicast protocol message reported being sent to main control unit.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention
Within the scope of.The content not being described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (16)
1. a kind of processing method of protocol massages, which is characterized in that it includes the following steps:
Service board obtains type of message after being parsed to the protocol massages that main control unit issues;
When the forwarding capability of the protocol massages issued is enabled state, service board pre-processes the protocol massages
Deposit caching afterwards, and packet storage information is stored in corresponding message queue, wherein each type of message corresponds to a message team
Row;
Simultaneously or after, according to the packet storage information extracted from message queue, obtained from caching pretreated described
Protocol massages are simultaneously handled.
2. the processing method of protocol massages as described in claim 1, it is characterised in that:The protocol massages include configuration message
With issuing service protocol massages, issuing service protocol massages include multicast protocol message, line identification protocol massages, RSTP agreements
Message and ospf protocol message.
3. the processing method of protocol massages as claimed in claim 2, it is characterised in that:Service board is in the reception being pre-created
It filters in allocation list, is each described type of message configuration association list item, the association list item includes the type of message, forwards and open
It closes, VLAN ACTION switches and VLAN ACTION operate;
The forwarding switch includes the enabled of forwarding capability or goes to enable;
The VLAN ACTION switches, which include that VLAN is pretreated, to be enabled or goes to enable;
VLAN ACTION operations include VLAN strippings or VLAN transparent transmissions;
When the VLAN ACTION switches of the protocol massages are pretreated enabled, the VLAN of the protocol massages is removed
After be stored in the caching;
When the VLAN ACTION switches of the protocol massages go enabled for pretreatment, the protocol massages are directly stored in institute
State caching.
4. the processing method of protocol massages as claimed in claim 3, it is characterised in that:When the issuing service protocol massages
Forwarding capability is when going enabled state, then to abandon the issuing service protocol massages.
5. the processing method of protocol massages as claimed in claim 2, it is characterised in that:Service board is preferential according to the processing of setting
Grade is extracted the packet storage information in each message queue and is handled.
6. the processing method of protocol massages as claimed in claim 4, it is characterised in that:The processing priority of the configuration message
Higher than the issuing service protocol massages, multicast protocol message, line identification agreement report in the issuing service protocol massages
Text, RSTP protocol massages are different or identical with the processing priority of ospf protocol message.
7. the processing method of protocol massages as described in claim 1, it is characterised in that:Service board is forwarded according to the message of setting
Threshold value is extracted the packet storage information in the corresponding message queue of each issuing service protocol massages and is carried out
Processing.
8. a kind of processing system of protocol massages is set to service board, it is characterised in that:The system comprises transceiver module, packets
Filtering module, configuration module and at least one service protocol module;
The transceiver module is for receiving the protocol massages that main control unit issues;
The packet filtering module after being parsed to the protocol massages for obtaining type of message, when turning for the protocol massages
When to send out function be enabled state, service board is stored in caching after being pre-processed to the protocol massages, and by packet storage information
The associated configuration module of the message queue or service protocol module are notified after deposit message queue, wherein each message
Type corresponds to a message queue;
The configuration module and each described each one message queue of auto correlation of service protocol module, the configuration module
It is used to extract the packet storage information from the associated message queue with service protocol module, and according to the message
Storage information obtains the pretreated protocol massages and is handled from caching.
9. the processing system of protocol massages as claimed in claim 8, it is characterised in that:The protocol massages include configuration message
With issuing service protocol massages, issuing service protocol massages include multicast protocol message, line identification protocol massages, RSTP agreements
Message and ospf protocol message.
10. the processing system of protocol massages as claimed in claim 9, it is characterised in that:The packet filtering module is additionally operable to
It is associated with the message queue when configuration module is with service protocol Module registers, and matches in allocation list is filtered in the reception of establishment
Association list item is set, the association list item includes the type of message, forwarding switch, VLAN ACTION switches and VLAN ACTION
Operation.
11. the processing system of protocol massages as claimed in claim 10, it is characterised in that:The forwarding switch includes forwarding work(
Can it is enabled or go to enable;
The VLAN ACTION switches, which include that VLAN is pretreated, to be enabled or goes to enable;
VLAN ACTION operations include VLAN strippings or VLAN transparent transmissions.
12. the processing system of protocol massages as claimed in claim 11, it is characterised in that:When the issuing service protocol massages
Forwarding capability be when going enabled state, the packet filtering module is additionally operable to abandon the issuing service protocol massages.
13. the processing system of protocol massages as claimed in claim 9, it is characterised in that:The packet filtering module is according to setting
Processing priority the packet storage information is transmitted to each protocol module;
The processing priority of the configuration message is higher than the issuing service protocol massages, in the issuing service protocol massages
Multicast protocol message, line identification protocol massages, RSTP protocol massages and ospf protocol message processing priority it is different or
It is identical.
14. the processing system of protocol massages as claimed in claim 13, it is characterised in that:The packet filtering module is additionally operable to
It is that the message queue setting associated by the service protocol module receives flow configuration when the service protocol Module registers
Table, it includes the type of message and message forwarding threshold value to receive flow allocation list, and the packet filtering module is according to the processing of setting
The packet storage information is transmitted to each service protocol module by priority and message forwarding threshold value.
15. such as the processing system of claim 8 to 14 any one of them protocol massages, it is characterised in that:The system is also wrapped
Include event module;
The event module is for generating event message and being sent to the packet filtering module;
The packet filtering module is additionally operable to obtain type of message after parsing the event message, according to being transmitted across for establishment
Allocation list is filtered, the transceiver module is sent to after adding VLAN in the event message;
The transceiver module is additionally operable to that the event message is sent to main control unit by treated.
16. the processing system of protocol massages as claimed in claim 15, it is characterised in that:The protocol massages further include reporting
Service protocol message;
The service protocol module will be for that will report service protocol message to be sent to the packet filtering module;
The packet filtering module be additionally operable to it is described report service protocol message to parse after obtain type of message, and will be described
Service protocol message is reported to be sent to the transceiver module;
The transceiver module is additionally operable to report service protocol message to be sent to main control unit by described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810366721.2A CN108768882A (en) | 2018-04-23 | 2018-04-23 | A kind of processing method and system of protocol massages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810366721.2A CN108768882A (en) | 2018-04-23 | 2018-04-23 | A kind of processing method and system of protocol massages |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108768882A true CN108768882A (en) | 2018-11-06 |
Family
ID=64011593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810366721.2A Pending CN108768882A (en) | 2018-04-23 | 2018-04-23 | A kind of processing method and system of protocol massages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108768882A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131932A (en) * | 2019-12-04 | 2020-05-08 | 广东东研网络科技股份有限公司 | Master-slave communication method in OLT system |
CN113194057A (en) * | 2020-01-14 | 2021-07-30 | 北京京东振世信息技术有限公司 | Data receiving, sending and interacting method and client based on AS2 |
CN113824631A (en) * | 2021-09-10 | 2021-12-21 | 烽火通信科技股份有限公司 | Message forwarding method and device, communication equipment and storage medium |
CN113852610A (en) * | 2021-09-06 | 2021-12-28 | 招银云创信息技术有限公司 | Message processing method and device, computer equipment and storage medium |
CN114390120A (en) * | 2022-01-04 | 2022-04-22 | 烽火通信科技股份有限公司 | Method and device for processing protocol frame |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296189A (en) * | 2008-06-25 | 2008-10-29 | 杭州华三通信技术有限公司 | Distributed stream processing network appliance and packet transmission method thereof |
US20100205612A1 (en) * | 2009-02-10 | 2010-08-12 | Jagjeet Bhatia | Method and apparatus for processing protocol messages for multiple protocol instances |
CN102143044A (en) * | 2010-08-12 | 2011-08-03 | 华为技术有限公司 | System and method for processing access network |
CN104468401A (en) * | 2014-11-20 | 2015-03-25 | 华为技术有限公司 | Message processing method and device |
CN105142183A (en) * | 2015-10-09 | 2015-12-09 | 烽火通信科技股份有限公司 | Method and system capable of automatically identifying WIFI data frame and dividing priority |
CN106385378A (en) * | 2016-08-31 | 2017-02-08 | 北京神州绿盟信息安全科技股份有限公司 | Processing method and device for controlling message in in-band management control |
-
2018
- 2018-04-23 CN CN201810366721.2A patent/CN108768882A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296189A (en) * | 2008-06-25 | 2008-10-29 | 杭州华三通信技术有限公司 | Distributed stream processing network appliance and packet transmission method thereof |
US20100205612A1 (en) * | 2009-02-10 | 2010-08-12 | Jagjeet Bhatia | Method and apparatus for processing protocol messages for multiple protocol instances |
CN102143044A (en) * | 2010-08-12 | 2011-08-03 | 华为技术有限公司 | System and method for processing access network |
CN104468401A (en) * | 2014-11-20 | 2015-03-25 | 华为技术有限公司 | Message processing method and device |
CN105142183A (en) * | 2015-10-09 | 2015-12-09 | 烽火通信科技股份有限公司 | Method and system capable of automatically identifying WIFI data frame and dividing priority |
CN106385378A (en) * | 2016-08-31 | 2017-02-08 | 北京神州绿盟信息安全科技股份有限公司 | Processing method and device for controlling message in in-band management control |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131932A (en) * | 2019-12-04 | 2020-05-08 | 广东东研网络科技股份有限公司 | Master-slave communication method in OLT system |
CN113194057A (en) * | 2020-01-14 | 2021-07-30 | 北京京东振世信息技术有限公司 | Data receiving, sending and interacting method and client based on AS2 |
CN113194057B (en) * | 2020-01-14 | 2023-06-27 | 北京京东振世信息技术有限公司 | AS 2-based data receiving, transmitting and interacting method and client |
CN113852610A (en) * | 2021-09-06 | 2021-12-28 | 招银云创信息技术有限公司 | Message processing method and device, computer equipment and storage medium |
CN113852610B (en) * | 2021-09-06 | 2024-03-05 | 招银云创信息技术有限公司 | Message processing method, device, computer equipment and storage medium |
CN113824631A (en) * | 2021-09-10 | 2021-12-21 | 烽火通信科技股份有限公司 | Message forwarding method and device, communication equipment and storage medium |
CN113824631B (en) * | 2021-09-10 | 2023-04-07 | 烽火通信科技股份有限公司 | Message forwarding method and device, communication equipment and storage medium |
CN114390120A (en) * | 2022-01-04 | 2022-04-22 | 烽火通信科技股份有限公司 | Method and device for processing protocol frame |
CN114390120B (en) * | 2022-01-04 | 2023-06-09 | 烽火通信科技股份有限公司 | Method and device for processing protocol frames |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108768882A (en) | A kind of processing method and system of protocol massages | |
US9641253B2 (en) | Data over cable service interface specification (DOCSIS) over passive optical network (PON) | |
CN101836399B (en) | Forwarding loop prevention apparatus and methods | |
US8711856B2 (en) | Method and device for processing broadcast packets/multicast control messages | |
EP1722520A4 (en) | A method for implementing multicast based on multiple service transmission plate | |
JP2004032780A (en) | Ethernet (r) passive light subscriber network system | |
CN101626323A (en) | Method and device for monitoring network data flow | |
JP2004343243A (en) | Multicast communication system and station side device in pon system | |
CN103023769A (en) | Method for forwarding two-layer broadcasting packets and untagged packets of ONU (optical network unit) | |
CN105207950A (en) | Communication data protection method based on SDN technology | |
CN102098166A (en) | Gigabit passive optical network system and controllable multicast implementation method thereof | |
CN100586077C (en) | Method for implementing intra-band management in ethernet passive optical network | |
CN101399820A (en) | Multicast service control method for Gbit Ethernet passive network system | |
CN101141323A (en) | Method, system and equipment for controlling connectivity detection | |
WO2014032574A1 (en) | Message processing device, method and system | |
CN101355585A (en) | System and method for protecting information of distributed architecture data communication equipment | |
CN101959087A (en) | Multicast processing method and device | |
CN101753456A (en) | Method and system for detecting flow of peer-to-peer network | |
WO2008055438A1 (en) | A bandwidth allocation method and device for the pon in which the different transmission rates coexist | |
Shan et al. | EPON upstream multiple access scheme | |
CN104539438B (en) | A kind of system and method for being used in PON system realize multicast service layering | |
CN101325460B (en) | Method for processing downstream broadcast and great-extension business of GPON system | |
CN104137444A (en) | Wavelength identification method, device, and system | |
CN202696628U (en) | Network optimization system | |
CN107979412B (en) | Optical network unit loop detection method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |
|
RJ01 | Rejection of invention patent application after publication |