CN101126997B - Network processor micro-engine activity detection method - Google Patents

Network processor micro-engine activity detection method Download PDF

Info

Publication number
CN101126997B
CN101126997B CN2007101623616A CN200710162361A CN101126997B CN 101126997 B CN101126997 B CN 101126997B CN 2007101623616 A CN2007101623616 A CN 2007101623616A CN 200710162361 A CN200710162361 A CN 200710162361A CN 101126997 B CN101126997 B CN 101126997B
Authority
CN
China
Prior art keywords
micro
micro engine
count value
engine
detection task
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
Application number
CN2007101623616A
Other languages
Chinese (zh)
Other versions
CN101126997A (en
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 CN2007101623616A priority Critical patent/CN101126997B/en
Publication of CN101126997A publication Critical patent/CN101126997A/en
Application granted granted Critical
Publication of CN101126997B publication Critical patent/CN101126997B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The utility model relates to a method for micro-engine activity detection of network processor, which comprises the following steps: firstly, a processor creates an activity detection task, which is used for distributing the data area for respective micro-engine; secondly, a plurality of counters is arranged in the micro-engines; the count value of the counter is stored in the data area and is increased according to the operation times of the micro-engines . Thirdly, after the operation of the network processor, the activity detection task regularly scans respective data area. The count value obtained in the scanning is compared with that of last scanning. If the results are same, the micro-engine is regarded as abnormal, which can be reset by setting relevant hardware register. The utility model has the advantages that the application performance of network processor can be improved better.

Description

The method that a kind of network processor micro-engine activity detects
Technical field
The present invention relates to field of processors, in particular, relate to the method that micro-engine activity detects in a kind of network processing unit.
Background technology
Because speech, image and appearance and the widespread use of multimedia service in Internet, the portfolio of Internet are just with exponential rate increase, rapidly the Internet portfolio that increases has proposed new requirement to the existing network bandwidth.In order to satisfy these new demands, each macroreticular equipment supplier researches and develops the above network equipment of gigabit/10,000,000,000 (1G/10G) rank one after another and drops into and seize rapidly market.But because the developing rapidly of network, the life cycle of the network equipment is shorter and shorter, causes the pressure of frequent updating existing device increasing, the frequent updating of legacy network devices for a change, and network processing unit is climbed up the arena of history.
Network processing unit (NP, Network Processor) combines the advantage of ASIC (ApplicationSpecific Integrated Circuit, special IC) and universal cpu, has higher performance, can guarantee the traffic handing capacity of linear speed.Can support multiple application by programming, expand the usable range of equipment, and can satisfy the demand that procotol constantly changes, the life cycle that has prolonged equipment.The network processing unit construction cycle is short, and cost of development is low, and the user can utilize the new application of exploitation rapidly of software translating platform.
Network processing unit generally is made up of several microprocessor engines (micro engine), simultaneously the standard interface of built-in with CPU or reservation and universal cpu.The common application model of network processing unit is that the operation system is as chain of command and chain of command on embedded CPU or plug-in CPU, and micro engine is by the parallel processing of finishing grouping of the special-purpose assembly instruction (microcode) of operation.Because CPU goes up the operation system, therefore in operational process if unusual, then the operating system collapse and dish out unusual, thereby use the equipment cisco unity malfunction of network processing unit.
Summary of the invention
The technical matters that the present invention solves is, the method that micro-engine activity detects in a kind of network processing unit is provided, and can not in time find when micro engine is unusual in the network processing unit and influences the problem of part packet transaction to solve.
In view of the above problems, the method that micro-engine activity detects in a kind of network processing unit of the present invention may further comprise the steps:
The A processor is created active detection task, and described active detection task is each micro engine distribute data district;
In the B micro engine counter is set, the count value of this counter leaves in the data field, and the count value of counter is according to the corresponding increase of number of times of micro engine operation;
After the operation of C network processing unit, compare the count value of scan-data district acquisition and the count value of last scan acquisition, if comparative result is identical each data field of active detection task timing scan, think that then micro engine is unusual, by the relevant hardware register unusual micro engine that resets is set.
Above-mentioned method wherein, in the steps A, behind the active detection task run, is that each micro engine distributes the data field that is used for depositing count value in micro engine and the common internal memory that uses of processor; And time counter is set at each micro engine, described time counter is used to write down the identical number of times of comparative result.
Above-mentioned method, wherein, among the step C, the count value of scan-data district acquisition and the count value of last scan acquisition are done difference, if each difference is zero, be that inferior counter of zero micro engine adds 1 operation to difference, judge that whether time counter is greater than setting numerical value, if greater than, the inferior counter and the data field of removing this micro engine correspondence.
Above-mentioned method, wherein, active detection task is provided with the active timer that detects, the active data field of detecting each micro engine of task scan after activity detects timer expiry.
As long as the present invention utilizes to be increased in the microcode of micro engine operation behind the counting operation the micro engine operate as normal, and the principle that count value will increase detects whether operate as normal of micro engine.Owing to only increase a counting instruction in the microcode, therefore to the micro engine handling property without any influence.Because it is timing scan that CPU goes up active detection task, therefore to cpu performance also not influence.But adopting this method can detect unusual also can the automatically reseting of micro engine appearance automatically unusual micro engine occurs and it is reworked.Therefore the equipment that adopts network processing unit of the present invention can automatically reset and continue when unusual and use in that non-lethal takes place, shortening equipment is delayed machine release time so greatly, minimizing improves the satisfaction of user to product to user's influence and user's complaint.Because it is unusual and automatically reset to detect micro engine automatically, therefore can save manual monitoring and save the maintenance cost of equipment greatly, have excellent economy.
Description of drawings
Fig. 1 is the network processing unit synoptic diagram that the present invention uses;
Fig. 2 is the method that a kind of network processor micro-engine activity provided by the invention detects;
Fig. 3 is an active detection task processing flow chart among the present invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is further specified.
Fig. 1 is the network processing unit synoptic diagram that the present invention uses;
Network processing unit comprises CPU of place and micro engine, the active detection task 101 of the last operation of CPU, the data field 102 that active detection task 101 is used to deposit count value according to the micro engine number for each micro engine initialization, in the microcode 103 of micro engine operation a counter is set, the count value of micro engine operation back counter constantly increases.
Fig. 2 is the method that a kind of network processor micro-engine activity provided by the invention detects, and may further comprise the steps:
Create active detection task when 201, CPU moves.
202, the data field that is used to deposit count value according to micro engine number in the network processing unit for each micro engine initialization behind the active detection task run waits for that then micro engine powers on.
203, increase the counting operation instruction at the place that begins of the microcode of micro engine operation, count value leaves active detection task in in its initialized data field.
204, after micro engine began to power on operation, count value constantly increased in the data field.
205, after active detection task detects micro engine and powers on, the active timer that detects is set, begins to scan each data field behind the timer expiry.
206, active detection task is taken out count value in the data field, with the count value that last time, the reading of data district obtained do poor.If (generally getting 3 times) difference continuously several times is 0, illustrate that then the micro engine of this data field correspondence occurs unusually, otherwise micro engine is working properly.
207, active detection task detects micro engine and this micro engine corresponding hardware register is set after unusual, and resetting unusual micro engine occurs.
In the above-mentioned embodiment, the concrete treatment scheme of the last active detection task of CPU as shown in Figure 3:
Step 301, the active data field that in the internal memory that micro engine and CPU can operate, is used for depositing count value according to the number of micro engine of detecting behind the task run for each micro engine distribution, size is 4 bytes;
Step 302, active detection task wait for that micro engine powers on;
Step 303, whether micro engine powers on successfully, if there is micro engine not power on successfully, then changes step 302 and continues to wait for, otherwise change step 304;
Step 304, active detection task are provided with the active timer that detects, and at each micro engine initialization times counter and last time count value, have how many micro engines just have the how many times counter and last time count value;
Step 305 judges whether active detection timer is overtime, and is overtime if timer does not have, and then continues to wait for, otherwise changes step 306;
Step 306, the active enumeration data district of detecting each micro engine of task scan behind the active detection timer expiry takes out the numerical value of each data field;
Step 307, count value that this time read and the count value that read last time are done difference;
Step 308 is judged whether each difference is zero, if difference all is not equal to 0, then changes step 312, otherwise is changeed step 309;
Step 309, the inferior counter that difference is equaled 0 micro engine adds 1 operation, changes step 310 then;
Step 310 is judged whether time counter stipulates numerical value (such as 3 times) greater than certain, if all be not more than regulation numerical value, then changes step 312, otherwise is changeed step 311;
Step 311 is removed the inferior counter of this micro engine correspondence and is deposited the counted data district, and last time, count value composed zero, and the hardware register micro engine that resets is set, and forwards step 305 then to and proceeds active the detection;
Step 312: this count value that reads is composed to count value last time, forwarded to step 305 then and proceed active the detection;
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. the method that detects of a network processor micro-engine activity, described network processing unit comprises a plurality of micro engines and processor, it is characterized in that, described method comprises:
The A processor is created active detection task, and described active detection task is distributed the data field that is used for depositing count value for each micro engine in micro engine and the common internal memory that uses of processor;
In the B micro engine counter is set, the count value of this counter leaves in the data field, and the count value of counter is according to the corresponding increase of number of times of micro engine operation;
After the operation of C network processing unit, compare the count value of scan-data district acquisition and the count value of last scan acquisition, if comparative result is identical each data field of active detection task timing scan, think that then micro engine is unusual, by the relevant hardware register unusual micro engine that resets is set.
2. method according to claim 1, it is characterized in that steps A replaces with, processor is created active detection task, behind the active detection task run, be that each micro engine distributes the data field that is used for depositing count value in micro engine and the common internal memory that uses of processor.
3. method according to claim 2 is characterized in that, in the steps A, behind the active detection task run, at each micro engine time counter is set, and described time counter is used to write down the identical number of times of comparative result.
4. method according to claim 3, it is characterized in that, among the step C, the count value of scan-data district acquisition and the count value of last scan acquisition are done difference, if each difference is zero, be that inferior counter of zero micro engine adds 1 operation to difference, judge that whether time counter is greater than setting numerical value, if greater than, the inferior counter and the data field of removing this micro engine correspondence.
5. method according to claim 3 is characterized in that, active detection task is provided with the active timer that detects, the active data field of detecting each micro engine of task scan after activity detects timer expiry.
CN2007101623616A 2007-09-26 2007-09-26 Network processor micro-engine activity detection method Expired - Fee Related CN101126997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101623616A CN101126997B (en) 2007-09-26 2007-09-26 Network processor micro-engine activity detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101623616A CN101126997B (en) 2007-09-26 2007-09-26 Network processor micro-engine activity detection method

Publications (2)

Publication Number Publication Date
CN101126997A CN101126997A (en) 2008-02-20
CN101126997B true CN101126997B (en) 2010-06-16

Family

ID=39095044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101623616A Expired - Fee Related CN101126997B (en) 2007-09-26 2007-09-26 Network processor micro-engine activity detection method

Country Status (1)

Country Link
CN (1) CN101126997B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984704A (en) * 2010-10-19 2011-03-09 中兴通讯股份有限公司 Data processing control method and device
CN108234301B (en) * 2016-12-15 2022-04-19 中兴通讯股份有限公司 Data link switching method and device
CN111736681A (en) * 2020-06-18 2020-10-02 北京淳中科技股份有限公司 Case equipment and remote control system

Also Published As

Publication number Publication date
CN101126997A (en) 2008-02-20

Similar Documents

Publication Publication Date Title
CN100555228C (en) A kind of method for supervising of embedded LINUX applications progress
CN105302248B (en) Chipset and server system
CN101126997B (en) Network processor micro-engine activity detection method
JP2010510592A5 (en)
CN101098260A (en) Distributed equipment monitor management method, equipment and system
CN103346902B (en) The method and system of data acquisition scheduling
CN102681904B (en) Data syn-chronization dispatching method and device
CN102222022A (en) Real-time task scheduling method based on multicore processor
CN109508432A (en) A kind of high-performance FAAS system based on block chain
CN102622791A (en) Network sign-in system and method
CN113268661B (en) Method and device for recommending user functions and intelligent household appliance
CN102597912A (en) Coordinating device and application break events for platform power saving
CN102426475A (en) Energy saving method, energy saving management server and system under desktop virtual environment
CN101924667B (en) Modem anomaly detecting and power-off restarting control method based on serial port
CN102029275B (en) Dedusting method and system for equipment
CN111163018A (en) Network equipment and method for reducing transmission delay thereof
CN101741974A (en) Terminal and method for counting utilization rate of loadable module of terminal
CN106528318A (en) Thread endless loop detection method and device
CN109086149A (en) A kind of method that micro services interface calls analysis of central issue
CN101309184B (en) Method and apparatus detecting failure of micro-engine
CN101546279A (en) Device, system and method for exception processing of embedded device
CN111209112A (en) Exception handling method and device
CN102122430B (en) Device and method for collecting agricultural product information
CN109858638A (en) Construct method, apparatus, readable medium and the electronic equipment of energy efficiency of equipment curve
CN109753314B (en) Configurable automatic flow execution method and system

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: 20100616

Termination date: 20160926