CN101242321A - An end-to-end throughput measuring method and device - Google Patents

An end-to-end throughput measuring method and device Download PDF

Info

Publication number
CN101242321A
CN101242321A CNA200810102573XA CN200810102573A CN101242321A CN 101242321 A CN101242321 A CN 101242321A CN A200810102573X A CNA200810102573X A CN A200810102573XA CN 200810102573 A CN200810102573 A CN 200810102573A CN 101242321 A CN101242321 A CN 101242321A
Authority
CN
China
Prior art keywords
measured
user
test packet
data message
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA200810102573XA
Other languages
Chinese (zh)
Inventor
陈丽华
钟凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=39933544&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN101242321(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNA200810102573XA priority Critical patent/CN101242321A/en
Publication of CN101242321A publication Critical patent/CN101242321A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an end-to-end flux measurement method, comprising: a sending exchange receives a data message of a pending measurement user, and acquires the test message at a test port, wherein the test message takes with an identification of the pending measurement user; when the bandwidth occupied by the data message of the pending measurement user is less than an appointed speed of a pending measurement flux, the exchange transmits the data message and test message of the pending measurement user at an output port to make the total bandwidth occupied by the data message and the test message equal to the appointed speed of a pending measurement flux and to make the test message transmit in a priority lower than that of the data message; a receiving exchange receives and accounts the total bandwidth occupied by the data message and the test message of the pending measurement user at an input port based on the identification of the pending measurement user as an end to end actual flux bandwidth. The invention further provides a sending exchange and a receiving exchange for an end to end flux measurement. The invention can achieve an end to end flux bandwidth measurement in a condition without breaking the user data message.

Description

A kind of method and apparatus of flux measurement end to end
Technical field
The present invention relates to the measuring technique of network parameter, particularly a kind of method and apparatus of flux measurement end to end.
Background technology
Ethernet is developed rapidly with characteristics such as its low cost, high bandwidth, easy deployment.Along with the high speed development of Internet, many new business have appearred, as VOIP, BTV, VOD etc.The interconnection service of corporate client is from the migrations such as E-LINE, E-LAN of traditional Frame Relay/Private line to Ethernet, each business department and external client also more and more depend on network and finish daily Business Processing and communicate by letter in the enterprise, and any network or service disruption even decreased performance all can cause business event and have a strong impact on.
And in carrier network, IP network is shared by numerous users.But, be not all with per family together with the time online use IP network bandwidth, that is to say, the online rate of the user of carrier network can be lower than 100%, therefore, operator and the user between during predetermined IP bandwidth, normally oversubscription is about to the predetermined a plurality of users of giving of designated bandwidth and shares.For example, suppose that the online rate of user is 50%, system bandwidth is 1G altogether, the bandwidth of each consumer premise 1M, and operator is predetermined to 2000 users with the bandwidth of 1G usually so.
Usually, operator and user can guarantee limit with the bandwidth that the mode of contract is arranged by mutual consent, thereby make operator provide the difference service for the user, guarantee that the user can obtain fair available bandwidth at least, guarantee service quality, and operator also wishes by providing this differential service to increase income.Owing to above reason, service quality is more and more important.
Service quality is weighed by following network performance parameter usually: frame loss rate (Loss), frame time delay (Delay), dither frame (Jitter), network availability (Availability), flux (throughput Throughput).Wherein, the flux bandwidth generally uses committed information rate (CIR)/excess information rate (EIR) to weigh.CIR is the Mean Speed that traffic frame transmits according to service feature, and operator must reach CIR for the flux bandwidth that the user provides; EIR is meant that carrier network is with the amount of user data that surpasses CIR that is intended to transmission in section preset time, it has defined the traffic frame that can enter carrier network more than or equal to CIR, these utilize idle bandwidth to transmit more than or equal to CIR and smaller or equal to the traffic frame of EIR, there is not performance to guarantee, in case idle bandwidth is occupied, carrier network will abandon these traffic frames; And,, can not transmit these traffic frames even idle bandwidth is arranged for the traffic frame of Mean Speed greater than the EIR part yet, directly it is abandoned.
Under the guaranteed prerequisite of flux bandwidth, the client can rationally utilize bandwidth by adjusting interior business, reduces frame loss rate, reduces the frame time delay, and dither frame improves network availability.This shows that CIR is the key of service quality.Operator need measure user's flux bandwidth parameter, determines the flux on the whole end to end physical link of this user, specifically can realize by the flux of measuring on each physical equipment of this link.
At present, in flux measurement end to end,, adopt the service disruption mode usually, promptly under the situation that user data service stream interrupts, carry out flux measurement for fear of of the influence of user data service stream to the flux bandwidth measurement result.For example, the website A that measures certain user is to the flux bandwidth between website B, and Fig. 1 is an instrumentation plan.
At first, introduce and in network configuration shown in Figure 1, be the process of user's data message transmission to be measured.When service is provided for user X, this user's data message sends from Source Site Site A, enter transmission switch Switch A through CPE A by this user's data Business Stream input port A, then data message is forwarded to desampler Switch B by routing devices such as intermediary switch and routers, again by this user's data Business Stream output port, arrive purpose website Site B through CPE B.
When carrying out by website A for user X, stop by CPE A sending the test packet of fixed length according to the CIR/EIR assigned rate at the data traffic flow input port A of this user X to sending switch input user data message to the flux measurement of website B.For example, if when the subscription data of user X is respectively CIR and EIR, in test process, send test packet with assigned rate CIR; In test process next time, send test packet with assigned rate EIR, with measure user X at website A to the flux between website B.Particularly, carry out counting messages, test packet is added up at the output port of desampler at inbound port A.Confirm by the statistics that relatively sends switch inbound port and desampler outbound port whether the network flux reaches the CIR/EIR of promise.In the middle of test packet, can measure the transfer amount of this test packet on each physical equipment of process, can determine the flux of user to be measured on this physical equipment.
But in above-mentioned flux measurement process end to end, must interrupt user data service stream, like this, the business that influences the user is on the one hand used, on the other hand, and the flux bandwidth conditions in the time of can't truly reflecting user's transmitting data service stream.
Summary of the invention
In view of this, the invention provides a kind of method and apparatus of flux measurement end to end, can under the situation of not interrupting user data service stream, carry out user's flux measurement end to end.
For achieving the above object, the present invention adopts following technical scheme:
A kind of flux measurement method end to end comprises:
Send switch and receive user's data message to be measured at input port, and obtain the test packet that sends to desampler at default test port, described test packet carries user's to be measured sign;
When the shared bandwidth of user data message to be measured during less than the assigned rate of flux to be measured, described transmission switch sends user's data message to be measured and test packet at output port, make the shared total bandwidth of data message and test packet equal the assigned rate of flux to be measured, and described test packet send with the priority that is lower than data message;
Desampler receives and adds up user's data message to be measured and the shared total bandwidth of test packet in the sign of input port according to user to be measured, as real fluxes bandwidth end to end.
Preferably, described transmission switch obtains described test packet with the assigned rate of flux to be measured;
Described transmission switch sends user's data message to be measured and test packet comprises at output port:
In the priority query that sends the switch output port, increase the priority query that priority is lower than data message in advance, described test packet is added the priority query of described increase, user's data message to be measured is added the corresponding priority level formation according to priority;
The output port that sends switch that is identified at based on user to be measured is provided with ductility limit speed, and speed limit is the assigned rate of flux to be measured, sends the user's data message to be measured and the test packet of buffer memory in the priority query according to described speed limit.
Preferably, this method further comprises: user's to be measured test packet is discerned and abandoned to desampler, normally transmits user's data message to be measured;
Bandwidth that statistics desampler output port user's data message to be measured is shared and the shared bandwidth of transmission switch input port user's data message to be measured.
Preferably, when the input port that sends switch encapsulates with the QinQ form user's data message to be measured,
Described test port obtains the test packet that sends to desampler and comprises: test packet that software generates with double-deck TAG sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, outer TAG wherein is identical with user's data message to be measured, and destination address is the bridge MAC Address of desampler; Perhaps, test packet that software generates band internal layer TAG sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, and described test port increases the outer TAG identical with user's data message to be measured for the test packet that receives;
The described user's to be measured outer TAG that is designated test packet.
Preferably, the test packet that user to be measured was discerned and abandoned to described desampler comprises: according to packet outer layer TAG is that user's to be measured outer TAG, bridge MAC Address, the type of message that destination address is desampler are the rule of test packet, filters out and abandon test packet from the message that receives.
Preferably, when the input port that sends switch encapsulates with the MACinMAC form user's data message to be measured,
Described test port obtains the test packet that sends to desampler and comprises: test packet that software generates with double-deck MAC head sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, I-SID among outer target MAC (Media Access Control) address B-DA wherein, outer source MAC B-SA, B-Tag and the I-Tag is identical with user's data message to be measured, C-SA is for sending the bridge MAC Address of switch, and C-DA is the bridge MAC Address of desampler; Perhaps, utilize Smartbit or the PC software of giving out a contract for a project to generate the test packet payload and send to the test port that sends switch, described test port increases the double-deck MAC head identical with user's data message to be measured for the test packet that receives;
The combination of I-SID among described the user's to be measured B-DA that is designated test packet, B-SA, B-Tag and the I-Tag.
Preferably, described desampler further comprises before carrying out described identification and abandoning user's to be measured test packet: the I-SID that will receive among B-DA, B-SA, B-TAG and the I-TAG of message peels off;
Described identification and the test packet that abandons user to be measured comprise: according to C-DA is that bridge MAC Address, the type of message of desampler is the rule of test packet, filters out and abandon test packet the message after peeling off.
Preferably, this method further comprises:
Transmit the intermediate equipment of user's data message to be measured and test packet, according to the user data message to be measured and the shared total bandwidth of test packet of user ID statistics to be measured reception;
Perhaps, transmit the intermediate equipment of user's data message to be measured and test packet, add up the bandwidth that bandwidth that user data message to be measured takies and user test message to be measured take respectively according to user ID to be measured and type of message.
Preferably, the payload of described test packet is ETH-Test message or ETH-LB message.
A kind of transmission switch that is used for end-to-end flux measurement comprises:
Test port is used to obtain the test packet that sends to desampler, and described test packet carries user's to be measured sign;
Input port is used to receive user's data message to be measured;
Output port, be used in the shared bandwidth of user's data message to be measured during less than the assigned rate of flux to be measured, the user data message to be measured that test packet that the transmission test port obtains and input port receive, and guarantee that when transmission the shared total bandwidth of data message and test packet equals the assigned rate of flux to be measured, and test packet sends with lowest priority.
Preferably, described output port comprises a plurality of priority queries and speed limit transmitting element;
Lowest priority queue in described a plurality of priority query is used for the cache test message, and other priority queries except that described lowest priority are used for buffer memory user's data message to be measured;
Described speed limit transmitting element based on user's to be measured sign, carries out speed limit with the message in described a plurality of priority queries according to priority and sends, and speed limit is the assigned rate of flux to be measured.
Preferably, when the input port of described switch encapsulates with the QinQ form user's data message to be measured,
Described test port is used for the test packet of the double-deck TAG of receiving belt, perhaps is used for the test packet of receiving belt internal layer TAG and increases the outer TAG identical with user's data message to be measured.
Preferably, when the input port of described switch encapsulates with the MACinMAC form user's data message to be measured,
Described test port is used to receive the test packet that generates with double-deck MAC head, perhaps, is used for acceptance test message payload, also increases the double-deck MAC head identical with user's data message to be measured for the test packet payload that receives.
A kind of desampler that is used for end-to-end flux measurement comprises:
Input port is used for the sign according to user to be measured, receives and add up user's data message to be measured and the shared total bandwidth of test packet;
Flux is preserved the unit, is used for total bandwidth that described input port is counted as real fluxes bandwidth end to end.
Preferably, this switch further comprises: test packet processing unit and output port,
Described test packet processing unit is used for message identification that receives from input port and the test packet that abandons user to be measured;
Output port is used for the user's data message to be measured that input port receives is added up and normally transmitted;
Described flux is preserved the unit, is further used for preserving the user's data message to be measured that described output port counts.
Preferably, when described user's data message to be measured and test packet are when encapsulating with the MACinMAC form,
Described input port be further used for the I-SID among B-DA, B-SA, B-TAG and the I-TAG of reception message is peeled off, and the message after will peeling off sends to described output port.
As seen from the above technical solution, among the present invention, send switch and receive user's data message to be measured, and generate the test packet that sends to desampler at default test port, wherein, this test packet carries user's to be measured sign.Then, in the shared bandwidth of user's data message to be measured during less than the assigned rate of flux to be measured, send switch and send user's data message to be measured and test packet at output port, and the shared total bandwidth of data message and test packet equals the assigned rate of flux to be measured, thereby carries out flux measurement based on data message and test packet.In the message process of transmitting, test packet sends with lowest priority, thereby when the network bandwidth is nervous, at first abandons test packet, and then guarantee in the flux measurement process, does not influence the normal forwarding of user data message.At last, desampler receives and adds up user's data message to be measured and the shared total bandwidth of test packet in the sign of input port according to user to be measured, as real fluxes bandwidth end to end.Like this, just can determine whether flux reaches assigned rate end to end according to the comparative result of this total bandwidth and assigned rate.By above-mentioned flux bandwidth measurement mode, can under the situation of not interrupting user data service stream, carry out user's flux measurement end to end.
Description of drawings
Fig. 1 is existing end-to-end flux measurement schematic diagram.
Fig. 2 is the overview flow chart of flux measurement method end to end provided by the invention.
Fig. 3 is the overall construction drawing that is used to carry out the transmission switch of end-to-end flux measurement provided by the invention.
Fig. 4 is the overall construction drawing that is used to carry out the desampler of end-to-end flux measurement provided by the invention.
Fig. 5 is the schematic flow sheet of flux measurement method among the present invention.
Fig. 6 is the concrete structure figure that sends switch in the embodiment of the invention.
Fig. 7 is the concrete structure figure of desampler in the embodiment of the invention.
Embodiment
For making purpose of the present invention, technological means and advantage clearer, below in conjunction with accompanying drawing the present invention is done to describe in further detail.
Basic thought of the present invention is: stack test data stream on user data service stream makes total bandwidth equal the assigned rate CIR or the EIR of flux to be measured, thereby carry out user's flux measurement end to end under the situation of not interrupting user data service stream.
Fig. 2 is the overview flow chart of flux measurement method end to end provided by the invention.As shown in Figure 2, this method comprises:
Step 201 sends switch and receives user's data message to be measured, and generates the test packet that sends to desampler at default test port.
In this step, test packet carries user's to be measured sign, and wherein, user's to be measured sign is different and different according to the packing forms of user data message.
Step 202, when the shared bandwidth of user's data message to be measured during less than the assigned rate of flux to be measured, send switch and send user's data message to be measured and test packet at output port, make the shared total bandwidth of data message and test packet equal the assigned rate of flux to be measured, and described test packet send with the priority that is lower than data message.
By this step, realize that at the output port that sends switch the message of assigned rate sends, wherein assigned rate can be CIR or EIR, determines according to the parameter that concrete needs are measured.If the shared bandwidth of user's data message to be measured is more than or equal to the assigned rate of flux to be measured, then send user's data message to be measured, and make the shared bandwidth of this data message equal the assigned rate of flux to be measured at the output port that sends switch.
Step 203, desampler receive and add up user's data message to be measured and the shared total bandwidth of test packet in the sign of input port according to user to be measured, as real fluxes bandwidth end to end.
So far, overall procedure of the present invention finishes.By the way, realized that at the transmission switch message of assigned rate sends, realized the bandwidth measurement of user's message to be measured at desampler, thereby can whether reach requirement according to the relatively more definite flux bandwidth of the two.
Simultaneously, the present invention also provides the transmission switch that relates in the said method and the specific implementation of desampler.Fig. 3 and Fig. 4 are respectively be used to carry out the transmission switch of end-to-end flux measurement and the overall construction drawing of desampler provided by the invention.
As shown in Figure 3, transmission switch provided by the invention comprises test port, input port and output port.Wherein, test port is that transmission switch provided by the invention is set up a port than existing transmission switch, and specifically this test port can be the arbitrary idle port on this switch.
Send in the switch at this, test port is used to generate the test packet that carries user ID to be measured that sends to desampler; Input port is used to receive user's data message to be measured; Output port, be used in the shared bandwidth of user's data message to be measured during less than the assigned rate of flux to be measured, send the test packet of test port generation and the user data message to be measured that input port receives, and guarantee that when sending data message and the shared total bandwidth of test packet equal the assigned rate of flux to be measured, and test packet sends with lowest priority.
As shown in Figure 4, desampler comprises input port and flux preservation unit.Wherein, input port is used for the sign according to user to be measured, receives and add up user's data message to be measured and the shared total bandwidth of test packet.Flux is preserved the unit, is used for total bandwidth that described input port is counted as real fluxes bandwidth end to end.Other structures of this desampler are identical with existing desampler, just repeat no more here.
Above-mentioned is overview to flux measurement method provided by the invention and switch device, below by specific embodiment explanation the specific embodiment of the present invention.In present network, along with developing rapidly of operator's metropolitan area network, for extensibility and the business support ability that improves Ethernet, the technology such as QinQ, MACinMAC that occurred by adding one deck heading Ethernet expand.Specifically in the present invention, according to different Ethernet expansion techniques, can be slightly different at the message encapsulation format that sends switch input port place.In the following embodiments, be that example describes with the QinQ packaged type.
Embodiment one:
When adopting QinQ form encapsulation user's message, in metropolitan area network, use enterprise customer of double-deck tag sign usually, outer tag represents certain enterprise, internal layer tag represents the different business in this enterprise.The encapsulation format of concrete QinQ is as shown in table 1.Wherein,
-DA: target MAC (Media Access Control) address;
-SA: source MAC;
-ETYPE: the Ethernet type of message, be worth and be 0x8100, also can be 0x9100;
-Outer TAG: outside VLAN tag;
-ETYPE: the Ethernet type of message is worth and is 0x8100;
-Inner TAG: inner VLAN tag;
-ETYPE: protocol type, refer to the high-level protocol of packet, represent the ARP agreement as 0x0806,0x0800 represents the IP agreement, 0x8902 represents the Ethernet OAM agreement;
-DATA: be the arbitrary value sequence of one group of n (46=<n=<1500) byte, frame total value minimum is 64 bytes, and in the present embodiment, DATA partly carries the message content with the encapsulation of QinQ form;
FCS:Frame Check Sequence, frame check sequence.This sequence comprises 32 Cyclic Redundancy Check value, generates by sending MAC side, calculates with the ruined frame of verification by receiving MAC side.
DA (6B) SA (6B) ETYPE(8100) (2B) Outer?TAG (2B) ETYPE(8100) (2B) Inner?TAG (2B) ETYPE (2B) DATA (0~1500byte) FCS (4B)
Table 1
Fig. 5 is the schematic flow sheet of flux measurement method among the present invention.As shown in Figure 5, in this flux measurement method website A is carried out flux measurement to website B, wherein, Switch A is for sending switch, and Switch B is a desampler.In the method for the invention, need on Switch A, select an idle port as test port.Concrete this flux measurement method comprises:
Step 1, the test port that sends switch obtains the test packet that sends to desampler, and this test packet carries user's to be measured sign.
The concrete enforcement of this step can be: test packet that software generates with double-deck TAG sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, outer TAG wherein is identical with user's data message to be measured, and internal layer TAG can be provided with arbitrarily.Outer TAG is user's to be measured sign, is used to identify the affiliated enterprise customer of flux to be measured.DA is the bridge MAC Address of desampler, SA is for sending the bridge MAC Address of switch, the ETYPE type of DATA part is the Ethernet OAM message, concrete value is 0x8902, the DATA part can be standard testing messages such as ETH-Test or ETH-LB, be example with the ETH-Test message in the present embodiment, this message format defines in ITU-TY.1731, and is specifically as shown in table 2.
Figure S200810102573XD00111
Table 2
As shown in table 2, ETH-Test OAM PDU form comprises:
-MEL: the MEG grade that is used to identify OAM PDU.Number range from 0 to 7.
-version: be used to identify the version of OAM agreement, always 0.
-OpCode: be used to indicate OAM PDU type, the numerical value of the OAM PDU of ETH-Test type is 37.
-mark: be changed to complete 0.
-TLV bias: be changed to 4.
-sequence number: sequence number is the field of one 4 byte, and follow-up TST PDU is increased progressively.
-test TLV: concrete form is as shown in table 3.
Figure S200810102573XD00112
Table 3
As shown in table 3, the field of test TLV form is as follows:
Figure S200810102573XD00113
Type: be used to discern the type of TLV, the type of test TLV is 32.
Length: sign includes the length of the numeric field of test patterns type and CRC-32 with byte calculating.
Figure S200810102573XD00115
Sign indicating number type kind: the kind of sign test patterns type comprises 0 ' Null signal without CRC-32 '
1′Null?signal?with?CRC-32′
2′PRBS(2^31-1)without?CRC-32′
3′PRBS(2^31-1)with?CRC-32′
4~255 keep
Figure S200810102573XD00121
The test patterns type: the test patterns type of a n (n≤length) byte is PRBS 2^31-1 or zero (complete a zero) sign indicating number type.
Figure S200810102573XD00122
The redundancy check code of CRC-32:32bit covers last byte before from the type to CRC-32.
Figure S200810102573XD00123
End of a period TLV: the value of complete 0 byte.
So far, just formed test packet with double-deck TAG.
Except that aforesaid way, the concrete enforcement of this step can also for: test packet that software generates band internal layer TAG sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, and test port increases the outer TAG identical with user's data message to be measured for the test packet that receives.The final test packet that also can form with double-deck TAG, user's to be measured sign still is the outer TAG of message, and is identical in wherein concrete message content and form and the aforesaid way, just repeats no more here.
Certainly as previously mentioned, in the test packet of above-mentioned formation, DATA part also can be the ETH-LB message, and its concrete form also defines in Y.1731 at ITU-T.Behind the concrete message content of this format organization, also can form corresponding test packet and carry out the flux test.In addition, in the process of above-mentioned generation test packet, preferably, carry out the generation of test packet with the assigned rate of flux to be measured.
Step 2 is sent the test packet that test port obtains into the lowest priority queue of setting up in the priority query that sends the switch output port, the user data message of input port reception is sent into the respective priority formation of output port according to priority.
For guaranteeing that important and low delayed data preferentially sends, at existing transmission switch output port, be provided with priority query (priority query 0~7 as shown in Figure 5), the user data message that input port receives is admitted to the corresponding priority level formation according to priority.Among the present invention, increase a lowest priority queue (priority query 8 as shown in Figure 5), user's to be measured test packet is sent into this lowest priority queue at output port.Like this, the user data message has superposeed behind the test packet, preferentially abandons test packet for the part that exceeds CIR/EIR, thereby guarantees not influence the normal forwarding of user data message.In this step, preferably, the user data message amount of statistics input port is thought the reception situation of judging the user data message in the flux measurement process.
Step 3 is provided with ductility limit speed based on outer TAG at the output port that sends switch Switch A, requires to send the user's data message to be measured and the test packet of buffer memory in the priority query according to speed limit.
In this step, based on outer TAG ductility limit speed is set at output port, wherein, the speed limit that is provided with is the assigned rate CIR or the EIR of flux to be measured, thereby make to send the assigned rate that user's data message to be measured that switch sends at output port and the shared total bandwidth of test packet equal flux to be measured, to carry out the measurement of flux bandwidth.Simultaneously, because test packet is gone into lowest priority queue in step 2, therefore the priority of user data message is higher than test packet, thereby guarantees that the user data message can preferentially send, and the ETH-Test test packet that exceeds flux assigned rate CIR to be measured or EIR will be dropped.
In this step, preferably, further user data message and the test packet that sends based on outer TAG statistics at output port, and the message that abandons is that the user provides the related data in the flux measurement process with the convenience.
So far, in the flux measurement process, the operating process that sends exchanger side finishes.Next, the operation to other equipment is described in detail.In the present embodiment, user data message and test packet are forwarded to desampler Switch B by intermediate equipment shown in Figure 5 after being sent by the transmission switch.
Preferably, intermediate equipment can be added up the data message and the shared total bandwidth of test packet that receive according to the outer TAG of message in the message repeating process; Perhaps, intermediate equipment can be added up shared bandwidth of user data message to be measured and the shared bandwidth of user test message to be measured respectively according to outer TAG.More above-mentioned dual mode, the mode of statistics total bandwidth is handled simply, and is lower to the disposal ability requirement of middle equipment, very little to the message time delay influence; The mode of difference statistics message and test packet, owing to need resolve to judge it specifically is data message or test packet to message content, therefore this mode has certain requirement to the hardware handles ability of middle equipment, if the disposal ability of intermediate equipment meets the demands, can adopt this mode.
Behind user's data message to be measured and test packet arrival desampler Switch B, carry out following steps:
Step 4, desampler Switch B based on outer TAG, adds up the user's data message to be measured and the shared total bandwidth of test packet that receive at input port.
Can determine the user's to be measured that receiving terminal in the flux measurement process receives the shared total bandwidth of message by this step, like this,, can determine whether this user's to be measured real fluxes bandwidth reaches requirement in conjunction with the assigned rate of flux to be measured.Wherein, the bag number of test packet can obtain by the sequence number field in the ETH-Test message.
Step 5, desampler identification also abandons test packet, normally transmits data message.
In this step, the test packet processing unit in the desampler discerns and abandons user's to be measured test packet from the message that input port receives.Particularly, be that bridge MAC Address, the type of message of Switch B is that Ethernet OAM message, OpCode are 37 (TST type) rule-based filtering ETH-Test test packets and make discard processing according to packet outer layer tag, destination address.The user data message is then normally transmitted.
Step 6, desampler is at output port statistics user data message.
By the input user data message amount of statistics in the user data message added up in this step and the step 2, can determine in the measuring process of flux bandwidth whether user's data message transmissions situation exists packet loss phenomenon etc.
So far, the flux measurement method flow in the present embodiment finishes.After above-mentioned flow process finishes, can show the statistics that sends switch, intermediate equipment and desampler respectively according to outer TAG by order line or webmastering software, comprise the data message amount that sends the switch input port, the data message amount of desampler output port, send data message and the shared total bandwidth of test packet that the switch output port sends, data message and the shared total bandwidth of test packet that the desampler output port receives, the total bandwidth that data message that intermediate equipment is transmitted and test packet are shared etc.By above-mentioned statistics, can obtain flux bandwidth end to end, wherein this flux bandwidth is user's data message to be measured and the shared total bandwidth of test packet.
And, by in flux measurement end to end, utilize data message and the test packet shared total bandwidth of intermediate equipment statistics by this intermediate equipment, thus can be when end-to-end flux measurement result meet the demands, the equipment at flux bandwidth bottleneck place, location.
In the implementation process of the foregoing description, transmission switch and desampler can use the concrete structure shown in Fig. 6 and 7.
Transmission switch as shown in Figure 6, than transmission switch shown in Figure 3, its output port specifically comprises a plurality of priority queries and speed limit transmitting element.
Wherein, input port is further used for adding up the shared bandwidth of user data message to be measured; Test port is used for the test packet of the double-deck TAG of receiving belt, perhaps is used for the test packet of receiving belt internal layer TAG and increases the outer TAG identical with user's data message to be measured; Lowest priority queue in a plurality of priority queries in the output port is used for the cache test message, and other priority queries except that described lowest priority are used for buffer memory user's data message to be measured; Speed limit transmitting element in the output port based on user's to be measured sign, carries out speed limit with the message in a plurality of priority queries according to priority and sends, and speed limit is the assigned rate of flux to be measured.In the present embodiment, user's to be measured sign is the outer TAG of message.
Desampler as shown in Figure 7 than desampler shown in Figure 4, further comprises test packet processing unit and output port.Wherein, the test packet processing unit is used for message identification that receives from input port and the test packet that abandons user to be measured; Output port is used for the user's data message to be measured that input port receives is added up and normally transmitted; Flux is preserved the unit, is further used for preserving the user's data message to be measured that described output port counts.
In the embodiment of the invention described above, be to be the explanation that example is carried out with QinQ form encapsulated message.As previously mentioned, the input port that sends switch also can utilize MACinMAC form encapsulated message to implement the present invention.Particularly, adopt double-deck MAC Address head to come message is encapsulated among the MACinMAC, increased outer MAC head and professional extension tag I-SID provides better service expansion capability, its message encapsulation format is as shown in table 4.
B-DA B-SA B-Tag I-Tag S-Tag C-Tag EType Data FCS
Table 4
Wherein,
-B-DA: operator's target MAC (Media Access Control) address;
-B-SA: operator's source MAC;
-B-TAG: the Service VLAN identifier is used for being assigned to many forward-paths of same destination device;
-I-TAG: service marker, concrete field is as shown in table 5, comprises the transmission priority I-PCP and the loss priority I-DEI of message, and the I-SID of identification service example, and has comprised the purpose MAC (C-DA) and the source MAC (C-SA) of user's message;
-S-TAG: service VLAN identifier;
-C-TAG: user vlan identifier;
-EType: protocol type, refer to the high-level protocol of packet, represent the ARP agreement as 0x0806,0x0800 represents the IP agreement, 0x8902 represents the Ethernet OAM agreement;
-Data: be the arbitrary value sequence of one group of n (46=<n=<1500) byte, frame total value minimum is 64 bytes, the message content that promptly encapsulates with the MACinMAC form among the present invention;
-FCS:Frame Check Sequence, frame check sequence.
?I-PCP I-DEI NCA Res1 Res2 I-SID C-DA C-SA
Table 5
In above-mentioned message encapsulation format, physics forward-path of the purpose MAC of a double-deck MAC ectomesoderm, source MAC and B-Tag unique identification, the I-SID field identification srvice instance of I-Tag label, thus realized the deployment of the inner point-to-point vpn service of metropolitan area network.
Adopt this type of packaged type if send the switch input port, when carrying out certain user's end-to-end flux measurement, in fact be exactly to measure in the physics forward-path that is identified with purpose MAC, source MAC and B-Tag flux with certain enterprise customer that I-SID was identified.
Concrete enforcement process of the present invention is compared with the flow process among the embodiment one, all similar in the processing that sends switch and intermediate equipment, difference only is: the test packet that test port obtained that sends on the switch all encapsulates in above-mentioned MACinMAC mode, wherein, the B-DA of test packet, B-SA, I-SID among B-TAG and the I-TAG is identical with the respective field in the user data message, and with the combination of above-mentioned field as user ID to be measured, in whole flux measurement process, serve as according to carrying out ductility limit speed all with these field combination, and the flux bandwidth of test packet and data message statistics.
At the desampler place, slightly different among the processing of being carried out and the embodiment one, be specially: with user data message and the test packet MACinMAC decapsulation that receives, heading fields such as I-SID among B-DA, B-SA, B-TAG, the I-TAG at first are stripped from, be that bridge MAC Address, the type of message of desampler is that Ethernet OAM message, OpCode are 37 (TST type) rule-based filtering ETH-Test test packet (is example with the ETH-Test message) and make discard processing according to C-DA again, the user data message is then normally transmitted.In addition, the user data message and the test packet that receive based on the statistics of the I-SID among B-DA, B-SA, B-TAG, the I-TAG at desampler Switch B incoming interface place, if not multiplexing, also can only add up based on I-SID for different physical link I-SID.The bag number of test packet can obtain by the sequence number field in the ETH-Test message.At output port place statistics user data message.
The above-mentioned embodiment that is flux measurement method among the present invention.As seen, use method of the present invention, can under the situation that does not influence the user data service forwarding, measure flux bandwidth end to end in real time.Specifically in the above-described embodiment, provided the process of under two kinds of packing forms, carrying out flux measurement.In fact, for other two layer message encapsulation, flux measurement method of the present invention is suitable equally, just test packet is carried out corresponding encapsulation and gets final product according in this message encapsulation user's to be measured respective identification being carried out counting messages, just repeats no more here.
Being preferred embodiment of the present invention only below, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (16)

1, a kind of flux measurement method end to end is characterized in that, this method comprises:
Send switch and receive user's data message to be measured at input port, and obtain the test packet that sends to desampler at default test port, described test packet carries user's to be measured sign;
When the shared bandwidth of user data message to be measured during less than the assigned rate of flux to be measured, described transmission switch sends user's data message to be measured and test packet at output port, make the shared total bandwidth of data message and test packet equal the assigned rate of flux to be measured, and described test packet send with the priority that is lower than data message;
Desampler receives and adds up user's data message to be measured and the shared total bandwidth of test packet in the sign of input port according to user to be measured, as real fluxes bandwidth end to end.
2, method according to claim 1 is characterized in that, described transmission switch obtains described test packet with the assigned rate of flux to be measured;
Described transmission switch sends user's data message to be measured and test packet comprises at output port:
In the priority query that sends the switch output port, increase the priority query that priority is lower than data message in advance, described test packet is added the priority query of described increase, user's data message to be measured is added the corresponding priority level formation according to priority;
The output port that sends switch that is identified at based on user to be measured is provided with ductility limit speed, and speed limit is the assigned rate of flux to be measured, sends the user's data message to be measured and the test packet of buffer memory in the priority query according to described speed limit.
3, method according to claim 1 and 2 is characterized in that, this method further comprises: user's to be measured test packet is discerned and abandoned to desampler, normally transmits user's data message to be measured;
Bandwidth that statistics desampler output port user's data message to be measured is shared and the shared bandwidth of transmission switch input port user's data message to be measured.
4, method according to claim 3 is characterized in that, when the input port that sends switch encapsulates with the QinQ form user's data message to be measured,
Described test port obtains the test packet that sends to desampler and comprises: test packet that software generates with double-deck TAG sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, outer TAG wherein is identical with user's data message to be measured, and destination address is the bridge MAC Address of desampler; Perhaps, test packet that software generates band internal layer TAG sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, and described test port increases the outer TAG identical with user's data message to be measured for the test packet that receives;
The described user's to be measured outer TAG that is designated test packet.
5, method according to claim 4, it is characterized in that, the test packet that user to be measured was discerned and abandoned to described desampler comprises: according to packet outer layer TAG is that user's to be measured outer TAG, bridge MAC Address, the type of message that destination address is desampler are the rule of test packet, filters out and abandon test packet from the message that receives.
6, method according to claim 3 is characterized in that, when the input port that sends switch encapsulates with the MACinMAC form user's data message to be measured,
Described test port obtains the test packet that sends to desampler and comprises: test packet that software generates with double-deck MAC head sends to the test port that sends switch to utilize Smartbit or PC to give out a contract for a project, I-SID among outer target MAC (Media Access Control) address B-DA wherein, outer source MAC B-SA, B-Tag and the I-Tag is identical with user's data message to be measured, C-SA is for sending the bridge MAC Address of switch, and C-DA is the bridge MAC Address of desampler; Perhaps, utilize Smartbit or the PC software of giving out a contract for a project to generate the test packet payload and send to the test port that sends switch, described test port increases the double-deck MAC head identical with user's data message to be measured for the test packet that receives;
The combination of I-SID among described the user's to be measured B-DA that is designated test packet, B-SA, B-Tag and the I-Tag.
7, method according to claim 6 is characterized in that, described desampler further comprises before carrying out described identification and abandoning user's to be measured test packet: the I-SID that will receive among B-DA, B-SA, B-TAG and the I-TAG of message peels off;
Described identification and the test packet that abandons user to be measured comprise: according to C-DA is that bridge MAC Address, the type of message of desampler is the rule of test packet, filters out and abandon test packet the message after peeling off.
8, method according to claim 1 is characterized in that, this method further comprises:
Transmit the intermediate equipment of user's data message to be measured and test packet, according to the user data message to be measured and the shared total bandwidth of test packet of user ID statistics to be measured reception;
Perhaps, transmit the intermediate equipment of user's data message to be measured and test packet, add up the bandwidth that bandwidth that user data message to be measured takies and user test message to be measured take respectively according to user ID to be measured and type of message.
9, method according to claim 1 is characterized in that, the payload of described test packet is ETH-Test message or ETH-LB message.
10, a kind of transmission switch that is used for end-to-end flux measurement is characterized in that this switch comprises:
Test port is used to obtain the test packet that sends to desampler, and described test packet carries user's to be measured sign;
Input port is used to receive user's data message to be measured;
Output port, be used in the shared bandwidth of user's data message to be measured during less than the assigned rate of flux to be measured, the user data message to be measured that test packet that the transmission test port obtains and input port receive, and guarantee that when transmission the shared total bandwidth of data message and test packet equals the assigned rate of flux to be measured, and test packet sends with lowest priority.
11, switch according to claim 10 is characterized in that, described output port comprises a plurality of priority queries and speed limit transmitting element;
Lowest priority queue in described a plurality of priority query is used for the cache test message, and other priority queries except that described lowest priority are used for buffer memory user's data message to be measured;
Described speed limit transmitting element based on user's to be measured sign, carries out speed limit with the message in described a plurality of priority queries according to priority and sends, and speed limit is the assigned rate of flux to be measured.
12, switch according to claim 10 is characterized in that, when the input port of described switch encapsulates with the QinQ form user's data message to be measured,
Described test port is used for the test packet of the double-deck TAG of receiving belt, perhaps is used for the test packet of receiving belt internal layer TAG and increases the outer TAG identical with user's data message to be measured.
13, switch according to claim 10 is characterized in that, when the input port of described switch encapsulates with the MACinMAC form user's data message to be measured,
Described test port is used to receive the test packet that generates with double-deck MAC head, perhaps, is used for acceptance test message payload, also increases the double-deck MAC head identical with user's data message to be measured for the test packet payload that receives.
14, a kind of desampler that is used for end-to-end flux measurement is characterized in that, this switch comprises:
Input port is used for the sign according to user to be measured, receives and add up user's data message to be measured and the shared total bandwidth of test packet;
Flux is preserved the unit, is used for total bandwidth that described input port is counted as real fluxes bandwidth end to end.
15, switch according to claim 14 is characterized in that, this switch further comprises: test packet processing unit and output port,
Described test packet processing unit is used for message identification that receives from input port and the test packet that abandons user to be measured;
Output port is used for the user's data message to be measured that input port receives is added up and normally transmitted;
Described flux is preserved the unit, is further used for preserving the user's data message to be measured that described output port counts.
16, switch according to claim 15 is characterized in that, when described user's data message to be measured and test packet are when encapsulating with the MACinMAC form,
Described input port be further used for the I-SID among B-DA, B-SA, B-TAG and the I-TAG of reception message is peeled off, and the message after will peeling off sends to described output port.
CNA200810102573XA 2008-03-24 2008-03-24 An end-to-end throughput measuring method and device Pending CN101242321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200810102573XA CN101242321A (en) 2008-03-24 2008-03-24 An end-to-end throughput measuring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200810102573XA CN101242321A (en) 2008-03-24 2008-03-24 An end-to-end throughput measuring method and device

Publications (1)

Publication Number Publication Date
CN101242321A true CN101242321A (en) 2008-08-13

Family

ID=39933544

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200810102573XA Pending CN101242321A (en) 2008-03-24 2008-03-24 An end-to-end throughput measuring method and device

Country Status (1)

Country Link
CN (1) CN101242321A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143197A (en) * 2010-08-25 2011-08-03 华为技术有限公司 Method and device for processing emulation service as well as emulation service system
CN102957613A (en) * 2011-08-29 2013-03-06 盛科网络(苏州)有限公司 OAM (Operation Administration and Maintenance) message and data message uniform transmission path method and device in MPLS (Multiple protocol Label Switching)-TP (Transport Profile) network
CN103023720A (en) * 2012-12-04 2013-04-03 迈普通信技术股份有限公司 System and method for testing wide area network (WAN) interface performance
CN103152228A (en) * 2013-03-27 2013-06-12 杭州华三通信技术有限公司 Bandwidth detection method and device
CN103828302A (en) * 2011-09-20 2014-05-28 日本电气株式会社 Diagnostic system
CN103973582A (en) * 2014-05-28 2014-08-06 重庆重邮汇测通信技术有限公司 Testing data stream transmission flow control method and system
CN104270282A (en) * 2014-09-11 2015-01-07 浙江宇视科技有限公司 IP network end-to-end testing method and device
CN105391592A (en) * 2015-12-25 2016-03-09 瑞斯康达科技发展股份有限公司 Packet transport network service detecting and measuring method, device and system
CN112491647A (en) * 2020-11-13 2021-03-12 苏州浪潮智能科技有限公司 Switch message testing method, system and related device
CN113411269A (en) * 2021-07-07 2021-09-17 杭州网易云音乐科技有限公司 Current limiting control method, current limiting control device, storage medium and electronic equipment

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143197A (en) * 2010-08-25 2011-08-03 华为技术有限公司 Method and device for processing emulation service as well as emulation service system
CN102143197B (en) * 2010-08-25 2014-06-25 华为技术有限公司 Method and device for processing emulation service as well as emulation service system
CN102957613A (en) * 2011-08-29 2013-03-06 盛科网络(苏州)有限公司 OAM (Operation Administration and Maintenance) message and data message uniform transmission path method and device in MPLS (Multiple protocol Label Switching)-TP (Transport Profile) network
CN102957613B (en) * 2011-08-29 2015-09-23 盛科网络(苏州)有限公司 In MPLS-TP network, OAM message and data message unify method and the device of forward-path
CN103828302A (en) * 2011-09-20 2014-05-28 日本电气株式会社 Diagnostic system
CN103828302B (en) * 2011-09-20 2018-02-06 日本电气株式会社 diagnostic system
US9369359B2 (en) 2011-09-20 2016-06-14 Nec Corporation Diagnostic system
CN103023720A (en) * 2012-12-04 2013-04-03 迈普通信技术股份有限公司 System and method for testing wide area network (WAN) interface performance
CN103023720B (en) * 2012-12-04 2016-03-09 迈普通信技术股份有限公司 A kind of system and method testing Wide Area Network interface performance
CN103152228B (en) * 2013-03-27 2016-08-24 杭州华三通信技术有限公司 A kind of bandwidth detection method and apparatus
CN103152228A (en) * 2013-03-27 2013-06-12 杭州华三通信技术有限公司 Bandwidth detection method and device
CN103973582A (en) * 2014-05-28 2014-08-06 重庆重邮汇测通信技术有限公司 Testing data stream transmission flow control method and system
CN103973582B (en) * 2014-05-28 2017-04-12 重庆重邮汇测通信技术有限公司 Testing data stream transmission flow control method and system
CN104270282A (en) * 2014-09-11 2015-01-07 浙江宇视科技有限公司 IP network end-to-end testing method and device
CN105391592A (en) * 2015-12-25 2016-03-09 瑞斯康达科技发展股份有限公司 Packet transport network service detecting and measuring method, device and system
CN105391592B (en) * 2015-12-25 2018-11-09 瑞斯康达科技发展股份有限公司 A kind of methods, devices and systems Packet Transport Network business detecting and measured
CN112491647A (en) * 2020-11-13 2021-03-12 苏州浪潮智能科技有限公司 Switch message testing method, system and related device
CN113411269A (en) * 2021-07-07 2021-09-17 杭州网易云音乐科技有限公司 Current limiting control method, current limiting control device, storage medium and electronic equipment
CN113411269B (en) * 2021-07-07 2022-05-17 杭州网易云音乐科技有限公司 Current limiting control method, current limiting control device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN101242321A (en) An end-to-end throughput measuring method and device
US7412536B2 (en) Method and system for a network node for attachment to switch fabrics
US7570648B2 (en) Enhanced H-VPLS service architecture using control word
US8144706B1 (en) Method and apparatus for managing packets in a packet switched network
CN101160850B (en) Method and device for forwarding packet
US20040264472A1 (en) Method and system for open-loop congestion control in a system fabric
US20120051362A1 (en) Metro ethernet service enhancements
US20100067385A1 (en) Ethernet Architecture with Data Packet Encapsulation
EP1551136A1 (en) Hierarchical flow-characterizing multiplexor
CN108307434A (en) Method for flow control and equipment
CN101632273A (en) Methods, systems, and computer program products for source-aware IP routing at a media gateway
US20050157750A1 (en) Method and system for frame relay and Ethernet service interworking
CN101102261A (en) Method and device for Ethernet carrier asynchronization transmission mode
WO2007071153A1 (en) A method, a data network system and a network node for transmitting data packets
US20070171917A1 (en) Apparatus and method for implementing multiple high speed switching fabrics in an ethernet ring topology
JP4584846B2 (en) Network relay device and packet transfer method
KR101640017B1 (en) Packet transport system and traffic management method thereof
CN1674536A (en) Performance monitoring of transparent LAN services
CN102195872A (en) Communication apparatus, communication method, and computer program
JP5347836B2 (en) Communication apparatus and communication method
EP1704491B1 (en) A method and systems for resource bunlding in a communications network
US20050157728A1 (en) Packet relay device
US7289431B2 (en) Packet transmission method
US20050249247A1 (en) Methods and apparatus for multiplexing multiple signal sources over a single full duplex ETHERNET link
US9258140B2 (en) Architecture for routing data of a customer network over provider's network in provider backbone bridges

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20080813

C20 Patent right or utility model deemed to be abandoned or is abandoned