CN105049278A - Tag domain of test frame and method for defining tag domain - Google Patents

Tag domain of test frame and method for defining tag domain Download PDF

Info

Publication number
CN105049278A
CN105049278A CN201510325643.8A CN201510325643A CN105049278A CN 105049278 A CN105049278 A CN 105049278A CN 201510325643 A CN201510325643 A CN 201510325643A CN 105049278 A CN105049278 A CN 105049278A
Authority
CN
China
Prior art keywords
label field
subdomain
type
check value
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510325643.8A
Other languages
Chinese (zh)
Other versions
CN105049278B (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 present invention puts forward a tag domain of a test frame and a method for defining the tag domain. The tag domain of the present invention comprises a plurality of subdomains, wherein the plurality of subdomains at least comprise one tag domain type used for indicating the type of the tag domain, the type of the tag domain is determined according to the size of the tag domain and the kind of the subdomains included by the tag domain, and the subdomains in the plurality of subdomains are arranged in rows or in columns. Through adoption of the method for defining the tag domain in the present invention, the length (bit number) occupied by the subdomains included by the tag domain which has been defined by a user can dynamically change according to test scenes, thus a test pack can be generated more flexibly, and a test method is more flexible and more accurate.

Description

The label field of test frame and define the method for this label field
Technical field
The present invention relates to data test field, specifically, relate to the label field of test frame and define the method for this label field.
Background technology
Ethernet test instrument is that one is injected into equipment under test for generation of ethernet network flow, and obtains the special test equipment of equipment under test information by analyzing the Ethernet returned from equipment under test.Test frame can be sent when using ethernet test instrument to test to test equipment under test, wherein ethernet test frame refers to that ethernet test instrument is test purpose and the ethernet frame generated specially, be used for realizing test purpose mostly stating in situation, these ethernet frames are all with label field.Wherein label field refers to the byte sequence defined for realizing test purpose, it comprises timestamp, sequence number, the information such as stream number, is added on the afterbody of test frame when ethernet test instrument structure test frame.
Current ethernet test is instructed by some international standards, such as RFC2544 and RFC2889.In the parameter of test, include maximum throughput rate, packet loss, time delay, transmitting-receiving frame number per second etc.The test of these parameters is generally all realized by definition label field, and the information such as the definition of label field contains stream number, sequence number, timestamp, check value (School Affairs), to the product of each producer, the definition of its label field is changeless.
A kind of existing label field define method has been shown in Fig. 1, and label field is defined in last 20 bytes of test frame, it comprises stream number, sequence number, timestamp, the information such as the School Affairs of label field.
But because the definition of existing label field is static, the overall length of label field and the definition of each subdomain and length are all fixing, and therefore, the structure of this kind of label field can not meet the needs of some application scenario.Such as, according to above-mentioned label field define method, the shortest length of a TCP test pack seen on the line is 78 bytes, (comprises 2 layers of information of 14 bytes, the IP head of 20 bytes, the TCP head of 20 bytes, the test domain of 20 bytes, the FCS of 4 bytes), and according to the definition of Ethernet, the shortest frame is 64 bytes, and that is, this tester cannot produce the TCP bag between 64 byte-77 bytes.Thus make ethernet test and dumb, cause the accuracy rate of testing not high.
For the problem in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
For the problem in correlation technique, the present invention proposes a kind of label field, and tester can be made to produce a greater variety of test frame, and then makes method of testing more accurate more flexibly.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of label field is provided.
This label field, comprising:
Multiple subdomain; A label field type is at least comprised, for showing the type of label field among multiple subdomain; The type of label field according to the size of label field and label field comprise subdomain kind determine;
The mode of embarking on journey between each subdomain in multiple subdomain and/or arrange arranges.
Preferably, multiple subdomain comprises further:
Payload verification type, payload check value;
Wherein, payload verification type is for indicating verification type corresponding to test frame and verification coverage;
Payload check value, for carry out in checking procedure to test frame, verifies the check value of coverage;
Preferably, multiple subdomain comprise further following one of at least:
Stream number, stream number is the label of multiple data flow that same physical port exists;
Sequence number, sequence number is the sequence number of network packet in same data flow;
Timestamp, timestamp is the timestamp of network packet delivery time.
Wherein, multiple subdomain comprises further:
Test domain check value, the verification coverage of test domain check value at least includes the field of payload verification type, stream number, sequence number and timestamp.
Concrete, the form of expression of the label field built according to each subdomain can be:
Payload verification type and payload check value parallel arranged;
Test domain check value and label field type parallel arranged;
The row that payload verification type and payload check value form, the row that test domain check value and label field type form, stream number, sequence number, between timestamp, longitudinal arrangement composition row, form the first label field.
And, can also be:
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 that sequence number and stream number parallel arranged form, timestamp, between the row that payload verification class value, payload inspection type and test domain check value, label field type parallel arranged form, longitudinal arrangement forms and arranges, and forms the second label field.
According to a further aspect in the invention, additionally provide a kind of method defining above-mentioned label field, comprising:
Select according to preset test environment and testing requirement the subdomain forming label field, wherein at least comprised label field type by the subdomain selected;
Each subdomain selected is carried out arranged distribution in the mode of row and/or row, is defined as label field.
Wherein, the subdomain forming label field is selected to comprise according to preset test environment and testing requirement:
According to the current size needing the data flow of adding, select the subdomain forming label field.And,
The size of the test frame constructed as required, selects the subdomain forming label field.
Further, when the size of the data flow of adding is greater than a predetermined threshold, the first label field is built.
Adopt the label field that label field define method of the present invention has defined for user, the length (bit number) that the subdomain comprised takies dynamically can change according to test scene, thus test pack can be produced more neatly, and then make method of testing more accurate more flexibly.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the label field of prior art;
Fig. 2 is the structural representation of the label field according to the embodiment of the present invention;
Fig. 3 is the structural representation of another label field according to the embodiment of the present invention;
Fig. 4 is the structural representation of the another label field according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of label field.
As shown in Figure 2, comprise according to the label field of the embodiment of the present invention:
Multiple subdomain, such as, subdomain 21 shown in Fig. 2 and other subdomains 22;
As can be seen from Figure, at least comprise a label field type among multiple subdomain in the present embodiment, may be used for the type showing this label field, and the type of label field can according to the size of label field and label field comprise subdomain kind determine.For the label field that user has defined, the length (bit number) that the subdomain comprised takies dynamically can change according to test scene, thus can produce test pack more neatly.Which kind of label field is have employed in order to distinguish, a label field type subdomain must be had, as subdomain 21, other subdomains then can be accepted or rejected according to the needs of user, and the present invention does not limit the arranged distribution mode of each subdomain yet, such as, the mode can embarked on journey and/or arrange between each subdomain in multiple subdomain arranges.
In a preferred embodiment, other subdomains in multiple subdomain can also comprise payload verification type and payload check value;
Wherein, payload verification type is for indicating verification type corresponding to test frame and verification coverage;
Payload check value, for carry out in checking procedure to test frame, verifies the check value of coverage.
In another preferred embodiment of the present invention, other subdomains in each subdomain can also comprise as shown in Figure 3:
Stream number 301, stream number is the label of multiple data flow that same physical port exists;
Sequence number 302, sequence number is the sequence number of network packet in same data flow;
Timestamp 303, timestamp is the timestamp of network packet delivery time, and
Test domain check value 304, the verification coverage of test domain check value at least includes the field of payload verification type, stream number, sequence number and timestamp.
With reference to shown in Fig. 3, it illustrates the concrete form of a kind of label field of the present invention's definition, in this embodiment, payload verification type 300 and payload check value 305 parallel arranged; Test domain check value 304 and label field type 306 parallel arranged;
The row that payload verification type 300 forms with payload check value 305, the row that test domain check value 304 and label field type 306 form, stream number 301, sequence number 302, between timestamp 303, longitudinal arrangement composition row, form this label field as shown in Figure 3.
The mode arranged evenly carrying out multiple subdomain in the present embodiment as can be seen from Figure 3 there occurs change relative to the arranged distribution mode of each subdomain of the label field shown in Fig. 2, thus makes label field can carry out the test of Ethernet dynamically.
The definition mode of label field of the present invention is varied, and the size of the label field of formation is also different can be applied to different test scenes, and adjusts flexibly according to testing requirement.
Can select according to preset test environment and testing requirement the subdomain forming label field in the process being defined as concrete label field, but wherein at least be comprised label field type by the subdomain selected;
Then each subdomain selected is carried out arranged distribution in the mode of row and/or row, be defined as label field.
Wherein, the subdomain forming label field is selected to comprise according to preset test environment and testing requirement:
According to the current size needing the data flow of adding, select the subdomain forming label field.And,
The size of the test frame constructed as required, selects the subdomain forming label field.
Due to test environment and testing requirement more flexible and changeable, therefore can define a kind of label field type the most suitable under being applicable to current context according to the method described above.
The schematic diagram of the another label field of the embodiment of the present invention is shown as Fig. 4:
Sequence number 401 and stream number 405 parallel arranged;
Payload check value 403, payload verification type 404 and test domain check value 407, label field type 406 parallel arranged;
The row that sequence number 401 and stream number 405 parallel arranged form, timestamp 402, between payload check value 403, payload verification type 404 and the row that forms of test domain check value 407, label field type 406 parallel arranged, longitudinal arrangement forms and arranges, and forms the label field of this embodiment.
In label field as shown in Figure 4,401 is the sequence numbers in some stream, takies 2 bytes, 405 is stream numbers, and take 2 bytes, 402 is timestamps, take 4 bytes, 403 is payload check values, takies 15bit, and 404 is payload verification types, take 1bit, 407 is test domain check values, takies 15bit, and 406 is label field types.Therefore this label field only occupies 12 bytes, and fewer than the label field shown in Fig. 38 bytes, also just mean and use label field as shown in Figure 4, can produce the TCP bag of more than 70 bytes.So, when user needs to set up a test pack time, just can go out according to the method choice of above-mentioned definition label field each subdomain will used in test process, wherein requisite during label field type, which show the type in current label territory.Secondly, because test needs, also have selected other subdomains such as sequence number, stream number, payload check value, payload verification type, timestamp and test domain check value, and for the arrangement mode of each subdomain, need the size of the test frame built then to have selected arrangement mode as shown in Figure 4 owing to considering.
In a concrete example, implementation procedure of the present invention is as follows:
1. first software judges that user needs the fluxion of adding under port, if more than 64K stream, then can only use label field as shown in Figure 3.
If 2. fluxion is no more than 64K, then according to the type of the test frame that will construct of user's selection, see whether the label field of use 20 byte can satisfy the demands.For example, if user needs the TCP test frame of structure 72 bytes, clearly the label field define method (Fig. 3 shown in) of 20 bytes is not all right, if but user needs the TCP test frame of structure 100 bytes, and the label field so shown in Fig. 3 just can be used.
If the label field define method 3. shown in Fig. 3 is infeasible, the label field define method shown in Fig. 4 is just adopted to meet the demand of user as possible.
4. the label field type register of software design patterns hardware, hardware will adopt corresponding definition to add the label field of test frame.
5. based on this, if when the size of the data flow of adding is greater than a predetermined threshold, then select to build label field as shown in Figure 3.
In sum, by means of technique scheme of the present invention, label field of the present invention and define method dynamically can change according to test scene, thus test pack can be produced more neatly, and then make method of testing more accurate more flexibly, realize polytype ethernet test, and verification strategy can be carried out dynamically according to the setting of user.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a label field for test frame, is characterized in that, comprising:
Multiple subdomain; A label field type is at least comprised, for showing the type of described label field among described multiple subdomain; The type of described label field according to the size of described label field and label field comprise subdomain kind determine;
The mode of embarking on journey between each subdomain in described multiple subdomain and/or arrange arranges.
2. label field according to claim 1, is characterized in that, described multiple subdomain comprises further:
Payload verification type, payload check value;
Wherein, described payload verification type is for indicating verification type corresponding to described test frame and verification coverage;
Described payload check value for carry out in checking procedure to described test frame, the check value of described verification coverage.
3. label field according to claim 1, is characterized in that, described multiple subdomain comprise further following one of at least:
Stream number, described stream number is the label of multiple data flow that same physical port exists;
Sequence number, described sequence number is the sequence number of network packet in same data flow;
Timestamp, described timestamp is the timestamp of network packet delivery time.
4. label field according to claim 3, is characterized in that, described multiple subdomain comprises further:
Test domain check value, the verification coverage of described test domain check value at least includes the field of described payload verification type, stream number, sequence number and timestamp.
5. label field according to claim 4, is characterized in that, comprising:
Described payload verification type and described payload check value parallel arranged;
Described test domain check value and described label field type parallel arranged;
The row that described payload verification type and described payload check value form, the row that described test domain check value and described label field type form, described stream number, described sequence number, between described timestamp, longitudinal arrangement composition row, form the first label field.
6. label field according to claim 4, is characterized in that, comprising:
Described sequence number and described stream number parallel arranged;
Described payload check value, payload verification type and described test domain check value, label field type parallel arranged;
The row that described sequence number and described stream number parallel arranged form, described timestamp, between the row that described payload verification class value, payload inspection type and described test domain check value, label field type parallel arranged form, longitudinal arrangement forms and arranges, and forms the second label field.
7. definition as arbitrary in claim 1 to 6 as described in the method for label field, it is characterized in that, comprising:
Select according to preset test environment and testing requirement the subdomain forming described label field, wherein at least comprised label field type by the subdomain selected;
Each subdomain selected is carried out arranged distribution in the mode of row and/or row, is defined as described label field.
8. method according to claim 7, is characterized in that, the described subdomain according to preset test environment and the described label field of testing requirement selection formation comprises:
According to the current size needing the data flow of adding, select the subdomain forming described label field.
9. method according to claim 7, is characterized in that, the described subdomain according to preset test environment and the described label field of testing requirement selection formation comprises further:
The size of the test frame constructed as required, selects the subdomain forming described label field.
10. method according to claim 8, is characterized in that, comprising:
When the size of the data flow of described interpolation is greater than a predetermined threshold, build the first label field.
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 true CN105049278A (en) 2015-11-11
CN105049278B 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)

Cited By (2)

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

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

Cited By (3)

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

Also Published As

Publication number Publication date
CN105049278B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
US9065770B2 (en) Traffic item impairment emulation
CN107508719A (en) Measure the method, apparatus and network node of network delay
CN109802864A (en) Chip design and verification method, device and chip tester
US20130070777A1 (en) Reordering Network Traffic
JP2004032725A (en) Test apparatus for network communication
US10033664B2 (en) Ethernet switch and method for establishing forwarding patterns in an Ethernet switch
EP3474499B1 (en) Network performance detection method and apparatus
CN102209000A (en) Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions
US20190014029A1 (en) Performance measurement in a packet-switched communication network
CN103338464B (en) Communication means and equipment
CN104503842B (en) Policy execution method and device based on multilayer shunting experimental framework
CN105049278A (en) Tag domain of test frame and method for defining tag domain
CN104639390B (en) The test method and device of system
CN103036721A (en) Traffic statistical method under cloud computing environment
Janicki et al. EDT bandwidth management-Practical scenarios for large SoC designs
US11121938B2 (en) Performance measurement in a packet-switched communication network
CN105656662A (en) Fault locating method and apparatus
CN109120483B (en) Firewall equipment performance test method and device
CN107465629A (en) Method for limiting speed and device
WO2004012391A1 (en) Performance management using passive testing
US9935707B2 (en) Methods, systems, and computer readable media for providing traffic generation or forwarding device that compensates for skew between electrical lanes in a manner that allows coherent detection of transmitted data
US7324562B1 (en) Method and apparatus for introducing differential delay between virtually concatenated tributaries
Lin et al. Network telemetry by observing and recording on programmable data plane
CN115225550A (en) On-demand whole-network remote measuring device based on clustered path planning algorithm
CN109714269A (en) A kind of data processing method and the network equipment

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