CN102130797B - Network testing method and device - Google Patents

Network testing method and device Download PDF

Info

Publication number
CN102130797B
CN102130797B CN 201110064287 CN201110064287A CN102130797B CN 102130797 B CN102130797 B CN 102130797B CN 201110064287 CN201110064287 CN 201110064287 CN 201110064287 A CN201110064287 A CN 201110064287A CN 102130797 B CN102130797 B CN 102130797B
Authority
CN
China
Prior art keywords
bytes
equal
service
frame
business
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.)
Active
Application number
CN 201110064287
Other languages
Chinese (zh)
Other versions
CN102130797A (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.)
Academy of Broadcasting Science of SAPPRFT
Original Assignee
Academy of Broadcasting Science of SAPPRFT
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 Academy of Broadcasting Science of SAPPRFT filed Critical Academy of Broadcasting Science of SAPPRFT
Priority to CN 201110064287 priority Critical patent/CN102130797B/en
Publication of CN102130797A publication Critical patent/CN102130797A/en
Application granted granted Critical
Publication of CN102130797B publication Critical patent/CN102130797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network testing method and a network testing device. The device comprises a multi-service generator, a user generator, a service sequence generator, a port binder, a port data transmitter and a user simulator, wherein the multi-service generator is used for generating different service groups according to service types and network environments; the user generator is usedfor simulating user volumes, required by different services in the service groups in different periods of time, of users and the service time of the different services in the service groups for the users; the service sequence generator is used for forming a user service traffic sequence by using service packets of different lengths according to a preset proportion, and generating a service packetsequence; the port binder is used for binding the service packets and ports of tested equipment in a predetermined way according to the service types and the service packet sequence; the port data transmitter is used for mixing the service packets of each port respectively, generating a transmission sequence and transmitting the service packets of each port to the tested equipment according to the transmission sequence; and the user simulator is used for receiving corresponding service packets from the tested equipment, and detecting the service packets.

Description

Network test method and device
Technical field
The present invention relates to computer realm, particularly relate to a kind of network test method and device.
Background technology
In the prior art, the main purpose of network test is according to the specific objective definition of equipment, system or service or the classification of description equipment, system or service, the performance characteristic that it is relevant is described, proposing has a series of tolerance of reference value to the explanation performance characteristic, and provides above-mentioned tolerance.
In actual test process, because the definition of test-types, test parameter, the size of test pack, test protocol, Measuring Time, the distribution of test point, number, sampling algorithm, sampling frequency and the statistical analysis technique of test point all can exert an influence to test result.
The Internet engineering duty group (Internet Engineering Task Force, abbreviate IETF as) set up pedestal method and learned working group, with Request for Comment (Request For Comments, abbreviating RFC as) document form proposed the related advisory of related network test, with the performance test of standard to the disparate networks interconnection technique.
At present, can be divided into according to the test purpose network test: uniformity test, functional test, performance test and Passive Test.Fig. 1 is the basic structure schematic diagram of network apparatus test in the prior art, as shown in Figure 1, two testing equipments are connected with delivery outlet with the input port of equipment under test respectively, import packet by the input port testing equipment to equipment under test, this packet is through after the processing of equipment under test, send to the delivery outlet testing equipment by equipment under test again, to realize network test.
At present, when carrying out network test, do not consider that the user is in the variation of different time sections requested service, but the flow rate test equipment under test that generally adopts single frame length to form, perhaps adopt multiple fixed length frame to form data traffic test equipment under test separately, perhaps form network traffic data with the test equipment under test by the Frame that generates at random, the data traffic that forms under these methods only has generality and randomness, can not reflect the real network flow really and cover the all-network flow.
Summary of the invention
The invention provides a kind of network test method and device, to solve the problem that network test of the prior art can not reflect the real network flow really and cover the all-network flow.
The invention provides a kind of network testing device, comprising:
The multi-service maker is used for generating different service groups according to class of business and network environment;
User's maker is connected to the multi-service maker, be used for the emulation user in different time sections for the needed customer volume of service groups different business and the user business service time for different business in the service groups;
The traffic sequence maker, be connected to user's maker, be used for according to each professional type of service of service groups, with the predetermined composition ratio business packet of different length is formed the user traffic sequence, and generate the business packet sequence according to user traffic sequence and corresponding business service time;
The port binding device is connected to the traffic sequence maker, is used for according to type of service and business packet sequence, in a predefined manner the port of business packet and equipment under test is bound;
The port data transmitter is connected to the port binding device, is used for respectively the business packet of each port being carried out shuffling, generates transmit queue, and according to transmit queue the business packet of each port is sent to equipment under test;
User's simulator is connected to equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that equipment under test sends, and business packet is detected.
The present invention also provides a kind of network testing device, comprising:
Service server is used for generating corresponding business packet flow according to preset user request record;
User's maker is connected to service server, is used for professional needed customer volume that the emulation user provides for service server and user for the business service time of business in different time sections;
Service server also is used for: the customer volume and the business service time that generate according to user's maker generate the business packet sequence;
The port binding device is connected to service server, is used for according to type of service and business packet sequence, and the business packet that service server is generated and the port of equipment under test are bound in a predefined manner;
The port data transmitter is connected to the port binding device, is used for the business packet of each port is sent to equipment under test;
User's simulator is connected to equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that equipment under test sends, and business packet is detected.
The present invention also provides a kind of network test method, comprising:
Generate different service groups according to class of business and network environment;
The user is carried out emulation for the needed customer volume of different business in the service groups and user for the business service time of different business in the service groups in different time sections;
According to each professional type of service in the service groups, with the predetermined composition ratio business packet of different length is formed the user traffic sequence, and form the business packet sequence according to user traffic sequence and corresponding business service time;
According to type of service and business packet sequence, in a predefined manner the port of business packet and equipment under test is bound;
Respectively the business packet of each port is carried out shuffling, generate transmit queue, and according to transmit queue the business packet of each port is sent to equipment under test;
Receive the corresponding business packet that equipment under test sends, and business packet is detected.
The present invention also provides a kind of network test method, comprising:
Service server generates corresponding business packet flow according to preset user request record;
Professional needed customer volume and user that the user is provided for service server in different time sections carry out emulation for the business service time of business;
Service server generates the business packet sequence according to customer volume and business service time;
According to type of service and business packet sequence, the business packet that service server is generated and the port of equipment under test are bound in a predefined manner;
The port data transmitter is connected to the port binding device, is used for the business packet of each port is sent to equipment under test;
User's simulator is connected to equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that equipment under test sends, and business packet is detected.
Beneficial effect of the present invention is as follows:
The embodiment of the invention is by setting up a kind of test stream generation model of considering user behavior and service feature, and adopt different frame lengths to mix and form network traffics, simulate realistic Network data traffic, index and the service ability of test equipment under test performance under this flow, solve the problem that network test of the prior art can not reflect the real network flow really and cover the all-network flow, can obtain the test result near the real network situation.
Description of drawings
Fig. 1 is the basic structure schematic diagram of network apparatus test in the prior art;
Fig. 2 is the structural representation of the network testing device of apparatus of the present invention embodiment one;
Fig. 3 is that the compressed encoding of the embodiment of the invention is the frame sequence ratio schematic diagram of video flowing H.264Main;
Fig. 4 is that the compressed encoding of the embodiment of the invention is the frame sequence ratio schematic diagram of the audio stream of MPEG-2AAC;
Fig. 5 is the give out a contract for a project schematic diagram of model of the testing of equipment service of the embodiment of the invention;
Fig. 6 is the detailed construction schematic diagram of the network testing device of the embodiment of the invention;
Fig. 7 is the structural representation of the network testing device of apparatus of the present invention embodiment two;
Fig. 8 is the flow chart of the network test method of the inventive method embodiment one;
Fig. 9 is the flow chart of the network test method of the inventive method embodiment two.
Embodiment
In order to solve the problem that network test of the prior art can not reflect the real network flow really and cover the all-network flow, the invention provides a kind of network test method and device, by a kind of network traffics generation method and device of considering user behavior and service feature, meet and near the business data flow of live network situation with generation, thereby the test equipment under test is in the equipment performance that more reflects under the live network situation.Below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, does not limit the present invention.
Device embodiment one
According to embodiments of the invention, a kind of network testing device is provided, Fig. 2 is the structural representation of the network testing device of apparatus of the present invention embodiment one, as shown in Figure 2, network testing device according to the embodiment of the invention comprises: multi-service maker 20, user's maker 21, traffic sequence maker 22, port binding device 23, port data transmitter 24 and user's simulator 25, the network testing device of the embodiment of the invention is by generating data flow test equipment under test.Below each module of the embodiment of the invention is described in detail.
Particularly, multi-service maker 20 is used for generating different service groups according to class of business and network environment; That is to say that multi-service maker 20 is used for generating different service groups, different service groups can be tested the network environment under the varying environment.Suppose to exist N class business, the set of all business is designated as B={1, and 2 ..., N}, B iA subclass for set B.I then iCan be designated as: I wherein iBe indicative function, value is 1 when representing that j business belongs to i and organize professional subclass, otherwise value is 0.
User's maker 21 is connected to multi-service maker 20, be used for the emulation user in different time sections for the needed customer volume of service groups different business and the user business service time for different business in the service groups;
That is to say that user's maker 21 is in order to the basic act of analog subscriber, the emulation user is in different time sections, different business requesting users amount and business service time.This user's maker 21 comprises two parts: customer volume generates and the business service time generates.Particularly, it is the function of time that customer volume generates, and it reflects that the user uses the situation of the customer volume of specified class business to change the different time sections user, and j class business is designated as H at the customer volume that t arrives constantly j(t).The business service time is a random function, and is relevant with type of service, and it will generate the duration that each user keeps specific transactions, remembers that the business service time of j class business is obeyed F j(l) probability distribution, wherein, l is user's service time.
From above-mentioned processing as can be seen, user's program request behavior will have different behaviors in different time sections, and user's maker 21 of the embodiment of the invention takes into full account the correlation of user's program request behavior and time, the analog subscriber program request, and network condition can trulyr reflect reality.
Traffic sequence maker 22, be connected to user's maker 21, be used for according to each professional type of service of service groups, with the predetermined composition ratio business packet of different length is formed the user traffic sequence, and generate the business packet sequence according to user traffic sequence and corresponding business service time; Remember that professional k the customer service frame sequence of j class is S j(k, l), wherein l is k user's the business service time.
Fig. 3 is that the compressed encoding of the embodiment of the invention is the frame sequence ratio schematic diagram of video flowing H.264Main, as shown in Figure 3, be that compressed encoding is under the situation of video flowing H.264 in type of service, above-mentioned predetermined composition ratio is: the frame length of 7% Frame is arranged more than or equal to 64 bytes, smaller or equal to 99 bytes; The frame length of 8% Frame is arranged more than or equal to 100 bytes, smaller or equal to 269 bytes; The frame length of 10% Frame is arranged more than or equal to 270 bytes, smaller or equal to 499 bytes; The frame length of 9% Frame is arranged more than or equal to 500 bytes, smaller or equal to 699 bytes; The frame length of 15% Frame is arranged more than or equal to 700 bytes, smaller or equal to 999 bytes; The frame length of 8% Frame is arranged more than or equal to 1000 bytes, smaller or equal to 1199 bytes; The frame length of 8% Frame is arranged more than or equal to 1200 bytes, smaller or equal to 1399 bytes; The frame length of 5% Frame is arranged more than or equal to 1400 bytes, smaller or equal to 1517 bytes; There is the frame length of 30% Frame to equal 1518 bytes.
Fig. 4 is that the compressed encoding of the embodiment of the invention is the frame sequence ratio schematic diagram of the audio stream of MPEG-2AAC, as shown in Figure 4, be that compressed encoding is under the situation of audio stream of the MPEG-2AAC of dynamic image expert group in type of service, above-mentioned predetermined composition ratio is: the frame length of 0.0% Frame is arranged more than or equal to 64 bytes, smaller or equal to 269 bytes; The frame length of 10.2% Frame is arranged more than or equal to 270 bytes, smaller or equal to 289 bytes; The frame length of 77.6% Frame is arranged more than or equal to 290 bytes, smaller or equal to 329 bytes; The frame length of 9.4% Frame is arranged more than or equal to 330 bytes, smaller or equal to 369 bytes; The frame length of 2.8% Frame is arranged more than or equal to 370 bytes, smaller or equal to 419 bytes; The frame length of 0.0% Frame is arranged more than or equal to 420 bytes, smaller or equal to 1518 bytes.
At transport stream (the transport stream Over InternetProtocol of type of service for transmitting at Ethernet, abbreviate TS Over IP as) situation under, the major function of TS Over IP is to realize digital television transfer protocol conversion and business model conversion, by Digital Television is introduced in traditional television transmission network, carry out the conversion of business model and the conversion of host-host protocol, make digital television program to be fit to the form output of broadband IP network operation, wherein Media Stream can be MPEG-2, MPEG-4, H.264 wait the compression form, but the form that all is packaged into MPEG-2TS stream earlier transmits in network, and its frame length is divided into following three kinds: 1, TS over RTP/UDP/IP frame length: 1374bytes; 2, TS over UDP/IP frame length: 1362bytes; 3, MPEG-4, H.264, ASF, RM over IP frame length: 1518bytes, therefore, above-mentioned predetermined composition ratio is: the frame length of 100% Frame is 1374 bytes, perhaps, the frame length of 100% Frame is 1362 bytes, and perhaps, the frame length of 100% Frame is 1518 bytes.
Traffic sequence maker 22 provides the packet of different business to make up the flow in network with real simulation and artificial service according to the concrete feature of business.
Port binding device 23 is connected to traffic sequence maker 22, is used for according to type of service and business packet sequence, in a predefined manner the port of business packet and equipment under test is bound;
Particularly, port binding device 23 can be according to type of service bundling port one to one, and the one-to-many bundling port also can the many-one bundling port, with convenient, flexible equipment under test is configured.The business of note m port binding is: P wherein m=... j...}, expression belongs to the professional subclass of m port, P mBe indicative function, the relation of expression port binding.
Port data transmitter 24 is connected to port binding device 23, is used for respectively the business packet of each port being carried out shuffling, generates transmit queue, and according to transmit queue the business packet of each port is sent to equipment under test;
Port data transmitter 24 is considered from the angle that the user flows fair shuffling, provides to the fair mechanism that sends of different user data, to press close to the live network situation.
Particularly, port data transmitter 24 carries out shuffling with the user's data bag, generates a transmit queue, and testing equipment can send packet according to the transmit queue order, and the user wraps at random that shuffling meets following random chance, with the fairness that guarantees to give out a contract for a project:
F ( x ) = S ~ j ( k , t ) Σ j ∈ H ~ j ( t ) S ~ j ( k , t )
Wherein,
Figure BDA0000050644340000082
For constantly also do not finish user's set of giving out a contract for a project, S at t j(k t) is expressed as professional k the user of j class at t moment traffic frame sequence S j(k, l) the overall budget number that need send,
Figure BDA0000050644340000083
For also not sending remaining overall budget number professional k the user of t moment j class.
User's simulator 25 is connected to equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that equipment under test sends, and business packet is detected.
Whether particularly, a plurality of users of user's simulator 25 simulation ask to receive different business service, detect and accept packet whether for having frame loss condition, accord with Q oS requirement.
Fig. 5 is the give out a contract for a project schematic diagram of model of the testing of equipment service of the embodiment of the invention, and Fig. 6 is the detailed construction schematic diagram of the network testing device of the embodiment of the invention, and as Fig. 5, shown in Figure 6, the multi-service maker is according to I iGenerate service groups; User's maker is simulated the customer volume H that j class business arrives constantly at t j(t), for example, H 1, H 2, H 3..., H N, and according to F j(l) the business service time of simulation note j class business; It is S that the traffic sequence maker generates professional k the customer service frame sequence of j class j(k, l), for example, S 1, S 2, S 3..., S NThe port binding device passes through P mThe relation of expression port binding, port data transmitter basis
Figure BDA0000050644340000084
The user's data bag is carried out shuffling, and with packet P 1, P 2, P 3..., P NSend to equipment under test, user's simulator comprise pseudo-terminal 1, pseudo-terminal 2, pseudo-terminal 3 ..., pseudo-terminal L, user's simulator receives data sequence
Figure BDA0000050644340000085
And will
Figure BDA0000050644340000086
And S j(k l) compares, thereby obtains the network test result.
In sum, the technical scheme of the embodiment of the invention is by setting up a kind of test stream generation model of considering user behavior and service feature, and adopt different frame lengths to mix and form network traffics, simulate realistic Network data traffic, index and the service ability of test equipment under test performance under this flow, solve the problem that network test of the prior art can not reflect the real network flow really and cover the all-network flow, can obtain the test result near the real network situation.
Preferably, can also adopt a plurality of service servers to ask record to generate related service flow mode according to the user in embodiments of the present invention and realize the present invention.Below will describe this technical scheme.
Device embodiment two
According to embodiments of the invention, a kind of network testing device is provided, Fig. 7 is the structural representation of the network testing device of apparatus of the present invention embodiment two, as shown in Figure 7, network testing device according to the embodiment of the invention comprises: service server 70, user's maker 71, port binding device 72, port data transmitter 73 and user's simulator 74, the network testing device of the embodiment of the invention substitutes multi-service maker 20 and traffic sequence maker 22 by using service server 70.Below each module of the embodiment of the invention is described in detail.
Particularly, service server 70 is used for generating corresponding business packet flow according to preset user request record, and generates the business packet sequence according to customer volume and the business service time that user's maker generates.Preferably, in embodiments of the present invention, service server 70 is a plurality of.
User's maker 71 is connected to service server 70, is used for professional needed customer volume that the emulation user provides for service server 70 and user for the business service time of business in different time sections;
That is to say that user's maker 71 is in order to the basic act of analog subscriber, the emulation user is in different time sections, different business requesting users amount and business service time.This user's maker 71 comprises two parts: customer volume generates and the business service time generates.Particularly, it is the function of time that customer volume generates, and it reflects that the user uses the situation of the customer volume of specified class business to change the different time sections user, and j class business is designated as H at the customer volume that t arrives constantly j(t).The business service time is a random function, and is relevant with type of service, and it will generate the duration that each user keeps specific transactions, remembers that the business service time of j class business is obeyed F j(l) probability distribution, wherein, l is user's service time.
From above-mentioned processing as can be seen, user's program request behavior will have different behaviors in different time sections, and user's maker 71 of the embodiment of the invention takes into full account the correlation of user's program request behavior and time, the analog subscriber program request, and network condition can trulyr reflect reality.
Port binding device 72 is connected to service server 70, is used for according to type of service and business packet sequence, and the business packet that service server is generated and the port of equipment under test are bound in a predefined manner;
Particularly, port binding device 72 can be according to type of service bundling port one to one, and the one-to-many bundling port also can the many-one bundling port, with convenient, flexible equipment under test is configured.The business of note m port binding is: P wherein m=... j...}, expression belongs to the professional subclass of m port, P mBe indicative function, the relation of expression port binding.
Port data transmitter 73 is connected to port binding device 72, is used for the business packet of each port is sent to equipment under test;
Port data transmitter 73 is considered from the angle that the user flows fair shuffling, provides to the fair mechanism that sends of different user data, to press close to the live network situation.
Particularly, port data transmitter 73 carries out shuffling with the user's data bag, generates a transmit queue, and testing equipment can send packet according to the transmit queue order, and the user wraps at random that shuffling meets following random chance, with the fairness that guarantees to give out a contract for a project:
F ( x ) = S ~ j ( k , t ) Σ j ∈ H ~ j ( t ) S ~ j ( k , t )
Wherein,
Figure BDA0000050644340000103
For constantly also do not finish user's set of giving out a contract for a project, S at t j(k t) is expressed as professional k the user of j class at t moment traffic frame sequence S j(k, l) the overall budget number that need send,
Figure BDA0000050644340000104
For also not sending remaining overall budget number professional k the user of t moment j class.
User's simulator 74 is connected to equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that equipment under test sends, and business packet is detected.
Whether particularly, a plurality of users of user's simulator 74 simulation ask to receive different business service, detect and accept packet whether for having frame loss condition, accord with Q oS requirement.
The technical scheme of the embodiment of the invention generates corresponding business packet flow by using service server 70 according to preset user request record, and generate the business packet sequence according to customer volume and the business service time that user's maker generates, substitute multi-service maker 20 and traffic sequence maker 22, solve the problem that network test of the prior art can not reflect the real network flow really and cover the all-network flow, can obtain the test result near the real network situation.
Method embodiment one
According to embodiments of the invention, a kind of network test method is provided, Fig. 8 is the flow chart of the network test method of the inventive method embodiment one, as shown in Figure 8, comprises following processing according to the network test method of the embodiment of the invention:
Step 801 generates different service groups according to class of business and network environment;
In step 801, different service groups can be tested the network environment under the varying environment.Suppose to exist N class business, the set of all business is designated as B={1, and 2 ..., N}, B iA subclass for set B.I then iCan be designated as:
Figure BDA0000050644340000111
I wherein iBe indicative function, value is 1 when representing that j business belongs to i and organize professional subclass, otherwise value is 0.
Step 802 is carried out emulation for the needed customer volume of different business in the service groups and user for the business service time of different business in the service groups to the user in different time sections;
In step 802, need the basic act of analog subscriber, the emulation user is in different time sections, different business requesting users amount and business service time.Particularly, it is the function of time that customer volume generates, and it reflects that the user uses the situation of the customer volume of specified class business to change the different time sections user, and j class business is designated as H at the customer volume that t arrives constantly j(t).The business service time is a random function, and is relevant with type of service, and it will generate the duration that each user keeps specific transactions, remembers that the business service time of j class business is obeyed F j(l) probability distribution, wherein, l is user's service time.
From above-mentioned processing as can be seen, user's program request behavior will have different behaviors in different time sections, take into full account the correlation of user's program request behavior and time, the analog subscriber program request, and network condition can trulyr reflect reality.
Step 803 according to each professional type of service in the service groups, is formed the user traffic sequence with the predetermined composition ratio with the business packet of different length, and forms the business packet sequence according to user traffic sequence and corresponding business service time;
In step 803, remember that professional k the customer service frame sequence of j class is S j(k, l), wherein l is k user's the business service time.
As shown in Figure 3, be that compressed encoding is under the situation of video flowing H.264 in type of service, above-mentioned predetermined composition ratio is: the frame length of 7% Frame is arranged more than or equal to 64 bytes, smaller or equal to 99 bytes; The frame length of 8% Frame is arranged more than or equal to 100 bytes, smaller or equal to 269 bytes; The frame length of 10% Frame is arranged more than or equal to 270 bytes, smaller or equal to 499 bytes; The frame length of 9% Frame is arranged more than or equal to 500 bytes, smaller or equal to 699 bytes; The frame length of 15% Frame is arranged more than or equal to 700 bytes, smaller or equal to 999 bytes; The frame length of 8% Frame is arranged more than or equal to 1000 bytes, smaller or equal to 1199 bytes; The frame length of 8% Frame is arranged more than or equal to 1200 bytes, smaller or equal to 1399 bytes; The frame length of 5% Frame is arranged more than or equal to 1400 bytes, smaller or equal to 1517 bytes; There is the frame length of 30% Frame to equal 1518 bytes.
As shown in Figure 4, be that compressed encoding is that above-mentioned predetermined composition ratio is under the situation of audio stream of the MPEG-2AAC of dynamic image expert group in type of service: the frame length of 0.0% Frame is arranged more than or equal to 64 bytes, smaller or equal to 269 bytes; The frame length of 10.2% Frame is arranged more than or equal to 270 bytes, smaller or equal to 289 bytes; The frame length of 77.6% Frame is arranged more than or equal to 290 bytes, smaller or equal to 329 bytes; The frame length of 9.4% Frame is arranged more than or equal to 330 bytes, smaller or equal to 369 bytes; The frame length of 2.8% Frame is arranged more than or equal to 370 bytes, smaller or equal to 419 bytes; The frame length of 0.0% Frame is arranged more than or equal to 420 bytes, smaller or equal to 1518 bytes.
At transport stream (the transport stream Over InternetProtocol of type of service for transmitting at Ethernet, abbreviate TS Over IP as) situation under, the major function of TS Over IP is to realize digital television transfer protocol conversion and business model conversion, by Digital Television is introduced in traditional television transmission network, carry out the conversion of business model and the conversion of host-host protocol, make digital television program to be fit to the form output of broadband IP network operation, wherein Media Stream can be MPEG-2, MPEG-4, H.264 wait the compression form, but the form that all is packaged into MPEG-2TS stream earlier transmits in network, and its frame length is divided into following three kinds: 1, TS over RTP/UDP/IP frame length: 1374bytes; 2, TS over UDP/IP frame length: 1362bytes; 3, MPEG-4, H.264, ASF, RM over IP frame length: 1518bytes, therefore, above-mentioned predetermined composition ratio is: the frame length of 100% Frame is 1374 bytes, perhaps, the frame length of 100% Frame is 1362 bytes, and perhaps, the frame length of 100% Frame is 1518 bytes.
The embodiment of the invention provides the packet of different business to make up the flow in network with real simulation and artificial service according to the concrete feature of business.
Step 804 according to type of service and business packet sequence, is bound the port of business packet and equipment under test in a predefined manner;
In step 804, particularly, can be according to type of service bundling port one to one, the one-to-many bundling port also can the many-one bundling port, with convenient, flexible equipment under test is configured.The business of note m port binding is:
Figure BDA0000050644340000131
P wherein m=... j...}, expression belongs to the professional subclass of m port, P mBe indicative function, the relation of expression port binding.
Step 805 is carried out shuffling with the business packet of each port respectively, generates transmit queue, and according to transmit queue the business packet of each port is sent to equipment under test;
In step 805, particularly, the user's data bag is carried out shuffling, generate a transmit queue, testing equipment can send packet according to the transmit queue order, and the user wraps at random that shuffling meets following random chance, with the fairness that guarantees to give out a contract for a project:
F ( x ) = S ~ j ( k , t ) Σ j ∈ H ~ j ( t ) S ~ j ( k , t )
Wherein,
Figure BDA0000050644340000133
For constantly also do not finish user's set of giving out a contract for a project, S at t j(k t) is expressed as professional k the user of j class at t moment traffic frame sequence S j(k, l) the overall budget number that need send, For also not sending remaining overall budget number professional k the user of t moment j class.
Step 806 receives the corresponding business packet that equipment under test sends, and business packet is detected.
Particularly, in step 806, simulate a plurality of users and ask to receive different business service, detect and to accept packet whether for having frame loss condition, whether accord with Q oS requirement.
As Fig. 5, shown in Figure 6, the multi-service maker is according to I iGenerate service groups; User's maker is simulated the customer volume H that j class business arrives constantly at t j(t), for example, H 1, H 2, H 3..., H N, and according to F j(l) the business service time of simulation note j class business; It is S that the traffic sequence maker generates professional k the customer service frame sequence of j class j(k, l), for example, S 1, S 2, S 3..., S NThe port binding device passes through P mThe relation of expression port binding, port data transmitter basis
Figure BDA0000050644340000141
The user's data bag is carried out shuffling, and with packet P 1, P 2, P 3..., P NSend to equipment under test, user's simulator comprise pseudo-terminal 1, pseudo-terminal 2, pseudo-terminal 3 ..., pseudo-terminal L, user's simulator receives data sequence
Figure BDA0000050644340000142
And will
Figure BDA0000050644340000143
And S j(k l) compares, thereby obtains the network test result.
In sum, the technical scheme of the embodiment of the invention is by setting up a kind of test stream generation model of considering user behavior and service feature, and adopt different frame lengths to mix and form network traffics, simulate realistic Network data traffic, index and the service ability of test equipment under test performance under this flow, solve the problem that network test of the prior art can not reflect the real network flow really and cover the all-network flow, can obtain the test result near the real network situation.
Method embodiment two
According to embodiments of the invention, a kind of network test method is provided, Fig. 9 is the flow chart of the network test method of the inventive method embodiment two, as shown in Figure 9, comprises following processing according to the network test method of the embodiment of the invention:
Step 901, service server generates corresponding business packet flow according to preset user request record; Preferably, in embodiments of the present invention, service server is for a plurality of.
Step 902, professional needed customer volume and user that the user is provided for service server in different time sections carry out emulation for the business service time of business;
In step 902, need the basic act of analog subscriber, the emulation user is in different time sections, different business requesting users amount and business service time.Particularly, it is the function of time that customer volume generates, and it reflects that the user uses the situation of the customer volume of specified class business to change the different time sections user, and j class business is designated as H at the customer volume that t arrives constantly j(t).The business service time is a random function, and is relevant with type of service, and it will generate the duration that each user keeps specific transactions, remembers that the business service time of j class business is obeyed F j(l) probability distribution, wherein, l is user's service time.
From above-mentioned processing as can be seen, user's program request behavior will have different behaviors in different time sections, and the embodiment of the invention takes into full account the correlation of user's program request behavior and time, the analog subscriber program request, and network condition can trulyr reflect reality.
Step 903, service server generates the business packet sequence according to customer volume and business service time;
Step 904, according to type of service and business packet sequence, the business packet that service server is generated and the port of equipment under test are bound in a predefined manner;
Particularly, in step 904, can be according to type of service bundling port one to one, the one-to-many bundling port also can the many-one bundling port, with convenient, flexible equipment under test is configured.The business of note m port binding is: P wherein m=... j...}, expression belongs to the professional subclass of m port, P mBe indicative function, the relation of expression port binding.
Step 905, the port data transmitter is connected to the port binding device, is used for the business packet of each port is sent to equipment under test;
In step 905, flow the angle of fair shuffling from the user and consider, provide to the fair mechanism that sends of different user data, to press close to the live network situation.
Particularly, the user's data bag is carried out shuffling, generate a transmit queue, testing equipment can send packet according to the transmit queue order, and the user wraps at random that shuffling meets following random chance, with the fairness that guarantees to give out a contract for a project:
F ( x ) = S ~ j ( k , t ) Σ j ∈ H ~ j ( t ) S ~ j ( k , t )
Wherein, For constantly also do not finish user's set of giving out a contract for a project, S at t j(k t) is expressed as professional k the user of j class at t moment traffic frame sequence S j(k, l) the overall budget number that need send,
Figure BDA0000050644340000154
For also not sending remaining overall budget number professional k the user of t moment j class.
Step 906, user's simulator is connected to equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that equipment under test sends, and business packet is detected.
Particularly, in step 906, need a plurality of users of simulation ask to receive different business service, detect and accept packet whether for having frame loss condition, whether accord with Q oS requirement.
The technical scheme of the embodiment of the invention generates corresponding business packet flow by using service server 70 according to preset user request record, and generate the business packet sequence according to customer volume and the business service time that user's maker generates, solve the problem that network test of the prior art can not reflect the real network flow really and cover the all-network flow, can obtain the test result near the real network situation.
Although be the example purpose, the preferred embodiments of the present invention are disclosed, it also is possible those skilled in the art will recognize various improvement, increase and replacement, therefore, scope of the present invention should be not limited to above-described embodiment.

Claims (10)

1. a network testing device is characterized in that, comprising:
The multi-service maker is used for generating different service groups according to class of business and network environment;
User's maker is connected to described multi-service maker, be used for the emulation user in different time sections for the needed customer volume of described service groups different business and the user business service time for different business in the described service groups;
The traffic sequence maker, be connected to described user's maker, be used for according to each professional type of service of described service groups, with the predetermined composition ratio business packet of different length is formed the user traffic sequence, and generate the business packet sequence according to described user traffic sequence and corresponding business service time;
The port binding device is connected to described traffic sequence maker, is used for according to type of service and described business packet sequence, in a predefined manner the port of business packet and equipment under test is bound;
The port data transmitter is connected to described port binding device, is used for respectively the business packet of each port being carried out shuffling, generates transmit queue, and according to described transmit queue the business packet of each port is sent to equipment under test;
User's simulator is connected to described equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that described equipment under test sends, and described business packet is detected.
2. device as claimed in claim 1 is characterized in that, described predetermined composition ratio comprises:
Be that compressed encoding is under the situation of video flowing H.264 in described type of service, the frame length of 7% Frame arranged more than or equal to 64 bytes, smaller or equal to 99 bytes; The frame length of 8% Frame is arranged more than or equal to 100 bytes, smaller or equal to 269 bytes; The frame length of 10% Frame is arranged more than or equal to 270 bytes, smaller or equal to 499 bytes; The frame length of 9% Frame is arranged more than or equal to 500 bytes, smaller or equal to 699 bytes; The frame length of 15% Frame is arranged more than or equal to 700 bytes, smaller or equal to 999 bytes; The frame length of 8% Frame is arranged more than or equal to 1000 bytes, smaller or equal to 1199 bytes; The frame length of 8% Frame is arranged more than or equal to 1200 bytes, smaller or equal to 1399 bytes; The frame length of 5% Frame is arranged more than or equal to 1400 bytes, smaller or equal to 1517 bytes; There is the frame length of 30% Frame to equal 1518 bytes;
Be that compressed encoding is under the situation of audio stream of the MPEG-2AAC of dynamic image expert group in described type of service, the frame length of 0.0% Frame arranged more than or equal to 64 bytes, smaller or equal to 269 bytes; The frame length of 10.2% Frame is arranged more than or equal to 270 bytes, smaller or equal to 289 bytes; The frame length of 77.6% Frame is arranged more than or equal to 290 bytes, smaller or equal to 329 bytes; The frame length of 9.4% Frame is arranged more than or equal to 330 bytes, smaller or equal to 369 bytes; The frame length of 2.8% Frame is arranged more than or equal to 370 bytes, smaller or equal to 419 bytes; The frame length of 0.0% Frame is arranged more than or equal to 420 bytes, smaller or equal to 1518 bytes;
For under the situation of the transport stream TS Over IP that Ethernet transmits, the frame length of 100% Frame is 1374 bytes in described type of service, and perhaps, the frame length of 100% Frame is 1362 bytes, and perhaps, the frame length of 100% Frame is 1518 bytes.
3. device as claimed in claim 1 is characterized in that, described predetermined way comprises: port binding mode, one-to-many port binding mode and many-one port binding mode one to one.
4. a network testing device is characterized in that, comprising:
Service server is used for generating corresponding business packet flow according to preset user request record;
User's maker is connected to described service server, is used for professional needed customer volume that the emulation user provides for described service server and user for the business service time of described business in different time sections;
Described service server also is used for: the described customer volume and the described business service time that generate according to described user's maker generate the business packet sequence;
The port binding device is connected to described service server, is used for according to type of service and described business packet sequence, and the business packet that described service server is generated and the port of equipment under test are bound in a predefined manner;
The port data transmitter is connected to described port binding device, is used for the business packet of each port is sent to equipment under test;
User's simulator is connected to described equipment under test, is used for a plurality of users of simulation and asks to receive different business service, receives the corresponding business packet that described equipment under test sends, and described business packet is detected.
5. device as claimed in claim 4 is characterized in that, described service server is a plurality of.
6. device as claimed in claim 4 is characterized in that, described predetermined way comprises: port binding mode, one-to-many port binding mode and many-one port binding mode one to one.
7. a network test method is characterized in that, comprising:
Generate different service groups according to class of business and network environment;
The user is carried out emulation for the needed customer volume of different business and user in the described service groups for the business service time of different business in the described service groups in different time sections;
According to each professional type of service in the described service groups, with the predetermined composition ratio business packet of different length is formed the user traffic sequence, and form the business packet sequence according to described user traffic sequence and corresponding business service time;
According to type of service and described business packet sequence, in a predefined manner the port of business packet and equipment under test is bound;
Respectively the business packet of each port is carried out shuffling, generate transmit queue, and according to described transmit queue the business packet of each port is sent to equipment under test;
Receive the corresponding business packet that described equipment under test sends, and described business packet is detected.
8. method as claimed in claim 7 is characterized in that, described predetermined composition ratio comprises:
Be that compressed encoding is under the situation of video flowing H.264 in described type of service, the frame length of 7% Frame arranged more than or equal to 64 bytes, smaller or equal to 99 bytes; The frame length of 8% Frame is arranged more than or equal to 100 bytes, smaller or equal to 269 bytes; The frame length of 10% Frame is arranged more than or equal to 270 bytes, smaller or equal to 499 bytes; The frame length of 9% Frame is arranged more than or equal to 500 bytes, smaller or equal to 699 bytes; The frame length of 15% Frame is arranged more than or equal to 700 bytes, smaller or equal to 999 bytes; The frame length of 8% Frame is arranged more than or equal to 1000 bytes, smaller or equal to 1199 bytes; The frame length of 8% Frame is arranged more than or equal to 1200 bytes, smaller or equal to 1399 bytes; The frame length of 5% Frame is arranged more than or equal to 1400 bytes, smaller or equal to 1517 bytes; There is the frame length of 30% Frame to equal 1518 bytes;
Be that compressed encoding is under the situation of audio stream of the MPEG-2AAC of dynamic image expert group in described type of service, the frame length of 0.0% Frame arranged more than or equal to 64 bytes, smaller or equal to 269 bytes; The frame length of 10.2% Frame is arranged more than or equal to 270 bytes, smaller or equal to 289 bytes; The frame length of 77.6% Frame is arranged more than or equal to 290 bytes, smaller or equal to 329 bytes; The frame length of 9.4% Frame is arranged more than or equal to 330 bytes, smaller or equal to 369 bytes; The frame length of 2.8% Frame is arranged more than or equal to 370 bytes, smaller or equal to 419 bytes; The frame length of 0.0% Frame is arranged more than or equal to 420 bytes, smaller or equal to 1518 bytes;
For under the situation of the transport stream TS Over IP that Ethernet transmits, the frame length of 100% Frame is 1374 bytes in described type of service, and perhaps, the frame length of 100% Frame is 1362 bytes, and perhaps, the frame length of 100% Frame is 1518 bytes.
9. a network test method is characterized in that, comprises following processing:
Service server generates corresponding business packet flow according to preset user request record;
Professional needed customer volume and user that the user is provided for described service server in different time sections carry out emulation for the business service time of described business;
Described service server generates the business packet sequence according to described customer volume and described business service time;
According to type of service and described business packet sequence, the business packet that described service server is generated and the port of equipment under test are bound in a predefined manner;
The business packet of each port is sent to equipment under test;
Simulate a plurality of users and ask to receive different business service, receive the corresponding business packet that described equipment under test sends, and described business packet is detected.
10. method as claimed in claim 9 is characterized in that, described service server is a plurality of.
CN 201110064287 2011-03-17 2011-03-17 Network testing method and device Active CN102130797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110064287 CN102130797B (en) 2011-03-17 2011-03-17 Network testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110064287 CN102130797B (en) 2011-03-17 2011-03-17 Network testing method and device

Publications (2)

Publication Number Publication Date
CN102130797A CN102130797A (en) 2011-07-20
CN102130797B true CN102130797B (en) 2013-10-02

Family

ID=44268694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110064287 Active CN102130797B (en) 2011-03-17 2011-03-17 Network testing method and device

Country Status (1)

Country Link
CN (1) CN102130797B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299828B (en) * 2011-08-30 2014-01-08 中国科学院计算技术研究所 Test traffic synthesis method and device for test on performance of network security equipment
CN103281198A (en) * 2013-04-19 2013-09-04 杭州泰联科技有限公司 User operation simulation and result recovery system and method for various types of user simulation situations
CN103517090B (en) * 2013-07-11 2016-11-23 国家广播电影电视总局广播科学研究院 The measuring method of network traffics
CN103441903A (en) * 2013-09-03 2013-12-11 北京邮电大学 Network node communication simulation method based on shortest communication time
CN104518892B (en) * 2013-09-26 2018-06-05 中国移动通信集团公司 A kind of OTT service test methods and device
CN105281978B (en) * 2015-10-23 2019-02-19 小米科技有限责任公司 A kind of methods, devices and systems of performance test
CN110581843B (en) * 2019-08-21 2020-12-15 浙江大学 Mimic Web gateway multi-application flow directional distribution method
CN115277440B (en) * 2022-05-09 2023-08-22 南京赛宁信息技术有限公司 Method and system for generating mixed flow in network target range

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006006899A1 (en) * 2004-07-12 2006-01-19 Telefonaktiebolaget Lm Ericsson (Publ) A method and apparatus for testing a radio network under increased traffic load
CN1777126A (en) * 2005-12-12 2006-05-24 史文勇 System and method for conducting comprehensive measurement and association analysis to time delay and drop
CN101060445A (en) * 2007-05-09 2007-10-24 华为技术有限公司 Network flow simulation method and equipment, network flow test method and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006006899A1 (en) * 2004-07-12 2006-01-19 Telefonaktiebolaget Lm Ericsson (Publ) A method and apparatus for testing a radio network under increased traffic load
CN1777126A (en) * 2005-12-12 2006-05-24 史文勇 System and method for conducting comprehensive measurement and association analysis to time delay and drop
CN101060445A (en) * 2007-05-09 2007-10-24 华为技术有限公司 Network flow simulation method and equipment, network flow test method and equipment

Also Published As

Publication number Publication date
CN102130797A (en) 2011-07-20

Similar Documents

Publication Publication Date Title
CN102130797B (en) Network testing method and device
CN100588271C (en) System and method for measuring video quality based on packet measurement and image measurement
US8396962B2 (en) Game grammar-based packet capture and analysis apparatus and method for conducting game test
Wei et al. Continuous-time hidden Markov models for network performance evaluation
CN100521627C (en) Method of monitoring the quality of a realtime communication
CN100514919C (en) Multi-media service system performance testing method
CN101022374A (en) Method and system for on-line testing data network quality
CN105050125A (en) Method and device for evaluating mobile data service quality oriented to user experience
CN101035136B (en) Multicast testing device running in the multi-network card computer and its using method
CN108769757B (en) Video statistics and transaction system and method
Suárez et al. Computer networks performance modeling and simulation
TW200412069A (en) Apparatus and method for a network testing system
Wolfinger et al. Analytical modeling of primary and secondary load as induced by video applications using UDP/IP
Paiva et al. Simulation and performance evaluation of a distributed haptic virtual environment supported by the cybermed framework
CN101662392A (en) Network emulation method capable of acquiring real-time service subjective effect and network emulation system capable of acquiring real-time service subjective effect
CN114979073A (en) Address information acquisition system, method, electronic device, and storage medium
CN109981387A (en) A kind of network flux statistical method
Feyaerts et al. Analysis of discrete-time buffers with heterogeneous session-based arrivals and general session lengths
Nichols Improving Network Simulation with Feedback
Sihotang The impact of background traffic towards multimedia content delivery Quality on limited capacity network
Reichl et al. From QoS to QoX: a charging perspective
Vodrážka et al. Impact of High-Capacity Internet Access on Technical Level of e-Learning
CN112672377B (en) Method and device for constructing and testing downlink segmentation scene of RLC layer of gateway station
Stahlschmidt et al. Effective bandwidth based connection admission control for stored variable bit rate video streams
Lin et al. VoIP communication quality and flow volume preference—a SIP and Red5 example

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