CN107547291A - Method for monitoring performance, device and router - Google Patents

Method for monitoring performance, device and router Download PDF

Info

Publication number
CN107547291A
CN107547291A CN201610486103.2A CN201610486103A CN107547291A CN 107547291 A CN107547291 A CN 107547291A CN 201610486103 A CN201610486103 A CN 201610486103A CN 107547291 A CN107547291 A CN 107547291A
Authority
CN
China
Prior art keywords
monitoring
lsp
bag
parameter
physical interface
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
CN201610486103.2A
Other languages
Chinese (zh)
Other versions
CN107547291B (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.)
XFusion Digital 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 CN201610486103.2A priority Critical patent/CN107547291B/en
Publication of CN107547291A publication Critical patent/CN107547291A/en
Application granted granted Critical
Publication of CN107547291B publication Critical patent/CN107547291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of method for monitoring performance, device and router, belong to communication technical field.Methods described includes:Before the first physical interface of router sends the first monitoring bag, router determines the path of the first monitoring bag according to forward table, and path includes the first LSP and overlaps the first PW on the first LSP;Monitored and wrapped according to coordinates measurement first, first monitoring bag is MPLS bags, the MPLS label of first monitoring bag generates according to the first LSP, the PW labels of first monitoring bag are generated according to the first PW, and the first monitoring parameter, the first LSP the second monitoring parameter and the first PW the 3rd monitoring parameter of the first physical link of the first physical interface of connection are included after PW labels;The first monitoring bag is sent from the first physical interface, router can determine the network performance of the first physical link, the first LSP and the first PW this three simultaneously by one first monitoring bag, it is possible to reduce occupancy of the network performance monitoring to bandwidth.

Description

Method for monitoring performance, device and router
Technical field
The present invention relates to communication technical field, more particularly to a kind of method for monitoring performance, device and router.
Background technology
Network performance is the measurement index of network quality, wherein, network performance includes the packet loss of bag, transmission The parameters such as time delay.Many networks need to be monitored network performance at present.
With multiprotocol label switching (English:Multiprotocol Label Switching, MPLS) it is virtual special With network (English:Virtual private network, VPN) exemplified by, there are multiple routes in MPLS VPN Device, this multiple router can establish mulitpath, and multiple physical links, overlapping (English are included per paths Text:Over the) (English of the label switched path on these physical links:Label Switched Path, LSP) and the pseudo-wire (English pseudo wire, PW) on LSP is overlapped.In monitoring MPLS VPN Network performance when, router needs to monitor each physical link of every paths, LSP and PW respectively Network performance.
When monitoring the network performance of one of physical link, the router generation of one end of physical link is taken The link monitoring bag of monitoring parameter with the physical link, and the link monitoring bag is sent to the physical link The other end router.The link monitoring bag is link layer bag.Such as the physical link is ethernet link, Then the link monitoring bag is Ethernet bag.The router for receiving the link monitoring bag is true according to the link monitoring bag The network performance of the fixed physical link.The router at each physical link both ends in multiple physical links is to each From the network performance for so determining each physical link.When monitoring LSP network performance, LSP one end Router generation carries the LSP monitoring bags of the monitoring parameter of the LSP, and LSP monitoring bags are sent to The router of the LSP other ends.LSP monitoring bags are MPLS bags.Receive the router of LSP monitoring bags Bag determination LSP network performance is monitored according to the LSP.When monitoring PW network performance, PW mono- The router generation at end carries the PW monitoring bags of the monitoring parameter of the PW, and the PW is monitored into bag and sent Router to the PW other ends.The router for receiving PW monitoring bags should according to PW monitoring bag determinations PW network performance.
Because router needs the transmission link monitoring on physical link to wrap to monitor the internetworking of physical link Can, LSP monitoring bag is transmitted on LSP to monitor LSP network performance, PW monitoring is transmitted on PW Wrap to monitor PW network performance, the Internet resources of occupancy are more, so as to reduce the effective band for distributing to user It is wide.
The content of the invention
Need respectively that transmitting, monitoring bag monitors it on physical link, LSP and PW to solve router Network performance, the problem of distributing to the effective bandwidth of user is taken, this application provides a kind of performance monitoring side Method, device and router.Technical scheme is as follows:
First aspect, there is provided a kind of method for monitoring performance, this method include:
Before the first physical interface of router sends the first monitoring bag, router determines first according to forward table The path of bag is monitored, the path includes the first LSP and overlaps the first PW on the first LSP;According to The coordinates measurement first monitors bag, and the first monitoring bag is MPLS bags, and first monitors the MPLS label wrapped Generated according to the first LSP, the PW labels of the first monitoring bag generate according to the first PW, after PW labels Second monitoring of the first monitoring parameter, the first LSP of the first physical link including the first physical interface of connection 3rd monitoring parameter of parameter and the first PW;The first monitoring bag is sent from the first physical interface;Wherein, One monitoring parameter is used for the network performance for determining the first physical link, and the second monitoring parameter is used to determine the first LSP Network performance, the 3rd monitoring function parameter be used for determine the first PW network performance.
Because the first PW is overlapped on the first LSP, and the first LSP overlaps multiple first physical links On, therefore, the first monitoring bag transmitted on the first PW also need to by multiple first physical links and First LSP, so, router can determine the first physics according to the first monitoring parameter in the first monitoring bag The network performance of link, the first LSP network performance is determined according to the second monitoring parameter, according to the 3rd monitoring Parameter determines the first PW network performance, so as to determine the first physics chain simultaneously by one first monitoring bag The network performance on road, the first LSP and the first PW this three, it is possible to reduce network performance monitoring is to bandwidth Take.
In the first realization of first aspect, the first physical interface sends multiple monitoring bags, the first monitoring bag For the current monitoring bag to be sent in multiple monitoring bags, router determines the first monitoring bag according to forward table Path, including:
Router determine in all paths related to the first physical interface in forward table and multiple monitoring bags in The different path in any one path at least one path of at least one monitoring bag sent;Wherein, All paths related to the first physical interface include overlapping at least one LSP on the first physical link With the PW on each LSP for overlapping at least one LSP.
At least the one of at least one monitoring bag that the path and multiple monitoring determined due to router has been sent in wrapping Any one path in individual path is different, and therefore, router can be from the institute related to the first physical interface Have and monitoring bag is sent in path, in this manner it is possible to monitor the network performance of the first physical link, overlap the The network performance of at least one LSP on one physical link, overlap each LSP at least one LSP On PW network performance, expand the use range of network performance monitoring.
Realized with reference to the first of first aspect or first aspect, should in second of realization of first aspect Method also includes:
Router receives the second monitoring with the second physical interface and wrapped, and obtains and determined when receiving the second monitoring bag Physical interface recording parameters corresponding with the second physical interface, the second monitoring bag be MPLS bags, and second supervises The MPLS label of control bag is generated according to the 2nd LSP, and the PW labels of the second monitoring bag are given birth to according to the 2nd PW Into the 4th monitoring parameter of the second physical link including the second physical interface of connection after PW labels, second LSP the 5th monitoring parameter and the 2nd PW the 6th monitoring parameter;4th monitoring ginseng is read according to forward table Count, and the network performance of the second physical link is determined according to physical interface recording parameters and the 4th monitoring parameter; Wherein, the 5th monitoring parameter is used for the network performance for determining the 2nd LSP, and the 6th monitoring function parameter is used for true Fixed 2nd PW network performance.
With reference to second of realization of first aspect, in the third realization of first aspect, connect according to physics After mouth recording parameters and the 4th monitoring parameter determine the network performance of the second physical link, in addition to:
Router determines the 3rd physical interface, the 3rd thing according to the MPLS label of forward table and the second monitoring bag It is the physical interface for forwarding the second monitoring bag to manage interface;4th monitoring parameter is revised as to connect the 3rd thing The 7th monitoring parameter of the 3rd physical link of interface is managed, and the second monitoring bag is sent from the 3rd physical interface; Wherein, the 7th monitoring parameter is used for the network performance for determining the 3rd physical link.
With reference to second of realization of first aspect, in the 4th kind of realization of first aspect, connect according to physics After mouth recording parameters and the 4th monitoring parameter determine the network performance of the second physical link, in addition to:
Router obtains the LSP recording parameterses corresponding with the 2nd LSP determined when receiving the second monitoring bag, 5th monitoring parameter is read according to the MPLS label of forward table and the second monitoring bag, and is recorded and joined according to LSP Number and the 5th monitoring parameter determine the 2nd LSP network performance;According to forward table and the MPLS of the second monitoring bag Label determines the 4th physical interface that the 4th overlapping physical links of the 3rd LPS and the 3rd LSP are connected, 3rd LSP and the 2nd LSP adhesions, the 3rd LSP and the 2nd LSP adhesions refer to that the 2nd PW overlaps the 3rd On LSP and the 2nd LSP;4th monitoring parameter is revised as to the 8th monitoring parameter of the 4th physical link, 5th monitoring parameter is revised as to the 3rd LSP the 9th monitoring parameter, and second is sent from the 4th physical interface Monitoring bag;Wherein, the 8th monitoring parameter is used for the network performance for determining the 4th physical link, the 9th monitoring ginseng Number is used for the network performance for determining the 3rd LSP.
With reference to the third realization of first aspect, in the 5th kind of realization of first aspect, connect according to physics After mouth recording parameters and the 4th monitoring parameter determine the network performance of the second physical link, in addition to:
Router obtains the LSP recording parameterses corresponding with the 2nd LSP determined when receiving the second monitoring bag, 5th monitoring parameter is read according to the MPLS label of forward table and the second monitoring bag, and is recorded and joined according to LSP Number and the 5th monitoring parameter determine the 2nd LSP network performance;
The PW recording parameterses corresponding with the 2nd PW that determine when receiving the second monitoring bag are obtained, according to turning The monitoring parameter of PW tag readers the 6th with the second monitoring bag is delivered, and according to PW recording parameterses and the 6th Monitoring parameter determines the 2nd PW network performance.
Second aspect, there is provided a kind of performance monitoring apparatus, the device include at least one unit, and this is at least The performance prison that one unit is used to realize provided at least one realization of above-mentioned first aspect or first aspect Prosecutor method.
The third aspect, there is provided a kind of router, the device include processor and with handling the thing being connected Manage interface;The physical interface is configured as being controlled by processor, and the processor is used to realize above-mentioned first aspect Or the method for monitoring performance provided at least one realization of first aspect.
Fourth aspect, there is provided a kind of computer-readable medium, the computer-readable medium storage have for real The instruction of method for monitoring performance provided at least one realization of existing above-mentioned first aspect or first aspect.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation for the router that an exemplary embodiment of the invention provides;
Fig. 2 is a kind of schematic diagram in path that an exemplary embodiment of the invention provides;
Fig. 3 is the schematic diagram in the path under the load balancing scene that an exemplary embodiment of the invention provides;
Fig. 4 is the structural representation for the monitoring bag that an exemplary embodiment of the invention provides;
Fig. 5 is the flow chart for the method for monitoring performance that an exemplary embodiment of the invention provides;
Fig. 6 is the flow chart for the monitoring bag generation method that an exemplary embodiment of the invention provides;
Fig. 7 is the flow chart that the performance that an exemplary embodiment of the invention provides determines method;
Fig. 8 is the structure chart for the performance monitoring apparatus that an exemplary embodiment of the invention provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
Referenced herein " unit " refers to the functional structure logically divided, and being somebody's turn to do " unit " can be by pure Hardware realization, or, software and hardware is implemented in combination with.
Fig. 1 is refer to, the structure of the router 100 provided it illustrates an illustrative embodiment of the invention is shown It is intended to.The router 100 includes:Processor 120, the physical interface 140 being connected with processor 120.
The physical interface that the physical interface 140 can connect other equipment forms one or more physical links.Road It can be sent or be received with physical link by device 100 and wrapped.Wherein, the bag can be monitoring bag or Packet.
For example, processor 120 can include central processing unit (English:Central processing unit, CPU) and network processing unit is (English:Network processor, NP).Wherein, CPU and other routes Device is consulted to obtain forward table, and forward table is sent into NP.Wherein, negotiations process is used to determine turning for bag Send out path.Processor 120 can further include hardware chip.Above-mentioned hardware chip can be special collection Into circuit (English:Application-specific integrated circuit, ASIC), PLD (English Text:Programmable logic device, PLD) or its combination.Above-mentioned PLD can be complex programmable Logical device (English:Complex programmable logic device, CPLD), field programmable logic Gate array (English:Field-programmable gate array, FPGA), GAL (English: Generic array logic, GAL) or its any combination.
Memory 160 is connected with bus or other means with processor 120, and memory 160 can be volatile Property memory (English:Volatile memory), nonvolatile memory (English:non-volatile memory) Or combinations thereof.Volatile memory can be random access memory (English:random access Memory, RAM), such as static RAM (English:Static random access memory, SRAM), dynamic random access memory (English:Dynamic random access memory, DRAM). Nonvolatile memory can be read-only storage (English:Read-only memory, ROM), such as can Program read-only memory (English:Programmable read-only memory, PROM), it is erasable to compile Journey read-only storage (English:Erasable programmable read-only memory, EPROM), electricity Erasable Programmable Read Only Memory EPROM (English:electrically erasable programmable read-only Memory, EEPROM).Nonvolatile memory can also be flash memory (English:Flash memory), Magnetic memory, such as tape (English:Magnetic tape), floppy disk (English:Floppy disk), hard disk. Nonvolatile memory can also be CD.
Can be with forwarding table memory in memory 160.Wherein, forward table is used to record the path for sending data. A kind of schematic diagram in path shown in Fig. 2 is refer to, figure includes 6 routers, and router 1, route Device 2, router 3 and router 4 establish the first paths, are shown in solid in figure;Router 1, route Device 5, router 6 and router 4 establish the second paths, shown in broken lines in figure.Wherein, first road First physical link, physical interface 3 and the thing that footpath includes physical interface 1 and the connection of physical interface 2 is formed Manage Article 2 physical link, physical interface 5 and the connection of physical interface 6 that the connection of interface 4 is formed are formed the Three physical links, overlap first physical link, Article 2 physical link and Article 3 physical link it On LSP1, overlap the PW on LSP1.Second paths include physical interface 7 and physical interface 8 Connect the Article 5 physics that the Article 4 physical link formed, physical interface 9 and the connection of physical interface 10 are formed The Article 6 physical link that link, physical interface 11 and the connection of physical interface 12 are formed, overlaps Article 4 LSP2 on physical link, Article 5 physical link and Article 6 physical link, is overlapped on LSP2 PW.
PW is overlapped on LSP1 and LSP2 in Fig. 2, and now, LSP1 and LSP2 can be transmitted PW data, so as to realize the load balancing to PW.In this case, router 4 can pass through One paths and the second paths monitor PW network performance respectively.
One PW can be overlapped on multiple LSP, and multiple PW can also be overlapped on a LSP, The schematic diagram in the path under the load balancing scene shown in Fig. 3 is refer to, wherein, PW1 and PW2 are overlapped On LSP1, on the physical link that LSP1 overlaps physical interface 1 and the connection of physical interface 2 is formed; PW3 and PW4 are overlapped on LSP2, and LSP2 overlaps physical interface 1 and physical interface 2 connects shape Into physical link on.LSP is typically overlapped on the path that multiple physical links connect into, therefore, LSP Overlap and represent that LSP overlay paths include a physical link on a physical link.
The structural representation of the monitoring bag shown in Fig. 4 is refer to, the structure of the monitoring bag is related to path.Prison Control includes multiple fields, and these fields are followed successively by type indicating bit, LSP label, PW labels, the first prison Control parameter, the second monitoring parameter, the 3rd monitoring parameter.Wherein, type indicating bit is for defining Packet type Monitoring bag, for example, when the numerical value of type indicating bit is the first numerical value, Packet type wraps for monitoring.First prison The network performance that parameter is used to determine the physical link of connection physical interface is controlled, the second monitoring parameter is used to determine LSP network performance, the 3rd monitoring parameter are used for the network performance for determining PW.When network performance includes net It is delayed during network, monitoring parameter includes the timestamp for sending monitoring bag;When network performance includes packet loss, prison Control parameter includes sending the bag number of the packet sent during monitoring bag.
Forward table is additionally operable to store index entry, so that router handles monitoring bag according to index entry.Each index Item includes the position of the positional distance stack bottom label of monitoring parameter corresponding with the label in label, monitoring bag Operated corresponding to offset, label.Wherein, stack bottom label is the innermost layer label in monitoring bag, is being realized When, the predetermined flag position in innermost layer label can be arranged to second value by router, to indicate the label For stack bottom label.For example, in the monitoring bag shown in Fig. 4, the predetermined flag position in PW labels is arranged to Second value, to indicate that stack bottom label is PW labels.First monitoring parameter is apart from the position of stack bottom label Offset is offset1, and offset1 original position is the position of stack bottom label, and end position is the first monitoring The original position of parameter;Offset of second monitoring parameter apart from the position of stack bottom label is offset2, offset2 Original position be stack bottom label position, end position is the original position of the second monitoring parameter;3rd prison The offset for controlling the position of parameter distance stack bottom label is offset3, and offset3 original position is stack bottom label Position, end position is the original position of the 3rd monitoring parameter.
Operation corresponding to label involved by the present embodiment includes bullet (POP) operation, exchanges (SWAP GO) Operation and exchange (SWAP) operation.Wherein, LSP label pair when SWAP GO operations are LSP adhesions The operation answered, operated when SWAP operations are LSP adhesions corresponding to physical interface and LSP label.LSP Adhesion refers to end to end two LSP, i.e. one of LSP exit port and another LSP Inbound port be located at same router.Spring operation acts on instruction router and ejects the label.Swap operation is used for The current label of bag is exchanged for next label by instruction router.
Fig. 5 is refer to, the flow of the method for monitoring performance provided it illustrates an exemplary embodiment of the invention Figure.The method for monitoring performance, including:
Step 501, before the first physical interface of router sends the first monitoring bag, router is according to forward table Determine the path of the first monitoring bag, the path include the first LSP and overlap on the first LSP first PW。
Wrapped because router sends the first monitoring from the first physical interface, therefore, the path bag that router determines The first physical link of the first physical interface of connection is included, the path can also include overlapping the first physical link On the first LSP and overlap the first PW on the first LSP.
Specifically, it is stored with a plurality of path related to the first physical interface in forward table, router can be from A paths are selected in the mulitpath.Wherein, all paths related to the first physical interface include overlapping At least one LSP on the first physical link and overlap on each LSP at least one LSP PW.
In the present embodiment, the first physical interface sends multiple monitoring bags, and the first monitoring bag is in multiple monitoring bag Current monitoring bag to be sent, router determines the path of the first monitoring bag according to forward table, including:Road Determine what is sent in all paths related to the first physical interface in forward table and in multiple monitoring bags by device The different path in any one path at least one path of at least one monitoring bag.
For example, all paths related to the first physical interface in forward table include path 1, path 2, path 3 and path 4, and router is transmitted across monitoring bag on path 1 and path 2, also not in the He of path 3 Monitoring bag is transmitted across on path 4, then router selects a path as first from path 3 and path 4 Monitor the path of bag.By taking Fig. 3 as an example, it is not PW1/LSP1/ physics that above-mentioned path 1 to path 4, which can be, Interface 1, PW2/LSP1/ physical interfaces 1, PW3/LSP2/ physical interfaces 1 and PW4/LSP2/ physical interfaces 1. Wherein "/" represents overlapping.
When sending multiple monitoring bags, the transmission interval of multiple monitoring bags can be the same or different.
Specifically, router is determined in all paths related to the first physical interface in forward table and multiple prisons The different road in any one path at least one path of at least one monitoring bag sent in control bag Footpath, including:When the first physical interface determines path first, router include from all paths each Most preceding the first LSP of selected and sorted in one LSP, it is all on the first LSP selected from overlapping Most preceding the first PW of selected and sorted in first PW, obtain by the first physical interface, the first LSP and The path that first PW is formed;When the first physical link is non-determines path first, router is obtained previous Previous first LSP and previous first PW in the path that cycle determines, each the included from all paths Selection is overlapped on previous first LSP in one PW, and one to sort after previous first PW the One PW, obtain the path formed by the first physical link, previous first LSP and the first PW;When previous First PW is to overlap the first PW for sorting last in all first PW on previous first LSP When, one after previous first LSP of selected and sorted in each first LSP included from all paths One LSP, it is determined that overlapping most preceding one that sorted in all first PW on the first LSP selected One PW, obtain the path formed by the first physical link, the first LSP and the first PW;When previous first PW is to overlap the first PW for sorting last in all first PW on previous first LSP, and Previous first LSP is when a last LSP is sorted in each first LSP that all paths include, Most preceding the first LSP of selected and sorted in each first LSP included from all paths, selected from overlapping Most preceding the first PW of selected and sorted in all first PW on the first LSP gone out, obtain by The path that one physical link, the first LSP and the first PW are formed.
By taking Fig. 3 as an example, it is assumed that physical interface 1 is that the first physical interface, the first LSP are ordered as LSP1 And LSP2, the first PW are ordered as PW1, PW2, PW3 and PW4, then the first physical interface is successively The path of determination is:The path that is formed by physical link, LSP1 and PW1, by physical link, LSP1 and PW2 formed path, formed by physical link, LSP2 and PW3 path, by physical link, LSP2 The path formed with PW4, now a circulation terminate, and the path that the first physical interface subsequently determines remains as: The path formed by physical link, LSP1 and PW1, the road formed by physical link, LSP1 and PW2 Footpath, the path formed by physical link, LSP2 and PW3, formed by physical link, LSP2 and PW4 Path.
Assuming that the time interval that physical interface 1 sends monitoring bag is T, then physical link is using T as time interval Monitored, LSP1 and LSP2 are monitored by average time interval of 2T, PW1, PW2, PW3 and PW4 It is monitored by average time interval of 4T.Object monitored time interval in upper strata is monitored more than lower floor's object Time interval, this is the requirement for meeting the failure that upper strata object does not perceive lower floor's object.
Step 502, monitored and wrapped according to coordinates measurement first, the first monitoring bag is MPLS bags, and first monitors bag MPLS label generated according to the first LSP, first monitoring bag PW labels is generated according to the first PW, Include the first monitoring parameter, the first LSP of the first physical link of the first physical interface of connection after PW labels The second monitoring parameter and the first PW the 3rd monitoring parameter.
The form of first monitoring bag of router generation is as shown in figure 4, wherein, the first monitoring parameter is used for true The network performance of fixed first physical link, the second monitoring parameter are used for the network performance for determining the first LSP, the Three monitoring function parameters are used for the network performance for determining the first PW.
When network performance includes network delay, the first monitoring parameter is the first thing when sending the first monitoring bag The timestamp of interface generation is managed, the second monitoring parameter is the port life of the first LSP when sending the first monitoring bag Into timestamp, the 3rd monitoring parameter be send first monitoring bag when the first PW port generation timestamp. When network performance includes packet loss, the first monitoring parameter is that the first physical interface sends previous monitoring bag and the The bag number of the packet sent between one monitoring bag on the first physical link, the second monitoring parameter is first LSP sends the bag number of the packet sent between previous monitoring bag and the first monitoring bag on the first LSP, the Three monitoring parameters are to be sent between the previous monitoring bag of the first PW transmissions and the first monitoring bag on the first PW The bag number of packet.The previous monitoring bag that above-mentioned first physical interface is sent, the previous prison that the first LSP is sent Control bag and the first PW send previous monitoring bag it is orthogonal, can be identical monitoring bag or Different monitoring bags.For example, in moment 0, T, 2T, 3T, 4T, monitoring bag connects in PW1/LSP1/ physics 1, PW2/LSP1/ of mouth physical interfaces 1, PW3/LSP2/ physical interfaces 1, the He of PW4/LSP2/ physical interfaces 1 Sent respectively on PW1/LSP1/ physical interfaces 1.If the first monitoring bag is to send at the 4T moment The monitoring bag of PW1/LSP1/ physical interfaces 1, then the first physical interface is physical interface 1, and the first LSP is LSP1, First PW is PW1.The previous monitoring bag that first physical interface is sent is the PW4/LSP2/ sent at the 3T moment The monitoring bag of physical interface 1.The previous monitoring bag that first LSP is sent is the PW2/LSP1/ things sent at the T moment Manage the monitoring bag of interface 1.The previous monitoring bag that first PW is sent is the PW1/LSP1/ physics sent at 0 moment The monitoring bag of interface 1.
Step 503, the first monitoring bag is sent from the first physical interface.
In the present embodiment, router not only has the ability for sending monitoring bag, also has the energy for receiving monitoring bag Power, now, the method for monitoring performance that the present embodiment provides also include:Router is received with the second physical interface Second monitoring bag, and obtain the physics corresponding with the second physical interface determined when receiving the second monitoring bag and connect Mouth recording parameters, the second monitoring bag are MPLS bags, and the MPLS label of the second monitoring bag is according to the 2nd LSP Generation, the PW labels of the second monitoring bag are generated according to the 2nd PW, and the second thing of connection is included after PW labels Manage the 4th monitoring parameter, the 2nd LSP the 5th monitoring parameter and the 2nd PW of the second physical link of interface The 6th monitoring parameter;4th monitoring parameter is read according to forward table, and according to physical interface recording parameters and 4th monitoring parameter determines the network performance of the second physical link;Wherein, the 5th monitoring parameter is used to determine the Two LSP network performance, the 6th monitoring function parameter are used for the network performance for determining the 2nd PW.
When network performance includes network delay, the 4th monitoring parameter is the second thing when sending the second monitoring bag The very first time stamp of another physical interface generation in link is managed, physical interface recording parameters is in the second thing The second timestamp for recording during the reason monitoring bag of interface second, index entry of the router in forward table from Very first time stamp is read in 4th monitoring parameter, the difference that the second timestamp is subtracted to very first time stamp is used as the The network delay of two physical links.
When network performance includes packet loss, the 4th monitoring parameter is a monitoring bag and the second monitoring before sending Between bag, packet that another physical interface in the second physical link is sent on the second physical link First bag number.In the first realization, physical interface recording parameters is included in the second physical interface and receives second Second bag number of packet recorded during monitoring bag, that the second physical interface receives on the second physical link, And recorded when previous monitoring is wrapped, the second physical interface is received in the second physics chain in the second physical interface The three guarantees number of the packet received on road, router is according to the index entry of forward table from the 4th monitoring parameter The first bag number is read, three guarantees number is subtracted into the second bag number obtains the first difference, then the first bag number is subtracted into The second difference divided by the first bag number that one difference obtains, obtain packet loss.In second is realized, router The bag counting number of packet is emptied after the packet loss of the second physical link is calculated, then physical interface record ginseng Number is to receive recorded when the second monitoring is wrapped, the second physical interface in the second physical link in the second physical interface On the 4th bag number of packet that receives, router is according to the index entry of forward table from the 4th monitoring parameter The first bag number is read, the first bag number is subtracted into the 3rd difference divided by the first bag number that the 4th bag number obtains, obtained Packet loss.
After the network performance of the second physical link is obtained, if router is not last road in path By the LSP adhesions in device and router, then router is according to forward table and the MPLS marks of the second monitoring bag Label determine the 3rd physical interface, and the 3rd physical interface is the physical interface for forwarding the second monitoring bag;By Four monitoring parameters are revised as connecting the 7th monitoring parameter of the 3rd physical link of the 3rd physical interface, and from the Three physical interfaces send the second monitoring bag;Wherein, the 7th monitoring parameter is used for the net for determining the 3rd physical link Network performance.
When network performance includes network delay, router obtains the second physics when sending the second monitoring bag and connect The timestamp of mouth generation, the very first time timestamp replaced in the 4th monitoring parameter stab, and the present embodiment will Amended 4th monitoring parameter is referred to as the 7th monitoring parameter.When network performance includes packet loss, router Obtain and send what the second physical interface between previous monitoring bag and the second monitoring bag was sent on the second physical link The bag number of packet, the bag number is replaced into the first bag number in the 4th monitoring parameter, after the present embodiment will be changed The 4th monitoring parameter be referred to as the 7th monitoring parameter.
After the network performance of the second physical link is obtained, if router is not last road in path By the LSP adhesions in device and router, then router obtain determined when receiving the second monitoring bag with second LSP recording parameterses corresponding to LSP, the 5th prison is read according to the MPLS label of forward table and the second monitoring bag Parameter is controlled, and the 2nd LSP network performance is determined according to LSP recording parameterses and the 5th monitoring parameter;According to Forward table and the MPLS label of the second monitoring bag determine the 4th overlapping physics of the 3rd LPS and the 3rd LSP The 4th physical interface that link is connected, the 3rd LSP and the 2nd LSP adhesions, the 3rd LSP and the 2nd LSP Adhesion refers to that the 2nd PW is overlapped on the 3rd LSP and the 2nd LSP;4th monitoring parameter is revised as 8th monitoring parameter of four physical links, the 5th monitoring parameter is revised as to the 3rd LSP the 9th monitoring parameter, And send the second monitoring bag from the 4th physical interface;Wherein, the 8th monitoring parameter is used to determine the 4th physics chain The network performance on road, the 9th monitoring parameter are used for the network performance for determining the 3rd LSP.
When network performance includes network delay, the 5th monitoring parameter is the 2nd LSP when sending the second monitoring bag In port 1 generate the 3rd timestamp, LSP recording parameterses be the 2nd LSP port 2 receive second The 4th timestamp recorded during monitoring bag, index entry of the router in forward table is from the 5th monitoring parameter The 3rd timestamp is read, the 4th timestamp is subtracted into the difference of the 3rd timestamp as during the 2nd LSP network Prolong.
Router obtains the timestamp in the port generation for sending the second monitoring Bao Shi tri- LSP, by the time Stamp replaces the 3rd timestamp in the 5th monitoring parameter, and amended 5th monitoring parameter is referred to as by the present embodiment 8th monitoring parameter.
When network performance includes packet loss, the 5th monitoring parameter is a monitoring bag and the second monitoring before sending Between bag, the 5th bag number of the packet that the port 1 in the 2nd LSP is sent on the 2nd LSP.First During kind is realized, that the monitoring of the reception of port 2 second that LSP recording parameterses are included in the 2nd LSP records when wrapping, 6th bag number of the packet that port 2 receives on the 2nd LSP, and, receive previous prison in port 2 The 7th bag number recorded during control bag, packet that port 2 receives on the 2nd LSP, router according to turn The index entry delivered reads the 5th bag number from the 5th monitoring parameter, and the 7th bag number is subtracted into the 6th bag number obtains 4th difference, then the 5th bag number is subtracted into the 5th difference divided by the 5th bag number that the 4th difference obtains, obtain Two LSP packet loss.In second is realized, router empties after the 2nd LSP packet loss is calculated The bag counting number of packet, then LSP recording parameterses are when the second monitoring bag is received in the 2nd LSP port 2 8th bag number of packet record, that port 2 receives on the 2nd LSP, router is according to forward table Index entry the 5th bag number is read from the 5th monitoring parameter, that the 5th bag number is subtracted that the 8th bag number obtains Six differences divided by the 5th bag number, obtain the 2nd LSP packet loss.
Router obtains the port for sending the 2nd LSP between previous monitoring bag and the second monitoring bag in the 2nd LSP The bag number of the packet of upper transmission, the bag number is replaced into the 5th bag number in the 5th monitoring parameter, the present embodiment Amended 5th monitoring parameter is referred to as the 8th monitoring parameter.
After the network performance of the second physical link is obtained, if router is last route in path Device, then the LSP recording parameterses corresponding with the 2nd LSP that router acquisition determines when receiving the second monitoring bag, 5th monitoring parameter is read according to the MPLS label of forward table and the second monitoring bag, and is recorded and joined according to LSP Number and the 5th monitoring parameter determine the 2nd LSP network performance;Obtain what is determined when receiving the second monitoring bag PW recording parameterses corresponding with the 2nd PW, according to forward table and the PW tag readers the of the second monitoring bag Six monitoring parameters, and determine according to PW recording parameterses and the 6th monitoring parameter the 2nd PW network performance.
Wherein, router determines that the process of the 2nd LSP network performance refers to the description in above-mentioned steps, this Place repeats no more.
When network performance includes network delay, the 6th monitoring parameter is the 2nd PW when sending the second monitoring bag In port 1 generate the 5th timestamp, PW recording parameterses be the 2nd PW port 2 receive second prison The 6th timestamp recorded during control bag, index entry of the router in forward table are read from the 5th monitoring parameter The 5th timestamp is taken, the 6th timestamp is subtracted to network delay of the difference as the 2nd PW of the 5th timestamp.
When network performance includes packet loss, the 6th monitoring parameter is a monitoring bag and the second monitoring before sending Between bag, the 9th bag number of the packet that the port 1 in the 2nd PW is sent on the 2nd PW.First Kind realize in, PW recording parameterses be included in the 2nd PW port 2 receive second monitoring bag when record, end Tenth bag number of the packets that mouth 2 receives on the 2nd PW, and, receive previous monitoring in port 2 11st bag number of the packet that recorded during bag, port 2 receives on the 2nd PW, router according to turn The index entry delivered reads the 9th bag number from the 6th monitoring parameter, and the 11st bag number is subtracted into the tenth bag number obtains The 8th difference divided by the 9th bag number that the 7th difference obtains are subtracted to the 7th difference, then by the 9th bag number, is obtained 2nd PW packet loss.In second is realized, router is clear after the 2nd PW packet loss is calculated The bag counting number of empty packet, then PW recording parameterses are that the second monitoring bag is received in the 2nd PW port 2 Shi Jilu, packet that port 2 receives on the 2nd PW the 12nd bag number, router is according to turning The index entry delivered reads the 12nd bag number from the 6th monitoring parameter, and the 9th bag number is subtracted into the 12nd bag number The 9th obtained difference divided by the 9th bag number, obtain the 2nd PW packet loss.
In summary, method for monitoring performance provided in an embodiment of the present invention, because the first PW overlaps first On LSP, and the first LSP is overlapped on multiple first physical links, therefore, is uploaded in the first PW Defeated first monitoring bag is also needed to by multiple first physical links and the first LSP, and so, router can be with The first monitoring parameter in the first monitoring bag determines the network performance of the first physical link, according to the second prison Control parameter determines the first LSP network performance, and the first PW network performance is determined according to the 3rd monitoring parameter, So as to determine the first physical link, the first LSP and the first PW this three simultaneously by one first monitoring bag Network performance, it is possible to reduce occupancy of the network performance monitoring to bandwidth.
At least the one of at least one monitoring bag that the path and multiple monitoring determined due to router has been sent in wrapping Any one path in individual path is different, and therefore, router can be from the institute related to the first physical interface Have and monitoring bag is sent in path, in this manner it is possible to monitor the network performance of the first physical link, overlap the The network performance of at least one LSP on one physical link, overlap each LSP at least one LSP On PW network performance, expand the use range of network performance monitoring.
Router interior is described in detail to the generating process of the first monitoring bag below.Fig. 6 is refer to, its Show the flow chart for the bag generation method that an exemplary embodiment of the invention provides.The bag generation method, bag Include:
Step 601, router obtains the first monitoring parameter, the second monitoring parameter and the 3rd monitoring parameter, generation Including LSP label, PW labels, the first monitoring parameter, the second monitoring parameter and the 3rd monitoring parameter One monitoring bag.
Wherein, the first monitoring parameter is used for the network performance for determining the first physical link, and the first physical link is The physical link of the first physical interface is connected, the first physical interface is the physical interface for sending the first monitoring bag; Second monitoring parameter is used for the network performance for determining the first LSP;3rd monitoring function parameter is used to determine first PW network performance.
Specifically, the first monitoring of router generation bag, including:The numerical value of type indicating bit is arranged to first Numerical value;The first LSP label and the first PW labels are added in the first monitoring bag successively;Successively by first Monitoring parameter, the second monitoring parameter and the 3rd monitoring parameter are added to after the first PW labels, obtain first Monitoring bag, the first obtained monitoring bag are as shown in Figure 4.
When obtaining monitoring parameter, in the first realization, router determines the LSP/ first of the first PW/ the first Physical interface, the 3rd monitoring parameter, the second monitoring of the first LSP generations of the first PW generations are obtained successively Parameter and the first monitoring parameter of the first physical interface generation, and by the 3rd monitoring parameter, the second monitoring parameter It is encapsulated into respectively in the first monitoring bag with the first monitoring parameter.For example, when network performance includes network delay, Monitoring parameter includes timestamp, and router obtains the timestamp 3 of the first PW port generation, then obtains first The timestamp 2 of LSP port generation, then the timestamp 1 of the first physical interface generation is obtained, will be by timestamp 3 join as the 3rd monitoring parameter, using timestamp 2 as the second monitoring parameter, timestamp 1 as the first monitoring Number is encapsulated into the first monitoring bag respectively.
When obtaining monitoring parameter, in second is realized, router determines the LSP/ first of the first PW/ the first Physical interface, the first monitoring parameter of the first physical interface generation, second that the first LSP is generated are obtained successively Monitoring parameter and the 3rd monitoring parameter of the first PW generations, and by the first monitoring parameter, the second monitoring parameter It is encapsulated into respectively in the first monitoring bag with the 3rd monitoring parameter.For example, when network performance includes network delay, Monitoring parameter includes timestamp, and router obtains the timestamp 1 of the first physical interface generation, obtains the first LSP Port generation timestamp 2, obtain the first PW port generation timestamp 3, using timestamp 1 as First monitoring parameter, timestamp 2 are used as the second monitoring parameter, and timestamp 3 is distinguished as the 3rd monitoring parameter It is encapsulated into the first monitoring bag.
When the router in the present embodiment is first router in path, router can be according to above-mentioned Two kinds are realized the monitoring bag of generation first.When the router in the present embodiment is not first router in path And during LSP adhesions in this router, router can modify to the first monitoring bag received, obtain To the first new monitoring bag.
Specifically, if the first monitoring received includes the tenth monitoring parameter, the 11st monitoring parameter and the Three monitoring parameters, and the tenth monitoring parameter is used for the network performance of the 5th physical link of determination, the 5th physics chain Road is the physical link for the 5th physical interface that connection receives the first monitoring bag, and the 11st monitoring parameter is used for true Surely the network performance of the 4th LSP on the 5th physical link is overlapped, the 3rd monitoring parameter is used to determining the One PW network performance, then router the first monitoring parameter of acquisition and the second monitoring parameter, the tenth is monitored Parameter is revised as the first monitoring parameter, and the 11st monitoring parameter is revised as into the second monitoring parameter, obtained new Monitoring bag.Wherein, the acquisition modes of the first monitoring parameter and the second monitoring parameter refer to above two realization.
To receiving before the first monitoring bag modifies, router first determines the according to the tenth monitoring parameter The network performance of five physical links, when the 5th physical interface, which corresponds to POP, to be operated, according to the 11st monitoring Parameter determines the 4th LSP network performance, when the 4th LSP port corresponds to SWAP operations or SWAP When GO is operated, it is determined that being modified to the first monitoring bag.
The bag generation method that the present embodiment provides, in addition to:Router with receiving the first monitoring bag is consulted to turn Deliver, each index entry in forward table includes monitoring ginseng corresponding with the label in label, the first monitoring bag The offset of the position of several positional distance stack bottom labels, label are corresponding to be operated.
Wherein, the CPU in router consults the first monitoring bag with receiving each router of the first monitoring bag Path, and obtained by way of protocol negotiation path or static configuration path or user directly configure offset Offset between the position of monitoring parameter and the position of stack bottom label, generate forward table.
The numerical value of label in first monitoring bag is identical with the numerical value of the label in index entry.For example, the first LSP Label is 1028, then the label of corresponding index entry is 1028 in forward table.
Operation corresponding to label is that the path in table of router determines.For example, when the first physical interface When needing the first monitoring bag being sent to the first LSP port, operation corresponding to the first physical interface is POP Operation;When the first physical interface needs monitoring bag being sent to the physical interface in other routers, first Operation corresponding to physical interface is SWAP operations;When the first LSP port needs to send the first monitoring bag During port to the first PW, operation corresponding to the first LSP port is POP operations;When the first LSP's When port needs the first monitoring bag being sent to the 2nd LSP port of adhesion, the first LSP port is corresponding Operation be SWAP GO operation.
It should be noted that because the field in the first monitoring bag does not include the label of physical interface, therefore, After the first monitoring bag is received by the first physical interface, the first physical interface can be directly into forward table Search the index entry of acquiescence.
Step 602, router sends the first monitoring bag from the first physical interface.
Optionally, before router generation the first monitoring bag, in addition to:Enabled first LSP port, So that the first LSP port possesses the monitoring capacity of network performance;Enabled first PW port, so that the One PW port possesses the monitoring capacity of network performance.
Wherein, enabling the first LSP port includes:The attribute information of the first physical interface is read, detection should Whether attribute information indicates that the first physical interface has the monitoring capacity of network performance, when the attribute information indicates When first physical interface has monitoring capacity, the first LSP port is enabled.
Behind the port that router enables the first LSP, it is also necessary to the attribute information of the first LSP port is changed, So that amended attribute information indicates that the first LSP port has monitoring capacity.
Specifically, when enabled first physical interface, if router does not dispose the first LSP also, it is routeing After device has disposed the first LSP, the first LSP port is enabled, and changes the first LSP attribute information to refer to Show that the first LSP has monitoring capacity;When the attribute information indicates that the first physical interface does not have monitoring capacity, Not enabled first LSP port.If during enabled first physical interface, router has deployed the first LSP, Then the attribute information of the first physical interface is read in the first LSP port timing, when the attribute information indicates first When physical interface has monitoring capacity, the first LSP port is enabled, and change the first LSP attribute information To indicate that the first LSP has monitoring capacity;When the attribute information indicates the first physical interface without monitoring energy During power, not enabled first LSP port.
Similarly, it is identical to enable the process of port of the process of the first PW port with enabling the first LSP, this Place repeats no more.
In summary, method for monitoring performance provided in an embodiment of the present invention, go out in the first LSP Port detecting When first physical interface has the monitoring capacity of network performance, automatic enabled first LSP port, without prison Control personnel enable the first LSP port manually, can both save manpower, can also improve the first LSP end The enabled efficiency of mouth;There is the monitoring of network performance in the port that the first PW Port detecting goes out the first LSP During ability, the first PW port is enabled automatically, enables the first PW port manually without monitoring personnel, Both manpower can be saved, the first PW enabled efficiency can also be improved.
Router interior is described in detail to the processing procedure of the second control bag below.Fig. 7 is refer to, it shows The flow chart that the performance that an exemplary embodiment of the invention provides determines method is gone out.The performance determines method, Including:
Step 701, router receives the second monitoring bag.
Wherein, multiple fields that the second monitoring includes are followed successively by LSP label, PW labels, the 4th monitoring Parameter, the 5th monitoring parameter and the 6th monitoring parameter, the 4th monitoring parameter are used to determine the second physical link Network performance, the second physical link are the physical links for connecting the second physical interface, and the second physical interface is to connect Receive the physical interface of the second monitoring bag;5th monitoring parameter is used for the network performance for determining the 2nd LSP;6th Monitoring parameter is used for the network performance for determining the 2nd PW.
Step 702, router reads the 4th monitoring parameter in the second monitoring bag, true according to the 4th monitoring parameter The network performance of fixed second physical link.
When reading four monitoring parameters, router parsing the second monitoring bag obtains the position of stack bottom label, then The index entry of acquiescence is read from forward table, offset1 is read from the index entry of the acquiescence, is marked according to stack bottom The position of label and offset1 read the 4th monitoring parameter.Router determines the second physics according to the 4th monitoring parameter Description in the embodiment of the process of the network performance of link in detail as shown in Figure 5.
After the network performance of the second physical link is obtained, router determines according to the index entry of the acquiescence Operated corresponding to two physical interfaces, when operation corresponding to the second physical interface is POP operations, perform step 703;When operation corresponding to the second physical interface is SWAP operations, router is supervised according to forward table and second The MPLS label of control bag determines the 3rd physical interface, and the 3rd physical interface is for forwarding the second monitoring bag Physical interface;4th monitoring parameter is revised as connecting to the 7th prison of the 3rd physical link of the 3rd physical interface Parameter is controlled, and the second monitoring bag is sent from the 3rd physical interface;Wherein, the 7th monitoring parameter is used to determine the The network performance of three physical links.
Step 703, second LSP label of the router in the second monitoring bag reads the 5th monitoring parameter, The 2nd LSP network performance is determined according to the 5th monitoring parameter.
When reading five monitoring parameters, router reads the second LSP label from the second monitoring bag, is turning The middle index entry searched and include the second LSP label is delivered, offset2, root are read from the index entry found The 5th monitoring parameter is read according to the position of stack bottom label and offset2.Router determines according to the 5th monitoring parameter Description in the embodiment of the process of 2nd LSP network performance in detail as shown in Figure 5.
After the 2nd LSP network performance is obtained, router determines second according to the index entry found Operated corresponding to LSP port, when operation corresponding to the 2nd LSP port is POP operations, perform step Rapid 704;When operation corresponding to the 2nd LSP port is SWAP GO operations, router is according to forward table The 4th overlapping physical link institutes of the 3rd LPS and the 3rd LSP are determined with the MPLS label of the second monitoring bag 4th physical interface of connection, the 3rd LSP and the 2nd LSP adhesions, the 3rd LSP and the 2nd LSP adhesions are Refer to the 2nd PW to overlap on the 3rd LSP and the 2nd LSP;4th monitoring parameter is revised as the 4th physics 8th monitoring parameter of link, the 5th monitoring parameter is revised as the 3rd LSP the 9th monitoring parameter, and from 4th physical interface sends the second monitoring bag;Wherein, the 8th monitoring parameter is used to determine the 4th physical link Network performance, the 9th monitoring parameter are used for the network performance for determining the 3rd LSP.
Step 704, twoth PW tag reader sixth monitoring parameter of the router in the second monitoring bag, root The 2nd PW network performance is determined according to the 6th monitoring parameter.
When reading six monitoring parameters, router reads the 2nd PW labels from the second monitoring bag, is turning The middle index entry searched and include the 2nd PW labels is delivered, offset3, root are read from the index entry found The 6th monitoring parameter is read according to the position of stack bottom label and offset3.Router determines according to the 6th monitoring parameter Description in the embodiment of the process of 2nd PW network performance in detail as shown in Figure 5.
Fig. 8 is refer to, the structure of the performance monitoring apparatus provided it illustrates an exemplary embodiment of the invention Figure.The performance monitoring apparatus can be implemented in combination with as the complete of router by software, hardware or both Portion or a part.The performance monitoring apparatus can include:Determining unit 810, generation unit 820, send Unit 830.
Determining unit 810, for realizing the function of above-mentioned steps 501.
Generation unit 820, for realizing the function of above-mentioned steps 502.
Transmitting element 830, for realizing the function of above-mentioned steps 503.
Correlative detail can combine embodiment of the method described in reference diagram 5.
It should be noted that above-mentioned determining unit 810 and generation unit 820 can be by router Processor is realized;Above-mentioned transmitting element 830 can determine transmission opportunity by the processor in router, Realization is sent by transceiver.
Those of ordinary skill in the art with reference to what the embodiments described herein described it is to be appreciated that respectively show The unit and algorithm steps of example, it can be come with the combination of electronic hardware or computer software and electronic hardware Realize.These functions are performed with hardware or software mode actually, application-specific depending on technical scheme And design constraint.
Those of ordinary skill in the art can be understood that, for convenience and simplicity of description, foregoing description Device and unit specific work process, may be referred to the corresponding process in preceding method embodiment, herein Repeat no more.
In embodiment provided herein, it should be understood that disclosed apparatus and method, Ke Yitong Other modes are crossed to realize.For example, device embodiment described above is only schematical, for example, It the division of the unit, can be only a kind of division of logic function, can there is other draw when actually realizing The mode of dividing, such as multiple units or component can combine or be desirably integrated into another system, or some spies Sign can be ignored, or not perform.
The unit illustrated as separating component can be or may not be it is physically separate, as The part that unit is shown can be or may not be physical location, you can with positioned at a place, or It can also be distributed on multiple NEs.It can select according to the actual needs therein some or all of Unit realizes the purpose of this embodiment scheme.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited to This, any one skilled in the art the invention discloses technical scope in, can readily occur in Change or replacement, it should all be included within the scope of the present invention.Therefore, protection scope of the present invention should It is described to be defined by scope of the claims.

Claims (18)

1. a kind of method for monitoring performance, it is characterised in that methods described includes:
Before the first physical interface of router sends the first monitoring bag, the router determines according to forward table The path of the first monitoring bag, the path include the first label switching path LSP and overlap described the The first pseudo-wire PW on one LSP;
The first monitoring bag according to the coordinates measurement, the first monitoring bag is multiprotocol label switching MPLS bags, the MPLS label of the first monitoring bag generate according to the first LSP, first prison The PW labels of control bag are generated according to the first PW, and connection described first is included after the PW labels First monitoring parameter of the first physical link of physical interface, the second monitoring parameter of the first LSP and institute State the first PW the 3rd monitoring parameter;
The first monitoring bag is sent from first physical interface;
Wherein, first monitoring parameter is used to determining the network performance of first physical link, described the Two monitoring parameters are used for the network performance for determining the first LSP, and the 3rd monitoring function parameter is used for true Fixed first PW network performance.
2. according to the method for claim 1, it is characterised in that first physical interface sends multiple Monitoring bag, first monitoring are wrapped as the current monitoring bag to be sent in the multiple monitoring bag, the road The path of the first monitoring bag is determined according to forward table by device, including:
The router determines in all paths related to first physical interface in the forward table and institute State any one path at least one path of at least one monitoring bags sent in multiple monitoring bags not Same path;
Wherein, all paths related to first physical interface include overlapping first physical link On at least one LSP and overlap the PW on each LSP at least one LSP.
3. method according to claim 1 or 2, it is characterised in that methods described also includes:
The router receives the second monitoring with the second physical interface and wrapped, and obtains and receiving second monitoring The physical interface recording parameters corresponding with second physical interface determined during bag, the second monitoring bag are MPLS bags, the MPLS label of the second monitoring bag generate according to the 2nd LSP, the second monitoring bag PW labels generated according to the 2nd PW, include after the PW labels connecting second physical interface The 4th monitoring parameter of the second physical link, the 5th monitoring parameter of the 2nd LSP and the 2nd PW The 6th monitoring parameter;
4th monitoring parameter is read according to the forward table, and according to the physical interface recording parameters and 4th monitoring parameter determines the network performance of second physical link;
Wherein, the 5th monitoring parameter is used for the network performance for determining the 2nd LSP, the 6th prison Control functional parameter is used for the network performance for determining the 2nd PW.
4. according to the method for claim 3, it is characterised in that remembered described according to the physical interface After record parameter and the 4th monitoring parameter determine the network performance of second physical link, in addition to:
The router determines the 3rd physics according to the MPLS label of the forward table and the second monitoring bag Interface, the 3rd physical interface are the physical interface for forwarding the second monitoring bag;
4th monitoring parameter is revised as connecting the 7th of the 3rd physical link of the 3rd physical interface Monitoring parameter, and send the second monitoring bag from the 3rd physical interface;
Wherein, the 7th monitoring parameter is used for the network performance for determining the 3rd physical link.
5. according to the method for claim 3, it is characterised in that remembered described according to the physical interface After record parameter and the 4th monitoring parameter determine the network performance of second physical link, in addition to:
The router acquisition determines corresponding with the 2nd LSP when receiving the second monitoring bag LSP recording parameterses, the described 5th is read according to the MPLS label of the forward table and the second monitoring bag Monitoring parameter, and determine the 2nd LSP's according to the LSP recording parameterses and the 5th monitoring parameter Network performance;
3rd LPS and the described 3rd is determined according to the MPLS label of the forward table and the second monitoring bag The 4th physical interface that the 4th overlapping LSP physical link is connected, the 3rd LSP and described second LSP adhesions, the 3rd LSP and the 2nd LSP adhesions refer to that the 2nd PW overlaps described On three LSP and the 2nd LSP;
4th monitoring parameter is revised as to the 8th monitoring parameter of the 4th physical link, by described Five monitoring parameters are revised as the 9th monitoring parameter of the 3rd LSP, and are sent from the 4th physical interface The second monitoring bag;
Wherein, the 8th monitoring parameter is used to determining the network performance of the 4th physical link, described the Nine monitoring parameters are used for the network performance for determining the 3rd LSP.
6. according to the method for claim 3, it is characterised in that remembered described according to the physical interface After record parameter and the 4th monitoring parameter determine the network performance of second physical link, in addition to:
The router acquisition determines corresponding with the 2nd LSP when receiving the second monitoring bag LSP recording parameterses, the described 5th is read according to the MPLS label of the forward table and the second monitoring bag Monitoring parameter, and determine the 2nd LSP's according to the LSP recording parameterses and the 5th monitoring parameter Network performance;
The PW recording parameterses corresponding with the 2nd PW determined when receiving the second monitoring bag are obtained, The 6th monitoring parameter according to the PW tag readers of the forward table and the second monitoring bag, and according to The PW recording parameterses and the 6th monitoring parameter determine the network performance of the 2nd PW.
7. a kind of performance monitoring apparatus, it is characterised in that described device includes:
Determining unit, for the first physical interface of router send first monitoring bag before, according to forward table The path of the first monitoring bag is determined, the path includes the first label switching path LSP and overlaps institute State the first pseudo-wire PW on the first LSP;
Generation unit, for the first monitoring bag described in the coordinates measurement that is determined according to the determining unit, The first monitoring bag is multiprotocol label switching MPLS bags, the MPLS label root of the first monitoring bag Generated according to the first LSP, the PW labels of the first monitoring bag generate according to the first PW, institute State include after PW labels the first monitoring parameter for connecting the first physical link of first physical interface, The second monitoring parameter of first LSP and the 3rd monitoring parameter of the first PW;
Transmitting element, for sending first prison of the generation unit generation from first physical interface Control bag;
Wherein, first monitoring parameter is used to determining the network performance of first physical link, described the Two monitoring parameters are used for the network performance for determining the first LSP, and the 3rd monitoring function parameter is used for true Fixed first PW network performance.
8. device according to claim 7, it is characterised in that first physical interface sends multiple Monitoring bag, described first monitors bag as the current monitoring bag to be sent in the multiple monitoring bag, described true Order member, is used for:
Determine in all paths related to first physical interface in the forward table and the multiple monitoring The different path in any one path at least one path of at least one monitoring bag sent in bag;
Wherein, all paths related to first physical interface include overlapping first physical link On at least one LSP and overlap the PW on each LSP at least one LSP.
9. the device according to claim 7 or 8, it is characterised in that described device also includes:
Receiving unit, wrapped for receiving the second monitoring with the second physical interface, and obtain and receiving described second The physical interface recording parameters corresponding with second physical interface determined during monitoring bag, second monitoring Wrap and generated for MPLS bags, the MPLS label of the second monitoring bag according to the 2nd LSP, second prison The PW labels of control bag generate according to the 2nd PW, include connecting second physics after the PW labels 4th monitoring parameter of the second physical link of interface, the 5th monitoring parameter of the 2nd LSP and described Two PW the 6th monitoring parameter;
The determining unit, it is additionally operable to read the 4th monitoring parameter according to the forward table, and according to institute State physical interface recording parameters and the 4th monitoring parameter determines the network performance of second physical link;
Wherein, the 5th monitoring parameter is used for the network performance for determining the 2nd LSP, the 6th prison Control functional parameter is used for the network performance for determining the 2nd PW.
10. device according to claim 9, it is characterised in that
The determining unit, it is additionally operable to be monitored with the described 4th according to the physical interface recording parameters described After parameter determines the network performance of second physical link, according to the forward table and second monitoring The MPLS label of bag determines the 3rd physical interface, and the 3rd physical interface is for forwarding second prison Control the physical interface of bag;
The transmitting element, it is additionally operable to be revised as connecting the 3rd physical interface by the 4th monitoring parameter The 3rd physical link the 7th monitoring parameter, and from the 3rd physical interface send it is described second monitoring bag;
Wherein, the 7th monitoring parameter is used for the network performance for determining the 3rd physical link.
11. device according to claim 9, it is characterised in that
The determining unit, it is additionally operable to according to the physical interface recording parameters and the 4th monitoring parameter After the network performance for determining second physical link, obtain what is determined when receiving the second monitoring bag LSP recording parameterses corresponding with the 2nd LSP, wrapped according to the forward table and second monitoring MPLS label reads the 5th monitoring parameter, and according to the LSP recording parameterses and the 5th monitoring Parameter determines the network performance of the 2nd LSP;
The determining unit, the MPLS label for being additionally operable to be wrapped according to the forward table and second monitoring are true The 4th physical interface that the 4th overlapping fixed 3rd LPS and the 3rd LSP physical link is connected, institute The 3rd LSP and the 2nd LSP adhesions are stated, the 3rd LSP and the 2nd LSP adhesions refer to described 2nd PW is overlapped on the 3rd LSP and the 2nd LSP;
The transmitting element, it is additionally operable to for the 4th monitoring parameter to be revised as the of the 4th physical link Eight monitoring parameters, the 5th monitoring parameter are revised as the 9th monitoring parameter of the 3rd LSP, and from 4th physical interface sends the second monitoring bag;
Wherein, the 8th monitoring parameter is used to determining the network performance of the 4th physical link, described the Nine monitoring parameters are used for the network performance for determining the 3rd LSP.
12. device according to claim 10, it is characterised in that
The determining unit, it is additionally operable to according to the physical interface recording parameters and the 4th monitoring parameter After the network performance for determining second physical link, obtain what is determined when receiving the second monitoring bag LSP recording parameterses corresponding with the 2nd LSP, wrapped according to the forward table and second monitoring MPLS label reads the 5th monitoring parameter, and according to the LSP recording parameterses and the 5th monitoring Parameter determines the network performance of the 2nd LSP;
The determining unit, it is additionally operable to obtain determining with the 2nd PW when receiving the second monitoring bag Corresponding PW recording parameterses, according to the PW tag readers of the forward table and the second monitoring bag 6th monitoring parameter, and the 2nd PW is determined according to the PW recording parameterses and the 6th monitoring parameter Network performance.
13. a kind of router, it is characterised in that the router includes:Processor and the processor The first connected physical interface;
The processor, for first physical interface send first monitoring bag before, it is true according to forward table The path of the fixed first monitoring bag, the path include the first label switching path LSP and overlapped described The first pseudo-wire PW on first LSP;
The processor, it is additionally operable to the first monitoring bag according to the coordinates measurement, the first monitoring bag For multiprotocol label switching MPLS bags, the MPLS label of the first monitoring bag is according to the first LSP Generation, the PW labels of the first monitoring bag generate according to the first PW, after the PW labels The first monitoring parameter, the first LSP including the first physical link for connecting first physical interface 3rd monitoring parameter of the second monitoring parameter and the first PW;
First physical interface, for sending the first monitoring bag of the processor generation;
Wherein, first monitoring parameter is used to determining the network performance of first physical link, described the Two monitoring parameters are used for the network performance for determining the first LSP, and the 3rd monitoring function parameter is used for true Fixed first PW network performance.
14. router according to claim 13, it is characterised in that first physical interface is sent Multiple monitoring bags, first monitoring are wrapped as the current monitoring bag to be sent in the multiple monitoring bag, institute Processor is stated, is used for:
Determine in all paths related to first physical interface in the forward table and the multiple monitoring The different path in any one path at least one path of at least one monitoring bag sent in bag;
Wherein, all paths related to first physical interface include overlapping first physical link On at least one LSP and overlap the PW on each LSP at least one LSP.
15. the router according to claim 13 or 14, it is characterised in that the router also wraps Include the second physical interface;
Second physical interface, it is additionally operable to receive the second monitoring bag;
The processor, it is additionally operable to obtain determining with second physics when receiving the second monitoring bag Physical interface recording parameters corresponding to interface, the second monitoring bag is MPLS bags, the second monitoring bag MPLS label generated according to the 2nd LSP, it is described second monitoring bag PW labels is given birth to according to the 2nd PW Into include the second physical link of connection second physical interface after the PW labels the 4th monitors 6th monitoring parameter of parameter, the 5th monitoring parameter of the 2nd LSP and the 2nd PW;
The processor, it is additionally operable to read the 4th monitoring parameter according to the forward table, and according to described Physical interface recording parameters and the 4th monitoring parameter determine the network performance of second physical link;
Wherein, the 5th monitoring parameter is used for the network performance for determining the 2nd LSP, the 6th prison Control functional parameter is used for the network performance for determining the 2nd PW.
16. router according to claim 15, it is characterised in that the router also includes the 3rd Physical interface;
The processor, it is additionally operable to according to the physical interface recording parameters with the 4th monitoring be joined described After number determines the network performance of second physical link, wrapped according to the forward table and second monitoring MPLS label determine the 3rd physical interface, the 3rd physical interface is for forwarding described second Monitor the physical interface of bag;
The processor, it is additionally operable to be revised as connecting the 3rd physical interface by the 4th monitoring parameter 7th monitoring parameter of the 3rd physical link;
3rd physical interface, it is additionally operable to send the second monitoring bag;
Wherein, the 7th monitoring parameter is used for the network performance for determining the 3rd physical link.
17. router according to claim 15, it is characterised in that the router also includes the 4th Physical interface;
The processor, it is additionally operable to true according to the physical interface recording parameters and the 4th monitoring parameter After the network performance of fixed second physical link, obtain determined when receiving the second monitoring bag with LSP recording parameterses corresponding to 2nd LSP, according to the forward table and the MPLS of the second monitoring bag 5th monitoring parameter described in tag reader, and it is true according to the LSP recording parameterses and the 5th monitoring parameter Fixed 2nd LSP network performance;
The processor, it is additionally operable to be determined according to the MPLS label of the forward table and the second monitoring bag The 4th physical interface that the 4th overlapping 3rd LPS and the 3rd LSP physical link is connected, 3rd LSP and the 2nd LSP adhesions, the 3rd LSP and the 2nd LSP adhesions refer to institute The 2nd PW is stated to overlap on the 3rd LSP and the 2nd LSP;
The processor, it is additionally operable to the 4th monitoring parameter being revised as the 8th of the 4th physical link Monitoring parameter, the 5th monitoring parameter is revised as to the 9th monitoring parameter of the 3rd LSP;
4th physical interface, it is additionally operable to send the second monitoring bag;
Wherein, the 8th monitoring parameter is used to determining the network performance of the 4th physical link, described the Nine monitoring parameters are used for the network performance for determining the 3rd LSP.
18. router according to claim 16, it is characterised in that
The processor, it is additionally operable to true according to the physical interface recording parameters and the 4th monitoring parameter After the network performance of fixed second physical link, obtain determined when receiving the second monitoring bag with LSP recording parameterses corresponding to 2nd LSP, according to the forward table and the MPLS of the second monitoring bag 5th monitoring parameter described in tag reader, and it is true according to the LSP recording parameterses and the 5th monitoring parameter Fixed 2nd LSP network performance;
The processor, it is additionally operable to obtain the PW recording parameterses determined when receiving the second monitoring bag, The 6th monitoring parameter according to the PW tag readers of the forward table and the second monitoring bag, and according to The PW recording parameterses and the 6th monitoring parameter determine the network performance of the 2nd PW.
CN201610486103.2A 2016-06-28 2016-06-28 Performance monitoring method and device and router Active CN107547291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610486103.2A CN107547291B (en) 2016-06-28 2016-06-28 Performance monitoring method and device and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610486103.2A CN107547291B (en) 2016-06-28 2016-06-28 Performance monitoring method and device and router

Publications (2)

Publication Number Publication Date
CN107547291A true CN107547291A (en) 2018-01-05
CN107547291B CN107547291B (en) 2021-02-12

Family

ID=60962295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610486103.2A Active CN107547291B (en) 2016-06-28 2016-06-28 Performance monitoring method and device and router

Country Status (1)

Country Link
CN (1) CN107547291B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600105A (en) * 2018-03-15 2018-09-28 新华三技术有限公司 Forwarding hardware resource allocation methods, device and communication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377677A (en) * 2011-11-21 2012-03-14 盛科网络(苏州)有限公司 Method and system for quickly switching protection paths in multi-protocol label switching (MPLS) network
CN103731288A (en) * 2012-10-16 2014-04-16 杭州华三通信技术有限公司 Message forwarding method and device
CN104618233A (en) * 2013-11-05 2015-05-13 中兴通讯股份有限公司 VPLS cross-domain redundancy protection method and system
WO2015172493A1 (en) * 2014-05-16 2015-11-19 中兴通讯股份有限公司 Data processing method and apparatus and network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377677A (en) * 2011-11-21 2012-03-14 盛科网络(苏州)有限公司 Method and system for quickly switching protection paths in multi-protocol label switching (MPLS) network
CN103731288A (en) * 2012-10-16 2014-04-16 杭州华三通信技术有限公司 Message forwarding method and device
CN104618233A (en) * 2013-11-05 2015-05-13 中兴通讯股份有限公司 VPLS cross-domain redundancy protection method and system
WO2015172493A1 (en) * 2014-05-16 2015-11-19 中兴通讯股份有限公司 Data processing method and apparatus and network device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600105A (en) * 2018-03-15 2018-09-28 新华三技术有限公司 Forwarding hardware resource allocation methods, device and communication equipment
CN108600105B (en) * 2018-03-15 2020-10-16 新华三技术有限公司 Forwarding hardware resource allocation method and device and communication equipment

Also Published As

Publication number Publication date
CN107547291B (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN106656801B (en) Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream
US9253035B2 (en) Reducing switch state size in flow-based networks
CN109873760A (en) Handle the method and apparatus of routing and the method and apparatus of data transmission
CN108809759A (en) Detect the method, apparatus and router of link state
CN101843045B (en) Pinning and protection on link aggregation groups
CN101800679B (en) Message packet loss detection method and system
JP2023516180A (en) Packet processing method and apparatus, network device and storage medium
US20160255019A1 (en) Methods and apparatus related to a distributed switch fabric
CN101938377B (en) link aggregation error protection method, equipment and system
CN107171882A (en) Detect the method, apparatus and system of equal cost multipath routing function
CN105765926A (en) Configurable service proxy mapping
CN109962847A (en) The packaging method and device and computer readable storage medium of business function chain message
CN105610710A (en) Methods and apparatus for standard protocol validation mechanisms deployed over switch fabric system
CN113726666B (en) Method and device for sending message
CN105991435B (en) For obtaining the method and device of port path
CN105991338B (en) Network O&M management method and device
CN106375105A (en) Method of determining path fault, controller, switches and system
JP6443864B2 (en) Method, apparatus and system for implementing packet loss detection
CN102598601B (en) Node, for the monitoring management method of node and use the transmission system of node, input circuit and output circuit
CN104601483A (en) Method, device and apparatus for forwarding messages
CN103746874B (en) Method and equipment for IP (Internet protocol) FPM (flow performance monitor)
CN104348727A (en) Method and equipment for processing flow table item in OpenFlow network
CN105515816B (en) Processing method and device for detecting hierarchical information
CN109245961A (en) Link-quality detection method, device, storage medium and equipment
CN104580002B (en) The big balanced retransmission method of current load and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211228

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.