CN108337169A - A kind of information query method and provider edge router - Google Patents

A kind of information query method and provider edge router Download PDF

Info

Publication number
CN108337169A
CN108337169A CN201711484997.2A CN201711484997A CN108337169A CN 108337169 A CN108337169 A CN 108337169A CN 201711484997 A CN201711484997 A CN 201711484997A CN 108337169 A CN108337169 A CN 108337169A
Authority
CN
China
Prior art keywords
vpws
deployment information
information
opposite end
stored
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
CN201711484997.2A
Other languages
Chinese (zh)
Other versions
CN108337169B (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201711484997.2A priority Critical patent/CN108337169B/en
Publication of CN108337169A publication Critical patent/CN108337169A/en
Application granted granted Critical
Publication of CN108337169B publication Critical patent/CN108337169B/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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The embodiment of the invention discloses a kind of information query method and provider edge routers (PE), including:PE obtains the inquiry instruction of the deployment information for destination virtual private leased circuit service (VPWS);The deployment information of target VPWS is inquired in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition;Wherein, deployment information includes local terminal deployment information and opposite end deployment information.From the embodiment of the present invention, since the local terminal deployment information and opposite end deployment information of VPWS are pre-stored, therefore PE can inquire the local terminal deployment information and opposite end deployment information of target VPWS according to inquiry instruction in the deployment information stored, recognize the deployment scenario of end-to-end VPWS private line services in network in a manner of simple and fast thereby using family.

Description

A kind of information query method and provider edge router
Technical field
The present invention relates to field of communication technology more particularly to a kind of information query methods and provider edge router.
Background technology
With the high speed development of internet, operator has used a large amount of MPLS (Multi-Protocol in a network Label Switching, multiprotocol label switching) technology, to meet user to information transmission safety, real-time, high bandwidth With the needs of convenience.MPLS is a kind of system of fast exchange and routing, it is between network layer and data link layer, often It is referred to as 2.5 layers of technology.Virtual Private Line service (Virtual Private Wire Service, VPWS) is MPLS technology system In most widely used two-layer virtual private network (Level 2Virtual Private Network, L2VPN) technology, VPWS It is to build on the basis of MPLS network, in a pair of two provider edge routers (Provider Edge, PE) equipment Two layers of transparent transmission of high speed are provided between port.In practical applications, operator needs to safeguard a large amount of private line service.Current In MPLS network, common maintenance service is operation and maintenance management (the The Operation of multiprotocol label switching transmission application Administration and Maintenance of Multi-Protocol Label Switching Transport Profile, MPLS-TP OAM).
However, MPLS-TP OAM can be only used for fault detect and fault location, and user's awareness network middle-end can not be made To the deployment scenario of end VPWS private line services.
Invention content
In order to solve the above technical problem, the present invention provides a kind of information query method and provider edge router, energy User is enough set to recognize the deployment scenario of end-to-end VPWS private line services in network in a manner of simple and fast.
In order to reach the object of the invention, the present invention provides a kind of information query methods, including:
PE obtains the inquiry instruction of the deployment information for target VPWS;
Inquire the target VPWS's in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition Deployment information;Wherein, the deployment information includes local terminal deployment information and opposite end deployment information.
Before the PE obtains the inquiry instruction for the information of target VPWS, further include:
The PE obtains the local terminal deployment information with the opposite end PE VPWS established according to predetermined period;
The local terminal deployment information of the VPWS obtained is sent to the opposite end PE according to the predetermined period;
Receive the opposite end deployment information for the VPWS that the opposite end PE is sent;
The deployment information of stored VPWS is updated according to the deployment information of the VPWS of acquisition.
The deployment information of the VPWS includes keyword message;Wherein, the keyword message includes Tag switching routing The identification number (Label Switching Router Identification, LSR-ID) and Identifier of the virtual connection number of device (Virtual Connect Identification, VC-ID);The deployment information update of the VPWS according to acquisition is stored VPWS deployment information, including:
Judge that the keyword message in the deployment information of the VPWS obtained whether there is in the deployment of the VPWS stored to believe In breath;
If the keyword message in the deployment information of the VPWS obtained is present in the deployment information of stored VPWS, Judge whether the local terminal deployment information of the VPWS obtained is identical as the local terminal deployment information of VPWS stored, and the VPWS obtained Opposite end deployment information it is whether identical as the opposite end deployment information of VPWS stored;
If the local terminal deployment information and the local terminal deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The local terminal deployment information of the VPWS obtained updates the local terminal deployment information of stored VPWS;
If the opposite end deployment information and the opposite end deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The opposite end deployment information of the VPWS obtained updates the opposite end deployment information of stored VPWS;
If the keyword message in the deployment information of the VPWS obtained is not present in the deployment information of stored VPWS In, the local terminal deployment information of the VPWS of acquisition is added in the local terminal deployment information of stored VPWS, and by acquisition The opposite end deployment information of VPWS be added to stored VPWS in client information.
The deployment information of the VPWS is included in MPLS messages, and the MPLS messages carry default control field, and When the value of default control field is preset value, includes deployment information in the MPLS messages that instruction receiving terminal receives and trigger Receiving terminal obtains deployment information therein, when the value of default control field is not preset value, according to the MPLS messages received In purpose label be forwarded or handle;The local terminal deployment information of the VPWS obtained is sent to opposite end PE according to predetermined period, Including:
The first of the local terminal deployment information for carrying the VPWS is sent to the opposite end PE according to the predetermined period MPLS messages;Wherein, the value of the default control field carried in the first MPLS messages is the preset value;
The opposite end deployment information for receiving the VPWS that opposite end PE is sent, including:
Receive the 2nd MPLS messages that the opposite end PE is sent;
Obtain the value for the default control field that the 2nd MPLS messages carry;
Judge whether the value of the default control field obtained is the preset value;
If the value of the default control field obtained is the preset value, it is described to determine that the 2nd MPLS messages carry The opposite end deployment information of VPWS, and obtain the opposite end deployment information of the VPWS wherein carried.
The default control field is channel type control field in pseudo-wire (Pseudo Wire, PW) control word.
The MPLS messages are Link Layer Discovery Protocol (the Link Layer Discovery encapsulated with MPLS formats Protocol, LLDP) frame, and the deployment information is by the Link Layer Discovery Protocol data cell (Link in the LLDP frames Layer Discovery Protocol Data Unit, LLDPDU) it carries.
The deployment information of the VPWS includes:The MPLS section informations of the VPWS, the port section information of the VPWS With the VLAN section informations of the VPWS.
The MPLS section informations of the VPWS are included in first kind length value (Type-Length-Value, TLV), The port level information of the VPWS is included in the second TLV, and the VLAN section informations of the VPWS are included in the 3rd TLV; First TLV, the 2nd TLV and the 3rd TLV are included in the MPLS messages.
The MPLS section informations of the VPWS include:LSR-ID, VC-ID and device name;The port layer of the VPWS Face information includes:Business extracts the description information that interface number, the state of business extraction interface and the business extract interface; The VLAN section informations of the VPWS include:Outside VLAN information and inner VLAN information.
The present invention also provides a kind of provider edge routers, including:
Acquisition module, the inquiry instruction for obtaining the deployment information for target VPWS;
Processing module, described in being inquired in the deployment information of the pre-stored VPWS of PE according to the inquiry instruction of acquisition The deployment information of target VPWS;Wherein, the deployment information includes local terminal deployment information and opposite end deployment information.
Further include:
Sending module, the local terminal deployment information for sending the VPWS obtained to opposite end PE according to predetermined period;
Receiving module, the opposite end deployment information for receiving the VPWS that the opposite end PE is sent;
Memory module, the deployment information for updating stored VPWS according to the deployment information of the VPWS of acquisition;
The acquisition module is additionally operable to obtain to dispose with the local terminal of the opposite end PE VPWS established according to predetermined period to believe Breath.
The deployment information of the VPWS includes keyword message;Wherein, the keyword message includes LSR-ID and VC- ID;The memory module is specifically used for:
Judge that the keyword message in the deployment information of the VPWS obtained whether there is in the deployment of the VPWS stored to believe In breath;
If the keyword message in the deployment information of the VPWS obtained is present in the deployment information of stored VPWS, Judge whether the local terminal deployment information of the VPWS obtained is identical as the local terminal deployment information of VPWS stored, and the VPWS obtained Opposite end deployment information it is whether identical as the opposite end deployment information of VPWS stored;
If the local terminal deployment information and the local terminal deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The local terminal deployment information of the VPWS obtained updates the local terminal deployment information of stored VPWS;
If the opposite end deployment information and the opposite end deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The opposite end deployment information of the VPWS obtained updates the opposite end deployment information of stored VPWS;
If the keyword message in the deployment information of the VPWS obtained is not present in the deployment information of stored VPWS In, the local terminal deployment information of the VPWS of acquisition is added in the local terminal deployment information of stored VPWS, and by acquisition The opposite end deployment information of VPWS be added to stored VPWS in client information.
The deployment information of the VPWS is included in MPLS messages, and the MPLS messages carry default control field, and When the value of the default control field is preset value, in the MPLS messages that receive of instruction receiving terminal include deployment information simultaneously It triggers receiving terminal and obtains deployment information therein, when the value of the default control field is not the preset value, according to reception To MPLS messages in purpose label be forwarded or handle;
The sending module, specifically for carrying the VPWS's to opposite end PE transmissions according to the predetermined period First MPLS messages of local terminal deployment information;Wherein, the value of the default control field carried in the first MPLS messages is institute State preset value;
The receiving module, is specifically used for:
Receive the 2nd MPLS messages that the opposite end PE is sent;
Obtain the value for the default control field that the 2nd MPLS messages carry;
Judge whether the value of the default control field obtained is the preset value;
If the value of the default control field obtained is the preset value, it is described to determine that the 2nd MPLS messages carry The opposite end deployment information of VPWS and the opposite end deployment information for obtaining the VPWS wherein carried.
The default control field is channel type control field in PW control words.
The MPLS messages are the LLDP frames encapsulated with MPLS formats, and the deployment information is by the LLDP frames LLDPDU is carried.
The deployment information of the VPWS includes:The MPLS section informations of the VPWS, the port section information of the VPWS With the VLAN section informations of the VPWS.
The MPLS section informations of the VPWS are included in the first TLV, and the port level information of the VPWS is included in the In two TLV, the VLAN section informations of the VPWS are included in the 3rd TLV;First TLV, the 2nd TLV and described Three TLV are included in the MPLS messages.
The MPLS section informations of the VPWS include:LSR-ID, VC-ID and device name;The port layer of the VPWS Face information includes:Business extracts the description information that interface number, the state of business extraction interface and the business extract interface; The VLAN section informations of the VPWS include:Outside VLAN information and inner VLAN information.
Compared with prior art, the present invention includes at least the inquiry instruction for the deployment information that PE is obtained for target VPWS; The deployment information of target VPWS is inquired in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition;Its In, deployment information includes local terminal deployment information and opposite end deployment information.From technical solution provided by the invention as it can be seen that due to VPWS Local terminal deployment information and opposite end deployment information be pre-stored, therefore PE can be according to inquiry instruction in the deployment stored The local terminal deployment information and opposite end deployment information that target VPWS is inquired in information, are understood thereby using family in a manner of simple and fast The deployment scenario of end-to-end VPWS private line services in network is arrived.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and is obtained in claim and attached drawing.
Description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram of information query method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another information query method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another information query method provided in an embodiment of the present invention;
Fig. 4 is the VPWS schematic diagram of a scenario that the embodiment of the present invention is supplied to;
Fig. 5 is the structural schematic diagram of the first TLV provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the 2nd TLV provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the 3rd TLV provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of MPLS messages provided in an embodiment of the present invention;
Fig. 9 is the transmission process schematic diagram of MPLS messages provided in an embodiment of the present invention;
Figure 10 is the receive process schematic diagram of MPLS messages provided in an embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of PE provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of another kind PE provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature mutually can arbitrarily combine.
The embodiment of the present invention provides a kind of information query method, as shown in Figure 1, this method includes:
Step 101, PE obtain the inquiry instruction of the deployment information for target VPWS.
Wherein, deployment information includes local terminal deployment information and opposite end deployment information.
Specifically, deployment information when establishing VPWS on PE that local terminal deployment information refers to, opposite end deployment information refer to Deployment information when establishing VPWS on the opposite end of PE.
Step 102 inquires target according to the inquiry instruction of acquisition in the deployment information of itself pre-stored VPWS The deployment information of VPWS.
Specifically, the deployment information of pre-stored VPWS may be the deployment information of a VPWS, it is also possible to a plurality of The deployment information of VPWS, when VPWS is a plurality of, it is assumed that when being N, target VPWS may be one in this plurality of VPWS, also may be used Can be the M items in this N item, wherein M≤N.
The information query method that the embodiment of the present invention is provided, the inquiry that PE obtains the deployment information for being directed to target VPWS refer to It enables;The deployment information of target VPWS is inquired in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition; Wherein, deployment information includes local terminal deployment information and opposite end deployment information.From technical solution provided by the invention as it can be seen that due to The local terminal deployment information and opposite end deployment information of VPWS is pre-stored, therefore PE can stored according to inquiry instruction The local terminal deployment information and opposite end deployment information that target VPWS is inquired in deployment information, thereby using family in a manner of simple and fast The deployment scenario of end-to-end VPWS private line services in network is recognized.
The embodiment of the present invention provides another information query method, as shown in Fig. 2, this method includes:
Step 201, PE obtain the local terminal deployment information with the opposite end PE VPWS established according to predetermined period.
It should be noted that being established between PE and opposite end PE has VPWS, the sheet for the VPWS established with opposite end PE that PE is obtained End deployment information refers to deployment informations of the VPWS on PE rather than on the PE of opposite end.
Step 202, the local terminal deployment information for sending the VPWS obtained to opposite end PE according to predetermined period.
It should be noted that sending the local terminal deployment information of the VPWS obtained to opposite end PE, these deployment informations are for right Belong to opposite end for the PE of end, therefore opposite end PE is upon receipt, as the opposite ends the VPWS deployment information established.
Step 203, the opposite end deployment information for receiving the VPWS that opposite end PE is sent.
It should be noted that the opposite end deployment information of VPWS is for PE, which carrys out opposite end PE Say be opposite end PE when establishing VPWS local terminal deployment information.Opposite end PE refers to the opposite end of PE, it may be an equipment, also may be used Can be multiple devices, if PE is PE 1, the opposite equip. of PE 1 is PE 2 and PE 3, then opposite end PE is PE 2 and PE 3, The opposite end deployment information for so receiving the VPWS that opposite end PE is sent refers to:Receive the opposite end deployment letter for the VPWS that PE 2 is sent Breath receives the opposite end deployment information for the VPWS that PE 3 is sent;The opposite end deployment information for the VPWS that wherein PE 2 is sent be PE 2 with The opposite end deployment information of deployment information when PE 1 establishes VPWS on PE 2, the VPWS that PE 3 is sent is that PE 3 and PE 1 is established Deployment information when VPWS on PE 3.
Specifically, as an example it is assumed that PE 1 and PE 2 establishes three VPWS, respectively VPWS1, VPWS 2 and VPWS 3, establish two VPWS, respectively VPWS 4 and VPWS 5 with PE 3.So PE 1 acquisition establish VPWS 1, VPWS 2, Deployment information when VPWS 3, VPWS 4 and VPWS 5 on PE 1 is as local terminal deployment information;PE 2 acquisition establish VPWS 1, Deployment information when VPWS 2 and VPWS 3 on PE 2 is then sent to PE 1, and PE 1 is as VPWS 1, VPWS 2 and VPWS 3 opposite end deployment information;PE 3 obtains the deployment information on PE 3 when establishing VPWS 4 and VPWS 5, is then sent to PE 1, the PE 1 opposite end deployment information as VPWS 4 and VPWS 5.
Step 204, the deployment information that stored VPWS is updated according to the deployment information of the VPWS of acquisition.
It should be noted that the deployment information of the VPWS stored be according to last time obtain VPWS deployment information more The deployment information of the VPWS obtained after the deployment information of the new last VPWS stored, often obtains the deployment letter of a VPWS Breath, will be updated in the deployment information of the VPWS stored.
Specifically, the deployment information of the VPWS obtained includes:The local terminal deployment information of VPWS and the opposite end deployment letter of VPWS Breath;The deployment information of VPWS includes keyword message;Wherein, keyword message includes LSR-ID and VC-ID, and keyword message can To be expressed as LSR-ID:VC-ID.
Specifically, step 204 can be realized by step 204a~204e:
Step 204a, judge that the keyword message in the deployment information of the VPWS obtained whether there is in the VPWS stored Deployment information in.
It should be noted that keyword message is to discriminate between the unique mark between different deployment informations, different deployment here Information refers to the deployment information of different VPWS, and the local terminal deployment information and distal end deployment information of same VPWS are identical VPWS Deployment information.
If step 204b, the keyword message in the deployment information of the VPWS obtained is present in the portion of stored VPWS It affixes one's name in information, judges whether the local terminal deployment information of the VPWS obtained is identical as the local terminal deployment information of VPWS stored, and Whether the opposite end deployment information of the VPWS of acquisition is identical as the opposite end deployment information of VPWS stored.
If step 204c, the local terminal deployment information of local terminal deployment information and the VPWS stored of the VPWS obtained not phase Together, the local terminal deployment information of stored VPWS is updated according to the local terminal deployment information of the VPWS of acquisition.
If step 204d, the opposite end deployment information of opposite end deployment information and the VPWS stored of the VPWS obtained not phase Together, the opposite end deployment information of stored VPWS is updated according to the opposite end deployment information of the VPWS of acquisition.
If step 204e, the keyword message in the deployment information of the VPWS obtained is not present in stored VPWS's In deployment information, the local terminal deployment information of the VPWS of acquisition is added in the local terminal deployment information of stored VPWS, and will The opposite end deployment information of the VPWS of acquisition be added to stored VPWS in client information.
It should be noted that step 204b~204d and step 204e belongs to the relationship that selection executes, if obtain Keyword message in the deployment information of VPWS is present in the deployment information of stored VPWS, then follow the steps 204b~ 204d, if the keyword message in the deployment information of the VPWS obtained is not present in the deployment information of stored VPWS, Then follow the steps 204e;Wherein, in the implementation procedure of step 204b~204d, step 204c and step 204d may not held Row, the relationship that sequence executes or selection executes, if the local terminal of the local terminal deployment information of the VPWS obtained and the VPWS stored Deployment information is identical, and the opposite end deployment information of the VPWS obtained is also identical as the opposite end deployment information of the VPWS stored, then Step 204c, 204d is not executed;If the deployment of the local terminal of the local terminal deployment information of the VPWS obtained and the VPWS stored is believed Breath differs, and the opposite end deployment information of the VPWS obtained is identical as the opposite end deployment information of VPWS stored, then executes step Rapid 204c;If the local terminal deployment information of the VPWS obtained is identical as the local terminal deployment information of VPWS stored, and obtain The opposite end deployment information of VPWS and the opposite end deployment information of the VPWS stored differ, and then follow the steps 204d;If obtained VPWS local terminal deployment information and the local terminal deployment information of the VPWS stored differ, and obtain VPWS opposite end deployment Information and the opposite end deployment information of the VPWS stored also differ, then are performed both by step 204c, 204d.
Step 205, the inquiry instruction for obtaining the deployment information for being directed to target VPWS.
Wherein, deployment information includes local terminal deployment information and opposite end deployment information.
Step 206 inquires target according to the inquiry instruction of acquisition in the deployment information of itself pre-stored VPWS The deployment information of VPWS.
It should be noted that step 201~204 are happened at before step 205,206 only one kind provided in this embodiment Embodiment, step 201~204 can not also be happened at before step 205,206, and be only occurred in after step 205,206, It can also both be happened at before step 205,206, also occur at after step 205,206.
The information query method that the embodiment of the present invention is provided, the inquiry that PE obtains the deployment information for being directed to target VPWS refer to It enables;The deployment information of target VPWS is inquired in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition; Wherein, deployment information includes local terminal deployment information and opposite end deployment information.From technical solution provided by the invention as it can be seen that due to The local terminal deployment information and opposite end deployment information of VPWS is pre-stored, therefore PE can stored according to inquiry instruction The local terminal deployment information and opposite end deployment information that target VPWS is inquired in deployment information, thereby using family in a manner of simple and fast The deployment scenario of end-to-end VPWS private line services in network is recognized.
The embodiment of the present invention provides another information query method, and the deployment information of VPWS is included in MPLS messages, MPLS messages carry default control field, and when the value of default control field is preset value, and instruction receiving terminal receives Include deployment information in MPLS messages and trigger receiving terminal acquisition deployment information therein, when the value of default control field is not When preset value, it is forwarded or handles according to the purpose label in the MPLS messages received.As shown in figure 3, this method includes:
Step 301, PE obtain the local terminal deployment information with the opposite end PE VPWS established according to predetermined period.
Step 302, the first MPLS for sending the local terminal deployment information for carrying VPWS to opposite end PE according to predetermined period are reported Text.
Wherein, the value of the default control field carried in the first MPLS messages is preset value.
It should be noted that default control field can be channel type (channel-type) control in PW control words Field.
Specifically, MPLS messages are the LLDP frames encapsulated with MPLS formats, and deployment information is by LLDP frames LLDPDU is carried.
Specifically, since the value of the default control field carried in the first MPLS messages is preset value, then the MPLS messages The deployment information that is sent to after the PE of opposite end that be in the MPLS messages (i.e. the first MPLS messages) that opposite end PE is received include is (i.e. Local terminal deployment information), and the MPLS messages (i.e. the first MPLS messages) that opposite end PE processing receives are triggered, it is wherein carried with obtaining Deployment information (i.e. local terminal deployment information).
Step 303 receives the 2nd MPLS messages that opposite end PE is sent.
Step 304, the value for obtaining the default control field that the 2nd MPLS messages carry.
Step 305 judges whether the value of the default control field obtained is preset value.
If the value of step 306, the default control field obtained is preset value, determine that the 2nd MPLS messages carry VPWS Opposite end deployment information, and obtain the opposite end deployment information of VPWS wherein carried.
Specifically, the deployment information of VPWS may include:The MPLS section informations of VPWS, the port section information of VPWS and The VLAN section informations of VPWS, therefore the local terminal deployment information of VPWS includes:The local terminal MPLS section informations of VPWS, the sheet of VPWS Hold the local terminal VLAN section informations of port section information and VPWS;The opposite end deployment information of VPWS includes:The opposite end MPLS of VPWS The opposite end VLAN section informations of section information, the Peer-Port section information of VPWS and VPWS.
Specifically, the MPLS section informations of VPWS may be embodied in the first TLV, the port section information of VPWS can wrap It is contained in the 2nd TLV, the VLAN section informations of VPWS may be embodied in the 3rd TLV;First TLV, the 2nd TLV and the 3rd TLV It may be embodied in MPLS messages.So step 302 could alternatively be step 302a:It is taken to opposite end PE transmissions according to predetermined period The first MPLS messages with the first TLV, the 2nd TLV and the 3rd TLV, wherein the first MPLS messages carry the first TLV include The local terminal MPLS section informations of VPWS, the 2nd TLV that the first MPLS messages carry include the local terminal port section information of VPWS, with And the first the 3rd TLV that carries of MPLS messages include the local terminal VLAN section informations of VPWS;Correspondingly, step 306 can replace For step 306a:If the value of default control field obtained is preset value, determine the 2nd MPLS messages carry the first TLV, 2nd TLV and the 3rd TLV, and handle the 2nd MPLS messages with obtain the VPWS wherein carried opposite end deployment information (VPWS's Opposite end deployment information includes:The opposite end MPLS section informations for the VPWS that the first TLV that 2nd MPLS is carried includes, the 2nd MPLS take The VPWS that the 3rd TLV that the local terminal port section information for the VPWS that 2nd TLV of band includes and the 2nd MPLS are carried includes Local terminal VLAN section informations).
Specifically, the MPLS section informations of VPWS include:LSR-ID, VC-ID and device name;The port level of VPWS Information includes:Business extracts the description information that interface number, the state of business extraction interface and business extract interface;The VLAN of VPWS Section information includes:Outside VLAN information and inner VLAN information.LSR-ID, VC- are carried in so that is the first TLV ID and device name carry business extraction interface number, the state of business extraction interface and business extraction interface in the 2nd TLV Description information carries outside VLAN information and inner VLAN information in the 3rd TLV.
Step 307, the deployment information that stored VPWS is updated according to the deployment information of the VPWS of acquisition.
It should be noted that the deployment information of the VPWS obtained here refers to the deployment information of the VPWS newly obtained.
Step 308, the inquiry instruction for obtaining the deployment information for being directed to target VPWS.
Wherein, deployment information includes local terminal deployment information and opposite end deployment information.
Step 309 inquires target according to the inquiry instruction of acquisition in the deployment information of itself pre-stored VPWS The deployment information of VPWS.
The information query method that the embodiment of the present invention is provided, the inquiry that PE obtains the deployment information for being directed to target VPWS refer to It enables;The deployment information of target VPWS is inquired in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition; Wherein, deployment information includes local terminal deployment information and opposite end deployment information.From technical solution provided by the invention as it can be seen that due to The local terminal deployment information and opposite end deployment information of VPWS is pre-stored, therefore PE can stored according to inquiry instruction The local terminal deployment information and opposite end deployment information that target VPWS is inquired in deployment information, thereby using family in a manner of simple and fast The deployment scenario of end-to-end VPWS private line services in network is recognized.
The embodiment of a completion is provided below to illustrate information query method provided by the invention, it is assumed that VPWS scenes are such as Shown in Fig. 4, including two PE:PE 1, PE 2 and two customer edge (Customer Edge, CE):CE 1, CE 2, In, PE 1 is adjacent with CE 1, and PE 2 is connected with CE 2, and this method includes:
Step 1, global information query function acquiescence are to open (enable) state, and after the power is turned on, system is its application system to PE Resource of uniting (such as memory, process), and automatically create the Local Data library for storing local terminal deployment information and be used for storage pair Hold the remote database of deployment information.For every VPWS, there is individual information inquiry to switch, the letter of business under default situations Breath inquiry switch is to close (disable) state.Local Data library and remote database are shown as empty at this time.
Step 2, when PE 1 shown in Fig. 4 open VPWS information searching function after, extract the local terminal of this VPWS first Deployment information (including:Device name, device identification (LSR-ID), pseudo-wire call number (VC-ID), business extraction (AC) interface number, The description informations of AC interfaces, AC interface encapsulations vlan information (including outside VLAN information and inner VLAN information), AC interfaces State), and it is saved in Local Data library, when preservation is storage with the combined field of LSR-ID and VC-ID and the key searched Word (key).
Step 3, at this time when checking deployment information on PE1, Local Data library and remote data are read according to inquiry instruction Deployment information in library can show the local terminal deployment information and opposite end deployment information of this VPWS, and the display of deployment information can With as shown in table 1, due to being not received by the deployment information of the transmissions of PE 2 at this time, opposite end deployment information is shown as empty.
Table 1
Step 4, PE1 need local terminal deployment information being sent to opposite end PE2.It is defined as follows three kinds of TLV messages first:First TLV messages, the 2nd TLV messages and the 3rd TLV messages.
First TLV messages include LSR-ID:VC-ID, Hostname, wherein LSR-ID, VC-ID are 4 bytes, Hostname is device name, up to 56 bytes, and the reservation types of the first TLV are 111 (TLV type=111), character String length is 64 (TLV information string length=64), and the display schematic diagram of the first TLV messages can be such as figure Shown in 5.
2nd TLV messages include Port ID, Status and Port description, wherein Port ID are that business carries Take interface number, up to 15 bytes;Status is the state of business extraction interface, is 1 byte, and 1 indicates to open (Up) shape State, 0 indicates to close (Down) state;Port description are the description informations for extracting interface, up to 48 bytes, the The reservation types of two TLV are 112 (TLV type=112), and string length is 64 (TLV information string Length=64), the display schematic diagram of the 2nd TLV messages can be as shown in Figure 6.
3rd TLV messages include SVLAN and CVLAN, wherein SVLAN is outside VLAN, can be vlan list, longest For 8 bytes, 0 is filled if no packaging V LAN;CVLAN is inner VLAN, can be vlan list, up to 8 bytes, Filling position is corresponding with SVLAN, if packaging V LAN only has SVLAN, the CVLAN fillings 0 of corresponding position, if without encapsulation VLAN then fills 0, and the reservation types of the 3rd TLV are 113 (TLV type=113), and string length is 16 (TLV Information string length=16), the display schematic diagram of the 3rd TLV messages can be as shown in Figure 7.
Step 5 after obtaining the local terminal deployment information of VPWS, is filled according to three kinds of TLV in step 4, then constructs With the LLDP frames (i.e. MPLS messages) that MPLS formats encapsulate, with the format of the LLDP frames of MPLS formats encapsulation as shown in figure 8, including The head Ethernet (Ethernet), Link State Protocol Data Unit (Link State Protocol data unit, LSP) Label (label), pseudo line tag (PW lable), pseudo-wire control word (Pseudo Wire Associated Channel Heade, PW ACH), Link Layer Discovery Protocol data cell (LLDPDU), detect verification (Frame Check Sequence, FCS);Wherein, LLDPDU includes the first TLV shown in fig. 5, the 2nd TLV shown in fig. 6 and the 3rd TLV shown in Fig. 7.
Step 6, PE 1 periodically send MPLS messages shown in Fig. 8 to PE 2, and period transmission frequency can be 1S.
After step 7, PE 2 receive the MPLS messages of the transmissions of PE 1, channel- in the PW control words in Fig. 8 is first identified Type control fields, the process flow of confirmation message, if control field channel-type is 0x88CC, in transmitted to CPU LLDP processes with enter deployment information acquisition flow.
The combined field of step 8, the first LSR-ID and VC-ID in acquisition MPLS messages, whether inquiry Local Data library deposits In the combined field of the LSR-ID and VC-ID, PE 2 is written if extracting the LLDPDU information in MPLS messages in the presence of if Remote database, using the combined field of LSR-ID and VC-ID as key when storage;By the packet loss if being not present.
Step 9 after VPWS opening imformations query function, fills in Local Data library, and build and believe containing LLDPDU on PE2 The MPLS messages of breath periodically send the MPLS messages to PE 1, and it is a message per second that the period, which sends the frequency,.Meanwhile PE2 The MPLS messages that opposite end PE1 equipment is sent are received, LLDPDU information is obtained, fills in remote database.
Step 10 in PE 2 checks deployment information at this time, first inquires local data base, shows local terminal deployment information, then Remote database is inquired according to the combined field of LSR-ID and VC-ID, opposite end deployment information is obtained, is then shown in same a line table In lattice, the display schematic diagram of deployment information is as shown in table 2.
Table 2
It should be noted that if there is a plurality of VPWS, then inquires and show successively.
Step 11, when receiving the MPLS messages that opposite end is sent, by LLDPDU information storages to remote database A timer is opened for this VPWS simultaneously, under normal circumstances the MPLS messages per second that can all receive opposite end and send, often The secondary message that receives will trigger timer clearing, and MPLS messages were not received when continuous three seconds, i.e., will when timer reaches 3 seconds The deployment information of this VPWS is removed from remote database.
Step 12, when local terminal deployment information changes, the update of Local Data library can be carried out.Equally, when receiving MPLS When message shows that opposite end deployment information changes, remote database can be updated immediately.
Specifically, the transmission process of MPLS messages can be with as shown in figure 9, the receive process of MPLS messages can be such as Figure 10 institutes Show, transmission process and receive process are described in embodiments of the present invention, and details are not described herein.
Information query method provided in an embodiment of the present invention can initiate inquiry on the source node of any one MPLS, Check the local terminal of VPWS, the deployment information (including device name, extraction mouth encapsulation vlan, extraction mouth state etc.) of opposite end.When two End CE equipment enables traditional LLDP, while two PE equipment enable information searching function, then PE equipment is receiving CE's It will directly be forwarded when MPLS messages (without channel-type control fields in PW control words), deployment acquisition of information will not be entered Flow, therefore do not interfere with traditional LLDP functions, and LLDP agreements belong to Neighbor Discovery Protocol, it is easy to use, and not by The limitation of other complex protocols simplifies development process, reliability higher using LLDP agreements as transmission media.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored with computer executable instructions, calculates Machine executable instruction is for executing any of the above-described information query method.
The embodiment of the present invention also provides a kind of PE, and as shown in figure 11, which includes:
Acquisition module 41, the inquiry instruction for obtaining the deployment information for target VPWS.
Processing module 42, for inquiring mesh in the deployment information of the pre-stored VPWS of PE according to the inquiry instruction of acquisition Mark the deployment information of VPWS;Wherein, deployment information includes local terminal deployment information and opposite end deployment information.
Further, on the basis of Figure 11 corresponding embodiments, the embodiment of the present invention provides another kind PE, such as Figure 12 institutes Show, which further includes:
Sending module 43, the local terminal deployment information for sending the VPWS obtained to opposite end PE according to predetermined period.
Receiving module 44, the opposite end deployment information of the VPWS for receiving opposite end PE transmissions.
Memory module 45, the deployment information for updating stored VPWS according to the deployment information of the VPWS of acquisition.
Acquisition module 41 is additionally operable to obtain the local terminal deployment information with the opposite end PE VPWS established according to predetermined period.
Further, the deployment information of VPWS includes keyword message;Wherein, keyword message includes LSR-ID and VC-ID; Memory module 45 is specifically used for:
Judge that the keyword message in the deployment information of the VPWS obtained whether there is in the deployment of the VPWS stored to believe In breath.
If the keyword message in the deployment information of the VPWS obtained is present in the deployment information of stored VPWS, Judge whether the local terminal deployment information of the VPWS obtained is identical as the local terminal deployment information of VPWS stored, and the VPWS obtained Opposite end deployment information it is whether identical as the opposite end deployment information of VPWS stored.
If the local terminal deployment information and the local terminal deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The local terminal deployment information of the VPWS obtained updates the local terminal deployment information of stored VPWS.
If the opposite end deployment information and the opposite end deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The opposite end deployment information of the VPWS obtained updates the opposite end deployment information of stored VPWS.
If the keyword message in the deployment information of the VPWS obtained is not present in the deployment information of stored VPWS In, the local terminal deployment information of the VPWS of acquisition is added in the local terminal deployment information of stored VPWS, and by acquisition The opposite end deployment information of VPWS be added to stored VPWS in client information.
Further, the deployment information of VPWS is included in MPLS messages, and MPLS messages carry default control field, and work as When the value of default control field is preset value, it includes deployment information in the MPLS messages that receiving terminal receives to indicate and triggering connects Receiving end obtains deployment information therein, when the value of default control field is not preset value, according in the MPLS messages received Purpose label be forwarded or handle.
Sending module 43 carries the local terminal deployment information of VPWS specifically for being sent to opposite end PE according to predetermined period First MPLS messages;Wherein, the value of the default control field carried in the first MPLS messages is preset value.
Receiving module 44, is specifically used for:
Receive the 2nd MPLS messages that opposite end PE is sent.
Obtain the value of the default control field of the 2nd MPLS messages carrying.
Judge whether the value of the default control field obtained is preset value.
If the value of default control field obtained is preset value, determine the 2nd MPLS messages carry VPWS to end Information is affixed one's name to, and obtains the opposite end deployment information of the VPWS wherein carried.
Further, default control field is the channel type control field in PW control words.
Further, MPLS messages are the LLDP frames encapsulated with MPLS formats, and deployment information is by LLDP frames LLDPDU is carried.
Further, the deployment information of VPWS includes:The MPLS section informations of VPWS, the port section information of VPWS and VPWS VLAN section informations.
Further, the MPLS section informations of VPWS are included in the first TLV, and the port level information of VPWS is included in second In TLV, the VLAN section informations of VPWS are included in the 3rd TLV;First TLV, the 2nd TLV and the 3rd TLV are reported included in MPLS Wen Zhong.
Further, the MPLS section informations of VPWS include:LSR-ID, VC-ID and device name;The port level of VPWS Information includes:Business extracts the description information that interface number, the state of business extraction interface and business extract interface;The VLAN of VPWS Section information includes:Outside VLAN information and inner VLAN information.
The PE that the embodiment of the present invention is provided obtains the inquiry instruction of the deployment information for target VPWS;According to acquisition Inquiry instruction the deployment information of target VPWS is inquired in the deployment information of itself pre-stored VPWS;Wherein, deployment letter Breath includes local terminal deployment information and opposite end deployment information.From technical solution provided by the invention as it can be seen that due to VPWS this end It is pre-stored to affix one's name to information and opposite end deployment information, therefore PE can be looked into according to inquiry instruction in the deployment information stored The local terminal deployment information and opposite end deployment information for asking target VPWS, have recognized network thereby using family in a manner of simple and fast In end-to-end VPWS private line services deployment scenario.
In practical applications, the acquisition module 41, processing module 42, sending module 43, receiving module 44 and storage mould Block 45 can be by central processing unit (Central Processing Unit, CPU), the microprocessor (Micro in PE Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field-programmable The realizations such as gate array (Field Programmable Gate Array, FPGA).
The embodiment of the present invention also provides a kind of device for information inquiry, including memory and processor, wherein storage The following instruction being executed by processor is stored in device:
Obtain the inquiry instruction of the deployment information for target VPWS.
The deployment of target VPWS is inquired in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition Information;Wherein, deployment information includes local terminal deployment information and opposite end deployment information.
Further, the following instruction being executed by processor also is stored in memory:
The local terminal deployment information with the opposite end PE VPWS established is obtained according to predetermined period.
The local terminal deployment information of the VPWS obtained is sent to opposite end PE according to predetermined period.
Receive the opposite end deployment information for the VPWS that opposite end PE is sent.
The deployment information of stored VPWS is updated according to the deployment information of the VPWS of acquisition.
Further, the deployment information of VPWS includes keyword message;Wherein, keyword message includes LSR-ID and VC-ID; The following instruction being executed by processor specifically is stored in memory:
Judge that the keyword message in the deployment information of the VPWS obtained whether there is in the deployment of the VPWS stored to believe In breath.
If the keyword message in the deployment information of the VPWS obtained is present in the deployment information of stored VPWS, Judge whether the local terminal deployment information of the VPWS obtained is identical as the local terminal deployment information of VPWS stored, and the VPWS obtained Opposite end deployment information it is whether identical as the opposite end deployment information of VPWS stored.
If the local terminal deployment information and the local terminal deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The local terminal deployment information of the VPWS obtained updates the local terminal deployment information of stored VPWS.
If the opposite end deployment information and the opposite end deployment information of the VPWS stored of the VPWS obtained differ, according to obtaining The opposite end deployment information of the VPWS obtained updates the opposite end deployment information of stored VPWS.
If the keyword message in the deployment information of the VPWS obtained is not present in the deployment information of stored VPWS In, the local terminal deployment information of the VPWS of acquisition is added in the local terminal deployment information of stored VPWS, and by acquisition The opposite end deployment information of VPWS be added to stored VPWS in client information.
Further, the deployment information of VPWS is included in MPLS messages, and MPLS messages carry default control field, and work as When the value of default control field is preset value, it includes deployment information in the MPLS messages that receiving terminal receives to indicate and triggering connects Receiving end obtains deployment information therein, when the value of default control field is not preset value, according in the MPLS messages received Purpose label be forwarded or handle;The following instruction being executed by processor also specifically is stored in memory:
The first MPLS messages of the local terminal deployment information for carrying VPWS are sent to opposite end PE according to predetermined period;Wherein, The value of the default control field carried in first MPLS messages is preset value.
Receive the 2nd MPLS messages that opposite end PE is sent.
Obtain the value of the default control field of the 2nd MPLS messages carrying.
Judge whether the value of the default control field obtained is preset value.
If the value of default control field obtained is preset value, determine the 2nd MPLS messages carry VPWS to end Information is affixed one's name to, and obtains the opposite end deployment information of the VPWS wherein carried.
Further, default control field is the channel type control field in PW control words.
Further, MPLS messages are the LLDP frames encapsulated with MPLS formats, and deployment information is by LLDP frames LLDPDU is carried.
Further, the deployment information of VPWS includes:The MPLS section informations of VPWS, the port section information of VPWS and VPWS VLAN section informations.
Further, the MPLS section informations of VPWS are included in the first TLV, and the port level information of VPWS is included in second In TLV, the VLAN section informations of VPWS are included in the 3rd TLV;First TLV, the 2nd TLV and the 3rd TLV are reported included in MPLS Wen Zhong.
Further, the MPLS section informations of VPWS include:LSR-ID, VC-ID and device name;The port level of VPWS Information includes:Business extracts the description information that interface number, the state of business extraction interface and business extract interface;The VLAN of VPWS Section information includes:Outside VLAN information and inner VLAN information.
Although disclosed herein embodiment it is as above, content only for ease of understanding the present invention and use implementation Mode is not limited to the present invention.Technical staff in any fields of the present invention, do not depart from disclosed herein Under the premise of spirit and scope, any modification and variation can be carried out in the form and details of implementation, but the present invention's is special Sharp protection domain, still should be subject to the scope of the claims as defined in the appended claims.

Claims (18)

1. a kind of information query method, which is characterized in that including:
Provider edge router PE obtains the inquiry instruction of the deployment information for destination virtual private leased circuit service VPWS;
The deployment of the target VPWS is inquired in the deployment information of itself pre-stored VPWS according to the inquiry instruction of acquisition Information;Wherein, the deployment information includes local terminal deployment information and opposite end deployment information.
2. querying method according to claim 1, which is characterized in that the PE obtains looking into for the information for being directed to target VPWS Before asking instruction, further include:
The PE obtains the local terminal deployment information with the opposite end PE VPWS established according to predetermined period;
The local terminal deployment information of the VPWS obtained is sent to the opposite end PE according to the predetermined period;
Receive the opposite end deployment information for the VPWS that the opposite end PE is sent;
The deployment information of stored VPWS is updated according to the deployment information of the VPWS of acquisition.
3. querying method according to claim 2, which is characterized in that the deployment information of the VPWS includes keyword letter Breath;Wherein, the keyword message includes the identification number LSR-ID and Identifier of the virtual connection VC-ID of Label Switch Router; The deployment information of the VPWS according to acquisition updates the deployment information of stored VPWS, including:
Judge that the keyword message in the deployment information of the VPWS obtained whether there is in the deployment information of the VPWS stored;
If the keyword message in the deployment information of the VPWS obtained is present in the deployment information of stored VPWS, judge Whether the local terminal deployment information of the VPWS of acquisition is identical as the local terminal deployment information of VPWS stored, and pair of the VPWS obtained Hold deployment information whether identical as the opposite end deployment information of VPWS stored;
If the local terminal deployment information and the local terminal deployment information of the VPWS stored of the VPWS obtained differ, according to acquisition The local terminal deployment information of VPWS updates the local terminal deployment information of stored VPWS;
If the opposite end deployment information and the opposite end deployment information of the VPWS stored of the VPWS obtained differ, according to acquisition The opposite end deployment information of VPWS updates the opposite end deployment information of stored VPWS;
It, will if the keyword message in the deployment information of the VPWS obtained is not present in the deployment information of stored VPWS The local terminal deployment information of the VPWS of acquisition is added in the local terminal deployment information of stored VPWS, and by pair of the VPWS of acquisition End deployment information be added to stored VPWS in client information.
4. querying method according to claim 2 or 3, which is characterized in that the deployment information of the VPWS is included in more associations It discusses in Tag switching MPLS messages, the MPLS messages carry default control field, and when the value of the default control field For preset value when, include deployment information in the MPLS messages that receive of instruction receiving terminal and trigger receiving terminal and obtain portion therein Information is affixed one's name to, when the value of the default control field is not the preset value, according to the purpose mark in the MPLS messages received Label are forwarded or handle;The local terminal deployment information for sending the VPWS obtained to opposite end PE according to predetermined period, including:
The first MPLS reports for the local terminal deployment information for carrying the VPWS are sent to the opposite end PE according to the predetermined period Text;Wherein, the value of the default control field carried in the first MPLS messages is the preset value;
The opposite end deployment information for receiving the VPWS that opposite end PE is sent, including:
Receive the 2nd MPLS messages that the opposite end PE is sent;
Obtain the value for the default control field that the 2nd MPLS messages carry;
Judge whether the value of the default control field obtained is the preset value;
If the value of the default control field obtained is the preset value, determine that the 2nd MPLS messages carry the VPWS Opposite end deployment information, and obtain the opposite end deployment information of VPWS wherein carried.
5. querying method according to claim 4, which is characterized in that the default control field is in pseudo-wire PW control words Channel type control field.
6. querying method according to claim 4, which is characterized in that the MPLS messages are the chain encapsulated with MPLS formats Road floor finds agreement LLDP frames, and the deployment information is by the Link Layer Discovery Protocol data cell in the LLDP frames LLDPDU is carried.
7. querying method according to claim 4, which is characterized in that the deployment information of the VPWS includes:The VPWS Multiprotocol label switching MPLS section informations, the VPWS port section information and the VPWS virtual LAN VLAN Section information.
8. querying method according to claim 7, which is characterized in that the MPLS section informations of the VPWS are included in first In type lengths values TLV, the port level information of the VPWS is included in the second TLV, the VLAN section informations of the VPWS Included in the 3rd TLV;First TLV, the 2nd TLV and the 3rd TLV are included in the MPLS messages.
9. querying method according to claim 7 or 8, which is characterized in that the MPLS section informations of the VPWS include: LSR-ID, VC-ID and device name;The port level information of the VPWS includes:Business extraction interface number, the business carry Take the description information of the state and business extraction interface of interface;The VLAN section informations of the VPWS include:Outside VLAN Information and inner VLAN information.
10. a kind of provider edge router, which is characterized in that including:
Acquisition module, the inquiry instruction for obtaining the deployment information for destination virtual private leased circuit service VPWS;
Processing module, for inquiring the target in the deployment information of the pre-stored VPWS of PE according to the inquiry instruction of acquisition The deployment information of VPWS;Wherein, the deployment information includes local terminal deployment information and opposite end deployment information.
11. provider edge router according to claim 10, which is characterized in that further include:
Sending module, the local terminal deployment information for sending the VPWS obtained to opposite end PE according to predetermined period;
Receiving module, the opposite end deployment information for receiving the VPWS that the opposite end PE is sent;
Memory module, the deployment information for updating stored VPWS according to the deployment information of the VPWS of acquisition;
The acquisition module is additionally operable to obtain the local terminal deployment information with the opposite end PE VPWS established according to predetermined period.
12. provider edge router according to claim 11, which is characterized in that the deployment information of the VPWS includes Keyword message;Wherein, the keyword message includes LSR-ID and VC-ID;The memory module is specifically used for:
Judge that the keyword message in the deployment information of the VPWS obtained whether there is in the deployment information of the VPWS stored;
If the keyword message in the deployment information of the VPWS obtained is present in the deployment information of stored VPWS, judge Whether the local terminal deployment information of the VPWS of acquisition is identical as the local terminal deployment information of VPWS stored, and pair of the VPWS obtained Hold deployment information whether identical as the opposite end deployment information of VPWS stored;
If the local terminal deployment information and the local terminal deployment information of the VPWS stored of the VPWS obtained differ, according to acquisition The local terminal deployment information of VPWS updates the local terminal deployment information of stored VPWS;
If the opposite end deployment information and the opposite end deployment information of the VPWS stored of the VPWS obtained differ, according to acquisition The opposite end deployment information of VPWS updates the opposite end deployment information of stored VPWS;
It, will if the keyword message in the deployment information of the VPWS obtained is not present in the deployment information of stored VPWS The local terminal deployment information of the VPWS of acquisition is added in the local terminal deployment information of stored VPWS, and by pair of the VPWS of acquisition End deployment information be added to stored VPWS in client information.
13. provider edge router according to claim 11 or 12, which is characterized in that the deployment information of the VPWS Included in MPLS messages, the MPLS messages carry default control field, and when the value of the default control field is pre- If including deployment information when value, in the MPLS messages that instruction receiving terminal receives and triggering receiving terminal acquisition deployment letter therein Breath, when the value of the default control field not be the preset value when, according to the purpose label in the MPLS messages received into Row forwarding or processing;
The sending module carries the local terminal of the VPWS specifically for being sent to the opposite end PE according to the predetermined period First MPLS messages of deployment information;Wherein, the value of the default control field carried in the first MPLS messages is described pre- If value;
The receiving module, is specifically used for:
Receive the 2nd MPLS messages that the opposite end PE is sent;
Obtain the value for the default control field that the 2nd MPLS messages carry;
Judge whether the value of the default control field obtained is the preset value;
If the value of the default control field obtained is the preset value, determine that the 2nd MPLS messages carry the VPWS Opposite end deployment information, and obtain the opposite end deployment information of VPWS wherein carried.
14. provider edge router according to claim 13, which is characterized in that the default control field is controlled for PW Channel type control field in word processed.
15. provider edge router according to claim 13, which is characterized in that the MPLS messages are with MPLS lattice The LLDP frames of formula encapsulation, and the deployment information is carried by the LLDPDU in the LLDP frames.
16. provider edge router according to claim 13, which is characterized in that the deployment information packet of the VPWS It includes:The virtual LAN VLAN layer of the MPLS section informations of the VPWS, the port section information of the VPWS and the VPWS Face information.
17. provider edge router according to claim 16, which is characterized in that the MPLS section informations of the VPWS Included in first kind length value TLV, the port level information of the VPWS is included in the second TLV, the VPWS's VLAN section informations are included in the 3rd TLV;First TLV, the 2nd TLV and the 3rd TLV are included in described In MPLS messages.
18. provider edge router according to claim 16 or 17, which is characterized in that the MPLS levels of the VPWS Information includes:LSR-ID, VC-ID and device name;The port level information of the VPWS includes:Business extraction interface number, The description information of the state and business extraction interface of the business extraction interface;The VLAN section information packets of the VPWS It includes:Outside VLAN information and inner VLAN information.
CN201711484997.2A 2017-12-29 2017-12-29 Information query method and provider edge router Active CN108337169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484997.2A CN108337169B (en) 2017-12-29 2017-12-29 Information query method and provider edge router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484997.2A CN108337169B (en) 2017-12-29 2017-12-29 Information query method and provider edge router

Publications (2)

Publication Number Publication Date
CN108337169A true CN108337169A (en) 2018-07-27
CN108337169B CN108337169B (en) 2021-02-02

Family

ID=62923658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484997.2A Active CN108337169B (en) 2017-12-29 2017-12-29 Information query method and provider edge router

Country Status (1)

Country Link
CN (1) CN108337169B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905509A (en) * 2006-08-03 2007-01-31 华为技术有限公司 Method and system of user access virtual special LAN service
CN1996925A (en) * 2006-12-25 2007-07-11 华为技术有限公司 Sending and receiving method and system for link aggregation method, device and MAC frame
CN102255759A (en) * 2011-08-16 2011-11-23 杭州华三通信技术有限公司 Method and device for transmitting data message based on PW (Packet Writing) redundant backup
US20120057599A1 (en) * 2010-09-03 2012-03-08 Futurewei Technologies, Inc. System and Method for Virtual Private Local Area Network Service to Use the Flow Aware Pseudowire

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905509A (en) * 2006-08-03 2007-01-31 华为技术有限公司 Method and system of user access virtual special LAN service
CN1996925A (en) * 2006-12-25 2007-07-11 华为技术有限公司 Sending and receiving method and system for link aggregation method, device and MAC frame
US20120057599A1 (en) * 2010-09-03 2012-03-08 Futurewei Technologies, Inc. System and Method for Virtual Private Local Area Network Service to Use the Flow Aware Pseudowire
CN102255759A (en) * 2011-08-16 2011-11-23 杭州华三通信技术有限公司 Method and device for transmitting data message based on PW (Packet Writing) redundant backup

Also Published As

Publication number Publication date
CN108337169B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US10404605B2 (en) Packet processing method, device and computer storage medium
CN102195865B (en) Communicating network path and status information in multi-homed networks
EP3958521A1 (en) Method and apparatus for providing service for service flow
EP1585261B1 (en) Apparatus and method for processing labeled flows in a communications access network
RU2493677C2 (en) Method and router for implementing mirroring
US7463597B1 (en) Spanning tree protocol synchronization within virtual private networks
US7127523B2 (en) Spanning tree protocol traffic in a transparent LAN
EP2434697B1 (en) Method for interconnecting multi-protocol label switching network and ethernet, thereof device and system
EP1766876B1 (en) Technique for transferring data over a packet switched network
US8451837B1 (en) Discovery of MPLS VPN links
WO2012106869A1 (en) Message processing method and related device thereof
CN103259724B (en) A kind of MPLS VPN implementation method, system and customer edge devices
US20140293798A1 (en) Mpls-tp network and link trace method thereof
CN103152205B (en) Based on OAM processing method and the device of stream index
WO2017000802A1 (en) Service fault location method and device
WO2007071153A1 (en) A method, a data network system and a network node for transmitting data packets
CN103067278B (en) A kind of method for transmission processing of Frame, equipment and system
WO2012159461A1 (en) Layer-2 path maximum transmission unit discovery method and node
CN110166361A (en) A kind of message forwarding method and device
CN108667729B (en) SDN service isolation and routing method and device based on MPLS
CN110380966A (en) A kind of method and its relevant device finding forward-path
US20130259057A1 (en) Pseudowire groups in a packet switched network
WO2016101582A1 (en) Method for configuring and implementing operations, administration and maintenance function, and forwarding device
CN108337169A (en) A kind of information query method and provider edge router
CN106301867B (en) A kind of static state pseudo-wire condition detection method 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