CN105049278B - It tests the device of ethernet device and defines the test method of the device - Google Patents

It tests the device of ethernet device and defines the test method of the device Download PDF

Info

Publication number
CN105049278B
CN105049278B CN201510325643.8A CN201510325643A CN105049278B CN 105049278 B CN105049278 B CN 105049278B CN 201510325643 A CN201510325643 A CN 201510325643A CN 105049278 B CN105049278 B CN 105049278B
Authority
CN
China
Prior art keywords
label field
test
type
subdomain
payload
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
CN201510325643.8A
Other languages
Chinese (zh)
Other versions
CN105049278A (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.)
JINAN TELETEST TECHNOLOGY Co Ltd
Original Assignee
JINAN TELETEST TECHNOLOGY 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 JINAN TELETEST TECHNOLOGY Co Ltd filed Critical JINAN TELETEST TECHNOLOGY Co Ltd
Priority to CN201510325643.8A priority Critical patent/CN105049278B/en
Publication of CN105049278A publication Critical patent/CN105049278A/en
Application granted granted Critical
Publication of CN105049278B publication Critical patent/CN105049278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Abstract

The invention proposes a kind of label field of test frame and the method for defining the label field, label field of the invention includes: multiple subdomains;A label field type is included at least among multiple subdomains, for showing the type of label field;The type of label field is determined according to the type of the included subdomain of size and label field of label field;The mode embarked on journey and/or arranged between each subdomain in multiple subdomains arranges.The label field that method has defined user is defined using label field of the invention, the length (bit number) that the subdomain for including occupies can change according to test scene dynamic, so as to generate test bag for greater flexibility, and then keep test method more flexible more acurrate.

Description

It tests the device of ethernet device and defines the test method of the device
Technical field
The present invention relates to data test field, it particularly relates to the label field of test frame and define the side of the label field Method.
Background technique
Ethernet test instrument be it is a kind of be injected into equipment under test for generating ethernet network flow, and by analysis from quilt The Ethernet that measurement equipment returns obtains the special test equipment of equipment under test information.It is tested using ethernet test instrument When can send test frame equipment under test is tested, wherein ethernet test frame refer to ethernet test instrument be test purpose and The ethernet frame being specifically generated realizes test purpose when stating mostly, these ethernet frames all have label field.Its Middle label field refers to the byte sequence defined to realize test purpose, and it comprises timestamp, sequence number, the letters such as stream number Breath, addition is in the tail portion of test frame when ethernet test instrument constructs test frame.
Ethernet test is instructed by some international standards at present, such as RFC2544 and RFC2889.In test It include maximum throughput rate, packet loss, time delay, transmitting-receiving frame number per second etc. in parameter.The test of these parameters is typically all logical It crosses and defines label field to realize, the definition of label field contains stream number, sequence number, timestamp, the letter such as check value (verification and) Breath, to the product of each producer, the definition of label field is fixed and invariable.
A kind of existing label field is shown in Fig. 1 defines method, label field is defined on last 20 bytes of test frame, It comprises stream number, sequence number, timestamp and wait information at the verification of label field.
It but is static, the definition and length of the overall length of label field and each subdomain since existing label field defines It is fixed, therefore, the structure of such label field is not able to satisfy the needs of certain applications.For example, according to above-mentioned label Domain defines method, and the shortest length of a TCP test bag seen on the line is 78 bytes, (2 layers of letter comprising 14 bytes Breath, the IP head of 20 bytes, the TCP header of 20 bytes, the test domain of 20 bytes, the FCS of 4 bytes), and according to the definition of Ethernet, Shortest frame is 64 bytes, that is to say, that the tester can not generate the TCP packet between -77 byte of 64 byte.So that with Too net test and it is not flexible, cause test accuracy rate it is not high.
For the problems in the relevant technologies, currently no effective solution has been proposed.
Summary of the invention
For the problems in the relevant technologies, the present invention proposes a kind of label field, tester can be made to generate more kinds of Class testing frame, and then keep test method more flexible more acurrate.
The technical scheme of the present invention is realized as follows:
According to an aspect of the invention, there is provided a kind of label field.
The label field, comprising:
Multiple subdomains;A label field type is included at least among multiple subdomains, for showing the type of label field;Label The type in domain is determined according to the type of the included subdomain of size and label field of label field;
The mode embarked on journey and/or arranged between each subdomain in multiple subdomains arranges.
Preferably, multiple subdomains further comprise:
Payload verifies type, payload check value;
Wherein, payload verification type is for indicating verification type corresponding to test frame and verification coverage area;
Payload check value is to be carried out in checking procedure to test frame, verifies the check value of coverage area;
Preferably, multiple subdomains further comprise at least one of:
Stream number, stream number are the label of multiple data flows existing for the same physical port;
Sequence number, the sequence number of network packet in the same data flow of Serial No.;
Timestamp, timestamp are the timestamp of network packet sending instant.
Wherein, multiple subdomains further comprise:
Test domain check value, the verification coverage area of test domain check value have included at least payload verification type, stream number, sequence The field of row number and timestamp.
Specifically, can be with according to the form of expression of the label field of each subdomain building are as follows:
Payload verifies type and payload check value parallel arranged;
Test domain check value and label field type parallel arranged;
Payload verifies the row of type and payload check value composition, the row of test domain check value and label field type composition, stream Number, sequence number, longitudinal arrangement group in column, constitutes the first label field between timestamp.
And it can be with are as follows:
Sequence number and stream number parallel arranged;
Payload check value, payload verification type and test domain check value, label field type parallel arranged;
The row of sequence number and stream number parallel arranged composition, timestamp, payload verifies class value, payload examines type and test domain Longitudinal arrangement group in column, constitutes the second label field between the row that check value, label field type parallel arranged form.
According to another aspect of the present invention, a kind of method for defining above-mentioned label field is additionally provided, comprising:
The subdomain that label field is constituted according to preset test environment and testing requirement selection, wherein the subdomain selected at least wraps Include label field type;
Each subdomain of selection is subjected to arranged distribution in a manner of row and/or column, is defined as label field.
Wherein, include: according to the subdomain that preset test environment and testing requirement selection constitute label field
According to the size for currently needing data flow to be added, selection constitutes the subdomain of label field.And
The size of the test frame constructed as needed, selection constitute the subdomain of label field.
Further, in the case that the size of the data flow of addition is greater than a predetermined threshold, the first label field is constructed.
The label field that method has defined user is defined using label field of the invention, the subdomain for including accounts for Length (bit number) can change according to test scene dynamic, so as to generate test bag for greater flexibility, and then make test side Method is more flexible more acurrate.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the structural schematic diagram of the label field of the prior art;
Fig. 2 is the structural schematic diagram of label field according to an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of another label field according to an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another label field according to an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art's every other embodiment obtained belong to what the present invention protected Range.
According to an embodiment of the invention, providing a kind of label field.
As shown in Fig. 2, label field according to an embodiment of the present invention includes:
Multiple subdomains, for example, Fig. 2 shows subdomain 21 and other subdomains 22;
As can be seen from Figure, a label field type is included at least in the present embodiment among multiple subdomains, can be used for Show the type of the label field, and the type of label field can be according to the type of the included subdomain of size and label field of label field It determines.For the label field that user has defined, the length (bit number) that the subdomain for including occupies can be according to checkout area Scape dynamic changes, so as to generate test bag for greater flexibility.Which kind of label field used in order to distinguish, it is necessary to have a label Field type subdomain, such as subdomain 21, other subdomains can then be accepted or rejected according to the needs of users, and the present invention does not limit respectively yet The arranged distribution mode of a subdomain, for example, the mode that can be embarked on journey and/or arrange between each subdomain in multiple subdomains arranges.
In a preferred embodiment, other subdomains in multiple subdomains can also include payload verification type and payload Check value;
Wherein, payload verification type is for indicating verification type corresponding to test frame and verification coverage area;
Payload check value is to be carried out in checking procedure to test frame, verifies the check value of coverage area.
In presently preferred embodiment, other subdomains in each subdomain can also include that Fig. 3 such as is shown :
Stream number 301, stream number are the label of multiple data flows existing for the same physical port;
Sequence number 302, the sequence number of network packet in the same data flow of Serial No.;
Timestamp 303, timestamp are the timestamp of network packet sending instant, and
Test domain check value 304, the verification coverage area of test domain check value have included at least payload verification type, stream Number, the field of sequence number and timestamp.
Referring to shown in Fig. 3, it illustrates a kind of specific forms for label field that the present invention defines, in this embodiment, only Lotus verifies type 300 and 305 parallel arranged of payload check value;Test domain check value 304 and 306 parallel arranged of label field type;
The row that payload verifies type 300 and payload check value 305 forms, test domain check value 304 and label field type 306 The row of composition, stream number 301, sequence number 302, longitudinal arrangement group in column, constitutes the label as shown in Figure 3 between timestamp 303 Domain.
Carry out the mode arranged evenly of multiple subdomains in the present embodiment as can be seen from Figure 3 relative to label field shown in Fig. 2 The arranged distribution mode of each subdomain changed so that label field can dynamically carry out the test of Ethernet.
The definition mode of label field of the invention is varied, and the size of the label field of composition is also different to be applied It is adjusted flexibly in different test scenes, and according to testing requirement.
Mark can be constituted according to preset test environment and testing requirement selection during being defined as specific label field The subdomain in domain is signed, but the subdomain wherein selected includes at least label field type;
Then each subdomain of selection is subjected to arranged distribution in a manner of row and/or column, is defined as label field.
Wherein, include: according to the subdomain that preset test environment and testing requirement selection constitute label field
According to the size for currently needing data flow to be added, selection constitutes the subdomain of label field.And
The size of the test frame constructed as needed, selection constitute the subdomain of label field.
Since test environment and testing requirement are more flexible and changeable, it can define and be suitable for currently according to the method described above A kind of label field type the most suitable under situation.
As Fig. 4 shows the schematic diagram of the another label field of the embodiment of the present invention:
Sequence number 401 and 405 parallel arranged of stream number;
Payload check value 403, payload verification type 404 and test domain check value 407,406 parallel arranged of label field type;
The row of sequence number 401 and 405 parallel arranged of stream number composition, timestamp 402, payload check value 403, payload verify class In column, constituting should for longitudinal arrangement group between the row that type 404 and test domain check value 407,406 parallel arranged of label field type form The label field of embodiment.
In label field as shown in Figure 4,401 be the sequence number in some stream, occupies 2 bytes, and 405 be stream number, 2 bytes are occupied, 402 be timestamp, occupies 4 bytes, and 403 be payload check value, occupies 15bit, and 404 be payload verification class Type occupies 1bit, and 407 be test domain check value, occupies 15bit, 406 be label field type.Therefore the label field only takes up 12 bytes, fewer than the label field shown in Fig. 38 bytes are also meaned that with label field as shown in Figure 4, be can produce TCP packets more than 70 bytes.In this way, when user needs to establish a test bag, so that it may according to above-mentioned definition label The method choice in domain goes out each subdomain to be used during the test, wherein essential when label field type, table The type in current label domain is illustrated.Secondly as test needs, sequence number, stream number, payload check value, payload school are also selected Other subdomains such as type, timestamp and test domain check value are tested, and for the arrangement mode of each subdomain, due to consideration that needing The size of the test frame of building has then selected arrangement mode as shown in Figure 4.
In a specific example, realization process of the invention is as follows:
1. software judges that user needs fluxion to be added under port first, if it exceeds 64K stream, then can only use such as Label field shown in Fig. 3.
2. if, according to the type for the test frame of user's selection to be constructed, seen using 20 words fluxion is no more than 64K Whether the label field of section is able to satisfy demand.For example, very bright if user needs to construct the TCP test frame of 72 bytes It is not all right that the label field of aobvious 20 bytes, which defines method (shown in Fig. 3), but if user needs to construct the TCP of 100 bytes Test frame, then the label field shown in Fig. 3 can be used.
3. if the label field shown in Fig. 3 defines, method is infeasible, just defines method using the label field shown in Fig. 4 and does the best It meets the needs of users.
4. the label field type register of hardware is arranged in software, hardware will be using the mark of corresponding definition addition test frame Sign domain.
5. this is based on, if selecting to construct such as in the case that the size of the data flow of addition is greater than a predetermined threshold Label field shown in Fig. 3.
In conclusion label field of the invention and definition method can bases by means of above-mentioned technical proposal of the invention Test scene dynamic changes, and so as to generate test bag for greater flexibility, and then keeps test method more flexible more acurrate, realizes a variety of The ethernet test of type, and verification strategy can dynamically be carried out according to the setting of user.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of device for testing ethernet device, comprising:
Ethernet test instrument, transmission test frame to Devices to test, and the data by returning from the Devices to test are to obtain The information of Devices to test is stated,
Wherein, the test frame includes label field, and the label field includes:
Multiple subdomains;A label field type is included at least among the multiple subdomain, for showing the type of the label field; The type of the label field is determined according to the type of the included subdomain of size and label field of the label field;
The mode embarked on journey and/or arranged between each subdomain in the multiple subdomain arranges.
2. the apparatus according to claim 1, which is characterized in that the multiple subdomain further comprises:
Payload verifies type, payload check value;
Wherein, the payload verification type is for indicating verification type corresponding to the test frame and verification coverage area;
The payload check value is to carry out in checking procedure to the test frame, the check value of the verification coverage area.
3. the apparatus of claim 2, which is characterized in that the multiple subdomain further comprises at least one of:
Stream number, the stream number are the label of multiple data flows existing for the same physical port;
Sequence number, the sequence number of network packet in the same data flow of Serial No.;
Timestamp, the timestamp are the timestamp of network packet sending instant.
4. device according to claim 3, which is characterized in that the multiple subdomain further comprises:
Test domain check value, the verification coverage area of the test domain check value have included at least the payload verification type, stream Number, the field of sequence number and timestamp.
5. device according to claim 4 characterized by comprising
The payload verification type and the payload check value parallel arranged;
The test domain check value and the label field type parallel arranged;
The row of the payload verification type and payload check value composition, the test domain check value and the label field type The row of composition, the stream number, the sequence number, longitudinal arrangement group in column, constitutes the first label field between the timestamp.
6. device according to claim 4 characterized by comprising
The sequence number and the stream number parallel arranged;
The payload check value, payload verification type and the test domain check value, label field type parallel arranged;
The row of the sequence number and stream number parallel arranged composition, the timestamp, the payload verification class value, payload are examined Longitudinal arrangement group in column, constitutes second between the row that type and the test domain check value, label field type parallel arranged form Label field.
7. a kind of test method of definition such as any described device of claim 1 to 6, comprising:
The subdomain that label field is constituted according to preset test environment and testing requirement selection, wherein the subdomain selected includes at least mark Sign field type;
Each subdomain of selection is subjected to arranged distribution in a manner of row and/or column, is defined as the label field;
The label field is added at the end of test frame;
The test frame is sent to Devices to test, and the data by returning from the Devices to test obtain the Devices to test Information.
8. the method according to the description of claim 7 is characterized in that described select structure according to preset test environment and testing requirement Subdomain at the label field includes:
According to the size for currently needing data flow to be added, selection constitutes the subdomain of the label field.
9. the method according to the description of claim 7 is characterized in that described select structure according to preset test environment and testing requirement Subdomain at the label field further comprises:
The size of the test frame constructed as needed, selection constitute the subdomain of the label field.
10. according to the method described in claim 8, it is characterised by comprising:
In the case that the size of the data flow of the addition is greater than a predetermined threshold, the first label field is constructed.
CN201510325643.8A 2015-06-12 2015-06-12 It tests the device of ethernet device and defines the test method of the device Active CN105049278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510325643.8A CN105049278B (en) 2015-06-12 2015-06-12 It tests the device of ethernet device and defines the test method of the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510325643.8A CN105049278B (en) 2015-06-12 2015-06-12 It tests the device of ethernet device and defines the test method of the device

Publications (2)

Publication Number Publication Date
CN105049278A CN105049278A (en) 2015-11-11
CN105049278B true CN105049278B (en) 2019-04-12

Family

ID=54455499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510325643.8A Active CN105049278B (en) 2015-06-12 2015-06-12 It tests the device of ethernet device and defines the test method of the device

Country Status (1)

Country Link
CN (1) CN105049278B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118156B (en) * 2020-09-18 2022-04-26 北京信而泰科技股份有限公司 Filtering method and device for Ethernet protocol test
CN113949648B (en) * 2021-10-19 2024-01-30 芯河半导体科技(无锡)有限公司 IC verification method based on multi-stream multi-port Ethernet data stream

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531259A (en) * 2003-03-13 2004-09-22 华为技术有限公司 Method for improving network transmission efficiency of wireless local network system
CN101193041A (en) * 2006-11-28 2008-06-04 华为技术有限公司 Network data transmission method, device and system
CN101841437A (en) * 2010-03-23 2010-09-22 华为技术有限公司 Method and device for testing equipment
CN102625138A (en) * 2011-01-31 2012-08-01 苏州科达科技有限公司 Method and apparatus for controlling centralized storage and playing of videos
CN103731321A (en) * 2014-01-13 2014-04-16 加弘科技咨询(上海)有限公司 FPGA (Field Programmable Gate Array)-based method and device for generating RFC 2544 testing data streams
CN104408104A (en) * 2014-11-20 2015-03-11 许继电气股份有限公司 Network data communication method for intelligent substation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531259A (en) * 2003-03-13 2004-09-22 华为技术有限公司 Method for improving network transmission efficiency of wireless local network system
CN101193041A (en) * 2006-11-28 2008-06-04 华为技术有限公司 Network data transmission method, device and system
CN101841437A (en) * 2010-03-23 2010-09-22 华为技术有限公司 Method and device for testing equipment
CN102625138A (en) * 2011-01-31 2012-08-01 苏州科达科技有限公司 Method and apparatus for controlling centralized storage and playing of videos
CN103731321A (en) * 2014-01-13 2014-04-16 加弘科技咨询(上海)有限公司 FPGA (Field Programmable Gate Array)-based method and device for generating RFC 2544 testing data streams
CN104408104A (en) * 2014-11-20 2015-03-11 许继电气股份有限公司 Network data communication method for intelligent substation

Also Published As

Publication number Publication date
CN105049278A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
US9065770B2 (en) Traffic item impairment emulation
US6950405B2 (en) Traffic stream generator having a non-consecutive addressing mechanism
CN105049278B (en) It tests the device of ethernet device and defines the test method of the device
WO2003013066A3 (en) Method and apparatus for programmable generation of traffic streams
US10033664B2 (en) Ethernet switch and method for establishing forwarding patterns in an Ethernet switch
EP3474499B1 (en) Network performance detection method and apparatus
US20190014029A1 (en) Performance measurement in a packet-switched communication network
CN106656679B (en) Availability bandwidth measurement method
CN106656643B (en) A kind of segmentation calculates the measurement method of network delay
EP2833574A1 (en) Method and apparatus for ethernet performance measurement
CN108023787A (en) Ethernet service test device and method based on FPGA
WO2004086678A3 (en) Method for evaluating the bandwith of a digital link
Lübke et al. Measuring accuracy and performance of network emulators
US10326683B2 (en) Class of service probe
CN104579820B (en) The test device and method of controllable MPLS TP label switched path packet loss
CN106375151A (en) Ethernet error code test method and system
Bateman et al. A comparison of TCP behaviour at high speeds using ns-2 and Linux
US9094290B2 (en) Measuring and displaying bandwidth contention
CN104378256B (en) The dispatching method and device of performance test data stream based on FPGA
Bateman et al. TCP testing: How well does ns2 match reality?
CN104539470B (en) Test shunting device whether method, test client and the system of packet loss
CN104935520B (en) A kind of network traffics generation method based on data packet feature
US7324562B1 (en) Method and apparatus for introducing differential delay between virtually concatenated tributaries
CN105049277B (en) A kind of network flow generation method based on data flow characteristics
CN108174404A (en) A kind of ethernet test equipment and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant