CN109962824A - High-speed network appliance and its self test method - Google Patents
High-speed network appliance and its self test method Download PDFInfo
- Publication number
- CN109962824A CN109962824A CN201711434880.3A CN201711434880A CN109962824A CN 109962824 A CN109962824 A CN 109962824A CN 201711434880 A CN201711434880 A CN 201711434880A CN 109962824 A CN109962824 A CN 109962824A
- Authority
- CN
- China
- Prior art keywords
- message box
- network interface
- test message
- multiple test
- transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0888—Throughput
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a kind of high-speed network appliance and its self test method, it is to set first network interface via network cable in the multiple test message boxes of continuous transmission in preset time to the second network interface, calculate the quantity of the multiple test message boxes transmitted, compare quantity and preset value, and gives notice according to comparison result.The present invention be not necessary to additional test equipment also can validity test high-speed network appliance transmission speed, and testing cost can be greatly reduced.
Description
Technical field
The present invention be it is related with device and method, particularly with regard to high-speed network appliance and its self test method.
Background technique
High speed second too net (High Speed Ethernet) technology can provide gigabits/second member (Gigabits per
Second the transmission speed more than).Also, there are many high-speed network appliances for supporting high speed second too network technology on the market at present
It is suggested.
In general, the network equipment necessary acceptance test before factory, with the transmission efficiency for the network equipment for ensuring to dispatch from the factory
Meet corresponding specification (such as highest transmission speed is up to 100Mbps).
Referring to Fig. 1, being the test schematic diagram of the existing network equipment.As shown, existing test method be using
Special second too net test equipment 14 tests the manufactured network equipment 10,12.
Specifically, tester is first using network cable 160,162 come by two networks of second too net test equipment 14
Connectivity port connects two network connection ports of the network equipment 10, and can be used network cable 164,166 that second is netted very much to survey
Try two network connection ports of other two network connection port connection network equipment 12 of equipment 14.Then, tester
Second too net test equipment 14 can be operated to generate and transmit a large amount of simulation package to the network equipment 10,12 to test transmission speed
Degree.
Though second above-mentioned too net test equipment 14 can validity test network equipment 10-12 transmission speed, however, being limited to
Hardware capabilities, most second too net test equipment 14 can only survey general grade of transmission (such as 1Gbps) on the market at present
Examination, and the grade of transmission (such as 10Gbps) that high speed second is netted very much can not be tested.
In addition, separately there is a kind of high speed second too net test equipment for strengthening hardware capabilities to be suggested at present.High speed second above-mentioned
Too though net test equipment can test high-speed transfer grade (such as 10/100Gbps), however, excessively high cost make it is aforementioned
High speed second too net test equipment is typically only utilized for the experiment of development phase.Since manufacturer is before often no sufficient funds can be bought more
Expensive high speed second too net test equipment is stated, and the transmission speed for the high-speed network appliance that can not be completed to manufacture is tested,
And the grade of transmission that the high-speed network appliance that is unable to ensure factory is up to specification.
In view of this, pole needs a kind of test method of high-speed network appliance at present, can be come in a manner of inexpensive to high speed network
The transmission speed of network equipment is tested.
Summary of the invention
The purpose of the present invention is to provide a kind of high-speed network appliance and its self test method, usable high speed network is set
Standby own hardware tests transmission speed, and is not necessary to buy more additional test equipment.
In an embodiment, a kind of self test method of high-speed network appliance, to including a first network interface
And one second network interface a high-speed network appliance carry out transmission efficiency test, comprising the following steps:
A) it sets the first network interface and starts to transmit multiple test message boxes to second network via a network cable
Interface;
B) quantity of multiple test message box is calculated;
C) the first network interface is set later in preset time warp to stop transmitting multiple test message box;
D) one is issued when the quantity of multiple test message box is not less than a preset value to notify by velocity test;And
E) one is issued when the quantity of multiple test message box is less than the preset value not notify by velocity test.
In an embodiment, the step a) the following steps are included:
A1 multiple test message box) is generated;
A2 the source address, a destination address and a data length of the respectively test message box) are set;And
A3 the first network interface) is set to start to transmit multiple test message box and start the timing preset time.
In an embodiment, the step a1) it is a first information frame generation module via the enable first network interface
To generate multiple test message box.
In an embodiment, the step a2) be that the source address of the respectively test message box is set as 00:00:00:
The setting recipient of the respectively test message box is FF:FF:FF:FF:FF:FF by 00:00:00, or will each test information
The data length of frame is set as 1518 bit groups.
In an embodiment, the first network interface include one first transmission buffer, step a) be enable this first
For transmission buffer to start to transmit multiple test message box, step c) is forbidden energy the first transmission buffer to stop transmitting
Multiple test message box.
In an embodiment, second network interface include one second count register, step b) be via this second
Count register come continue calculate second network interface institute it is received it is multiple test message box quantity.
In an embodiment, which includes one first count register, and step b) is further via this
First count register calculates the quantity of multiple test message box that the first network interface is transmitted.
In an embodiment, step d) is that meet the first counting temporary in one second reading of second count register
Issuing when the one first of device reads and second reading is not less than the preset value should be by velocity test notice;Step e) be in
Second reading or first reading issue this when being less than the preset value and are not notified by velocity test.
In an embodiment, the self test method of the high-speed network appliance further include a step f) in this first reading not
A connection flaw notice is issued when meeting second reading.
In an embodiment, the self test method of the high-speed network appliance further includes following steps:
G1) transmission is calculated according to the preset time and a total data length of the multiple test message box transmitted to gulp down
Spit rate;
G2) one is calculated according to an at least one of transmission time for multiple test message box and a receiving time to pass
Defeated delay;
G3) a message box loss rate is calculated according to the quantity of multiple test message box and a preset quantity;And
G4) the one buffer capacity force value of a continuous data length computation according to the multiple test message box transmitted simultaneously.
In an embodiment, a kind of high-speed network appliance can voluntarily be tested transmission efficiency, comprising:
One first network interface connects one end of a network cable, to transmit multiple test message boxes to network electricity
Cable;
One second network interface, connects the other end of the network cable, to receive multiple test from the network cable
Message box;
One man-machine interface, to give notice;And
One processor is electrically connected the first network interface, second network interface and the man-machine interface, the processor packet
It includes:
One timing module, it is pre- to start timing one when the first network interface starts and transmits multiple test message box
If the time;
One transmission control module starts to transmit multiple test message boxes to set the first network interface, and pre- in this
Stop transmitting multiple test message box if time warp sets the first network interface later;
One count control module, to obtain the quantity of multiple test message box;And
One notification module, to control the people's machine interface when the quantity of multiple test message box is not less than a preset value
It issues one to notify by velocity test, and controls the people's machine interface when the quantity of multiple test message box is less than the preset value
One is issued not notify by velocity test.
In an embodiment, which includes a first information frame generation module, to generate multiple survey
Message box is tried, and sets a source address, a destination address and a data length for the respectively test message box.
In an embodiment, which is to be set as the source address of the respectively test message box
The setting recipient of the respectively test message box is FF:FF:FF:FF:FF:FF by 00:00:00:00:00:00, or will be each
The data length of the test message box is set as 1518 bit groups.
In an embodiment, which includes one first transmission buffer, and the transmission control module is via cause
The energy first transmission buffer stops starting to transmit multiple test message box via the forbidden energy first transmission buffer
Transmit multiple test message box.
In an embodiment, second network interface include one second count register, second count register to
Calculate second network interface it is received it is multiple test message box quantity and generate one second reading.
In an embodiment, the first network interface include one first count register, first count register to
It calculates the quantity for multiple test message box that the first network interface is transmitted and generates one first reading, the tally control mould
Block reads first reading from first count register, reads second reading from second count register, and according to this
First reading or second reading determine the quantity of multiple test message box.
In an embodiment, which further includes a connection confirmation module, in first reading do not meet this
A connection flaw notice is issued via the notification module when two readings.
In an embodiment, which is further included:
One throughput computing module, to the sum according to the preset time and the multiple test message box transmitted
Throughput is transmitted according to length computation one;
One Delay computing module, at least one of transmission time and one according to multiple test message box
Receiving time calculates a transmission delay;
One loss rate computing module, to the quantity and a preset quantity one information of calculating according to multiple test message box
Frame loss rate;And
One buffer capacity computing module, it is long to the continuous data according to the multiple test message box transmitted simultaneously
Degree calculates a buffer capacity force value.
The present invention be not necessary to using additional network test equipment also can validity test high-speed network appliance transmission speed, and
Testing cost can be greatly reduced.
Below in conjunction with the drawings and specific embodiments, the present invention will be described in detail, but not as a limitation of the invention.
Detailed description of the invention
Fig. 1 is the test schematic diagram of conventional network equipment;
Fig. 2 is the architecture diagram of the high-speed network appliance of first embodiment of the invention;
Fig. 3 is the architecture diagram of the high-speed network appliance of second embodiment of the invention;
Fig. 4 is the connection schematic diagram of the high-speed network appliance of third embodiment of the invention;
Fig. 5 is the architecture diagram of the network interface of fourth embodiment of the invention;
Fig. 6 is the architecture diagram of the processor of fifth embodiment of the invention;
Fig. 7 is the flow chart of the self test method of first embodiment of the invention;
Fig. 8 is the partial process view of the self test method of second embodiment of the invention;
Fig. 9 is the partial process view of the self test method of third embodiment of the invention;
Figure 10 is the partial process view of the self test method of fourth embodiment of the invention.
Wherein, appended drawing reference
10,12 ... the network equipments
14 ... second too net test equipment
160-166 ... network cable
2,40,41 ... high-speed network appliance
20 ... processors
21 ... first network interfaces
22 ... second network interfaces
23 ... storage modules
230 ... operating systems
231 ... application programs
24 ... man-machine interfaces
25 ... network cables
3 ... host computers
30 ... connecting interfaces
5 ... network interfaces
50 ... firmwares
51 ... transmission buffers
52 ... count registers
53 ... message box generation modules
60 ... timing modules
61 ... transmission control modules
62 ... count control modules
63 ... notification modules
64 ... connection confirmation modules
65 ... throughput computing modules
66 ... Delay computing modules
67 ... loss rate computing modules
68 ... buffer capacity computing modules
S10-S17 ... transmission speed testing procedure
S20-S22 ... transmitting step
S30-S34 ... judgment step
S40-S43 ... effect test step
Specific embodiment
A hereby just preferred embodiment of the invention cooperates attached drawing, and detailed description is as follows.
The present invention is mainly to provide a kind of self measuring technology, applies to Fig. 2 to high-speed network appliance shown in fig. 6.Before
Self measuring technology is stated mainly to carry out high-speed transfer using the hardware of high-speed network appliance itself and receive second too net message box
(Ethernet frame), and the transmission speed of high-speed network appliance can be tested.
Referring to Fig. 2, the architecture diagram of the high-speed network appliance for first embodiment of the invention.In this present embodiment, high speed
The network equipment 2 is the computer apparatus with networking capabilities.Specifically, high-speed network appliance 2 includes first network interface 21, the
Two network interfaces 22, storage module 23, man-machine interface 24 and the processor 20 for being electrically connected above-mentioned apparatus.
First network interface 21 and the second network interface 22 can be the same or similar network interface, and support high speed second too
Net transmission.In an embodiment, first network interface 21 and the second network interface 22 are the height for supporting 1Gbps or more grade of transmission
Fast network interface card (High Speed Network Interface Card).
In an embodiment, when first network interface 21 is identical as the highest grade of transmission that the second network interface 22 is supported
When (being such as all 100Gbps), the present invention can test aforementioned highest grade of transmission (such as 100Gbps).
In an embodiment, when first network interface 21 is different from the highest grade of transmission that the second network interface 22 is supported
When (the highest grade of transmission supported such as first network interface 21 is 10Gbps, and the highest that the second network interface 22 is supported passes
Defeated grade is 100Gbps), the present invention can test grade of transmission (such as 10Gbps) lower in the two.
Storage module 23 (such as cache memory, random access memory, optical disc, flash memory, disk drive or above-mentioned storage
Any combination of storing module) to store data.Man-machine interface 24 (such as keyboard, mouse, display, Touch Screen, loudspeaker and/
Or other input/output devices) to receive user's operation and/or output information (it is as be described hereinafter by velocity test notice,
It does not notify by velocity test and connect flaw notice).Each device of the processor 20 to control high-speed network appliance 2.
In an embodiment, storage module 23 include non-transient computer readable media, and store operating system 230 and
Application program 231, operating system 230 and application program 231 record the procedure code for having readable in computer respectively.Processor 20 can be held
Row operating system 230, and can come in the lower executing application 231 of operating system 230 to first network interface 21 and the second network
Interface 22 is interacted the self test method to realize various embodiments of the present invention.
It is noted that tester must be first by network cable 25 before executing self test method of the invention
The one end of (such as Connectorized fiber optic cabling, twisted pair or twin shaft copper cable) connects first network interface 21, and the other end is connected the second net
Network interface 22, so that first network interface 21 forms entity winding (loopback) with the second network interface 22 and can mutually carry out
Signal transmission.
It is noted that (i.e. the network interface of entity and virtual network interface are constituted existing virtual winding
Winding) it is to operate on transmission control agreement/Internet protocol suite layer (TCP/IP Layer), and a large amount of processor moneys must be expended
Virtual network interface and encapsulation/decapsulation package is simulated in source in a manner of software, this makes the package of existing virtual winding
Transmission speed is simultaneously unable to reach the grade of transmission (such as 1Gbs) that high speed second is netted very much, and is not used to the transmission speed of high-speed network appliance
Degree test.
The present invention forms entity winding via the high speed network interfaces of two entities are used, and in data link layer
Second too net message box (Ethernet is transmitted/received under (Data Link Layer) and physical layer (Physical Layer)
Frame), the transmission speed of message box can be made to reach the grade of transmission (being detailed later) that high speed second is netted very much.
Continue the architecture diagram referring to Fig. 3, the high-speed network appliance for second embodiment of the invention.In this present embodiment, high
The fast network equipment 2 includes first network interface 21, the second network interface 22 and the host computer 3 being independently arranged.Host computer 3 wraps
Include processor 20, storage module 23, man-machine interface 24 and connecting interface 30 (such as PCI Express interface or other support high speeds
The interface of transmission).
First network interface 21 can be electrically connected with the second network interface 22 via connecting interface 30 and processor 20,
And the control of acceptable processor 20, and make host computer 3 that there is networking capabilities.
It is noted that in this present embodiment, tester must be first by first network interface 21 and the second network
22 detachable of interface connects the connecting interface 30 of host computer 3, and the both ends of network cable 25 are separately connected first network and are connect
Mouthfuls 21 and second network interface 22 form entity winding to execute aftermentioned self test method.
Continue the connection schematic diagram referring to Fig. 4, the high-speed network appliance for third embodiment of the invention.Compared to Fig. 2 institute
The aforementioned high-speed network appliance 2 shown, each high-speed network appliance 40,41 of the present embodiment is only configured with single network interface (with height
The fast network equipment 40 configures first network interface 21, and high-speed network appliance 41 configures for the second network interface 22).
In this present embodiment, tester is that the both ends of network cable 25 are separately connected the first of high-speed network appliance 40
Second network interface 22 of network interface 21 and high-speed network appliance 41 forms entity winding to execute aftermentioned self test
Method.
Referring to Fig. 5, the architecture diagram of the network interface for fourth embodiment of the invention.In this present embodiment, network interface 5
(first network interface 21 or the second network interface 22 as the aforementioned) may include firmware 50, transmission buffer 51, count register
52 and message box generation module 53.
Firmware 50 is stored in the storage module (figure does not indicate) of network interface 5, to secondary processor 20 to network interface 5
It is controlled and is set.Transmission buffer 51, count register 52 and message box generation module 53 may be disposed at network interface 5
Microcontroller (figure does not indicate), and to execute aftermentioned self test method.
Specifically, transmission buffer 51 starts or stops transmission message box, count register to control network interface 5
52 quantity to calculate the transmission of network interface 5 or the message box received, message box generation module 53 is to generate test information
Frame.
Continue the architecture diagram referring to Fig. 6, the processor for fifth embodiment of the invention.Specifically, processor 20 is main
It is to be interacted by executing application 231 with first network interface 21 with the second network interface 22, to execute the present invention
Self test method in each function and according to different functions can be following several function by above-mentioned application program 231
Energy module:
1. timing module 60 issues terminal hour to timing preset time (such as 30 seconds), and in timing preset time warp later
Signal.
2. transmission control module 61 starts or stops transmission message box to setting network interface 5.In an embodiment,
Transmission control module 61 can come via firmware 50 enable transmission buffer 51 (such as by transmit buffer 51 value be set as 1) so that
Network interface 5 starts to transmit message box, or carrys out forbidden energy transmission buffer 51 via firmware 50 and (such as set the value for transmitting buffer 51
It is set to 0) so that network interface 5 stops transmission message box.
3. count control module 62, to obtain, network interface 5 transmits in aforementioned preset time or institute is received more
The quantity of a message box.In an embodiment, count control module 62 can carry out enable count register 52 via firmware 50 and (such as will
The value of count register 52 is initialized as 0) so that count register 52 starts to calculate the quantity of aforementioned information frame.Also, in meter
When after, count control module 62 can read the reading of count register 52 via firmware 50 to obtain aforementioned information frame
Final amt.
4. notification module 63 exports generated notice to generate notice and control man-machine interface 24.
5. confirmation module 64 is connected, to confirm two connected (such as first network interfaces 21 and second of network interface 5
Network interface 22) between connection (such as network cable 25) whether normal operation.
6. throughput control module 65, to calculate the transmission throughput between two connected network interfaces 5.
7. Delay computing module 66, to calculate the transmission delay between two connected network interfaces 5.
8. loss rate computing module 67, to calculate the message box loss rate between two connected network interfaces 5.
9. buffer capacity computing module 68, to calculate the buffer capacity force value between two connected network interfaces 5.
Whereby, the present invention can be to the transmission of two network interfaces 5 (such as first network interface 21 and the second network interface 22)
Efficiency is tested.
Continue the flow chart referring to Fig. 7, the self test method for first embodiment of the invention.Various embodiments of the present invention
Self test method high-speed network appliance shown in Fig. 1 to Fig. 6 is realized.It, will be with shown in Fig. 2 in subsequent explanation
It is illustrated for high-speed network appliance 2.The self test method of the present embodiment includes the following steps.
Step S10: processor 20 controls high-speed network appliance 2 and enters test pattern.In an embodiment, processor 20 is passed through
First network interface 21 is set by transmission control module 61 and the second network interface 22 enters test pattern.
In an embodiment, after first network interface 21 and the second network interface 22 entrance test pattern, processor 20
Further (it is temporary can to call the first counting in the following text via the count register 52 that count control module 62 initializes first network interface 21
0) first reading of the first count register is such as set as by device.Also, processor 20 can also be initial via count control module 62
The count register 52 for changing the second network interface 22 (is called the second count register in the following text, is such as read the second of the second count register
0) number is set as.
Step S11: processor 20 sets first network interface 21 via transmission control module 61 and starts to transmit multiple tests
Message box.
In an embodiment, processor 20 can be first via the message box of 61 enable first network interface 21 of transmission control module
Generation module 53 (calling first information frame generation module in the following text) is so that first information frame generation module starts to generate multiple test information
Frame.
Then, processor 20 (is called in the following text via the transmission buffer 51 of 61 enable first network interface 21 of transmission control module
First transmission buffer), the value of the first transmission buffer is such as set as " 1 " so that first network interface 21 starts via network
Cable 25 transmits multiple test message boxes caused by first information frame generation module to the second network interface 22.
In an embodiment, processor 20 can also start timing preset time via timing module 60 simultaneously.
Step S12: processor 20 calculates the quantity of the test message box transmitted via count control module 62.
In an embodiment, processor 20 sets the first count register via count control module 62 and starts calculating first
The quantity for multiple message boxes that network interface 21 is transmitted, or the second count register of setting start to calculate the second network interface 22
Received multiple message boxes quantity.
Step S13: processor 20 judges whether preset time passes through via timing module 60.
In an embodiment, processor 20 determines preset time when detecting the terminal hour signal that timing module 60 is issued
By, and when terminal hour signal is not detected determine preset time without.
If preset time is without execution step S13 judges whether preset time passes through with lasting again.Otherwise, locate
It manages device 20 and executes step S14.
It is noted that first network interface 21 is the multiple test message boxes of continuous transmission during executing step S13
To the second network interface 22, the second counting of the first count register of first network interface 21 or the second network interface 22 is temporary
Device is the quantity for continuing to calculate the test message box transmitted.
Step S14: processor 20, which sets first network interface 21 via transmission control module 61, to be stopped transmitting multiple tests
Message box.
In an embodiment, processor 20 transmits buffer via 61 forbidden energy first of transmission control module, such as passes first
The value of defeated buffer is set as " 0 ", so that first network interface 21 stops transmitting any test message box to the second network interface
22。
In an embodiment, processor 20 can also be simultaneously via the of 61 forbidden energy first network interface 21 of transmission control module
One message box generation module is so that first information frame generation module stops generating multiple test message boxes.
In an embodiment, processor 20 can also control timing module 60 simultaneously and stop timing preset time.
Step S15: processor 20 is obtained via count control module 62 to be believed in the multiple tests transmitted in preset time
The quantity of frame is ceased, and judges whether the quantity of multiple test message boxes are not less than preset value, wherein aforementioned preset value is corresponding the
The highest grade of transmission of one network interface 21 and the second network interface 22.
In an embodiment, processor 20 can read the first reading from the first count register via count control module 62
And as the quantity of aforesaid plurality of test message box, or second is read from the second count register and is read and as aforesaid plurality of survey
Try the quantity of message box.
In an embodiment, processor 20 can believe the average value of the first reading and the second reading as aforesaid plurality of test
The quantity of frame is ceased, or selects one of the first reading and the second reading (optional if the first reading is different with the second reading
Select the smallest reading of numerical value) as the aforesaid plurality of quantity for testing message box.
For example, if the size of test message box is 1518 bit groups, first network interface 21 and the second network interface
22 highest grade of transmission is 1Gbps, then preset value can be 81275 or close numerical value (arbitrary number in such as positive and negative 10% range
Value).
In another example, if the size of test message box is 1518 bit groups, first network interface 21 and the second network
The highest grade of transmission of interface 22 is 10Gbps, then preset value (can appoint for 812744 or close numerical value in such as positive and negative 10% range
Meaning numerical value).
If processor 20 judges that the quantity of multiple test message boxes not less than preset value, thens follow the steps S16.Otherwise, locate
It manages device 20 and executes step S17.
Step S16: processor 20 is generated via notification module 63 and is notified by velocity test, and defeated via man-machine interface 24
It notifies to know the reality of first network interface 21 and the second network interface 22 for tester by velocity test caused by out
Border transmission speed is up to specification.
Step S17: processor 20 is generated via notification module 63 and is not notified by velocity test, and via man-machine interface 24
It does not notify to know first network interface 21 and the second network interface 22 for tester by velocity test caused by output
Actual transmission speed fall short of specifications.
It is noted that being notified mentioned by velocity test and not notifying be text information, sound by velocity test
Message breath, indicator light information or other types information, are not limited.
The present invention be not necessary to using additional network test equipment also can validity test high-speed network appliance transmission speed, and
Testing cost can be greatly reduced.
Though it is noted that being using first network interface 21 as transmission end, and with the second network in this present embodiment
Interface 22 carries out positive transmission test as receiving end, but is not limited with this.In an embodiment, the present invention can be by the second net
Network interface 22 is used as transmission end, and carries out reverse transfer test using first network interface 21 as receiving end.
Though not limited it is noted that tested for one-way transmission in this present embodiment with this.Yu Yi
In embodiment, the present invention can carry out transmitted in both directions test.
Specifically, first network interface 21 can be used as transmission end to send test message box to the via network cable 25
Two network interfaces 22, and can come to receive test transmitted by the second network interface 22 via network cable 25 as receiving end simultaneously
Message box.In the same manner, the second network interface 22 can be used as receiving end to receive 21 institute of first network interface via network cable 25
The test message box of transmission, and can be connect simultaneously as transmission end to send test message box to first network via network cable 25
Mouth 21.
Further, since single count register may be only arranged in each network interface, under this situation, if the first net
When first count register of network interface 21 is set to count the quantity for the test message box that first network interface 21 is transmitted,
Second count register of the second network interface 22 need to accordingly be set to count the test that the second network interface 22 is transmitted
The quantity of message box;If the first count register of first network interface 21 is set to counting, first network interface 21 is received
Test message box quantity when, the second count register of the second network interface 22 need to accordingly be set to count the second net
The quantity for the test message box that network interface 22 is transmitted.Whereby, each network interface of the present embodiment only needs that single count temporarily is arranged
Transmitted in both directions test can be realized in storage.
In an embodiment, each network interface may be provided with more than two count registers, such as first network interface 21
It is provided with the first transmission count register and the first count pick up buffer, the second network interface 22 is provided with the second transmission counting
Buffer and the second count pick up buffer.When carrying out transmitted in both directions test, the first transmission of first network interface 21 is counted
The quantity for the test message box that the countable first network interface 21 of buffer is transmitted, while the first count pick up buffer can be counted
Number first network interfaces 21 institute it is received test message box quantity.Also, the second transmission of the second network interface 22 counts temporary
The quantity for the test message box that countable second network interface 22 of storage is transmitted, while the second count pick up buffer is countable
Second network interface 22 it is received test message box quantity.
The present embodiment can get each transmission direction receiving end and transmitting terminal count register read, and can further according to
Judge each transmission direction with the presence or absence of connection flaw (being detailed later) according to the reading of receiving end and transmitting terminal.
Continuing please refer to Fig. 7 and Fig. 8, Fig. 8 is the partial process view of the self test method of second embodiment of the invention.
Compared to self test method shown in Fig. 7, the step S11 of the self test method of Fig. 8 further includes following steps.
Step S20: processor 20 generates mould via the first information frame of 61 enable first network interface of transmission control module
Block generates multiple test message boxes.
Step S21: the first information frame generation module after enable set it is each test message box parameter (such as source address,
Destination address and/or data length).
In an embodiment, first information frame generation module can set the source address of each test message box with destination address
Be set to fixed value (source address is such as set as 00:00:00:00:00:00, by setting recipient be FF:FF:FF:FF:
FF:FF), and by the data length of each test message box it is set as maximum value (such as 1518 bit groups).
It is noted that the data length of each test message box, which is set as maximum value, to be helped quickly to generate a large amount of numbers
According to, and make the unit time of the invention can produce unit time that data volume is netted very much not less than high speed second can transmitted data amount, and
Avoidable data generation speed, which is lower than caused by transmission speed, to test the speed unsuccessfully.
Also, since first network interface 21 and the second network interface 22 are connected (i.e. via network cable 25 is one-to-one
Network cable 25 does not reconnect other network interfaces), even if the respectively source address and destination address mistake of test message box, also not
It will affect being sent to for each test message box.Therefore, the source address of each test message box is by the present invention with setting recipient
Fixed value can help to the setting that a large amount of test message boxes are rapidly completed.
Step S22: processor 20 sets first network interface 21 via transmission control module 61 to start to transmit multiple surveys
Examination message box simultaneously starts timing preset time.
In an embodiment, processor 20 transmits buffer via 61 enable first of transmission control module and sets to start transmission
Surely the multiple test message boxes completed, and start timing preset time via timing module 60 simultaneously.
Whereby, the present invention can quickly generate a large amount of test message boxes, the setting of a large amount of test message boxes be rapidly completed, and right
The outer a large amount of test message boxes of transmission, and it is applicable to the transmission speed test that high speed second is netted very much.
Continuing please refer to Fig. 7 and Fig. 9, Fig. 9 is the partial process view of the self test method of third embodiment of the invention.
Compared to self test method shown in Fig. 7, the step S15 of the self test method of Fig. 9 further includes following steps.
Step S30: processor 20 reads the first reading (i.e. first from the first count register via count control module 62
The quantity for multiple test message boxes that network interface 21 is transmitted).
Step S31: processor 20 reads the second reading (i.e. second from the second count register via count control module 62
Network interface 22 it is received it is multiple test message boxes quantity).
Step S32: processor 20 judges whether the first reading meets the second reading via connection confirmation module 64.
If processor 20 judges that the first reading meets the second reading, S33 is thened follow the steps.Otherwise, processor 20 judges net
There may be flaws for network cable 25, and execute step S34.
Step S33: whether processor 20 judges the first reading with the second reading not less than preset value.
If the first reading is all not less than preset value with the second reading, processor 20 determines first network interface 21 and second
The transmission speed of network interface 22 executes step S16 by test.If the first reading or the second reading are less than preset value,
Processor 20 determines that the transmission speed of first network interface 21 or the second network interface 22 does not pass through test, and executes step S17.
If processor 20 judges network cable 25 there may be flaws in step S32, S34 is thened follow the steps: processor
20 via notification module 63 control man-machine interface 24 issue connection flaw notice, to indicate tester's network cable 25], first
There are flaws for network interface 21 or the second network interface 22.
Aforementioned connection flaw notice can be text information, acoustic information, indicator light information or other types information, not be subject to
It limits.
It is noted that netting very much transmission in the support high speed second of network cable 25 and under lossless situation, the first reading will
The second reading can be met, and (i.e. the quantity for multiple test message boxes that the second network interface 22 is received can be equal to first network interface
The quantity of the 21 multiple test message boxes transmitted).
Therefore, the present invention can effectively judge first network interface, the second network via the reading of comparison first and the second reading
Interface and network cable 25 are with the presence or absence of flaw (netting very much transmission or damage if do not supported high speed second).
Continuing please refer to Fig. 7 and Figure 10, Figure 10 is the part process of the self test method of fourth embodiment of the invention
Figure.Compared to self test method shown in Fig. 7, the self test method of the present embodiment can be further to first network interface 21
Other efficiency projects with the second network interface 22 are (such as transmission throughput (Throughput), transmission delay (Latency), letter
Breath frame loss rate (Lost Rate) or buffer capacity force value (Back-to-Back)) it is tested.
Specifically, the self test method of the present embodiment includes the following steps after step S16 or step S17.
Step S40: processor 20 calculates transmission throughput via throughput computing module 65, and controls via notification module 63
Man-machine interface 24 processed shows transmission throughput calculated.
In an embodiment, processor 20 carries out the data length of each test message box transmitted in preset time
Aggregation obtains transmission throughput divided by preset time to obtain total data length, then by total data length.
Step S41: processor 20 controls people via 66 calculated transmission delay of Delay computing module, and via notification module 63
Machine interface 24 shows transmission delay calculated.
In an embodiment, processor 20 is desirable that at least one multiple for testing message boxes (it is suitable such as to obtain transmission
Test message box among sequence) transmission time transmitted by first network interface 21 and by the received reception of the second network interface 22
Time.Then, processor 20 calculates the biography of this transmission according to the transmission time and receiving time of acquired test message box
Defeated delay.
In an embodiment, processor 20 first calculates each survey according to the transmission time and receiving time of multiple test message boxes
The transmission delay of message box is tried, then multiple transmission delays according to multiple test message boxes calculate (such as average computation) this transmission
Transmission delay.
Step S42: quantity and present count of the processor 20 via loss rate computing module 67 according to multiple test message boxes
Amount calculates message box loss rate, and controls man-machine interface 24 via notification module 63 and show message box loss rate calculated.
In an embodiment, 20 self-information frame generation module 53 of processor obtains multiple test message boxes of anticipated transmission
Preset quantity, and quantity of second reading as the multiple test message boxes actually received is read from the second count register.It connects
, processor 20 calculates the difference between preset quantity and the quantity of the multiple test message boxes actually received, and (i.e. transmission fails
Test message box quantity), and the ratio of calculating difference and preset quantity comes as message box loss rate.
Step S43: processor 20 calculates buffer capacity force value via buffer capacity computing module 68, and via notification module 63
Control man-machine interface 24 shows buffer capacity force value calculated.
In an embodiment, processor 20 controls first network interface 21 with highest transmission speed again via network cable
The 25 multiple test message boxes of transmission to the second network interface 22.Also, processor 20 controls first network in transmission process and connects
Quantity or data length (the multiple test information for changing while transmitting of 21 change of mouth while multiple test message boxes of transmission
The continuous data length of frame).After being transmitted, processor 20 obtains maximum continuous data length (this continuous data length
Corresponding multiple test message boxes are to transmit and transmitted successfully simultaneously) and as first network interface 21 and the second network interface
22 buffer capacity force value.
The present invention can transmission throughput, transmission delay, message box loss rate and buffer capacity effectively to high-speed network appliance
Force value is tested.
Certainly, the present invention can also have other various embodiments, without deviating from the spirit and substance of the present invention, ripe
It knows those skilled in the art and makes various corresponding changes and modifications, but these corresponding changes and change in accordance with the present invention
Shape all should fall within the scope of protection of the appended claims of the present invention.
Claims (18)
1. a kind of self test method of high-speed network appliance, which is characterized in to including a first network interface and one
One high-speed network appliance of the second network interface carries out transmission efficiency test, comprising the following steps:
A) it sets the first network interface and starts to transmit multiple test message boxes to second network interface via a network cable;
B) quantity of multiple test message box is calculated;
C) the first network interface is set later in preset time warp to stop transmitting multiple test message box;
D) one is issued when the quantity of multiple test message box is not less than a preset value to notify by velocity test;And
E) one is issued when the quantity of multiple test message box is less than the preset value not notify by velocity test.
2. the self test method of high-speed network appliance as described in claim 1, which is characterized in that step a) includes following
Step:
A1 multiple test message box) is generated;
A2 the source address, a destination address and a data length of the respectively test message box) are set;And
A3 the first network interface) is set to start to transmit multiple test message box and start the timing preset time.
3. the self test method of high-speed network appliance as claimed in claim 2, which is characterized in that the step a1) be via
One first information frame generation module of the enable first network interface generates multiple test message box.
4. the self test method of high-speed network appliance as claimed in claim 2, which is characterized in that the step a2) be will be each
The source address of the test message box is set as 00:00:00:00:00:00, by the destination address of the respectively test message box
It is set as FF:FF:FF:FF:FF:FF, or the data length of the respectively test message box is set as 1518 bit groups.
5. the self test method of high-speed network appliance as described in claim 1, which is characterized in that the first network interface packet
Include one first transmission buffer, step a) be enable this first transmission buffer to start to transmit multiple test message box,
Step c) be forbidden energy this first transmission buffer to stop transmitting multiple test message box.
6. the self test method of high-speed network appliance as described in claim 1, which is characterized in that the second network interface packet
Include one second count register, step b) is to continue to calculate second network interface via second count register to be connect
The quantity for the multiple test message box received.
7. the self test method of high-speed network appliance as claimed in claim 6, which is characterized in that the first network interface packet
One first count register is included, step b) further calculates the first network interface via first count register and passed
The quantity of defeated multiple test message box.
8. the self test method of high-speed network appliance as claimed in claim 7, which is characterized in that step d) be in this
One second reading of two count registers meets one first reading of the first count register and second reading is pre- not less than this
If issuing when value should be notified by velocity test;Step e) is when second reading or first reading are less than the preset value
This is issued not notify by velocity test.
9. the self test method of high-speed network appliance as claimed in claim 8, which is characterized in that further include a step f) in
First reading issues a connection flaw notice when not meeting second reading.
10. the self test method of high-speed network appliance as described in claim 1, which is characterized in that further include following steps:
G1) transmission is calculated according to the preset time and a total data length of the multiple test message box transmitted to handle up
Rate;
G2) transmission is calculated according to an at least one of transmission time for multiple test message box and a receiving time to prolong
Late;
G3) a message box loss rate is calculated according to the quantity of multiple test message box and a preset quantity;And
G4) the one buffer capacity force value of a continuous data length computation according to the multiple test message box transmitted simultaneously.
11. a kind of high-speed network appliance can voluntarily test transmission efficiency characterized by comprising
One first network interface connects one end of a network cable, to transmit multiple test message boxes to the network cable;
One second network interface, connects the other end of the network cable, to receive multiple test information from the network cable
Frame;
One man-machine interface, to give notice;And
One processor, being electrically connected the first network interface, second network interface and the man-machine interface, the processor includes:
One timing module, when being preset to start timing one when the first network interface starts and transmits multiple test message box
Between;
One transmission control module starts to transmit multiple test message boxes to set the first network interface, and when this is preset
Between set the first network interface later and stop transmitting multiple test message box;
One count control module, to obtain the quantity of multiple test message box;And
One notification module is issued to control the people's machine interface when the quantity of multiple test message box is not less than a preset value
One is notified by velocity test, and is controlled the people's machine interface when the quantity of multiple test message box is less than the preset value and issued
One is not notified by velocity test.
12. the self test method of high-speed network appliance as claimed in claim 11, which is characterized in that the first network interface
Including a first information frame generation module, to generate multiple test message box, and the one of the respectively test message box is set
Source address, a destination address and a data length.
13. the self test method of high-speed network appliance as claimed in claim 12, which is characterized in that the first information frame produces
Raw module is that the source address of the respectively test message box is set as 00:00:00:00:00:00, will each test message box
The setting recipient be FF:FF:FF:FF:FF:FF, or the data length of the respectively test message box is set as 1518
Bit group.
14. the self test method of high-speed network appliance as claimed in claim 11, which is characterized in that the first network interface
Including one first transmission buffer, which starts to transmit multiple survey via the enable first transmission buffer
Message box is tried, and stops transmitting multiple test message box via the forbidden energy first transmission buffer.
15. the self test method of high-speed network appliance as claimed in claim 11, which is characterized in that second network interface
Including one second count register, second count register is to calculate the received multiple test of second network interface institute
The quantity of message box simultaneously generates one second reading.
16. the self test method of high-speed network appliance as claimed in claim 15, which is characterized in that the first network interface
Including one first count register, multiple test which is transmitted to calculate the first network interface
The quantity of message box simultaneously generates one first reading, which reads first reading from first count register,
Second reading is read from second count register, and determines multiple test letter according to first reading or second reading
Cease the quantity of frame.
17. the self test method of high-speed network appliance as claimed in claim 16, which is characterized in that the processor further includes
One connection confirmation module, to issue a connection flaw via the notification module when first reading does not meet second reading
Notice.
18. the self test method of high-speed network appliance as claimed in claim 11, which is characterized in that the processor more wraps
It includes:
One throughput computing module, it is long to the total data according to the preset time and the multiple test message box transmitted
Degree calculates a transmission throughput;
One Delay computing module, at least one of transmission time and a reception according to multiple test message box
Time calculates a transmission delay;
One loss rate computing module, to the quantity and preset quantity calculating one message box something lost according to multiple test message box
Mistake rate;And
One buffer capacity computing module, to the continuous data length gauge according to the multiple test message box transmitted simultaneously
Calculate a buffer capacity force value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711434880.3A CN109962824A (en) | 2017-12-26 | 2017-12-26 | High-speed network appliance and its self test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711434880.3A CN109962824A (en) | 2017-12-26 | 2017-12-26 | High-speed network appliance and its self test method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109962824A true CN109962824A (en) | 2019-07-02 |
Family
ID=67022329
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711434880.3A Pending CN109962824A (en) | 2017-12-26 | 2017-12-26 | High-speed network appliance and its self test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109962824A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200820671A (en) * | 2006-10-16 | 2008-05-01 | Hon Hai Prec Ind Co Ltd | System and method for testing the transmission speed of network interface cards |
CN101651569A (en) * | 2009-09-11 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for testing performance of Ethernet port |
CN103139012A (en) * | 2012-12-03 | 2013-06-05 | 深圳市共进电子股份有限公司 | Ethernet port test method and network devices |
CN103916286A (en) * | 2013-01-09 | 2014-07-09 | 昊阳天宇科技(深圳)有限公司 | Test method and device for detecting network device |
US20160080241A1 (en) * | 2014-09-17 | 2016-03-17 | Broadcom Corporation | Gigabit Determination of Available Bandwidth Between Peers |
CN105897494A (en) * | 2015-01-26 | 2016-08-24 | 明泰科技股份有限公司 | Testing method of network transmission rate |
CN106452964A (en) * | 2016-10-31 | 2017-02-22 | 成都广达新网科技股份有限公司 | Network equipment interface cache testing system and method |
-
2017
- 2017-12-26 CN CN201711434880.3A patent/CN109962824A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200820671A (en) * | 2006-10-16 | 2008-05-01 | Hon Hai Prec Ind Co Ltd | System and method for testing the transmission speed of network interface cards |
CN101651569A (en) * | 2009-09-11 | 2010-02-17 | 中兴通讯股份有限公司 | Method and device for testing performance of Ethernet port |
CN103139012A (en) * | 2012-12-03 | 2013-06-05 | 深圳市共进电子股份有限公司 | Ethernet port test method and network devices |
CN103916286A (en) * | 2013-01-09 | 2014-07-09 | 昊阳天宇科技(深圳)有限公司 | Test method and device for detecting network device |
US20160080241A1 (en) * | 2014-09-17 | 2016-03-17 | Broadcom Corporation | Gigabit Determination of Available Bandwidth Between Peers |
CN105897494A (en) * | 2015-01-26 | 2016-08-24 | 明泰科技股份有限公司 | Testing method of network transmission rate |
CN106452964A (en) * | 2016-10-31 | 2017-02-22 | 成都广达新网科技股份有限公司 | Network equipment interface cache testing system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8660424B2 (en) | Scalable high speed gigabit active bundle link and tester | |
US9967025B2 (en) | Diagnostic port for inter-switch and node link testing in electrical, optical and remote loopback modes | |
JP5270901B2 (en) | Network test apparatus and method | |
EP2696534B1 (en) | Method and device for monitoring quick path interconnect link | |
US10346344B2 (en) | Method, client device and data forwarding device for transmitting data through serial port | |
TW201929489A (en) | High-speed network apparatus and self-testing method thereof | |
CN103546344B (en) | A kind of wireless routing Performance Test System and method | |
CN107547304A (en) | Network card testing method, device and machinable medium | |
US11748218B2 (en) | Methods, electronic devices, storage systems, and computer program products for error detection | |
US9077448B2 (en) | Read optical power link service for link health diagnostics | |
CN102104502A (en) | Ethernet equipment performance test platform based on Linux system | |
CN108111367A (en) | Performance test methods and device | |
CN102651702A (en) | Ethernet performance measurement method and equipment | |
CN115174432A (en) | RDMA (remote direct memory Access) network state monitoring method, device, equipment and readable storage medium | |
CN107729209A (en) | For the information monitoring method of server, device, equipment and storage medium | |
CN106372026A (en) | Link detection method and receiving device | |
CN109547274A (en) | A kind of enclosure board switching method, device and first network equipment | |
CN109962824A (en) | High-speed network appliance and its self test method | |
CN112769642A (en) | Method for testing PCIE link of server and related equipment | |
CN112148537B (en) | Bus monitoring device and method, storage medium and electronic device | |
CN105897494A (en) | Testing method of network transmission rate | |
US9913009B2 (en) | Transmitter, receiver, transmission method, and receiving method | |
CN102684942A (en) | Method for testing performance of network equipment | |
KR101435513B1 (en) | An apparatus and method for analyzing test data | |
TWI559704B (en) | Test method of network transmission rate |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190702 |