CN109218176A - A kind of method and device of Message processing - Google Patents

A kind of method and device of Message processing Download PDF

Info

Publication number
CN109218176A
CN109218176A CN201710526828.4A CN201710526828A CN109218176A CN 109218176 A CN109218176 A CN 109218176A CN 201710526828 A CN201710526828 A CN 201710526828A CN 109218176 A CN109218176 A CN 109218176A
Authority
CN
China
Prior art keywords
message
index information
tunnel
state machine
aps 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
Application number
CN201710526828.4A
Other languages
Chinese (zh)
Other versions
CN109218176B (en
Inventor
邱亮
张文锋
邵卫东
易科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710526828.4A priority Critical patent/CN109218176B/en
Publication of CN109218176A publication Critical patent/CN109218176A/en
Application granted granted Critical
Publication of CN109218176B publication Critical patent/CN109218176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses a kind of method and devices of Message processing, belong to the communications field.The method is for handling the automatic protection switching APS message transmitted on the tunnel section routing traffic engineering SR-TE; the endpoint device at the tunnel SR-TE both ends is respectively first end point equipment and the second endpoint device; it include: that the first end point equipment receives the APS message that second endpoint device is sent from the tunnel SR-TE, the APS message carries index information;The first end point equipment determines the state machine for handling the APS message according to the index information;The first end point equipment handles the APS message by the state machine.Described device includes: receiving unit and processing unit.The application can be handled APS message.

Description

A kind of method and device of Message processing
Technical field
This application involves the communications field, in particular to a kind of method and device of Message processing.
Background technique
Traditional multiprotocol label switching (Multi-Protocol Label Switching, MPLS) network can be on two sides Tunnel group is established between edge forwarding device, which is that the forwarding being connected in MPLS network with user side is set It is standby.Automatic protection switching (Automatic Protection Switching, APS) can be used in two edge forwarding equipment Message is negotiated to carry out transmission services using the tunnel in tunnel group.
Any edge forwarding device (referred to as source equipment) in two edge forwarding equipment can be by tunnel group Tunnel to other edge forwarding device (referred to as purpose end equipment) send APS message.Purpose end equipment receives the APS message The state machine for handling the APS message is obtained according to the label carried in the outer layer field of the APS message afterwards, uses the state Machine handles the APS message, and determines the tunnel of transmission services message.
As technology develops, section routing traffic engineering can be established between two edge forwarding equipment in an mpls network (Segment Routing-Traffic Engineering, SR-TE) tunnel group, source equipment can be used in the tunnel group The tunnel SR-TE send the APS message, but purpose end equipment received APS message from the tunnel SR-TE to purpose end equipment Outer layer field in there is no label, lead to not find state machine to handle the APS message.
Summary of the invention
In order to handle APS message, this application provides a kind of method and devices of Message processing.The skill Art scheme is as follows:
In a first aspect, the embodiment of the present application provides a kind of method of Message processing, the method is for handling in Duan Lu By the automatic protection switching APS message transmitted on the tunnel traffic engineering SR-TE, the endpoint device point at the tunnel SR-TE both ends Not Wei first end point equipment and the second endpoint device, the first end point equipment receives described second from the tunnel SR-TE The APS message that endpoint device is sent, since the APS message carries index information, so as to true according to the index information Determine the state machine for handling the APS message;Since the first end point equipment determines state machine, so as to pass through It states state machine and handles the APS message, realize the processing to APS message.
In a kind of possible implementation of first aspect, the index information includes the mark in the tunnel SR-TE; Alternatively, the index information is presupposed information;Alternatively, the index information be the tunnel SR-TE in the first end point The label that the adjacent upstream equipment of equipment is popped up from the label stack that the APS message carries.
It include the mark in the tunnel SR-TE in the index information in a kind of possible implementation of first aspect The case where knowledge, the index information can also include the first end point equipment in addition to the mark including the tunnel SR-TE The mark of mark and second endpoint device.In this way, be virtual unit in first end point equipment and the second endpoint device, second Endpoint device and another virtual unit are located on same physical equipment and two virtual units are set with first end point When the standby tunnel SR-TE established with like-identified, the also included first end point equipment of the index information can be passed through The mark of mark and second endpoint device distinguishes two tunnels SR-TE.
In a kind of possible implementation of first aspect, the first end point equipment is obtained according to the index information The unit marks and the state machine of message process unit where the veneer sign of veneer, the state machine where the state machine Mark;According to the veneer sign, the downlink board where the state machine is determined;According to the unit marks, described The message process unit where the state machine is determined in downlink board;According to the mark of the state machine, at the message It manages and determines the state machine in unit.
In a kind of possible implementation of first aspect, the association that the index information is located at the APS message is logical After trace header ACH and before payload.In this way, being located at after the ACH of the APS message due to the index information, institute ensure that Stating index information will not be popped up by the forwarding device on the tunnel SR-TE, receive the first end point equipment described APS message carries the index information.
Second aspect, the embodiment of the present application provide a kind of method of Message processing, and the method is for handling in Duan Lu By the automatic protection switching APS message transmitted on the tunnel traffic engineering SR-TE, the endpoint device point at the tunnel SR-TE both ends Not Wei first end point equipment and the second endpoint device, second endpoint device generates APS message, and the APS message carries rope Fuse breath;The APS message is sent to the first end point equipment by the tunnel SR-TE, so that the first end point Equipment can determine the state machine for handling the APS message according to the index information.Due to the first end point equipment State machine has been determined, so as to handle the APS message by the state machine, has realized the processing to APS message.
In a kind of possible implementation of second aspect, the index information includes the mark in the tunnel SR-TE; Alternatively, the index information is presupposed information;Alternatively, the index information be the tunnel SR-TE in the first end point The label that the adjacent upstream equipment of equipment is popped up from the label stack that the APS message carries.
It include the mark in the tunnel SR-TE in the index information in a kind of possible implementation of second aspect The case where knowledge, the index information can also include the first end point equipment in addition to the mark including the tunnel SR-TE The mark of mark and second endpoint device.In this way, be virtual unit in first end point equipment and the second endpoint device, second Endpoint device and another virtual unit are located on same physical equipment and two virtual units are set with first end point When the standby tunnel SR-TE established with like-identified, the also included first end point equipment of the index information can be passed through The mark of mark and second endpoint device distinguishes two tunnels SR-TE.
In a kind of possible implementation of second aspect, the association that the index information is located at the APS message is logical After trace header ACH and before payload.In this way, being located at after the ACH of the APS message due to the index information, institute ensure that Stating index information will not be popped up by the forwarding device on the tunnel SR-TE, receive the first end point equipment described APS message carries the index information.
The third aspect, the embodiment of the present application provide a kind of device of Message processing, execute first aspect or first aspect Any one possible implementation in method.Specifically, described device includes for executing first aspect or first party The unit of method in the possible implementation of any one of face.
Fourth aspect, the embodiment of the present application provide a kind of device of Message processing, for executing second aspect or second Method in the possible implementation of any one of aspect.Specifically, described device includes for executing second aspect or The unit of method in any one possible implementation of two aspects.
5th aspect, the embodiment of the present application provide a kind of device of Message processing, and described device, described device is for locating Manage the automatic protection switching APS message transmitted on the tunnel section routing traffic engineering SR-TE, the end at the tunnel SR-TE both ends Point device is respectively described device and the second endpoint device, comprising: input interface and processor;The input interface, for from The APS message that second endpoint device is sent is received on the tunnel SR-TE, the APS message carries index information;It is described Processor is handled for determining the state machine for handling the APS message according to the index information by the state machine The APS message.Since the processor determines state machine, so as to handle the APS message by the state machine, Realize the processing to APS message.
6th aspect, the embodiment of the present application provide a kind of device of Message processing, and described device is for handling in Duan Lu By the automatic protection switching APS message transmitted on the tunnel traffic engineering SR-TE, the endpoint device point at the tunnel SR-TE both ends It Wei first end point equipment and described device, comprising: output interface and processor;The processor, for generating APS message, The APS message carries index information;The output interface, for by the tunnel SR-TE to the first end point equipment The APS message is sent, so that the first end point equipment can be determined according to the index information for handling the APS The state machine of message.Since the first end point equipment has determined state machine, so as to by described in state machine processing APS message realizes the processing to APS message.
7th aspect, the embodiment of the present application provides a kind of system of Message processing, the system comprises the third aspect or Device described in device and fourth aspect described in 5th aspect or the 6th aspect.
Eighth aspect, the embodiment of the present application provide a kind of computer readable storage medium, including instruction, work as described instruction When being run in endpoint device, so that the endpoint device executes first aspect, second aspect, the arbitrarily possible reality of first aspect The instruction of existing mode or the method in the arbitrarily possible implementation of second aspect.
9th aspect, the embodiment of the present application provides a kind of computer program product comprising instruction, when it sets in endpoint When standby upper operation, so that the endpoint device executes method described in first aspect or second aspect.
Detailed description of the invention
Fig. 1 is a kind of network architecture schematic diagram provided by the embodiments of the present application;
Fig. 2-1 is a kind of method flow diagram of Message processing provided by the embodiments of the present application;
Fig. 2-2 is APS message structure schematic diagram provided by the embodiments of the present application;
Fig. 2-3 is the flow chart provided by the embodiments of the present application for obtaining label stack;
Fig. 2-4 is endpoint device structural schematic diagram provided by the embodiments of the present application;
Fig. 2-5 is the flow chart provided by the embodiments of the present application for obtaining state machine;
Fig. 3 is a kind of apparatus structure schematic diagram of Message processing provided by the embodiments of the present application;
Fig. 4 is the apparatus structure schematic diagram of another Message processing provided by the embodiments of the present application;
Fig. 5 is the apparatus structure schematic diagram of another Message processing provided by the embodiments of the present application;
Fig. 6 is the apparatus structure schematic diagram of another Message processing provided by the embodiments of the present application;
Fig. 7 is a kind of system structure diagram of Message processing provided by the embodiments of the present application.
Specific embodiment
Referring to Fig. 1, one embodiment of the application provides a kind of MPLS network framework, which includes controller and turn Send out equipment;There are part forwarding devices in the network architecture is connected with user side, and this kind of forwarding device is properly termed as edge forwarding Equipment.
Controller can also be according to the network topological information, in MPLS for obtaining the network topological information of MPLS network At least one tunnel SR-TE group is established between two edge forwarding equipment in network, which is the SR- The endpoint device at any tunnel SR-TE both ends in traffic engineering tunnel group, the tunnel SR-TE are used for transmission message.
For ease of description, which is referred to as first end point equipment and the second endpoint device, first Endpoint device can be received from the tunnel SR-TE the second endpoint device transmission message, the message can be service message or APS message.
The tunnel SR-TE group includes active and standby two tunnels SR-TE, one of them is known as primary tunnel, another is known as protecting Tunnel, protection path are the backups of primary tunnel.Second endpoint device can be on primary tunnel or protection path to first end Point device sends service message, can send APS message to first end point equipment in protection path.
The APS message that second endpoint device is sent to first end point equipment can be used for synchronous first end point equipment and second Endpoint device makes first end point equipment and about the state of the primary tunnel in the tunnel SR-TE group and the state of protection path Two endpoint devices are transmitted according to the state of primary tunnel and the state of protection path, determination using primary tunnel or protection path Service message.
In actual implementation, when primary tunnel and without failure protection path, the second endpoint device detects primary Tunnel and protection path are without failure, select primary tunnel to carry out transmission services message, to first end also in protection path Point device sends APS message, which may include the status information of primary tunnel and the status information of protection path;The One end point device can receive the APS message from the protection path, handle the APS message, determine primary tunnel The state of state and protection path be it is without failure, also select primary tunnel carry out transmission services message.
And when primary tunnel breaks down and protection path is without failure, the second endpoint device detects primary Tunnel failure and the non-failure of protection path select protection path to carry out transmission services message, set in protection path to first end point Preparation send APS message, which may include the status information of primary tunnel and the status information of protection path.First end Point device can receive the APS message from the protection path, handle the APS message, determine the state of primary tunnel State for failure and protection path be it is without failure, also select protection path carry out transmission services message, thus by business Message is switched in protection path from primary tunnel and transmits.
Wherein, for controller in the primary tunnel established between first end point equipment and the second endpoint device, also obtaining should This is primary for the label and composition of link in each forwarding device that primary tunnel passes through between two forwarding devices of arbitrary neighborhood The corresponding label stack in tunnel, which is respectively stored in first end point equipment and the second endpoint device.
And controller, in the protection path established between first end point equipment and the second endpoint device, also obtaining should The label of link in each forwarding device that protection path is passed through between two forwarding devices of arbitrary neighborhood and the composition protection The corresponding label stack in tunnel, which is respectively stored in first end point equipment and the second endpoint device.
In this way, the realization process for sending service message can be with are as follows: the second endpoint device sends business report on primary tunnel Text includes the corresponding label stack of primary tunnel in the outer layer field of the service message.Forwarding device on the primary tunnel receives When the service message, a label is popped up from the label stack of the service message, determines the corresponding link of the label, it is primary at this By the link, downstream forwarding device forwards the service message on tunnel, until being forwarded to first end point equipment.Alternatively, second Endpoint device sends service message in protection path, includes the corresponding label of protection path in the outer layer field of the service message Stack.When forwarding device in the protection path receives the service message, a label is popped up from the label stack of the service message, Determine the corresponding link of the label, downstream forwarding device forwards the service message by the link in the protection path, directly To being forwarded to first end point equipment.
The realization process for sending APS message can be with are as follows: the second endpoint device sends APS message in protection path, the APS It include the corresponding label stack of protection path in the outer layer field of message.Forwarding device in the protection path receives the APS message When, a label is popped up from the label stack of the APS message, is determined the corresponding link of the label, is passed through in the protection path Downstream forwarding device forwards the service message to the link, until being forwarded to first end point equipment.
Wherein, it should be understood that the adjacent upstream forwarding of first end point equipment in primary tunnel or protection path is set It is standby when receiving service message, label stack only one label in service message sends out the label after label stack pop-up The service message for giving first end point equipment does not carry label stack.Equally, adjacent upper of first end point equipment in protection path Forwarding device is swum when receiving APS message, label stack only one label in APS message, by the label from label stack bullet The APS message that first end point equipment is sent to after out does not also carry label stack.
After first end point equipment receives APS message, the detailed process handled to APS message is in subsequent embodiment It is described in detail, does not introduce first herein.
In this application, forwarding device can be router or interchanger etc..
For example, forwarding device in MPLS network framework includes forwarding device in MPLS network framework shown in Fig. 1 P1, P2, P3, P4, PE1 and PE2, forwarding device PE1 and PE2 are the edge forwarding equipment being connected in MPLS network with user side.
Customer edge forwarding device CE1 connection edge forwarding equipment PE1, and connection user equipment (Fig. 1 is not shown);With Family edge forwarding equipment CE2 connection edge forwarding equipment PE2, and connection user equipment (Fig. 1 is not shown).
Controller establishes at least one tunnel SR-TE group, edge forwarding equipment between edge forwarding equipment PE1 and PE2 PE1 and PE2 is two endpoint devices in each tunnel SR-TE in the tunnel the SR-TE group.The tunnel the SR-TE group includes primary Tunnel and protection path, the primary tunnel pass through forwarding device PE1, P1, P2 and PE2, which passes through forwarding device PE1, P3, P4 and PE2.
Controller also sets up the corresponding label stack of primary tunnel and the corresponding label stack of protection path, and the primary tunnel is corresponding Label stack include the corresponding label 200 of link between forwarding device PE1 and P1, the link pair between forwarding device P1 and P2 The corresponding label 202 of link between label 201 and forwarding device P2 and PE2 answered, the corresponding label stack of the protection path The corresponding label of link including the corresponding label 203 of link between forwarding device PE1 and P3, between forwarding device P3 and P4 The corresponding label 205 of link between 204 and forwarding device P4 and PE2.
Controller also stores the corresponding label stack of the primary tunnel and the guarantor on edge forwarding equipment PE1 and PE2 respectively Protect the corresponding label stack in tunnel.
Referring to fig. 2-1, one embodiment of the application provides a kind of method of Message processing, and this method is applied to as schemed The network architecture shown in 1, comprising:
Step 201: the second endpoint device generates APS message, which carries index information.
Second endpoint device is any endpoint in the endpoint device at any tunnel SR-TE both ends in the tunnel SR-TE group Equipment.For ease of description, when an endpoint device in two endpoint devices that the second endpoint device is the tunnel SR-TE both ends When, another endpoint device is referred to as first end point equipment.
It wherein, include the corresponding label stack of protection path in the outer layer field of the APS message.The index information is located at should After ACH field in APS message and before payload.It may include the primary tunnel in the tunnel the SR-TE group in the payload The state of state and protection path.
It in this step, can be in association channel head (Associated Channel Header, ACH) word of APS message Increase newer field between section and payload, carries index information using the newer field.
APS message structure shown in-2 (label stack that Fig. 2-2 is not drawn into protection path) referring to fig. 2, the APS message include General ACH label (Generic ACH Label, GAL) field, ACH field, increased newer field and payload, increased new word Section can be located at after ACH field and be located at before payload.
GAL field can carry default label, and default label can be 13 equal numerical value.In addition to the GAL field of APS message is taken Band is preset outside label, for example, there are also parts, Operations, Administration and Maintenance when network can provide Section transmission services The GAL field of (Section Operation, Administration and Maintenance, Section OAM) message Carry default label.It include flag bit field (for the Flags in Fig. 2-2) in payload to further discriminate between both messages, Flag bit field can carry default flag bit, preset label and default flag bit common ID message is APS message.
It can also be including the label stack of protection path before the GAL field of APS message.The label stack of protection path is control It is stored in the second endpoint device when device processed establishes protection path.For example, with reference to Fig. 1, it is assumed that edge forwarding equipment PE1 is the Two endpoint devices, edge forwarding equipment PE2 are first end point equipment, are wrapped in the APS message generated on the second endpoint device PE1 The label stack of protection path is included, which includes the corresponding label 203 of link between forwarding device PE1 and P3, and forwarding is set The corresponding label 205 of link between the corresponding label 204 of link and forwarding device P4 and PE2 between standby P3 and P4.
Index information can have following three kinds of forms, be respectively as follows:
The first, index information include the tunnel SR-TE mark.
The mark in the tunnel SR-TE can be the mark of protection path or the mark or the tunnel SR-TE of primary tunnel Mark may include the mark of protection path and the mark of primary tunnel.For the realization difficulty of reduction procedure, the SR-TE tunnel The mark in road can be the mark of protection path.The mark in the tunnel SR-TE is configured when establishing protection path and is set in the second endpoint Standby upper, the second endpoint device can be directly from the local mark for obtaining the tunnel SR-TE in this step.
Further, index information can also include the mark of first end point equipment and the mark of the second endpoint device.The The mark of one end point device can be address Internet protocol (Internet Protocol, IP) etc. of first end point equipment, the The mark of two endpoint devices can be the IP address etc. of second end point device.First end point equipment and the second endpoint device can at this time To be virtual unit.When there are another virtual units (calling third endpoint device in the following text) and the second endpoint device to be located at same object It manages in equipment, and is located at third endpoint device and the second endpoint device on same physical equipment and is all built with first end point equipment When the vertical tunnel with like-identified, it can further pass through the mark of first end point equipment and the mark pair of the second endpoint device Tunnel with like-identified distinguishes.The mark of first end point equipment and the mark of the second endpoint device are establishing protection tunnel It can be only fitted to when road in the second endpoint device, the second endpoint device directly can obtain first end point from local in this step The mark of equipment and the mark of the second endpoint device.
It referring to fig. 2-2, is the first form and mark, the second endpoint device including first end point equipment in index information Mark and the tunnel SR-TE mark in the case where, three newer fields, the respectively first new word can be increased in APS message Section, the second newer field and third newer field, the first newer field are used to carry the mark of first end point equipment, and the second newer field is used for The mark of the second endpoint device is carried, third newer field is used to carry the mark in the tunnel SR-TE.It is the first shape in index information In the case where formula and mark including the tunnel SR-TE, a newer field can be increased in APS message for carrying SR-TE tunnel The mark in road.
Second, index information is presupposed information.Presupposed information can be default value, such as can be 1000 or 2000 Equal numerical value.
The corresponding relationship of the mark in presupposed information and the tunnel SR-TE can be saved in the second endpoint device in advance.Second Endpoint device, can be according to the mark in the tunnel SR-TE for being used for transmission the APS message, from the default letter when generating APS message Presupposed information corresponding with the acquisition of the corresponding relationship of the mark in the tunnel SR-TE is ceased, the presupposed information is then added to APS report Wen Zhong.
The third, index information be what the adjacent upstream equipment of first end point equipment was popped up from the label stack of APS message Label.
The corresponding relationship and second of the mark in label and the tunnel SR-TE can be saved in the second endpoint device in advance Also the corresponding label stack in the tunnel SR-TE is saved in endpoint device.
Second endpoint device, can be according to the mark in the tunnel SR-TE for being used for transmission the APS message when generating APS message Know, obtain corresponding label from the label and the corresponding relationship of the mark in the tunnel SR-TE, which is added to APS report Wen Zhong.Alternatively, it is adjacent to obtain first end point equipment from the corresponding label stack in the tunnel SR-TE for be used for transmission the APS message The label is added in the APS message by the label that upstream equipment will be popped up from the label stack of APS message.
For second and the index information of the third form, one can be increased between the ACH and payload of APS message Newer field carries the index information using the newer field.
In this step, APS message can be generated in the second endpoint device, obtains the SR-TE tunnel for being used for transmission the APS message The corresponding label stack in road, which is added in the outer layer field of the APS message.Realization process can be as follows:
Referring to figure 2-3, the second endpoint device generates APS message, which includes reserved field, GAL field, ACH word Section, payload and the index information between ACH field and payload;It is wherein carried in reserved field and is used for transmission the APS's The corresponding label value of protection path, GAL field carry default label (such as can be 13);The mark carried according to the reserved field Label value searches the corresponding label stack token of the protection path from label value and the mapping table of label stack token;According to this Label stack token searches corresponding label stack index from label stack token and the mapping table that label stack indexes;According to this Label stack index, obtains corresponding label stack, which is the corresponding label stack of the protection path, by the APS packet outer layer Reserved field replace with the label stack, obtain APS message to be sent.
Step 202: the second endpoint device sends the APS message to first end point equipment on the tunnel SR-TE.
In actual implementation, the tunnel SR-TE that the second endpoint device uses can be protection path, i.e. the second endpoint device The APS message is sent to first end point equipment in protection path.Specifically, label of second endpoint device from the APS message A label is popped up in stack, determines the corresponding link of the label, passes through the link downstream forwarding device in the protection path Send the APS message.
One is popped up when forwarding device in the protection path receives the APS message from the label stack of the APS message Label determines the corresponding link of the label, and by the link, downstream forwarding device sends APS report in the protection path Text, until the APS message to be forwarded to another endpoint device of the protection path, that is, first end point equipment.
It should be understood that the received APS report of upstream forwarding device that first end point equipment in the protection path is adjacent Only one label in the label stack of text is not marked in the label stack of APS message after the upstream forwarding device pops up label Label, APS packet outer layer field is GAL field at this time.
For example, in the example depicted in figure 1, the second endpoint device PE1 is hit by a bullet outgoing label 203 from APS message, determines the mark Link of the 203 corresponding links between forwarding device PE1 and P3 is signed, it should by the link downstream forwarding device P3 transmission APS message.
Forwarding device P3 receives the APS message, is hit by a bullet outgoing label 204 from the label stack of the APS message, determines the label Link of the 204 corresponding links between forwarding device P3 and P4, by the link, downstream forwarding device P4 sends APS report Text.
Forwarding device P4 receives the APS message, is hit by a bullet outgoing label 205 from the label stack of the APS message, at this time in label stack All labels popped up, APS packet outer layer field is GAL field, determine the corresponding link of label 205 be forwarding device P4 Link between PE2, by the link, downstream forwarding device PE2 sends the APS message.
Step 203: first end point equipment receives APS message from the tunnel SR-TE, which carries index information.
Specifically, first end point equipment receives message from the tunnel SR-TE, carries pre- bidding in the GAL field of the message When label, determine that the message is APS message.When network provides Section transmission services, carried in the GAL field of the message pre- When the flag bit field of bidding label and the message carries default flag bit, determine that the message is APS message.
Label stack in the APS message of the adjacent upstream forwarding device forwarding of first end point equipment in the tunnel SR-TE Bullet is empty, so the label for finding that the GAL field of the packet outer layer carries is default after first end point equipment receives the message Label determines that the message is APS message.When network also provides Section transmission services, first end point equipment is finding the report When the label that the GAL field of literary outer layer carries is default label, it can determine that the message is that APS message or Section OAM are reported Text, then the flag bit for judging that the flag bit field in the payload of the message carries determine that the message is if it is default flag bit APS message.
Step 204: the index information that first end point equipment is carried according to the APS message is determined for handling the APS message State machine.
This step can be realized by the following steps, comprising:
2041: the veneer sign of downlink board where first end point equipment obtains the state machine according to the index information, it should The mark of the unit marks and the state machine of message process unit where state machine.
Specifically, first end point equipment can according to the index information, from index information, veneer sign, unit marks with The veneer sign of downlink board where obtaining the state machine in the mapping table of the mark of state machine, message where the state machine The unit marks of processing unit and the mark of the state machine.
The mapping table is configured in advance in first end point equipment.When the index information be it is above-mentioned the first or second When kind form, which can store the three-state content addressing memory (Ternary in first end point equipment Content Addressable Memory, TCAM) in.
When realizing, when the index information is the first above-mentioned form, that is to say, that: the index letter that APS message carries Breath include the tunnel SR-TE mark, first end point equipment TCAM store mapping table be the tunnel SR-TE mark with Corresponding relationship between veneer sign, unit marks and the mark of state machine.When the index information that APS message carries further includes the When the mark of the mark and the second endpoint device of one end point device, it is in the mapping table that the TCAM of first end point equipment is stored These three marks of the mark of the mark of first end point equipment, the mark of the second endpoint device and the tunnel SR-TE and veneer sign, list The corresponding relationship of member mark and state machine identified between these three marks.
The mark in the tunnel SR-TE that first end point equipment is carried according to the APS message, from the tunnel SR-TE that TCAM is stored Mark and veneer sign, unit marks and state machine mark between corresponding relationship in obtain downlink list where the state machine The veneer sign of plate, the mark of the unit marks and the state machine of message process unit where the state machine.When APS message carries Index information further include first end point equipment mark and the second endpoint device mark when, first end point equipment according to this The mark of first end point equipment, the mark of the mark of the second endpoint device and the tunnel SR-TE of APS message carrying, are deposited from TCAM These three marks of the mark of the mark of the first end point equipment of storage, the mark of the second endpoint device and the tunnel SR-TE and veneer mark Downlink board where obtaining the state machine in corresponding relationship between these three marks of the mark of knowledge, unit marks and state machine Veneer sign, the mark of the unit marks and the state machine of message process unit where the state machine.
When the attribute information is above-mentioned second of form, that is to say, that: the index information that APS message carries is default letter Breath is presupposed information and veneer sign, unit marks and state in the mapping table that the TCAM of first end point equipment is stored Corresponding relationship between the mark of machine.
The presupposed information that first end point equipment is carried according to the APS message, from the TCAM presupposed information stored and veneer mark Under being obtained in corresponding relationship between knowledge, unit marks and the mark of state machine where the state machine for handling the APS message The veneer sign of row veneer, the mark of the unit marks and the state machine of message process unit where the state machine.
When the index information is the third above-mentioned form, which can be label and veneer sign, unit Corresponding relationship between mark and the mark of state machine.Under this form, the index information that APS message carries is label, the The label that one end point device is carried according to the APS message, between label and the mark of veneer sign, unit marks and state machine Corresponding relationship in obtain veneer sign for downlink board where handling the state machine of the APS message, where the state machine The unit marks of message process unit and the mark of the state machine.
2042: veneer sign of the first end point equipment according to downlink board where the state machine, message where the state machine The unit marks of processing unit and the mark of the state machine, determine the state machine.
Specifically, first end point equipment determines the downlink board where the state machine according to the veneer sign, according to the list Member mark determines the message process unit where the state machine, according to the mark of the state machine, in the report in the downlink board The state machine is determined in literary processing unit.
Referring to fig. 2-4, first end point equipment includes uplink veneer, cross board and at least one downlink board, uplink veneer It is connected with cross board, cross board is connected with each downlink board at least one downlink board.
Include at least one message process unit in each downlink board, includes at least one in each message process unit State machine.Message process unit can be instruction set, be used to handle the instruction of APS message including at least one, state machine can Think the subclass in the instruction set.
In this step, the index information that the uplink veneer of first end point equipment can be carried according to the APS message, obtains The unit marks and the state machine of message process unit where the veneer sign of downlink board, the state machine where the state machine Mark.The mark of the veneer sign, unit marks and state machine is packaged between uplink veneer and cross board and hands over by uplink veneer Mutual data format, the information after then sending the APS message and encapsulation to cross board again.
Cross board determines the downlink board where the state machine according to the veneer sign, by the APS message, the unit marks The downlink board is sent to the mark of the state machine.The downlink board determines the report where the state machine according to the unit marks Literary processing unit determines the state machine according to the mark of the state machine in the message process unit.
In this step, first end point equipment obtains the state according to the index information of the APS message using uplink veneer The unit marks of message process unit and the mark of the state machine where the veneer sign of downlink board, the state machine where machine, The downlink board where the state machine is determined according to the veneer sign using cross board, reuses the downlink board according to the unit Mark and the mark of the state machine determine the state machine, can execute in actual implementation by under type:
Referring to fig. 2-5, uplink veneer is searched default according to the default label (for example, 13) in APS packet outer layer field The mapping table of label and operation code finds out the default corresponding operation code of label, and the value of the operation code is equal to preset value, Such as preset value can be Drop, index information be extracted from APS message according to the instruction of the operation code, such as extract this The mark in the tunnel SR-TE, according to the mark in the tunnel SR-TE, the veneer of downlink board where the state machine is obtained from TCAM The unit marks of message process unit and the mark of the state machine where mark, the state machine, by the veneer sign, the unit mark Know, the mark of the state machine and APS message are sent to cross board.Cross board determines corresponding downlink according to the veneer sign The unit marks, the mark of the state machine and the APS message are sent to the downlink board according to the unit marks by veneer.It should Downlink board searches the unit marks pair from the mapping table of unit marks and message process unit in the downlink board The message process unit answered is determined according in the mark of the state machine and the corresponding APS state machine table of the message process unit Corresponding state machine, APS state machine table are used to save the mark of state machine and the corresponding relationship of state machine.
Step 205: first end point equipment handles the APS message using the state machine.
It may include the state of the primary tunnel in the tunnel the SR-TE group and the state of protection path in the APS message, One end point device handles the APS message and obtains the state of primary tunnel and the state of protection path, when primary tunnel state and The state of protection path be it is without failure, selection using primary tunnel carrys out transmission services message;When the state of primary tunnel To break down, the state of protection path be it is without failure, service message is switched in protection path and is transmitted.
In the embodiment of the application, since the second endpoint device is between the ACH and payload in the APS message of generation Index information is carried, which will not be ejected during SR-TE tunnel transmission, so that first end point equipment connects The APS message received carries the index information.In this way, first end point equipment can be used for according to index information determination The state machine for handling the APS message is handled the APS message using the state machine, thus successfully to APS message at Reason.
Referring to Fig. 3, the embodiment of the application provides a kind of device 300 of Message processing, which can be figure The part in first end point equipment or first end point equipment in 1 or Fig. 2-1 illustrated embodiment.
The device 300 is for handling the APS message transmitted on the tunnel SR-TE, the endpoint device point at the tunnel SR-TE both ends It Wei the device 300 and the second endpoint device, comprising:
Receiving unit 301, for receiving the APS message of the second endpoint device transmission, APS report from the tunnel SR-TE Text carries index information;
Data processing unit 302, for determining the state machine for handling the APS message according to the index information;Pass through The state machine handles the APS message.
Receiving unit 301 receives message from the tunnel SR-TE first, can carry in the GAL field of the message pre- When the flag bit field of bidding label and the message carries default flag bit, determine that the message is APS message.Detailed implementation It may refer to the related content in the step 203 in embodiment shown in Fig. 2-1, be no longer described in detail herein.
For above-mentioned index information, which includes the mark in the tunnel SR-TE, and further, the index information is also It may include the mark of the device 300 and the mark of second endpoint device;Alternatively, the index information is presupposed information;Alternatively, The index information is that upstream equipment adjacent with the device 300 in the tunnel SR-TE is popped up from the label stack that APS message carries Label.
Wherein, presupposed information can be default value, such as can wait numerical value for 1000 or 2000.About index information It is described in detail, may refer to the related content in the step 201 in Fig. 2-1 illustrated embodiment, be no longer described in detail herein.
In one possible implementation, data processing unit 302 is determined according to the index information for handling the APS The state machine of message, comprising: report where the veneer sign of veneer, the state machine where obtaining the state machine according to the index information The unit marks of literary processing unit and the mark of the state machine;According to the veneer sign, the downlink list where the state machine is determined Plate;According to the unit marks, the message process unit where the state machine is determined in the downlink board;According to the state machine Mark determines the state machine in the message process unit.
The corresponding relationship of the mark of index information and veneer sign, unit marks and state machine is stored in the device 300 Table.
Data processing unit 302 is according to the index information, veneer where the state machine is obtained from the mapping table The unit marks of message process unit and the mark of the state machine where veneer sign, the state machine.
Wherein, data processing unit 302 obtains the detailed process of operation and the detailed description of the corresponding relationship and can join See the related content in the step 204 in Fig. 2-1 illustrated embodiment, is no longer described in detail herein.
Wherein, which is located at after the ACH of APS message and before payload.
It may refer to Fig. 2-1 about the structure of APS message, and in the content how APS message carries the index information Related content in step 201 in illustrated embodiment, is no longer described in detail herein.
In the embodiment of the application, due to carrying index information between the ACH and payload in APS message, this The sample index information will not be ejected during SR-TE tunnel transmission, so that the APS message that receiving unit receives is taken With the index information.In this way, data processing unit can obtain the shape for handling the APS message according to the index information State machine is handled the APS message using the state machine, to successfully handle APS message.
Referring to fig. 4, the embodiment of the application provides a kind of device 400 of Message processing, which can be figure The part in the second endpoint device or the second endpoint device in 1 or Fig. 2-1 illustrated embodiment.
The device 400 is for handling the APS message transmitted on the tunnel SR-TE, the endpoint device point at the tunnel SR-TE both ends It Wei first end point equipment and the device 400, comprising:
Data processing unit 401, for generating APS message, which carries index information;
Transmission unit 402, for sending the APS message to first end point equipment by the tunnel SR-TE, so that first Endpoint device can determine the state machine for handling APS message according to the index information.
Data processing unit 401 can increase newer field between the ACH and payload of APS message, be taken using the newer field With the index information.
It may refer to figure about the detailed process of the generation APS message of data processing unit 401 and the structure of the APS message The related content that APS message and APS message structure are generated in 2-1 illustrated embodiment, is no longer described in detail herein.
Wherein, which includes the mark in the tunnel SR-TE, and further, which can also include the dress Set 300 mark and the mark of second endpoint device;Alternatively, the index information is presupposed information;Alternatively, the index information is The label that the upstream equipment adjacent with first end point equipment is popped up from the label stack that APS message carries in the tunnel SR-TE.
Wherein, which is located at after the association channel head ACH of APS message and before payload.
In the embodiment of the application, data processing unit generates APS message, which carries index information;Hair Unit is sent to send the APS message to first end point equipment by the tunnel SR-TE, so that first end point equipment can be according to the rope Fuse breath determines the state machine for handling APS message.Since first end point equipment has determined state machine, so as to by being somebody's turn to do State machine handles APS message, realizes the processing to APS message.
Fig. 5 is that a kind of another schematic diagram of the device 500 of Message processing is provided according to one embodiment of the application.The device 500 can be the first end point equipment in Fig. 1 or Fig. 2-1 embodiment, can be used for executing method shown in Fig. 2-1.
As shown in figure 5, the device 500 is used to handle the APS message transmitted on the tunnel SR-TE, the tunnel SR-TE both ends Endpoint device is respectively the device 500 and the second endpoint device, comprising:
Input interface 501 and processor 502 can pass through bus system between the input interface 501 and processor 502 503 are connected;
Input interface 501, for receiving the APS message of the second endpoint device transmission, the APS message from the tunnel SR-TE Carry index information;
Processor 502 passes through the state for determining the state machine for handling the APS message according to the index information Machine handles the APS message.
Input interface 501 receives message from the tunnel SR-TE first, can carry in the GAL field of the message pre- When the flag bit field of bidding label and the message carries default flag bit, determine that the message is APS message.Detailed implementation It may refer to the related content in the step 203 in embodiment shown in Fig. 2-1, be no longer described in detail herein.
For above-mentioned index information, which includes the mark in the tunnel SR-TE, and optionally, which may be used also To include the mark of the device 500 and the mark of second endpoint device;Alternatively, the index information is presupposed information;Alternatively, should Index information is what upstream equipment adjacent with the device 500 in the tunnel SR-TE was popped up from the label stack that APS message carries Label.
In one possible implementation, processor 502 is determined according to the index information for handling the APS message State machine, comprising: Message processing where the veneer sign of veneer, the state machine where obtaining the state machine according to the index information The unit marks of unit and the mark of the state machine;According to the veneer sign, the downlink board where the state machine is determined;According to The unit marks determine the message process unit where the state machine in the downlink board;According to the mark of the state machine, The state machine is determined in the message process unit.
The corresponding relationship of the mark of index information and veneer sign, unit marks and state machine is stored in the device 500 Table.
Processor 502 is according to the index information, the veneer mark of veneer where the state machine is obtained from the mapping table Know, the unit marks of message process unit and the mark of the state machine where the state machine.
Wherein, processor 502 obtains the detailed process of operation and the detailed description of the corresponding relationship may refer to Fig. 2- The related content in step 204 in 1 illustrated embodiment, is no longer described in detail herein.
Wherein, which is located at after the ACH of APS message and before payload.
It may refer to Fig. 2-1 about the structure of APS message, and in the content how APS message carries the index information Related content in step 201 in illustrated embodiment, is no longer described in detail herein.
In the embodiment of the application, due to carrying index information between the ACH and payload in APS message, this The sample index information will not be ejected during SR-TE tunnel transmission, so that the APS message that input interface receives is taken With the index information.In this way, processor can obtain the state machine for handling the APS message according to the index information, The APS message is handled using the state machine, to successfully handle APS message.
Fig. 6 is that a kind of another schematic diagram of the device 600 of Message processing is provided according to one embodiment of the application.The device 600 can be the second endpoint device in Fig. 1 or Fig. 2-1 embodiment, can be used for executing method shown in Fig. 2-1.
As shown in fig. 6, the device 600 is used to handle the APS message transmitted on the tunnel SR-TE, the tunnel SR-TE both ends Endpoint device is respectively first end point equipment and the device 600, comprising:
Output interface 601 and processor 602 can pass through bus system 603 between output interface 601 and processor 602 It is connected.
Processor 602, for generating APS message, which carries index information;
Output interface 601, for sending the APS message to first end point equipment by the tunnel SR-TE, so that first Endpoint device can determine the state machine for handling APS message according to the index information.
Processor 602 can increase newer field between the ACH and payload of APS message, carry the rope using the newer field Fuse breath.
It may refer to Fig. 2-1 institute about the detailed process of the generation APS message of processor 602 and the structure of the APS message Show the related content for generating APS message and APS message structure in embodiment, is no longer described in detail herein.
Wherein, which includes the mark in the tunnel SR-TE, and optionally, which can also include the device The mark of 300 mark and second endpoint device;Alternatively, the index information is presupposed information;Alternatively, the index information is The label that the upstream equipment adjacent with first end point equipment is popped up from the label stack that APS message carries in the tunnel SR-TE.
Wherein, which is located at after the association channel head ACH of APS message and before payload.
In the embodiment of the application, data processing unit generates APS message, which carries index information;Hair Unit is sent to send the APS message to first end point equipment by the tunnel SR-TE, so that first end point equipment can be according to the rope Fuse breath determines the state machine for handling APS message.Since first end point equipment has determined state machine, so as to by being somebody's turn to do State machine handles APS message, realizes the processing to APS message.
Present invention also provides a kind of systems 800 of Message processing, including device described in Fig. 3 or Fig. 5 and Fig. 4 or figure Device described in 6.It can be first end point equipment 701, device described in Fig. 4 or 6 referring to device described in Fig. 7, Fig. 3 or Fig. 5 It can be second end point device 702.The method that the system 700 is used to execute the corresponding embodiment of Fig. 2-1.
It should be understood that the device of Message processing provided by the above embodiment is when handling message, only with above-mentioned each function Can unit division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions Unit is completed, i.e., the internal structure of device is divided into different functional units, described above all or part of to complete Function.In addition, the device of Message processing provided by the above embodiment and the embodiment of the method for Message processing belong to same design, Specific implementation process is detailed in embodiment of the method, and which is not described herein again.
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..

Claims (22)

1. a kind of method of Message processing, which is characterized in that the method is for handling in the tunnel section routing traffic engineering SR-TE The automatic protection switching APS message of upper transmission, the endpoint device at the tunnel SR-TE both ends are respectively first end point equipment and Two endpoint devices, comprising:
The first end point equipment receives the APS message that second endpoint device is sent from the tunnel SR-TE, described APS message carries index information;
The first end point equipment determines the state machine for handling the APS message according to the index information;
The first end point equipment handles the APS message by the state machine.
2. the method as described in claim 1, which is characterized in that the index information includes the mark in the tunnel SR-TE;Or Person, the index information are presupposed information;Alternatively, the index information is to set in the tunnel SR-TE with the first end point The label that standby adjacent upstream equipment is popped up from the label stack that the APS message carries.
3. method according to claim 1 or 2, which is characterized in that described to be determined according to the index information for handling State the state machine of APS message, comprising:
Where the veneer sign of downlink board, the state machine where obtaining the state machine according to the index information at message Manage the unit marks of unit and the mark of the state machine;
According to the veneer sign, the downlink board where the state machine is determined;
According to the unit marks, the message process unit where the state machine is determined in the downlink board;
According to the mark of the state machine, the state machine is determined in the message process unit.
4. the method as described in any one of claims 1 to 3 claim, which is characterized in that the index information is located at described After the association channel head ACH of APS message and before payload.
5. a kind of method of Message processing, which is characterized in that the method is for handling in the tunnel section routing traffic engineering SR-TE The automatic protection switching APS message of upper transmission, the endpoint device at the tunnel SR-TE both ends are respectively first end point equipment and Two endpoint devices, comprising:
Second endpoint device generates APS message, and the APS message carries index information;
Second endpoint device sends the APS message to the first end point equipment by the tunnel SR-TE, so that The first end point equipment can determine the state machine for handling the APS message according to the index information.
6. method as claimed in claim 5, which is characterized in that the index information includes the mark in the tunnel SR-TE;Or Person, the index information are presupposed information;Alternatively, the index information is to set in the tunnel SR-TE with the first end point The label that standby adjacent upstream equipment is popped up from the label stack that the APS message carries.
7. such as method described in claim 5 or 6, which is characterized in that the association that the index information is located at the APS message is logical After trace header ACH and before payload.
8. a kind of device of Message processing, which is characterized in that described device is for handling in the tunnel section routing traffic engineering SR-TE The automatic protection switching APS message of upper transmission, the endpoint device at the tunnel SR-TE both ends is respectively described device and second end Point device, comprising:
Receiving unit, the APS message sent for receiving second endpoint device from the tunnel SR-TE, the APS report Text carries index information;
Data processing unit, for determining the state machine for handling the APS message according to the index information, by described The state machine processing APS message.
9. device as claimed in claim 8, which is characterized in that the index information includes the mark in the tunnel SR-TE;Or Person, the index information are presupposed information;Alternatively, the index information is adjacent with described device in the tunnel SR-TE The label that upstream equipment is popped up from the label stack that the APS message carries.
10. device as claimed in claim 8 or 9, which is characterized in that described to be determined according to the index information for handling State the state machine of APS message, comprising:
Where the veneer sign of downlink board, the state machine where obtaining the state machine according to the index information at message Manage the unit marks of unit and the mark of the state machine;According to the veneer sign, the downlink where the state machine is determined Veneer;According to the unit marks, the message process unit where the state machine is determined in the downlink board;According to institute The mark for stating state machine determines the state machine in the message process unit.
11. the device as described in any one of claim 8 to 10 claim, which is characterized in that the index information is located at institute The association channel head ACH of APS message is stated later and before payload.
12. a kind of device of Message processing, which is characterized in that described device is for handling in section routing traffic engineering SR-TE tunnel The automatic protection switching APS message transmitted on road, the endpoint device at the tunnel SR-TE both ends be respectively first end point equipment and Described device, comprising:
Data processing unit, for generating APS message, the APS message carries index information;
Transmission unit, for sending the APS message to the first end point equipment by the tunnel SR-TE, so that institute State machine for handling the APS message can be determined according to the index information by stating first end point equipment.
13. device as claimed in claim 12, which is characterized in that the index information includes the mark in the tunnel SR-TE; Alternatively, the index information is presupposed information;Alternatively, the index information be the tunnel SR-TE in the first end point The label that the adjacent upstream equipment of equipment is popped up from the label stack that the APS message carries.
14. device as described in claim 12 or 13, which is characterized in that the index information is located at the pass of the APS message After connection trace header ACH and before payload.
15. a kind of device of Message processing, which is characterized in that described device is for handling in section routing traffic engineering SR-TE tunnel The automatic protection switching APS message transmitted on road, the endpoint device at the tunnel SR-TE both ends is respectively described device and second Endpoint device, comprising:
Input interface and processor;
The input interface, the APS message sent for receiving second endpoint device from the tunnel SR-TE are described APS message carries index information;
The processor passes through the shape for determining the state machine for handling the APS message according to the index information The state machine processing APS message.
16. device as claimed in claim 15, which is characterized in that the index information includes the mark in the tunnel SR-TE; Alternatively, the index information is presupposed information;Alternatively, the index information is adjacent with described device in the tunnel SR-TE The label that is popped up from the label stack that the APS message carries of upstream equipment.
17. the device as described in claim 15 or 16, which is characterized in that described to be determined according to the index information for handling The state machine of the APS message, comprising:
Where the veneer sign of downlink board, the state machine where obtaining the state machine according to the index information at message Manage the unit marks of unit and the mark of the state machine;According to the veneer sign, the downlink where the state machine is determined Veneer;According to the unit marks, the message process unit where the state machine is determined in the downlink board;According to institute The mark for stating state machine determines the state machine in the message process unit.
18. the device as described in any one of claim 15 to 17 claim, which is characterized in that the index information is located at institute The association channel head ACH of APS message is stated later and before payload.
19. a kind of device of Message processing, which is characterized in that described device is for handling in section routing traffic engineering SR-TE tunnel The automatic protection switching APS message transmitted on road, the endpoint device at the tunnel SR-TE both ends be respectively first end point equipment and Described device, comprising:
Output interface and processor;
The processor, for generating APS message, the APS message carries index information;
The output interface, for sending the APS message to the first end point equipment by the tunnel SR-TE, so that The state machine for handling the APS message can be determined according to the index information by obtaining the first end point equipment.
20. device as claimed in claim 19, which is characterized in that the index information includes the mark in the tunnel SR-TE; Alternatively, the index information is presupposed information;Alternatively, the index information be the tunnel SR-TE in the first end point The label that the adjacent upstream equipment of equipment is popped up from the label stack that the APS message carries.
21. the device as described in claim 19 or 20, which is characterized in that the index information is located at the pass of the APS message After connection trace header ACH and before payload.
22. a kind of computer readable storage medium, which is characterized in that including instruction, when described instruction is run in endpoint device When, so that the endpoint device executes the method as described in claim 1-7 any one.
CN201710526828.4A 2017-06-30 2017-06-30 Message processing method and device Active CN109218176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710526828.4A CN109218176B (en) 2017-06-30 2017-06-30 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710526828.4A CN109218176B (en) 2017-06-30 2017-06-30 Message processing method and device

Publications (2)

Publication Number Publication Date
CN109218176A true CN109218176A (en) 2019-01-15
CN109218176B CN109218176B (en) 2020-12-15

Family

ID=64961280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710526828.4A Active CN109218176B (en) 2017-06-30 2017-06-30 Message processing method and device

Country Status (1)

Country Link
CN (1) CN109218176B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478845A (en) * 2020-02-29 2020-07-31 新华三信息安全技术有限公司 Protection switching method and provider network edge device
CN112468394A (en) * 2019-09-09 2021-03-09 中国移动通信有限公司研究院 Protection switching method, node equipment and storage medium
CN112929261A (en) * 2019-12-05 2021-06-08 中兴通讯股份有限公司 Fiber breakage preventing method and device for segmented routing tunnel, entrance node and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7212495B2 (en) * 2001-02-21 2007-05-01 Polytechnic University Signaling for reserving a communications path
CN101267402A (en) * 2008-05-08 2008-09-17 北京邮电大学 Dual-label transmission and control mechanism based on T-MPLS
CN102172016A (en) * 2008-10-02 2011-08-31 索尼公司 Multi-coded content substitution
CN103023770A (en) * 2011-09-21 2013-04-03 中兴通讯股份有限公司 Method and device for protecting ring network
US20140160918A1 (en) * 2012-12-11 2014-06-12 Hewlett-Packard Development Company, L.P. Identifying a label-switched path (lsp) associated with a multi protocol label switching (mpls) service and diagnosing a lsp related fault
US20150023149A1 (en) * 2013-07-19 2015-01-22 Fujitsu Limited Communication system and transfer apparatus
CN105471599A (en) * 2014-08-15 2016-04-06 中兴通讯股份有限公司 Protection switching method and network device
CN105591898A (en) * 2014-10-21 2016-05-18 中兴通讯股份有限公司 Tunnel protection method and tunnel protection device based on shared tunnels
CN106126472A (en) * 2016-06-20 2016-11-16 中国航天科技集团公司第九研究院第七七研究所 A kind of control structure realizing static state and dynamic memory controller access seamless switching
CN106165356A (en) * 2014-02-13 2016-11-23 洛克波特网络股份有限公司 The method of routing packets in distributed direct interference networks
US20170033939A1 (en) * 2015-07-28 2017-02-02 Ciena Corporation Multicast systems and methods for segment routing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7212495B2 (en) * 2001-02-21 2007-05-01 Polytechnic University Signaling for reserving a communications path
CN101267402A (en) * 2008-05-08 2008-09-17 北京邮电大学 Dual-label transmission and control mechanism based on T-MPLS
CN102172016A (en) * 2008-10-02 2011-08-31 索尼公司 Multi-coded content substitution
CN103023770A (en) * 2011-09-21 2013-04-03 中兴通讯股份有限公司 Method and device for protecting ring network
US20140160918A1 (en) * 2012-12-11 2014-06-12 Hewlett-Packard Development Company, L.P. Identifying a label-switched path (lsp) associated with a multi protocol label switching (mpls) service and diagnosing a lsp related fault
US20150023149A1 (en) * 2013-07-19 2015-01-22 Fujitsu Limited Communication system and transfer apparatus
CN106165356A (en) * 2014-02-13 2016-11-23 洛克波特网络股份有限公司 The method of routing packets in distributed direct interference networks
CN105471599A (en) * 2014-08-15 2016-04-06 中兴通讯股份有限公司 Protection switching method and network device
CN105591898A (en) * 2014-10-21 2016-05-18 中兴通讯股份有限公司 Tunnel protection method and tunnel protection device based on shared tunnels
US20170033939A1 (en) * 2015-07-28 2017-02-02 Ciena Corporation Multicast systems and methods for segment routing
CN106126472A (en) * 2016-06-20 2016-11-16 中国航天科技集团公司第九研究院第七七研究所 A kind of control structure realizing static state and dynamic memory controller access seamless switching

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
C.FILSFILS,ET AL: "Segment Routing Architecture", 《DRAFT-IETF-SPRING-SEGMENT-ROUTING-09》 *
RANDEEP BHATIA;FANG HAO;MURALI KODIALAM;T.V. LAKSHMAN: "Optimized network traffic engineering using segment routing", 《2015 IEEE CONFERENCE ON COMPUTER COMMUNICATIONS (INFOCOM)》 *
何晓明;卢泉;邢亮: "分段路由网络研究及其在流量工程中的应用", 《电信科学》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468394A (en) * 2019-09-09 2021-03-09 中国移动通信有限公司研究院 Protection switching method, node equipment and storage medium
CN112468394B (en) * 2019-09-09 2022-09-27 中国移动通信有限公司研究院 Protection switching method, node equipment and storage medium
CN112929261A (en) * 2019-12-05 2021-06-08 中兴通讯股份有限公司 Fiber breakage preventing method and device for segmented routing tunnel, entrance node and storage medium
WO2021109997A1 (en) * 2019-12-05 2021-06-10 中兴通讯股份有限公司 Anti-fiber breakage method and device for segment routing tunnel, ingress node and storage medium
CN112929261B (en) * 2019-12-05 2024-03-12 中兴通讯股份有限公司 Fiber breakage prevention method and device for segmented routing tunnel, entry node and storage medium
CN111478845A (en) * 2020-02-29 2020-07-31 新华三信息安全技术有限公司 Protection switching method and provider network edge device

Also Published As

Publication number Publication date
CN109218176B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
US10862732B2 (en) Enhanced network virtualization using metadata in encapsulation header
CN104410541B (en) The method and device that VXLAN internal layer virtual machine traffics are counted in intermediary switch
CN109873760A (en) Handle the method and apparatus of routing and the method and apparatus of data transmission
CN107682284A (en) Send the method and the network equipment of message
US11368357B2 (en) Service fault locating method and apparatus
WO2018121397A1 (en) Network traffic control method and switch device
CN106685903B (en) SDN-based data transmission method, SDN controller and SDN system
CN108337192B (en) Message communication method and device in cloud data center
CN105610710A (en) Methods and apparatus for standard protocol validation mechanisms deployed over switch fabric system
CN105024985A (en) Message processing method and apparatus
CN106685826A (en) Interchanger stacking system, slave unit, switching chip and method for processing protocol message
US8934335B2 (en) System and method for enhancing loop free alternative coverage
CN112787913B (en) Intelligent network card assembly, physical machine, cloud service system and message sending method
CN109218176A (en) A kind of method and device of Message processing
CN109525501A (en) A kind of method and apparatus adjusting forward-path
CN107682275A (en) Monitoring messages method and device
CN101969404A (en) Method and equipment for processing messages
CN102263700B (en) Method, device and system for sending and receiving messages
CN104219160B (en) Generate the method and apparatus of input parameter
CN103281244B (en) A kind of service bearer method and device of multi-protocol label switching network
CN104426686B (en) Broad access network gate user access method, device and broad access network gate
EP3731497A1 (en) Service processing method and network device
CN111447131B (en) Message de-encapsulation method and device and message encapsulation method and device
CN107204896A (en) Handle method, device and the VTEP equipment of VXLAN messages
CN106230740A (en) Message forwarding method in a kind of VXLAN 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