CN102984018B - Ethernet loss packet test method, equipment and system - Google Patents

Ethernet loss packet test method, equipment and system Download PDF

Info

Publication number
CN102984018B
CN102984018B CN201110258824.5A CN201110258824A CN102984018B CN 102984018 B CN102984018 B CN 102984018B CN 201110258824 A CN201110258824 A CN 201110258824A CN 102984018 B CN102984018 B CN 102984018B
Authority
CN
China
Prior art keywords
test
identification information
stream
frame
service message
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.)
Active
Application number
CN201110258824.5A
Other languages
Chinese (zh)
Other versions
CN102984018A (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

Abstract

The invention provides a kind of Ethernet loss packet test method and apparatus.The method comprises test request direction test answer party and sends packet loss measurement message LMM frame, carries test identification information in described LMM frame, described test identification information correspondence stream statistical rules; Test request side receives the packet loss measurement reply LMR frame that described test answer party sends, and according to the statistical value of the service message carried in described LMR frame, and the statistical value of local service message carries out loss packet test, the statistical value of the service message carried in described LMR frame is that the stream statistical rules that described test answer party is corresponding according to described test identification information is determined.The embodiment of the present invention can improve the accuracy of loss packet test.

Description

Ethernet loss packet test method, equipment and system
Technical field
The present invention relates to the network communications technology, particularly relate to a kind of Ethernet loss packet test method, equipment and system.
Background technology
In carrier ethernet business, 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, and MEG intermediate point (MEG Intermediate Point, MIP) MEP).MEP is the end points of MEG, can initiate and the OAM frame terminated for fault management and performance monitoring.MIP is the intermediate node of MEG, can respond some OAM frame, but can not initiate OAM frame.
The performance management of carrier ethernet service level comprises packet loss measurement function.Wherein, the packet loss that single-ended packet loss detection is used between measurement on demand MEP and opposite end MEP is added up.In this function, MEP as test request side sends packet loss to the MEP as test answer party and measures message (LossMeasurement Message, LMM) frame, test answer party returns packet loss and measures reply (Loss Measurement Reply to test request side, LMR) frame, carries corresponding service message statistical value in LMM frame wherein and LMR frame.
With in the wireless Ethernet networking scene of VLAN (Virtual Local Area Network, VLAN) identification service, the connection of point-to-multipoint may be there is.Such as this scene comprises base station (NodeB) _ 1 and NodeB_2 and switch (Switch), and NodeB_1 and NodeB_2 communicates to connect with Switch respectively.Now, because business is with VLAN mark, then the statistical value of the service message obtained on Switch is also with VLAN mark, and what such as add up is the service message statistical value that VLAN_1 is corresponding.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 of sum of service message from NodeB_1 and NodeB_2.But the value of aforesaid way statistics is inaccurate, it is also inaccurate for causing packet loss to be measured.Therefore, under the scene of point-to-multipoint, prior art cannot carry out loss packet test accurately.
Summary of the invention
The embodiment of the present invention provides a kind of Ethernet loss packet test method, equipment and system, tests inaccurate problem in order to solve in prior art under point-to-multipoint scene, improves loss packet test accuracy.
On the one hand, the embodiment of the present 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 test identification information in described LMM frame, described test identification information correspondence stream statistical rules;
Test request side receives the packet loss measurement reply LMR frame that described test answer party sends, and according to the statistical value of the service message carried in described LMR frame, and the statistical value of local service message carries out loss packet test, the statistical value of the service message carried in described LMR frame is that the stream statistical rules that described test answer party is corresponding according to described test identification information is determined.
On the other hand, the embodiment of the present invention provides a kind of Ethernet loss packet test method, comprising:
Test answer party receives the packet loss measurement message LMM frame that test request side sends, and carries test identification information in described LMM frame;
Test answer party, according to the corresponding relation of pre-configured test identification information with stream statistical rules, is determined the stream statistical rules that the test identification information that carries in described LMM frame is corresponding, and is obtained the statistical value of service message according to described stream statistical rules;
The statistical value of described service message is carried in packet loss measurement reply LMR frame and sends to described test request side by test answer party, 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 present invention provides a kind of Ethernet loss packet test equipment, comprising:
Sending module, measuring message LMM frame for sending packet loss to test answer party, carrying test identification information in described LMM frame, described test identification information correspondence stream statistical rules;
Measurement module, the packet loss sent for receiving described test answer party is measured and is replied LMR frame, and according to the statistical value of the service message carried in described LMR frame, and the statistical value of local service message carries out loss packet test, the statistical value of the service message carried in described LMR frame is that the stream statistical rules that described test answer party is corresponding according to described test identification information is determined.
On the other hand, the embodiment of the present 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, carries test identification information in described LMM frame;
Determination module, for the corresponding relation according to pre-configured test identification information and stream statistical rules, determine the stream statistical rules that the test identification information that carries in the described LMM frame that described receiver module receives is corresponding, and obtain the statistical value of service message according to described stream statistical rules;
Sending module, the statistical value for the described service message obtained by described determination module is carried in packet loss measurement reply LMR frame and sends 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 present 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 present invention by carrying test identification information in LMM frame, and test answer party selects stream statistical rules according to this test identification information, realizes the refinement of statistical, can improve the accuracy of loss packet test.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 a is the method flow schematic diagram of first embodiment of the invention;
Fig. 1 b is the wireless ethernet networking schematic diagram of embodiment of the present invention application;
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 adopted in the embodiment of the present invention;
Fig. 5 is the structural representation of LMM PDU in the embodiment of the present invention;
Fig. 6 is the structural representation of Test ID TLV in the embodiment of the present invention;
Fig. 7 is the structural representation of LMR PDU in the embodiment of the present 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 making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
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 LMM frame, carries test identification information in described LMM frame, described test identification information correspondence stream statistical rules.
In the embodiment of the present invention, in order to realize fine-grained loss packet test, in existing LMM frame, increased test mark (Test ID) information newly, this test identification information can indicate which information which stream to carry out loss packet test to according to.
Particularly, before loss packet test, in test request side and pre-configured test identification information and the corresponding relation flowing statistical rules in answer party can be tested.Stream statistical rules is used for showing to add up specific stream according to specific information, namely shows according to which information to which stream to add up.Such as, specific information can be that destination address (DA) according to service message and source address (SA) are added up, and specific stream can be DA_1 to DA and the service message that SA is SA_1 is added up.
Configure above-mentioned corresponding relation in test request side and test answer party after, test request side and test answer party can carry out respective handling according to this corresponding relation.Such as, for test request side, according to this corresponding relation, the test identification information be carried in LMM frame can be determined.Such as, 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, is DA_1 and the service message that SA is SA_1 is added up to DA.If then need according to DA and SA, DA is DA_1 and the service message that SA is SA_1 is added up time, test request side determine test identification information for test identification information _ 1, afterwards, test identification information _ 1 is carried in LMM frame and sends to test answer party.
Correspondingly, test answer party receives in LMM frame, obtain test identification information for test identification information _ 1, then can determine that corresponding stream statistical rules is according to above-mentioned corresponding relation: according to DA and SA, DA is DA_1 and the service message that SA is SA_1 is added up.Afterwards, test answer party statistics DA_1 and SA are the service message of SA_1 and are carried in LMR frame return to test request side by adding up the numerical value that obtains.
Further, test identification information in the embodiment of the present invention can adopt type lengths values (TypeLength Value, TLV) form, namely tests identification information and comprises: the value of the type of test identification information, the length of test identification information and test identification information.Above-mentioned stream statistical rules can comprise: the stream information of stream statistics foundation and statistic fluid, and stream statistics is according to showing according to which information to add up, and the stream information of statistic fluid shows to which stream to add up.Now, above-mentioned test identification information can comprise with the corresponding relation of stream statistical rules: test the type of identification information and flow the corresponding relation adding up foundation, and the corresponding relation of the test value of identification information and the stream information of statistic fluid.Now, stream statistics and the stream information with statistic fluid can be determined by the type of testing identification information respectively with the value of test mark, finally to 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 carried in described LMR frame, and the statistical value of local service message carries out loss packet test to described LMR, the statistical value of the service message carried in described LMR frame is that the stream statistical rules that described test answer party is corresponding according to described test identification information is determined.
Further, also can carry test identification information in this LMR frame, test request side is after receiving LMR frame, first judge whether the test identification information carried in LMR frame is the test identification information that oneself sends, if so, then carry out loss packet test, otherwise the LMR frame of reception can be abandoned.
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 measures the number of dropped packets received with local terminal that opposite end sends, the number of dropped packets received with test request side of namely testing answer party transmission; Far-end measuring measures the number of dropped packets received with opposite end that local terminal sends, namely test request side send with the number of dropped packets of testing answer party and receiving.
TxFCf [t c] be the transmission statistical value of service message of test request side when this sends LMM frame, RxFCf [t c] for testing the reception statistical value of the service message of answer party when this receives LMM frame, TxFCf [t p] be the transmission statistical value of the service message of test request side when last time sends LMM frame, RxFCf [t c] for testing the reception statistical value of the service message of answer party when this receives LMM frame; TxFCb [t c] for testing the transmission statistical value of the service message of answer party when this sends LMR frame, RxFC1 [t c] be the reception statistical value of service message of test request side when this receives LMR frame, TxFCb [t p] for testing the transmission statistical value of the service message of answer party when last time sends LMR frame, RxFC1 [t p] be the reception statistical value of the service message of test request side when last time receives LMR frame.
Consider that above-mentioned two time points are because the initial service message statistical number of test request side and test answer party may be different, therefore use relative statistical number (as TxFCf [t c]-TxFCf [t p]) instead of absolute statistical number (as TxFCf [t c]) carry out subtracting each other process.Certainly, if what will add up is cumulative number of dropped packets, absolute statistical number also can be adopted to carry out subtracting each other process, now, test request side and test answer party should carry out message number statistics from same starting point.
Above-mentioned test request side and test answer party can for supporting the equipment that the packet loss of OAM is measured, concrete as, test request side is any one in base station, switch, router, base station controller, and test answer party also can be any one in base station, switch, router, base station controller.
Above-mentioned test request side refers to the equipment of initiating packet loss and measuring, such as, send the equipment of LMM frame, and above-mentioned test answer party refers to the equipment that response packet loss is measured, such as, receive LMM frame and reply the equipment of LMR frame.
Fig. 1 b is the wireless ethernet networking schematic diagram of embodiment of the present invention application, base station _ 2, base station _ 1 in this network 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 of service message from base station _ 1 and base station _ 2.And when packet loss is measured, such as, measure the number of dropped packets between base station _ 1 and switch, the message number of switch statistic data only should be from base station _ 1, and should not be the message sum of above-mentioned base station _ 1 and base station _ 2, that is, packet loss measurement can be made inaccurate if only adopt VLAN to carry out counting messages.And test identification information can be carried at LMM frame in the embodiment of the present invention, test answer party can find corresponding stream statistical rules according to test identification information, to meet loss packet test needs, ensures the accurate of loss packet test.
Further, above-mentioned stream statistical rules can be at least two.
The present embodiment by carrying test identification information in LMM frame, this test identification information correspondence stream statistical rules, realize adopting stream statistical rules determination statistical value when loss packet test, instead of only add up according to vlan information in prior art, realize the fine granularity of loss packet test, according to different business statistics needs, the division of not homogeneous turbulence statistical rules can be carried out, and correct loss packet test can be carried out when various flows statistical rules.
Fig. 2 is the method flow schematic diagram of second embodiment of the invention, comprising:
Step 21: test answer party receives the LMM frame that test request side sends, and carries test identification information in described LMM frame.
Wherein, test request side the method as above shown in an embodiment can generate test mark (Test ID) information, is carried in LMM frame by this test identification information afterwards and sends to test answer party.
Step 22: test answer party, according to the corresponding relation of pre-configured test identification information with stream statistical rules, is determined the stream statistical rules that the test identification information that carries in described LMM frame is corresponding, and obtained the statistical value of service message according to described stream statistical rules.
Such as, pre-configured corresponding relation comprises: correspondence stream statistical rules _ 1, test identification information _ 1, and stream statistical rules _ 1 particular content is: according to DA and SA, is DA_1 and the service message that SA is SA_1 is added up to DA.Now, if the test identification information that carries is test identification information _ 1 in the LMM frame that receives of test answer party, then testing answer party by convection current statistical rules _ 1 particular content is: according to DA and SA, is DA_1 and the service message that SA is SA_1 is added up to DA.
Step 23: the statistical value of described service message is carried in LMR frame and sends to described test request side by test answer party, and described LMR frame is used to indicate described test request side and carries out loss packet test.
Further, test answer party can also carry test identification information in LMR frame, so that test request side carries out loss packet test when determining that the test identification information in the LMR frame received is the test identification information of test request side oneself transmission.Be understandable that, under normal circumstances, the test identification information carried in LMM frame can directly copy in LMR frame by test answer party.Certainly, in abnormal cases, testing answer party may will not be also that the test identification information that test request side sends is carried in LMR frame.
Further, above-mentioned stream statistical rules can be at least two.
The present embodiment is by determining according to the test identification information carried in LMM frame to flow statistical rules, this test identification information correspondence stream statistical rules, realize adopting stream statistical rules determination statistical value when loss packet test, instead of only add up according to vlan information in prior art, realize the fine granularity of loss packet test, according to different business statistics needs, the division of not homogeneous turbulence statistical rules can be carried out, and correct loss packet test can be carried out when various flows statistical rules.Further, whether test request side is that oneself sends by validation test identification information, can improve packet loss accuracy and saving resource further.
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 adopted in the embodiment of the present invention, Fig. 5 is the structural representation of LMM PDU in the embodiment of the present invention, Fig. 6 is the structural representation of Test ID TLV in the embodiment of the present invention, and Fig. 7 is the structural representation of LMR PDU in the embodiment of the present invention.
See Fig. 3, the method flow of the present embodiment comprises:
Step 31: test request side and test answer party carry out pre-configured, configuration testing mark (Test ID) information and the corresponding relation flowing statistical rules.
In the present embodiment, Test id information represents with TLV form, and namely Test id information comprises: type (Test Type), length (Length) and value (Test ID value).Stream statistical rules can comprise: show the stream statistics foundation according to which information, and show the stream information of the stream to be counted to which stream.
In the present embodiment, Test Type can be configured respectively and add up foundation with stream, and the corresponding relation of the stream information of Test ID value and stream to be counted.Afterwards, corresponding stream statistics foundation and the stream information of stream to be counted can be determined according to Test Type and Test ID value respectively, namely can obtain according to which information to which stream adding up.
Wherein, Test Type add up the corresponding relation of foundation with stream can be as shown in table 1:
Table 1
Test Type Stream statistics foundation
1 DA+SA
2 DA+SA+VLAN ID+VLAN priority
3 MEP ID
... ...
"+" in table 1 represents " with " relation, such as, DA+SA represents that destination address (DA) according to service message and source address (SA) are added up.
The corresponding relation of the stream information of Test ID value and stream to be counted can be as shown in table 2:
Table 1
Such as, when Test ID value is 1, show that stream to be counted is the service message of DA=0000.0003.0004 and SA=0000.0005.0008.
Step 32: test request side produces LMM frame, and sends to test answer party.
Wherein, in this LMM frame, carry test identification information, in the present embodiment, be specially the Test ID (Test ID TLV) of TLV form.The test identification information carried in this LMM frame can be determined according to stream to be counted, such as, stream to be counted 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 then carried in LMM frame is 1, and value is also 1.
In the embodiment of the present invention, LMM frame and follow-up LMR frame belong to ethernet frame, can the LMM protocol Data Unit (Protocol Data Unit, PDU) corresponding with the data field carrying in ethernet frame or LMR PDU.
The message format of ethernet frame can as shown in Figure 4, and in 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): for marking this ethernet frame, comprising: TPID, User Priority, CFI and VLAN ID, specifically describe as follows:
TPID (Tag Protocol Identifier): tag protocol identifies, and Ethernet is fixed as 0x8100.
User Priority (User Priority), corresponding 0 ~ 7.
CFI (Canonical Format Indicator): canonical Format Indicator, indicates whether MAC Address meets ethernet standard, and meeting is 0.
VLAN ID: VLAN belonging to identification frames, scope 0-4095.
FCS (Frame Check Sequence): Frame Check Sequence
Data field (Frame Load): OAM PDU with regard to carried in the field.Such as, when ethernet frame is LMM frame, this field carrying LMM PDU; When ethernet frame is LMR frame, this field carrying LMR PDU.
Particularly, when Frame Load field is for carrying OAM PDU (LMM PDU or LMRPDU), the structure of the LMM PDU in the present embodiment can see Fig. 5.
The implication of each field in Fig. 5 is as follows:
MEL: refer to MEG grade, for identifying the MEG grade of OAM PDU.Number range is from 0 to 7.
Version: for identifying the version of OAM agreement.In prior art (agreement be numbered Y.1731 as International Telecommunication Union), version is always 0.
Command code (Operation Code, OpCode): for identifying the type of OAM PDU, for identifying the content of remainder in OAM PDU.Wherein the OpCode of LMM is the OpCode of 43, LMR is 42.
Mark: in this field, the type of OAM PDU is depended in the use of each bit.
TLV bias: to comprise in OAM PDU the number of offsets of first TLV relative to TLV bias field.The numerical value of this field is associated with the type of OAM PDU.When TLV bias is 0, it points to the first character joint after TLV bias field.End of a period TLV: for filling can be the value of all-zero word joint.
TxFcf: for recording the transmission statistical value of service message when sending LMM frame.
Be preserved for the RxFCf in LMR: the reception statistical value recording service message when receiving LMM frame for recipient in LMR frame.
Be preserved for the TxFCb in LMR: the transmission statistical value recording service message when sending LMR frame for recipient in LMR frame.
With existing LMM PDU unlike, also comprise further in the LMM PDU in the present embodiment: Test ID TLV (i.e. the test identification information of TLV form).
The form of the Test ID TLV in the present embodiment can see Fig. 6, and this Test ID TLV comprises: the value (Test ID) of the type (Test type) of test identification information, the length (Length) of test identification information and test identification information.Being described as follows of each field:
Test Type:1 byte, represents the feature of the stream of statistics, as added up according to DA+SA, MEP ID, DA+SA+VLAN+VLAN Priotity;
Length:1 byte, represents the length of Test ID;
Test ID: take the byte number that " Length " indicates, represents the stream ID distributing to MEP (be specially test answer party) and add up, and is an integer value or MEP ID or according to other generate rule, distributes before measuring.On a MEP, Test ID is unique.
Step 33: test answer party judges the validity of the LMM frame received.
Test answer party can judge the validity of the LMM frame received in the following way:
If the MEG grade (concrete can obtain from the MEL field of LMM PDU) of the LMM frame received is greater than the MEG grade of oneself, forward according to OAM transparent forwarding principle Y.1731;
If the MEG grade of the LMM frame received is less than the MEG grade of oneself, think that invalid frame can be abandoned;
If the MEG grade of LMM frame received equals the MEG grade of oneself, judge that whether DA is oneself MAC Address, if so, be defined as valid frame and process, if not, being defined as invalid frame can be abandoned.
Step 34: test answer party, after the LMM frame determining to receive is effective, is determined corresponding stream statistical rules according to test identification information (Test ID TLV), and obtained statistical number according to this stream statistical rules.
Such as, the type of Test ID is 1, then can know that corresponding stream statistical rules is according to pre-configured information: add up according to DA+SA, in addition, suppose that the value of Test ID is 1, then DA=0000.0003.0004, 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: test answer party produces LMR frame, and sends to test request side.
Wherein, the LMR PDU structure of this LMR frame can see Fig. 7.Particularly, the TxFCf value in LMM frame copies in the TxFCf field of LMR frame by test answer party, and is carried in TxFCb field by the transmission statistical number obtained according to above-mentioned stream statistical rules, reception statistical number is carried in 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 LMR frame can directly copy from LMM frame.
Step 36: after test request side receives LMR frame, judges the validity of LMR frame, and carries out loss packet test when LMR frame is effective.
Test request side can judge the validity of LMR frame in the following way:
If the MEG grade (concrete can obtain from the MEL field of LMR PDU) of the LMR frame received is greater than the MEG grade of oneself, forward according to OAM transparent forwarding principle Y.1731;
If the MEG grade of the LMR frame received is less than the MEG grade of oneself, think that invalid frame is abandoned;
If the MEG grade of LMR frame received equals the MEG grade of oneself, judge that whether DA is oneself MAC Address, if so, be defined as valid frame and process, if not, be defined as invalid frame and abandoned;
Judge that whether the Test ID of LMR frame is the Test ID that oneself sends, if not, also think this LMR frame is invalid and abandoned.
All the other situations, the MEG grade of the LMR frame namely received is identical with the MEG grade of oneself, and the DA of LMR frame is the MAC Address of oneself, and the Test ID in LMR frame is the Test ID that oneself sends, then determine that the LMR frame received is valid frame.
After determining that LMR frame effectively, test request side can obtain TxFCf field, RxFCf field and TxFCb field from LMR frame, and keeps in the current statistic value RxFC1 of the receive counter of this locality, test request side.Again adopt LMM frame to repeat above-mentioned test process, following formula can be adopted to carry out packet loss calculating by the LMM/LMR measuring process of twice:
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 see the related content in the first embodiment.
Be understandable that, in the present embodiment, Test id information represents with TLV form, also can adopt the form of fixed field, namely in LMM PDU and LMR PDU, increases a field respectively, and this field is used for carrying Test id information.Now, configuration is the corresponding relation flowing statistical rules and Test id information.Such as, compared to table 1 and table 2, corresponding relation now can be as shown in table 3:
Table 3
Test id information Stream statistical rules
1 DA1+SA1
2 DA1+SA1+VLAN1+VLAN priority1
3 MEP ID1
... ...
In the present embodiment, test identification information carries in the LMM frame sent in test request side, test answer party determines corresponding stream statistical rules according to the test identification information in LMM frame, different test identification informations can corresponding different statistics foundation, instead of just add up according to VLAN in prior art, the present embodiment can realize the statistics needed different business by this newly-increased test identification information, realize fine-grained statistics.Further, 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 measures message LMM frame for sending packet loss to test answer party, carries test identification information in this LMM frame; The packet loss measurement reply LMR frame that measurement module 82 sends for receiving this test answer party, and according to the statistical value of the service message carried in this LMR frame, and the statistical value of local service message carries out loss packet test, the statistical value of this service message is that the stream statistical rules that this test answer party is corresponding according to this test identification information is determined.
Optionally, also carry test identification information in this LMR frame, this equipment also comprises:
Judge module, for judging whether the test identification information carried in this LMR 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, for the stream statistical rules according to service message to be tested, and the corresponding relation of this pre-configured test identification information and stream statistical rules, determine the test identification information be carried in the LMM frame of this sending module transmission.
Optionally, this test identification information comprises: the value of the type of test identification information, the length of test identification information and 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: test the type of identification information and flow the corresponding relation adding up foundation, and the corresponding relation of the test value of identification information and the stream information of statistic fluid.
Above-mentioned equipment can for supporting the equipment that OAM packet loss is measured, concrete as, any one in base station, switch, router, base station controller.
Above-mentioned test mark (Test ID) information can adopt fixing field form, such as, be Test id field by a certain Field Definition; Or Test id information also can adopt TLV form.
The form of the message format of concrete ethernet frame, the form of LMM PDU, LMR PDU, the structure of TestID information respectively can see the related contents in said method.
Further, above-mentioned stream statistical rules can be at least two.
The present embodiment by carrying test identification information in LMM frame, this test identification information correspondence stream statistical rules, realize adopting stream statistical rules determination statistical value when loss packet test, instead of only add up according to vlan information in prior art, realize the fine granularity of loss packet test, according to different business statistics needs, the division of not homogeneous turbulence statistical rules can be carried out, and correct loss packet test can be carried out when various flows statistical rules.
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 test identification information in this LMM frame; Determination module 92 is for the corresponding relation according to pre-configured test identification information and stream statistical rules, determine the stream statistical rules that the test identification information that carries in this LMM frame that this receiver module receives is corresponding, and obtain the statistical value of service message according to this stream statistical rules; Sending module 93 is carried at packet loss for the statistical value of this service message obtained by this determination module and measures to reply in 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 counted, and this test identification information comprises: the value of the type of test identification information, the length of test identification information and test identification information, and this equipment also comprises:
Configuration module, type and stream for this test identification information of pre-configured this determination module employing add up the corresponding relation of foundation, and the corresponding relation of the test value of identification information and the stream information of statistic fluid.
Optionally, this stream statistics is according to comprising:
DA and SA according to service message adds up; Or,
DA, SA, VALN ID and VLAN priority according to service message is added up; Or,
According to service message from the MEP ID of MEP add up.
Optionally, the equipment of the present embodiment can also comprise:
Judge module, for judging the validity of the LMM frame received, triggers the statistical value that this determination module obtains service message when effective.Specifically can determine the validity of LMM frame in the following way:
If the MEG grade (concrete can obtain from the MEL field of LMM PDU) of the LMM frame received is greater than the MEG grade of oneself, forward according to OAM transparent forwarding principle Y.1731;
If the MEG grade of the LMM frame received is less than the MEG grade of oneself, think that invalid frame can be abandoned;
If the MEG grade of LMM frame received equals the MEG grade of oneself, judge that whether DA is oneself MAC Address, if so, be defined as valid frame and process, if not, being defined as invalid frame can be abandoned.
Above-mentioned equipment can for supporting the equipment that OAM packet loss is measured, concrete as, any one in base station, switch, router, base station controller.
Above-mentioned test mark (Test ID) information can adopt fixing field form, such as, be Test id field by a certain Field Definition; Or Test id information also can adopt TLV form.
The form of the message format of concrete ethernet frame, the form of LMM PDU, LMR PDU, the structure of TestID information respectively can see the related contents in said method.
Further, above-mentioned stream statistical rules can be at least two.The present embodiment is by determining according to the test identification information carried in LMM frame to flow statistical rules, this test identification information correspondence stream statistical rules, realize adopting stream statistical rules determination statistical value when loss packet test, instead of only add up according to vlan information in prior art, realize the fine granularity of loss packet test, according to different business statistics needs, the division of not homogeneous turbulence statistical rules can be carried out, and correct loss packet test can be carried out when various flows statistical rules.Further, whether test request side is that oneself sends by validation test identification information, can improve packet loss accuracy and saving resource further.Test answer party, by the validity of checking LMM frame, carries out counting messages again, can improve utilization of resources rate after effectively.
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 identification information, for sending LMM frame to test answer party, carries in this LMM frame in test request side 101; And, receive the LMR frame that this test answer party sends, and according to the statistical value of the service message carried in this LMR frame, and the statistical value of local service message carries out loss packet test, the statistical value of this service message is that the stream statistical rules that this test answer party is corresponding according to this test identification information is determined.The LMM frame that test answer party 102 sends for receiving test request side, carries test identification information in this LMM frame; According to the corresponding relation of pre-configured test identification information with stream statistical rules, determine the stream statistical rules that the test identification information that carries in this LMM frame is corresponding, and obtain the statistical value of service message according to this stream statistical rules; And be carried in LMR frame by the statistical value of this service message and send 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 concrete embodiment shown in Figure 8, and test answer party 102 can concrete embodiment shown in Figure 9.
The present embodiment is by determining according to the test identification information carried in LMM frame to flow statistical rules, this test identification information correspondence stream statistical rules, realize adopting stream statistical rules determination statistical value when loss packet test, instead of only add up according to vlan information in prior art, realize the fine granularity of loss packet test, according to different business statistics needs, the division of not homogeneous turbulence statistical rules can be carried out, and correct loss packet test can be carried out when various flows statistical rules.Further, whether test request side is that oneself sends by validation test identification information, can improve packet loss accuracy and saving resource further.Test answer party, by the validity of checking LMM frame, carries out counting messages again, can improve utilization of resources rate after effectively.
Be understandable that, the correlated characteristic in said method and equipment can reference mutually.In addition, " first ", " second " in above-described embodiment etc. are for distinguishing each embodiment, and do not represent the quality of each embodiment.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart 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 test identification information in described LMM frame, described test identification information correspondence stream statistical rules;
Test request side receives the packet loss measurement reply LMR frame that described test answer party sends, and according to the statistical value of the service message carried in described LMR frame, and the statistical value of local service message carries out loss packet test, the statistical value of the service message carried in described LMR frame is that the stream statistical rules that described test answer party is corresponding according to described test identification information is determined;
Wherein, described test identification information is used to indicate and carries out loss packet test according to customizing messages to specific stream, and described stream statistical rules is used for showing to add up specific stream according to specific information.
2. method according to claim 1, it is characterized in that, in described LMR frame, also carry test identification information, the statistical value of the described service message according to carrying in described LMR frame, and before the statistical value of local service message carries out loss packet test, described method also comprises:
Test request side judges whether the test identification information carried in 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, before described test request direction test answer party sends LMM frame, described method also comprises:
Test request root is according to the stream statistical rules of 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 described LMM frame.
4. method according to claim 3, it is characterized in that, described test identification information comprises: the value of the type of test identification information, the length of test identification information and 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: test the type of identification information and flow the corresponding relation adding up foundation, and the corresponding relation of the test value of identification information and the stream information of statistic fluid.
5. an Ethernet loss packet test method, is characterized in that, comprising:
Test answer party receives the packet loss measurement message LMM frame that test request side sends, and carries test identification information in described LMM frame;
Test answer party, according to the corresponding relation of pre-configured test identification information with stream statistical rules, is determined the stream statistical rules that the test identification information that carries in described LMM frame is corresponding, and is obtained the statistical value of service message according to described stream statistical rules;
The statistical value of described service message is carried in packet loss measurement reply LMR frame and sends to described test request side by test answer party, and described LMR frame is used to indicate described test request side and carries out loss packet test;
Wherein, described test identification information is used to indicate and carries out loss packet test according to customizing messages to specific stream, and described stream statistical rules is used for showing to add up specific stream according to specific information.
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 counted, described test identification information comprises: the value of the type of test identification information, the length of test identification information and test identification information, and described method also comprises:
Type and the stream of pre-configured test identification information add up the corresponding relation of foundation and the corresponding relation of the test value of identification information and the stream information of statistic fluid.
7. method according to claim 6, is characterized in that, described stream statistics is according to comprising:
Add up according to the destination address DA of service message and source address SA; Or,
Add up according to DA, the SA of service message, VLAN ID VALN ID and VLAN priority; Or,
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, measuring message LMM frame for sending packet loss to test answer party, carrying test identification information in described LMM frame, described test identification information correspondence stream statistical rules;
Measurement module, the packet loss sent for receiving described test answer party is measured and is replied LMR frame, and according to the statistical value of the service message carried in described LMR frame, and the statistical value of local service message carries out loss packet test, the statistical value of the service message carried in described LMR frame is that the stream statistical rules that described test answer party is corresponding according to described test identification information is determined;
Wherein, described test identification information is used to indicate and carries out loss packet test according to customizing messages to specific stream, and described stream statistical rules is used for showing to add up specific stream according to specific information.
9. equipment according to claim 8, is characterized in that, also carry test identification information in described LMR frame, described equipment also comprises:
Judge module, for judging whether the test identification information carried in described LMR 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. equipment according to claim 8 or claim 9, is characterized in that, also comprise:
Determination module, 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, determine the test identification information be carried in the LMM frame of described sending module transmission.
11. 1 kinds of 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, carries test identification information in described LMM frame;
Determination module, for the corresponding relation according to pre-configured test identification information and stream statistical rules, determine the stream statistical rules that the test identification information that carries in the described LMM frame that described receiver module receives is corresponding, and obtain the statistical value of service message according to described stream statistical rules;
Sending module, the statistical value for the described service message obtained by described determination module is carried in packet loss measurement reply LMR frame and sends to described test request side, and described LMR frame is used to indicate described test request side and carries out loss packet test;
Wherein, described test identification information is used to indicate and carries out loss packet test according to customizing messages to specific stream, and described stream statistical rules is used for showing to add up specific stream according to specific information.
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 counted, described test identification information comprises: the value of the type of test identification information, the length of test identification information and test identification information, and described equipment also comprises:
Configuration module, type and stream for the described test identification information of pre-configured described determination module employing add up the corresponding relation of foundation, and the corresponding relation of the test value of identification information and the stream information of statistic fluid.
13. 1 kinds of Ethernet loss packet test systems, is characterized in that, comprising:
Equipment as described in any one of claim 8-10; And,
Equipment as described in claim 11 or 12.
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 CN102984018A (en) 2013-03-20
CN102984018B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016049872A1 (en) * 2014-09-30 2016-04-07 华为技术有限公司 Device and method for measuring network packet loss
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
CN105978728B (en) * 2016-06-20 2019-09-03 深圳前海微众银行股份有限公司 The monitoring method of intelligent monitor system and operational indicator
CN109995603B (en) * 2017-12-29 2020-12-15 中国移动通信集团山东有限公司 Method and device for measuring packet loss under Tag model and electronic equipment
CN108737221B (en) * 2018-06-28 2020-09-15 新华三技术有限公司 Packet loss detection method and communication link system
CN109450739B (en) * 2018-12-21 2021-09-24 江西山水光电科技股份有限公司 Method for realizing Ethernet OAM test function in packet transport network based on FPGA
CN109981414B (en) * 2019-03-29 2021-08-24 烽火通信科技股份有限公司 method for acquiring packet loss number between mpls network nodes
CN110932934B (en) * 2019-11-21 2021-07-13 中国联合网络通信集团有限公司 Network packet loss detection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010028654A (en) * 2008-07-23 2010-02-04 Fujitsu Ltd Communication apparatus and oam frame transmission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN102984018A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN102984018B (en) Ethernet loss packet test method, equipment and system
US8045475B2 (en) Method and apparatus for providing availability metrics for measurement and management of ethernet services
EP2521317B1 (en) Method, device and router for packet loss detection
US20140086064A1 (en) Ethernet oam performance management
US20070064611A1 (en) Method for monitoring packet loss ratio
US20050099951A1 (en) Ethernet OAM fault detection and verification
CN102546117B (en) A kind of LOF method of measurement, Apparatus and system
CN106713074B (en) Data network quality segmentation detection method based on business tine and system
CN105072629A (en) Method, equipment and system for measuring quality of business at terminal
US20150036510A1 (en) Method and device for measuring ethernet performance
CN106411625A (en) Link message packet loss measurement method and system, target node and initiator node
CN104205738B (en) Interconnect the methods, devices and systems of error detection
CN114430386A (en) Method and related device for detecting multicast service flow
CN101160821A (en) Method of measuring MPLS network performance parameter and packet transmission device and system
CN108199913B (en) Method and equipment for realizing time delay test
US9331927B2 (en) Communication system, communication device, and communication method
CN107425995A (en) Bidirectional measurement control method, send business device and receive business device
CN110166311B (en) Method, equipment and network system for measuring network performance
CN102404152B (en) Method and equipment for identifying response messages
CN113810295A (en) Path detection method, device and system
CN102752169B (en) Transmitting, monitoring method and device
CN102025571B (en) The method and apparatus that multipoint link packet loss is measured
CN110784378B (en) Method and device for realizing accurate flow balance by using TWAMP (two way operational amplifier)
CN102984019B (en) Ethernet Loopback method of testing and equipment
WO2015136812A1 (en) Middle server, network system, and method for narrowing down location and cause of deterioration in communication quality therein

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