CN1394010A - Microcode test method and device for network processor - Google Patents
Microcode test method and device for network processor Download PDFInfo
- Publication number
- CN1394010A CN1394010A CN01120964A CN01120964A CN1394010A CN 1394010 A CN1394010 A CN 1394010A CN 01120964 A CN01120964 A CN 01120964A CN 01120964 A CN01120964 A CN 01120964A CN 1394010 A CN1394010 A CN 1394010A
- Authority
- CN
- China
- Prior art keywords
- test
- microcode
- message
- testing
- field
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the method for microcode-testing the networked processor and the device used. The method includes following steps. (1) Creating message. (2) Selecting and filling in the head field through terminals. (3) The head field is edited by use of the editor. The head field is sent to the kernel operation platform, and the data within the testing region are assigned to the head field. (4) The edited head field is sent to the logic module to carry out loop back logic processing. (5) Encapsulating the looped back data message to form and send the testing message. (6) The micro engine receives the testing message and executing the microcode-testing. The device includes common operate platform terminal, logic module the port controller connecting external loop back optical fiber etc. the testing method can be modified and redesigned.
Description
The present invention relates to a kind of micro-code test method, especially relate to a kind of network processor microcode method of testing.
The invention still further relates to a kind of device that is used for the microcode test, especially relate to a kind of device that is used for the network processor microcode test.
In the last few years, along with the fast development of China's communication career, all trades and professions had proposed more and more higher requirement to various communication apparatus and mechanics of communication.Therefore, people are constantly carrying out the research and development of various communication apparatus and mechanics of communication.And network processing unit has obtained using widely on communication product as a kind of device of just pushing to market recently, and is therefore a lot of around the developmental research of network processing unit.
In the developmental research about network processing unit, it often will carry out the microcode integration testing.Again because microcode is wanted the huge forwarding work of quantity performed in the Network processing.Because microcode code height is reduced the number of non-modular designs, multithreading switches and high performance requirement, proposed higher requirement for the microcode test job simultaneously.
Network processing unit is as a newer technology, be just to release last year by Intel Company, past, its microcode test job mainly is by means of tester, as the POS card (is to having the equipment of PPP over SDH protocol processes ability, the personality card of testing), carry out the transmission of various messages; Perhaps, provide the message of certain protocol type to test by in program, carrying out the code editor.
But, utilize tester that network processing unit is carried out the microcode test and exist some following problems: on the one hand, present tester is merely able to send Internet protocol and (is called for short: the data message IP agreement), mpls protocol), (be called for short: ppp protocol) etc. data message then can't send end-to-end protocol and to other the data message of protocol type, signing exchange as multi-protocols (is called for short:; And tester also can't arbitrarily be constructed the needed test case of tester; Because tester costs an arm and a leg, be difficult to purchase in a large number simultaneously, thereby caused equipment comparatively nervous, cause the delay in the work sometimes.On the other hand, carry out the code editor in program, workload is huge, causes operating efficiency low easily, and is easy to produce mistake.Again on the one hand, tester also is difficult to realize for the requirement of testing standardization.
The objective of the invention is: a kind of network processor microcode method of testing is provided, it is based upon on the public operation platform base, on this platform, can carry out every test jobs such as list item editor, test case editor, modification and transmission message, can make that finally the process of setting up of test case and program coding process are independent.Simultaneously, this network processor microcode method of testing also should be able to make the generation of test case become simple and design flexible and changeable; And can reduce dependence, reduce the cost of test job tester.
The object of the present invention is achieved like this:
A kind of network processor microcode method of testing may further comprise the steps,
A) utilize the data message that be used to test of public operation platform foundation at different agreement, this data message is provided with some header fields;
B), these some header fields are selected to fill by terminal;
C) utilize editing machine that these some header fields are edited, the header field that this is filled sends to core (CORE) public operation platform then, gives test specification numerical value;
D) header field after will editing sends to logic module, carries out plate outloop logical process by the port controller that is connected with external loop optical fiber;
E) data message behind this loopback is finished encapsulation process at last, send behind the formation test packet;
F) micro engine receives this test packet, carries out the microcode test.
And above-mentioned step d) also comprises,
Da) the above-mentioned logic module header field after to above-mentioned editor carries out burst;
Db) the above-mentioned logic module header field after to above-mentioned editor is recombinated.
Simultaneously,
Above-mentioned network processor microcode method of testing also comprises:
G) by changing above-mentioned list item setting, the above-mentioned above-mentioned data message that is generated under a kind of agreement converts the data message under the another kind of agreement to.
Above-mentioned step d) also comprises,
Steps d c) at above-mentioned porthandler one intersection optical fiber is set, is used for the plate outloop and handles;
Steps d d) on above-mentioned intersection optical fiber crossover location, a ring flange is set.
Above-mentioned steps d c) and dd) also comprise,
H) insert error code dish sample in the junction of described one road optical fiber and described ring flange, form error code testing and handle;
I) show error code information.
Above-mentioned network processor microcode method of testing wherein also comprises overlength/ultrashort test processes, is used to strengthen the reliability to the test of different agreement data message, comprises:
J) at described microcode place breakpoint is set;
K) receive described test packet with a recognition device (SMARTBITS);
L) contain Bit Error Code Statistics if this recognition device picks out in this test packet, then further open related cache (BD) content at this microcode breakpoint place;
M) if the same identification of this microcode breakpoint has error code to exist, then show this error code information.
The described header field of above-mentioned step a) is provided with respectively:
One message header field is used to discern different agreements;
One data field edit field;
Mark (btag) header field;
Comprise age field again in the wherein above-mentioned data field edit field.
The described list item of above-mentioned step a) territory is provided with respectively, also comprises,
Be mainly used in the loopback self-excitation test processes of coupling and property between checking micro engine and the core operation platform (CORE), be used to detect the initialization setting of described message, wherein:
N) remove age field in the above-mentioned data field edit field of above-mentioned message after, send the message of this modification;
O) at the microcode place breakpoint is set, is used to obtain the message bag;
P), judge then whether end-of-packet (EOP) cell can finish the reception of the list item field parameter that this is had more if the above-mentioned message of obtaining contracts out the dislocation information in the list item territory that now has more the end mark that adds between two messages;
Q) if then confirm and show that initiation parameter is provided with error code.
Above-mentioned network processor microcode method of testing also comprises,
Queue-limit's test processes is used to detect network processing unit limit ruuning situation, wherein:
R) constantly send the loopback test bag by above-mentioned control desk, exhaust until buffer memory to above-mentioned microcode;
S) the resume operation operating position of situation and buffer memory of record microcode.
Above-mentioned network processor microcode method of testing also comprises,
The communication performance test of micro engine and aforesaid operations platform, wherein:
T) by the loopback bag of above-mentioned control desk to above-mentioned microcode transmission predetermined quantity;
U) delete some list items;
V), show that then the communication of micro engine and aforesaid operations platform is good if above-mentioned control desk receives above-mentioned loopback and is surrounded by unexpected abnormality.
Realize a kind of device that is used for the network processor microcode test of the object of the invention, comprise
One public operation platform is used to set up the data message of the different agreement of testing;
One terminal is connected in before the public operation platform, is used for header field is selected to fill;
One logic module, one is connected with the port controller of external loop optical fiber, is connected in after the micro engine, is used for message is carried out plate outloop logical process;
One encapsulation process device is connected in after the above-mentioned logic module, is used for the data message behind the process loopback is carried out encapsulation process, and sends after forming test packet;
One micro engine is connected between operating platform and the logic module, is used to receive above-mentioned test packet, carries out the microcode test.
And,
Be provided with Serial Port Line, netting twine and optical fiber between the included each several part of the above-mentioned device that is used for the network processor microcode test.
By above-mentioned technical scheme, just make that the generation of test case is not only economical many than tester, and alleviated the nervous contradiction of tester use, improved tester's operating efficiency simultaneously again; The more important thing is, the test command that on the public operation platform, produces, have the advantages that to revise, can redesign, both can design different test commands at different product, can make the flexible design of test case changeable again, both can be applied to the microcode flow process and cover, can be applied to the statement coverage test again; Again on the one hand, compare with tester, can also take into account the test of other software section functions easily, cooperate test as the communication function between core (core) operating platform and microcode, core (CORE) group bag, list item correctness and microcode and logic, logical AND core (CORE) etc. relevant; Again on the one hand, directly write test case on editing machine again, make the design, easy to maintenance simple of test case by pasting to be sent by hyper terminal again, especially the test job for repeatability can improve testing efficiency greatly; Again more on the one hand, utilize testing software to carry out the construction process of message and the work of CMM test configuration structure test case
Below in conjunction with accompanying drawing, describe preferred embodiment of the present invention in detail, by description, can more clearly find out advantage of the present invention to embodiment.
Fig. 1 is the schematic diagram that realization of the present invention is used for the micro-code test method of network processing unit, and wherein testing scheme is that outer shroud combines with interior ring;
Fig. 2 is the logic diagram of realization microcode test of the present invention;
Fig. 3 is the flow chart of a preferred embodiment of micro-code test method of the present invention, shows the application of the error code testing that utilizes method realization of the present invention;
Fig. 4 is the flow chart of another preferred embodiment of micro-code test method of the present invention, shows the application of the test of the overlength/ultrashort bag that utilizes method realization of the present invention;
Fig. 5 is the flow chart of another preferred embodiment of micro-code test method of the present invention, the parameter setting when showing the test initialization of utilizing method realization of the present invention;
Fig. 6 is the flow chart of another preferred embodiment of micro-code test method of the present invention, shows the test of queue-limit's situation of utilizing method realization of the present invention;
Fig. 7 is the flow chart of another preferred embodiment of micro-code test method of the present invention, shows the test that utilizes communication performance between that method of the present invention realizes and operating console.
At first, the schematic diagram of microcode of the present invention as shown in Figure 1 test, its hardware environment comprises 2 PCs, with Serial Port Line, netting twine and optical fiber 2 PCs and LPUB plate, P4CA veneer etc. is coupled together.Simultaneously, adopt VXWORK operating system, and relevant support softwares such as WINDOWS NT, WORKBENCH.
Referring to logic diagram shown in Figure 2, at first be step S100 again, the data message editting function that provides by core (CORE) public operation platform produces the data message of IP agreement, configures the list item information of message then on core (CORE) operating platform.Then, by hyper terminal message is sent to UE, microcode is transmitted it again, delivers the SAR functional module to the P4CA veneer, after delivering message to the SAR functional module and handling through burst and reorganization, forms a MPLS message that has one deck mark; Then be step S102, enter in the micro engine, carry out the editor to each domain of dependence of message by microcode, as length field, age field, COS territory etc. to the selection filling in each list item territory and step S104; Then be step S106 again, send to the LPUB logic module and carry out loop back processing being that this processing is carried out outside the P4CA veneer, specifically carry out the logic loop back processing being by the porthandler APC logic module on the LPUB plate; Then be step S108 again, hand to the descending SAR module package of P4CA veneer data processing, form test packet; Then be step S110 again, send to micro engine; Then be step S112, carry out the microcode test; Be step S114 at last, finish.
Descending SAR module is according to the downlink data packaging information, data message carried out the port from appointment sends after the encapsulation process, forms test packet.
So far finishing generation, transmission, the reception of a test packet handles.The message that receives also may be given core (CORE) public operation platform in processing procedure, also may give up SAR and transmit.
Therefore in said process, after public operation platform CORE has produced data message, can walk two kinds of circulating paths, a kind of is 1-2-3-4-5-6-7-8-9-2-3-4-5-6-7-8-9-2......, another kind is 1-2-3-4-5-6-7-8-9-10-1-2-3......, above-mentioned two kinds of circulating paths can interlock, and promptly can enter among the other side mutually each other.
The maintainability Test Application of embodiment 1. data messagesControl desk provides more complete microcode test control command, as protocol massages header field, data field editor and btag header field editting function such as IP, MPLS, PPP with relevant entries is set up, maintenance.By editing machines such as boards, use these orders and write test case, form test case than the standard maintainability, be convenient to regression test in the future and filing.
Test case is as follows:
Vcc add 31 2000 (Virtual Channel connects table to be added)
Dnhlfe add 14 140 0x,600 0 (descending next jumping mark is transmitted interpolation)
Ilm add 04 500 1 (interpolation of input marking mapping table)
Route add 10.11.19 6.254 255.255.252 03 (routing table interpolation)
Oif add 25 1128 (interpolation of outbound port information table)
Vcc add 01 2004 (Virtual Channel connects table to be added)
Dat add 3 0x,600 0 (interpolation of downstream neighbor table)
Edit ip 0,xe0 540000 254 0 (editor IP bag)
Edit ip 192 0x12121212 0xOaObc4fd 0x12345678 (editor IP bag)
Edit btag 0,x02 14 1,124 194 0x01 (editor's mark)
Send ip 1 (sending the IP bag)
This test case is used for microcode MPLS one deck mark termination flow testing.In two sub-sections, first is a list item, and every capable front is a command word, and the back is the list item parameter, is mainly used in the import and export and the processing controls of message in program of test packet; Second portion is editor's test packet, and every capable front is order, and the back is the parameter of message header field.
This example has been edited an IP message, but the setting by list item, the actual test packet that comes out from physical port is the MPLS message of band one deck mark.Fill by selection each list item territory, and the editor of the test packet domain of dependence, realization covers and abnormality test each flow processing of microcode, because test case is to write by the editing machine unification, can directly on hyper terminal, paste and carry out, simple operation is easy-to-use, provides convenience at aspects such as regression test, use-case preservation, maintenances simultaneously.
Operation instruction:
IP wraps edit commands:
Edit ip COS territory check of length field version field field offset mark domain identification field and territory age field protocol domain
Edit ip total length territory source address field destination address domain message content or edit ip total length territory source address field destination address domain option field message content
MPLS wraps edit commands:
Edit mpls age field label stack bottom marker
Embodiment 2: the error code testing of unconventional test is used
As shown in Figure 3, at first be step S120, adopt external loop optical fiber, test packet sends from a mouth, sends into from another mouthful.Optical fiber adopts intersection optical fiber, and the centre connects with ring flange.Under the normal condition, the optic fibre light path that intersects is unblocked.Then be step S122, when carrying out error code testing, disconnect in one road optical fiber ring flange junction; Then be step S124 again, substitute and insert error code dish sample; And S126 in steps, another road optical fiber is connected with ring flange, has so just formed an error code testing path.While is S116 in steps, sends test packet by the CORE control desk; And step S118, by logic module the data message is edited.Be step S128 at last, observe reception condition at the microcode place and just can carry out error code testing.
Embodiment 3.
The overlength of unconventional test/ultrashort bag Test Application
Overlength, ultrashort bag also are a kind of bags, and they allow is legal or illegal, and just its length is different from normal bag.IP wraps 20 bytes of having only of its length minimum, and this wrapping on the general tester often is difficult to produce and causes omission in the test.And utilize the edit capability of testboard to test packet, and then be easy to produce ultrashort bag, therefore just can realize the test of various short bags, ultrashort bag under the different agreement.
To test ultrashort bag is example, P4CA veneer microcode test, and the two-layer label termination of MPLS loopback test, logic can produce a large amount of error codes carrying out ultrashort bag when sending.
VCC add 31 2000 (interpolation of Virtual Channel adjacency list)
Dnhlfe add 12 120 0x,600 0 (descending next jumping mark is transmitted interpolation)
Ilm add 02 300 0 (interpolation of input marking mapping table)
Unhlfe add 300 1,125 2 40 0 (up next jumping mark is transmitted interpolation)
Vcc add 31 2001 (interpolation of Virtual Channel adjacency list)
Dnhlfe add 40 120 0x,600 0 (descending next jumping mark is transmitted interpolation)
Edit ip 0540000 64 0 (editor IP bag)
Edit ip 20 0xa1a2a3a4 0x 1a2b3c4d 0xf1f2f3f4 (editor IP bag)
Edit mpls 40 61 (editor mpls bag)
Edit btag 0,x02 12 1,124 26 0x02 (editor's mark)
Send mpls 1 (sending the mpls bag)
As shown in Figure 4, at first be step S130, this message total length is 32, IP section length is 20, adds two-layer mark and PPP header field, is that the parcel of two layers of MPLS mark IP message is long, at first selects Bao Changwei 64 single cell bags during test for use, and is no problem; When bag length became 32, microcode reception place found to have Bit Error Code Statistics; Being the microcode mistake of statistics that really admits a fault, then is step S132, and the place is provided with breakpoint at microcode, then is step S134 again, uses the SMARTBITS packet capturing simultaneously, finds that SMARTBITS has a large amount of error codes; Then be step S136 again, judge whether recognition device recognizes error code; If, then be step S138, open relevant BD content at microcode breakpoint place, if not, then be step S144, show the microcode mistake of statistics; Then be step S140 again, whether relevant BD content shows error code equally; If, then be step S142, be judged as control desk and sent ultrashort bag.If not, then be step S144, show the microcode mistake of statistics.Find a large amount of error codes equally in the test, therefore can conclude be logic when sending the ultrashort bag of MPLS, go wrong.It is no problem that this bag sends in pure IP mode, should also be noted that when therefore testing to distinguish different agreements.
Embodiment 4: the loopback self-excitation Test Application of unconventional test
The testing scheme of method of the present invention is the microcode test environment of ring in an outer shroud adds, and outer shroud is by external loop optical fiber different port to be coupled together the light path of a sealing forming, and interior ring is to set by internal logic, the bag loopback that script is sent.If the physical testing environment is the loop of a sealing like this, can imagine without any obstruction revolution that message will not stop in this environment so.Because core (CORE) operating platform, therefore needs only setting, editor's test packet by relevant entries by the ability of each list item of editor's message, perhaps slightly revises measurand and promptly can realize loopback test repeatedly.
Adopt 64 following byte integer times IP message loopback test:
VCC add 31 2000 (Virtual Channel connects table to be added)
Dat add 10 0x,600 0 (interpolation of downstream neighbor table)
Route add 10.11.3.13 255.252.0 023 (routing table interpolation)
Oif add 21 1126 (interpolation of outbound port information table)
Vcc add 01 2002 (Virtual Channel connects table to be added)
Dat add 3 0x,600 0 (interpolation of downstream neighbor table)
Edit ip 540000 0,x02 0 (editor IP bag)
Edit ip 124 0x0a0a0a0a 0x0a0b010c 0x12345678 (editor IP bag)
Edit btag 0,x02 10 1,124 126 0x00 (editor's mark)
Send ip 5 (sending the IP bag)
As shown in Figure 5, at first be step S146, revise data message so that realize message loopback test repeatedly; Then be step S148, the modification microcode subtracts 1 with its IP bag life-span and removes, and this pure IP bag can continue circulation in aforesaid loop; Then be step S150, continuously send 5 in the test after, then be step S152, judge whether to continue circulation; If, then be step S154, can judge that message does not have age limit; If not, then be step S156, find that packet loss appears in microcode in succession, have only one to wrap in continuous loopback at last.Then being step S158 again, breakpoint being set obtaining the message bag, then is step S160 again, judges whether to find the dislocation of IP content, finds the dislocation of IP content, has more a 0XFFFFFFFF territory; Then be step S162 again, confirm that 1200 get with 64 bytes when peek, should be after effective 64 bytes when the EOP cell, then be step S164, at the insertion one-period 0XFFFFFFFF number is read in, then be step S166, to show the reception of finishing a bag; If EOP cell less than 64 bytes 1200 can be finished the reception of 0XFFFFFFFF number in this cell.Gone out to use non-64 integral multiple cells instead after this problem and carry out loopback, problem does not occur, and is step S168 at last, and the parameter setting does not cause entirely in the time of can being confirmed to be 1200 initialization.
Queue-limit's Test Application of embodiment 5. unconventional tests
In conjunction with shown in Figure 6, at first be step S170, microcode is realized the buffered to business by big buffer memory.And the difficult test that exhausts that realizes buffer memory BUFFER (BD) of general test, then be step S172, constantly send the loopback test bag by control desk to microcode, under ring mode certainly, the situation that buffer memory (BD) exhausts will soon appear in microcode, be step S174 at last, so the operation that just can test under this limiting case and recover normal back microcode.
Embodiment 6: unconventional test and control desk between communication test use
In conjunction with shown in Figure 7, present embodiment can be simulated under the emergency case, and UE transmits the test of bag in a large number to CORE.As: at first be step S176, send the loopback bag by control desk in a large number to microcode, after reaching some, then be step S178, hand over the abnormal conditions of core (CORE) operating platform by some means (as deleting some list item) message of can realizing happening suddenly in a large number; Then be step S180, judge whether unusual; As normally, then be step S182, communication is normal between microcode and the control desk; As unusually, then be step S184, communication is not normal between microcode and the control desk.
According to technical scheme of the present invention, can realize the processing of multiple unconventional test, strengthen test processes to network processing unit.For example, can adopt multiple mode combined test to handle and encircle certainly the big flow rate test processing of controllable simulation etc.When carrying out multiple mode combined test when handling, be to utilize the flexibility of core (CORE) control desk command in combination, can make single flow process coverage test variation, promptly simultaneously a plurality of flow processs or more multithreading share a resource simultaneously, reach that different flow processs cooperate or the test effect of multithreading resource contention.For example: carrying out route querying when test, set up multistage route respectively, these routes are divided three grades, and level connects together, and initiate a plurality of test packs during test, visit different routes respectively, compete same routing table information together.In when test, find tertiary road by reaching, always at continuous packet loss, to find mistake to occur carrying out tertiary road when searching by the location, the routing index misquotation causes tertiary road always to be can not find by table, and it is normal to revise test again.
When carrying out when encircling the big flow rate test of controllable simulation and handle, after microcode was finished the flow process coverage test, an important test doing was performance test.Use self-looped testing analogue flow rate test to a certain extent.Because core (CORE) operating platform can be edited list item and message, for this test provides possibility,, should guarantee that these messages can run by loopback in the test border at the design list item, when reaching test packet, control the quantity of giving out a contract for a project by control desk, reach the control of flow.With regard to microcode itself, the complexity that the length of pack processing, a cell are handled, transmission, receiving thread number, queue sizes etc. will comprehensively determine the microcode processing speed.Though this method can not quantitative study, can reach the purpose of analyzing qualitatively to a certain extent, the quantity by the control control desk is given out a contract for a project to microcode reaches the test of different flow.
Claims (13)
1, a kind of network processor microcode method of testing is characterized in that: may further comprise the steps,
A) utilize the data message that be used to test of public operation platform foundation at different agreement, this data message is provided with some header fields;
A), these some header fields are selected to fill by terminal;
B) utilize editing machine that these some header fields are edited, the header field that this is filled sends to core (CORE) public operation platform then, gives test specification numerical value;
C) header field after will editing sends to logic module, carries out plate outloop logical process by the port controller that is connected with external loop optical fiber;
D) data message behind this loopback is finished encapsulation process at last, send behind the formation test packet;
E) micro engine receives this test packet, carries out the microcode test.
2, method according to claim 1, wherein step d) also comprises following processing:
Da) header field of described logic module after to described editor carries out burst;
Db) header field of described logic module after to described editor recombinated.
3, method according to claim 1 wherein also comprises:
G), describedly convert data message under the another kind of agreement at the following described data message that generates of a kind of agreement by changing described list item setting.
4, method according to claim 1, wherein said step d) also comprises:
Dc) at described porthandler one intersection optical fiber is set, is used for the plate outloop and handles;
Dd) on described intersection optical fiber crossover location, a ring flange is set.
5, method according to claim 4 wherein also comprises:
H) insert error code dish sample in the junction of described one road optical fiber and described ring flange, form error code testing and handle;
I) show error code information.
6, method according to claim 1 wherein also comprises overlength/ultrashort test processes, is used to strengthen the reliability to the test of different agreement data message, comprises:
J) at described microcode place breakpoint is set;
K) receive described test packet with a recognition device (SMARTBITS);
1) contains Bit Error Code Statistics if this recognition device picks out in this test packet, then further open related cache (BD) content at this microcode breakpoint place;
M) if the same identification of this microcode breakpoint has error code to exist, then show this error code information.
7, method according to claim 1, wherein the described header field of step a) comprises following information respectively:
One message header field is used to discern different agreements;
One data field edit field;
Mark (btag) header field;
8, method according to claim 7, wherein said data field edit field information also comprises an age field information.
9, method according to claim 8 also comprises the loopback self-excitation test processes that is mainly used in coupling and property between checking micro engine and the core operation platform (CORE), is used to detect the initialization setting of described message, wherein:
N) remove age field in the described data field edit field of described message after, send the message of this modification;
O) at the microcode place breakpoint is set, is used to obtain the message bag;
P), judge then whether end-of-packet (EOP) cell can finish the reception of the list item field parameter that this is had more if the described message of obtaining contracts out the dislocation information in the list item territory that now has more the end mark that adds between two messages;
Q) if then confirm and show that initiation parameter is provided with error code.
10, method according to claim 1 also comprises queue-limit's test processes, is used to detect network processing unit limit ruuning situation, wherein:
R) constantly send the loopback test bag by described control desk, exhaust until buffer memory to described microcode;
S) the resume operation operating position of situation and buffer memory of record microcode.
11, method according to claim 1 also comprises the communication performance test of micro engine and described operating platform, wherein:
T) by the loopback bag of described control desk to described microcode transmission predetermined quantity;
U) delete some list items;
V), show that then the communication of micro engine and described operating platform is good if described control desk receives described loopback and is surrounded by unexpected abnormality.
12, a kind of device that is used for the network processor microcode test is characterized in that: comprise
One public operation platform is used to set up the data message of the different agreement of testing;
One terminal is connected in before the public operation platform, is used for header field is selected to fill;
One logic module, one is connected with the port controller of external loop optical fiber, is connected in after the micro engine, is used for message is carried out plate outloop logical process;
One encapsulation process device is connected in after the above-mentioned logic module, is used for the data message behind the process loopback is finished encapsulation process at last, and sends after forming test packet;
One micro engine is connected between operating platform and the logic module, is used to receive above-mentioned test packet, carries out the microcode test.
13, the device that is used for network processor microcode test according to claim 12 is characterized in that: be provided with Serial Port Line, netting twine and optical fiber between the included each several part of the described device that is used for the network processor microcode test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB01120964XA CN1155176C (en) | 2001-06-21 | 2001-06-21 | Microcode test method and device for network processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB01120964XA CN1155176C (en) | 2001-06-21 | 2001-06-21 | Microcode test method and device for network processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1394010A true CN1394010A (en) | 2003-01-29 |
CN1155176C CN1155176C (en) | 2004-06-23 |
Family
ID=4664376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB01120964XA Expired - Fee Related CN1155176C (en) | 2001-06-21 | 2001-06-21 | Microcode test method and device for network processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1155176C (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100370765C (en) * | 2005-03-16 | 2008-02-20 | 华为技术有限公司 | Method and device of detecting mono-board electrical interface by using optical modular |
CN101778015A (en) * | 2010-01-07 | 2010-07-14 | 中兴通讯股份有限公司 | Micro-code test method and device |
CN102420713A (en) * | 2010-09-28 | 2012-04-18 | 大唐移动通信设备有限公司 | Test data packet packaging method and equipment |
CN102843269A (en) * | 2011-06-23 | 2012-12-26 | 中兴通讯股份有限公司 | Method and system of analog microcode business processing flow |
CN103200048A (en) * | 2013-04-02 | 2013-07-10 | 中兴通讯股份有限公司 | Method and device for abnormal detection of network processor and network processing equipment |
CN107436842A (en) * | 2016-05-25 | 2017-12-05 | 中兴通讯股份有限公司 | A kind of microcode adjustment method and veneer |
CN115426300A (en) * | 2022-08-15 | 2022-12-02 | 成都北中网芯科技有限公司 | Method for automatically testing NP chip API (application program interface) based on data packet |
-
2001
- 2001-06-21 CN CNB01120964XA patent/CN1155176C/en not_active Expired - Fee Related
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100370765C (en) * | 2005-03-16 | 2008-02-20 | 华为技术有限公司 | Method and device of detecting mono-board electrical interface by using optical modular |
CN101778015A (en) * | 2010-01-07 | 2010-07-14 | 中兴通讯股份有限公司 | Micro-code test method and device |
CN102420713A (en) * | 2010-09-28 | 2012-04-18 | 大唐移动通信设备有限公司 | Test data packet packaging method and equipment |
CN102843269A (en) * | 2011-06-23 | 2012-12-26 | 中兴通讯股份有限公司 | Method and system of analog microcode business processing flow |
CN102843269B (en) * | 2011-06-23 | 2018-04-03 | 中兴通讯股份有限公司 | A kind of method and system for simulating microcode business processing flow |
CN103200048A (en) * | 2013-04-02 | 2013-07-10 | 中兴通讯股份有限公司 | Method and device for abnormal detection of network processor and network processing equipment |
CN103200048B (en) * | 2013-04-02 | 2018-07-13 | 中兴通讯股份有限公司 | A kind of network processing unit method for detecting abnormality, device and network processing device |
CN107436842A (en) * | 2016-05-25 | 2017-12-05 | 中兴通讯股份有限公司 | A kind of microcode adjustment method and veneer |
CN115426300A (en) * | 2022-08-15 | 2022-12-02 | 成都北中网芯科技有限公司 | Method for automatically testing NP chip API (application program interface) based on data packet |
CN115426300B (en) * | 2022-08-15 | 2023-12-01 | 成都北中网芯科技有限公司 | Method for automatically testing API (application program interface) of NP (network Programming) chip based on data packet |
Also Published As
Publication number | Publication date |
---|---|
CN1155176C (en) | 2004-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1238796C (en) | Device and method for realizing interface conversion | |
CN1188991C (en) | Communication device and method for reliable and low-delay packet transmission | |
CN1254056C (en) | Multiple protocol label converting network system | |
CN1929472A (en) | Method, system, signal and medium for managing data transmission in a data network | |
CN1788473A (en) | Packet classification and concatenation over power line communication systems | |
CN1543142A (en) | Router and address identification information management server | |
CN1578272A (en) | Packet forwarding device equipped with statistics collection device and statistics collection method | |
CN1549531A (en) | Apparatus for testing network equipment transmission performance and method thereof | |
CN1610331A (en) | Communication apparatus and method for inter-AS routing | |
CN1725761A (en) | Method of implementing link aggregation of network equipment | |
CN1773965A (en) | Route selecting method and apparatus using return routability procedure | |
CN1606291A (en) | Network-processor accelerator | |
CN1155176C (en) | Microcode test method and device for network processor | |
CN1633783A (en) | Data communication system, data communication management device and method, and computer program | |
CN1402480A (en) | Method for managing address of medium access control bridge, and said bridge | |
CN1947382A (en) | Access network system, subscriber station device, and network terminal device | |
CN1839594A (en) | Accurate control of transmission information in ad hoc networks | |
CN1675910A (en) | Communication terminal having a function to inhibit connection to a particular site and program thereof | |
CN1441580A (en) | Packet communication system and trasmission equipment | |
CN1516386A (en) | Network communication safe processor and its data processing method | |
CN1852086A (en) | Binding interface in RPR and its realizing method and apparatus | |
CN1913450A (en) | Recovery of network element configuration | |
CN1848750A (en) | Method for opening Ethernet business | |
CN1946060A (en) | Method for realizing re-oriented message correctly repeat and first-part and second-part | |
CN1170397C (en) | IPV4 network logon layered switching network method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20040623 Termination date: 20110621 |