This application is a continuation application of International Application No. PCT/CN2006/000534, filed Mar. 29, 2006, which claims priority in Chinese Application No. 2005-10058846.1, filed Mar. 30, 2005, both of which are entitled “Method for Monitoring Packet Loss Ratio”. The full disclosure of these applications are hereby incorporated by reference.
The present invention relates to label switching technology, and more particularly, to a method for monitoring packet loss ratio in a label switching network or in a multi-domain label switching network.
As a key technique of Next Generation Network (NGN), Multi-Protocol Label Switching (MPLS) technique has become more and more important in an Internet Protocol (IP) network. At present, the MPLS technique has evolved into General MPLS (GMPLS) through further alteration, and GMPLS can be used in a packet switching network such as Ethernet. These packet switching networks can be called label switching networks.
Since the packet loss ratio is an important index indicating the performance of a network, and it can reflect the quality of service (QoS) of the network, how to monitor the packet loss ratio in a label switching network becomes an urgent problem to be solved.
The present invention provides a method for monitoring packet loss ratio in a label switching network, by which the accurate packet loss ratio of a label switching path (LSP) of the label switching network can be obtained in time.
The present invention also provides a method for monitoring the packet loss ratio in a multi-domain label switching network, by which the accurate packet loss ratio of each operation, administration and maintenance (OAM) domain of an LSP in the label switching network can be calculated in time.
In the first aspect, the present invention provides a method for monitoring the packet loss ratio in a label switching network, which includes:
sending an OAM frame with packet statistical information to a destination node by a source node of an LSP; and
the destination node receiving and analyzing the OAM frame to obtain the packet statistical information, and calculating the packet loss ratio of the LSP according to the packet statistical information.
In another aspect, the present invention provides a method for monitoring the packet loss ratio in a multi-domain label switching network, which includes:
appointing a single or a plurality of Operation, Administration and Maintenance (OAM) domain on a label switching path, and determining an ingress node and an egress node of each OAM domain;
the ingress node of each OAM domain sending an OAM frame with the packet statistical information to the egress node of the same OAM domain; and
the egress node receiving and analyzing the in-domain OAM frame to obtain the packet statistical information, and calculating the packet loss ratio of the OAM domain according to the packet statistical information.
It can be seen from the above description that, in the method according to the present invention, the packet statistical information obtained by the source node of the LSP is sent to the destination node through the extended OAM frames, which includes: a newly defined OAM frame used for monitoring the packet loss ratio, a CV frame or an FFD frame, therefore, the destination node can obtain the packet statistical information from the upstream node and calculate the packet loss ratio in time. This method has such advantages as that the packet loss ratio can be obtained in time, the packet loss ratio calculated is accurate, and the method is simple to realize. Moreover, by the method according to the present invention, network resources, such as bandwidth, occupied by sending the packet statistical information of the label switching network are greatly reduced.
Furthermore, the present invention also provides a method for monitoring the packet loss ratio in the multi-domain label switching network, by which the packet loss ratio of an LSP segment in one OAM domain can be monitored, thus the performance and security of each part of the label switching network can be determined expediently, and the part responsible for deterioration of the performance of the network can be located.
In order to monitor the packet loss ratio of an LSP in a label switching network, packet statistical information is sent by the source node of the LSP to the destination node by means of an OAM frame according to the present invention. Upon receiving the OAM frame sent by the source node of the LSP, the destination node determines the packet loss ratio according to the packet statistical information carried in the OAM frame. A detailed description will be given hereinafter with reference to preferred embodiments of the present invention.
In the method according to a first embodiment of the present embodiment, the existing OAM frame is extended to carry packet statistical information. The specific extending method includes the following steps: A new OAM type is defined to identify the OAM frame used for monitoring the packet loss ratio. The newly defined OAM frame used for monitoring the packet loss ratio is uniquely identified by the newly defined OAM type in the type field of the existing OAM frame. Another field of the OAM frame type is defined as a packet statistic field to carry the packet statistical information. According to the present embodiment, the packet statistical information refers to the number of packets sent by the source node of the LSP.
Step 101: the source node of the LSP sends an OAM frame used for monitoring the packet loss ratio to the destination node of the LSP, wherein, the OAM frame carries the number of packets (Tt) sent by the source node.
As mentioned above, the source node utilizes the OAM frame type field of the newly defined OAM frame type to identify that the present OAM frame is used for monitoring the packet loss ratio, and the number of packets (Tt) sent by the source node is carried in the packet statistic field of the OAM frame.
Step 102: upon receiving the OAM frame used for monitoring the packet loss ratio, the destination node obtains the number of packets (Tt) sent by the source node, which is carried in the OAM frame sent by the source node, and then obtains the number of packets (Rt) received by the destination node, so that a data pair (Tt,Rt) is obtained.
In order to implement the above step, the destination node needs to count the number of packets (Rt) that have been received by itself while receiving the packets.
Step 103: the destination node calculates the packet loss ratio of the LSP according to the obtained data pair (Tt,Rt) and the data pair (Tt−1,Rt−1) obtained on receiving the last OAM frame used for monitoring the packet loss ratio.
The calculation in this step is realized by adopting the following formula (1) and formula (2):
Packet Loss=|Tt−Tt−1|−|Rt−Rt−1| (1)
Packet Loss ratio=Packet Loss/|Tt−Tt−1| (2)
Furthermore, in order to avoid a calculation error caused by packets buffering at the interface of the destination node, the destination node of the LSP will catch the OAM frame used for monitoring the packet loss ratio at a location near the sending packet of a sending buffer queue. In this embodiment, the source node of the LSP sends the packet statistical information i.e. the number of packets sent by the source node of the LSP to the destination node via the extended OAM frame. In this way, the destination node can calculate the packet loss ratio of the LSP according to the number of packets received by itself and the number of packets sent by the source node. It can be seen that the method according to the present embodiment not only can monitor the current packet loss ratio of the LSP timely and accurately, but also is simple to implement while few modifications need to be made to the existing label switching network.
An example is hereinafter given to the method in accordance with this embodiment with reference to
Besides the method of extending the existing OAM frame, other types of OAM frame can also be used for monitoring the packet loss ratio. A second embodiment of the present invention provides a method of carrying the packet statistical information by an existing Connectivity Verification (CV) frame or Fast Failure Detection (FFD) frame used as the OAM frame.
In the label switching network, in order to detect the state of a created LSP, the source node of the LSP will send a CV frame or FFD frame to the destination node periodically, and the destination node will determine if the LSP is normal or not according to whether the CV frame or FFD frame sent by the source node are received periodically. The time interval for the source node sending the CV frames or FFD frames can be from several micro seconds (ms) to several seconds (s). For example, for FFD frames, the minimum sending time interval can be 10 ms. Therefore, the source node can utilize the CV frames or FFD frames to transmit the packet statistical information to the destination node.
In the existing structure of the CV frame and FFD frame, the CV frame has a padding field with a length of 18 bytes, while the FFD frame has a padding field with a length of 17 bytes. The meaning of the padding field has not been defined yet, and the purpose of using the padding field is to make different OAM frames have the same length. Because the existing CV frame or FFD frame can not carry the packet statistical information, the present embodiment extends the existing CV frame or FFD frame by defining a part of the padding field of the CV frame or FFD frame to be a new packet statistic field to carry the packet statistical information. In this way, the destination node can calculate the packet loss ratio of the LSP according to the packet statistical information carried by the CV frame or FFD frame.
A detailed description of the present embodiment will be given hereinafter, taking a CV frame as an example. To be specific, in the present embodiment, the packet statistical information refers to the number of packets sent by the source node. The method is shown in
Step 301: the source node of the LSP sends CV frames to the destination node of the LSP periodically, wherein the CV frames carries the number of packets (Tt) sent by the source node.
As mentioned above, the number of packets (Tt) sent by the source node is carried in the extended packet statistic field in the padding field of the CV frame.
Step 302: upon receiving a CV frame, the destination node obtains the number of packets (Tt) sent by the source node carried in the packet statistic field and obtains the number of packets (Rt) received by itself. In this way, a data pair (Tt,Rt) is obtained.
As mentioned in step 102, the destination node also needs to count the number of packets (Rt) received by itself while receiving packets.
Step 303: the destination node calculates the packet loss ratio of the LSP according to the obtained data pair (Tt,Rt) and the data pair (Tt−1,Rt−1) obtained on receiving the last CV frame used for monitoring packet loss ratio.
The calculation mentioned in this step is the same as that in step 102, i.e. the calculation is realized by adopting the formula (1) and formula (2).
The process of monitoring the packet loss ratio using the FFD frame is similar to the process mentioned above, so no further description will be given here.
As mentioned above, in order to avoid a calculation error caused by packets buffering at the interface of the destination node, the destination node of LSP will catch the CV frame or FFD frame at a location near the sending packet of a sending buffer queue.
In the present embodiment, the source node of the LSP sends the packet statistical information i.e. the number of packets sent by the source node of the LSP to the destination node via the extended CV frame or FFD frame. In this way, the destination node can calculate the packet loss ratio of the LSP according to the number of packets received by itself and the number of packets sent by source node. It can be seen that the method mentioned in the present embodiment not only can monitor the current packet loss ratio of the LSP timely and accurately, but also is simple to implement while few modifications are made to the existing label switching network.
A third embodiment of the present invention provides a method for monitoring the packet loss ratio of each OAM domain of an LSP in the case that the LSP is a multi-domain LSP.
While performing distributed domain management to an LSP, one or a plurality of OAM domain(s) will be pre-appointed in the LSP, at the same time an ingress node and an egress node of each OAM domain are determined. The OAM domains can be consistent with the routing domains of the LSP. In this case, the OAM domains are automatically created when the routing domains are created. Alternatively, the OAM domains can be inconsistent with the routing domains. In this case, the OAM domains and the ingress and egress nodes thereof can be appointed via configuration.
As shown in
For a multi-domain LSP, each OAM domain in the LSP can be managed in a distributed domain via a newly defined in-domain OAM frame. To be specific, the in-domain OAM frame carrying management information is inserted to the ingress node of each OAM domain, and the egress node of the OAM domain receives and analyzes the in-domain OAM frame, and then manages the OAM domain according to the management information carried by the in-domain OAM frame.
Be consistent with an end-to-end OAM frame, the in-domain OAM frame includes an OAM label and an OAM payload. And the encapsulation format of the in-domain OAM frame is realized by adding another layer of in-domain OAM label in the LSP label while carrying an OAM payload. The format of an OAM label is the same as that of the MPLS, which includes four fields: label, exp, s and ttl, wherein the label field carries a special number used for identifying the data frame as an in-domain OAM frame, for example, adopting 13, which is a reserved label number of the MPLS, to distinguish the data frame from an end-to-end OAM frame of which the label number is 14 according to the MPLS protocol. The meanings of other fields such as exp, s and ttl are the same as those of the MPLS label, detailed description of which could be found in RFC3032. The payload part of the OAM frame can include various types of management information according to different functions implemented by the OAM frame, for example, the payload can include various end-to-end OAM types defined by each standard organization. Furthermore, the payload of the in-domain OAM frame should also include an identification of the OAM domain to distinguish different OAM domains.
In the method of the present embodiment, the packet statistical information is transmitted using the in-domain OAM frame. The in-domain OAM frame can be an in-domain CV frame or an in-domain FFD frame or an extended new-type in-domain OAM frame.
If an in-domain CV frame or in-domain FFD frame is used for transmitting the packet statistical information, a packet statistic field needs to be added to the padding field of the in-domain CV frame or the in-domain FFD frame to carry the packet statistical information.
If an extended new type of in-domain OAM frame is used, a new in-domain OAM type has to be defined first, the newly defined in-domain OAM type is used to uniquely identify the in-domain OAM frame which is used for monitoring the packet loss ratio, and at the same time, a field of the in-domain OAM frame is defined to be a packet statistic field to carry the packet statistical information.
In the present embodiment, the packet statistical information refers to the number of packets (Tt) received or sent by the ingress node of an OAM domain of the LSP. Because the ingress nodes of some OAM domains of the LSP only transmit packets, the packet statistical information can also be the number of packets received by the ingress node of this OAM domain.
Step 501: insert an in-domain OAM frame in the ingress node of an OAM domain, and the in-domain OAM frame carries the number of packets received or sent by the ingress node of the OAM domain.
In this step, as mentioned above, the in-domain OAM frame can be an in-domain OAM frame with a special OAM type identification and for monitoring the packet loss ratio. In this case, the number of packets sent or received by the ingress node of the OAM domain will be carried in the packet statistic field of the in-domain OAM frame. Furthermore, the in-domain OAM frame can also be an in-domain CV frame or an in-domain FFD frame. In this case, the number of packets (Tt) sent or received by the ingress node of the OAM domain will be carried in a newly defined packet statistic field in the padding field of the in-domain CV frame or the in-domain FFD frame.
Step 502: upon detecting the in-domain OAM frame, the egress node of the OAM domain obtains the number of packets (Tt) sent or received by the ingress node of the OAM domain, and obtains the number of packets (Rt) received or sent by itself. In this way, a data pair (Tt,Rt) is obtained.
As mentioned in step 102, in order to implement the above step, the egress node needs to count the number of packets (Rt) sent or received by itself while receiving packets.
Step 503: the egress node calculates the packet loss ratio of the LSP according to the obtained data pair (Tt,Rt) and the data pair (Tt−1,Rt−1) obtained on receiving the last OAM frame used for monitoring the packet loss ratio.
The calculation in this step is the same as that in Step 102, i.e. the calculation is realized by adopting formula (1) and formula (2).
As mentioned above, in order to avoid a calculation error caused by packet buffering at the interface of the egress node of the OAM domain, the egress node of the OAM domain will catch the in-domain OAM frame at a location near the sending packet of a sending buffer queue.
It can be seen from the method described in the present embodiment, the source node of the LSP sends the packet statistical information i.e. the number of packets sent or received by the ingress node of the OAM to the egress node via the extended in-domain OAM frame, the CV frame or the FFD frame used for monitoring the packet loss ratio. In this way, the egress node of the OAM domain can calculate the packet loss ratio in the OAM domain according to the number of packets received or sent by itself and the number of packets sent or received by the ingress node. The method is simple to implement while few modifications are made to the existing label switching network.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope thereof. Thus, it is intended that the present invention covers the modifications and variations of this invention that come within the scope of the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
200510058846.1 | Mar 2005 | CN | national |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN06/00534 | Mar 2006 | US |
Child | 11506112 | Aug 2006 | US |