CN101350744B - Method for detecting descriptor resource of network processing system and system thereof - Google Patents
Method for detecting descriptor resource of network processing system and system thereof Download PDFInfo
- Publication number
- CN101350744B CN101350744B CN 200810067974 CN200810067974A CN101350744B CN 101350744 B CN101350744 B CN 101350744B CN 200810067974 CN200810067974 CN 200810067974 CN 200810067974 A CN200810067974 A CN 200810067974A CN 101350744 B CN101350744 B CN 101350744B
- Authority
- CN
- China
- Prior art keywords
- descriptor
- address
- message
- resource
- address information
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a detection method of descriptor resources of network processing system, and a system thereof. The method comprises the following steps: A, continuously acquiring a plurality of message descriptors from the descriptor linked list in the fixed time; and B, analyzing the address information of the message descriptors, and judging whether the address information is normal. If the address information is abnormal, the technical proposal which is used for storing the descriptor linked list fills in a blind spot of the detection method of the network processing system. The method can timely detect the possible abnormity of the descriptor resources in the network processing system. If the message descriptor resources are exhausted, the descriptor linking relationships are mixed, or other serious failures occur, the corresponding protective measures are taken. Therefore, the method greatly improves the reliability of the equipment of the network system, and prevents the paralysis of the network processing system and the long-term interruption of the business.
Description
Technical field
The present invention relates to the detection technique of network processes resource, relate in particular to the network processing unit that is exclusively used in network processes and descriptor resource detection method and the system thereof of polycaryon processor system.
Background technology
In the present communication network and wireless product, use network processing unit and polycaryon processor as Universal interface board and Protocol Processing Board in a large number.These processors aim at the network application design, can realize real-time processing and the surface speed forwarding of user's message.The inner message descriptors convey message information that uses of network processing system, the message descriptor namely points to the pointer address of packet buffer, wherein comprises some basic parameters that need in the message processing procedure, as information such as type of message, message length, skew bytes.Need before system's operation to distribute one section memory headroom as message descriptor space in advance, and the message descriptor links formation descriptor chained list one by one, and the network-specific processor chips are inner, and generally all being integrated with relevant hardware cell realizes this descriptor chain list structure.When receiving a message from network interface, just need corresponding message descriptor of application from the descriptor chained list, when message forwards through network processing system or abandons according to certain strategy, then need descriptor is discharged back the descriptor chained list.
The descriptor chained list resource of network processing system is generally organized with stack or formation mode, the application of message descriptor, discharge direct control descriptor chained list, so the use of descriptor chained list resource overall process that message is handled in the adjoint network treatment system all the time, because the complexity of network processing unit multithreading and polycaryon processor multi-CPU system in the network processing system, there are not ready-made memory testing tool and method to find internal memory leakage problem potential in the network processing system at present, will cause the unusual of descriptor resource in case descriptor leakage or queue operation mistake occur, situations such as the confusion that link concerns as descriptor or descriptor resource exhaust, this class unusually often is difficult in time find and the location, will directly cause the paralysis of network processing system to be interrupted for a long time with professional like this.
Therefore, there is certain defective in the prior art, needs further to improve.
Summary of the invention
The detection method and the system thereof that the purpose of this invention is to provide descriptor resource in a kind of network processing system, it can detect the unusual of descriptor resource rapidly, effectively network processing system is carried out real-time guard.
For achieving the above object, the present invention takes following technical scheme:
The invention provides the detection method of descriptor resource in a kind of network processing system, said method comprising the steps of:
A plurality of message descriptors are obtained in A, timing continuously from the descriptor chained list;
The address information of B, the described a plurality of message descriptors of analysis, and judge whether described address information is normal, if described address information is undesired, judge that then there are abnormal conditions in the descriptor resource that is used for the described descriptor chained list of storage.
Wherein, described method is further comprising the steps of:
C, after judging that there are abnormal conditions in descriptor resource, then initiate the main preparation system plate and switch, and the current system that resets.
Wherein, the abnormal situation of described address information comprises: described a plurality of message descriptor address are consistent and equal descriptor chained list afterbody address, and described a plurality of message descriptor address are vibrated between several descriptor address, and perhaps described a plurality of message descriptor address is illegal.
Wherein, among the described step B, the address information analysis of described a plurality of message descriptors and deterministic process comprise in following three optional steps at least:
Whether consistent and equal descriptor chained list afterbody address S1, by judging described a plurality of message descriptor address judge the abnormal conditions that whether exist descriptor resource to exhaust;
S2, whether between several descriptor address, vibrate by judging described a plurality of message descriptor address, judge whether there are the chaotic abnormal conditions of descriptor link relation;
S3, by judging whether described a plurality of message descriptor address illegal, judges the abnormal conditions that whether exist descriptor address illegal.
The present invention also provides a kind of network processing system with descriptor resource measuring ability, it comprises: main control module, shared drive and at least one business module, described main control module links to each other with described at least one business module by internal bus with shared drive, and described business module links to each other with network by network interface; Described system also comprises:
Timing unit, this unit are used for recording default sense cycle, when sense cycle is preset in arrival, trigger described main control module and apply for a plurality of message descriptors continuously from the descriptor chained list of described shared drive, and obtain corresponding message descriptor address information; And
Identifying unit, this unit is used for analyzing the address information of described a plurality of message descriptors, and judges whether described address information is normal, when described address information is undesired, provides the command information that there are abnormal conditions in descriptor resource.
Wherein, described timer units and described identifying unit are arranged in the described main control module.
Wherein, the abnormal situation of described address information comprises: described a plurality of message descriptor address are consistent and equal descriptor chained list afterbody address, described a plurality of message descriptor address is vibrated between several descriptor address, and perhaps described a plurality of message descriptor address is illegal.
Wherein, described identifying unit comprises in following three selectable units one at least:
Be used for by judging that described a plurality of message descriptor address is whether consistent and equal descriptor chained list afterbody address, judges the unit that whether exists descriptor resource to exhaust;
Be used for by judging whether described a plurality of message descriptor address vibrates between several descriptor address, judge whether have the chaotic unit of descriptor link relation;
Be used for by judging whether described a plurality of message descriptor address is illegal, judges the unit that whether exists descriptor address illegal.
Wherein, described default sense cycle is at least a second level.
Wherein, described identifying unit triggers described main control module by described command information and initiates to be used for that the main preparation system plate is switched and the order of the current system that resets when judging that there are abnormal conditions in descriptor resource.
Adopt technical scheme of the present invention; filled up a blind spot of the general detection means of network processing system; can in time detect the unusual of the descriptor resource that may occur in the network processing system; as the message descriptor resource exhaust, catastrophe failure such as descriptor link concerns confusion; and take corresponding safeguard measure; thereby improved the reliability of network system equipment greatly, avoided the paralysis of network processing system to interrupt for a long time with professional.
Description of drawings
Fig. 1 is the composition structural representation of network processing system among the present invention;
Fig. 2 realizes the process schematic diagram that descriptor chained list resource detects for the present invention;
Fig. 3 realizes the specific implementation process schematic diagram that descriptor chained list resource detects for the present invention.
Embodiment
Describe technical scheme of the present invention in detail below in conjunction with accompanying drawing.
The detection method of descriptor resource in a kind of network processing system provided by the present invention, mainly be at network processor system, as shown in Figure 1, this network processing system mainly comprises main control module 101, shared drive, at least one business module (as the business module 102,103 among Fig. 1) and other peripheral cell composition, described main control module 101 links to each other with described at least one business module by internal bus with shared drive, and described business module links to each other with network by network interface.The network processing system here typically refers to Universal interface board and the Protocol Processing Board of network processing unit and polycaryon processor conduct, contains the descriptor chained list resource that the present invention need detect in the shared drive.
In order to detect the descriptor resource situation of system shown in Figure 1, the present invention mainly in the following ways: at first, regularly from the descriptor chained list, obtain a plurality of message descriptors continuously; Then, analyze the address information of described a plurality of message descriptors, and judge whether described address information is normal, if described address information is undesired, judge that then there are abnormal conditions in the descriptor resource that is used for the described descriptor chained list of storage, if described address information is normal, then correct message descriptor is discharged back the descriptor chained list.Here the abnormal conditions that refer to are that descriptor link relation is chaotic, descriptor resource exhausts or descriptor address is illegal; and after judging that there are abnormal conditions in descriptor resource; can switch (generally by initiating the main preparation system plate; network processing system all contains the cover back-up system plate identical with main system board; this is method commonly used in the prior art), and the measure of the current system that resets comes network processing system is protected.Corresponding with abnormal conditions, the abnormal situation of described address information comprises: described a plurality of message descriptor address are consistent and equal descriptor chained list afterbody address, described a plurality of message descriptor address is vibrated between several descriptor address, and perhaps described a plurality of message descriptor address is illegal.
Said process relates to the address information according to a plurality of message descriptors, judges whether descriptor resource exists the process of abnormal conditions, and for example it can comprise following three determining steps:
The first, whether consistent and equal descriptor chained list afterbody address by judging described a plurality of message descriptor address, can judge the abnormal conditions that whether exist descriptor resource to exhaust;
The second, whether between several descriptor address, vibrate by judging described a plurality of message descriptor address, can judge whether there are the chaotic abnormal conditions of descriptor link relation;
The 3rd, whether illegal by judging described a plurality of message descriptor address, can judge the abnormal conditions that whether exist descriptor address illegal.
The determining step of above-mentioned three kinds of abnormal conditions when analyzing the address information of described a plurality of message descriptors, can selectively use, and still, should will comprise a kind of determining step of abnormal conditions among the present invention at least.As long as judge that a kind of abnormal conditions appear in descriptor resource, then can start the safeguard measure of postorder, namely initiate active and standby network processing system and switch, and the current system that resets; But, if it is any unusual to prove that descriptor resource does not occur, then need the conclusion of above-mentioned at least one determining step to be not, in addition, in the process of analyzing a plurality of message descriptor address information, if use above-mentioned three determining steps as judging that the foundation of abnormal conditions appears in descriptor resource, then can improve effectively detection accuracy, make detect perfectly safe.
As shown in Figure 2, provided a kind of at the system shown in Figure 1 structure and adopt the specific implementation process of the detection method of description of the invention symbol resource, as follows:
Step 200: when network processing system starts, by main control module initialization descriptor chained list, and second timing unit of level is set, is used for the default sense cycle of record;
Step 201: after the network processing system work, when the sense cycle that main control module sets in advance at timing unit arrives, apply for a plurality of message descriptors continuously from the descriptor chained list;
Step 202: whether the descriptor address of application relatively continuously, and judge whether it is illegal, whether vibrates between several descriptor address is consistent and equal descriptor chained list afterbody address;
If above-mentioned three judgements are not, then legal descriptor is discharged back the descriptor chained list, get back to step 201; If a conclusion is arranged for being in above-mentioned three judgements, think that then abnormal conditions appear in descriptor resource in the system, put the descriptor abnormality mark;
Step 203: if the set of descriptor abnormality mark, then main control module initiation main preparation system plate is switched, and system is resetted.
In network processing system, often there are a plurality of descriptor chained lists, so can when its sense cycle that sets in advance arrives, require network processing system successively a plurality of descriptor chained lists to be detected, and report examining report by setting a timing unit; Perhaps, adopt parallel processing mechanism, respectively a plurality of descriptor chained lists are detected.
According to implementation process shown in Figure 2, the present invention also provides a kind of network processing system with descriptor resource measuring ability, this system is on existing system configuration basis shown in Figure 1, increased by a timing unit, this unit is used for the default sense cycle of record, when sense cycle is preset in arrival, trigger described main control module and from the descriptor chained list of described shared drive, apply for a plurality of message descriptors continuously, and obtain corresponding message descriptor address information; An and identifying unit, this unit is used for analyzing the address information of described a plurality of message descriptors, and judge whether described address information is normal, when described address information is undesired, (this command information can be a kind of abnormality sign to provide the command information that there are abnormal conditions in descriptor resource, to be specifically described it following), in addition, identifying unit can also be when judging that there are abnormal conditions in descriptor resource, triggers described main control module by described command information and initiate to be used for that the main preparation system plate is switched and the order of the current system that resets.Here said timing unit is the same with the said timing unit effect of Fig. 2, and it mainly is in order to record sense cycle, and triggers detection method flow process of the present invention; This timing unit can be arranged in original main control module, uses the system timer in the main control module or adopts the mode of software programming to realize clocking capability.Described default sense cycle is at least a second level, is for fear of the long abnormal conditions that cause in time detecting descriptor resource of sense cycle, causes the paralysis that can't avoid network processing system effectively to be interrupted for a long time with professional.
Identifying unit in the said system can be arranged in original main control module, and the realization by software programming makes main control module have its same function.This identifying unit is corresponding to above-mentioned detection method, and it comprises in following three selectable units one at least:
Be used for by judging that described a plurality of message descriptor address is whether consistent and equal descriptor chained list afterbody address, judges the unit that whether exists descriptor resource to exhaust;
Be used for by judging whether described a plurality of message descriptor address vibrates between several descriptor address, judge whether have the chaotic unit of descriptor link relation;
Be used for by judging whether described a plurality of message descriptor address is illegal, judges the unit that whether exists descriptor address illegal.
Below illustrate method and system of the present invention and how to realize timely detection to descriptor resource.
In the CDMA2000 packet switching system, its R-P interface is that wireless network is (as the PCF Packet Control Function, PCF is the abbreviation of Packet Control Function) and the PDSN of Packet Data Network (Packet Data Serving Node) between interface, PCF side joint oralia and user plane protocol disposable plates generally all use the network processing unit of special use to realize packet data processes fast.For PCF interface board and user plane protocol disposable plates, can be abstracted into system configuration shown in Figure 1, system comprises main control module 101 and a plurality of Service Processing Module (102,103), wherein main control module is realized at the CPU of network processing unit, finish the processing of the powering on of whole system, configuration and control plane, business module is realized at the micro engine of network processing unit, finishes quick forwarding and the protocol processes of network system service message.
Be example with the PCF interface board, adopt method of the present invention to realize that the descriptor resource of network system runtime detects, need set up two descriptor chained lists, be respectively applied to that the regular traffic message is transmitted and fragment message reorganization processing.As shown in Figure 3,
When step 301, main control module arrive at timer time, from current descriptor chained list, apply for a plurality of message descriptors continuously, and obtain its address information;
Whether step 304, master control module judges exist descriptor resource to exhaust;
Whether step 306, master control module judges exist descriptor link relation chaotic;
In sum; network processing system descriptor resource detection method proposed by the invention is effectively simple and extensively suitable; the descriptor resource that may occur in can rapid detection system exhausts or the linking relationship serious system failure such as disorderly; guarantee reliability and the availability of traffics of system in conjunction with other salvos such as masterslave switchovers, guarantee not can be because of fault the interrupt network business.The present invention has applicability widely, and it is general to can be heterogeneous networks treatment system institute.
Illustrating of above-mentioned each concrete steps is comparatively concrete, can not therefore think the restriction to scope of patent protection of the present invention, and scope of patent protection of the present invention should be as the criterion with claims.
Claims (10)
1. the detection method of descriptor resource in the network processing system is used for network processing unit and the polycaryon processor system of network processes, it is characterized in that, said method comprising the steps of:
A plurality of message descriptors are obtained in A, timing continuously from the descriptor chained list;
The address information of B, the described a plurality of message descriptors of analysis, and judge whether described address information is normal, if described address information is undesired, judge that then there are abnormal conditions in the descriptor resource that is used for the described descriptor chained list of storage; If described address information is normal, then correct message descriptor is discharged back the descriptor chained list.
2. method according to claim 1 is characterized in that, described method is further comprising the steps of:
C, after judging that there are abnormal conditions in descriptor resource, then initiate the main preparation system plate and switch, and the current system that resets.
3. method according to claim 1 and 2, it is characterized in that, among the described step B, the abnormal situation of described address information comprises: described a plurality of message descriptor address are consistent and equal descriptor chained list afterbody address, described a plurality of message descriptor address is vibrated between several descriptor address, and perhaps described a plurality of message descriptor address is illegal.
4. method according to claim 3 is characterized in that, among the described step B, the address information analysis of described a plurality of message descriptors and deterministic process comprise in following three optional steps at least:
Whether consistent and equal descriptor chained list afterbody address S1, by judging described a plurality of message descriptor address judge the abnormal conditions that whether exist descriptor resource to exhaust;
S2, whether between several descriptor address, vibrate by judging described a plurality of message descriptor address, judge whether there are the chaotic abnormal conditions of descriptor link relation;
S3, by judging whether described a plurality of message descriptor address illegal, judges the abnormal conditions that whether exist descriptor address illegal.
5. network processing system with descriptor resource measuring ability, the network processing unit and the polycaryon processor system that are used for network processes, it comprises: main control module, shared drive and at least one business module, described main control module links to each other with described at least one business module by internal bus with shared drive, and described business module links to each other with network by network interface; It is characterized in that described system also comprises:
Timing unit, this unit are used for recording default sense cycle, when sense cycle is preset in arrival, trigger described main control module and apply for a plurality of message descriptors continuously from the descriptor chained list of described shared drive, and obtain corresponding message descriptor address information; And
Identifying unit, this unit is used for analyzing the address information of described a plurality of message descriptors, and judges whether described address information is normal, when described address information is undesired, provides the command information that there are abnormal conditions in descriptor resource; If described address information is normal, then correct message descriptor is discharged back the descriptor chained list.
6. system according to claim 5 is characterized in that, described identifying unit triggers described main control module by described command information and initiates to be used for that the main preparation system plate is switched and the order of the current system that resets when judging that there are abnormal conditions in descriptor resource.
7. system according to claim 6 is characterized in that, described timing unit and described identifying unit are arranged in the described main control module.
8. according to claim 5,6 or 7 described systems, it is characterized in that, the abnormal situation of described address information comprises: described a plurality of message descriptor address are consistent and equal descriptor chained list afterbody address, described a plurality of message descriptor address is vibrated between several descriptor address, and perhaps described a plurality of message descriptor address is illegal.
9. system according to claim 8 is characterized in that, described identifying unit comprises in following three selectable units at least:
Be used for by judging that described a plurality of message descriptor address is whether consistent and equal descriptor chained list afterbody address, judges the unit that whether exists descriptor resource to exhaust;
Be used for by judging whether described a plurality of message descriptor address vibrates between several descriptor address, judge whether have the chaotic unit of descriptor link relation;
Be used for by judging whether described a plurality of message descriptor address is illegal, judges the unit that whether exists descriptor address illegal.
10. system according to claim 5 is characterized in that, described default sense cycle is at least a second level.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810067974 CN101350744B (en) | 2008-06-19 | 2008-06-19 | Method for detecting descriptor resource of network processing system and system thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810067974 CN101350744B (en) | 2008-06-19 | 2008-06-19 | Method for detecting descriptor resource of network processing system and system thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101350744A CN101350744A (en) | 2009-01-21 |
CN101350744B true CN101350744B (en) | 2013-08-07 |
Family
ID=40269340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810067974 Expired - Fee Related CN101350744B (en) | 2008-06-19 | 2008-06-19 | Method for detecting descriptor resource of network processing system and system thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101350744B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110535790B (en) * | 2019-08-23 | 2022-03-18 | 天津芯海创科技有限公司 | Method for processing abnormal message of exchange chip based on semaphore |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1786926A (en) * | 2004-12-07 | 2006-06-14 | 华为技术有限公司 | Method for using buffer memory area in processor |
US7281102B1 (en) * | 2004-08-12 | 2007-10-09 | Vmware, Inc. | Restricting memory access to protect data when sharing a common address space |
CN101145128A (en) * | 2007-06-13 | 2008-03-19 | 中兴通讯股份有限公司 | Method for detecting RAM leakage |
CN101162436A (en) * | 2006-10-13 | 2008-04-16 | 中兴通讯股份有限公司 | Ems memory leakage testing method in communication apparatus system |
-
2008
- 2008-06-19 CN CN 200810067974 patent/CN101350744B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7281102B1 (en) * | 2004-08-12 | 2007-10-09 | Vmware, Inc. | Restricting memory access to protect data when sharing a common address space |
CN1786926A (en) * | 2004-12-07 | 2006-06-14 | 华为技术有限公司 | Method for using buffer memory area in processor |
CN101162436A (en) * | 2006-10-13 | 2008-04-16 | 中兴通讯股份有限公司 | Ems memory leakage testing method in communication apparatus system |
CN101145128A (en) * | 2007-06-13 | 2008-03-19 | 中兴通讯股份有限公司 | Method for detecting RAM leakage |
Also Published As
Publication number | Publication date |
---|---|
CN101350744A (en) | 2009-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018099161A1 (en) | Protection switching method, network device, and system | |
EP3142011A1 (en) | Anomaly recovery method for virtual machine in distributed environment | |
CN102223258B (en) | Method and device for preventing BFD (bidirectional forwarding detection) conversation interruption | |
US8151147B2 (en) | Synchronize error handling for a plurality of partitions | |
CN106533805A (en) | Micro-service request processing method, micro-service controller and micro-service architecture | |
CN106656604A (en) | Microservice request management method, microservice controller and high-concurrence microservice architecture | |
EP3618350A1 (en) | Protection switching method, device and system | |
CN113890816A (en) | Network health state analysis method and device, computer equipment and storage medium | |
CN112217658A (en) | Stacking and splitting processing method and device | |
US20030014516A1 (en) | Recovery support for reliable messaging | |
CN110808873A (en) | Method and device for detecting link failure | |
US8332069B2 (en) | Fault tolerance method and apparatus for robot software component | |
CN107547301A (en) | A kind of master/slave device switching method and device | |
US10474518B1 (en) | Obtaining historical information in a device core dump | |
CN105871661A (en) | Public network server detection method and detection server | |
CN103220189A (en) | Multi-active detection (MAD) backup method and equipment | |
CN101662425A (en) | Method for detecting validity of access control list and device | |
WO2014161205A1 (en) | Method, system and device for processing network congestion | |
CN101350744B (en) | Method for detecting descriptor resource of network processing system and system thereof | |
CN108235800B (en) | Network fault detection method, control center equipment and computer storage medium | |
CN106603303A (en) | Cloud aggregation board card switching method and device | |
CN106201753A (en) | A kind of based on the processing method of PCIE mistake in linux and system | |
US20100146344A1 (en) | Multi-partition computer system, failure handling method and program therefor | |
JP2006164185A (en) | Debug device | |
US8880956B2 (en) | Facilitating processing in a communications environment using stop signaling |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130807 Termination date: 20190619 |