CN106487613A - A kind of bandwidth test methods, devices and systems - Google Patents
A kind of bandwidth test methods, devices and systems Download PDFInfo
- Publication number
- CN106487613A CN106487613A CN201611010148.9A CN201611010148A CN106487613A CN 106487613 A CN106487613 A CN 106487613A CN 201611010148 A CN201611010148 A CN 201611010148A CN 106487613 A CN106487613 A CN 106487613A
- Authority
- CN
- China
- Prior art keywords
- test
- receiving device
- transmission equipment
- bandwidth
- count value
- 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/0876—Network utilisation, e.g. volume of load or congestion level
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of bandwidth test methods, devices and systems, before bandwidth test is started, transmission equipment on special line sends the test information for carrying bandwidth test start time and finish time to receiving device, allow when receiving device is clear and definite starts test packet is counted, when terminate to count.After the transmission for completing test packet, transmission equipment is it is also possible that the test packet sum for sending issues receiving device, the reception sum for alloing receiving device to combine statistics calculates packet loss, and transmission equipment is supplied to, transmission equipment can complete bandwidth test according to the concrete numerical value of packet loss.It can be seen that this bandwidth test mode is independent of the channel width from receiving device to the equipment of transmission, effectively bandwidth test can be carried out for one-way channel in dissymmetric network.And, transmission equipment can voluntarily adjust set rate according to packet loss, it is achieved that the automation of bandwidth test, improve the efficiency of bandwidth test.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of bandwidth test methods, devices and systems.
Background technology
For some network demands, Virtual network operator can provide private leased circuit service for client, will be with fixed-bandwidth
Channel allocation exclusively enjoys the fixed-bandwidth to client by the user.In order to determine, the relevant bandwidth parameters of distribution special line are
The no demand that can meet client, or in order to avoid special line actual bandwidth with claim bandwidth difference and occur away from excessive situation, need
Special line is tested, to determine the actual bandwidth scope of special line.
Traditional approach mainly using the offer under RFC2544/Y.1564 (being communication standard protocol) method of testing come
The actual bandwidth scope of test special line.For two equipment on a special line, one used as the equipment of transmission, a conduct reflection
Equipment.Transmission equipment can determine the speed for sending message to reflecting device according to the bandwidth range claimed by this special line,
And the message for receiving can be reflected back transmission equipment by reflecting device, equipment is sent according to the quantity for sending message and receive report
Text quantity calculate packet loss, if packet loss meet pre-conditioned, then send message speed corresponding to bandwidth be
The bandwidth that the special line can be supported.
But this mode is but not applied in dissymmetric network relatively conventional at present, so-called dissymmetric network is referred to
The inconsistent situation of the upstream and downstream bandwidth of special line, the band of the up channel (from the equipment of transmission to reflecting device) of such as special line are a width of
10M, a width of 5M of band of the down channel (from reflecting device to the equipment of transmission) of special line, initiating equipment send message with 10M speed
Detected, although message all arrives at reflecting device, the band of up channel (a width of 10M) but set to transmission in reflecting device
Standby reflect these messages after, as the bandwidth of down channel only has 5M, it is impossible to support the message transmissions of so big speed, cause to have
50% message is being lost in the path of the equipment of transmission from reflecting device, thus obtained packet loss data exception, it is clear that no
The foundation of bandwidth measurement can be used for.It can be seen that, for this dissymmetric network, traditional approach cannot determine the packet loss of one-way channel
Rate, so as to can not accurately measure the relevant parameter of the one-way channel bandwidth of special line.
Content of the invention
In order to above-mentioned technical problem is solved, a kind of bandwidth test methods, devices and systems are embodiments provided, can
Accurately to measure the relevant parameter of the one-way channel bandwidth of special line.
In a first aspect, a kind of bandwidth test method is embodiments provided, and two equipment being applied on special line, institute
Stating two equipment includes transmission equipment and receiving device, and methods described includes:
The transmission equipment sends test information by the special line to the receiving device, and the test information includes band
The start time of wide test and finish time;
The transmission equipment sends test packet according to set rate to the receiving device from the start time
Till the finish time;
The transmission equipment sends the first count value to the receiving device, and first count value is the transmission equipment
The test packet sum sent to the receiving device from the start time to finish time;
The transmission equipment obtains the packet loss of the bandwidth test from the receiving device.
In the first possible implementation of first aspect, in the transmission equipment from the start time,
Before test packet being sent according to set rate till the finish time to the receiving device, also include:
The transmission equipment sends notice message to the receiving device, and the notice message includes the test packet
Type;
The transmission equipment receives the confirmation message that the receiving device is returned, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
In conjunction with the first possible implementation of first aspect or first aspect, in second possible implementation
In, after the packet loss that the transmission equipment obtains the bandwidth test from the receiving device, also include:
If the packet loss does not meet threshold value, the transmission equipment adjusts the pre- constant speed according to the size of the packet loss
Rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
Second aspect, embodiments provides a kind of transmission equipment, and the transmission equipment and receiving device are application
Two equipment on special line, the transmission equipment include transmitters and receivers:
The transmitter, for sending test information, the test packet by the special line to the receiving device
Include start time and the finish time of bandwidth test;
The transmitter was additionally operable to from the start time, sent test according to set rate to the receiving device
Message is till the finish time;
The transmitter is additionally operable to send the first count value to the receiving device, and first count value is the transmission
The test packet sum that equipment is sent from the start time to finish time to the receiving device;
The receiver, for obtaining the packet loss of the bandwidth test from the receiving device.
In the first possible implementation of second aspect, the transmitter is additionally operable to send to the receiving device
Notice message, the notice message include the type of the test packet;
The receiver is additionally operable to receive the confirmation message of receiving device return, and the confirmation message is used for identifying institute
State receiving device and complete the configuration for the test packet.
In conjunction with the first possible implementation of second aspect or second aspect, in second possible implementation
In, the transmission equipment also includes processor:
If the packet loss does not meet threshold value, the processor, described pre- for being adjusted according to the size of the packet loss
Constant speed rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
The third aspect, embodiments provides a kind of bandwidth test method, two equipment being applied on special line, institute
Stating two equipment includes transmission equipment and receiving device, and methods described includes:
The receiving device obtains the test information that the transmission equipment sends, and the test information includes bandwidth test
Start time and finish time;
The receiving device carried out counting to get the second count value from the start time, and second count value is described
The test packet sum that receiving device is received from the start time to the finish time from the transmission equipment;
The receiving device obtains the first count value that the transmission equipment sends, and first count value is the transmission
The test packet sum that equipment is sent from the start time to finish time to the receiving device;
The receiving device calculates the packet loss of the bandwidth test according to the first count value and second count value;
The receiving device sends the packet loss to the transmission equipment.
In the first possible implementation of the third aspect, counted from the start time in the receiving device
Before number obtains the second count value, also include:
The receiving device obtains the notice message that the transmission equipment sends, and the notice message includes the test report
The type of text;
The receiving device is configured according to the type of the test packet, by realize recognizing the test packet and in terms of
Several functions;
The receiving device is returned to the transmission equipment and confirms message, and the confirmation message is set for identifying described reception
The standby configuration for being completed for the test packet.
Fourth aspect, embodiments provides a kind of receiving device, and the receiving device and transmission equipment are application
Two equipment on special line, the receiving device include receiver, transmitter and processor:
The receiver, for obtaining the test information of transmission equipment transmission, the test information includes that bandwidth is surveyed
The start time of examination and finish time;
The receiver is additionally operable to carry out counting to get the second count value from the start time, and second count value is
The test packet sum that the receiving device is received from the start time to the finish time from the transmission equipment;
The receiver is additionally operable to obtain the first count value of transmission equipment transmission, and first count value is described
The test packet sum that transmission equipment is sent from the start time to finish time to the receiving device;
The processor, for calculating the packet loss of the bandwidth test according to the first count value and second count value
Rate;
The transmitter, for sending the packet loss to the transmission equipment.
In the first possible implementation of fourth aspect, the receiver is additionally operable to obtain the transmission equipment to be sent out
The notice message for sending, the notice message include the type of the test packet;
The processor is additionally operable to be configured according to the type of the test packet, to realize recognizing the test packet
And the function of counting;
The transmitter is additionally operable to return to the transmission equipment and confirms message, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
5th aspect, embodiments provides a kind of bandwidth test system, and the bandwidth test system includes to send
Equipment and receiving device, the transmission equipment and receiving device are two equipment on special line;
The transmission equipment, for sending test information, the test information by the special line to the receiving device
Start time and finish time including bandwidth test;From the start time, set to described reception according to set rate
Preparation sending test packet is till the finish time;The first count value is sent to the receiving device, described first counts
It is worth the test packet sum sent to the receiving device for the transmission equipment from the start time to finish time;From institute
State the packet loss that receiving device obtains the bandwidth test;
The receiving device, for obtaining the test information of transmission equipment transmission;Counted from the start time
Number obtains the second count value, and second count value is for the receiving device from the start time to the finish time from institute
State the test packet sum that transmission equipment is received;Obtain the first count value of transmission equipment transmission;Count according to first
Value and second count value calculate the packet loss of the bandwidth test;The packet loss is sent to the transmission equipment.
6th aspect, embodiments provides a kind of bandwidth test method, two equipment being applied on special line, institute
Stating two equipment includes transmission equipment and receiving device, and methods described includes:
The transmission equipment sends test information by the special line to the receiving device, and the test information includes band
The start time of wide test and finish time;
The transmission equipment sends test packet according to set rate to the receiving device from the start time
Till the finish time;
The transmission equipment obtains the first count value, and first count value is the transmission equipment from the start time
To the test packet sum that finish time is sent to the receiving device;
The transmission equipment obtains the second count value that the receiving device is returned, and second count value is the reception
The test packet sum that equipment is received from the start time to the finish time from the transmission equipment;
The transmission equipment calculates the packet loss of the bandwidth test according to first count value and the second count value.
In the first possible implementation of the 6th aspect, in the transmission equipment from the start time,
Before test packet being sent according to set rate till the finish time to the receiving device, also include:
The transmission equipment sends notice message to the receiving device, and the notice message includes the test packet
Type;
The transmission equipment receives the confirmation message that the receiving device is returned, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
In conjunction with the 6th aspect or the first possible implementation of the 6th aspect, in second possible implementation
In, the transmission equipment according to first count value and the second count value calculate the bandwidth test packet loss it
Afterwards, also include:
If the packet loss does not meet threshold value, the transmission equipment adjusts the pre- constant speed according to the size of the packet loss
Rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
7th aspect, embodiments provides a kind of transmission equipment, and the transmission equipment and receiving device are application
Two equipment on special line, the transmission equipment include transmitter, receiver and processor:
The transmitter, for sending test information, the test packet by the special line to the receiving device
Include start time and the finish time of bandwidth test;
The transmitter was additionally operable to from the start time, sent test according to set rate to the receiving device
Message is till the finish time;
The processor, for obtaining the first count value, first count value is the transmission equipment from the beginning of described
The test packet sum that moment to finish time is sent to the receiving device;
The receiver, for obtaining the second count value of receiving device return, second count value is described
The test packet sum that receiving device is received from the start time to the finish time from the transmission equipment;
The processor is additionally operable to calculate losing for the bandwidth test according to first count value and the second count value
Bag rate.
In the first possible implementation of the 7th aspect, the transmitter is additionally operable to send to the receiving device
Notice message, the notice message include the type of the test packet;
The receiver is additionally operable to receive the confirmation message of receiving device return, and the confirmation message is used for identifying institute
State receiving device and complete the configuration for the test packet.
In conjunction with the 7th aspect or the first possible implementation of the 7th aspect, in second possible implementation
In, if the packet loss does not meet threshold value, the processor is additionally operable to adjust the pre- constant speed according to the size of the packet loss
Rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
Eighth aspect, embodiments provides a kind of bandwidth test method, two equipment being applied on special line, institute
Stating two equipment includes transmission equipment and receiving device, and methods described includes:
The receiving device obtains the test information that the transmission equipment sends, and the test information includes bandwidth test
Start time and finish time;
The receiving device carried out counting to get the second count value from the start time, and second count value is described
The test packet sum that receiving device is received from the start time to the finish time from the transmission equipment;
The receiving device returns second count value to the transmission equipment.
In the first possible implementation of eighth aspect, counted from the start time in the receiving device
Before number obtains the second count value, also include:
The receiving device obtains the notice message that the transmission equipment sends, and the notice message includes the test report
The type of text;
The receiving device is configured according to the type of the test packet, by realize recognizing the test packet and in terms of
Several functions;
The receiving device is returned to the transmission equipment and confirms message, and the confirmation message is set for identifying described reception
The standby configuration for being completed for the test packet.
9th aspect, embodiments provides a kind of receiving device, and the receiving device and transmission equipment are application
Two equipment on special line, the receiving device include receiver, transmitter and processor:
The receiver, for obtaining the test information of transmission equipment transmission, the test information includes that bandwidth is surveyed
The start time of examination and finish time;
The processor, for carrying out counting to get the second count value from the start time, second count value is
The test packet sum that the receiving device is received from the start time to the finish time from the transmission equipment;
The transmitter, for returning second count value to the transmission equipment.
In the first possible implementation of the 9th aspect, the receiver is additionally operable to obtain the transmission equipment to be sent out
The notice message for sending, the notice message include the type of the test packet;
The processor is additionally operable to be configured according to the type of the test packet, to realize recognizing the test packet
And the function of counting;
The transmitter is additionally operable to return to the transmission equipment and confirms message, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
Tenth aspect, embodiments provides a kind of bandwidth test system, and the bandwidth test system includes to send
Equipment and receiving device, the transmission equipment and receiving device are two equipment on special line;
The transmission equipment, for sending test information, the test information by the special line to the receiving device
Start time and finish time including bandwidth test;From the start time, set to described reception according to set rate
Preparation sending test packet is till the finish time;The first count value is obtained, first count value is set for described transmission
The standby test packet sum sent to the receiving device from the start time to finish time;Obtain the receiving device to return
The second count value that returns, second count value are the receiving device from the start time to the finish time from described
The test packet sum that transmission equipment is received;The bandwidth test is calculated according to first count value and the second count value
Packet loss;
The receiving device, for obtaining the test information of transmission equipment transmission;Counted from the start time
Number obtains the second count value;Second count value is returned to the transmission equipment.
By technique scheme as can be seen that before bandwidth test, the transmission in two equipment on special line sets
The standby test information for carrying bandwidth test start time and finish time to receiving device transmission so that receiving device can be bright
Test packet when is begun for really to be counted, when terminate to count.After the transmission for completing test packet, equipment is sent also
The test packet sum for being sent can be issued receiving device so that receiving device can be received test report in conjunction with statistics
Literary sum calculates packet loss, and is supplied to transmission equipment, and transmission equipment can complete bandwidth according to the concrete numerical value of packet loss
Test.It can be seen that this bandwidth test mode is independent of the channel width from receiving device to the equipment of transmission, effectively can be directed to
In dissymmetric network, one-way channel carries out bandwidth test.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, so as to when needing to retest, the equipment of transmission can foundation
Packet loss voluntarily adjusts the set rate for sending test packet in bandwidth test, it is achieved that the automation of bandwidth test, improves
The efficiency of bandwidth test.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for technology description is had to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the system schematic of bandwidth test provided in an embodiment of the present invention;
Fig. 2 is a kind of signaling process figure of bandwidth test method provided in an embodiment of the present invention;
Fig. 3 is a kind of signaling process figure of the collocation method of test packet provided in an embodiment of the present invention;
Fig. 4 is a kind of signaling process figure of bandwidth test method provided in an embodiment of the present invention;
Fig. 5 is a kind of signaling process figure of the collocation method of test packet provided in an embodiment of the present invention;
Fig. 6 is a kind of hardware architecture diagram of transmission equipment provided in an embodiment of the present invention;
Fig. 7 is a kind of hardware architecture diagram of receiving device provided in an embodiment of the present invention;
Fig. 8 is a kind of hardware architecture diagram of transmission equipment provided in an embodiment of the present invention;
Fig. 9 is a kind of hardware architecture diagram of receiving device provided in an embodiment of the present invention;
Figure 10 is a kind of system construction drawing of bandwidth test system provided in an embodiment of the present invention;
Figure 11 is a kind of system construction drawing of bandwidth test system provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Whole description, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Virtual network operator can provide private leased circuit service for client, will be with the network channel of fixed-bandwidth (claiming bandwidth)
Distribute to client, but whether the bandwidth (actual bandwidth) that can actually use of the special line of distribution can reach which and bandwidth is claimed,
Need to test the bandwidth of special line, to determine the actual bandwidth scope of special line.
Traditional approach using the offer under RFC2544/Y.1564 (being communication standard protocol) method of testing testing
The actual bandwidth scope of special line, by two equipment on a special line, using one as the equipment of transmission, another is used as reflection
Equipment, transmission equipment can be dependent on the quantity of the message sent to reflecting device, and the report for receiving reflecting device return
The quantity of text calculates packet loss, and the concrete numerical value according to packet loss completes bandwidth test.
It can be seen that, current bandwidth test mode is in one-way channel (the such as up channel or descending letter for testing a special line
Road) bandwidth when, need to use the bandwidth of two one-way channels, if it is special to the channel direction of reflecting device for example to send equipment
During the up channel of line, then reflecting device needs the bandwidth of the down channel for using special line when reflecting message to transmission equipment.
But for dissymmetric network, the up channel of special line and the bandwidth value of down channel and differ, if sending out in the method for testing
The corresponding first rate of the bandwidth of sending equipment to be dependent on up channel sends message, but the bandwidth of down channel is less than up letter
During road bandwidth, it is known that the corresponding first rate of the bandwidth of up channel second speed corresponding with the bandwidth of down channel is different,
Although reflecting device needs to return, to transmission equipment, the message that receives by the first rate, but the bandwidth of down channel institute
Supported is the message transmissions under the second speed, then reflecting device on the downlink channel cannot be smooth by first rate possibly
The return of message is realized, although cause reflecting device to be successfully received message and reflected message to transmission equipment, by
In the restriction of downstream channel bandwidth, reflecting device can only abandon the message being successfully received in a large number, by segment message with the second speed
Rate is reflected, and can only calculate abnormal packet loss so as to send equipment, it is clear that cannot function as to the special line up channel
The foundation of bandwidth measurement.It can be seen that, for this dissymmetric network, traditional approach determines that the packet loss of one-way channel is very possible
It is incorrect, so as to can not accurately measure the relevant parameter of the one-way channel bandwidth of special line.
For this purpose, a kind of method and apparatus of bandwidth test is embodiments provided, before bandwidth test is started, specially
The transmission equipment in two equipment on line sends the survey for carrying bandwidth test start time and finish time to receiving device
When examination information so that when receiving device clear and definite can begin for test packet is counted, terminate to count, and completes to survey
After the transmission of examination message, transmission equipment is it is also possible that the test packet sum for sending issues receiving device so that receiving device
Packet loss can be calculated in conjunction with the received test packet sum of statistics, and transmission equipment is supplied to, the equipment of transmission can root
Bandwidth test is completed according to the concrete numerical value of packet loss.It can be seen that this bandwidth test mode is independent of from receiving device to transmission equipment
Channel width, effectively can carry out bandwidth test for one-way channel in dissymmetric network.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, such that it is able to when needing to retest, send equipment permissible
The transmission rate of bandwidth test is voluntarily adjusted according to packet loss, it is achieved that the automation of bandwidth test, improve bandwidth test
Efficiency.
The embodiment of the present invention is mainly used in the equipment on special line, as shown in figure 1, for two equipment being applied on special line
Schematic diagram, respectively send equipment and receiving device, for carrying out bandwidth test to special line, it is generally the case that implement this
The mode provided by inventive embodiments can test the bandwidth of an one-way channel in special line, and one-way channel described here is permissible
For the up channel in special line or down channel.
The transmission equipment proposed by the embodiment of the present invention and receiving device are the equipment on special line, wherein, send equipment
Can be that receiving device can be reported for receiving test in bandwidth test for sending the equipment of test packet in bandwidth test
The equipment of text.For example, the device A on a special line and equipment B, when need test special line on from device A to the unidirectional letter of equipment B
During the bandwidth in road, from device A to equipment B send test packet, now device A i.e. equivalent to send equipment, equipment B i.e. equivalent to
Receiving device;When the bandwidth for needing to test the one-way channel on special line from equipment B to device A, sent from equipment B to device A
Test packet, now, i.e. equivalent to the equipment of transmission, device A is i.e. equivalent to receiving device for equipment B.Transmission equipment and receiving device master
To be the network equipment of Virtual network operator side, can be edge device (the such as Virtual network operator side of Virtual network operator business
Boundary's router).Transmission equipment and receiving device can be specifically the equipment such as switch, router and optical module.
The method and apparatus of bandwidth test provided in an embodiment of the present invention, can apply in business Acceptance Test (Service
Acceptance Test, SAT) stage, for example, when Virtual network operator opens enterprise's special line according to enterprise demand, in order to determine
Whether the bandwidth of distribution special line can meet the demand of enterprise, can be provided using the embodiment of the present invention when enterprise's special line is opened
The method of bandwidth test the bandwidth of the special line is tested.The method of bandwidth test provided in an embodiment of the present invention and dress
Put, it is also possible to which the bandwidth of the special line to coming into operation is tested, for example, client is mounted with down channel for the special of 10M bandwidth
Line, the speed that sensory data is downloaded in use do not reach the speed that 10M bandwidth should reach, and Virtual network operator can lead to
The method for crossing bandwidth test provided in an embodiment of the present invention, the downstream channel bandwidth for testing the special line are specially how many, if reach
To 10M.
Embodiment one
Next, the method that the bandwidth test provided by the embodiment of the present invention is discussed in detail.Fig. 2 is carried for the embodiment of the present invention
For a kind of bandwidth test method flow chart, two equipment being applied on special line, described two equipment include that transmission sets
Standby and receiving device, the method include:
S201:The transmission equipment sends test information, the test information by the special line to the receiving device
Start time and finish time including bandwidth test.
Special line can be the network channel with fixed-bandwidth that Virtual network operator distributes to client, for example, asymmetric
Under network, client needs down channel for 10M bandwidth, and up channel is the special line of 5M bandwidth, and Virtual network operator can be according to visitor
The demand at family distributes the network channel with corresponding bandwidth for client, and the network channel is what Virtual network operator was provided for client
Special line, the bandwidth that is distributed are used alone by the client, and client can realize the transmission of data by the special line.Or, should
Special line can also be the up-downgoing channel width identical special line under symmetrical network, and such as up channel and down channel are
The special line of 10M bandwidth.In implementing, Virtual network operator can be dependent on service-level agreement (Service-Level
Agreement, SLA) to client, special line is set.
, in the quantity of statistical test message, the quantity counted under the unified time period is just for transmission equipment and receiving device
With comparativity, so as to ensure to carry out test packet quantity under the accuracy of the packet loss for calculating, and unified time period
Statistics, it is ensured that the real-time of transmission, the packet loss for thus calculating can more accurately reflect the actual biography of special line
Defeated speed.So, before bandwidth test is carried out, sending equipment and being sent to receiving device by special line includes bandwidth test
Start time and finish time test information.
Start time can be used to indicate that transmission equipment starts to send the moment of test packet, finish time to receiving device
Can be used to indicate that transmission equipment stops sending the moment of test packet to receiving device.
S202:The receiving device obtains the test information that the transmission equipment sends.
The start time for carrying bandwidth test sent by reception transmission equipment and the test information of finish time,
Receiving device according to bandwidth test start time clearly from when starting to count test packet, according to bandwidth test
When finish time is clearly from terminating the counting to test packet.For example, generally can carry transmission to set in test packet
Preparation gives the timestamp during test packet, and receiving device can count the timestamp for receiving more than or equal to the start time
Test packet quantity, when test packet timestamp beyond the finish time when complete the counting to test packet.
S203:The transmission equipment was sent to the receiving device according to set rate and surveys from the start time
Examination message is till the finish time.
The type of test packet described here can include the species of message, for example, UDP (User
Datagram Protocol, UDP) type is UDP message, transmission control protocol (Transmission Control
Protocol, TCP) type is TCP message etc..Feature or feature that the type of test packet can also have including message,
Destination address, source address as message etc., can specifically include specific source MAC and target MAC (Media Access Control) address, or specific
Source IP address and purpose IP address, or source port number and the destination slogan of TCP/UDP message, or particular mac address,
Combination of the port numbers of IP address and TCP/UDP message etc..When the message with this feature or feature can both be identified the survey
Examination message.
Test packet could be for testing the message used by special line bandwidth, and the length of test packet can be dependent on reality
Border demand is set, and the embodiment of the present invention is not limited to which.Transmission equipment and receiving device can be before bandwidth tests
The type of test packet is specified, such transmission equipment can clearly send which type of message as test packet, and reception sets
Standby can identify that received which type of message is that receiving device can be known for the message of bandwidth is tested, in other words
It is the message for needing statistical magnitude not go out which type of message.
In embodiments of the present invention, bandwidth can be used to indicate that the data transmission capabilities that special line can be provided by, transfer rate
Data volume of the special line in transmitted per unit time is can be used to indicate that, the unit of bandwidth can be million (M), it is generally the case that 1M
Bandwidth, its corresponding speed can be 128KB/s.Virtual network operator for client distribute special line when, according to the list of the special line
Claim that bandwidth can calculate the corresponding transfer rate of the one-way channel to channel.For example, Virtual network operator distributes for client
The bandwidth of an one-way channel of special line claim and can reach 10M, it is generally the case that the bandwidth of 10M, its corresponding transmission speed
Rate can be 1280KB/s.
Set rate refers to send the transmission rate adopted by test packet, the band that can be tested according to needed for bandwidth test
Width is calculated corresponding speed, and it is 10M for example to need the bandwidth that tests, then the set rate determined according to the bandwidth can
Think 1280KB/s.The bandwidth of required test can be obtained according to the bandwidth determination claimed by the one-way channel of special line, it is also possible to
The bandwidth determination that is tested during according to last bandwidth test is obtained.
The present invention does not limit the concrete mode of bandwidth test, for example, carry out bandwidth survey in an one-way channel to special line
During examination, the bandwidth that can be claimed first by this one-way channel is determined according to the bandwidth pre- as the bandwidth of required test
Constant speed rate is tested, if packet loss is higher, the bandwidth of test needed for being adjusted by packet loss, and for example turn down certain
Degree, the bandwidth after then proceeding to according to adjustment carry out bandwidth test, if packet loss relatively low even without, it is also possible to by losing
Bag rate is for example heightened to a certain degree come the bandwidth of test needed for adjusting, and the bandwidth after then proceeding to adjustment proceeds bandwidth
Test.By the bandwidth of test needed for constantly adjustment, the actual bandwidth higher limit of this one-way channel can be finally given.This
Bandwidth test proposed in inventive embodiments can be understood as being arbitrarily once directed in above-mentioned complete bandwidth test process to be had
The bandwidth test that body bandwidth is carried out.
S204:The receiving device carried out counting to get the second count value, second count value from the start time
For the test packet sum that the receiving device is received from the start time to the finish time from the transmission equipment.
Transmission equipment starts to send test packet to receiving device from the beginning of time, due to receiving device in advance clearly
The start time of bandwidth test is how many, therefore the number of the test packet that receiving device can be in start time to receiving enters
Row statistics, is carved into when reaching when finished, and transmission equipment stops sending test packet to receiving device, and now receiving device also stops
Count, be carved in section this period finish time from the outset, the number of the test packet of receiving device statistics is from transmission
The sum of the test packet that equipment is received, can be using the sum as the second count value.
It should be noted that S203 and S204 have no the restriction on sequencing, two steps can be carried out simultaneously, from opening
Moment beginning starts transmission equipment and sends test packet to receiving device, and receiving device starts to count the test packet for receiving.
S205:The transmission equipment sends the first count value to the receiving device, and first count value is described
The test packet sum for sending equipment to send from the start time to finish time to the receiving device.
Transmission equipment starts to send test packet to receiving device from the beginning of time, stops sending test report to finish time
Text, the sum for being carved into the test packet that transmission equipment is sent to receiving device in the time period of finish time from the outset can be made
For the first count value.
The determination mode of the first count value can have multiple, can by send device statistics draw the first count value, for example,
Send device statistics to be carved in the time period of finish time from the outset, the number of the test packet sent to receiving device, system
The number that counts out is the first count value.First count value can also be calculated by transmission equipment, and generally, transmission sets
For when under set rate to receiving device transmission test packet, the number of the test packet of transmission equipment transmission per second can be
Changeless, the time for being carved into finish time experience from the outset is dependent on, transmission equipment can be calculated from the beginning of time
The sum of the test packet sent to receiving device to finish time, for example, sends that equipment is per second can send to receiving device
Test packet number be 10, that is, send equipment send test packet number speed be 10/second, be carved into knot from the outset
The time of bundle moment experience is 100 seconds, then send the test report that equipment is carved into finish time from the outset and sends to receiving device
Sum, i.e. first count value of text is 10*100=1000.The embodiment of the present invention is not done to the determination mode of the first count value
Limit.
S206:The receiving device obtains the first count value that the transmission equipment sends.
In embodiments of the present invention, can be dependent on the first count value and the second count value carries out the calculating of packet loss, by
It is to be drawn by different device statisticses respectively in the first count value and the second count value, when the calculating for needing to carry out packet loss,
Need the two count values to be got by same equipment, then lost according to the first count value and the calculating of the second count value by the equipment
Bag rate.In the present embodiment, the first count value can be sent to receiving device by transmission equipment, carry out packet loss by receiving device
Calculating.
Transmission equipment sends the sending method of the first count value to receiving device, and the embodiment of the present invention is not limited, permissible
Be finish time reach after, transmission equipment directly by the first count value that determines be sent to receiving device, or by
The message for the first count value of acquisition request that receiving device is sent to the equipment of transmission, sends equipment upon receiving the message
First count value is sent to receiving device.
S207:The receiving device calculates the packet loss of the bandwidth test according to the first count value and second count value
Rate.
Packet loss can be used to indicate that the quantity of the test packet that loses in bandwidth test is total in the transmission of test packet
Shared ratio in amount.Packet loss can explicitly indicate that the bearing capacity of channel, when packet loss is too high, represents and send test report
The set rate of text, represents at the set rate for sending test packet when packet loss is relatively low beyond the bearing capacity of channel
Among the bearing capacity of channel.In embodiments of the present invention, the transmission total amount of test packet can be transmission equipment to reception
Quantity, i.e. first count value of the test packet that equipment sends.The quantity of the test packet of loss can be sent by the equipment of transmission
The quantity of test packet deduct quantity, i.e. first count value of the test packet that receiving device is received with the second count value
Difference.Packet loss can be represented by the form of decimal or percentage that a kind of specific computational methods can first calculate first
Count value and the difference of the second count value, the difference are counted divided by first and are worth to a numerical value, and the numerical value is packet loss,
The numerical value is multiplied by 100% form that can be converted to percentage.For example, when bandwidth test is carried out, in stipulated time section
Interior, the sum of the test packet that the equipment of transmission is sent to receiving device is 1000, and receiving device receives the transmission of transmission equipment
Test packet sum be 980, then packet loss can be (1000-980)/1000=0.02, packet loss can also be with hundred
Fractional form represents, i.e. 0.02*100%=2%.
S208:The receiving device sends the packet loss to the transmission equipment.
Transmission equipment is the originating end of bandwidth test, and transmission equipment can be dependent on the concrete numerical value of packet loss and judge this
Whether the bandwidth that is tested in bandwidth test can represent the actual bandwidth of special line one-way channel.Therefore, receive in S207 and set
For after calculating packet loss, the packet loss is sent to receiving device by needs.
As receiving device is only that the packet loss for calculating is sent to transmission equipment, can't take from receiving device to
The bandwidth of the one-way channel in this direction of transmission equipment, that is to say, that for dissymmetric network, the transmission process will not be subject to from
Receiving device is to the impact of the speed of the one-way channel in this direction of transmission equipment, therefore can effectively be applied to dissymmetric network
The bandwidth test of middle special line.
S209:The transmission equipment obtains the packet loss of the bandwidth test from the receiving device.
When carrying out bandwidth test to an one-way channel of special line, packet loss sends test with the equipment of transmission to receiving device
Set rate during message is relevant, and in S203, the bandwidth calculation that is tested according to needed for bandwidth test obtains corresponding speed,
The set rate of test packet is sent as the equipment of transmission to receiving device.Transmission equipment sends test report according to the set rate
Wen Shi, if the set rate is within the bearing capacity of the one-way channel, when transmitting test packet under the set rate,
Packet loss or number of dropped packets will not occur in the error range for allowing, i.e., packet loss belongs to normal range (NR);If the set rate surpasses
Gone out the bearing capacity of the one-way channel, then, when test packet is transmitted under the set rate, can produce serious packet loss phenomenon,
I.e. packet loss can exceed normal range (NR).
It follows that when the packet loss for calculating belongs to normal range (NR), then illustrate to be tested in this bandwidth test
Bandwidth is within the actual bandwidth of the one-way channel;When the packet loss for calculating exceedes normal range (NR), then this sub-band is described
The bandwidth that is tested in wide test is beyond the actual bandwidth of the one-way channel.
In embodiments of the present invention, whether normal range (NR) can be belonged to packet loss and is judged by arranging threshold value.Threshold
Value can be default fixed numbers, and threshold value can also be changed, adjust accordingly according to specific demand.For example, to special
The bandwidth of one one-way channel of line is tested, and the threshold value of setting is 0.05, when the packet loss for calculating is 0.10, packet loss
Threshold value, i.e. packet loss are exceeded and have exceeded normal range (NR), then illustrated that the bandwidth that is tested in this bandwidth test cannot represent the list
Actual bandwidth to channel.
When above-mentioned packet loss exceedes normal range (NR), illustrate that the bandwidth that is tested in this bandwidth test cannot table
Show the actual bandwidth of the one-way channel of special line, in order to the higher limit of the actual bandwidth of the one-way channel is determined, the equipment of transmission can
To pass through adjust automatically set rate, bandwidth test is re-started.Specifically, obtain from the receiving device in the transmission equipment
After taking the packet loss of the bandwidth test, also include:
If the packet loss does not meet threshold value, the transmission equipment adjusts the pre- constant speed according to the size of the packet loss
Rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
Packet loss is higher, illustrates that the actual bandwidth of the one-way channel of the bandwidth and special line that is tested in this bandwidth test is inclined
Higher from degree, and set rate is directly proportional to the bandwidth that is tested, it follows that packet loss is higher, illustrates that this bandwidth is surveyed
Set rate actual transfer rate corresponding with the actual bandwidth of the one-way channel of the special line deviation of the transmission test packet in examination
Degree is higher, then, when the adjustment of set rate is carried out, packet loss is higher, and the adjustment amplitude of corresponding set rate is also bigger.
The embodiment of the present invention is not limited to the concrete adjustment mode for adjusting set rate according to the size of packet loss, permissible
It is that the packet loss of bandwidth test and the data of set rate in historical operation are dependent on, counts between packet loss and set rate
Corresponding relation, when needing to re-start bandwidth test, then the corresponding relation can be searched according to the packet loss for calculating,
Adjust the set rate.For example, threshold value is set to 0.02, when packet loss is 0.05, searches packet loss corresponding with set rate
Relation, then set rate can be adjusted to the 80% of former set rate, when packet loss is 0.10, searches packet loss and make a reservation for
The corresponding relation of speed, then set rate can be adjusted to the 70% of former set rate.
By technique scheme as can be seen that before bandwidth test, the transmission in two equipment on special line sets
The standby test information for carrying bandwidth test start time and finish time to receiving device transmission so that receiving device can be bright
Test packet when is begun for really to be counted, when terminate to count.After the transmission for completing test packet, equipment is sent also
The test packet sum for being sent can be issued receiving device so that receiving device can be received test report in conjunction with statistics
Literary sum calculates packet loss, and is supplied to transmission equipment, and transmission equipment can complete bandwidth according to the concrete numerical value of packet loss
Test.It can be seen that this bandwidth test mode is independent of the channel width from receiving device to the equipment of transmission, effectively can be directed to
In dissymmetric network, one-way channel carries out bandwidth test.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, so as to when needing to retest, the equipment of transmission can foundation
Packet loss voluntarily adjusts the set rate for sending test packet in bandwidth test, it is achieved that the automation of bandwidth test, improves
The efficiency of bandwidth test.
In the above-described embodiments, the second count value, namely the test to receiving are counted to get for S204 receiving device
The number of message is counted, and in this process, not only may only test report in the message received by receiving device
Text, it is also possible to receive other types of message, but the sum of receiving device only statistical test message, can't count other
The number of the message of type, namely receiving device need have identify which is the energy of test packet from the message for receiving
Power, and which is counted.
In order that receiving device can identify which message is test packet, can before bandwidth test is carried out,
Transmission equipment and receiving device clearly and set the type of test packet in advance.The embodiment of the present invention also provides a kind of mode
Identification of the receiving device to test packet is realized, can be when bandwidth test is carried out, send to receiving device in the equipment of transmission
Before test packet, the notice message of the type that include test packet is first sent to receiving device, and receiving device can be according to connecing
The notice message for receiving is configured, so as to, in the message for receiving, receiving device can be according to the identification of the information of configuration
Go out test packet.Specifically, before the equipment of transmission sends test packet to receiving device, can increase and send to receiving device
The correlation step of notice message, as shown in figure 3, the step of increasing includes:
S301:The transmission equipment sends notice message to the receiving device, and the notice message includes the test
The type of message.
S302:The receiving device obtains the notice message that the transmission equipment sends.
Illustrate, the type of test packet described here can include the species of message, for example, UDP message, TCP
Message etc., feature or feature that the type of test packet can also have including message, the such as destination address of message, source address
Etc., can specifically include specific source MAC and target MAC (Media Access Control) address, or specific source IP address and purpose IP address, or
The source port number of person's TCP/UDP message and destination slogan, or particular mac address, the end of IP address and TCP/UDP message
Combination of slogan etc..When the message with this feature or feature can both be identified the test packet.
The notice message for carrying the type of test packet is sent to receiving device by transmission equipment, and receiving device can be according to
According in the type of the test packet, configured, during in order to subsequently received message, can be identified from the message for receiving
Test packet.
S303:The receiving device is configured according to the type of the test packet, to realize recognizing the test report
Text the function of counting.
When receiving device is configured according to the type of test packet, can be configure corresponding with the type of test packet
Message characteristic, in subsequent operation, after receiving device receives message, just can according to configuration message characteristic to receive
To message be identified, if the message characteristic of the message for receiving with configuration message characteristic differ, the message is described
It is not test packet, then receiving device is not counted;If the message characteristic of the message for receiving and the message characteristic phase for configuring
With, then illustrating that the message is test packet, then receiving device is counted, and records the number of test packet.
When receiving device is configured according to the type of test packet, it is also possible to by arranging access control list
(Access Control List, ACL), to realize the identification to test packet.
S304:The receiving device is returned to the transmission equipment and confirms message, and the confirmation message is described for identifying
Receiving device has completed the configuration for the test packet.
S305:The transmission equipment receives the confirmation message that the receiving device is returned.
Confirm that message can be used for identifying receiving device and configuration for test packet has been completed, having carried out carries out bandwidth
The preparation of test.After the configuration that receiving device completes to test packet, can send to the equipment of transmission and confirm message.
The embodiment of the present invention sends to receiving device and confirms that the mode of message is not limited.Receiving device can complete right
After the configuration of test packet, directly return to transmission equipment and confirm message, or receiving asking for transmission equipment transmission
After seeking the message of confirmation, if receiving device has completed the configuration to test packet, return to the equipment of transmission and confirm message.
After transmission equipment receives the confirmation message of receiving device return, just it is known that receiving device has been completed survey
The configuration of examination message, then can execute subsequent operation.
By increasing aforesaid operations, the notice that transmission equipment sends, to receiving device, the type for carrying test packet disappears
Breath, receiving device can be configured automatically according to the type of test packet, realize the identification to test packet, so as to without the need for
Before bandwidth test, the type for test packet in transmission equipment and receiving device is arranged manually, is lifted further
The automaticity of bandwidth test, improves the efficiency of bandwidth test.
Embodiment two
Next, the method that the bandwidth test provided by the embodiment of the present invention is discussed in detail.Fig. 4 is carried for the embodiment of the present invention
For a kind of bandwidth test method flow chart, two equipment being applied on special line, described two equipment include that transmission sets
Standby and receiving device, the method include:
S401:The transmission equipment sends test information, the test information by the special line to the receiving device
Start time and finish time including bandwidth test.
Special line can be the network channel with fixed-bandwidth that Virtual network operator distributes to client, for example, asymmetric
Under network, client needs down channel for 10M bandwidth, and up channel is the special line of 5M bandwidth, and Virtual network operator can be according to visitor
The demand at family distributes the network channel with corresponding bandwidth for client, and the network channel is what Virtual network operator was provided for client
Special line, the bandwidth that is distributed are used alone by the client, and client can realize the transmission of data by the special line.Or, should
Special line can also be the up-downgoing channel width identical special line under symmetrical network, and such as up channel and down channel are
The special line of 10M bandwidth.In implementing, Virtual network operator can be dependent on service-level agreement (Service-Level
Agreement, SLA) to client, special line is set.
, in the quantity of statistical test message, the quantity counted under the unified time period is just for transmission equipment and receiving device
With comparativity, so as to ensure to carry out test packet quantity under the accuracy of the packet loss for calculating, and unified time period
Statistics, it is ensured that the real-time of transmission, the packet loss for thus calculating can more accurately reflect the actual biography of special line
Defeated speed.So, before bandwidth test is carried out, sending equipment and being sent to receiving device by special line includes bandwidth test
Start time and finish time test information.
Start time can be used to indicate that transmission equipment starts to send the moment of test packet, finish time to receiving device
Can be used to indicate that transmission equipment stops sending the moment of test packet to receiving device.
S402:The receiving device obtains the test information that the transmission equipment sends.
The start time for carrying bandwidth test sent by reception transmission equipment and the test information of finish time,
Receiving device according to bandwidth test start time clearly from when starting to count test packet, according to bandwidth test
When finish time is clearly from terminating the counting to test packet.For example, generally can carry transmission to set in test packet
Preparation gives the timestamp during test packet, and receiving device can count the timestamp for receiving more than or equal to the start time
Test packet quantity, when test packet timestamp beyond the finish time when complete the counting to test packet.
S403:The transmission equipment was sent to the receiving device according to set rate and surveys from the start time
Examination message is till the finish time.
The type of test packet described here can include the species of message, for example, UDP (User
Datagram Protocol, UDP) type is UDP message, transmission control protocol (Transmission Control
Protocol, TCP) type is TCP message etc..Feature or feature that the type of test packet can also have including message,
Destination address, source address as message etc., can specifically include specific source MAC and target MAC (Media Access Control) address, or specific
Source IP address and purpose IP address, or source port number and the destination slogan of TCP/UDP message, or particular mac address,
Combination of the port numbers of IP address and TCP/UDP message etc..When the message with this feature or feature can both be identified the survey
Examination message.
Test packet could be for testing the message used by special line bandwidth, and the length of test packet can be dependent on reality
Border demand is set, and the embodiment of the present invention is not limited to which.Transmission equipment and receiving device can be before bandwidth tests
The type of test packet is specified, such transmission equipment can clearly send which type of message as test packet, and reception sets
Standby can identify that received which type of message is that receiving device can be known for the message of bandwidth is tested, in other words
It is the message for needing statistical magnitude not go out which type of message.
In embodiments of the present invention, bandwidth can be used to indicate that the data transmission capabilities that special line can be provided by, transfer rate
Data volume of the special line in transmitted per unit time is can be used to indicate that, the unit of bandwidth can be million (M), it is generally the case that 1M
Bandwidth, its corresponding speed can be 128KB/s.Virtual network operator for client distribute special line when, according to the list of the special line
Claim that bandwidth can calculate the corresponding transfer rate of the one-way channel to channel.For example, Virtual network operator distributes for client
The bandwidth of an one-way channel of special line claim and can reach 10M, it is generally the case that the bandwidth of 10M, its corresponding transmission speed
Rate can be 1280KB/s.
Set rate refers to send the transmission rate adopted by test packet, the band that can be tested according to needed for bandwidth test
Width is calculated corresponding speed, and it is 10M for example to need the bandwidth that tests, then the set rate determined according to the bandwidth can
Think 1280KB/s.The bandwidth of required test can be obtained according to the bandwidth determination claimed by the one-way channel of special line, it is also possible to
The bandwidth determination that is tested during according to last bandwidth test is obtained.
The present invention does not limit the concrete mode of bandwidth test, for example, carry out bandwidth survey in an one-way channel to special line
During examination, the bandwidth that can be claimed first by this one-way channel is determined according to the bandwidth pre- as the bandwidth of required test
Constant speed rate is tested, if packet loss is higher, the bandwidth of test needed for being adjusted by packet loss, and for example turn down certain
Degree, the bandwidth after then proceeding to according to adjustment carry out bandwidth test, if packet loss relatively low even without, it is also possible to by losing
Bag rate is for example heightened to a certain degree come the bandwidth of test needed for adjusting, and the bandwidth after then proceeding to adjustment proceeds bandwidth
Test.By the bandwidth of test needed for constantly adjustment, the actual bandwidth higher limit of this one-way channel can be finally given.This
Bandwidth test proposed in inventive embodiments can be understood as being arbitrarily once directed in above-mentioned complete bandwidth test process to be had
The bandwidth test that body bandwidth is carried out.
S404:The receiving device carried out counting to get the second count value, second count value from the start time
For the test packet sum that the receiving device is received from the start time to the finish time from the transmission equipment.
Transmission equipment starts to send test packet to receiving device from the beginning of time, due to receiving device in advance clearly
The start time of bandwidth test is how many, therefore the number of the test packet that receiving device can be in start time to receiving enters
Row statistics, is carved into when reaching when finished, and transmission equipment stops sending test packet to receiving device, and now receiving device also stops
Count, be carved in section this period finish time from the outset, the number of the test packet of receiving device statistics is from transmission
The sum of the test packet that equipment is received, can be using the sum as the second count value.
It should be noted that S403 and S404 have no the restriction on sequencing, two steps can be carried out simultaneously, from opening
Moment beginning starts transmission equipment and sends test packet to receiving device, and receiving device starts to count the test packet for receiving.
S405:The transmission equipment obtains the first count value, and first count value is opened from described for the transmission equipment
The test packet sum that moment to finish time beginning is sent to the receiving device.
Transmission equipment starts to send test packet to receiving device from the beginning of time, stops sending test report to finish time
Text, the sum for being carved into the test packet that transmission equipment is sent to receiving device in the time period of finish time from the outset can be made
For the first count value.
The acquisition modes of the first count value can have multiple, can by send device statistics draw the first count value, for example,
Send device statistics to be carved in the time period of finish time from the outset, the number of the test packet sent to receiving device, system
The number that counts out is the first count value.First count value can also be calculated by transmission equipment, and generally, transmission sets
For when under set rate to receiving device transmission test packet, the number of the test packet of transmission equipment transmission per second can be
Changeless, the time for being carved into finish time experience from the outset is dependent on, transmission equipment can be calculated from the beginning of time
The sum of the test packet sent to receiving device to finish time, for example, sends that equipment is per second can send to receiving device
Test packet number be 10, that is, send equipment send test packet number speed be 10/second, be carved into knot from the outset
The time of bundle moment experience is 100 seconds, then send the test report that equipment is carved into finish time from the outset and sends to receiving device
Sum, i.e. first count value of text is 10*100=1000.The embodiment of the present invention is not done to the determination mode of the first count value
Limit.
S406:The receiving device returns second count value to the transmission equipment.
S407:The transmission equipment obtains the second count value that the receiving device is returned.
In embodiments of the present invention, can be dependent on the first count value and the second count value carries out the calculating of packet loss, by
It is to be drawn by different device statisticses respectively in the first count value and the second count value, when the calculating for needing to carry out packet loss,
Need the two count values to be got by same equipment, then lost according to the first count value and the calculating of the second count value by the equipment
Bag rate.In the present embodiment, the second count value can be returned to transmission equipment by receiving device, carry out packet loss by transmission equipment
Calculating.
Receiving device returns the echo plex mode of the second count value to the equipment of transmission, and the embodiment of the present invention is not limited, permissible
Be finish time reach after, receiving device directly by the second count value for counting to get return to transmission equipment, or
The message for the second count value of acquisition request sent to receiving device from the equipment of transmission, receiving device are receiving the message
Afterwards second count value is returned to transmission equipment.
As receiving device is only will to count to get the second count value transmission equipment is returned to, can't take from reception and set
The bandwidth of the standby one-way channel to this direction of transmission equipment, that is to say, that for dissymmetric network, the transmission process will not be received
The impact from receiving device to the speed of the one-way channel for sending this direction of equipment is arrived, therefore effectively can be applied to asymmetric
The bandwidth test of special line in network.
S408:The transmission equipment calculates losing for the bandwidth test according to first count value and the second count value
Bag rate.
Transmission equipment is the originating end of bandwidth test, and transmission equipment can be dependent on the concrete numerical value of packet loss and judge this
Whether the bandwidth that is tested in bandwidth test can represent the actual bandwidth of special line one-way channel.Packet loss can be used to indicate that
The shared ratio in the transmission total amount of test packet of the quantity of the test packet that loses in bandwidth test.Packet loss can be clear and definite
Represent the bearing capacity of channel, when packet loss is too high, represent the carrying for the set rate of test packet being sent beyond channel
Ability, when packet loss is relatively low, represents the set rate for sending test packet among the bearing capacity of channel.In the present invention
In embodiment, the transmission total amount of test packet can be the quantity of the test packet that transmission equipment is sent to receiving device, i.e.,
One count value.The quantity of the test packet that the quantity of the test packet of loss can be sent by transmission equipment deducts receiving device and connects
The quantity of the test packet for receiving, i.e. the first count value and the difference of the second count value.Packet loss can be by decimal or percentage
Several forms represent that a kind of specific computational methods can be the difference for first calculating the first count value and the second count value, should
Difference is counted divided by first and is worth to a numerical value, and the numerical value is packet loss, and the numerical value is multiplied by 100% can be converted to
The form of percentage.For example, when bandwidth test is carried out, in stipulated time section, the survey that the equipment of transmission is sent to receiving device
The sum of examination message is 1000, and it is 980 that receiving device receives the sum of the test packet of transmission equipment transmission, then packet loss
Rate can be (1000-980)/1000=0.02, and packet loss can also be represented with percents, i.e. 0.02*100%=2%.
When an one-way channel to special line carries out bandwidth test, packet loss is sent to receiving device with the equipment of transmission and surveys
Set rate during examination message is relevant, and in S403, the bandwidth calculation that is tested according to needed for bandwidth test obtains corresponding speed
Rate, sends the set rate of test packet as the equipment of transmission to receiving device.Transmission equipment sends according to the set rate and surveys
During examination message, if the set rate is within the bearing capacity of the one-way channel, transmission test report under the set rate
Wen Shi, will not occur packet loss or number of dropped packets in the error range for allowing, i.e., packet loss belongs to normal range (NR);If the pre- constant speed
Rate can produce serious packet loss beyond the bearing capacity of the one-way channel when then transmitting test packet under the set rate
Phenomenon, i.e. packet loss can exceed normal range (NR).
It follows that when the packet loss for calculating belongs to normal range (NR), then illustrate to be tested in this bandwidth test
Bandwidth is within the actual bandwidth of the one-way channel;When the packet loss for calculating exceedes normal range (NR), then this sub-band is described
The bandwidth that is tested in wide test is beyond the actual bandwidth of the one-way channel.
In embodiments of the present invention, whether normal range (NR) can be belonged to packet loss and is judged by arranging threshold value.Threshold
Value can be default fixed numbers, and threshold value can also be changed, adjust accordingly according to specific demand.For example, to special
The bandwidth of one one-way channel of line is tested, and the threshold value of setting is 0.05, when the packet loss for calculating is 0.10, packet loss
Threshold value, i.e. packet loss are exceeded and have exceeded normal range (NR), then illustrated that the bandwidth that is tested in this bandwidth test cannot represent the list
Actual bandwidth to channel.
When above-mentioned packet loss exceedes normal range (NR), illustrate that the bandwidth that is tested in this bandwidth test cannot table
Show the actual bandwidth of the one-way channel of special line, in order to the higher limit of the actual bandwidth of the one-way channel is determined, the equipment of transmission can
To pass through adjust automatically set rate, bandwidth test is re-started.Specifically, obtain from the receiving device in the transmission equipment
After taking the packet loss of the bandwidth test, also include:
If the packet loss does not meet threshold value, the transmission equipment adjusts the pre- constant speed according to the size of the packet loss
Rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
Packet loss is higher, illustrates that the actual bandwidth of the bandwidth and special line one-way channel that is tested in this bandwidth test deviates
Degree is higher, and set rate is directly proportional to the bandwidth that is tested, it follows that packet loss is higher, this bandwidth test is described
In transmission test packet set rate actual transfer rate corresponding with the actual bandwidth of the one-way channel of special line deviation journey
Degree is higher, then when the adjustment of set rate is carried out, packet loss is higher, and the adjustment amplitude of corresponding set rate is also bigger.
The embodiment of the present invention is not limited to the concrete adjustment mode for adjusting set rate according to the size of packet loss, permissible
It is that the packet loss of bandwidth test and the data of set rate in historical operation are dependent on, counts between packet loss and set rate
Corresponding relation, when needing to re-start bandwidth test, then the corresponding relation can be searched according to the packet loss for calculating,
Adjust the set rate.For example, threshold value is set to 0.02, when packet loss is 0.05, searches packet loss corresponding with set rate
Relation, then set rate can be adjusted to the 80% of former set rate, when packet loss is 0.10, searches packet loss and make a reservation for
The corresponding relation of speed, then set rate can be adjusted to the 70% of former set rate.
By technique scheme as can be seen that before bandwidth test, the transmission in two equipment on special line sets
The standby test information for carrying bandwidth test start time and finish time to receiving device transmission so that receiving device can be bright
Test packet when is begun for really to be counted, when terminate to count.After the transmission for completing test packet, receiving device is also
The test packet sum for being received can be issued transmission equipment so that send equipment and test report can be sent in conjunction with statistics
Literary sum calculates packet loss, and transmission equipment can complete bandwidth test according to the concrete numerical value of packet loss.It can be seen that this bandwidth
Test mode is independent of the channel width from receiving device to the equipment of transmission, can be effectively for unidirectional letter in dissymmetric network
Road carries out bandwidth test.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, so as to when needing to retest, the equipment of transmission can foundation
Packet loss voluntarily adjusts the set rate for sending test packet in bandwidth test, it is achieved that the automation of bandwidth test, improves
The efficiency of bandwidth test.
In the above-described embodiments, the second count value, namely the test to receiving are counted to get for S404 receiving device
The number of message is counted, and in this process, not only may only test report in the message received by receiving device
Text, it is also possible to receive other types of message, but the sum of receiving device only statistical test message, can't count other
The number of the message of type, namely receiving device need have identify which is test packet from the message for receiving, and
The ability counted by which.
In order that receiving device can identify which message is test packet, can before bandwidth test is carried out,
Transmission equipment and receiving device clearly and set the type of test packet in advance.The embodiment of the present invention also provides a kind of mode
Identification of the receiving device to test packet is realized, can be when bandwidth test is carried out, send to receiving device in the equipment of transmission
Before test packet, the notice message of the type that include test packet is first sent to receiving device, and receiving device can be according to connecing
The advertised information for receiving is configured, so as to, in the message for receiving, receiving device can be according to the identification of the information of configuration
Go out test packet.Specifically, before the equipment of transmission sends test packet to receiving device, can increase and send to receiving device
The correlation step of notice message, as described in Figure 5, includes the step of increase:
S501:The transmission equipment sends notice message to the receiving device, and the notice message includes the test
The type of message.
S502:The receiving device obtains the notice message that the transmission equipment sends.
Illustrate, the type of test packet described here can include the species of message, for example, UDP message, TCP
Message etc., feature or feature that the type of test packet can also have including message, the such as destination address of message, source address
Etc., can specifically include specific source MAC and target MAC (Media Access Control) address, or specific source IP address and purpose IP address, or
The source port number of person's TCP/UDP message and destination slogan, or particular mac address, the end of IP address and TCP/UDP message
Combination of slogan etc..When the message with this feature or feature can both be identified the test packet.
The notice message for carrying the type of test packet is sent to receiving device by transmission equipment, and receiving device can be according to
According in the type of the test packet, configured, during in order to subsequently received message, can be identified from the message for receiving
Test packet.
S503:The receiving device is configured according to the type of the test packet, to realize recognizing the test report
Text the function of counting.
When receiving device is configured according to the type of test packet, can be configure corresponding with the type of test packet
Message characteristic, in subsequent operation, when receiving device receive transmission equipment transmission message after, just can according to configuration
Message characteristic is identified to the message for receiving, if the message characteristic not phase of the message characteristic of the message for receiving and configuration
With, then illustrating that the message is not test packet, then receiving device is not counted;If the message characteristic of the message for receiving with join
The message characteristic that puts is identical, then illustrate that the message is test packet, then receiving device is counted, and records the individual of test packet
Number.
When receiving device is configured according to the type of test packet, it is also possible to by arranging access control list
(Access Control List, ACL), to realize the identification to test packet.
S504:The receiving device is returned to the transmission equipment and confirms message, and the confirmation message is described for identifying
Receiving device has completed the configuration for the test packet.
S505:The transmission equipment receives the confirmation message that the receiving device is returned.
Confirm that message can be used for identifying receiving device and configuration for test packet has been completed, having carried out carries out bandwidth
The preparation of test.Receiving device to test packet complete configuration after, can to send equipment send confirm message.
The embodiment of the present invention sends to receiving device and confirms that the mode of message is not limited.Receiving device can complete right
After the configuration of test packet, directly return to transmission equipment and confirm message, or receiving asking for transmission equipment transmission
After seeking the message of confirmation, if receiving device has completed the configuration to test packet, return to the equipment of transmission and confirm message.
After transmission equipment receives the confirmation message of receiving device return, just it is known that receiving device has been completed survey
The configuration of examination message, then can execute subsequent operation.
By increasing aforesaid operations, the notice that transmission equipment sends, to receiving device, the type for carrying test packet disappears
Breath, receiving device can be configured automatically according to the type of test packet, realize the identification to test packet, so as to without the need for
Before bandwidth test, the type for test packet in transmission equipment and receiving device is arranged manually, is lifted further
The automaticity of bandwidth test, improves the efficiency of bandwidth test.
The apparatus embodiments of the present invention
Fig. 6 is a kind of hardware architecture diagram of transmission equipment provided in an embodiment of the present invention, 600 He of transmission equipment
Receiving device is two equipment being applied on special line, and transmission equipment 600 includes memory 601, receiver 602 and transmitter
603, and the processor 604 being connected with memory 601, receiver 602 and transmitter 603 respectively, memory 601 is for storing
Batch processing is instructed, and the programmed instruction that processor 604 is used for calling memory 601 to store executes following operation:
Triggering transmitter 603, sends test information by the special line to the receiving device, and the test information includes
The start time of bandwidth test and finish time;
From the start time, test packet is sent until the end to the receiving device according to set rate
Till moment;
The first count value is sent to the receiving device, first count value is the transmission equipment from during the beginning
The test packet sum sent to finish time is carved to the receiving device;
Triggering receiver 602, obtains the packet loss of the bandwidth test from the receiving device.
Alternatively, processor 604 can be central processing unit (Central Processing Unit, CPU), memory
601 can be the internal storage of random access memory (Random Access Memory, RAM) type, 602 He of receiver
Transmitter 603 can include General Physics interface, and physical interface can be ether (Ethernet) interface or asynchronous transfer mode
(Asynchronous Transfer Mode, ATM) interface.Processor 604, transmitter 603, receiver 602 and memory 601
One or more independent circuits or hardware can be integrated into, such as:Special IC (Application Specific
Integrated Circuit, ASIC).
Optionally, transmitter 603 is additionally operable to send notice message to the receiving device, and the notice message includes described
The type of test packet;
Receiver 602 is additionally operable to receive the confirmation message of receiving device return, and the confirmation message is used for identifying institute
State receiving device and complete the configuration for the test packet.
Optionally, transmission equipment 600 also includes processor 604:
If the packet loss does not meet threshold value, processor 604, for described predetermined according to the adjustment of the size of the packet loss
Speed, re-starts bandwidth test according to the set rate after adjustment to the special line.
Fig. 6 is the device embodiment for describing technical solution of the present invention from network equipment side, feature in embodiment corresponding to Fig. 6
Explanation may refer to the related description of embodiment corresponding to Fig. 2 and Fig. 3, no longer repeat one by one here.
By technique scheme as can be seen that before bandwidth test, the transmission in two equipment on special line sets
The standby test information for carrying bandwidth test start time and finish time to receiving device transmission so that receiving device can be bright
Test packet when is begun for really to be counted, when terminate to count.After the transmission for completing test packet, equipment is sent also
The test packet sum for being sent can be issued receiving device so that receiving device can be received test report in conjunction with statistics
Literary sum calculates packet loss, and is supplied to transmission equipment, and transmission equipment can complete bandwidth according to the concrete numerical value of packet loss
Test.It can be seen that this bandwidth test mode is independent of the channel width from receiving device to the equipment of transmission, effectively can be directed to
In dissymmetric network, one-way channel carries out bandwidth test.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, so as to when needing to retest, the equipment of transmission can foundation
Packet loss voluntarily adjusts the set rate for sending test packet in bandwidth test, it is achieved that the automation of bandwidth test, improves
The efficiency of bandwidth test.
Fig. 7 is a kind of hardware architecture diagram of receiving device provided in an embodiment of the present invention, 700 He of the receiving device
Transmission equipment is two equipment being applied on special line, and receiving device 700 includes memory 701, receiver 702 and transmitter
703, and the processor 704 being connected with memory 701, receiver 702 and transmitter 703 respectively, memory 701 is for storing
Batch processing is instructed, and the programmed instruction that processor 704 is used for calling memory 701 to store executes following operation:
Triggering receiver 702, obtains the test information that the transmission equipment sends, and the test information includes bandwidth test
Start time and finish time;
Carry out counting to get the second count value from the start time, second count value is for the receiving device from institute
State the test packet sum that start time to the finish time received from the transmission equipment;
The first count value of transmission equipment transmission is obtained, first count value is opened from described for the transmission equipment
The test packet sum that moment to finish time beginning is sent to the receiving device;
The packet loss of the bandwidth test is calculated according to the first count value and second count value.
Triggering transmitter 703, sends the packet loss to the transmission equipment.
Alternatively, processor 704 can be CPU, and memory 701 can be the internal storage of RAM type, receiver
702 and transmitter 703 can include General Physics interface, physical interface can be Ethernet interface or atm interface.Processor
704th, transmitter 703, receiver 702 and memory 701 can be integrated into one or more independent circuits or hardware, such as:
ASIC.
Optionally, receiver 702 is additionally operable to obtain the notice message of transmission equipment transmission, and the notice message includes
The type of the test packet;
Processor 704 is additionally operable to be configured according to the type of the test packet, to realize recognizing the test packet
And the function of counting;
Transmitter 703 is additionally operable to return to the transmission equipment and confirms message, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
Fig. 7 is the device embodiment for describing technical solution of the present invention from network equipment side, feature in embodiment corresponding to Fig. 7
Explanation may refer to the related description of embodiment corresponding to Fig. 2 and Fig. 3, no longer repeat one by one here.
By technique scheme as can be seen that before bandwidth test, the transmission in two equipment on special line sets
The standby test information for carrying bandwidth test start time and finish time to receiving device transmission so that receiving device can be bright
Test packet when is begun for really to be counted, when terminate to count.After the transmission for completing test packet, equipment is sent also
The test packet sum for being sent can be issued receiving device so that receiving device can be received test report in conjunction with statistics
Literary sum calculates packet loss, and is supplied to transmission equipment, and transmission equipment can complete bandwidth according to the concrete numerical value of packet loss
Test.It can be seen that this bandwidth test mode is independent of the channel width from receiving device to the equipment of transmission, effectively can be directed to
In dissymmetric network, one-way channel carries out bandwidth test.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, so as to when needing to retest, the equipment of transmission can foundation
Packet loss voluntarily adjusts the set rate for sending test packet in bandwidth test, it is achieved that the automation of bandwidth test, improves
The efficiency of bandwidth test.
Fig. 8 is a kind of hardware architecture diagram of transmission equipment provided in an embodiment of the present invention, 800 He of transmission equipment
Receiving device is two equipment being applied on special line, and transmission equipment 800 includes memory 801, receiver 802 and transmitter
803, and the processor 804 being connected with memory 801, receiver 802 and transmitter 803 respectively, memory 801 is for storing
Batch processing is instructed, and the programmed instruction that processor 804 is used for calling memory 801 to store executes following operation:
Triggering transmitter 803, sends test information by the special line to the receiving device, and the test information includes
The start time of bandwidth test and finish time;
From the start time, test packet is sent until the end to the receiving device according to set rate
Till moment;
Obtain the first count value, first count value be the transmission equipment from the start time to finish time to
The test packet sum that the receiving device sends.
Triggering receiver 802, obtains the second count value that the receiving device is returned, and second count value is connect for described
The test packet sum that receiving unit is received from the start time to the finish time from the transmission equipment.
Triggering transmitter 803 calculates the packet loss of the bandwidth test according to first count value and the second count value
Rate.
Alternatively, processor 804 can be CPU, and memory 801 can be the internal storage of RAM type, receiver
802 and transmitter 803 can include General Physics interface, physical interface can be Ethernet interface or atm interface.Processor
804th, transmitter 803, receiver 802 and memory 801 can be integrated into one or more independent circuits or hardware, such as:
ASIC.
Optionally, transmitter 803 is additionally operable to send notice message to the receiving device, and the notice message includes described
The type of test packet;
Receiver 802 is additionally operable to receive the confirmation message of receiving device return, and the confirmation message is used for identifying institute
State receiving device and complete the configuration for the test packet.
Optionally, if the packet loss does not meet threshold value, processor 804 is additionally operable to be adjusted according to the size of the packet loss
The set rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
Fig. 8 is the device embodiment for describing technical solution of the present invention from network equipment side, feature in embodiment corresponding to Fig. 8
Explanation may refer to the related description of embodiment corresponding to Fig. 4 and Fig. 5, no longer repeat one by one here.
By technique scheme as can be seen that before bandwidth test, the transmission in two equipment on special line sets
The standby test information for carrying bandwidth test start time and finish time to receiving device transmission so that receiving device can be bright
Test packet when is begun for really to be counted, when terminate to count.After the transmission for completing test packet, equipment is sent also
The test packet sum for being sent can be issued receiving device so that receiving device can be received test report in conjunction with statistics
Literary sum calculates packet loss, and is supplied to transmission equipment, and transmission equipment can complete bandwidth according to the concrete numerical value of packet loss
Test.It can be seen that this bandwidth test mode is independent of the channel width from receiving device to the equipment of transmission, effectively can be directed to
In dissymmetric network, one-way channel carries out bandwidth test.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, so as to when needing to retest, the equipment of transmission can foundation
Packet loss voluntarily adjusts the set rate for sending test packet in bandwidth test, it is achieved that the automation of bandwidth test, improves
The efficiency of bandwidth test.
Fig. 9 is a kind of hardware architecture diagram of receiving device provided in an embodiment of the present invention, 900 He of the receiving device
Transmission equipment is two equipment being applied on special line, and receiving device 900 includes memory 901, receiver 902 and transmitter
903, and the processor 904 being connected with memory 901, receiver 902 and transmitter 903 respectively, memory 901 is for storing
Batch processing is instructed, and the programmed instruction that processor 904 is used for calling memory 901 to store executes following operation:
Triggering receiver 902, obtains the test information that the transmission equipment sends, and the test information includes bandwidth test
Start time and finish time;
Carry out counting to get the second count value from the start time, second count value is for the receiving device from institute
State the test packet sum that start time to the finish time received from the transmission equipment.
Triggering transmitter 903, returns second count value to the transmission equipment.
Alternatively, processor 904 can be CPU, and memory 901 can be the internal storage of RAM type, receiver
902 and transmitter 903 can include General Physics interface, physical interface can be Ethernet interface or atm interface.Processor
904th, transmitter 903, receiver 902 and memory 901 can be integrated into one or more independent circuits or hardware, such as:
ASIC.
Optionally, receiver 902 is additionally operable to obtain the notice message of transmission equipment transmission, and the notice message includes
The type of the test packet;
Processor 904 is additionally operable to be configured according to the type of the test packet, to realize recognizing the test packet
And the function of counting;
Transmitter 903 is additionally operable to return to the transmission equipment and confirms message, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
Fig. 9 is the device embodiment for describing technical solution of the present invention from network equipment side, feature in embodiment corresponding to Fig. 9
Explanation may refer to the related description of embodiment corresponding to Fig. 4 and Fig. 5, no longer repeat one by one here.
By technique scheme as can be seen that before bandwidth test, the transmission in two equipment on special line sets
The standby test information for carrying bandwidth test start time and finish time to receiving device transmission so that receiving device can be bright
Test packet when is begun for really to be counted, when terminate to count.After the transmission for completing test packet, equipment is sent also
The test packet sum for being sent can be issued receiving device so that receiving device can be received test report in conjunction with statistics
Literary sum calculates packet loss, and is supplied to transmission equipment, and transmission equipment can complete bandwidth according to the concrete numerical value of packet loss
Test.It can be seen that this bandwidth test mode is independent of the channel width from receiving device to the equipment of transmission, effectively can be directed to
In dissymmetric network, one-way channel carries out bandwidth test.
It is additionally, since transmission equipment and can gets test result i.e. packet loss, therefore transmission equipment can be according to loses
The size of bag rate judges whether to need to re-start bandwidth test, so as to when needing to retest, the equipment of transmission can foundation
Packet loss voluntarily adjusts the set rate for sending test packet in bandwidth test, it is achieved that the automation of bandwidth test, improves
The efficiency of bandwidth test.
Next technical scheme is further illustrated from the angle of system.
Figure 10 is a kind of system construction drawing of bandwidth test system provided in an embodiment of the present invention, the bandwidth test system
1000 include transmission equipment 1001 and receiving device 1002, the transmission equipment 1001 and receiving device 1002 for two on special line
Individual equipment.
Transmission equipment 1001, for sending test information, the test information by the special line to receiving device 1002
Start time and finish time including bandwidth test;From the start time, according to set rate to receiving device
1002 send test packet till the finish time;The first count value, first meter are sent to receiving device 1002
Numerical value is the test packet sum that transmission equipment 1001 is sent from the start time to finish time to receiving device 1002;From
Receiving device 1002 obtains the packet loss of the bandwidth test;
Receiving device 1002, for obtaining the test information of the transmission of transmission equipment 1001;Counted from the start time
Number obtain the second count value, second count value be receiving device 1002 from the start time to the finish time from send out
The test packet sum for sending equipment 1001 to receive;Obtain the first count value that transmission equipment 1001 sends;Count according to first
Value and second count value calculate the packet loss of the bandwidth test;The packet loss is sent to transmission equipment 1001.
Figure 11 is a kind of system construction drawing of bandwidth test system provided in an embodiment of the present invention, the bandwidth test system
1100 include transmission equipment 1101 and receiving device 1102, the transmission equipment 1101 and receiving device 1102 for two on special line
Individual equipment.
Transmission equipment 1101, for sending test information, the test information by the special line to receiving device 1102
Start time and finish time including bandwidth test;From the start time, according to set rate to receiving device
1102 send test packet till the finish time;The first count value is obtained, first count value is transmission equipment
The 1101 test packet sums sent to receiving device 1102 from the start time to finish time;Obtain receiving device 1102
Return the second count value, second count value be receiving device 1102 from the start time to the finish time from send out
The test packet sum for sending equipment 1101 to receive;Bandwidth survey is calculated according to first count value and the second count value
The packet loss of examination;
Receiving device 1102, for obtaining the test information of the transmission of transmission equipment 1101;Counted from the start time
Number obtains the second count value;Second count value is returned to transmission equipment 1101.
" first " of the first count value that mentions in the embodiment of the present invention is used only to do name mark, does not represent order
On first.The rule is equally applicable to " second ".
One of ordinary skill in the art will appreciate that:The all or part of step for realizing said method embodiment can pass through
Completing, foregoing routine can be stored in a computer read/write memory medium the related hardware of programmed instruction, and the program exists
During execution, the step of including said method embodiment is executed;And aforesaid storage medium can be in following media at least one
Kind:Read-only storage (English:Read-only memory, abbreviation:ROM), RAM, magnetic disc or CD etc. are various can store
The medium of program code.
It should be noted that each embodiment in this specification is all described by the way of going forward one by one, each embodiment it
Between identical similar part mutually referring to what each embodiment was stressed is the difference with other embodiment.
For equipment and system embodiment, as which is substantially similar to embodiment of the method, so describe fairly simple,
Related part is illustrated referring to the part of embodiment of the method.Equipment described above and system embodiment are only schematic
, the unit that wherein illustrates as separating component can be or may not be physically separate, show as unit
Part can be or may not be physical location, you can be located at a place, or can also be distributed to multiple networks
On unit.Some or all of module therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
Those of ordinary skill in the art are not in the case of creative work is paid, you can to understand and implement.
The above, the only present invention preferably specific embodiment, but protection scope of the present invention is not limited thereto,
Any those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in,
Should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims
It is defined.
Claims (22)
1. a kind of bandwidth test method, it is characterised in that two equipment being applied on special line, described two equipment include to send
Equipment and receiving device, methods described include:
The transmission equipment sends test information by the special line to the receiving device, and the test information includes that bandwidth is surveyed
The start time of examination and finish time;
The transmission equipment send test packet from the start time, according to set rate to the receiving device until
Till the finish time;
The transmission equipment sends the first count value to the receiving device, and first count value is for the transmission equipment from institute
State the test packet sum that start time to finish time sent to the receiving device;
The transmission equipment obtains the packet loss of the bandwidth test from the receiving device.
2. method according to claim 1, it is characterised in that in the transmission equipment from the start time, root
Before test packet being sent according to set rate till the finish time to the receiving device, also include:
The transmission equipment sends notice message to the receiving device, and the notice message includes the class of the test packet
Type;
The transmission equipment receives the confirmation message that the receiving device is returned, and the confirmation message is set for identifying described reception
The standby configuration for being completed for the test packet.
3. method according to claim 1 and 2, it is characterised in that obtain from the receiving device in the transmission equipment
After the packet loss of the bandwidth test, also include:
If the packet loss does not meet threshold value, the transmission equipment adjusts the set rate according to the size of the packet loss,
Bandwidth test is re-started to the special line according to the set rate after adjustment.
4. a kind of transmission equipment, it is characterised in that the transmission equipment and receiving device are two equipment being applied on special line,
The transmission equipment includes transmitters and receivers:
The transmitter, for sending test information by the special line to the receiving device, the test information includes band
The start time of wide test and finish time;
The transmitter was additionally operable to from the start time, sent test packet according to set rate to the receiving device
Till the finish time;
The transmitter is additionally operable to send the first count value to the receiving device, and first count value is the transmission equipment
The test packet sum sent to the receiving device from the start time to finish time;
The receiver, for obtaining the packet loss of the bandwidth test from the receiving device.
5. transmission equipment according to claim 4, it is characterised in that the transmitter is additionally operable to send out to the receiving device
Notice message is sent, the notice message includes the type of the test packet;
The receiver is additionally operable to receive the confirmation message of receiving device return, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
6. the transmission equipment according to claim 4 or 5, it is characterised in that the transmission equipment also includes processor:
If the packet loss does not meet threshold value, the processor, for adjusting the pre- constant speed according to the size of the packet loss
Rate, re-starts bandwidth test according to the set rate after adjustment to the special line.
7. a kind of bandwidth test method, it is characterised in that two equipment being applied on special line, described two equipment include to send
Equipment and receiving device, methods described include:
The receiving device obtains the test information that the transmission equipment sends, and the test information includes the beginning of bandwidth test
Moment and finish time;
The receiving device carried out counting to get the second count value from the start time, and second count value is the reception
The test packet sum that equipment is received from the start time to the finish time from the transmission equipment;
The receiving device obtains the first count value that the transmission equipment sends, and first count value is the transmission equipment
The test packet sum sent to the receiving device from the start time to finish time;
The receiving device calculates the packet loss of the bandwidth test according to the first count value and second count value;
The receiving device sends the packet loss to the transmission equipment.
8. method according to claim 7, it is characterised in that counted from the start time in the receiving device
Before obtaining the second count value, also include:
The receiving device obtains the notice message that the transmission equipment sends, and the notice message includes the test packet
Type;
The receiving device is configured according to the type of the test packet, to realize recognizing the test packet and count
Function;
The receiving device is returned to the transmission equipment and confirms message, and the confirmation message is used for having identified the receiving device
Complete the configuration for the test packet.
9. a kind of receiving device, it is characterised in that the receiving device and transmission equipment are two equipment being applied on special line,
The receiving device includes receiver, transmitter and processor:
The receiver, for obtaining the test information of transmission equipment transmission, the test information includes bandwidth test
Start time and finish time;
The receiver is additionally operable to carry out counting to get the second count value from the start time, and second count value is described
The test packet sum that receiving device is received from the start time to the finish time from the transmission equipment;
The receiver is additionally operable to obtain the first count value of transmission equipment transmission, and first count value is the transmission
The test packet sum that equipment is sent from the start time to finish time to the receiving device;
The processor, for calculating the packet loss of the bandwidth test according to the first count value and second count value;
The transmitter, for sending the packet loss to the transmission equipment.
10. receiving device according to claim 9, it is characterised in that the receiver is additionally operable to obtain described transmission and sets
The notice message that preparation is sent, the notice message include the type of the test packet;
The processor is additionally operable to be configured according to the type of the test packet, by realize recognizing the test packet and in terms of
Several functions;
The transmitter is additionally operable to return to the transmission equipment and confirms message, and the confirmation message is set for identifying described reception
The standby configuration for being completed for the test packet.
11. a kind of bandwidth test systems, it is characterised in that the bandwidth test system includes transmission equipment and receiving device, institute
Transmission equipment and receiving device are stated for two equipment on special line;
The transmission equipment, for sending test information by the special line to the receiving device, the test information includes
The start time of bandwidth test and finish time;From the start time, sent out to the receiving device according to set rate
Sending test packet is till the finish time;The first count value is sent to the receiving device, first count value is
The test packet sum that the transmission equipment is sent from the start time to finish time to the receiving device;Connect from described
Receiving unit obtains the packet loss of the bandwidth test;
The receiving device, for obtaining the test information of transmission equipment transmission;Carry out counting from the start time
To the second count value, second count value is the receiving device from the start time to the finish time from described
The test packet sum for sending equipment to receive;Obtain the first count value of transmission equipment transmission;According to the first count value and
Second count value calculates the packet loss of the bandwidth test;The packet loss is sent to the transmission equipment.
A kind of 12. bandwidth test methods, it is characterised in that two equipment being applied on special line, described two equipment include to send out
Equipment and receiving device is sent, methods described includes:
The transmission equipment sends test information by the special line to the receiving device, and the test information includes that bandwidth is surveyed
The start time of examination and finish time;
The transmission equipment send test packet from the start time, according to set rate to the receiving device until
Till the finish time;
The transmission equipment obtains the first count value, and first count value is the transmission equipment from the start time to knot
The test packet sum that the bundle moment is sent to the receiving device;
The transmission equipment obtains the second count value that the receiving device is returned, and second count value is the receiving device
The test packet sum received from the transmission equipment from the start time to the finish time;
The transmission equipment calculates the packet loss of the bandwidth test according to first count value and the second count value.
13. methods according to claim 12, it is characterised in that in the transmission equipment from the start time,
Before test packet being sent according to set rate till the finish time to the receiving device, also include:
The transmission equipment sends notice message to the receiving device, and the notice message includes the class of the test packet
Type;
The transmission equipment receives the confirmation message that the receiving device is returned, and the confirmation message is set for identifying described reception
The standby configuration for being completed for the test packet.
14. methods according to claim 12 or 13, it is characterised in that count according to described first in the transmission equipment
After value and the second count value calculate the packet loss of the bandwidth test, also include:
If the packet loss does not meet threshold value, the transmission equipment adjusts the set rate according to the size of the packet loss,
Bandwidth test is re-started to the special line according to the set rate after adjustment.
15. a kind of transmission equipment, it is characterised in that the transmission equipment and receiving device are that two be applied on special line set
Standby, the transmission equipment includes transmitter, receiver and processor:
The transmitter, for sending test information by the special line to the receiving device, the test information includes band
The start time of wide test and finish time;
The transmitter was additionally operable to from the start time, sent test packet according to set rate to the receiving device
Till the finish time;
The processor, for obtaining the first count value, first count value is the transmission equipment from the start time
To the test packet sum that finish time is sent to the receiving device;
The receiver, for obtaining the second count value of receiving device return, second count value is the reception
The test packet sum that equipment is received from the start time to the finish time from the transmission equipment;
The processor is additionally operable to calculate the packet loss of the bandwidth test according to first count value and the second count value.
16. transmission equipment according to claim 15, it is characterised in that the transmitter is additionally operable to the receiving device
Notice message is sent, the notice message includes the type of the test packet;
The receiver is additionally operable to receive the confirmation message of receiving device return, and the confirmation message is used for identifying described connecing
Receiving unit has completed the configuration for the test packet.
The 17. transmission equipment according to claim 15 or 16, it is characterised in that if the packet loss does not meet threshold value, institute
State processor to be additionally operable to adjust the set rate according to the size of the packet loss, according to the set rate after adjustment to described
Special line re-starts bandwidth test.
A kind of 18. bandwidth test methods, it is characterised in that two equipment being applied on special line, described two equipment include to send out
Equipment and receiving device is sent, methods described includes:
The receiving device obtains the test information that the transmission equipment sends, and the test information includes the beginning of bandwidth test
Moment and finish time;
The receiving device carried out counting to get the second count value from the start time, and second count value is the reception
The test packet sum that equipment is received from the start time to the finish time from the transmission equipment;
The receiving device returns second count value to the transmission equipment.
19. methods according to claim 18, it is characterised in that counted from the start time in the receiving device
Before number obtains the second count value, also include:
The receiving device obtains the notice message that the transmission equipment sends, and the notice message includes the test packet
Type;
The receiving device is configured according to the type of the test packet, to realize recognizing the test packet and count
Function;
The receiving device is returned to the transmission equipment and confirms message, and the confirmation message is used for having identified the receiving device
Complete the configuration for the test packet.
20. a kind of receiving devices, it is characterised in that the receiving device and transmission equipment are that two be applied on special line set
Standby, the receiving device includes receiver, transmitter and processor:
The receiver, for obtaining the test information of transmission equipment transmission, the test information includes bandwidth test
Start time and finish time;
The processor, for carrying out counting to get the second count value from the start time, second count value is described
The test packet sum that receiving device is received from the start time to the finish time from the transmission equipment;
The transmitter, for returning second count value to the transmission equipment.
21. receiving devices according to claim 20, it is characterised in that the receiver is additionally operable to obtain described transmission and sets
The notice message that preparation is sent, the notice message include the type of the test packet;
The processor is additionally operable to be configured according to the type of the test packet, by realize recognizing the test packet and in terms of
Several functions;
The transmitter is additionally operable to return to the transmission equipment and confirms message, and the confirmation message is set for identifying described reception
The standby configuration for being completed for the test packet.
22. a kind of bandwidth test systems, it is characterised in that the bandwidth test system includes transmission equipment and receiving device, institute
Transmission equipment and receiving device are stated for two equipment on special line;
The transmission equipment, for sending test information by the special line to the receiving device, the test information includes
The start time of bandwidth test and finish time;From the start time, sent out to the receiving device according to set rate
Sending test packet is till the finish time;Obtain the first count value, first count value be the transmission equipment from
The test packet sum that the start time to finish time is sent to the receiving device;Obtain receiving device return
Second count value, second count value are the receiving device from the start time to the finish time from the transmission
The test packet sum that equipment is received;Losing for the bandwidth test is calculated according to first count value and the second count value
Bag rate;
The receiving device, for obtaining the test information of transmission equipment transmission;Carry out counting from the start time
To the second count value;Second count value is returned to the transmission equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611010148.9A CN106487613A (en) | 2016-11-16 | 2016-11-16 | A kind of bandwidth test methods, devices and systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611010148.9A CN106487613A (en) | 2016-11-16 | 2016-11-16 | A kind of bandwidth test methods, devices and systems |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106487613A true CN106487613A (en) | 2017-03-08 |
Family
ID=58272606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611010148.9A Pending CN106487613A (en) | 2016-11-16 | 2016-11-16 | A kind of bandwidth test methods, devices and systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106487613A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547302A (en) * | 2017-06-22 | 2018-01-05 | 新华三技术有限公司 | Network quality appraisal procedure and device |
CN108199925A (en) * | 2018-01-30 | 2018-06-22 | 网宿科技股份有限公司 | A kind of data transmission method for uplink, method of reseptance and device |
CN109547287A (en) * | 2018-11-23 | 2019-03-29 | 盛科网络(苏州)有限公司 | Bandwidth test method and device, storage medium |
CN109921962A (en) * | 2019-04-16 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Bandwidth Measurement Method, device, computer readable storage medium and computer equipment |
CN111917662A (en) * | 2019-05-07 | 2020-11-10 | 华为技术有限公司 | Bandwidth reservation method and related equipment |
CN112073128A (en) * | 2020-08-18 | 2020-12-11 | 江苏创通电子股份有限公司 | Communication equipment performance test method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1725718A (en) * | 2005-04-04 | 2006-01-25 | 杭州华为三康技术有限公司 | Network QoS test method and system |
US20100166006A1 (en) * | 2007-09-14 | 2010-07-01 | Quansong Xu | Method, media gateway and system for controlling redundant data packet transmission |
CN101958811A (en) * | 2009-07-14 | 2011-01-26 | 中兴通讯股份有限公司 | Method and system for measuring end-to-end available bandwidth |
CN102201947A (en) * | 2010-03-24 | 2011-09-28 | 中兴通讯股份有限公司 | Throughput measuring method and maintenance end node |
CN103001835A (en) * | 2012-12-29 | 2013-03-27 | 电信科学技术第一研究所 | Network bandwidth test method and system based on data transmission |
-
2016
- 2016-11-16 CN CN201611010148.9A patent/CN106487613A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1725718A (en) * | 2005-04-04 | 2006-01-25 | 杭州华为三康技术有限公司 | Network QoS test method and system |
US20100166006A1 (en) * | 2007-09-14 | 2010-07-01 | Quansong Xu | Method, media gateway and system for controlling redundant data packet transmission |
CN101958811A (en) * | 2009-07-14 | 2011-01-26 | 中兴通讯股份有限公司 | Method and system for measuring end-to-end available bandwidth |
CN102201947A (en) * | 2010-03-24 | 2011-09-28 | 中兴通讯股份有限公司 | Throughput measuring method and maintenance end node |
CN103001835A (en) * | 2012-12-29 | 2013-03-27 | 电信科学技术第一研究所 | Network bandwidth test method and system based on data transmission |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547302A (en) * | 2017-06-22 | 2018-01-05 | 新华三技术有限公司 | Network quality appraisal procedure and device |
CN107547302B (en) * | 2017-06-22 | 2020-10-09 | 新华三技术有限公司 | Network quality evaluation method and device |
CN108199925A (en) * | 2018-01-30 | 2018-06-22 | 网宿科技股份有限公司 | A kind of data transmission method for uplink, method of reseptance and device |
WO2019148563A1 (en) * | 2018-01-30 | 2019-08-08 | 网宿科技股份有限公司 | Data sending method and apparatus, and data receiving method and apparatus |
CN109547287B (en) * | 2018-11-23 | 2020-12-01 | 盛科网络(苏州)有限公司 | Bandwidth testing method and device and storage medium |
CN109547287A (en) * | 2018-11-23 | 2019-03-29 | 盛科网络(苏州)有限公司 | Bandwidth test method and device, storage medium |
WO2020103423A1 (en) * | 2018-11-23 | 2020-05-28 | 盛科网络(苏州)有限公司 | Bandwidth testing method and apparatus, and storage medium |
US12047267B2 (en) | 2018-11-23 | 2024-07-23 | Suzhou Centec Communications Co., Ltd. | Bandwidth testing method and apparatus, and storage medium |
CN109921962A (en) * | 2019-04-16 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Bandwidth Measurement Method, device, computer readable storage medium and computer equipment |
CN109921962B (en) * | 2019-04-16 | 2021-03-23 | 腾讯科技(深圳)有限公司 | Bandwidth measuring method, device, computer readable storage medium and computer equipment |
CN111917662B (en) * | 2019-05-07 | 2024-04-26 | 华为技术有限公司 | Bandwidth reservation method and related equipment |
CN111917662A (en) * | 2019-05-07 | 2020-11-10 | 华为技术有限公司 | Bandwidth reservation method and related equipment |
CN112073128A (en) * | 2020-08-18 | 2020-12-11 | 江苏创通电子股份有限公司 | Communication equipment performance test method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106487613A (en) | A kind of bandwidth test methods, devices and systems | |
US8724503B2 (en) | Sub-path E2E probing | |
CN106656679B (en) | Availability bandwidth measurement method | |
US8457004B2 (en) | System and method for analyzing and testing packet flows to localize problems | |
CN110572280B (en) | Network monitoring method and system | |
CN104852828B (en) | A kind of network delay detection method, apparatus and system | |
EP3398296B1 (en) | Performance measurement in a packet-switched communication network | |
CN106487605B (en) | Packet loss rate detection method and device | |
EP3474499B1 (en) | Network performance detection method and apparatus | |
EP2685667A1 (en) | Measurement method, apparatus and system based on labels | |
CN1625157B (en) | Policing device | |
US20150036510A1 (en) | Method and device for measuring ethernet performance | |
US6928054B1 (en) | Apparatus, method, media and signals for connection-class parameter control of packet flow | |
CN105591983A (en) | QoS outlet bandwidth adjustment method and device | |
CN107147544A (en) | A kind of method and device of test network delay | |
US11121938B2 (en) | Performance measurement in a packet-switched communication network | |
Ðerić et al. | Towards understanding the performance of traffic policing in programmable hardware switches | |
CN106302001A (en) | Traffic failure detection method, relevant apparatus and system in data communication network | |
EP2936741A1 (en) | Probing a network | |
CN104601400B (en) | Shunting device performance test methods, test client and test server | |
CN108183840A (en) | Verification method, device and the realization device of switch performance | |
CN107147585A (en) | A kind of flow control methods and device | |
CN103152228B (en) | A kind of bandwidth detection method and apparatus | |
US8958424B2 (en) | Tri-colour data packet counting for tri-colour marking policies | |
CN109995606A (en) | Virtualize deep-packet detection vDPI flow control methods and network element device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170308 |
|
RJ01 | Rejection of invention patent application after publication |