CN109218199A - A kind of message processing method and device - Google Patents
A kind of message processing method and device Download PDFInfo
- Publication number
- CN109218199A CN109218199A CN201811392770.XA CN201811392770A CN109218199A CN 109218199 A CN109218199 A CN 109218199A CN 201811392770 A CN201811392770 A CN 201811392770A CN 109218199 A CN109218199 A CN 109218199A
- Authority
- CN
- China
- Prior art keywords
- label
- bfd
- lsp
- detected
- request message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
Abstract
The embodiment of the present application provides a kind of message processing method and device, applied to the network equipment, when receiving the BFD request message for LSP to be detected, if itself is not egress, it then according to the Label Forwarding Information Base of storage, modifies to the label carried in BFD request message, and forwards modified BFD request message, otherwise, the BFD response message for carrying label of the ingress carried in BFD request message in LSP to be detected is generated.The label carried in BFD response message is label of the ingress in LSP to be detected, therefore, the next-hop device that the network equipment is determined according to the label, for the equipment for forwarding BFD request message to the network equipment in LSP to be detected, BFD response message is sent to the next-hop device, so that BFD response message can be back to ingress by LSP to be detected, and then the testing result of LSP to be detected is avoided to malfunction.
Description
Technical field
This application involves Internet technical fields, more particularly to a kind of message processing method and device.
Background technique
MPLS (Multi-Protocol Label Switching, multiprotocol label switching) technology is that current application is compared
A kind of extensive backbone network technology.In an mpls network, the network equipment can be according to label forwarding message.It is carried out to message
When forwarding, the network equipment in MPLS network can be usually divided into: Ingress (ingress), Transit (intermediate node) and
Egress (egress).Link between ingress, intermediate node and egress is properly termed as LSP (Label Switched
Path, label switched path).
The prior art usually can be in conjunction with BFD (Bidirectional Forwarding Detection, two-way converting inspection
Survey) technology detects LSP.For example, networking shown in FIG. 1, comprising: PE (Provider Edge, Provider Edge routing
Device) 1, PE2, PE3 and PE4.Wherein, PE1 is ingress, and PE4 is egress, and PE2 and PE3 are intermediate node, PE1 and PE4 it
Between there are primary LSP (i.e. link L1) and backup LSP (i.e. link L2- link L3- link L4).
Next-hop device of the PE1 in backup LSP is PE2, and PE1 can determine purpose in the Label Forwarding Information Base of storage
Address is the network address of PE4, and next-hop device is the label (i.e. 2000) in the list item of PE2, and label 2000 is PE4 standby
Label in part LSP.Then, PE1 can send the BFD request message for carrying label (i.e. 2000) to PE2, to backup
LSP is detected.After PE2 receives BFD request message, in the Label Forwarding Information Base of storage, the corresponding mark of label 2000 is determined
Label are 3000, and the corresponding next-hop device of label 2000 is PE3, and the tag modification in BFD request message is then 3000 by PE2,
And modified BFD request message is sent to PE3.After PE3 receives BFD request message, in the Label Forwarding Information Base of storage,
Determine that the corresponding label of label 3000 is 100, the corresponding next-hop device of label 3000 is PE4, and PE3 is then by BFD request message
In tag modification be 100, and modified BFD request message is sent to PE4.After receiving BFD request message, PE4
BFD response message may be sent to PE1, is carried in the BFD response message by routing optimal path (i.e. primary LSP)
Label is label (i.e. 200) of the PE1 in primary LSP.And if link L1 breaks down, will lead to PE1 can not receive
BFD response message, PE1 can determine that backup LSP breaks down.
As it can be seen that when, there are when primary LSP and backup LSP, BFD response message can with corresponding BFD request message in networking
It can be transmitted in different LSP, and then will lead to the testing result error of LSP.
Summary of the invention
The embodiment of the present application is designed to provide a kind of message processing method and device so that BFD response message with it is right
The BFD request message answered transmits in identical LSP, can malfunction to avoid the testing result of LSP.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the present application discloses a kind of message processing method, the method
Applied to the network equipment, which comprises
The two-way converting received for label switching path LSP to be detected detects BFD request message, wherein the BFD is asked
Seek label and the to be detected LSP of the ingress that the LSP to be detected is carried in message in the LSP to be detected
Label of the egress in the LSP to be detected;
If itself not being the egress, according to the Label Forwarding Information Base of storage, to what is carried in the BFD request message
The ingress is repaired in the label of label and the egress in the LSP to be detected in the LSP to be detected
Change, and forward modified BFD request message, so that the egress is according to the mark carried in modified BFD request message
Label generate the BFD response message for being directed to the LSP to be detected;
If itself being the egress, generation carries the ingress carried in the BFD request message in institute
The BFD response message of the label in LSP to be detected is stated, and in the Label Forwarding Information Base of storage, the determining and BFD request message
Label corresponding next-hop device of the ingress of middle carrying in the LSP to be detected sends out the BFD response message
It send to the next-hop device determined.
Optionally, the Label Forwarding Information Base according to storage exists to the ingress carried in the BFD request message
The label of label and the egress in the LSP to be detected in the LSP to be detected is modified, and is forwarded and repaired
BFD request message after changing, comprising:
In the Label Forwarding Information Base for determining storage, with the egress that is carried in the BFD request message described to be checked
The corresponding label of label in LSP is surveyed, as the first label, in the Label Forwarding Information Base for determining storage, with the BFD request message
Label corresponding next-hop device of the egress of middle carrying in the LSP to be detected, as the first equipment, determination is deposited
In the Label Forwarding Information Base of storage, with the label pair of the ingress that is carried in the BFD request message in the LSP to be detected
The label answered, as the second label;
By label of the egress carried in the BFD request message in the LSP to be detected, it is revised as described
Label of the ingress carried in the BFD request message in the LSP to be detected is revised as institute by the first label
State the second label;
Modified BFD request message is sent to first equipment.
Optionally, the method also includes:
It if itself not being the egress, and is not the ingress, when receiving BFD response message, determination is deposited
In the Label Forwarding Information Base of storage, with the label pair of the ingress that is carried in the BFD response message in the LSP to be detected
The label answered, as third label, in the Label Forwarding Information Base that determines storage, with carried in the BFD response message described in enter
Label corresponding next-hop device of the node in the LSP to be detected, as the second equipment;
By label of the ingress carried in the BFD response message in the LSP to be detected, it is revised as described
Third label;
Modified BFD response message is sent to second equipment.
Second aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of message processing method, the method
Applied to the network equipment, which comprises
Label of the egress for carrying label switching path LSP to be detected in the LSP to be detected is generated, and certainly
The two-way converting of label in the LSP to be detected detects BFD request message;
The BFD request message is sent to the next-hop device in the LSP to be detected.
The third aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of message process device, described device
Applied to the network equipment, described device includes:
Receiving module, for receiving the two-way converting detection BFD request message for being directed to label switching path LSP to be detected,
Wherein, label of the ingress of the LSP to be detected in the LSP to be detected is carried in the BFD request message, and
Label of the egress of the LSP to be detected in the LSP to be detected;
Forwarding module, according to the Label Forwarding Information Base of storage, asks the BFD if for itself not being the egress
Ask label and the egress of the ingress carried in message in the LSP to be detected in the LSP to be detected
In label modify, and modified BFD request message is forwarded, so that the egress is requested according to modified BFD
The label carried in message generates the BFD response message for being directed to the LSP to be detected;
Sending module, if generating for itself being the egress and carrying the institute carried in the BFD request message
The BFD response message of label of the ingress in the LSP to be detected is stated, and in the Label Forwarding Information Base of storage, determining and institute
Label corresponding next-hop device of the ingress carried in BFD request message in the LSP to be detected is stated, it will be described
BFD response message is sent to the next-hop device determined.
Optionally, the forwarding module, specifically for determining in the Label Forwarding Information Base stored, with the BFD request message
Label corresponding label of the egress of middle carrying in the LSP to be detected determines the mark of storage as the first label
It signs in forwarding table, with the egress carried in the BFD request message in the case where the label in the LSP to be detected is corresponding
One jumps equipment, as the first equipment, in the Label Forwarding Information Base that determines storage, with carried in the BFD request message described in enter
Label corresponding label of the node in the LSP to be detected, as the second label;
By label of the egress carried in the BFD request message in the LSP to be detected, it is revised as described
Label of the ingress carried in the BFD request message in the LSP to be detected is revised as institute by the first label
State the second label;
Modified BFD request message is sent to first equipment.
Optionally, described device further include:
Processing module if not being the egress, and is not the ingress for itself, is responded when receiving BFD
When message, in the Label Forwarding Information Base that determines storage, with the ingress that is carried in the BFD response message described to be detected
The corresponding label of label in LSP, as third label, in the Label Forwarding Information Base for determining storage, in the BFD response message
Label corresponding next-hop device of the ingress carried in the LSP to be detected, as the second equipment;
By label of the ingress carried in the BFD response message in the LSP to be detected, it is revised as described
Third label;
Modified BFD response message is sent to second equipment.
Fourth aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of message process device, described device
Applied to the network equipment, described device includes:
Generation module, for generating the egress for carrying label switching path LSP to be detected in the LSP to be detected
Label, and detect BFD request message from the two-way converting of label in the LSP to be detected;
Sending module, the next-hop device for being sent to the BFD request message in the LSP to be detected.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of electronic equipment, including processor,
Communication interface, memory and communication bus, wherein processor, communication interface, memory are completed each other by communication bus
Communication;
Memory, for storing computer program;
Processor, when for executing the program stored on memory, method step either described in realization first aspect.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of electronic equipment, including processor,
Communication interface, memory and communication bus, wherein processor, communication interface, memory are completed each other by communication bus
Communication;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in second aspect.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of machine readable storage medium, storage
There is machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing
Method step either described in first aspect.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of machine readable storage medium, storage
There is machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing
Method and step described in second aspect.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of computer program comprising instruction
Product, when run on a computer, so that method step either described in the above-mentioned first aspect of computer execution.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of computer program comprising instruction
Product, when run on a computer, so that computer executes method and step described in above-mentioned second aspect.
The embodiment of the present application provides a kind of message processing method and device, is applied to the network equipment, is directed to when receiving
When the BFD request message of LSP to be detected, if the network equipment is not the egress of LSP to be detected, turned according to the label of storage
Deliver, to the ingress carried in BFD request message in LSP to be detected label and egress in LSP to be detected
Label is modified, and forwards modified BFD request message;If the network equipment is the egress of LSP to be detected, generate
Carry the BFD response message of label of the ingress carried in BFD request message in LSP to be detected.In BFD response message
The label of carrying is label of the ingress in LSP to be detected, and therefore, the network equipment is set according to the next-hop that the label is determined
It is standby, it is the equipment for forwarding BFD request message to the network equipment in LSP to be detected, BFD response message is sent to the next-hop
Equipment avoids BFD response message from passing through other so that BFD response message can be back to ingress by LSP to be detected
LSP is back to ingress, and then the testing result of LSP to be detected is avoided to malfunction.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach above all advantages.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of frame diagram of group-network construction provided by the present application;
Fig. 2 is a kind of frame diagram of group-network construction provided by the present application;
Fig. 3 is a kind of flow chart of message processing method provided by the embodiments of the present application;
Fig. 4 is a kind of flow chart of message processing method provided by the embodiments of the present application;
Fig. 5 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application;
Fig. 6 is a kind of structure chart of message process device provided by the embodiments of the present application;
Fig. 7 is a kind of structure chart of message process device provided by the embodiments of the present application;
Fig. 8 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 9 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of message processing method, and this method can be applied to the network equipment, the network equipment
It can be with PE or other equipment.
In one example, method can be applied to each PE in Fig. 2.PE1 is as LSP to be detected (i.e. link L2- link
L3- link L4) ingress, label of the egress (i.e. PE4) for carrying LSP to be detected in LSP to be detected can be generated
The BFD request message of the label (i.e. 200) of (i.e. 2000) and PE1 in LSP to be detected, then, PE1 can ask the BFD
The next-hop device (i.e. PE2) for asking message to be sent in LSP to be detected.
When PE2 receives the BFD request message of PE1 transmission, it is the egress of LSP to be detected that PE2, which determines itself not,.
PE2 can be according to the Label Forwarding Information Base of storage, (i.e. to label of the PE4 carried in BFD request message in LSP to be detected
2000) and label (i.e. 200) of the PE1 in LSP to be detected is modified.For example, label 2000 can be revised as by PE2
3000, label 200 is revised as 300, and modified BFD request message is sent to next-hop device (i.e. PE3).
Similarly, PE3 can be according to the Label Forwarding Information Base of storage, to the PE4 carried in BFD request message in LSP to be detected
In label (i.e. 300) in LSP to be detected of label (i.e. 3000) and PE1 modify.For example, PE3 can be by label
3000 are revised as 100, label 300 are revised as 400, and modified BFD request message is sent to next-hop device (i.e.
PE4)。
When PE4 receives BFD request message, PE4 determine itself be LSP to be detected egress.PE4, which can be generated, to be taken
The BFD response message of label (i.e. 400) with the PE1 carried in BFD request message in LSP to be detected, and in storage
In Label Forwarding Information Base, determine that next-hop device corresponding with label 400 is PE3, PE4 can ring the BFD for carrying label 400
Message is answered to be sent to PE3.
Correspondingly, after PE3 receives BFD response message, it can be according to the Label Forwarding Information Base of storage, by BFD response message
The tag modification of middle carrying is 300, and BFD response message after modification is sent to PE2.Similarly, PE2 receives BFD response report
The tag modification carried in BFD response message can be 200 according to the Label Forwarding Information Base of storage by Wen Hou, and will be after modification
BFD response message is sent to PE1, so that BFD response message is transmitted to PE1 by link L4- link L3- link L2.
As it can be seen that the message processing method based on the embodiment of the present application, enables BFD response message to pass through LSP to be detected
It is back to ingress, BFD response message is avoided to be back to ingress by other LSP, and then avoids the detection knot of LSP to be detected
Fruit error.
Referring to Fig. 3, Fig. 3 is a kind of flow chart of message processing method provided by the embodiments of the present application, and this method can answer
For the network equipment, the network equipment can in LSP to be detected in addition to ingress other nodes (be properly termed as it is non-enter section
Point), this method may comprise steps of:
S301: the BFD request message for being directed to LSP to be detected is received.
Wherein, the ingress of LSP to be detected can also be obtained from when generating the BFD request message for being directed to LSP to be detected
Label in LSP to be detected, and the label is added in BFD request message.Can be carried in BFD request message to
Detect egress label among to be detected LSPs of the ingress in label and LSP to be detected in LSP to be detected of LSP.
For example, can be carried in the BFD request message for LSP to be detected (i.e. link L2- link L3- link L4) that PE2 is received
There is label (i.e. 200) of the PE4 in the label (i.e. 2000) and PE1 in LSP to be detected in LSP to be detected.
The network equipment can judge itself according to label of the egress carried in BFD request message in LSP to be detected
Whether the egress for being LSP to be detected, can also be according to mark of the egress carried in BFD request message in LSP to be detected
Label, are forwarded processing to BFD request message.
In general, the ingress of LSP to be detected can be according to label of the egress in LSP to be detected and to be detected
Label in LSP generates label stack, and label stack is added in BFD request message.Wherein, the stack top label of label stack can
Think that label (be properly termed as upper label) of the egress in LSP to be detected, the stack bottom label of label stack can be ingress
Label (being properly termed as lower layer's label) in LSP to be detected.Specifically, the method that ingress generates BFD request message will be
Subsequent embodiment is discussed in detail.
In application embodiment, the network equipment can receive the BFD request report of the transmission of the upstream equipment in LSP to be detected
Text, and different processing is carried out according to the BFD request message.
S302: if itself not being egress, according to the Label Forwarding Information Base of storage, enter to what is carried in BFD request message
Node is modified in the label of label and egress in LSP to be detected in LSP to be detected, and is forwarded modified
BFD request message, so that egress is generated according to the label carried in modified BFD request message for LSP's to be detected
BFD response message.
Wherein, Label Forwarding Information Base can be what the network equipment learnt to obtain in advance.
In application embodiment, when the network equipment receives the BFD request message for LSP to be detected, the network equipment
May determine that itself whether the egress for being LSP to be detected.
Due to carrying upper label and lower layer's label in BFD request message, be when the network equipment determines itself not
When the egress of LSP to be detected, the network equipment can enter according to the Label Forwarding Information Base of storage to what is carried in BFD request message
Node is modified in the label of label and egress in LSP to be detected in LSP to be detected, and then, the network equipment can
To forward modified BFD request message.When egress receives modified BFD request message, egress can basis
The label carried in BFD request message generates the BFD response message for being directed to LSP to be detected.
In this step, the network equipment can according to the upper label carried in BFD request message, judge itself whether be to
Detect the egress of LSP.In a kind of embodiment, the upper label carried in the available BFD request message of the network equipment, and
In the Label Forwarding Information Base for determining storage, processing movement corresponding with the upper label.Label Forwarding Information Base may refer to table (1) and table
(2)。
Table (1)
Enter label | Processing movement | Outgoing label | Next-hop device |
X | Pop up label | - | S1 |
Table (2)
Enter label | Processing movement | Outgoing label | Next-hop device |
X | Switch label | X1 | S2 |
Wherein, table (1) can be the Label Forwarding Information Base of egress storage, and table (2) can turn for the label of intermediate point storage
It delivers.
Enter the upper label carried in the BFD request message that the tag representation network equipment receives.When the network equipment receives
To BFD request message in the upper label that carries be X when, according to table (1), the network equipment determines the corresponding processing of label X
Movement is " pop-up label ", at this point, the network equipment can be determined that the egress that itself is LSP to be detected, BFD response can be generated
Message.If the upper label carried in the data message that the network equipment receives is X, the network equipment can delete datagram
The upper label X carried in text, and the data message after deletion label is sent to next-hop device (i.e. S1).
When the upper label carried in the BFD request message that the network equipment receives is X, according to table (2), the network equipment
Determine that the corresponding processing movement of label X is " switch label ", at this point, it is LSP to be detected that the network equipment, which can be determined that itself not,
Egress, i.e., the network equipment be LSP to be detected intermediate node.Label X can be revised as X1 by the network equipment, and is sent to
Next-hop device (i.e. S2).
In addition, the structure of label may refer to table (3).
Table (3)
Label value | TC | S | TTL |
Label value, length 20bits indicate the numerical value of label, for example, label value can be 300,2000.TC
(Traffic Class, flow grade): length 3bits.S: label stack bottom marker, length 1bit, S are 1, are indicated
The label is stack bottom label, and S are 0, indicates that the label is non-stack bottom label.TTL (Time To Live, lifetime value):
Length is 8bits, can be used for preventing network loop.
In the present embodiment, ingress, can be by label of the ingress in LSP to be detected when generating BFD request message
TTL be set as default value so that egress can identify the ingress carried in BFD request message in LSP to be detected
In the label label of default value (i.e. TTL be).In the prior art, BFD message (including BFD request message and BFD response report
Text) in the TTL of label be not 0, therefore, ingress can set 0 for the TTL of label of the ingress in LSP to be detected, with
So that egress is identified that TTL is 0 label, and then obtains the ingress carried in BFD request message in LSP to be detected
Label.
Optionally, S302 may comprise steps of:
Step 1, in the Label Forwarding Information Base for determining storage, with the egress that is carried in BFD request message in LSP to be detected
In the corresponding label of label in the Label Forwarding Information Base that determines storage, and carried in BFD request message as the first label
The corresponding next-hop device of label of the egress in LSP to be detected determines the Label Forwarding Information Base of storage as the first equipment
In, label corresponding with label of the ingress carried in BFD request message in LSP to be detected, as the second label.
In application embodiment, the network equipment can be inquired in the Label Forwarding Information Base of storage, determining to request with BFD
The corresponding label of the upper label carried in message (i.e. the first label), and with the upper label that is carried in BFD request message
Corresponding next-hop device (i.e. the first equipment).The network equipment can also be inquired in the Label Forwarding Information Base of storage, determine
Label (i.e. the second label) corresponding with the lower layer's label carried in BFD request message.
Illustratively, it if current network device is the PE2 in Fig. 2, is carried in the BFD request message that PE2 is received
Upper label is 2000, and lower layer's label is 200.The Label Forwarding Information Base stored in PE2 may refer to table (4).
Table (4)
Enter label | Processing movement | Outgoing label | Next-hop device |
2000 | Switch label | 3000 | PE3 |
300 | Switch label | 200 | PE1 |
Wherein, " switch label " indicates that PE2 needs to modify to the label carried in BFD request message.If PE2 connects
The label carried in the BFD request message received is to enter label in table (4), then the tag modification can be corresponding by PE2
Outgoing label;If the label carried in the BFD request message that PE2 is received is the outgoing label in table (4), PE2 can should
Tag modification be it is corresponding enter label.
According to table (4), the upper label carried in the BFD request message received due to PE2 is that 2000, PE2 can be true
Calibration 2000 corresponding labels (i.e. 3000) of label, are the first label;Determine 2000 corresponding next-hop device (i.e. PE3) of label,
For the first equipment.
According to table (4), the lower layer's label carried in the BFD request message received due to PE2 is that 200, PE2 can be determined
The corresponding label of label 200 (i.e. 300) is the second label.
Label of the egress carried in BFD request message in LSP to be detected is revised as the first label by step 2,
By label of the ingress carried in BFD request message in LSP to be detected, it is revised as the second label.
In application embodiment, if the network equipment is intermediate node, the network equipment can will be taken in BFD request message
The upper label of band is revised as the first label, and the lower layer's label that will be carried in BFD request message is revised as the second label.This step
In rapid, for the network equipment when modifying lower layer's label, the TTL that lower layer's label can be set is 0.
For the example in step 1, the upper label carried in the BFD request message received can be revised as by PE2
3000, it is 300 by the lower layer's tag modification carried in BFD request message.
Modified BFD request message is sent to the first equipment by step 3.
In application embodiment, the network equipment is to the upper label and lower layer's tag modification knot carried in BFD request message
Modified BFD request message can be sent to the first equipment, so that BFD request message is transmitted by LSP to be detected by Shu Hou
To egress.
For above-mentioned example, the upper label carried in BFD request message is being revised as 3000, by BFD request message
After lower layer's tag modification of middle carrying is 300, modified BFD request message can be sent to PE3 by PE2.
S303: if itself being egress, generation carries the ingress carried in BFD request message in LSP to be detected
In label BFD response message, it is determining with the ingress carried in BFD request message and in the Label Forwarding Information Base of storage
BFD response message, is sent to the next-hop device determined by the corresponding next-hop device of label in LSP to be detected.
In application embodiment, when the network equipment determines itself to be the egress of LSP to be detected, the network equipment can be obtained
The lower layer's label carried in BFD request message is taken, and generates the BFD response message for carrying lower layer's label.
Then, the network equipment can be inquired in the Label Forwarding Information Base of storage, and determination is corresponding with lower layer's label
Next-hop device, and the BFD response message of generation is sent to the next-hop device.
The label carried in the BFD response message is label of the ingress in LSP to be detected, therefore, network equipment root
It is the equipment for forwarding BFD request message to the network equipment in LSP to be detected according to the next-hop device that the label is determined, it will
BFD response message is sent to the next-hop device, so that BFD response message can be back to by LSP to be detected into section
Point, and then the testing result of LSP to be detected is avoided to malfunction.
In this step, the network equipment can parse BFD request message, and obtaining the label that TTL is 0, (i.e. ingress is to be checked
Survey the label in LSP), BFD response message is generated according to the label.
Illustratively, it if current network device is the PE4 in Fig. 2, is carried in the BFD request message that PE4 is received
Upper label is 100, and lower layer's label is 400.The BFD response message for carrying label 400 can be generated in PE4.It is stored in PE4
Label Forwarding Information Base may refer to table (5).
Table (5)
Dest | Outgoing label | Next-hop device |
1.1.1.1 | 400 | PE3 |
1.1.1.1 | 200 | PE1 |
In table (5), Dest indicates the destination address of BFD response message, the i.e. network address of PE1.Outgoing label indicates that PE4 exists
The label (i.e. label of the PE1 in LSP to be detected) added in BFD response message.
According to table (5), PE4 can determine that destination address is 1.1.1.1, and carry the BFD response message of label 400
Next-hop device is PE3, and the BFD response message for carrying label 400 can be sent to PE3 by PE4.
Optionally, the network equipment can also be forwarded processing to BFD response message according to the Label Forwarding Information Base of storage.
This method may also comprise the following steps::
Step 1 if itself not being egress, and is not ingress, when receiving BFD response message, determines storage
Label Forwarding Information Base in, label corresponding with label of the ingress carried in BFD response message in LSP to be detected, as
Third label, in the Label Forwarding Information Base for determining storage, with the mark of the ingress that is carried in BFD response message in LSP to be detected
Corresponding next-hop device is signed, as the second equipment.
It if the network equipment is not egress, and is not ingress in application embodiment, i.e., the network equipment is middle node
Point, when the network equipment receives BFD response message, the network equipment can be inquired in Label Forwarding Information Base, determining and BFD
The corresponding label of label of the ingress carried in response message in LSP to be detected (i.e. third label), and responded with BFD
The corresponding next-hop device of label of the ingress carried in message in LSP to be detected (i.e. the second equipment).
Illustratively, similar with table (4), if current network device is the PE3 in Fig. 2, the label forwarding stored in PE3
Table may refer to table (6).
Table (6)
Enter label | Processing movement | Outgoing label | Next-hop device |
3000 | Switch label | 100 | PE4 |
400 | Switch label | 300 | PE2 |
Label of the ingress carried in the BFD response message that PE3 is received in LSP to be detected is 400, according to table
(6), PE3 can determine that the corresponding label of label 400 is 300 (i.e. third labels), and the corresponding next-hop device of label 400 is
PE2 (i.e. the second equipment).
Label of the ingress carried in BFD response message in LSP to be detected is revised as third label by step 2.
In application embodiment, after determining third label, the network equipment can enter section for what is carried in BFD response message
Label of the point in LSP to be detected, is revised as third label.
For above-mentioned example, the label 400 carried in BFD response message can be revised as 300 by PE3.
Modified BFD response message is sent to the second equipment by step 3.
In application embodiment, label of the network equipment to the ingress carried in BFD response message in LSP to be detected
After modification, modified BFD response message can be sent to the second equipment by the network equipment.
For above-mentioned example, the BFD response message for carrying label 300 can be sent to PE2 by PE3.
Similarly, according to table (4), PE2 can be by label of the ingress carried in BFD response message in LSP to be detected
200 are revised as, and modified BFD response message is sent to PE1.
As it can be seen that the message processing method based on the present embodiment, BFD response message can be back to by LSP to be detected into
Node, and then can malfunction to avoid the testing result of LSP to be detected.
Referring to fig. 4, Fig. 4 is a kind of flow chart of message processing method provided by the embodiments of the present application, and this method can answer
For the network equipment, which can be the ingress of LSP to be detected, and this method may comprise steps of:
S401: label of the egress for carrying LSP to be detected in LSP to be detected is generated, and to be detected
The BFD request message of label in LSP.
In application embodiment, if the network equipment is the ingress of LSP to be detected, the network equipment, which can be generated, to be carried
Label of the egress of LSP to be detected in LSP to be detected, and report is requested from the BFD of the label in LSP to be detected
Text.
In this step, the network equipment can determine the next-hop device of the BFD request message for LSP to be detected, then,
The network equipment can be inquired in the Label Forwarding Information Base of storage, next-hop device and BFD the request report for obtaining and determining
The corresponding label of destination address (label namely upper label of the egress of LSP i.e. to be detected in LSP to be detected) of text.
In addition, the network equipment can also determine the label (i.e. lower layer's label) from LSP to be detected, then, the network equipment can be with
Generate the BFD request message for carrying upper label and lower layer's label.
In addition, the network equipment when generating BFD request message, can will be set from the TTL of the label in LSP to be detected
It is set to default value, so that egress can identify label of the ingress carried in BFD request message in LSP to be detected
(i.e. the label that TTL is default value).In the prior art, in BFD message (including BFD request message and BFD response message)
The TTL of label is not 0, and therefore, the network equipment can set 0 for the TTL of label of the ingress in LSP to be detected, so that
Egress can identify that TTL is 0 label, and then obtain the ingress carried in BFD request message in LSP to be detected
Label.
Illustratively, if current network device is the PE1 in Fig. 2, the label forwarding that in PE1 stores similar with table (5)
Table may refer to table (7).
Table (7)
Dest | Outgoing label | Next-hop device |
4.4.4.4 | 2000 | PE2 |
4.4.4.4 | 100 | PE4 |
Wherein, Dest indicates the destination address of BFD request message, the i.e. network address of PE4.Outgoing label indicates PE1 in BFD
The upper label in label (i.e. PE4 is in the label in LSP to be detected) namely BFD request message added in request message.
Since the next-hop device in LSP to be detected (i.e. link L2- link L3- link L4) is PE2, according to table (7),
PE1 determine destination address be 4.4.4.4, and next-hop device be PE2 BFD request message in upper label be 2000, PE1
It can determine that from the label (i.e. lower layer's label) in LSP to be detected be 200, then, PE1, which can be generated, carries label
2000 and label 200 BFD request message, and can be set label 200 TTL be 0.
S402: BFD request message is sent to the next-hop device in LSP to be detected.
It, can after the network equipment generates the BFD request message for carrying upper label and lower layer's label in application embodiment
BFD request message to be sent to the next-hop device in LSP to be detected.
Illustratively, PE1 can ask BFD after generation carries the BFD request message of label 2000 and label 200
Message is asked to be sent to PE2, to detect to link L2- link L3- link L4.
Correspondingly, the next-hop device can root if the next-hop device for receiving BFD request message is not egress
According to the Label Forwarding Information Base of storage, modify to the label (including upper label and lower layer's label) carried in BFD request message,
And modified BFD request message is forwarded, specifically, being discussed in detail with reference to step S302.
If the next-hop device for receiving BFD request message is egress, which can be generated carrying
There is the BFD response message of the lower layer's label carried in BFD request message, and in the Label Forwarding Information Base of storage, under determination and this
The corresponding next-hop device of layer label, and BFD response message is sent to the next-hop device determined, specifically, can join
Examine being discussed in detail for step S303.
To sum up, based on the message processing method of the embodiment of the present application, the BFD that the egress of LSP to be detected generates is rung
The label carried in message is answered, is label of the ingress in LSP to be detected, therefore, egress is determined according to the label
Next-hop device, is the equipment for forwarding BFD request message to egress in LSP to be detected, and egress sends BFD response message
LSP to be detected is avoided to the next-hop device so that BFD response message can be back to ingress by LSP to be detected
Testing result error.
Referring to Fig. 5, Fig. 5 be a kind of exemplary flow chart of message processing method provided by the embodiments of the present application, embodiment with
Method is applied to be illustrated for the network equipment, and this method may comprise steps of:
S501: the BFD request message for being directed to LSP to be detected is received.
Wherein, label of the ingress of LSP to be detected in LSP to be detected and to be checked is carried in BFD request message
Survey label of the egress of LSP in LSP to be detected.
S502: judging itself, whether the egress for being LSP to be detected is held if itself is not the egress of LSP to be detected
Row S503-S505 executes S506-S508 if itself being the egress of LSP to be detected.
S503: in the Label Forwarding Information Base for determining storage, with the egress that is carried in BFD request message in LSP to be detected
The corresponding label of label in the Label Forwarding Information Base that determines storage, go out with what is carried in BFD request message as the first label
The corresponding next-hop device of label of the node in LSP to be detected, as the first equipment, in the Label Forwarding Information Base for determining storage,
Label corresponding with label of the ingress carried in BFD request message in LSP to be detected, as the second label.
S504: by label of the egress carried in BFD request message in LSP to be detected, being revised as the first label, will
Label of the ingress carried in BFD request message in LSP to be detected, is revised as the second label.
S505: modified BFD request message is sent to the first equipment.
S506: the BFD response for carrying label of the ingress carried in BFD request message in LSP to be detected is generated
Message.
S507: in the Label Forwarding Information Base of storage, the ingress carried in determining and BFD request message is in LSP to be detected
In the corresponding next-hop device of label.
S508: the BFD response message of generation is sent to the next-hop device determined.
As it can be seen that the message processing method based on the embodiment of the present application, the BFD that the egress of LSP to be detected generates responds report
The label carried in text is label of the ingress in LSP to be detected, and therefore, egress is determined next according to the label
Equipment is jumped, is the equipment for forwarding BFD request message to egress in LSP to be detected, BFD response message is sent to this by egress
Next-hop device avoids the inspection of LSP to be detected so that BFD response message can be back to ingress by LSP to be detected
Survey result error.
Corresponding with the embodiment of the method for Fig. 3, referring to Fig. 6, Fig. 6 is a kind of Message processing dress provided by the embodiments of the present application
The structure chart set, described device are applied to the network equipment, and described device includes:
Receiving module 601, for receiving the two-way converting detection BFD request report for being directed to label switching path LSP to be detected
Text, wherein label of the ingress of the LSP to be detected in the LSP to be detected is carried in the BFD request message,
And label of the egress of the LSP to be detected in the LSP to be detected;
Forwarding module 602, if for itself not being the egress, according to the Label Forwarding Information Base of storage, to the BFD
Label and the egress of the ingress carried in request message in the LSP to be detected are described to be detected
Label in LSP is modified, and forwards modified BFD request message, so that the egress is asked according to modified BFD
The label carried in message is sought, the BFD response message for being directed to the LSP to be detected is generated;
Sending module 603, if generation carries to be carried in the BFD request message for itself being the egress
The BFD response message of label of the ingress in the LSP to be detected determine and in the Label Forwarding Information Base of storage
Next-hop device corresponding with label of the ingress carried in the BFD request message in the LSP to be detected, will
The BFD response message is sent to the next-hop device determined.
Optionally, the forwarding module 602 requests to report specifically for determining in the Label Forwarding Information Base stored with the BFD
Label corresponding label of the egress carried in text in the LSP to be detected determines storage as the first label
It is corresponding with label of the egress carried in the BFD request message in the LSP to be detected in Label Forwarding Information Base
Next-hop device, as the first equipment, in the Label Forwarding Information Base for determining storage, described in being carried in the BFD request message
Label corresponding label of the ingress in the LSP to be detected, as the second label;
By label of the egress carried in the BFD request message in the LSP to be detected, it is revised as described
Label of the ingress carried in the BFD request message in the LSP to be detected is revised as institute by the first label
State the second label;
Modified BFD request message is sent to first equipment.
Optionally, described device further include:
Processing module if not being the egress, and is not the ingress for itself, is responded when receiving BFD
When message, in the Label Forwarding Information Base that determines storage, with the ingress that is carried in the BFD response message described to be detected
The corresponding label of label in LSP, as third label, in the Label Forwarding Information Base for determining storage, in the BFD response message
Label corresponding next-hop device of the ingress carried in the LSP to be detected, as the second equipment;
By label of the ingress carried in the BFD response message in the LSP to be detected, it is revised as described
Third label;
Modified BFD response message is sent to second equipment.
Corresponding with the embodiment of the method for Fig. 4, referring to Fig. 7, Fig. 7 is a kind of Message processing dress provided by the embodiments of the present application
The structure chart set, described device are applied to the network equipment, and described device includes:
Generation module 701, for generating the egress for carrying label switching path LSP to be detected described to be detected
Label in LSP, and BFD request message is detected from the two-way converting of the label in the LSP to be detected;
Sending module 702, the next-hop device for being sent to the BFD request message in the LSP to be detected.
Based on message process device provided by the present application, carried in the BFD response message that the egress of LSP to be detected generates
Label, be label of the ingress in LSP to be detected, therefore, the next-hop device that egress is determined according to the label is
To the equipment of egress forwarding BFD request message in LSP to be detected, BFD response message is sent to the next-hop and set by egress
It is standby, so that BFD response message can be back to ingress by LSP to be detected, the testing result of LSP to be detected is avoided to go out
It is wrong.
The embodiment of the present application also provides a kind of electronic equipment, as shown in figure 8, include processor 801, communication interface 802,
Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804
At mutual communication,
Memory 803, for storing computer program;
Processor 801, when for executing the program stored on memory 803, so that the electronic equipment executes at message
The step of reason method, this method may include:
The two-way converting received for label switching path LSP to be detected detects BFD request message, wherein the BFD is asked
Seek label and the to be detected LSP of the ingress that the LSP to be detected is carried in message in the LSP to be detected
Label of the egress in the LSP to be detected;
If itself not being the egress, according to the Label Forwarding Information Base of storage, to what is carried in the BFD request message
The ingress is repaired in the label of label and the egress in the LSP to be detected in the LSP to be detected
Change, and forward modified BFD request message, so that the egress is according to the mark carried in modified BFD request message
Label generate the BFD response message for being directed to the LSP to be detected;
If itself being the egress, generation carries the ingress carried in the BFD request message in institute
The BFD response message of the label in LSP to be detected is stated, and in the Label Forwarding Information Base of storage, the determining and BFD request message
Label corresponding next-hop device of the ingress of middle carrying in the LSP to be detected sends out the BFD response message
It send to the next-hop device determined.
Optionally, the Label Forwarding Information Base according to storage exists to the ingress carried in the BFD request message
The label of label and the egress in the LSP to be detected in the LSP to be detected is modified, and is forwarded and repaired
BFD request message after changing, comprising:
In the Label Forwarding Information Base for determining storage, with the egress that is carried in the BFD request message described to be checked
The corresponding label of label in LSP is surveyed, as the first label, in the Label Forwarding Information Base for determining storage, with the BFD request message
Label corresponding next-hop device of the egress of middle carrying in the LSP to be detected, as the first equipment, determination is deposited
In the Label Forwarding Information Base of storage, with the label pair of the ingress that is carried in the BFD request message in the LSP to be detected
The label answered, as the second label;
By label of the egress carried in the BFD request message in the LSP to be detected, it is revised as described
Label of the ingress carried in the BFD request message in the LSP to be detected is revised as institute by the first label
State the second label;
Modified BFD request message is sent to first equipment.
Optionally, the method also includes:
It if itself not being the egress, and is not the ingress, when receiving BFD response message, determination is deposited
In the Label Forwarding Information Base of storage, with the label pair of the ingress that is carried in the BFD response message in the LSP to be detected
The label answered, as third label, in the Label Forwarding Information Base that determines storage, with carried in the BFD response message described in enter
Label corresponding next-hop device of the node in the LSP to be detected, as the second equipment;
By label of the ingress carried in the BFD response message in the LSP to be detected, it is revised as described
Third label;
Modified BFD response message is sent to second equipment.
The embodiment of the present application also provides a kind of electronic equipment, as shown in figure 9, include processor 901, communication interface 902,
Memory 903 and communication bus 904, wherein processor 901, communication interface 902, memory 903 are complete by communication bus 904
At mutual communication,
Memory 903, for storing computer program;
Processor 901, when for executing the program stored on memory 903, so that the electronic equipment executes at message
The step of reason method, this method may include:
Label of the egress for carrying label switching path LSP to be detected in the LSP to be detected is generated, and certainly
The two-way converting of label in the LSP to be detected detects BFD request message;
The BFD request message is sent to the next-hop device in the LSP to be detected.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with computer program in storage medium, the computer program is realized any of the above-described applied to non-when being executed by processor
The step of message processing method of ingress.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can
Read to be stored with computer program in storage medium, the computer program realized when being executed by processor it is any of the above-described be applied into
The step of message processing method of node.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any message processing method applied to non-ingress in above-described embodiment.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any message processing method applied to ingress in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment, computer readable storage medium and computer program product embodiments, since it is substantially similar to method reality
Example is applied, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all
Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application
It is interior.
Claims (12)
1. a kind of message processing method, which is characterized in that the method is applied to the network equipment, which comprises
The two-way converting received for label switching path LSP to be detected detects BFD request message, wherein the BFD request report
Going out for label and the to be detected LSP of the ingress of the LSP to be detected in the LSP to be detected is carried in text
Label of the node in the LSP to be detected;
If itself not being the egress, according to the Label Forwarding Information Base of storage, described in being carried in the BFD request message
Ingress is modified in the label of label and the egress in the LSP to be detected in the LSP to be detected,
And modified BFD request message is forwarded, so that the egress is according to the label carried in modified BFD request message,
Generate the BFD response message for being directed to the LSP to be detected;
If itself being the egress, generate carry the ingress that is carried in the BFD request message it is described to
The BFD response message of the label in LSP is detected, and in the Label Forwarding Information Base of storage, determine and is taken in the BFD request message
Label corresponding next-hop device of the ingress of band in the LSP to be detected, the BFD response message is sent to
The next-hop device determined.
2. the method according to claim 1, wherein the Label Forwarding Information Base according to storage, asks the BFD
Ask label and the egress of the ingress carried in message in the LSP to be detected in the LSP to be detected
In label modify, and forward modified BFD request message, comprising:
In the Label Forwarding Information Base for determining storage, with the egress that is carried in the BFD request message in the LSP to be detected
In the corresponding label of label in the Label Forwarding Information Base that determines storage, and taken in the BFD request message as the first label
Label corresponding next-hop device of the egress of band in the LSP to be detected determines storage as the first equipment
It is corresponding with label of the ingress carried in the BFD request message in the LSP to be detected in Label Forwarding Information Base
Label, as the second label;
By label of the egress carried in the BFD request message in the LSP to be detected, it is revised as described first
Label of the ingress carried in the BFD request message in the LSP to be detected is revised as described by label
Two labels;
Modified BFD request message is sent to first equipment.
3. the method according to claim 1, wherein the method also includes:
If itself not being the egress, and it is not the ingress, when receiving BFD response message, determines storage
It is corresponding with label of the ingress carried in the BFD response message in the LSP to be detected in Label Forwarding Information Base
Label, as third label, in the Label Forwarding Information Base for determining storage, with the ingress carried in the BFD response message
The corresponding next-hop device of label in the LSP to be detected, as the second equipment;
By label of the ingress carried in the BFD response message in the LSP to be detected, it is revised as the third
Label;
Modified BFD response message is sent to second equipment.
4. a kind of message processing method, which is characterized in that the method is applied to the network equipment, which comprises
Generate the label for carrying the egress of label switching path LSP to be detected in the LSP to be detected, and from
The two-way converting of label in the LSP to be detected detects BFD request message;
The BFD request message is sent to the next-hop device in the LSP to be detected.
5. a kind of message process device, which is characterized in that the method is applied to the network equipment, and described device includes:
Receiving module, for receiving the two-way converting detection BFD request message for being directed to label switching path LSP to be detected, wherein
Label of the ingress of the LSP to be detected in the LSP to be detected and described is carried in the BFD request message
Label of the egress of LSP to be detected in the LSP to be detected;
Forwarding module, according to the Label Forwarding Information Base of storage, requests to report if for itself not being the egress to the BFD
The ingress carried in text in the LSP to be detected label and the egress in the LSP to be detected
Label is modified, and forwards modified BFD request message, so that the egress is according to modified BFD request message
The label of middle carrying generates the BFD response message for being directed to the LSP to be detected;
Sending module, if for itself being the egress, generate carry carried in the BFD request message it is described enter
The BFD response message of label of the node in the LSP to be detected, and in the Label Forwarding Information Base of storage, the determining and BFD
Label corresponding next-hop device of the ingress carried in request message in the LSP to be detected rings the BFD
Message is answered to be sent to the next-hop device determined.
6. device according to claim 5, which is characterized in that the forwarding module, specifically for determining the label of storage
In forwarding table, mark corresponding with label of the egress carried in the BFD request message in the LSP to be detected
Label in the Label Forwarding Information Base for determining storage, exist as the first label with the egress carried in the BFD request message
The corresponding next-hop device of label in the LSP to be detected, as the first equipment, in the Label Forwarding Information Base for determining storage, with
Label corresponding label of the ingress carried in the BFD request message in the LSP to be detected, as the second mark
Label;
By label of the egress carried in the BFD request message in the LSP to be detected, it is revised as described first
Label of the ingress carried in the BFD request message in the LSP to be detected is revised as described by label
Two labels;
Modified BFD request message is sent to first equipment.
7. device according to claim 5, which is characterized in that described device further include:
Processing module if not being the egress, and is not the ingress for itself, when receiving BFD response message
When, in the Label Forwarding Information Base that determines storage, with the ingress that is carried in the BFD response message in the LSP to be detected
In the corresponding label of label in the Label Forwarding Information Base that determines storage, and taken in the BFD response message as third label
Label corresponding next-hop device of the ingress of band in the LSP to be detected, as the second equipment;
By label of the ingress carried in the BFD response message in the LSP to be detected, it is revised as the third
Label;
Modified BFD response message is sent to second equipment.
8. a kind of message process device, which is characterized in that described device is applied to the network equipment, and described device includes:
Generation module, for generating mark of the egress for carrying label switching path LSP to be detected in the LSP to be detected
Label, and BFD request message is detected from the two-way converting of the label in the LSP to be detected;
Sending module, the next-hop device for being sent to the BFD request message in the LSP to be detected.
9. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described
Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 1-3
Method step.
10. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described
Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes method step as claimed in claim 4
Suddenly.
11. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and
When execution, the machine-executable instruction promotes the processor: realizing any method and step of claim 1-3.
12. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and
When execution, the machine-executable instruction promotes the processor: realizing method and step as claimed in claim 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811392770.XA CN109218199B (en) | 2018-11-21 | 2018-11-21 | Message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811392770.XA CN109218199B (en) | 2018-11-21 | 2018-11-21 | Message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109218199A true CN109218199A (en) | 2019-01-15 |
CN109218199B CN109218199B (en) | 2021-03-02 |
Family
ID=64994012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811392770.XA Active CN109218199B (en) | 2018-11-21 | 2018-11-21 | Message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109218199B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131021A (en) * | 2020-01-17 | 2020-05-08 | 新华三信息安全技术有限公司 | Forwarding method and network equipment for Bidirectional Forwarding Detection (BFD) message |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1815970A (en) * | 2005-02-01 | 2006-08-09 | 华为技术有限公司 | Method for detecting network chain fault and positioning said fault |
CN1968163A (en) * | 2006-10-25 | 2007-05-23 | 华为技术有限公司 | Method for service channel detection and system for providing the same |
CN101848155A (en) * | 2010-05-12 | 2010-09-29 | 北京星网锐捷网络技术有限公司 | Detection method of label switching path and label switching router |
CN102055619A (en) * | 2009-11-02 | 2011-05-11 | 中兴通讯股份有限公司 | Method and system for realize fault detection in bidirectional path segment |
CN102340438A (en) * | 2010-07-19 | 2012-02-01 | 中兴通讯股份有限公司 | Method and system for bidirectionally transmitting message in MPLS (Multi-Protocol Label Switching) network |
CN102624609A (en) * | 2012-02-28 | 2012-08-01 | 华为技术有限公司 | Method for transmitting reverse bidirectional forwarding detection (BFD) messages, method for notifying paths and device for notifying paths |
CN102957573A (en) * | 2011-08-24 | 2013-03-06 | 中兴通讯股份有限公司 | Path detection realizing method and node |
US20130208582A1 (en) * | 2012-02-13 | 2013-08-15 | Ijsbrand Wijnands | System and method for multipoint label distribution protocol node protection using a targeted session in a network environment |
CN103685024A (en) * | 2013-12-26 | 2014-03-26 | 华为技术有限公司 | Node protecting method and device |
US8902780B1 (en) * | 2012-09-26 | 2014-12-02 | Juniper Networks, Inc. | Forwarding detection for point-to-multipoint label switched paths |
CN104488237A (en) * | 2013-03-15 | 2015-04-01 | 华为技术有限公司 | Method for packet processing and packet device and system |
CN105191230A (en) * | 2013-06-18 | 2015-12-23 | 华为技术有限公司 | Next hop ingress protection of label switched paths |
CN105490932A (en) * | 2014-09-19 | 2016-04-13 | 中兴通讯股份有限公司 | Two-way forwarding detection method, device and system |
CN107005481A (en) * | 2014-06-30 | 2017-08-01 | 瑞典爱立信有限公司 | The control of return path is detected for two-way converting |
CN106998273A (en) * | 2016-01-26 | 2017-08-01 | 中兴通讯股份有限公司 | Link failure detection method and device |
CN108768788A (en) * | 2018-06-26 | 2018-11-06 | 新华三技术有限公司合肥分公司 | Path failure detection method and device |
-
2018
- 2018-11-21 CN CN201811392770.XA patent/CN109218199B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1815970A (en) * | 2005-02-01 | 2006-08-09 | 华为技术有限公司 | Method for detecting network chain fault and positioning said fault |
CN1968163A (en) * | 2006-10-25 | 2007-05-23 | 华为技术有限公司 | Method for service channel detection and system for providing the same |
CN102055619A (en) * | 2009-11-02 | 2011-05-11 | 中兴通讯股份有限公司 | Method and system for realize fault detection in bidirectional path segment |
CN101848155A (en) * | 2010-05-12 | 2010-09-29 | 北京星网锐捷网络技术有限公司 | Detection method of label switching path and label switching router |
CN102340438A (en) * | 2010-07-19 | 2012-02-01 | 中兴通讯股份有限公司 | Method and system for bidirectionally transmitting message in MPLS (Multi-Protocol Label Switching) network |
CN102957573A (en) * | 2011-08-24 | 2013-03-06 | 中兴通讯股份有限公司 | Path detection realizing method and node |
US20130208582A1 (en) * | 2012-02-13 | 2013-08-15 | Ijsbrand Wijnands | System and method for multipoint label distribution protocol node protection using a targeted session in a network environment |
CN102624609A (en) * | 2012-02-28 | 2012-08-01 | 华为技术有限公司 | Method for transmitting reverse bidirectional forwarding detection (BFD) messages, method for notifying paths and device for notifying paths |
US8902780B1 (en) * | 2012-09-26 | 2014-12-02 | Juniper Networks, Inc. | Forwarding detection for point-to-multipoint label switched paths |
CN104488237A (en) * | 2013-03-15 | 2015-04-01 | 华为技术有限公司 | Method for packet processing and packet device and system |
CN105191230A (en) * | 2013-06-18 | 2015-12-23 | 华为技术有限公司 | Next hop ingress protection of label switched paths |
CN103685024A (en) * | 2013-12-26 | 2014-03-26 | 华为技术有限公司 | Node protecting method and device |
CN107005481A (en) * | 2014-06-30 | 2017-08-01 | 瑞典爱立信有限公司 | The control of return path is detected for two-way converting |
CN105490932A (en) * | 2014-09-19 | 2016-04-13 | 中兴通讯股份有限公司 | Two-way forwarding detection method, device and system |
CN106998273A (en) * | 2016-01-26 | 2017-08-01 | 中兴通讯股份有限公司 | Link failure detection method and device |
CN108768788A (en) * | 2018-06-26 | 2018-11-06 | 新华三技术有限公司合肥分公司 | Path failure detection method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131021A (en) * | 2020-01-17 | 2020-05-08 | 新华三信息安全技术有限公司 | Forwarding method and network equipment for Bidirectional Forwarding Detection (BFD) message |
Also Published As
Publication number | Publication date |
---|---|
CN109218199B (en) | 2021-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9794167B2 (en) | Bicasting using non-congruent paths in a loop-free routing topology having routing arcs | |
US10404600B2 (en) | Mechanism and apparatus for path protection when using compressed segment routing label stacks | |
US8842522B2 (en) | Incremental deployment of MRT based IPFRR | |
US8014275B1 (en) | Devices, systems, and/or methods for monitoring IP network equipment | |
US8456982B2 (en) | System and method for fast network restoration | |
US8854953B2 (en) | Optimizing endpoint selection of MRT-FRR detour paths | |
JP6651463B2 (en) | Fine-grained network monitoring | |
JP2017121057A (en) | Method, device, and system for implementing delay measurement | |
JP6443864B2 (en) | Method, apparatus and system for implementing packet loss detection | |
JPWO2009090723A1 (en) | Packet transmission equipment | |
CN107347032A (en) | Message forwarding method and device | |
Papán et al. | The survey of current IPFRR mechanisms | |
CN112737871A (en) | Link fault detection method and device, computer equipment and storage medium | |
US8750166B2 (en) | Route topology discovery in data networks | |
CN109218199A (en) | A kind of message processing method and device | |
CN109067657A (en) | A kind of message processing method and device | |
CN109120449A (en) | A kind of detection method and device of link failure | |
CN105959129B (en) | The method and device of monitoring network failure | |
CN110838978B (en) | Message forwarding method and device | |
CN113904972B (en) | Path detection method and device, controller and PE (polyethylene) equipment | |
CN109831378A (en) | A kind of message time-out response method and device | |
Litkowski et al. | Operational Management of Loop-Free Alternates | |
US8848518B2 (en) | System and method for providing notification of a change in path condition | |
JP4598790B2 (en) | Network system, core node on working path, edge node, core node on detour path, and communication control method by core node on working path | |
US20170012869A1 (en) | Forwarding table management in computer networks |
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 |