CN101854648A - Testing method, device and testing system for single board of communication apparatus - Google Patents

Testing method, device and testing system for single board of communication apparatus Download PDF

Info

Publication number
CN101854648A
CN101854648A CN201010150001A CN201010150001A CN101854648A CN 101854648 A CN101854648 A CN 101854648A CN 201010150001 A CN201010150001 A CN 201010150001A CN 201010150001 A CN201010150001 A CN 201010150001A CN 101854648 A CN101854648 A CN 101854648A
Authority
CN
China
Prior art keywords
message
test
configuration
field
test packet
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
Application number
CN201010150001A
Other languages
Chinese (zh)
Other versions
CN101854648B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 201010150001 priority Critical patent/CN101854648B/en
Publication of CN101854648A publication Critical patent/CN101854648A/en
Application granted granted Critical
Publication of CN101854648B publication Critical patent/CN101854648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a testing method for a single board of a communication apparatus, which comprises the following steps: reading message configuration attributes, and generating a testing message according to the message configuration attributes; transmitting the testing message to the tested single board; receiving a message returned from the tested single board, judging whether the received message is the message formed after the testing message is processed by the tested single board, and if so, checking the message to obtain the check result; and making statistics on the check result, and generating a test report according to the statistical result. The testing method can test the problems in the actual operation process of the network, and obtain a reliable and true test result. In addition, the testing method is automatic in the whole testing process without manual intervention, thereby reducing the dependence on skills or experiences of testing personnel and obtaining a more objective test result.

Description

The method of testing of communication equipment veneer, equipment and test macro
Technical field
The present invention relates to field of wireless transmission, be specifically related to method of testing, equipment and the test macro of communication equipment veneer.
Background technology
Existing communication apparatus is the base station for example, base station controllers etc. are generally closed-in construction, veneer is wherein divided according to function can comprise coffret plate, master control borad, signaling processing plate, frame disposable plates, power panel and baseband board etc., and each veneer links to each other by the backboard switching bus.For example, transmitting under the background of all-IPization at present, all veneers can link to each other by backboard GE bus, and each veneer is assigned with different IP addresses, realizes the IPization of communication between plate.
Be accompanied by the high speed development of society, people are more and more vigorous to the miscellaneous service demand of communication.Existing wireless-transmission network needs multiple business such as voice-bearer, data and video, the assurance of multiple service quality (QoS, Quality of Service) is provided, and this makes that the complexity of system is more and more higher, but then, require the cycle of a system of exploitation shorter and shorter.How effectively improving system testing efficient, guarantee the quality of test, and shorten the construction cycle when guaranteeing test mass, reduce cost, is the problem that the communications industry is faced jointly.
Be connected based on the closed-in construction of communication apparatus and the switching bus of backboard, the method of a kind of testing single-board of prior art (and then test wireless transmitting system) is to use special-purpose tester analog network to E-Packet and situation such as flow, (for example utilize the transmission veneer, the coffret plate) external interface that provides, tester is connected on the transmission veneer, issue tested veneer by the transmission veneer by core bus again, tested single board is received after message is handled result is returned to the transmission veneer by core bus, turns back to instrument again.By the packet capturing function or the statistical function of tester,, provide test report simultaneously by hand inspection tester, logging test results and discovery mistake.
There are many defectives in the method for this testing single-board of prior art.At first be that this class special test equipment is very expensive; Secondly, real network environment is complicated and changeable, and tester does not have programmability for the user, the restriction of its content measurement tested person instrument self function often can only be simulated the test to several typical data streams, to some special tests, for example limit test, abnormality test, packet out-ordering and payload verification or the like can't be tested, can not produce the proprietary protocol message, yet, exactly often can the hiding problem of exposure system by these special tests.In other words, in fact this method of testing of special test equipment of utilizing of prior art is difficult to complete network environment that is virtually reality like reality, causes testing insufficient.In addition, the method for testing automaticity of prior art is low, and test mass relies on tester's experience and technology, and this also omits some indiscoverable mistakes easily.
Summary of the invention
The embodiment of the invention provides method of testing, equipment and the test macro of communication equipment veneer.
The embodiment of the invention provides a kind of method of testing of communication equipment veneer, comprising: read the message configuration attribute, generate test packet according to described message configuration attribute;
Described test packet is sent to tested veneer;
Receive the message that tested veneer returns, judge whether the message that receives is that described test packet is handled the processing message that the back forms through tested veneer, if then described processing message is tested and obtain assay;
Add up described assay, and generate test report according to statistics.
A kind of testing equipment comprises sending module, receiver module, message generation module, judge module, inspection module and statistical module;
Described message generation module is used to read the message configuration attribute, generates test packet according to described message configuration attribute;
Described sending module is used for the test packet that described message generation module generates is sent to tested veneer;
Described receiver module is used to receive the message that described tested veneer returns;
Described judge module is used to judge whether the message that described receiver module is received is that described test packet is handled the processing message that the back forms through tested veneer;
Described inspection module is used for when described judge module is judged message that described receiver module receives to be described test packet through tested veneer handled the processing message that the back forms, and described processing message is tested obtains assay;
Described statistical module is used to add up described assay, and generates test report according to statistics.
A kind of communication test system, described test macro comprise tested veneer and above-mentioned testing equipment.
The embodiment of the invention is by being configured message attribute, can generate different test packets, therefore, with prior art use test instrument system is tested and to compare, the present invention to some nonstandard protocol messages (for example not only can realize, the proprietary protocol message) test, and can realize comprising the test of exception messages such as overlength message, out of order message, payload check errors message.Because exception message more can the changeable real network environment of Simulation of Complex, therefore, the problem that method of testing of the present invention occurs in the time of more testing out the actual operation of network, the test result that obtains is reliable more, truly; In addition, the method for testing whole test process automation that the embodiment of the invention provides does not need manual intervention, therefore, has reduced the dependence to tester's technology or experience yet, and the test result that draws is more objective.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method for testing basic procedure schematic diagram of a kind of communication equipment veneer of providing of the embodiment of the invention;
Fig. 2 is an Ethernet message format schematic diagram in the embodiment of the invention;
Fig. 3 is the IP heading schematic diagram in the embodiment of the invention;
Fig. 4 is a kind of testing equipment basic structure schematic diagram that the embodiment of the invention provides;
Fig. 5 is the another kind of testing equipment basic structure schematic diagram that the embodiment of the invention provides;
Fig. 6 is another testing equipment basic structure schematic diagram that the embodiment of the invention provides;
Fig. 7 is another testing equipment basic structure schematic diagram that the embodiment of the invention provides;
Fig. 8 is the communication test system basic structure schematic diagram that the embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Please refer to Fig. 1, the method for testing basic procedure schematic diagram of a kind of communication equipment veneer that the embodiment of the invention provides.This method mainly comprises step:
S101 reads the message configuration attribute, generates test packet according to this message configuration attribute.
For convenience of description, the message of the embodiment of the invention is assumed to be the Ethernet message, but it will be understood by those skilled in the art that the message of the embodiment of the invention is not limited to the Ethernet message, can also be other messages such as ATM message, P2P protocol massages.The typical Ethernet message format that present embodiment provides comprises Ethernet heading, IP heading and message payload (Payload) as shown in Figure 2.Wherein, the message payload can also comprise some check field.In embodiments of the present invention, can be configured IP heading and message payload check field in advance, the message configuration attribute that forms after these configurations is stored in the memory.When the test beginning, from memory, read these message configuration attributes, thereby generate test packet according to described message configuration attribute.Owing to can dispose different message configuration attributes according to actual needs, therefore, the test packet that generates also can be varied, can simulate the message in the real network environment better, is not limited to several test packets that tester can produce in the prior art method of testing.
For example, shown in Figure 3 is the form of a classical ip heading in the present embodiment, comprises IP message length field, source IP field, purpose IP field, IP heading protocol number field, field offset field and type of service field etc.In embodiments of the present invention, can be configured IP message length field.For example, IP message length field configuration can be become fixed length, elongated, random-length or overlength, be used to generate fixed length message, elongated message, random-length message or overlength message.Especially, for being configured to the overlength message, for example, the message of 1500 bytes, standard ethernet protocol is not supported, but many proprietary protocols are all supported, therefore, than tester of the prior art, present embodiment aspect the test packet that can generate all lengths is being a breakthrough, by reading for example IP message length field of message configuration attribute, can generate the test packet of all lengths, thereby the limit test that the tester that can finish prior art can not be finished (for example, to length being the test of this class overlength message of 1500 bytes).
The tester of prior art can only be tested limited several standard agreement messages, but in embodiments of the present invention, can be configured IP heading protocol number field, message after the configuration can also be supported the test of other more nonstandard protocol messages such as proprietary protocol except the test that can support working standard protocol massages such as TCP, UDP or TELNET.
In order to guarantee to discern in the subsequent processes alignment processing message of test packet, in embodiments of the present invention, can the message payload check field (as shown in Figure 2) in the message payload be configured.Particularly, can the magic field in the message payload check field be configured.Magic field (magic num) is equivalent to an identification field, what adopt between the veneer of communication equipment in the present embodiment is common bus communication, testing equipment for example coffret plate can be received non-test packet, the magic field (for example is configured to a fixed value, 0x5a7e), can be used to distinguish a message is that test packet also is non-test packet,, can be used to judge whether message is test packet after disposing this field that is.
Because after tested veneer receives test packet in the present embodiment, can handle formation to test packet and handle message, and will handle message and return to testing equipment, so can also utilize the magic field to judge whether message is the processing message that forms based on test packet in the present embodiment.
For test or checking prediction message whether whether payload (Payload) out of order or message makes mistakes in network transmission process, in embodiments of the present invention, can also be configured other field (as shown in Figure 2) in the message payload check field, for example, the configuration of test serial number field, the configuration of CRC check field and at least one in the stream index field are configured etc.; Particularly, when configuration, can dispose above-mentioned message payload check field at message payload section start.It is as follows relevant field in the verification of above-mentioned message payload to be done brief description herein.
The test serial number field is a sequence number that is that each test packet that sends distributes, and its numerical value increases progressively according to the sequence number that sends, and disposes whether be used for the verification test message after this field out of order in the transmission of network; Particularly, receiving terminal can judge whether the transmission of test packet in network be out of order according to the test serial number that receives.
The CRC check field, i.e. whether cyclic redundancy check field is done the CRC protection to payload, be used for checking the payload of message to be modified when network transmits after disposing this field; Particularly, receiving terminal can judge whether the payload of message is modified according to the CRC check field in network transmission process.
The stream index field is used for the configuration list item that data query flows after the configuration; Particularly, receiving terminal can be inquired about according to the configuration list item that flows according to the stream index field, and data flow is made of a plurality of messages that transmit in network, has precedence relationship between these messages.
Can understand, in order to produce a greater variety of messages or to reach more test purposes, can also carry out various configurations to IP heading or message payload check field, also can increase the project of configuration, above-mentioned configuration just is used for of the present invention illustrating, and is not limited to the present invention.
By flexible configuration to message attribute, not only can as tester in the prior art, generate messages commonly used such as UDP message stream, tcp data stream, Ping message, ARP message and IP fragmentation message, can also generate such as a verification misrepresent deliberately literary composition, various exception messages such as literary composition, out of order message, overlength message and proprietary protocol message are misrepresented deliberately in the verification of TCP payload.
S102 is sent to tested veneer with test packet.
Generate after the test packet, can be further to test packet resolve, route analysis, traffic shaping (TS, Traffic Shaping) and operation such as queue management, be sent to tested veneer then, wherein packet parsing, route analysis, TS and queue management etc. are similar with prior art or identical, do not do herein and give unnecessary details.
S103 judges whether the message that receives is that test packet is handled the processing message that the back forms through tested veneer, if then this processing message is tested and obtain assay.
Tested veneer can be back to testing tool (being testing equipment) after test packet is handled, for example, be back to coffret plate of using as testing tool etc., yet, as previously mentioned, because what adopt between the veneer of communication equipment is common bus communication, concerning the coffret plate, also may receive non-test packet.Therefore, in embodiments of the present invention, whether the coffret plate of using as testing tool need be that the processing message that forms and return after test packet is handled through tested veneer is judged to the message that receives.
Because tested veneer is when handling test packet in the present embodiment, can not change and wherein be used to (for example identify this message, identifying this message is that test packet also is non-test packet) identification field, therefore, when the coffret plate of using as testing tool is judged, can check certain identification field in the message that receives, if the value of this identification field is identical with the value of corresponding identification field in the test packet that sends, judge that then the message that receives is the processing message that forms and return after test packet is handled through tested veneer.
As one embodiment of the invention, test packet is being handled in the process that forms the processing message, can't make amendment to the payload part of test packet, that is to say that handling message compares with test packet, payload part can not change, thereby the magic field in the payload can not change yet, can test to the magic field in the message payload, if its value be the Configuration Values of test packet when sending (for example, 0x5a7e), judge that then the message of receiving is the processing message that forms and return after test packet is handled through tested veneer, otherwise, judge that the message of receiving is not the processing message that forms and return after test packet is handled through tested veneer, further, can also abandon the message of receiving.
Test packet and processing message are corresponding mutually in the present embodiment, for example a test packet is handled the back through tested veneer and is formed a processing message, this processing message is compared with test packet, and payload part (comprising message payload check field) remains unchanged.
Test and to comprise handling message in the present embodiment: the CRC check field that the processing message comprises is carried out verification,, then send error messages if make mistakes.Whether the CRC check field is carried out verification is to be modified when transmitting in network for the payload (comprising the payload check field) of judging message, if change, then thinks and makes mistakes.Makeing mistakes to occur in the transmission course of test packet, also may occur in the transmission course of handling message.If not change thinks that then the transmission of test packet and the transmission of processing message all do not make mistakes.
Perhaps test and to comprise: read adjacent two test serial number fields of handling message, obtain described adjacent two test serial numbers of handling message handling message; Calculate the poor of described adjacent two test serial numbers of handling messages, if described difference is greater than predetermined value, judge that then the transmission of test packet in network is out of order, it is out of order perhaps to handle the transmission of message in network, perhaps the transmission of the transmission of test packet and processing message all takes place out of order, promptly judge test packet in network transmission and handle the transmission of message in network at least one be out of order in the two, and send out wrong message.Adjacent two processing messages refer to that testing equipment receives when handling message the adjacent processing message that receives in the present embodiment.Be understandable that because Network Transmission may cause the out of order of message, the order the when order between the adjacent processing message that testing equipment receives might not send these processing messages with tested veneer is identical.
Wherein read adjacent two test serial number fields of handling message, obtaining described adjacent two test serial numbers of handling messages can be in the following way: for example can read a test serial number field in the payload of handling message, obtain the test serial number of this processing message; Inquire about the message configuration attribute table of this processing message according to the stream index field that this processing message comprises, thereby read the test serial number field of previous processing message, obtain the test serial number of this previous processing message.Perhaps can take alternate manner, the embodiment of the invention does not limit this yet.For example receive one handle message after, read the test serial number field in the payload of this processings message, and receive next handle message after, read the test serial number field of this next one processing message.
As an optional embodiment, can be after the transmission that makeing mistakes and handling message of finding test packet according to the CRC check field all make mistakes yet, again the check test message in network transmission and the transmission of processing message in network in whether occur out of order.Concrete deterministic process can no longer describe in detail referring to the foregoing description herein.
S104, the assay of statistic procedure S103, and according to statistics generation test report.
In below assay can comprise at least one: test packet in network transmission and handle the transmission of message in network whether payload changed (promptly whether makeing mistakes); Whether transmission and processing message the transmission in network of test packet in network be out of order.
Further, assay can also comprise through occurring the wrong number of times and/or the number of the correct processing message that receives after the CRC check.
In addition, present embodiment can also further be added up the test packet that sends when adding up, and comprises the test packet number that sends and the statistics of byte number; Statistical can comprise the tabulate statistics that sends according to type of message statistics, according to each data flow experience different transmission path and at the statistics respectively of every veneer etc.
In addition, present embodiment can also be further be added up the processing message that receives when adding up, and comprises at each statistics of handling message byte number etc. for example, the processing message number that receives etc.; Statistical comprises according to returning the harden tabulate statistics of fruit and at the statistics respectively of every tested veneer etc. of coffret after each data flow experience different transmission path.
In addition, can also and handle the message number according to the test packet number, whether statistics packet loss takes place, and for example on each data flow whether packet loss takes place, and between every tested veneer and the coffret plate whether packet loss takes place.
Testing equipment can for example be handled message to message automatically and test after receiving the processing message in the present embodiment, and generates test report according to assay.
From the invention described above embodiment as can be known, by configuration to message attribute, can generate different test packets, therefore, with prior art use test instrument system is tested and to compare, the present invention not only can realize (for example, the proprietary protocol message) the test, and can realizing comprising the test of exception messages such as overlength message, out of order message, payload check errors of some nonstandard protocol messages.Because exception message more can the changeable real network environment of Simulation of Complex, therefore, the problem that method of testing of the present invention occurs in the time of more testing out the actual operation of network, the test result that obtains is reliable more, truly; Meanwhile, the method for testing whole test process automation that the embodiment of the invention provides does not need manual intervention, therefore, has reduced the dependence to tester's technology or experience yet, and the test result that draws is more objective.
See also Fig. 4, the testing equipment that the embodiment of the invention provides is coffret plate basic structure schematic diagram for example.For convenience of explanation, only show the part relevant with the embodiment of the invention.
Usually, the coffret plate provides the communication system external interface, finishes message and receives, sends, transmits, separates functions such as frame/framing and scheduling, handles various host-host protocols.In embodiments of the present invention, the coffret plate also comprises message generation module 401, judge module 404, inspection module 405 and statistical module 406 except comprising sending module 402 and receiver module 403.
Message generation module 401 is used to read the message configuration attribute, generates test packet according to this message configuration attribute;
Sending module 402 is used for the test packet that message generation module 401 generates is sent to tested veneer;
Receiver module 403 is used to receive the message that tested veneer returns;
Judge module 404 is used to judge whether the message that receiver module 403 is received is the processing message that forms and return after test packet is handled through tested veneer;
Inspection module 405 is used for when judge module 404 judges that message that receiver modules 403 are received is the processing message that forms and return after test packet is handled through tested veneer, tests and obtains assay handling message;
Statistical module 406 is used for test packet that assay that statistical test module 405 obtains and sending module 402 send and generates test report according to statistics.
In this enforcement, the message configuration attribute comprises configuration of IP heading and the configuration of message payload check field, wherein:
The configuration of IP heading comprises the configuration of IP message length and the configuration of IP heading protocol number, is used to generate the message of all lengths after the IP message length field configuration, is used to support various protocols after the IP heading protocol number field configuration, comprises proprietary protocol;
The configuration of message payload check field comprises the configuration of magic field in the message payload, behind 404 pairs of magic field checkings of judge module, can judge whether the message that receiver module 403 is received is the processing message that forms and return after test packet is handled through tested veneer;
Further, in the present embodiment, message payload check field configuration can also comprise at least one in the configuration of the configuration of configuration, CRC check field of test serial number field and stream index field; Wherein:
Whether be used for the verification test message after the test serial number field configuration out of order in the transmission of network;
Whether the payload that is used for the verification test message after the CRC check field configuration is modified when network transmits;
Be used for configuration list item after the stream index field configuration at receiving terminal data query stream
By configuration to IP heading and message payload check field, (for example not only can realize some nonstandard protocol messages, the proprietary protocol message) test, and can realize comprising the test of exception messages such as overlength message, out of order message, payload check errors.Because exception message more can the changeable real network environment of Simulation of Complex, therefore, the problem of appearance when the coffret plate that the embodiment of the invention provides more can test out the actual operation of network.
The judge module 404 of Fig. 4 example can comprise first judging unit 501, as shown in Figure 5 the another kind of testing equipment (for example, coffret plate etc.) that provides of the embodiment of the invention.First judging unit 501 is used for the value of the message magic field that receives according to receiver module 403, judges whether the message of receiving is that test packet is handled the processing message that the back forms through tested veneer.
The inspection module 405 of Fig. 4 or Fig. 5 example can comprise CRC check unit 601, as shown in Figure 6 another testing equipment (for example, coffret plate etc.) of providing of the embodiment of the invention.CRC check unit 601 is used for the CRC check field that the processing message comprises is carried out verification, if make mistakes, then sends error messages.
The inspection module 405 of Fig. 4 or Fig. 5 may further include reading unit 701, computing unit 702 and second judging unit 703; Alternatively, inspection module 405 for Fig. 6 example can be according to actual needs (for example, do not need message is done CRC check) do not comprise CRC check unit 601, another testing equipment (for example, coffret plate etc.) of providing of the embodiment of the invention as shown in Figure 7.Wherein:
Reading unit 701 reads the test serial number field of adjacent two test packets, obtains the test serial number of these adjacent two test packets;
Computing unit 702 is used to calculate test serial number poor of adjacent two test packets that reading unit 701 obtains;
Second judging unit 703 is used for if computing unit 702 calculates the gained differences greater than predetermined value, then judge test packet in network transmission and handle the transmission of message in network at least one be out of order in the two, send error messages.
Particularly, computing unit 702 calculates the test serial number field of test packets and the difference of the test serial number field of the previous test packet of this test packet, as if this difference greater than a predetermined value, for example 2 31-1, then second judging unit 703 judges that the transmission of test packet in network is out of order, it is out of order perhaps to handle the transmission of message in network, perhaps the transmission of the transmission of test packet and processing message all takes place out of order, promptly judge test packet in network transmission and handle the transmission of message in network at least one be out of order in the two, and send out wrong message.Adjacent two processing messages refer to that testing equipment receives when handling message the adjacent processing message that receives in the present embodiment.Be understandable that because Network Transmission may cause the out of order of message, the order the when order between the adjacent processing message that testing equipment receives might not send these processing messages with tested veneer is identical.
For reading unit 701, it obtains adjacent two test serial numbers of handling messages can be in the following way: for example can read a test serial number field in the payload of handling message, obtain the test serial number of this processing message; Inquire about the message configuration attribute table of this processing message according to the stream index field that this processing message comprises, thereby read the test serial number field of previous processing message, obtain the test serial number of this previous processing message.Perhaps can take alternate manner, the embodiment of the invention does not limit this yet.For example receive one handle message after, read the test serial number field in the payload of this processings message, and receive next handle message after, read the test serial number field of this next one processing message.
For example, if computing unit 702 calculates the difference of test serial number field of previous test packet of the test serial number field of test packets and this test packet greater than 2 31-1, judge that then the transmission of test packet in network is out of order, send error messages, it is basic according to being: network congestion may cause test packet to be lost in transmission, thereby causes test serial number discontinuous but be unlikely to out of order; If the absolute difference of two test serial numbers receiving has continuously surpassed test serial number maximum 2 32Half because test serial number produces by 32 (bit) binary codings, do not have the situation that licks head in the reality, only understand by message out of order and introduce in transmission course.Therefore, when the difference of the test serial number field of the previous test packet of the test serial number field of test packet and this test packet greater than 2 31, think that the transmission of this test packet in network is out of order at-1 o'clock.
The functional module that the coffret plate of the invention described above embodiment comprises all is programmable, (for example not only can realize some nonstandard protocol messages, the proprietary protocol message) test, and can realize comprising the test of exception messages such as overlength message, out of order message, payload check errors.Because exception message more can the changeable real network environment of Simulation of Complex, therefore, the coffret plate that the embodiment of the invention provides more can test out the problem that occurs when network is actual to be runed, simultaneously, the coffret plate that the embodiment of the invention provides makes the whole test process automation, reduced dependence to tester's technology or experience, and, than the tester of prior art costliness, the programmability of the coffret plate functional module that the embodiment of the invention provides makes that also testing cost reduces greatly.
See also Fig. 8, the communication test system structural representation that the embodiment of the invention one provides.For convenience of explanation, only show the part relevant with the embodiment of the invention.This test macro comprises tested veneer 81 and testing equipment 82, and wherein, tested veneer 81 can be one, also can be a plurality of, and testing equipment (for example, coffret plate etc.) 82 specific implementations can be participated in the testing equipment that above-mentioned each embodiment provides.
In above-mentioned 8 examples, testing equipment 82 is by backboard switching bus 83, and for example, the GE bus links to each other with tested veneer 81.
Need to prove, contents such as the information interaction between each module/unit of the foregoing description equipment, implementation since with the inventive method embodiment based on same design, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than method of testing, equipment and the test macro of the communication equipment veneer that the embodiment of the invention provided is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (13)

1. the method for testing of a communication equipment veneer is characterized in that, comprising:
Read the message configuration attribute, generate test packet according to described message configuration attribute;
Described test packet is sent to tested veneer;
Receive the message that tested veneer returns, judge whether the message that receives is that described test packet is handled the processing message that the back forms through tested veneer, if then described processing message is tested and obtain assay;
Add up described assay, and generate test report according to statistics.
2. method of testing according to claim 1 is characterized in that, described message configuration attribute comprises configuration of IP heading and the configuration of message payload check field;
Described IP heading configuration comprises the configuration of IP message length field and the configuration of IP heading protocol number field; Wherein:
Described IP message length field is used to generate the test packet of all lengths;
Described IP heading protocol number field is used to support various protocols, comprises proprietary protocol;
The configuration of described message payload check field comprises the configuration of magic field in the message payload, and whether described magic field is used to check message is test packet or the processing message that forms based on test packet.
3. method of testing according to claim 2 is characterized in that, the configuration of described message payload check field also comprises at least one in the configuration of the configuration of configuration, CRC check field of test serial number field and stream index field;
Described test serial number field, whether be used for the verification test message out of order in the transmission of network;
Described CRC check field, whether the payload that is used for the verification test message is modified when network transmits;
Described stream index field is used for the configuration list item at receiving terminal data query stream.
4. method of testing according to claim 1 is characterized in that, whether the message that described judgement receives is that the processing message that described test packet is handled back formation through tested veneer comprises:
According to the value of magic field in the payload of the described message that receives, judge whether the message of receiving is that described test packet is handled the processing message that the back forms through tested veneer.
5. method of testing according to claim 1 is characterized in that, described described processing message is tested comprises:
The CRC check field that described processing message comprises is carried out verification,, then send error messages if make mistakes.
6. method of testing according to claim 1 is characterized in that, described described processing message is tested comprises:
Read adjacent two test serial number fields of handling message, obtain described adjacent two test serial numbers of handling message;
Calculate the poor of described adjacent two test serial numbers of handling messages, if described difference greater than predetermined value, then judge described test packet in network transmission and the transmission of described processing message in network at least one has been out of order in the two, send error messages.
7. a testing equipment comprises sending module and receiver module, it is characterized in that, also comprises message generation module, judge module, inspection module and statistical module;
Described message generation module is used to read the message configuration attribute, generates test packet according to described message configuration attribute;
Described sending module is used for the test packet that described message generation module generates is sent to tested veneer;
Described receiver module is used to receive the message that described tested veneer returns;
Described judge module is used to judge whether the message that described receiver module is received is that described test packet is handled the processing message that the back forms through tested veneer;
Described inspection module is used for when described judge module is judged message that described receiver module receives to be described test packet through tested veneer handled the processing message that the back forms, and described processing message is tested obtains assay;
Described statistical module is used to add up described assay, and generates test report according to statistics.
8. testing equipment according to claim 7 is characterized in that, described message configuration attribute comprises configuration of IP heading and the configuration of message payload check field;
Described IP heading configuration comprises the configuration of IP message length field and the configuration of IP heading protocol number field; Wherein:
Described IP message length field is used to generate the test packet of all lengths;
Described IP heading protocol number field is used to support various protocols, comprises proprietary protocol;
The configuration of described message payload check field comprises the configuration of magic field in the message payload, and whether described magic field is used to check message is test packet or the processing message that forms based on test packet.
9. testing equipment according to claim 8 is characterized in that, the configuration of described message payload check field also comprises at least one in the configuration of the configuration of configuration, CRC check field of test serial number field and stream index field;
Described test serial number field, whether be used for the verification test message out of order in the transmission of network;
Described CRC check field, whether the payload that is used for the verification test message is modified when network transmits;
Described stream index field is used for the configuration list item at receiving terminal data query stream.
10. testing equipment according to claim 7 is characterized in that, described judge module comprises:
First judging unit is used for the value according to the payload magic field of the described message that receives, and judges whether the message of receiving is that described test packet is handled the processing message that the back forms through tested veneer.
11. testing equipment according to claim 7 is characterized in that, described inspection module comprises:
The CRC check unit is used for the CRC check field that described processing message comprises is carried out verification, if make mistakes, then sends error messages.
12. testing equipment according to claim 11 is characterized in that, described inspection module comprises:
Reading unit is used to read adjacent two test serial number fields of handling message, obtains described adjacent two test serial numbers of handling message;
Computing unit is used to calculate the poor of described adjacent two test serial numbers of handling messages;
Second judging unit is used for when described computing unit calculates described difference greater than predetermined value, judge described test packet in network transmission and the transmission of described processing message in network at least one has been out of order in the two, and send out wrong message.
13. a communication test system is characterized in that, described test macro comprises any described testing equipment in tested veneer and the claim 7 to 12.
CN 201010150001 2010-04-14 2010-04-14 Testing method, device and testing system for single board of communication apparatus Active CN101854648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010150001 CN101854648B (en) 2010-04-14 2010-04-14 Testing method, device and testing system for single board of communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010150001 CN101854648B (en) 2010-04-14 2010-04-14 Testing method, device and testing system for single board of communication apparatus

Publications (2)

Publication Number Publication Date
CN101854648A true CN101854648A (en) 2010-10-06
CN101854648B CN101854648B (en) 2013-01-02

Family

ID=42805854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010150001 Active CN101854648B (en) 2010-04-14 2010-04-14 Testing method, device and testing system for single board of communication apparatus

Country Status (1)

Country Link
CN (1) CN101854648B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970187A (en) * 2012-12-04 2013-03-13 华为技术有限公司 Single board testing method, device and system
CN103746868A (en) * 2013-12-23 2014-04-23 普联技术有限公司 Methods and apparatuses for sending and receiving testing messages, and testing equipment
CN104900026A (en) * 2014-03-04 2015-09-09 国网上海市电力公司 Monitoring method for collector in centralized meter reading system
CN105049380A (en) * 2015-08-27 2015-11-11 广州市百果园网络科技有限公司 Network communication processing method and communication service equipment
CN105356966A (en) * 2014-08-22 2016-02-24 华为技术有限公司 Cyclic redundancy check (CRC) implementation method and device, and network equipment
WO2016078312A1 (en) * 2014-11-19 2016-05-26 中兴通讯股份有限公司 Single board testing method and device
CN105915529A (en) * 2016-05-19 2016-08-31 微梦创科网络科技(中国)有限公司 Message generation method and device
CN105991358A (en) * 2015-02-06 2016-10-05 中兴通讯股份有限公司 Method, device, test board and system for testing traffic of interface board
CN107426053A (en) * 2017-07-26 2017-12-01 成都科来软件有限公司 A kind of automation building method of packet load
CN108259086A (en) * 2016-12-29 2018-07-06 中兴通讯股份有限公司 On-line monitoring method, apparatus and system
CN109218072A (en) * 2018-07-19 2019-01-15 深圳市宏电技术股份有限公司 A kind of single board testing system and method
CN110708216A (en) * 2019-10-12 2020-01-17 深圳市吉祥腾达科技有限公司 Switch LLDP protocol test method and test system
CN112462664A (en) * 2020-11-30 2021-03-09 广州仪速安电子科技有限公司 Instrument interface data monitoring system
WO2021128936A1 (en) * 2019-12-26 2021-07-01 盛科网络(苏州)有限公司 Message processing method and apparatus
CN113852610A (en) * 2021-09-06 2021-12-28 招银云创信息技术有限公司 Message processing method and device, computer equipment and storage medium
CN115277517A (en) * 2022-07-22 2022-11-01 中国银行股份有限公司 Communication testing method and device based on message queue

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789452B (en) * 2017-03-08 2019-09-20 中国人民解放军国防科学技术大学 A kind of mapping scale method for testing pressure based on LISP

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625271A (en) * 2003-12-01 2005-06-08 中兴通讯股份有限公司 One board testing device of digital user wire equipment
CN101145861A (en) * 2007-07-20 2008-03-19 中兴通讯股份有限公司 Automatic testing method and system for single board service stability

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625271A (en) * 2003-12-01 2005-06-08 中兴通讯股份有限公司 One board testing device of digital user wire equipment
CN101145861A (en) * 2007-07-20 2008-03-19 中兴通讯股份有限公司 Automatic testing method and system for single board service stability

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970187B (en) * 2012-12-04 2015-09-09 华为技术有限公司 A kind of single-board testing method, Apparatus and system
CN102970187A (en) * 2012-12-04 2013-03-13 华为技术有限公司 Single board testing method, device and system
CN103746868B (en) * 2013-12-23 2017-07-04 普联技术有限公司 A kind of method, device and test equipment for sending and receiving test packet
CN103746868A (en) * 2013-12-23 2014-04-23 普联技术有限公司 Methods and apparatuses for sending and receiving testing messages, and testing equipment
CN104900026A (en) * 2014-03-04 2015-09-09 国网上海市电力公司 Monitoring method for collector in centralized meter reading system
CN105356966A (en) * 2014-08-22 2016-02-24 华为技术有限公司 Cyclic redundancy check (CRC) implementation method and device, and network equipment
CN105356966B (en) * 2014-08-22 2019-07-23 华为技术有限公司 Cyclic redundancy check implementation method, device and the network equipment
WO2016078312A1 (en) * 2014-11-19 2016-05-26 中兴通讯股份有限公司 Single board testing method and device
CN105656708A (en) * 2014-11-19 2016-06-08 中兴通讯股份有限公司 Single-board testing method and device
CN105991358B (en) * 2015-02-06 2020-11-03 中兴通讯股份有限公司 Method, device, test board and system for testing interface board flow
CN105991358A (en) * 2015-02-06 2016-10-05 中兴通讯股份有限公司 Method, device, test board and system for testing traffic of interface board
CN105049380B (en) * 2015-08-27 2018-11-23 广州市百果园网络科技有限公司 A kind of network communication processing method and communication service equipment
CN105049380A (en) * 2015-08-27 2015-11-11 广州市百果园网络科技有限公司 Network communication processing method and communication service equipment
CN105915529B (en) * 2016-05-19 2019-04-16 微梦创科网络科技(中国)有限公司 A kind of message forming method and device
CN105915529A (en) * 2016-05-19 2016-08-31 微梦创科网络科技(中国)有限公司 Message generation method and device
CN108259086A (en) * 2016-12-29 2018-07-06 中兴通讯股份有限公司 On-line monitoring method, apparatus and system
CN108259086B (en) * 2016-12-29 2022-09-30 中兴通讯股份有限公司 Online monitoring method, device and system
CN107426053B (en) * 2017-07-26 2021-01-05 成都科来软件有限公司 Automatic construction method for data packet load
CN107426053A (en) * 2017-07-26 2017-12-01 成都科来软件有限公司 A kind of automation building method of packet load
CN109218072A (en) * 2018-07-19 2019-01-15 深圳市宏电技术股份有限公司 A kind of single board testing system and method
CN110708216A (en) * 2019-10-12 2020-01-17 深圳市吉祥腾达科技有限公司 Switch LLDP protocol test method and test system
WO2021128936A1 (en) * 2019-12-26 2021-07-01 盛科网络(苏州)有限公司 Message processing method and apparatus
CN112462664A (en) * 2020-11-30 2021-03-09 广州仪速安电子科技有限公司 Instrument interface data monitoring system
CN112462664B (en) * 2020-11-30 2022-03-18 广州仪速安电子科技有限公司 Instrument interface data monitoring system
CN113852610A (en) * 2021-09-06 2021-12-28 招银云创信息技术有限公司 Message processing method and device, computer equipment and storage medium
CN113852610B (en) * 2021-09-06 2024-03-05 招银云创信息技术有限公司 Message processing method, device, computer equipment and storage medium
CN115277517A (en) * 2022-07-22 2022-11-01 中国银行股份有限公司 Communication testing method and device based on message queue

Also Published As

Publication number Publication date
CN101854648B (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN101854648B (en) Testing method, device and testing system for single board of communication apparatus
US8614955B2 (en) Misdirected packet detection apparatus and method
CN101272291B (en) Network appliance testing method and system
CN102740342A (en) Network management equipment performance simulation test method and system
US8654654B2 (en) Traffic distribution control
CN101917305A (en) Method for automatically checking topology in automatic test and automatic test system
CN108964943A (en) A kind of method and device for realizing IOAM encapsulation
CN105227406A (en) A kind of method of testing of router combination property
US20090013072A1 (en) Network apparatus test system and network apparatus test method
CN102098702B (en) Performance testing system, method and equipment
CN105553885B (en) A kind of FC interchanger priority test method
CN104702468A (en) Transmission path determining method, device and system
CN101547063A (en) Method and system for testing forward delay
CN112333019A (en) Router configuration and test method and system and readable storage medium
US20070047448A1 (en) Network equipment testing method and system
US20040127212A1 (en) Apparatus, system and method for network testing
US10176068B2 (en) Methods, systems, and computer readable media for token based message capture
CN111935767B (en) Network simulation system
CN114374625A (en) Time-sensitive network testing method and device, electronic equipment and storage medium
CN107483336B (en) System and method for testing MAC address capacity of network equipment
CN105117344A (en) Interface integration test method and system based on PB
CN101072135A (en) Wireless LAN testing method and system
US20160036672A1 (en) Testing by simulation using variations of real-time traffic
CN110768871B (en) Test method and system for automatically counting data transmission correctness of DCS (distributed control system)
CN110380981A (en) A kind of traffic distribution method and apparatus

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