CN102984018A - Method, device and system for Ethernet packet loss measurement - Google Patents

Method, device and system for Ethernet packet loss measurement Download PDF

Info

Publication number
CN102984018A
CN102984018A CN2011102588245A CN201110258824A CN102984018A CN 102984018 A CN102984018 A CN 102984018A CN 2011102588245 A CN2011102588245 A CN 2011102588245A CN 201110258824 A CN201110258824 A CN 201110258824A CN 102984018 A CN102984018 A CN 102984018A
Authority
CN
China
Prior art keywords
test
identification information
stream
frame
test identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011102588245A
Other languages
Chinese (zh)
Other versions
CN102984018B (en
Inventor
唐美玲
谢雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110258824.5A priority Critical patent/CN102984018B/en
Publication of CN102984018A publication Critical patent/CN102984018A/en
Application granted granted Critical
Publication of CN102984018B publication Critical patent/CN102984018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a method and a device for Ethernet packet loss measurement. The method includes: a measurement requester sends a loss measurement message LMM frame to a measurement responder, measurement identification information is carried in the LMM frame, and the measurement identification information is corresponding to traffic-statistics rules; the measurement requester receives a loss measurement reply LMR frame sent from the measurement responder, and packet loss measurement, and performs the loss measurement according to the statistical value of service messages carried in the in the LMR frame and the statistical value of local messages, wherein the statistical value of service messages carried in the in the LMR frame is determined by the measurement responder according to the traffic-statistics rules corresponding to the measurement identification information. According to the embodiment of the present invention, the accuracy of the packet loss measurement can be improved.

Description

Ethernet loss packet test method, equipment and system
Technical field
The present invention relates to the network communications technology, relate in particular to a kind of Ethernet loss packet test method, equipment and system.
Background technology
In the carrier class Ethernet service, operation management maintain (the Operation Administration and Maintenance of definition, OAM) model comprises maintenance entity group (Maintenance Entity Group, MGE) end points (MEG End Point, MEP) and MEG intermediate point (MEG Intermediate Point, MIP).MEP is the end points of MEG, can initiate and terminate for the OAM frame of fault management and performance monitoring.MIP is the intermediate node of MEG, can respond some OAM frame, but can not initiate the OAM frame.
The performance management of carrier class Ethernet service level comprises the packet loss measurement function.Wherein, single-ended packet loss detection is used for measuring as required the packet loss statistics between a MEP and the opposite end MEP.In this function, MEP as test request side sends packet loss measurement message (Loss Measurement Message to the MEP as the test answer party, LMM) frame, the test answer party returns packet loss and measures answer (Loss Measurement Reply to test request side, LMR) frame carries corresponding service message statistical value in LMM frame wherein and the LMR frame.
In the wireless Ethernet networking scene with VLAN (Virtual Local Area Network, VLAN) identification service, may there be the connection of point-to-multipoint.For example this scene comprises base station (NodeB) _ 1 and NodeB_2 and switch (Switch), and NodeB_1 and NodeB_2 communicate to connect with Switch respectively.At this moment, because professional with the VLAN sign, the statistical value of the service message that then obtains at Switch is also with the VLAN sign, and for example statistics is service message statistical value corresponding to VLAN_1.Suppose that NodeB_1 and NodeB_2 all can carry out business corresponding to VLAN_1, then the service message statistical value corresponding to VLAN_1 of Switch statistics will be the counting from the sum of the service message of NodeB_1 and NodeB_2.But the value of aforesaid way statistics is inaccurate, and it also is inaccurate causing packet loss to be measured.Therefore, prior art can't be carried out accurately loss packet test under the scene of point-to-multipoint.
Summary of the invention
The embodiment of the invention provides a kind of Ethernet loss packet test method, equipment and system, tests inaccurate problem in the prior art in order to solve under the point-to-multipoint scene, improves the loss packet test accuracy.
On the one hand, the embodiment of the invention provides a kind of Ethernet loss packet test method, comprising:
Test request direction test answer party sends packet loss and measures message LMM frame, carries the test identification information in the described LMM frame, the corresponding stream of described test identification information statistical rules;
Test request side receives the packet loss measurement answer LMR frame that described test answer party sends, and according to the statistical value of the service message that carries in the described LMR frame, and the statistical value of local service message carries out loss packet test, and the statistical value of the service message that carries in the described LMR frame is that described test answer party is determined according to stream statistical rules corresponding to described test identification information.
On the other hand, the embodiment of the invention provides a kind of Ethernet loss packet test method, comprising:
The test answer party receives the packet loss measurement message LMM frame that test request side sends, and carries the test identification information in the described LMM frame;
The test answer party is determined stream statistical rules corresponding to test identification information that carry in the described LMM frame according to the corresponding relation of pre-configured test identification information with the stream statistical rules, and obtains the statistical value of service message according to described stream statistical rules;
The test answer party is carried at packet loss with the statistical value of described service message and measures to reply in the LMR frame and send to described test request side, and described LMR frame is used to indicate described test request side and carries out loss packet test.
On the one hand, the embodiment of the invention provides a kind of Ethernet loss packet test equipment, comprising:
Sending module is used for sending packet loss to the test answer party and measures message LMM frame, carries the test identification information in the described LMM frame, the corresponding stream of described test identification information statistical rules;
Measurement module, be used for receiving the packet loss measurement answer LMR frame that described test answer party sends, and according to the statistical value of the service message that carries in the described LMR frame, and the statistical value of local service message carries out loss packet test, and the statistical value of the service message that carries in the described LMR frame is that described test answer party is determined according to stream statistical rules corresponding to described test identification information.
On the other hand, the embodiment of the invention provides a kind of Ethernet loss packet test equipment, comprising:
Receiver module receives the packet loss measurement message LMM frame that test request side sends, and carries the test identification information in the described LMM frame;
Determination module, be used for according to the corresponding relation of pre-configured test identification information with the stream statistical rules, determine stream statistical rules corresponding to test identification information that carry in the described LMM frame that described receiver module receives, and obtain the statistical value of service message according to described stream statistical rules;
Sending module, the statistical value that is used for described service message that described determination module is obtained are carried at packet loss and measure and reply the LMR frame and send to described test request side, and described LMR frame is used to indicate described test request side and carries out loss packet test.
The embodiment of the invention provides a kind of Ethernet loss packet test system, comprising: two kinds of above-mentioned equipment.
As shown from the above technical solution, the embodiment of the invention is by carrying the test identification information in the LMM frame, and the test answer party is selected the stream statistical rules according to this test identification information, realizes the refinement of statistical, can improve the accuracy of loss packet test.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use was done a simply introduction during the below will describe embodiment, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 a is the method flow schematic diagram of first embodiment of the invention;
Fig. 1 b is the wireless ethernet networking schematic diagram that the embodiment of the invention is used;
Fig. 2 is the method flow schematic diagram of second embodiment of the invention;
Fig. 3 is the method flow schematic diagram of third embodiment of the invention;
Fig. 4 is the message format schematic diagram of the ethernet frame that adopts in the embodiment of the invention;
Fig. 5 is the structural representation of LMM PDU in the embodiment of the invention;
Fig. 6 is the structural representation of Test ID TLV in the embodiment of the invention;
Fig. 7 is the structural representation of LMR PDU in the embodiment of the invention;
Fig. 8 is the device structure schematic diagram of fourth embodiment of the invention;
Fig. 9 is the device structure schematic diagram of fifth embodiment of the invention;
Figure 10 is the system configuration schematic diagram of sixth embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 a is the method flow schematic diagram of first embodiment of the invention, comprising:
Step 11: test request direction test answer party sends the LMM frame, carries the test identification information in the described LMM frame, the corresponding stream of described test identification information statistical rules.
In the embodiment of the invention, in order to realize fine-grained loss packet test, increased test sign (Test ID) information newly in existing LMM frame, which information this test identification information can indicate according to which stream is carried out loss packet test.
Particularly, before loss packet test, can and test pre-configured test identification information and the corresponding relation that flows statistical rules in the answer party in test request side.The stream statistical rules is used for showing according to specific information to be added up specific stream, shows namely according to which information which stream is added up.For example, specific information can be that destination address (DA) and the source address (SA) according to service message added up, and specifically stream can be to be that DA_1 and SA are that the service message of SA_1 is added up to DA.
Behind the above-mentioned corresponding relation of configuration, test request side and test answer party can carry out respective handling according to this corresponding relation in test request side and test answer party.For example, for test request side, can according to this corresponding relation, determine in order to be carried at the test identification information in the LMM frame.For example, the stream statistical rules of test identification information _ 1 correspondence is stream statistical rules _ 1, and stream statistical rules _ 1 particular content is: according to DA and SA, be that DA_1 and SA are that the service message of SA_1 is added up to DA.If then need to be according to DA and SA, be that DA_1 and SA are the service message of SA_1 when adding up to DA, test request side determines that the test identification information is test identification information _ 1, afterwards, will test identification information _ 1 and be carried at and send to the test answer party in the LMM frame.
Correspondingly, the test answer party receives in the LMM frame, obtain the test identification information and be test identification information _ 1, then can determine that according to above-mentioned corresponding relation corresponding stream statistical rules is: according to DA and SA, be that DA_1 and SA are that the service message of SA_1 is added up to DA.Afterwards, will to add up DA_1 and SA be the service message of SA_1 to the test answer party and the numerical value that statistics obtains is carried in the LMR frame returns to test request side.
Further, test identification information in the embodiment of the invention can adopt type lengths values (Type Length Value, TLV) form is namely tested identification information and is comprised: the length of the type of test identification information, test identification information and the value of test identification information.Above-mentioned stream statistical rules can comprise: the stream information of stream statistics foundation and statistic fluid, and the stream statistics according to showing according to which information is added up, and the stream information of statistic fluid shows to which stream to be added up.At this moment, above-mentioned test identification information can comprise with the corresponding relation of stream statistical rules: the type of test identification information and the corresponding relation that flows the statistics foundation, and the corresponding relation of the stream information of the value of test identification information and statistic fluid.At this moment, the type by the test identification information and the value of test sign can determine respectively the stream statistics and and the stream information of statistic fluid, in order to finally obtain flowing statistical rules.
Step 12: test request side receives the LMR frame that described test answer party sends, and according to the statistical value of the service message that carries in the described LMR frame, and the statistical value of local service message carries out loss packet test to described LMR, and the statistical value of the service message that carries in the described LMR frame is that described test answer party is determined according to stream statistical rules corresponding to described test identification information.
Further, also can carry the test identification information in this LMR frame, test request side is after receiving the LMR frame, judge at first whether the test identification information that carries in the LMR frame is the test identification information that oneself sends, if so, then carry out loss packet test, otherwise can abandon the LMR frame of reception.
The computing formula of concrete loss packet test can be as follows:
Frame abandons Far-end=| TxFCf[t c]-TxFCf[t p] |-| RxFCf[t c]-RxFCf[t p] |
Frame abandons Near-end=| TxFCb[t c]-TxFCb[t p] |-| RxFC1[t c]-RxFC1[t p] |
Wherein, proximal measurement is the number of dropped packets that receives with local terminal of measuring that the opposite end sends, the number of dropped packets that receives with test request side of testing namely that answer party sends; Far-end measuring is the number of dropped packets that receives with the opposite end of measuring that local terminal sends, i.e. the number of dropped packets that receives with the test answer party that sends of test request side.
TxFCf[t c] be the transmission statistical value of the service message of test request side when this sends the LMM frame, RxFCf[t c] for testing the receiving and counting value of the service message of answer party when this receives the LMM frame, TxFCf[t p] be the transmission statistical value of the service message of test request side when sent the LMM frame last time, RxFCf[t c] for testing the receiving and counting value of the service message of answer party when this receives the LMM frame; TxFCb[t c] for testing the transmission statistical value of the service message of answer party when this sends the LMR frame, RxFC1[t c] be the receiving and counting value of the service message of test request side when this receives the LMR frame, TxFCb[t p] for testing the transmission statistical value of the service message of answer party when sent the LMR frame last time, RxFC1[t p] for the receiving and counting value of the service message of test request side when received the LMR frame last time.
Consider above-mentioned two time points be because test request side and the test answer party initial service message statistical number may be different, so with relative statistical number (such as TxFCf[t c]-TxFCf[t p]) rather than absolute statistical number (such as TxFCf[t c]) subtract each other processing.Certainly, if statistics is the number of dropped packets that adds up, also can adopt absolute statistical number to subtract each other processing, at this moment, test request side and test answer party should begin to carry out message number statistics from same starting point.
The equipment that above-mentioned test request side and test answer party can be measured for the packet loss of supporting OAM, concrete as, test request side is any in base station, switch, router, the base station controller, and the test answer party also can be in base station, switch, router, the base station controller any.
Above-mentioned test request side refers to initiate the equipment that packet loss is measured, and for example sends the equipment of LMM frame, and above-mentioned test answer party refers to respond the equipment that packet loss is measured, and for example receives the LMM frame and replys the equipment of LMR frame.
Fig. 1 b is the wireless ethernet networking schematic diagram that the embodiment of the invention is used, base station in this network _ 1 base station _ 2 and switch all can carry out the business of VLAN_1, VLAN_2, suppose that switch will add up service message corresponding to VLAN_1, then corresponding statistical value will be the sum from the service message of base station _ 1 and base station _ 2.And when packet loss is measured, for example, measure the number of dropped packets between base station _ 1 and the switch, the message number of switch statistic data only should be from base station _ 1, and should not the message sum of above-mentioned base station _ 1 and base station _ 2, that is to say, if only adopt VLAN to carry out the counting messages meeting so that packet loss is measured inaccurate.And can carry the test identification information at the LMM frame in the embodiment of the invention, the test answer party can find corresponding stream statistical rules according to the test identification information, to satisfy the loss packet test needs, guarantees the accurate of loss packet test.
Further, above-mentioned stream statistical rules can be at least two.
Present embodiment is by carrying the test identification information in the LMM frame, the corresponding stream of this test identification information statistical rules, adopt the stream statistical rules to determine statistical value when being implemented in loss packet test, rather than only add up according to vlan information in the prior art, realize the fine granularity of loss packet test, can carry out the not division of homogeneous turbulence statistical rules according to different business statistics needs, and can when the various flows statistical rules, carry out correct loss packet test.
Fig. 2 is the method flow schematic diagram of second embodiment of the invention, comprising:
Step 21: the test answer party receives the LMM frame that test request side sends, and carries the test identification information in the described LMM frame.
Wherein, the test request side as above method shown in the embodiment generates test sign (Test ID) information, should test afterwards identification information and be carried at and send to the test answer party in the LMM frame.
Step 22: the test answer party is determined stream statistical rules corresponding to test identification information that carry in the described LMM frame according to the corresponding relation of pre-configured test identification information with the stream statistical rules, and obtains the statistical value of service message according to described stream statistical rules.
For example, pre-configured corresponding relation comprises: the corresponding stream of test identification information _ 1 statistical rules _ 1, stream statistical rules _ 1 particular content is: according to DA and SA, be that DA_1 and SA are that the service message of SA_1 is added up to DA.At this moment, if the test identification information that carries in the LMM frame that the test answer party receives is test identification information _ 1, then tests answer party and with convection current statistical rules _ 1 particular content be: according to DA and SA, be that DA_1 and SA are that the service message of SA_1 is added up to DA.
Step 23: the test answer party is carried at the statistical value of described service message and sends to described test request side in the LMR frame, and described LMR frame is used to indicate described test request side and carries out loss packet test.
Further, the test answer party can also carry the test identification information in the LMR frame, so that the test identification information of test request side in the LMR frame that determine to receive carries out loss packet test when being the test identification information of test request side oneself transmission.Be understandable that under normal circumstances, the test answer party can directly copy to the test identification information that carries in the LMM frame in the LMR frame.Certainly, under abnormal conditions, the test answer party may will not be that the test identification information that test request side sends is carried in the LMR frame also.
Further, above-mentioned stream statistical rules can be at least two.
Present embodiment is by determining the stream statistical rules according to the test identification information that carries in the LMM frame, the corresponding stream of this test identification information statistical rules, adopt the stream statistical rules to determine statistical value when being implemented in loss packet test, rather than only add up according to vlan information in the prior art, realize the fine granularity of loss packet test, can carry out the not division of homogeneous turbulence statistical rules according to different business statistics needs, and can when the various flows statistical rules, carry out correct loss packet test.Further, whether the test request square tube is crossed the validation test identification information is that oneself sends, and can further improve packet loss accuracy and saving resource.
Fig. 3 is the method flow schematic diagram of third embodiment of the invention, Fig. 4 is the message format schematic diagram of the ethernet frame that adopts in the embodiment of the invention, Fig. 5 is the structural representation of LMM PDU in the embodiment of the invention, Fig. 6 is the structural representation of Test ID TLV in the embodiment of the invention, and Fig. 7 is the structural representation of LMR PDU in the embodiment of the invention.
Referring to Fig. 3, the method flow of present embodiment comprises:
Step 31: test request side and test answer party carry out pre-configured, configuration testing sign (Test ID) information and the corresponding relation that flows statistical rules.
In the present embodiment, the Test id information is to represent with the TLV form, and namely the Test id information comprises: type (Test Type), length (Length) and value (Test ID value).The stream statistical rules can comprise: show the stream statistics foundation according to which information, and show the stream information for the treatment of statistic fluid to which stream.
In the present embodiment, can dispose respectively Test Type and stream statistics foundation, and Test ID value and the corresponding relation for the treatment of the stream information of statistic fluid.Afterwards, can determine corresponding stream statistics foundation and the stream information for the treatment of statistic fluid according to Test Type and Test ID value respectively, namely can obtain according to which information which stream being added up.
Wherein, Test Type can be as shown in table 1 with the corresponding relation of stream statistics foundation:
Table 1
Test Type Stream statistics foundation
1 DA+SA
2 DA+SA+VLAN ID+VLAN priority
3 MEP ID
... ...
"+" in the table 1 expression " with " relation, for example, DA+SA represents that destination address (DA) and the source address (SA) according to service message add up.
Test ID value with treat that the corresponding relation of the stream information of statistic fluid can be as shown in table 2:
Table 1
Figure BDA0000088681070000091
Figure BDA0000088681070000101
For example, when Test ID value is 1, shows and treat that statistic fluid is the service message of DA=0000.0003.0004 and SA=0000.0005.0008.
Step 32: test request side produces the LMM frame, and sends to the test answer party.
Wherein, carry the test identification information in this LMM frame, be specially the Test ID (Test ID TLV) of TLV form in the present embodiment.The test identification information that carries in this LMM frame can be determined according to stream to be added up, for example, stream to be added up is the service message of DA=0000.0003.0004 and SA=0000.0005.0008, then according to above-mentioned corresponding relation, the type of the test identification information that then carries in the LMM frame is 1, and value also is 1.
In the embodiment of the invention, LMM frame and follow-up LMR frame belong to ethernet frame, can carry corresponding LMM protocol Data Unit (Protocol Data Unit, PDU) or LMR PDU with the data field in the ethernet frame.
The message format of ethernet frame can be as shown in Figure 4, and among Fig. 4, the implication of each field is as follows:
DA (Destination Address): target MAC (Media Access Control) address.
SA (Source Address): source MAC.
Tag (mark): be used for this ethernet frame of mark, comprising: TPID, User Priority, CFI and VLAN ID specifically describe as follows:
TPID (Tag Protocol Identifier): the tag protocol sign, Ethernet is fixed as 0x8100.
User Priority (User Priority), corresponding 0~7.
CFI (Canonical Format Indicator): canonical Format Indicator, indicate whether MAC Address meets ethernet standard, meeting is 0.
VLAN ID: VLAN under the identification frames, scope 0-4095.
FCS (Frame Check Sequence): Frame Check Sequence
Data field (Frame Load): OAM PDU just is carried in this field.For example, when ethernet frame is the LMM frame, this field carrying LMM PDU; When ethernet frame is the LMR frame, this field carrying LMR PDU.
Particularly, when Frame Load field was used for carrying OAM PDU (LMM PDU or LMRPDU), the structure of the LMM PDU in the present embodiment can be referring to Fig. 5.
The implication of each field among Fig. 5 is as follows:
MEL: refer to the MEG grade, be used for the MEG grade of sign OAM PDU.Number range from 0 to 7.
Version: the version that is used for sign OAM agreement.Version is always 0 in the prior art (such as Y.1731 the agreement of being numbered of International Telecommunications Union).
Command code (Operation Code, OpCode): be used for the type of sign OAM PDU, be used for the content of identification OAM PDU remainder.Wherein the OpCode of LMM is that the OpCode of 43, LMR is 42.
Mark: the type of OAM PDU is depended in the use of each bit in this field.
TLV bias: comprise among the OAM PDU first TLV with respect to the number of offsets of TLV bias field.The type of the numerical value of this field and OAM PDU interrelates.When the TLV bias was 0, it pointed to first byte after the TLV bias field.End of a period TLV: be used for filling, can be the value of all-zero word joint.
TxFcf: the transmission statistical value of the service message when being used for record transmission LMM frame.
Be preserved for the RxFCf among the LMR: the receiving and counting value that is used for the service message of recipient when LMR frame record receives the LMM frame.
Be preserved for the TxFCb among the LMR: the transmission statistical value that is used for the service message of recipient when LMR frame record sends the LMR frame.
Different from existing LMM PDU is also further to comprise among the LMM PDU in the present embodiment: Test ID TLV (being the test identification information of TLV form).
The form of Test ID TLV in the present embodiment can be referring to Fig. 6, and this Test ID TLV comprises: the length (Length) of the type (Test type) of test identification information, test identification information and the value (Test ID) of test identification information.Being described as follows of each field:
Test Type:1 byte, the feature of the stream of expression statistics is as adding up according to DA+SA, MEP ID, DA+SA+VLAN+VLAN Priotity;
The Length:1 byte, the length of expression Test ID;
Test ID: take the byte number of " Length " indication, the stream ID of MEP (be specially test answer party) statistics is distributed in expression, is an integer value or MEP ID or generates according to other rules, distributes before measurement.Test ID is unique on a MEP.
Step 33: the test answer party is judged the validity of the LMM frame that receives.
The test answer party can be judged the validity of the LMM frame of reception in the following way:
If the MEG grade of the LMM frame that receives (concrete can obtain from the MEL field of LMM PDU) greater than the MEG grade of oneself, is transmitted according to OAM transparent forwarding principle Y.1731;
If the MEG grade of the LMM frame that receives thinks that less than the MEG grade of oneself invalid frame can be abandoned;
If the MEG grade of the LMM frame that receives equals own MEG grade, judgement DA is the MAC Address of oneself whether, if so, be defined as valid frame and process, if not, being defined as invalid frame can be abandoned.
Step 34: the test answer party is determined corresponding stream statistical rules according to test identification information (Test ID TLV) after the LMM frame of determining to receive is effective, and obtains statistical number according to this stream statistical rules.
For example, the type of Test ID is 1, then can know that according to pre-configured information corresponding stream statistical rules is: add up according to DA+SA, in addition, the value of supposing Test ID is 1, DA=0000.0003.0004 then, SA=0000.0005.0008, therefore, the service message of statistics will be the service message of DA=0000.0003.0004 and SA=0000.0005.0008.
Step 35: the test answer party produces the LMR frame, and sends to test request side.
Wherein, the LMR PDU structure of this LMR frame can be referring to Fig. 7.Particularly, the test answer party copies to the TxFCf value in the LMM frame in the TxFCf field of LMR frame, and the transmission statistical number that will obtain according to above-mentioned stream statistical rules is carried in the TxFCb field, and the receiving and counting number is carried in the RxFCf field.
In addition, the sa field of LMR frame is the MAC Address of test answer party;
The da field of LMR frame copies from the sa field of LMM frame;
The value of the Test ID of LMR frame copies from the Test id field of LMM frame;
The OpCode value of LMR frame is 42;
Other field in the LMR frame can directly copy from the LMM frame.
Step 36: after test request side receives the LMR frame, judge the validity of LMR frame, and when the LMR frame is effective, carry out loss packet test.
Test request side can judge the validity of LMR frame in the following way:
If the MEG grade of the LMR frame that receives (concrete can obtain from the MEL field of LMR PDU) greater than the MEG grade of oneself, is transmitted according to OAM transparent forwarding principle Y.1731;
If the MEG grade of the LMR frame that receives thinks that less than the MEG grade of oneself invalid frame is abandoned;
If the MEG grade of the LMR frame that receives equals own MEG grade, judgement DA is the MAC Address of oneself whether, if so, be defined as valid frame and process, if not, be defined as invalid frame and abandoned;
The Test ID that judges the LMR frame is the Test ID of own transmission whether, if not, also think this LMR frame be invalid to be abandoned.
All the other situations, the MEG grade of the LMR frame that namely receives is identical with oneself MEG grade, and the DA of LMR frame be the MAC Address of oneself, and the Test ID in the LMR frame is the Test ID of oneself transmission, and then the LMR frame of definite reception is valid frame.
Definite LMR frame effectively after, test request side can obtain TxFCf field, RxFCf field and TxFCb field from the LMR frame, and keeps in the current statistical value RxFC1 of the count pick up device of this locality, test request side.Again adopt the LMM frame to repeat above-mentioned test process, can adopt following formula to carry out packet loss by twice LMM/LMR measuring process and calculate:
Frame abandons Far-end=| TxFCf[t c]-TxFCf[t p] |-| RxFCf[t c]-RxFCf[t p] |
Frame abandons Near-end=| TxFCb[t c]-TxFCb[t p] |-| RxFC1[t c]-RxFC1[t p] |
Wherein, the implication of the parameter of above-mentioned packet loss calculating employing can be referring to the related content among the first embodiment.
Be understandable that the Test id information represents with the TLV form in the present embodiment, also can adopt the form of fixed field, namely increase respectively a field in LMM PDU and LMR PDU, this field is used for carrying the Test id information.At this moment, configuration is the corresponding relation of stream statistical rules and Test id information.For example, than table 1 and table 2, the corresponding relation of this moment can be as shown in table 3:
Table 3
The Test id information The stream statistical rules
1 DA1+SA1
2 DA1+SA1+VLAN1+VLAN priority1
3 MEP ID1
... ...
The test identification information carries in test request side in the present embodiment in the LMM frame that sends, the test answer party is determined corresponding stream statistical rules according to the test identification information in the LMM frame, different test identification informations can corresponding different statistics foundation, rather than just add up according to VLAN in the prior art, present embodiment can be realized the statistics of different business needs is realized fine-grained statistics by this newly-increased test identification information.And, adopt different statisticals according to different statistics scenes, realize the accurate calculating to loss packet test.
Fig. 8 is the device structure schematic diagram of fourth embodiment of the invention, and this equipment can be positioned at above-mentioned test request side, and this equipment 80 comprises sending module 81 and measurement module 82; Sending module 81 is used for sending packet loss to the test answer party and measures message LMM frame, carries the test identification information in this LMM frame; Measurement module 82 is used for receiving this packet loss measurement of testing answer party transmission and replys the LMR frame, and according to the statistical value of the service message that carries in this LMR frame, and the statistical value of local service message carries out loss packet test, and the statistical value of this service message is determined according to stream statistical rules corresponding to this test identification information for this test answer party.
Optionally, also carry the test identification information in this LMR frame, this equipment also comprises:
Judge module is used for judging whether the test identification information that this LMR carries is the test identification information that this test request side self sends, and if so, then this measurement module carries out loss packet test.
Optionally, this equipment also comprises:
Determination module is used for the stream statistical rules according to service message to be tested, and corresponding relation of this pre-configured test identification information and stream statistical rules, determines to be carried at the test identification information in the LMM frame that this sending module sends.
Optionally, this test identification information comprises: the length of the type of test identification information, test identification information and the value of test identification information, this stream statistical rules comprises the stream information of stream statistics foundation and statistic fluid, this test identification information comprises with the corresponding relation of stream statistical rules: the type of test identification information and the corresponding relation that flows the statistics foundation, and the corresponding relation of the stream information of the value of test identification information and statistic fluid.
Above-mentioned equipment can be supported the equipment that the OAM packet loss is measured, concrete as, any in base station, switch, router, the base station controller.
Above-mentioned test sign (Test ID) information can adopt fixing field form, is the Test id field with a certain Field Definition for example; Perhaps, the Test id information also can adopt the TLV form.
The structure of the form of the form of the message format of concrete ethernet frame, LMM PDU, LMR PDU, TestID information respectively can be referring to the related content in the said method.
Further, above-mentioned stream statistical rules can be at least two.
Present embodiment is by carrying the test identification information in the LMM frame, the corresponding stream of this test identification information statistical rules, adopt the stream statistical rules to determine statistical value when being implemented in loss packet test, rather than only add up according to vlan information in the prior art, realize the fine granularity of loss packet test, can carry out the not division of homogeneous turbulence statistical rules according to different business statistics needs, and can when the various flows statistical rules, carry out correct loss packet test.
Fig. 9 is the device structure schematic diagram of fifth embodiment of the invention, and this equipment can be positioned at above-mentioned test answer party, and this equipment comprises receiver module 91, determination module 92 and sending module 93; Receiver module 91 receives the packet loss measurement message LMM frame that test request side sends, and carries the test identification information in this LMM frame; Determination module 92 is used for according to the corresponding relation of pre-configured test identification information with the stream statistical rules, determine stream statistical rules corresponding to test identification information that carry in this LMM frame that this receiver module receives, and obtain the statistical value of service message according to this stream statistical rules; The statistical value that sending module 93 is used for this service message that this determination module is obtained is carried at packet loss and measures and reply the LMR frame and send to this test request side, and this LMR frame is used to indicate this test request side and carries out loss packet test.
Optionally, this stream statistical rules comprises: the stream information of stream statistics foundation and stream to be added up, and this test identification information comprises: the length of the type of test identification information, test identification information and the value of testing identification information, this equipment also comprises:
Configuration module is used for this corresponding relation of testing the type of identification information and flowing the statistics foundation that pre-configured this determination module adopts, and the corresponding relation of the stream information of the value of test identification information and statistic fluid.
Optionally, this stream statistics is according to comprising:
DA and SA according to service message add up; Perhaps,
DA, SA, VALN ID and VLAN priority according to service message are added up; Perhaps,
According to service message from the MEP ID of MEP add up.
Optionally, the equipment of present embodiment can also comprise:
Judge module for the validity of judging the LMM frame that receives, triggers the statistical value that this determination module obtains service message effectively the time.Specifically can determine in the following way the validity of LMM frame:
If the MEG grade of the LMM frame that receives (concrete can obtain from the MEL field of LMM PDU) greater than the MEG grade of oneself, is transmitted according to OAM transparent forwarding principle Y.1731;
If the MEG grade of the LMM frame that receives thinks that less than the MEG grade of oneself invalid frame can be abandoned;
If the MEG grade of the LMM frame that receives equals own MEG grade, judgement DA is the MAC Address of oneself whether, if so, be defined as valid frame and process, if not, being defined as invalid frame can be abandoned.
Above-mentioned equipment can be supported the equipment that the OAM packet loss is measured, concrete as, any in base station, switch, router, the base station controller.
Above-mentioned test sign (Test ID) information can adopt fixing field form, is the Test id field with a certain Field Definition for example; Perhaps, the Test id information also can adopt the TLV form.
The structure of the form of the form of the message format of concrete ethernet frame, LMM PDU, LMR PDU, Test id information respectively can be referring to the related content in the said method.
Further, above-mentioned stream statistical rules can be at least two.Present embodiment is by determining the stream statistical rules according to the test identification information that carries in the LMM frame, the corresponding stream of this test identification information statistical rules, adopt the stream statistical rules to determine statistical value when being implemented in loss packet test, rather than only add up according to vlan information in the prior art, realize the fine granularity of loss packet test, can carry out the not division of homogeneous turbulence statistical rules according to different business statistics needs, and can when the various flows statistical rules, carry out correct loss packet test.Further, whether the test request square tube is crossed the validation test identification information is that oneself sends, and can further improve packet loss accuracy and saving resource.The test answer party carries out counting messages by the validity of checking LMM frame again after effectively, can improve the utilization of resources rate.
Figure 10 is the system configuration schematic diagram of sixth embodiment of the invention, and this system comprises test request side 101 and test answer party 102; Test request side 101 is used for sending the LMM frame to the test answer party, carries the test identification information in this LMM frame; And, receive the LMR frame that this test answer party sends, and according to the statistical value of the service message that carries in this LMR frame, and the statistical value of local service message carries out loss packet test, and the statistical value of this service message is determined according to stream statistical rules corresponding to this test identification information for this test answer party.Test answer party 102 is used for receiving the LMM frame that test request side sends, and carries the test identification information in this LMM frame; According to the corresponding relation of pre-configured test identification information with the stream statistical rules, determine stream statistical rules corresponding to test identification information that carry in this LMM frame, and obtain the statistical value of service message according to this stream statistical rules; And, the statistical value of this service message being carried in the LMR frame sending to this test request side, this LMR frame is used to indicate this test request side and carries out loss packet test.
Particularly, test request side 101 can be specifically referring to embodiment illustrated in fig. 8, and test answer party 102 can be specifically referring to embodiment illustrated in fig. 9.
Present embodiment is by determining the stream statistical rules according to the test identification information that carries in the LMM frame, the corresponding stream of this test identification information statistical rules, adopt the stream statistical rules to determine statistical value when being implemented in loss packet test, rather than only add up according to vlan information in the prior art, realize the fine granularity of loss packet test, can carry out the not division of homogeneous turbulence statistical rules according to different business statistics needs, and can when the various flows statistical rules, carry out correct loss packet test.Further, whether the test request square tube is crossed the validation test identification information is that oneself sends, and can further improve packet loss accuracy and saving resource.The test answer party carries out counting messages by the validity of checking LMM frame again after effectively, can improve the utilization of resources rate.
Be understandable that mutually reference of the correlated characteristic in said method and the equipment.In addition, " first " in above-described embodiment, " second " etc. are for each embodiment of differentiation, and do not represent the quality of each embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (13)

1. an Ethernet loss packet test method is characterized in that, comprising:
Test request direction test answer party sends packet loss and measures message LMM frame, carries the test identification information in the described LMM frame, the corresponding stream of described test identification information statistical rules;
Test request side receives the packet loss measurement answer LMR frame that described test answer party sends, and according to the statistical value of the service message that carries in the described LMR frame, and the statistical value of local service message carries out loss packet test, and the statistical value of the service message that carries in the described LMR frame is that described test answer party is determined according to stream statistical rules corresponding to described test identification information.
2. method according to claim 1, it is characterized in that, also carry the test identification information in the described LMR frame, the statistical value of described service message according to carrying in the described LMR frame, and the statistical value of local service message carries out before the loss packet test, and described method also comprises:
Test request side judges whether the test identification information that carries among the described LMR is the test identification information that described test request side self sends, and if so, then carries out loss packet test.
3. method according to claim 1 and 2 is characterized in that, described test request direction test answer party sends before the LMM frame, and described method also comprises:
The test request root is according to the stream statistical rules of service message to be tested, and pre-configured described test identification information and the corresponding relation that flows statistical rules, determines to be carried at the test identification information in the described LMM frame.
4. method according to claim 3, it is characterized in that, described test identification information comprises: the length of the type of test identification information, test identification information and the value of test identification information, described stream statistical rules comprises the stream information of stream statistics foundation and statistic fluid, described test identification information comprises with the corresponding relation of stream statistical rules: the type of test identification information and the corresponding relation that flows the statistics foundation, and the corresponding relation of the stream information of the value of test identification information and statistic fluid.
5. an Ethernet loss packet test method is characterized in that, comprising:
The test answer party receives the packet loss measurement message LMM frame that test request side sends, and carries the test identification information in the described LMM frame;
The test answer party is determined stream statistical rules corresponding to test identification information that carry in the described LMM frame according to the corresponding relation of pre-configured test identification information with the stream statistical rules, and obtains the statistical value of service message according to described stream statistical rules;
The test answer party is carried at packet loss with the statistical value of described service message and measures to reply in the LMR frame and send to described test request side, and described LMR frame is used to indicate described test request side and carries out loss packet test.
6. method according to claim 5, it is characterized in that, described stream statistical rules comprises: the stream information of stream statistics foundation and stream to be added up, described test identification information comprises: the length of the type of test identification information, test identification information and the value of test identification information, and described method also comprises:
The type of pre-configured test identification information is added up the corresponding relation of foundation with stream, and the corresponding relation of the stream information of the value of test identification information and statistic fluid.
7. method according to claim 6 is characterized in that, described stream statistics is according to comprising:
Destination address DA and source address SA according to service message add up; Perhaps,
DA, SA, VLAN ID VALN ID and VLAN priority according to service message are added up; Perhaps,
According to service message from the maintenance entity group terminal point identification MEPID of maintenance entity group terminal point MEP add up.
8. an Ethernet loss packet test equipment is characterized in that, comprising:
Sending module is used for sending packet loss to the test answer party and measures message LMM frame, carries the test identification information in the described LMM frame, the corresponding stream of described test identification information statistical rules;
Measurement module, be used for receiving the packet loss measurement answer LMR frame that described test answer party sends, and according to the statistical value of the service message that carries in the described LMR frame, and the statistical value of local service message carries out loss packet test, and the statistical value of the service message that carries in the described LMR frame is that described test answer party is determined according to stream statistical rules corresponding to described test identification information.
9. equipment according to claim 8 is characterized in that, also carries the test identification information in the described LMR frame, and described equipment also comprises:
Judge module is used for judging whether the test identification information that described LMR carries is the test identification information that described test request side self sends, and if so, then described measurement module carries out loss packet test.
10. according to claim 8 or 9 described equipment, it is characterized in that, also comprise:
Determination module is used for the stream statistical rules according to service message to be tested, and the corresponding relation of pre-configured described test identification information and stream statistical rules, determines to be carried at the test identification information in the LMM frame that described sending module sends.
11. an Ethernet loss packet test equipment is characterized in that, comprising:
Receiver module receives the packet loss measurement message LMM frame that test request side sends, and carries the test identification information in the described LMM frame;
Determination module, be used for according to the corresponding relation of pre-configured test identification information with the stream statistical rules, determine stream statistical rules corresponding to test identification information that carry in the described LMM frame that described receiver module receives, and obtain the statistical value of service message according to described stream statistical rules;
Sending module, the statistical value that is used for described service message that described determination module is obtained are carried at packet loss and measure and reply the LMR frame and send to described test request side, and described LMR frame is used to indicate described test request side and carries out loss packet test.
12. equipment according to claim 11, it is characterized in that, described stream statistical rules comprises: the stream information of stream statistics foundation and stream to be added up, described test identification information comprises: the length of the type of test identification information, test identification information and the value of test identification information, and described equipment also comprises:
Configuration module, the type that is used for the described test identification information of pre-configured described determination module employing is added up the corresponding relation of foundation with stream, and the corresponding relation of the stream information of the value of test identification information and statistic fluid.
13. an Ethernet loss packet test system is characterized in that, comprising:
Such as each described equipment of claim 8-10; And,
Such as claim 11 or 12 described equipment.
CN201110258824.5A 2011-09-02 2011-09-02 Ethernet loss packet test method, equipment and system Active CN102984018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110258824.5A CN102984018B (en) 2011-09-02 2011-09-02 Ethernet loss packet test method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110258824.5A CN102984018B (en) 2011-09-02 2011-09-02 Ethernet loss packet test method, equipment and system

Publications (2)

Publication Number Publication Date
CN102984018A true CN102984018A (en) 2013-03-20
CN102984018B CN102984018B (en) 2015-08-05

Family

ID=47857779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110258824.5A Active CN102984018B (en) 2011-09-02 2011-09-02 Ethernet loss packet test method, equipment and system

Country Status (1)

Country Link
CN (1) CN102984018B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660460A (en) * 2015-01-15 2015-05-27 北京奥普维尔科技有限公司 System and method for testing performance of Ethernet
WO2016049872A1 (en) * 2014-09-30 2016-04-07 华为技术有限公司 Device and method for measuring network packet loss
CN105721236A (en) * 2014-12-04 2016-06-29 北京视联动力国际信息技术有限公司 Method for testing ethernet error packets, and apparatus thereof
CN105978728A (en) * 2016-06-20 2016-09-28 深圳前海微众银行股份有限公司 Intelligent monitor system and monitor method of service index
CN108737221A (en) * 2018-06-28 2018-11-02 新华三技术有限公司 Method for detecting packet loss and communication link system
CN109450739A (en) * 2018-12-21 2019-03-08 江西山水光电科技股份有限公司 A method of Ethernet OAM test function is realized in Packet Transport Network based on FPGA
CN109981414A (en) * 2019-03-29 2019-07-05 烽火通信科技股份有限公司 The acquisition methods of number of dropped packets between mpls network node
CN109995603A (en) * 2017-12-29 2019-07-09 中国移动通信集团山东有限公司 The method, apparatus and electronic equipment that packet loss measures under a kind of Tag model
CN110932934A (en) * 2019-11-21 2020-03-27 中国联合网络通信集团有限公司 Network packet loss detection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020698A1 (en) * 2008-07-23 2010-01-28 Fujitsu Limited Communication apparatus and OAM frame transmission method
CN101800679A (en) * 2010-03-10 2010-08-11 华为技术有限公司 Message packet loss detection method and system
CN102025571A (en) * 2010-12-30 2011-04-20 中兴通讯股份有限公司 Method and device for measuring packet loss in multi-point link
CN102118277A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and device for packet loss detection, and a router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020698A1 (en) * 2008-07-23 2010-01-28 Fujitsu Limited Communication apparatus and OAM frame transmission method
CN102118277A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and device for packet loss detection, and a router
CN101800679A (en) * 2010-03-10 2010-08-11 华为技术有限公司 Message packet loss detection method and system
CN102025571A (en) * 2010-12-30 2011-04-20 中兴通讯股份有限公司 Method and device for measuring packet loss in multi-point link

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105765911B (en) * 2014-09-30 2019-04-19 华为技术有限公司 A kind of measuring device and method of Network Packet Loss
WO2016049872A1 (en) * 2014-09-30 2016-04-07 华为技术有限公司 Device and method for measuring network packet loss
CN105765911A (en) * 2014-09-30 2016-07-13 华为技术有限公司 Device and method for measuring network packet loss
CN105721236A (en) * 2014-12-04 2016-06-29 北京视联动力国际信息技术有限公司 Method for testing ethernet error packets, and apparatus thereof
CN105721236B (en) * 2014-12-04 2019-05-17 北京视联动力国际信息技术有限公司 A kind of method and device thereof of Ethernet mistake packet test
CN104660460A (en) * 2015-01-15 2015-05-27 北京奥普维尔科技有限公司 System and method for testing performance of Ethernet
CN105978728A (en) * 2016-06-20 2016-09-28 深圳前海微众银行股份有限公司 Intelligent monitor system and monitor method of service index
CN105978728B (en) * 2016-06-20 2019-09-03 深圳前海微众银行股份有限公司 The monitoring method of intelligent monitor system and operational indicator
CN109995603A (en) * 2017-12-29 2019-07-09 中国移动通信集团山东有限公司 The method, apparatus and electronic equipment that packet loss measures under a kind of Tag model
CN109995603B (en) * 2017-12-29 2020-12-15 中国移动通信集团山东有限公司 Method and device for measuring packet loss under Tag model and electronic equipment
CN108737221A (en) * 2018-06-28 2018-11-02 新华三技术有限公司 Method for detecting packet loss and communication link system
CN108737221B (en) * 2018-06-28 2020-09-15 新华三技术有限公司 Packet loss detection method and communication link system
CN109450739A (en) * 2018-12-21 2019-03-08 江西山水光电科技股份有限公司 A method of Ethernet OAM test function is realized in Packet Transport Network based on FPGA
CN109450739B (en) * 2018-12-21 2021-09-24 江西山水光电科技股份有限公司 Method for realizing Ethernet OAM test function in packet transport network based on FPGA
CN109981414A (en) * 2019-03-29 2019-07-05 烽火通信科技股份有限公司 The acquisition methods of number of dropped packets between mpls network node
CN109981414B (en) * 2019-03-29 2021-08-24 烽火通信科技股份有限公司 method for acquiring packet loss number between mpls network nodes
CN110932934A (en) * 2019-11-21 2020-03-27 中国联合网络通信集团有限公司 Network packet loss detection method and device

Also Published As

Publication number Publication date
CN102984018B (en) 2015-08-05

Similar Documents

Publication Publication Date Title
CN102984018B (en) Ethernet loss packet test method, equipment and system
CN106713074B (en) Data network quality segmentation detection method based on business tine and system
EP2521317A1 (en) Method, device and router for packet loss detection
WO2009098757A1 (en) Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
CN102546117B (en) A kind of LOF method of measurement, Apparatus and system
CN105072629A (en) Method, equipment and system for measuring quality of business at terminal
US20150036510A1 (en) Method and device for measuring ethernet performance
CN104205738B (en) Interconnect the methods, devices and systems of error detection
CN101160821A (en) Method of measuring MPLS network performance parameter and packet transmission device and system
WO2017032133A1 (en) Packet loss rate detection method and apparatus
CN106411625A (en) Link message packet loss measurement method and system, target node and initiator node
CN114430386A (en) Method and related device for detecting multicast service flow
CN108632099A (en) A kind of fault detection method and device of link aggregation
CN108199913B (en) Method and equipment for realizing time delay test
CN110601919A (en) Loopback detection method and system
US9331927B2 (en) Communication system, communication device, and communication method
CN101213790A (en) Apparatus and method for performing fast handover
CN107425995A (en) Bidirectional measurement control method, send business device and receive business device
CN110166311B (en) Method, equipment and network system for measuring network performance
CN102025571B (en) The method and apparatus that multipoint link packet loss is measured
CN102752169B (en) Transmitting, monitoring method and device
CN109327407B (en) data exchange device, data exchange method, computer device, and storage medium
CN110784378A (en) Method and device for realizing accurate flow balance by using TWAMP (two way operational amplifier)
CN101729322B (en) Method for measuring equivalent delay of data message in PTN system
WO2020259113A1 (en) Network performance measurement device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant