CN102238062A - Exception handling method and system for network processor - Google Patents

Exception handling method and system for network processor Download PDF

Info

Publication number
CN102238062A
CN102238062A CN2010101558252A CN201010155825A CN102238062A CN 102238062 A CN102238062 A CN 102238062A CN 2010101558252 A CN2010101558252 A CN 2010101558252A CN 201010155825 A CN201010155825 A CN 201010155825A CN 102238062 A CN102238062 A CN 102238062A
Authority
CN
China
Prior art keywords
exception
unusual
abnormality processing
configuration
abnormality
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
Application number
CN2010101558252A
Other languages
Chinese (zh)
Inventor
姜海明
孔玲丽
孙蓓
陈春雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2010101558252A priority Critical patent/CN102238062A/en
Priority to PCT/CN2011/072960 priority patent/WO2011131114A1/en
Publication of CN102238062A publication Critical patent/CN102238062A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an exception handling method for a network processor. The method comprises the process of performing centralized handling on an exception message, and the process comprises the following steps of: setting an exception type mark; setting correspondence between the exception type mark and exception handling configuration; and querying the correspondence according to the exception type mark to obtain the exception handling configuration for exception handling. The invention also discloses an exception handling system for the network processor. By the method and the system, centralized configuration and management over various exception messages of the network processor can be realized, and the exception handling configuration for each exception message can be flexibly configured, thereby realizing the centralized handling of each exception message.

Description

A kind of network processing unit abnormality eliminating method and system
Technical field
The present invention relates to data communication field, relate in particular to a kind of network processing unit abnormality eliminating method and system.
Background technology
Network development speed now is surprising, and the growth of network traffics and the appearance of new business need the network equipment to have linear speed and flexible processing ability.Network processing unit relies on its high speed processing to reach programmability flexibly, has become the effective solution of data processing in the current network.
Network processing unit is in running, can receive various exception messages, such as Mac study, port migration, spanning-tree blocking abandon, message length surpasses MTU value (MTU) and wrong frame type (equaling Mac address, source etc. such as checksum mistake, purpose Mac address) etc. unusually.May need different processing policies to dissimilar exception messages, therefore, network processing unit is very crucial to the processing of exception message.
Summary of the invention
The main technical problem to be solved in the present invention is that a kind of network processing unit abnormality eliminating method and system that can carry out flexible configuration to all kinds of exception messages is provided.
For solving the problems of the technologies described above, the invention provides a kind of network processing unit abnormality eliminating method, comprise the process of exception message being carried out centralized processing, described process comprises:
The Exception Type sign is set;
Described Exception Type sign and abnormality processing configured corresponding relation are set;
Inquiring about described corresponding relation according to described Exception Type sign obtains described abnormality processing and disposes and carry out abnormality processing.
The described Exception Type sign that is provided with comprises unusual ID number that distribution is scheduled to Exception Type.
Described described Exception Type sign and the abnormality processing configured corresponding relation of being provided with comprise and being provided with unusual ID number and the correspondence table of abnormality processing configuration, and described abnormality processing configuration comprises and abandons configuration and/or speed limit setting and/or unusual statistics.
Describedly inquire about described corresponding relation according to described Exception Type sign and obtain described abnormality processing and dispose and carry out abnormality processing and comprise: the catching exception message; Determine unusual ID number; Correspondence table according to unusual ID number inquiry described unusual ID number and the configuration of described abnormality processing obtains described abnormality processing configuration; Carry out abnormality processing according to described abnormality processing configuration.
Comprise that also according to the Exception Type sign corresponding Exception Type counter being set counts, and adjust the process that described abnormality processing disposes according to the result and the CPU usage of counting.
A kind of network processing unit abnormality processing system is used for exception message is carried out centralized processing, comprises module and processing module are set, and the described module that is provided with is used to be provided with the Exception Type sign, Exception Type sign and abnormality processing configured corresponding relation are set; Described processing module is used for inquiring about described corresponding relation according to the Exception Type sign and obtains described abnormality processing and dispose and carry out abnormality processing.
The described Exception Type sign that is provided with comprises unusual ID number that distribution is scheduled to Exception Type.
Described described Exception Type sign and the abnormality processing configured corresponding relation of being provided with comprise and being provided with unusual ID number and the correspondence table of abnormality processing configuration, and described abnormality processing configuration comprises and abandons configuration and/or speed limit setting and/or unusual statistics.
Described processing module comprises exception catching unit, unusual configuration information acquiring unit and processing unit, described exception catching unit is used for the catching exception message, described unusual configuration information acquiring unit is used for determining unusual ID number, correspondence table according to unusual ID number inquiry described unusual ID number and the configuration of described abnormality processing obtains described abnormality processing configuration, and described processing unit is used for carrying out abnormality processing according to described abnormality processing configuration.
Described processing unit also comprises unusual statistics subelement, and described unusual statistics subelement is used for according to the Exception Type sign corresponding Exception Type counter being set to be counted, and adjusts described abnormality processing configuration according to the result and the CPU usage of counting.
The invention has the beneficial effects as follows:
(1) in the embodiment of the present invention, exception message is focused on, by the Exception Type sign is set, Exception Type sign and abnormality processing configured corresponding relation system is set, obtain the abnormality processing configuration according to Exception Type sign inquiry corresponding relation, and exception message is handled according to this abnormality processing configuration.All kinds of exception messages to network processing unit carry out the centralized configuration management, can dispose the abnormality processing configuration of all kinds of exception messages neatly, thereby all kinds of exception messages are carried out centralized processing.
(2) in the embodiment of the present invention, the Exception Type sign is set comprises that by exception message being set in advance unusual ID number, all kinds of exception messages are configured, method is simple, benefits realization unusual ID number that distribution is scheduled to Exception Type.
(3) in the embodiment of the present invention, create unusual allocation list, all kinds of exception messages of network processing unit are carried out the centralized configuration management, can revise the processing configuration of all kinds of exception messages neatly by the correspondence table of unusual configuration.
(4) in the embodiment of the present invention, according to the Exception Type sign corresponding Exception Type counter is set, to all kinds of exception message countings, the abnormality of record and monitor network can provide real-time statistical information for webmaster, the network manager can be according to the abnormal flow statistical information, the specific exceptions message is carried out traffic monitoring, prevent from CPU is impacted, controlled various exception message flows effectively, reduce cpu busy percentage, guarantee that CPU is working properly.
Description of drawings
Fig. 1 is the structural representation of a kind of execution mode in the system of the present invention;
Fig. 2 is the structural representation of another kind of execution mode in the system of the present invention;
Fig. 3 is the flow chart of a kind of implementation method in the inventive method;
Fig. 4 is the flow chart of another kind of execution mode in the inventive method.
Embodiment
In conjunction with the accompanying drawings the present invention is described in further detail below by embodiment.
As shown in Figure 1 and Figure 2, network processing unit abnormality processing system of the present invention, be used for exception message is carried out centralized processing, its a kind of execution mode, comprise module and processing module are set, module is set is used to be provided with the Exception Type sign, Exception Type sign and abnormality processing configured corresponding relation are set; Processing module is used for obtaining abnormality processing according to Exception Type sign inquiry corresponding relation and disposes and carry out abnormality processing.
The Exception Type sign is set to be comprised unusual ID number that distribution is scheduled to Exception Type.
Exception Type sign and abnormality processing configured corresponding relation are set comprise the correspondence table that the configuration of unusual ID number and abnormality processing is set, the abnormality processing configuration comprises and abandons configuration and/or speed limit setting and/or unusual statistics.In one embodiment, can be when initialization the correspondence table of arrangement abnormalities configuration, set the default policy of all kinds of exception messages.As port migration message, can be set to direct transmitted to CPU; The message of IP checksum mistake can directly abandon; Can also distribute counter to certain class exception message, such is added up unusually.
Processing module comprises exception catching unit, unusual configuration information acquiring unit and exception processing unit, the exception catching unit is used for the catching exception message, unusual configuration information acquiring unit is used for determining unusual ID number, according to inquiring about for unusual ID number unusual ID number and the correspondence table of abnormality processing configuration obtains the abnormality processing configuration, exception processing unit is used for according to abnormality processing configuration and carries out abnormality processing.
Exception processing unit can comprise the statistics subelement, adds up subelement unusually and is used for according to the Exception Type sign corresponding Exception Type counter being set and counts, and adjust the abnormality processing configuration according to the result and the CPU usage of counting.
Exception processing unit can also comprise the speed limit subelement, when certain class exception message of unusual statistics subelement statistics reaches predetermined threshold, revises such unusual policy configurations.Specifically can search and revise corresponding abnormality processing configuration by unusual ID number and corresponding relation.
Exception processing unit can also comprise and abandons subelement, is used for when the abnormality processing configuration of certain class exception message is set to abandon configuration such exception message being abandoned.
Exception processing unit can also comprise and report subelement that the exception message that is used for not abandoning unusually reports CPU.
In the network processing unit operate as normal, can revise the unusual abnormality processing configuration of certain class as required neatly.As sending the excessive CPU of the causing packet receiving of flow formation congested owing on the exception message, when CPU usage is too high, can determine which class exception message causes that CPU is busy excessively by unusual statistics subelement, revise such unusual abnormality processing configuration by unusual ID number, be provided with such unusual speed limit, thereby reduce the flow of such unusual transmitted to CPU.
As shown in Figure 3, network processing unit abnormality eliminating method of the present invention, its a kind of execution mode comprises the process of exception message being carried out centralized processing, described process comprises:
Step 302: the Exception Type sign is set.
Step 304: described Exception Type sign and abnormality processing configured corresponding relation are set.
Step 306: inquire about described corresponding relation according to described Exception Type sign and obtain described abnormality processing and dispose and carry out abnormality processing.
As shown in Figure 4, network processing unit abnormality eliminating method of the present invention specifically may further comprise the steps:
Step 402: catching exception message; After producing exception message, the exception catching elements capture is to such exception message.
Step 404: determine unusual ID number; Can allocate in advance by system for unusual ID number.
Step 406: obtain unusual configuration; Unusual configuration information acquiring unit is according to this unusual ID, and the correspondence table of searching unusual configuration is obtained the abnormality processing configuration of this exception message, abnormality processing dispose comprise abandon configuration, whether speed limit, whether add up.In one embodiment, can be when initialization the correspondence table of arrangement abnormalities configuration, set the default policy of all kinds of exception messages.As port migration message, can be set to direct transmitted to CPU; The message of IP checksum mistake can directly abandon; Can also distribute counter to certain class exception message, such is added up unusually.
Step 408: judge whether to abandon; If do not abandon, change step 410, otherwise, abandon subelement exception message is abandoned, change step 424.
Step 410: judge whether the arrangement abnormalities speed limit; If unusual speed limit is not set, changes step 414, otherwise change step 412.
Step 412: enter unusual speed limit subelement, exception message is carried out speed limit handle.
Step 414: judge whether the arrangement abnormalities statistics; If unusual statistics is not set, changes step 418, otherwise change step 416
Step 416: enter unusual statistics subelement, exception message is added up, store all kinds of unusual statisticss.
Step 418: judge whether to adjust the abnormality processing configuration; Statistical magnitude according to exception message judges whether the configuration of needs adjustment abnormality processing, and after the abnormality processing configuration was adjusted, circulation next time can be disposed by new abnormality processing and be handled exception message.In one embodiment, the predetermined threshold of exception message quantity can be set as required, reach predetermined threshold, then need adjust the abnormality processing configuration, change step 420 as the quantity of exception message of statistics; As do not reach predetermined threshold, and then need not to adjust the abnormality processing configuration, change step 422.
Step 420: adjust the abnormality processing configuration; Specifically can in the correspondence table of unusual configuration, find the abnormality processing of such exception message to dispose, and this abnormality processing configuration is made amendment by unusual ID number of this exception message according to its corresponding relation.In the network processing unit operate as normal, can revise the unusual abnormality processing configuration of certain class as required neatly.As sending the excessive CPU of the causing packet receiving of flow formation congested owing on the exception message, when CPU usage is too high, can determine which class exception message causes that CPU is busy excessively by unusual statistics subelement, revise such unusual abnormality processing configuration by unusual ID number, be provided with such unusual speed limit, thereby reduce the flow of such unusual transmitted to CPU.
Step 422: exception message is reported CPU; The outlet of appointment exception message reports subelement that exception message is reported CPU.
Step 424: finish.
In this flow process, judge whether to abandon, whether the arrangement abnormalities speed limit, whether the arrangement abnormalities statistics, whether adjust the abnormality processing configuration and can there is no fixing sequencing, can adjust its order as required.
Above content be in conjunction with concrete execution mode to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (10)

1. a network processing unit abnormality eliminating method is characterized in that, comprises the process of exception message being carried out centralized processing, and described process comprises:
The Exception Type sign is set;
Described Exception Type sign and abnormality processing configured corresponding relation are set;
Inquiring about described corresponding relation according to described Exception Type sign obtains described abnormality processing and disposes and carry out abnormality processing.
2. network processing unit abnormality eliminating method as claimed in claim 1 is characterized in that, the described Exception Type sign that is provided with comprises unusual ID number that distribution is scheduled to Exception Type.
3. network processing unit abnormality eliminating method as claimed in claim 2, it is characterized in that, described described Exception Type sign and the abnormality processing configured corresponding relation of being provided with comprise and being provided with unusual ID number and the correspondence table of abnormality processing configuration, and described abnormality processing configuration comprises and abandons configuration and/or speed limit setting and/or unusual statistics.
4. network processing unit abnormality eliminating method as claimed in claim 3 is characterized in that, describedly inquires about described corresponding relation according to described Exception Type sign and obtains described abnormality processing and dispose and carry out abnormality processing and comprise:
The catching exception message;
Determine unusual ID number;
Correspondence table according to unusual ID number inquiry described unusual ID number and the configuration of described abnormality processing obtains described abnormality processing configuration;
Carry out abnormality processing according to described abnormality processing configuration.
5. as each described network processing unit abnormality eliminating method in the claim 1 to 4, it is characterized in that, comprise that also according to the Exception Type sign corresponding Exception Type counter being set counts, and adjust the process that described abnormality processing disposes according to the result and the CPU usage of counting.
6. network processing unit abnormality processing system, it is characterized in that, be used for exception message is carried out centralized processing, comprise module and processing module are set, the described module that is provided with is used to be provided with the Exception Type sign, Exception Type sign and abnormality processing configured corresponding relation is set; Described processing module is used for inquiring about described corresponding relation according to the Exception Type sign and obtains described abnormality processing and dispose and carry out abnormality processing.
7. network processing unit abnormality processing system as claimed in claim 6 is characterized in that, the described Exception Type sign that is provided with comprises unusual ID number that distribution is scheduled to Exception Type.
8. network processing unit abnormality processing system as claimed in claim 7, it is characterized in that, described described Exception Type sign and the abnormality processing configured corresponding relation of being provided with comprise and being provided with unusual ID number and the correspondence table of abnormality processing configuration, and described abnormality processing configuration comprises and abandons configuration and/or speed limit setting and/or unusual statistics.
9. network processing unit abnormality processing system as claimed in claim 8, it is characterized in that, described processing module comprises exception catching unit, unusual configuration information acquiring unit and processing unit, described exception catching unit is used for the catching exception message, described unusual configuration information acquiring unit is used for determining unusual ID number, correspondence table according to unusual ID number inquiry described unusual ID number and the configuration of described abnormality processing obtains described abnormality processing configuration, and described processing unit is used for carrying out abnormality processing according to described abnormality processing configuration.
10. as each described network processing unit abnormality processing system in the claim 6 to 9, it is characterized in that, described processing unit also comprises unusual statistics subelement, described unusual statistics subelement is used for according to the Exception Type sign corresponding Exception Type counter being set to be counted, and adjusts described abnormality processing configuration according to the result and the CPU usage of counting.
CN2010101558252A 2010-04-20 2010-04-20 Exception handling method and system for network processor Pending CN102238062A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010101558252A CN102238062A (en) 2010-04-20 2010-04-20 Exception handling method and system for network processor
PCT/CN2011/072960 WO2011131114A1 (en) 2010-04-20 2011-04-18 Exception processing method and system for network processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101558252A CN102238062A (en) 2010-04-20 2010-04-20 Exception handling method and system for network processor

Publications (1)

Publication Number Publication Date
CN102238062A true CN102238062A (en) 2011-11-09

Family

ID=44833713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101558252A Pending CN102238062A (en) 2010-04-20 2010-04-20 Exception handling method and system for network processor

Country Status (2)

Country Link
CN (1) CN102238062A (en)
WO (1) WO2011131114A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101604A1 (en) * 2014-12-23 2016-06-30 中兴通讯股份有限公司 Method and apparatus for handling exception message
CN107404494A (en) * 2017-08-21 2017-11-28 北京奇安信科技有限公司 Abnormal events information processing method and processing device
CN108322332A (en) * 2017-12-28 2018-07-24 贵阳忆联网络有限公司 A kind of data disaster response system and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115203292B (en) * 2022-09-15 2022-11-25 昆仑智汇数据科技(北京)有限公司 Data processing method, device and equipment for industrial equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022343A (en) * 2007-03-19 2007-08-22 杭州华为三康技术有限公司 Network invading detecting/resisting system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325534A (en) * 2007-06-15 2008-12-17 上海亿人通信终端有限公司 Method for implementing access control list based on network processor
CN101175033B (en) * 2007-11-27 2010-06-16 中兴通讯股份有限公司 Message order-preserving method and device thereof
JP5222002B2 (en) * 2008-04-03 2013-06-26 株式会社オートネットワーク技術研究所 In-vehicle relay connection unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022343A (en) * 2007-03-19 2007-08-22 杭州华为三康技术有限公司 Network invading detecting/resisting system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101604A1 (en) * 2014-12-23 2016-06-30 中兴通讯股份有限公司 Method and apparatus for handling exception message
CN107404494A (en) * 2017-08-21 2017-11-28 北京奇安信科技有限公司 Abnormal events information processing method and processing device
CN107404494B (en) * 2017-08-21 2020-04-21 奇安信科技集团股份有限公司 Abnormal event information processing method and device
CN108322332A (en) * 2017-12-28 2018-07-24 贵阳忆联网络有限公司 A kind of data disaster response system and method

Also Published As

Publication number Publication date
WO2011131114A1 (en) 2011-10-27

Similar Documents

Publication Publication Date Title
US9906495B2 (en) Network device implementing two-stage flow information aggregation
US11381452B2 (en) Network slicing method and system
EP1573966B1 (en) Adaptive classification of network traffic
EP3033860B1 (en) Transparent software-defined network management
US20140269435A1 (en) Distributed Network Billing In A Datacenter Environment
CN1534927A (en) Local guarantee management apparatus of equipment parts used in communication network
US20150215228A1 (en) Methods, systems, and computer readable media for a cloud-based virtualization orchestrator
US20240121202A1 (en) Traffic scheduling method and apparatus, and electronic device and computer-readable medium
US8208395B2 (en) System and method for measuring interface utilization using policers
CN111092840B (en) Processing strategy generation method, system and storage medium
CN103150241B (en) Multiserver state monitoring and management system and method
CN102238062A (en) Exception handling method and system for network processor
WO2020083301A1 (en) Network slice method, computer device and storage medium
US20060149841A1 (en) Application session management for flow-based statistics
US11689467B2 (en) QOS policy provisioning on resource constrained network devices
CN108809752B (en) Adaptive monitoring method and device for network traffic, NPB (network provider node B) equipment and medium
CN101977142A (en) Simple network management method and device based on multiple routing protocol instances
WO2016109970A1 (en) Network entity and service policy management method
EP2830259B1 (en) Method and system for managing end-to-end service performance based on threshold, and network manager
CN103200585B (en) Signaling traffic subsystem, extension counter treatment system and method
CN103580959A (en) Distributed statistical reporting implementation method
CN100473238C (en) Method for counting base station performance data
KR100934714B1 (en) Stepwise flow information based network traffic monitoring system
EP1494389B1 (en) Centralized IGMP GMQ timing
WO2022253164A1 (en) Method and system for analyzing base station performance, electronic device, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111109