CN103078765A - Test method and device of network element equipment performance - Google Patents

Test method and device of network element equipment performance Download PDF

Info

Publication number
CN103078765A
CN103078765A CN2012105870793A CN201210587079A CN103078765A CN 103078765 A CN103078765 A CN 103078765A CN 2012105870793 A CN2012105870793 A CN 2012105870793A CN 201210587079 A CN201210587079 A CN 201210587079A CN 103078765 A CN103078765 A CN 103078765A
Authority
CN
China
Prior art keywords
setting
analog service
stream
network element
real time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012105870793A
Other languages
Chinese (zh)
Inventor
周英伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN2012105870793A priority Critical patent/CN103078765A/en
Publication of CN103078765A publication Critical patent/CN103078765A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a test method and a test device of network element equipment performance. The method comprises the following steps that real-time business flow from a business network element to a to-be-tested network element is obtained; according to a set message protocol format, field contents are resolved and obtained from messages of the real-time business flow, and a field set is generated; according to set test message protocol requirements, analog business flow is generated on the basis of the field set; and according to set performance test requirements, the analog business flow is sent to the to-be-tested network element, so as to perform performance test. According to the test method and the test device of the network element equipment performance, which are provided by the embodiment of the invention, the test flexibility can be improved.

Description

Network element device performance test methods and device
Technical field
The embodiment of the invention relates to measuring technology, relates in particular to a kind of network element device performance test methods and device.
Background technology
Test is the conventional means whether performance of assessment network element device meets customer need, and for example, carries out performance test and overload measurement by sending Business Stream to routing device, bearing capacity and the transfer capability of checking routing device.
In the prior art, when testing for the performance of network traffics and agreement, at first determine tested performance index, then produce the Business Stream that meets tested performance index by tester or simulator, and then network element device is carried out test.For the network element device that meets reference format protocol stack (such as TCP/IP), because commercial tester is only supported the test of layer 4-7 or layer 2-4 procotol usually, therefore, be the managing business of layer 4-7 or layer 2-4 in the procotol according to measurand, choose the Business Stream that the tester of supporting this standard agreement produces corresponding agreement; For the network element device that uses self-defining agreement or service message form in order to realize some specific functions, commercial tester can't support that the simulator that need to develop the nonstandard protocol form of supporting that this network element device is used produces the Business Stream of corresponding form.
Therefore, the scheme of the testing network element equipment performance of prior art needs to use and the protocol type of network element device use and tester or the simulator that encapsulation format is complementary very flexible.
Summary of the invention
The embodiment of the invention provides a kind of network element device performance test methods and device, in order to improve the flexibility of test.
First aspect, the embodiment of the invention provide a kind of network element device performance test methods, comprising:
Obtain business network element to the real time business stream of tested element;
According to the message protocol form of setting, from the message of described real time business stream, resolve and obtain field contents, generate sets of fields;
According to the test packet protocol requirement of setting, produce analog service stream based on described sets of fields;
Performance test demand according to setting is sent to tested element with described analog service stream, to carry out performance test.
In the possible implementation of the first of first aspect, the described business network element that obtains comprises to the real time business stream of tested element:
By being connected to the switch between business network element and the tested element, described real time business stream is carried out image copying, to obtain described real time business stream.
In the possible implementation of the second of first aspect, according to the message protocol form of setting, from the message of described real time business stream, resolve and obtain field contents, generate sets of fields and comprise:
According to the fixed field position in the message protocol form of setting, from the message of described real time business stream, resolve the content of obtaining corresponding fixed field, generate the fixed field collection.
In conjunction with the possible implementation of the second of first aspect or first aspect, in the third possible implementation, generate before the fixed field collection, also comprise: the content of described fixed field is converted to hexadecimal format.
In conjunction with the possible implementation of the second of first aspect or first aspect or the third possible implementation of first aspect, in the 4th kind of possible implementation, according to the test packet protocol requirement of setting, produce analog service stream based on described sets of fields, comprising:
According to the test packet protocol requirement of setting, based on described fixed field collection and the universal field collection that prestores, splicing produces analog service stream.
In the 5th kind of possible implementation of first aspect, the performance test demand according to setting is sent to tested element with described analog service stream, comprises to carry out performance test:
According to the performance test demand of setting, dispose ratio and the transmission delay of many described analog service streams, the analog service stream after the configuration is sent to tested element, to carry out performance test.
In the 6th kind of possible implementation of first aspect, described test packet protocol requirement according to setting produces analog service stream based on described sets of fields and comprises:
According to the test packet protocol requirement of setting, generate the analog service flow template;
According to the selection indication of user's input, from described sets of fields, select field contents to be filled in the described analog service flow template, as described analog service stream.
Second aspect, the embodiment of the invention provide a kind of network element device performance testing device, comprising:
Acquisition module is used for obtaining business network element to the real time business stream of tested element;
Parsing module is used for according to the message protocol form of setting, and resolves from the message of described real time business stream and obtains field contents, generates sets of fields;
Constructing module is used for according to the test packet protocol requirement of setting, and produces analog service stream based on described sets of fields;
Sending module is used for described analog service stream being sent to tested element, to carry out performance test according to the performance test demand of setting.
In the possible implementation of the first of second aspect, described acquisition module, carries out image copying to described real time business stream, to obtain described real time business stream at concrete being used for by being connected to the switch between business network element and the tested element.
In the possible implementation of the second of second aspect, described parsing module, the content of obtaining corresponding fixed field is resolved in the concrete fixed field position that is used for according to the message protocol form of setting from the message of described real time business stream, generate the fixed field collection.
In conjunction with the possible implementation of the second of second aspect or second aspect, in the third possible implementation, also comprise modular converter, be used for the content of described fixed field is converted to hexadecimal format.
In conjunction with the possible implementation of the second of second aspect or second aspect or the third possible implementation of second aspect, in the 4th kind of possible implementation, described constructing module, concrete being used for according to the test packet protocol requirement of setting, based on described fixed field collection and the universal field collection that prestores, splicing produces analog service stream.
In the 5th kind of possible implementation of second aspect, described sending module, disposes ratio and the transmission delay of many described analog service streams at concrete being used for according to the performance test demand of setting, analog service stream after the configuration is sent to tested element, to carry out performance test.
In the 6th kind of possible implementation of second aspect, described constructing module comprises:
The template generation unit is used for generating the analog service flow template according to the test packet protocol requirement of setting;
The template filling unit is used for the selection indication according to user's input, selects field contents to be filled in the described analog service flow template from described sets of fields, as described analog service stream.
The technical scheme that the embodiment of the invention provides, by obtaining business network element to the real time business stream of tested element, and according to the living analog service stream of real time business miscarriage, then the analog service stream that produces is sent to tested element, carry out performance test, so that when network element device is carried out performance test, the tester or the simulator that need not to use the protocol type that uses with network element device and encapsulation format to be complementary have improved the flexibility of test.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of network element device performance test methods embodiment one of the present invention;
Fig. 2 is the physical testing topological structure schematic diagram of the embodiment of the invention;
Fig. 3 is the flow chart of network element device performance test methods embodiment two of the present invention;
Fig. 4 is the flow chart of network element device performance test methods embodiment three of the present invention;
Fig. 5 is the schematic diagram of network element device performance testing device embodiment one of the present invention;
Fig. 6 is the schematic diagram of network element device performance testing device embodiment two of the present invention;
The structural representation of the intelligent terminal that Fig. 7 provides for another embodiment of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing of the present invention, the technical scheme among the present invention is clearly and completely described, obviously, described embodiment 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 obtains under the creative work prerequisite.
Fig. 1 is the flow chart of network element device performance test methods embodiment one of the present invention.The method of testing of present embodiment is applicable to use the performance test of the network element device of nonstandard protocol form, and the method can be carried out by testing apparatus, and this testing apparatus can be configured in terminal or the tester, also can be by other stand-alone network elements carryings.As shown in Figure 1, the method for present embodiment can comprise:
S101, obtain business network element to the real time business of tested element stream.
Concrete, can by between business network element and tested element, accessing intermediate equipment, obtain business network element to the real time business stream of tested element.
S102, according to the message protocol form of setting, from the message of real time business stream, resolve and obtain field contents, generate sets of fields.
Concrete, the message protocol formal definition of setting field and the position of field in message in the Business Stream message, therefore, testing apparatus can be resolved from the message of real time business stream and be obtained field contents, and the field contents that parses is saved in corresponding sets of fields.
S103, according to the test packet protocol requirement of setting, produce analog service stream based on sets of fields.
The user sets the test packet protocol format according to the test needs, obtains corresponding field and field contents from sets of fields, generates analog service stream.
S104, according to the performance test demand of setting, analog service stream is sent to tested element, to carry out performance test.
The user is according to the needs to the network element device performance test, sets flow proportional between the different classes of analog service stream, transmission delay etc., by tester analog service stream is sent to tested element, and network element device is carried out performance test.
The technical scheme that the embodiment of the invention provides, by obtaining business network element to the real time business stream of tested element, and according to the living analog service stream of real time business miscarriage, then the analog service stream that produces is sent to tested element, carry out performance test, so that when network element device is carried out performance test, the tester or the simulator that need not to use the protocol type that uses with network element device and encapsulation format to be complementary have improved the flexibility of test.
Aforesaid method of testing, wherein, the described business network element that obtains can comprise to the real time business stream of tested element:
By being connected to the switch between business network element and the tested element, described real time business stream is carried out image copying, to obtain described real time business stream.
Fig. 2 is the physical testing topological structure schematic diagram of the embodiment of the invention.As shown in Figure 2, switch interconnect services network element, tested element and tester, switch can copy to tester with the real time business traffic mirroring between business network element and the tested element, terminal can further obtain the real time business stream that is mirrored to tester by the script command program, and according to the real time business stream generation analog service stream that obtains, control again tester and send analogue flow rate to tested element.
Aforesaid method of testing wherein, according to the message protocol form of setting, is resolved from the message of described real time business stream and is obtained field contents, generates sets of fields and comprises:
According to the fixed field position in the message protocol form of setting, from the message of described real time business stream, resolve the content of obtaining corresponding fixed field, generate the fixed field collection.
Concrete, in embodiments of the present invention, the field area in the message protocol form is divided into fixed field and universal field.The certain content of field can only be fixed field by the field of specific device processes, and for example, device A sends to the fixed field content that exists in the equipment B and can only be processed by equipment B.The field that the content of field can be supported all devices processing of this message protocol is universal field, and for example, device A sends to the universal field content that exists in the equipment B also can be by equipment C and other device processes.The message protocol form of setting comprises fixed field and the position of this field in message, therefore, can resolve the content of obtaining corresponding fixed field in the real time business stream packet, and generates the fixed field collection, uses when generating analog service stream for subsequent construction.
Aforesaid method of testing is characterized in that, generates before the fixed field collection, also comprises: the content of described fixed field is converted to hexadecimal format.
In the present embodiment, the corresponding content information of the universal field collection that defines in the message protocol form of setting is 16 ary codes representations, therefore, preferably, the content of the fixed field that parses is saved in the fixed field collection with the form of 16 ary codes.
Aforesaid method of testing wherein, according to the test packet protocol requirement of setting, produces analog service stream based on described sets of fields, comprising:
According to the test packet protocol requirement of setting, based on described fixed field collection and the universal field collection that prestores, splicing produces analog service stream.
Concrete, the user sets the required field of analog service stream according to the test needs, and obtains corresponding field and content from fixed field collection and universal field collection respectively, and splicing produces analog service stream.The user can repeat aforesaid operations, until finish the structure of all required analog service streams.Preferably, the user can be kept at terminal with the universal field collection in advance.If the universal field collection is 16 ary codes representations, so, preferably, based on fixed field collection and universal field collection, splicing produces the analog service stream of 16 ary codes representations.
Aforesaid method of testing, wherein, the performance test demand according to setting is sent to tested element with described analog service stream, comprises to carry out performance test:
According to the performance test demand of setting, dispose ratio and the transmission delay of many described analog service streams, the analog service stream after the configuration is sent to tested element, to carry out performance test.
Concrete, the user is according to the needs to the network element device performance test, many different classes of analog services streams of script command program control current control tester configuration that can be by terminal, and set flow proportional between the different classes of analog service stream, transmission delay etc.For example, there are the Business Stream needs that comprise category-A message and category-B message to send simultaneously, when the network element device that carries this Business Stream is carried out performance test, needing the ratio of category-A message bag number and category-B message bag number is 2:1, and after sending 10s, category-A message sends category-B message, therefore, the ratio that the control tester arranges category-A message flow and category-B message flow is 2:1, and the time delay between category-A message flow and the category-B message flow is 10s.After finishing above-mentioned configuration, tester sends analog service and flow to tested element, carries out performance test.
Aforesaid method of testing, wherein, described test packet protocol requirement according to setting produces analog service stream based on described sets of fields and comprises:
According to the test packet protocol requirement of setting, generate the analog service flow template;
Concrete, the user sets the required field of analog service stream according to the test needs, and testing apparatus is according to user-defined each fixed field and universal field, and association generates the analog service flow template of corresponding form message.The analog service flow template that generates supports that all fields are optional, each universal field content selectable.
According to the selection indication of user's input, from described sets of fields, select field contents to be filled in the described analog service flow template, as described analog service stream.
The user selects the test field by the analog service flow template, and testing apparatus response user's field selection operation is obtained corresponding field and content from fixed field collection or universal field collection, generates the required analog service stream of user.The user is the flow proportional between the different classes of analog service stream of setting, transmission delay etc. further.
The technical scheme that the embodiment of the invention provides by generating the analog service flow template, makes the user select the test field by the analog service flow template, has made things convenient for user's operation, has improved the flexibility of test.
Fig. 3 is the flow chart of network element device performance test methods embodiment two of the present invention.Testing apparatus in the present embodiment is configured in the terminal.As shown in Figure 3, the method for present embodiment comprises:
It is mutual that S301, business network element and tested element are carried out real time business stream.
S302, switch mirror image real time business flow to tester.
As shown in Figure 2, switch interconnect services network element, tested element and tester, switch can copy to tester with the real time business traffic mirroring between business network element and the tested element.
S303, tester crawl real time business stream.
S304, terminal obtain the real time business stream that tester grabs.
As shown in Figure 2, tester interconnecting and switching machine and the machine of calculation terminal, terminal can obtain the real time business stream that is mirrored to tester by the script command program.
S305, terminal are resolved real time business stream, produce analog service stream.
Terminal can be resolved from the message of real time business stream and be obtained field contents, and the field contents that parses is saved in corresponding sets of fields, and then produces the required analog service stream of test based on the sets of fields that parsing obtains.
S306, terminal control tester, configuration analog service stream.
Concrete, the user can be according to the needs to the network element device performance test, many different classes of analog services streams of script command program control current control tester configuration by terminal, and set flow proportional between the different classes of analog service stream, transmission delay etc.
S307, tester send analog service and flow to tested element.
After finishing above-mentioned configuration, tester sends analog service and flow to tested element, carries out performance test.
The technical scheme that the embodiment of the invention provides, terminal obtains business network element to the real time business stream of tested element by switch and tester, and according to the living analog service stream of real time business miscarriage, and then control tester, analog service stream after the configuration is sent to tested element, carry out performance test, so that when network element device is carried out performance test, the tester or the simulator that need not to use the protocol type that uses with network element device and encapsulation format to be complementary have improved the flexibility of test.
Applicating example
Suppose to have message format to be defined as: layer 2-4 head+User ID(4 byte)+Device ID(4 byte)+type of message (1 byte, be divided into category-A and category-B)+message content (variable-length), wherein the accessible fixed field of tested element is layer 2-4 head and Device ID, other fields are universal field, and this message tcp data section is with 01 beginning of 16 ary codes.
Suppose that from the Device id field that the tested service message that business network element sends carries be integer 100; The content of the universal field User ID that obtains from network is character string 0001,0002,0003,0004; Message content is character string 12345,54321; The transmission rate of supposing the message that this need to be tested is 1000pps(bag/second), type of message is category-A and category-B, and wherein category-A accounts for 80%, and category-B accounts for 20%, sends without time delay between category-A message and category-B message.Testing procedure is as follows:
1) builds as shown in Figure 2 physical topological structure.
2) message format of the pre-stored user's input of PC, be universal field: User ID, this sets of fields content is 0001(16 ary codes 30303031), 0002(16 ary codes 30303032), 0003(16 ary codes 30303033), 0004(16 ary codes 30303034); Universal field message type field set content is A(16 ary codes 41), B(16 ary codes 42); Message content is: 12345(16 ary codes 3132333435), and 54321(16 ary codes 3534333231); Fixed field: Device ID.Message format is: TCPpayload01+User ID(4 byte)+and Device ID(4 byte)+type of message (1 byte)+message content (variable-length).
3) terminal obtains the service message of tester crawl, according to step 2) in message format, the assorted bag of filtering obtains the Business Stream message that meets pre-stored message format.Directly from professional stream packet, obtain and preserve 16 ary codes of layer 2-4 header data, then begin to obtain the length of 4 bytes from the 5th byte of Business Stream message the 7th layer data that gets access to, be fixed field collection Device ID, the content of this field saves as 00000064 with 16 systems.
4) according to test packet form and fixed field collection, obtain content from the universal field collection again, construct the category-A message of 7 layers of carrying of 16 systems: layer 2-4 head+013030303100000064413132333435(TCPpayload01+User ID(4 byte)+Device ID(4 byte)+type of message (1 byte)+message content (variable-length)), use same procedure construction complete category-B message: layer 2-4 head+013030303100000064423132333435.
5) transmission rate that the category-A message is set is 800pps, and the transmission rate of category-B message is 200pps.
6) send the test simulation business and flow to tested element.
Fig. 4 is the flow chart of network element device performance test methods embodiment three of the present invention.Testing apparatus in the present embodiment is configured in the tester.As shown in Figure 4, the method for present embodiment comprises:
S401, tester obtain protocol format and field information from terminal.
Concrete, tester obtains the message protocol form of setting and the field information that terminal prestores from terminal.The message protocol formal definition of setting field and the position of field in message in the Business Stream message, therefore, tester can obtain from parsing the field contents of real time business stream packet.The field information that terminal prestores can be the universal field collection that obtains from network.
It is mutual that S402, business network element and tested element are carried out real time business stream.
S403, switch mirror image real time business flow to tester.
As shown in Figure 2, switch interconnect services network element, tested element and tester, switch can copy to tester with the real time business traffic mirroring between business network element and the tested element.
S404, tester crawl real time business stream.
S405, tester are resolved real time business stream, and generate the analog service flow template.
Tester can be resolved from the message of real time business stream and be obtained field contents, and the field contents that parses is saved in corresponding sets of fields, and then according to user's test needs, set the required field of analog service stream, the related analog service flow template that generates corresponding form message.The analog service flow template that generates supports that all fields are optional, each universal field content selectable.
S406, user arrange request by terminal to tester transmission field and content.
Concrete, the user selects corresponding field and the content of the required analog service stream of test according to the analog service flow template, and can to tester transmission field and content request be set by terminal.
S407, tester constructing analog Business Stream.
Concrete, after tester received field that the user sends by terminal and content request is set, according to user's the request that arranges, the sets of fields that obtains based on parsing produced the required analog service stream of test.
S408, user send the test setting request by terminal to tester.
Concrete, the user can be according to the needs to the network element device performance test, by terminal the speed of analog service stream is set, corresponding many different classes of analog services streams, the user can also arrange flow proportional between the different classes of analog service stream, transmission delay etc.
S409, tester are carried out user's test setting.
S410, tester send analog service and flow to tested element.
After finishing above-mentioned the setting, tester sends analog service and flow to tested element, carries out performance test.
The technical scheme that the embodiment of the invention provides, tester obtains business network element to the real time business stream of tested element by switch, and according to the living analog service stream of real time business miscarriage, and then dispose analog service according to user's the request that arranges and flow, analog service stream after the configuration is sent to tested element, carry out performance test, so that when network element device is carried out performance test, the tester or the simulator that need not to use the protocol type that uses with network element device and encapsulation format to be complementary have improved the flexibility of test.
Fig. 5 is the schematic diagram of network element device performance testing device embodiment one of the present invention.As shown in Figure 5, the device of present embodiment can comprise: acquisition module 501, parsing module 502, constructing module 503 and sending module 504.Wherein, acquisition module 501 is used for obtaining business network element to the real time business stream of tested element; Parsing module 502 is used for according to the message protocol form of setting, and resolves from the message of described real time business stream and obtains field contents, generates sets of fields; Constructing module 503 is used for according to the test packet protocol requirement of setting, and produces analog service stream based on described sets of fields; Sending module 504 is used for described analog service stream being sent to tested element, to carry out performance test according to the performance test demand of setting.
The network element device performance testing device of present embodiment can be used for carrying out the method for embodiment of the method shown in Figure 1, possesses corresponding functional module, and it realizes that principle is similar with the technique effect that will reach, and does not repeat them here.
Aforesaid network element device performance testing device, wherein, acquisition module 501 specifically can be used for by being connected to the switch between business network element and the tested element, and described real time business stream is carried out image copying, to obtain described real time business stream.
The network element device performance testing device of present embodiment, the above existing discussion of technique effect that it is realized principle and will reach does not repeat them here.
Aforesaid network element device performance testing device, wherein, parsing module 502 specifically can be used for the fixed field position according to the message protocol form of setting, from the message of described real time business stream, resolve the content of obtaining corresponding fixed field, generate the fixed field collection.
The network element device performance testing device of present embodiment, the above existing discussion of technique effect that it is realized principle and will reach does not repeat them here.
Fig. 6 is the schematic diagram of network element device performance testing device embodiment two of the present invention.As shown in Figure 6, the device of present embodiment can also comprise modular converter 601, is used for the content of described fixed field is converted to hexadecimal format.
Aforesaid network element device performance testing device, wherein, constructing module 503 specifically can be used for according to the test packet protocol requirement of setting, and based on described fixed field collection and the universal field collection that prestores, splicing produces analog service stream.
The network element device performance testing device of present embodiment, the above existing discussion of technique effect that it is realized principle and will reach does not repeat them here.
Aforesaid network element device performance testing device, wherein, sending module 504, specifically can be used for according to the performance test demand of setting, dispose ratio and the transmission delay of many described analog service streams, the analog service stream after the configuration is sent to tested element, to carry out performance test.
The network element device performance testing device of present embodiment, the above existing discussion of technique effect that it is realized principle and will reach does not repeat them here.
Aforesaid network element device performance testing device, wherein, constructing module 503 comprises template generation unit and template filling unit.The template generation unit is used for generating the analog service flow template according to the test packet protocol requirement of setting; The template filling unit is used for the selection indication according to user's input, selects field contents to be filled in the described analog service flow template from described sets of fields, as described analog service stream.
The network element device performance testing device of present embodiment, the above existing discussion of technique effect that it is realized principle and will reach does not repeat them here.
Fig. 7 provides the structural representation of network element testing equipment for another embodiment of the present invention, and this network element testing equipment comprises for example CPU of at least one processor 701(), memory 703, and at least one communication bus 704 are used for the connection communication between the implement device.Processor 701 is used for the executable module of execute store 703 storages, for example computer program.Memory 703 may comprise high-speed random access memory (RAM:Random Access Memory), also may also comprise non-unsettled memory (non-volatile memory), for example at least one magnetic disc store.
In some embodiments, memory 703 has been stored program 705, and program 705 can be carried out by processor 701, and this program comprises carries out a kind of network element device performance test methods, and the method comprises:
Obtain business network element to the real time business stream of tested element;
According to the message protocol form of setting, from the message of described real time business stream, resolve and obtain field contents, generate sets of fields;
According to the test packet protocol requirement of setting, produce analog service stream based on described sets of fields;
Performance test demand according to setting is sent to tested element with described analog service stream, to carry out performance test.
The program of above-mentioned execution network element device performance test methods, preferably, the described business network element that obtains comprises to the real time business stream of tested element:
By being connected to the switch between business network element and the tested element, described real time business stream is carried out image copying, to obtain described real time business stream.
The program of above-mentioned execution network element device performance test methods preferably, according to the message protocol form of setting, is resolved from the message of described real time business stream and is obtained field contents, generates sets of fields and comprises:
According to the fixed field position in the message protocol form of setting, from the message of described real time business stream, resolve the content of obtaining corresponding fixed field, generate the fixed field collection.
The program of above-mentioned execution network element device performance test methods preferably, generates before the fixed field collection, also comprises: the content of described fixed field is converted to hexadecimal format.
The program of above-mentioned execution network element device performance test methods preferably, according to the test packet protocol requirement of setting, produces analog service stream based on described sets of fields, comprising:
According to the test packet protocol requirement of setting, based on described fixed field collection and the universal field collection that prestores, splicing produces analog service stream.
The program of above-mentioned execution network element device performance test methods, preferably, the performance test demand according to setting is sent to tested element with described analog service stream, comprises to carry out performance test:
According to the performance test demand of setting, dispose ratio and the transmission delay of many described analog service streams, the analog service stream after the configuration is sent to tested element, to carry out performance test.
The program of above-mentioned execution network element device performance test methods, preferably, described test packet protocol requirement according to setting produces analog service stream based on described sets of fields and comprises:
According to the test packet protocol requirement of setting, generate the analog service flow template;
According to the selection indication of user's input, from described sets of fields, select field contents to be filled in the described analog service flow template, as described analog service stream.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (14)

1. a network element device performance test methods is characterized in that, comprising:
Obtain business network element to the real time business stream of tested element;
According to the message protocol form of setting, from the message of described real time business stream, resolve and obtain field contents, generate sets of fields;
According to the test packet protocol requirement of setting, produce analog service stream based on described sets of fields;
Performance test demand according to setting is sent to tested element with described analog service stream, to carry out performance test.
2. method of testing according to claim 1 is characterized in that, the described business network element that obtains comprises to the real time business stream of tested element:
By being connected to the switch between business network element and the tested element, described real time business stream is carried out image copying, to obtain described real time business stream.
3. method of testing according to claim 1 is characterized in that, according to the message protocol form of setting, resolves from the message of described real time business stream and obtains field contents, generates sets of fields and comprises:
According to the fixed field position in the message protocol form of setting, from the message of described real time business stream, resolve the content of obtaining corresponding fixed field, generate the fixed field collection.
4. method of testing according to claim 3 is characterized in that, generates before the fixed field collection, also comprises: the content of described fixed field is converted to hexadecimal format.
5. according to claim 3 or 4 described method of testings, it is characterized in that, according to the test packet protocol requirement of setting, produce analog service stream based on described sets of fields, comprising:
According to the test packet protocol requirement of setting, based on described fixed field collection and the universal field collection that prestores, splicing produces analog service stream.
6. method of testing according to claim 1 is characterized in that, the performance test demand according to setting is sent to tested element with described analog service stream, comprises to carry out performance test:
According to the performance test demand of setting, dispose ratio and the transmission delay of many described analog service streams, the analog service stream after the configuration is sent to tested element, to carry out performance test.
7. method of testing according to claim 1 is characterized in that, described test packet protocol requirement according to setting produces analog service stream based on described sets of fields and comprises:
According to the test packet protocol requirement of setting, generate the analog service flow template;
According to the selection indication of user's input, from described sets of fields, select field contents to be filled in the described analog service flow template, as described analog service stream.
8. a network element device performance testing device is characterized in that, comprising:
Acquisition module is used for obtaining business network element to the real time business stream of tested element;
Parsing module is used for according to the message protocol form of setting, and resolves from the message of described real time business stream and obtains field contents, generates sets of fields;
Constructing module is used for according to the test packet protocol requirement of setting, and produces analog service stream based on described sets of fields;
Sending module is used for described analog service stream being sent to tested element, to carry out performance test according to the performance test demand of setting.
9. testing apparatus according to claim 8 is characterized in that, described acquisition module, carries out image copying to described real time business stream, to obtain described real time business stream at concrete being used for by being connected to the switch between business network element and the tested element.
10. testing apparatus according to claim 8, it is characterized in that described parsing module, the concrete fixed field position that is used for according to the message protocol form of setting, from the message of described real time business stream, resolve the content of obtaining corresponding fixed field, generate the fixed field collection.
11. testing apparatus according to claim 10 is characterized in that, also comprises modular converter, is used for the content of described fixed field is converted to hexadecimal format.
12. according to claim 10 or 11 described testing apparatuss, it is characterized in that, described constructing module, concrete being used for according to the test packet protocol requirement of setting, based on described fixed field collection and the universal field collection that prestores, splicing produces analog service stream.
13. testing apparatus according to claim 8 is characterized in that, described sending module, concrete being used for according to the performance test demand of setting, dispose ratio and the transmission delay of many described analog service streams, the analog service stream after the configuration is sent to tested element, to carry out performance test.
14. testing apparatus according to claim 8 is characterized in that, described constructing module comprises:
The template generation unit is used for generating the analog service flow template according to the test packet protocol requirement of setting;
The template filling unit is used for the selection indication according to user's input, selects field contents to be filled in the described analog service flow template from described sets of fields, as described analog service stream.
CN2012105870793A 2012-12-28 2012-12-28 Test method and device of network element equipment performance Pending CN103078765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105870793A CN103078765A (en) 2012-12-28 2012-12-28 Test method and device of network element equipment performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105870793A CN103078765A (en) 2012-12-28 2012-12-28 Test method and device of network element equipment performance

Publications (1)

Publication Number Publication Date
CN103078765A true CN103078765A (en) 2013-05-01

Family

ID=48155175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105870793A Pending CN103078765A (en) 2012-12-28 2012-12-28 Test method and device of network element equipment performance

Country Status (1)

Country Link
CN (1) CN103078765A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103236959A (en) * 2013-05-09 2013-08-07 中国银行股份有限公司 Test system and test method for testing business processing module
CN105279032A (en) * 2015-11-24 2016-01-27 浪潮(北京)电子信息产业有限公司 Method and apparatus for synchronizing interface message and javaBean
CN105915529A (en) * 2016-05-19 2016-08-31 微梦创科网络科技(中国)有限公司 Message generation method and device
CN108628742A (en) * 2018-04-17 2018-10-09 四川斐讯信息技术有限公司 System performance testing method and apparatus
CN109347701A (en) * 2018-11-09 2019-02-15 公安部第三研究所 Realize the system and method that Network Isolation properties of product are carried out with testing and control
CN110430184A (en) * 2019-07-31 2019-11-08 腾讯科技(深圳)有限公司 Digital simulation method, apparatus, computer readable storage medium and computer equipment
CN112311572A (en) * 2019-07-30 2021-02-02 中国移动通信集团广东有限公司 Network element testing method and device and electronic equipment
CN112383444A (en) * 2020-10-21 2021-02-19 北京威努特技术有限公司 Industrial control network equipment performance testing device and method
CN114615695A (en) * 2022-03-18 2022-06-10 机械工业仪器仪表综合技术经济研究所 5G industrial terminal simulation device and test method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
US20090201943A1 (en) * 2007-01-06 2009-08-13 Feng Li Method for transferring test messages and network element device
CN101902367A (en) * 2009-05-31 2010-12-01 西门子(中国)有限公司 Method and device for producing test case

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090201943A1 (en) * 2007-01-06 2009-08-13 Feng Li Method for transferring test messages and network element device
CN101425938A (en) * 2008-12-17 2009-05-06 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
CN101902367A (en) * 2009-05-31 2010-12-01 西门子(中国)有限公司 Method and device for producing test case

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103236959A (en) * 2013-05-09 2013-08-07 中国银行股份有限公司 Test system and test method for testing business processing module
CN105279032A (en) * 2015-11-24 2016-01-27 浪潮(北京)电子信息产业有限公司 Method and apparatus for synchronizing interface message and javaBean
CN105279032B (en) * 2015-11-24 2019-06-28 浪潮(北京)电子信息产业有限公司 A kind of method and device of sync cap message and javaBean
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
CN108628742A (en) * 2018-04-17 2018-10-09 四川斐讯信息技术有限公司 System performance testing method and apparatus
CN109347701A (en) * 2018-11-09 2019-02-15 公安部第三研究所 Realize the system and method that Network Isolation properties of product are carried out with testing and control
CN112311572A (en) * 2019-07-30 2021-02-02 中国移动通信集团广东有限公司 Network element testing method and device and electronic equipment
CN112311572B (en) * 2019-07-30 2023-04-28 中国移动通信集团广东有限公司 Network element testing method and device and electronic equipment
CN110430184A (en) * 2019-07-31 2019-11-08 腾讯科技(深圳)有限公司 Digital simulation method, apparatus, computer readable storage medium and computer equipment
CN110430184B (en) * 2019-07-31 2022-01-21 腾讯科技(深圳)有限公司 Data simulation method, data simulation device, computer-readable storage medium and computer equipment
CN112383444A (en) * 2020-10-21 2021-02-19 北京威努特技术有限公司 Industrial control network equipment performance testing device and method
CN114615695A (en) * 2022-03-18 2022-06-10 机械工业仪器仪表综合技术经济研究所 5G industrial terminal simulation device and test method

Similar Documents

Publication Publication Date Title
CN103078765A (en) Test method and device of network element equipment performance
CN101986648B (en) Negotiation method, device and network device of TCP option
CN105794152B (en) The system and method and device of the interaction based on web are carried out with building automatic
CN104980317A (en) Automatic test system and test method for dispatching data network equipment
CN104852828B (en) A kind of network delay detection method, apparatus and system
WO2013153567A1 (en) Visualization device, visualization system, and visualization method
JP2011041455A (en) Apparatus and method of testing report communication in power transformation automation system
CN103326901B (en) A kind of power system broadband network performance test methods and system
CN113434101A (en) Device control method, device, storage medium, and electronic apparatus
CN101262371A (en) Configuration method and device of network devices
CN104168200B (en) A kind of method and system that acl feature is realized based on Open vSwitch
CN106791679A (en) A kind of determination method and device of video transmission path
CN104639351A (en) Processing system and method for constructing network structure deployment diagram
CN109547274A (en) A kind of enclosure board switching method, device and first network equipment
CN101472290B (en) Flow control method and apparatus for mobile data business platform performance test
CN112152879A (en) Network quality determination method and device, electronic equipment and readable storage medium
CN110932879B (en) Network performance test method, data processing device and storage medium
CN109474482A (en) A kind of network establishing method and system of actual situation extension
CN113259791B (en) Information configuration method, electronic device and computer-readable storage medium
CN104468213A (en) Interchanger remote management system and method
CN108011766A (en) A kind of system architecture and distribution relation automatic switching control equipment
CN108809765A (en) Network quality test method and device
CN110890981A (en) System for configuring network equipment and method for realizing network equipment configuration
Carlsson On the use of 5G for smart grid inter-substation control signaling
CN106656708A (en) Communication method and device based on communication protocol under master/slave mode

Legal Events

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

Application publication date: 20130501