The communication means and device of SRV6 network and IP MPLS networkTechnical field
The present invention relates to the technical fields of communication, more particularly, to the communication party of a kind of SRV6 network and IP MPLS networkMethod and device.
Background technique
Section routing (Segment Routing) is traffic engineering in order to meet the network equipment, allow network manager moreAdd simple, convenient and efficiently the flow in network is scheduled, this technology can be applied to MPLS (Multi-ProtocolLabel Switching, multiprotocol label switching) and IPV6 (Internet protocol version 6, Internet protocol6th edition) Forwarding plane on.Apply this technology (abbreviation SRV6, Segment routing on IPV6 Forwarding planeIPV6, the Segment routing agreement based on IPv6) address IPV6 of now widely used 128bit is newly defined as SRV6SID (segment ID, segment identification), the coding mode of SID generally include route field Locator, function field functionAnd parameter field Argument, wherein locator represents the network element at the place of the SID, and function represents the SID and connecingThe processing mode after message is received, Argument is attached to after function, is represented the SID and is provided certain specific service instituteThe parameter for needing to carry.
There is provided IPV6 L3VPN based on MPLS network, (Layer3Virtual Private Network, L 3 virtual are dedicatedNetwork), IPV4 (Internet protocol version 4, Internet protocol the 4th edition) L3VPN, VPWS (VirtualPrivate Wire Service, virtual private wire business) and EVPN (Ethernet Virtual PrivateNetwork, Ethernet Virtual Private Network) network of business is known as IP MPLS network.
SRV6 network and IP MPLS network have the message format transmitted in corresponding network, access both networksIf necessary to transmitting message between CE (Customer Edge, user network boundary device), it is necessary to access same network abilityEstablish communication connection, it is assumed that the CE of SRV6 network one end needs and the CE of the IP MPLS network other end is communicated, the prior artIn can use solution shown in fig. 1 or fig. 2, but both schemes are for the business and IPV4 L3VPN of IPV6 L3VPNBusiness require that IP address and VRF (Virtual Private Network are planned and configured on newly-established chain roadRouting and Forwarding, Virtual Private Network routing and forwarding table), the business of business and EVPN for VPWS is also allIt needs to plan and configure VSI (Virtual Switching Instance, virtual switch instance) on newly-established chain roadResource, both schemes all necessarily cause IP MPLS PE (Provider Edge, carrier network edge device) and SRV6PEOn the wasting of resources.
In conclusion in the prior art there is the waste communication resource in SRV6 network and the interoperability methods of IP MPLS networkTechnical problem.
Summary of the invention
The purpose of the present invention is to provide the communication means and device of a kind of SRV6 network and IP MPLS network, to alleviateThe technical issues of wasting the communication resource existing for SRV6 network and the interoperability methods of IP MPLS network in the prior art.
In a first aspect, the communication means of a kind of SRV6 network and IP MPLS network provided by the invention, is applied to target and transportsQuotient's network edge device is sought, targeted carrier's network edge device is mutual for realizing SRV6 network and IP MPLS networkIt is logical, comprising:
Receive the first message that the first carrier network edge device is sent in first network, wherein the first networkFor SRV6 network or IP MPLS network;
The determining object message format conversion table with first message matching in default message format transformation warehouse;
First message is converted into corresponding second message according to the object message format conversion table, and will be describedSecond message is sent to the second carrier network edge device of the second network, wherein second network be SRV6 network orIP MPLS network, and second network is different from the first network.
Further, if the first network is SRV6 network, second network is IP MPLS network, then described theOne message is SRV6 message;
It is determined in default message format transformation warehouse and includes: with the object message format conversion table of first message matching
Obtain the segment identification of purpose IP address in V6 information of external IP of the SRV6 message;
Judge whether the segment identification matches with the segment identification in segment identification library, wherein the segment identification library includes instituteState the segment identification of targeted carrier's network edge device;
If matching, the segment identification is matched with the default message format transformation warehouse, obtains matched messageFormat conversion table, and using the matched message format conversion table as object message format conversion table.
Further, first message is converted to by corresponding second message according to the object message format conversion tableInclude:
V6 information of external IP of the SRV6 message and/or the section routing head information of the SRV6 message are deleted, is obtainedIP MPLS midamble;
Obtain the label information in the object message format conversion table, wherein the label information includes: external labelInformation and inner label information, the external label information indicate transmission of second message in the IP MPLS networkRouting information, the inner label information indicate the type of service letter of second message demand in the IP MPLS networkBreath;
The label information is encapsulated in the IP MPLS midamble according to the message format of IP MPLS network, is obtainedTo second message.
Further, if the first network is IP MPLS network, second network is SRV6 network, then described theOne message is IP MPLS message;
It is determined in default message format transformation warehouse and includes: with the object message format conversion table of first message matching
Obtain the inner label information of the IP MPLS message;
The inner label information is matched with the default message format transformation warehouse, obtains matched message formatConversion table, and using the matched message format conversion table as object message format conversion table.
Further, first message is converted to by corresponding second message according to the object message format conversion tableInclude:
The external label information and inner label information for deleting the IP MPLS message, obtain SRV6 midamble;
Obtain V6 information of external IP and/or object message format conversion in the object message format conversion tableSection in table routes head information;
The external IP V6 information and/or described section of routing head Information encapsulation are existed according to the message format of SRV6 networkIn the SRV6 midamble, second message is obtained.
Second aspect, the present invention also provides the communication devices of a kind of SRV6 network and IP MPLS network, are applied to target and transportQuotient's network edge device is sought, targeted carrier's network edge device is mutual for realizing SRV6 network and IP MPLS networkIt is logical, comprising:
Receiving module, for receiving the first message that the first carrier network edge device is sent in first network, whereinThe first network is SRV6 network or IP MPLS network;
Determining module, for the object message lattice with first message matching determining in default message format transformation warehouseFormula conversion table;
Conversion module, for first message to be converted to corresponding second according to the object message format conversion tableMessage, and second message is sent to the second carrier network edge device of the second network, wherein second networkFor SRV6 network or IP MPLS network, and second network is different from the first network.
Further, if the first network is SRV6 network, second network is IP MPLS network, then described theOne message is SRV6 message;
The determining module includes:
First acquisition unit, the segment mark of purpose IP address in V6 information of external IP for obtaining the SRV6 messageKnow;
Judging unit, for judging whether the segment identification matches with the segment identification in segment identification library, wherein described sectionHome banking includes the segment identification of targeted carrier's network edge device;
First matching unit, if matching, the segment identification is matched with the default message format transformation warehouse, is obtainedTo matched message format conversion table, and using the matched message format conversion table as object message format conversion table.
Further, the conversion module includes:
First deletes unit, for delete the SRV6 message external IP V6 information and/or the SRV6 messageSection routing head information, obtains IP MPLS midamble;
Second acquisition unit, for obtaining the label information in the object message format conversion table, wherein the labelInformation includes: external label information and inner label information, and the external label information indicates second message in the IPTransmission path information in MPLS network, the inner label information indicate second message in the IP MPLS networkThe service type information of demand;
First encapsulation unit, for the label information to be encapsulated in the IP according to the message format of IP MPLS networkIn MPLS midamble, second message is obtained.
Further, if the first network is IP MPLS network, second network is SRV6 network, then described theOne message is IP MPLS message;
The determining module further include:
Third acquiring unit, for obtaining the inner label information of the IP MPLS message;
Second matching unit, for the inner label information to be matched with the default message format transformation warehouse,Matched message format conversion table is obtained, and using the matched message format conversion table as object message format conversion table.
Further, the conversion module further include:
Second deletion unit is obtained for deleting the external label information and inner label information of the IP MPLS messageSRV6 midamble;
4th acquiring unit, for obtaining V6 information of external IP and/or institute in the object message format conversion tableState the section routing head information in object message format conversion table;
Second encapsulation unit, for according to the message format of SRV6 network by the external IP V6 information and/or describedSection routing head Information encapsulation obtains second message in the SRV6 midamble.
The communication means of a kind of SRV6 network and IP MPLS network provided by the invention is applied to targeted carrier's networkEdge device, targeted carrier's network edge device for realizing SRV6 network and IP MPLS network intercommunication, comprising: receiveThe first message that the first carrier network edge device is sent in first network, wherein first network is SRV6 network or IPMPLS network;The determining object message format conversion table with the first message matching in default message format transformation warehouse;According to meshFirst message is converted to corresponding second message by mark message format conversion table, and the second message is sent to the of the second networkTwo carrier network edge devices, wherein the second network is SRV6 network or IP MPLS network, and the second network and the first netNetwork is different.
In the prior art, when having intercommunication demand between across SRV6 network and IP MPLS network as more CE, it is necessary to occupyThe resources such as the IP address of middle PE, VRF, VSI, compared with network intercommunication method in the prior art, SRV6 provided by the inventionThe communication means of network and IP MPLS network, it is only necessary to be targeted carrier's network of intercommunication SRV6 network and IP MPLS networkDefault message format transformation warehouse is arranged in edge device, it will be able to will be passed in first network using targeted carrier's network edge deviceThe first defeated message is converted into the second message transmitted in the second network, in the IP for being not take up inter-carrier network edge deviceUnder the premise of the resources such as address, VRF, VSI, intercommunication demand of more CE between across SRV6 network and IP MPLS network is realized, delayThe technical issues of having solved SRV6 network in the prior art and the interoperability methods waste communication resource of IP MPLS network.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior artEmbodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described belowAttached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative laborIt puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the interoperability methods of a kind of SRV6 network and IP MPLS network in the prior art provided in an embodiment of the present inventionSchematic diagram;
Fig. 2 is the intercommunication side of another SRV6 network and IP MPLS network in the prior art provided in an embodiment of the present inventionThe schematic diagram of method;
Fig. 3 is the flow chart of the communication means of a kind of SRV6 network provided in an embodiment of the present invention and IP MPLS network;
Fig. 4 is the schematic diagram of the interoperability methods of a kind of SRV6 network provided in an embodiment of the present invention and IP MPLS network;
Fig. 5 is the message format that the CE of user network boundary device in the prior art provided in an embodiment of the present invention is issuedSchematic diagram;
Fig. 6 is the schematic diagram of the message format transmitted in the network of SRV6 in the prior art provided in an embodiment of the present invention;
Fig. 7 is the message format conversion table that a kind of SRV6 message provided in an embodiment of the present invention is converted to IP MPLS messageSchematic diagram;
Fig. 8 is the schematic diagram of the message format transmitted in the MPLS network of IP in the prior art provided in an embodiment of the present invention;
Fig. 9 is the message format conversion table that a kind of IP MPLS message provided in an embodiment of the present invention is converted to SRV6 messageSchematic diagram;
Figure 10 is the schematic diagram of the communication device of a kind of SRV6 network provided in an embodiment of the present invention and IP MPLS network.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with embodiment, it is clear that described realityApplying example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this fieldArt personnel every other embodiment obtained without making creative work belongs to the model that the present invention protectsIt encloses.
Embodiment one:
Fig. 3 is the flow chart of the communication means of a kind of SRV6 network provided in an embodiment of the present invention and IP MPLS network, is answeredFor targeted carrier's network edge device, targeted carrier's network edge device is for realizing SRV6 network and IP MPLS netThe intercommunication of network, this method comprises the following steps:
Step S102 receives the first message that the first carrier network edge device is sent in first network, wherein firstNetwork is SRV6 network or IP MPLS network;
Specifically, across the SRV6 network of user network boundary device CE provided in an embodiment of the present invention and IP MPLS networkInterworking Scheme is as shown in figure 4, the communication of ce1 and ce2 in figure will be realized, firstly, message is sent in first network by CE1One carrier network edge device PE1, then the first carrier network edge device PE1 is by the message received according to the first netThe message format transmitted in network is packaged processing, obtains the first message, and the first message is sent to targeted carrier's networkEdge device (the target PE in Fig. 4), further, targeted carrier's network edge device receive first in first networkThe first message that carrier network edge device PE1 is sent, hereinafter will be respectively SRV6 network or IP MPLS to first networkThe case where network, is specifically described.
Step S104, the determining object message format with the first message matching is converted in default message format transformation warehouseTable;
Targeted carrier's network edge device after receiving the first message, according to the first message carry specifying information,The determining object message format conversion table with the first message matching, each message format turn in default message format transformation warehouseThe transformational relation that table all corresponds to message format between a kind of network is changed, each vpn service type all corresponds to specific message formatConversion table will hereinafter be directed to two kind transmission directions of the CE message in SRV6 network and IP MPLS network, to determining target reportThe detailed process of literary format conversion table is described respectively.
First message is converted to corresponding second message according to object message format conversion table by step S106, and byTwo messages are sent to the second carrier network edge device of the second network, wherein the second network is SRV6 network or IP MPLSNetwork, and the second network is different from first network.
In embodiments of the present invention, the first message is converted to the message format conversion table of the second message collection be collectively referred to as it is pre-If message format transformation warehouse, wherein the message transmitted in the second network is known as the second message, the second network is SRV6 networkOr IP MPLS network, and the second network is different from first network, it is, when first network is SRV6 network, the second networkFor IP MPLS network, when first network is IP MPLS network, the second network is SRV6 network.
After determining object message format conversion table, targeted carrier's network edge device is converted according to object message formatFirst message is converted to corresponding second message by table, and the second message is sent to the second carrier network side of the second networkEdge equipment PE2 so far has been realized in the intercommunication of first network and the second network, and then, PE2 is again by the receive second reportText converts message that CE2 can be identified for the second message and is sent to CE2 according to the Message processing mode of the second network, intoAnd realize the communication between the CE1 of access first network and the CE2 for accessing the second network.It will hereinafter exist for CE messageTwo kinds of transmission directions in SRV6 network and IP MPLS network turn to message format is carried out according to object message format conversion tableThe detailed process changed is described respectively.
In the prior art, when having intercommunication demand between across SRV6 network and IP MPLS network as more CE, it is necessary to occupyThe resources such as the IP address of middle PE, VRF, VSI, compared with network intercommunication method in the prior art, SRV6 provided by the inventionThe communication means of network and IP MPLS network, it is only necessary to be targeted carrier's network of intercommunication SRV6 network and IP MPLS networkDefault message format transformation warehouse is arranged in edge device, it will be able to will be passed in first network using targeted carrier's network edge deviceThe first defeated message is converted into the second message transmitted in the second network, in the IP for being not take up inter-carrier network edge deviceUnder the premise of the resources such as address, VRF, VSI, intercommunication demand of more CE between across SRV6 network and IP MPLS network is realized, delayThe technical issues of having solved SRV6 network in the prior art and the interoperability methods waste communication resource of IP MPLS network.
Above the treatment process to the method for the present invention for message has carried out brief description, hereinafter to when the first netNetwork is SRV6 network, when the second network is IP MPLS network, determining and the first message matching in default message format transformation warehouseThe process of object message format conversion table describe in detail.
In an optional embodiment, if first network is SRV6 network, the second network is IP MPLS network, thenFirst message is SRV6 message;
The determining object message format conversion table with the first message matching includes as follows in default message format transformation warehouseStep:
Step S201 obtains the segment identification of purpose IP address in V6 information of external IP of SRV6 message;
Step S202, judges whether segment identification matches with the segment identification in segment identification library, wherein segment identification library includes meshMark the segment identification of carrier network edge device;
Specifically, Fig. 5 is the message format schematic diagram that CE is issued, if first network is SRV6 network, the second network isIP MPLS network, then the first message is SRV6 message, and the message format transmitted in SRV6 network is as shown in fig. 6, in SRV6 networkCarrier network edge device the access and outlet of business are provided, the carrier network edge device in inlet is responsible for businessAccess, corresponding external IP V6 information (external IPV6header) is added according to different type of service;And according toTraffic engineering instruction addition section routing head information SRH (segment routing header), if there is SRH to depend on the businessWhether need to do traffic engineering;And whether carry inner L2 header (inner layer2 header, internal double layer networkHead information), type of service is depended on, for IPV6 L3VPN business, IPV4 L3VPN business cannot carry inner L2header;VPWS business carries inner L2 header;EVPN business is possible to carrying inner L2 header and is also possible toInner L2 header is not carried.
Wherein, it is provided with DIP (destination IP, purpose IP address) field in external IPV6header, depositsThe SID for storing up the routing node of target includes SID in list of fragments segment list, segment list orderly in SRHArrangement has determined that forward-path of the SRV6 message in SRV6 network, and pointer currently refers in locally hit segment listTo SID (End or End.X) after, Endpoint equipment in SRV6 network will correct the segment left value in SRH, andIt copies next SID in SRH in segment list to DIP field in external IPV6header, then carries outThe forwarding of SRV6 message.
So targeted carrier's network edge device after getting SRV6 message, obtains the outside of SRV6 message firstThe segment identification SID of purpose IP address in IPV6 information, then judge the SID whether with segment mark sensible in segment identification libraryMatch, wherein segment identification library includes the segment identification of targeted carrier's network edge device, in order to provide comprehensive business processing functionCan, by a plurality of types of SID configuration on targeted carrier's network edge device, so targeted carrier's network edge device hasThere is at least one SID, wherein SRV6 message will be realized to IP MPLS message (message transmitted in IP MPLS network)The SID of conversion function is known as End.BTM (Binding to MPLS binds MPLS network), in order to make full use of Internet resources,And it is different from the function field (function) of current defined SID, the function field of End.BTM type is encoded into definitionFor 0x1000 (or allowing other customized fields in the prior art), it will specifically be directed to the function of different service typesEnergy parameter setting is at parameter field (Argument), and the SID parameter field of different service types is different, and the present invention is not to realizationThe title of SID and the value of function field of SRV6 message to IP MPLS message conversion function are defined, and user can basisSituation is set.
Step S203, if matching, segment identification is matched with default message format transformation warehouse, obtains matched messageFormat conversion table, and using matched message format conversion table as object message format conversion table.
If it is confirmed that segment identification matches with the segment identification in segment identification library, matched then will further confirm that with segment identificationMessage format conversion table, it is, the present invention has preset a message format conversion table for each segment identification SID,The example in Fig. 7 can be specifically referred to, the value in Fig. 7 inside table is configured according to practical business type, and the present invention is notIt is enumerated one by one, using matched message format conversion table as object message format conversion table for SRV6 message to IPThe conversion of MPLS message.
It is SRV6 network above for first network is worked as, when the second network is IP MPLS network, in default message formatIt determines in transformation warehouse and is described in detail with the process of the object message format conversion table of the first message matching, hereafter to rootThe process that the first message is converted to corresponding second message is described in detail according to object message format conversion table.
In an optional embodiment, the first message is converted to corresponding according to object message format conversion tableTwo messages include the following steps:
Step 301, the section of V6 information of external IP and/or SRV6 message for deleting SRV6 message routes head information, obtainsIP MPLS midamble;
Specifically, the message format transmitted in SRV6 network is had been presented in Fig. 6, for passing in IP MPLS networkDefeated message format, specifically referring to FIG. 8, targeted carrier's network edge device is determining object message format conversion tableAfterwards, V6 information of external IP of the SRV6 message received and/or the section of SRV6 message routing head information SRH are deleted firstIt removes, and be known as IP MPLS midamble for the SRV6 message after above two information is deleted.
It above has been described above, if there is section routing head information SRH to depend on whether the business needs to do traffic engineering, such asThe required type of service of fruit current message does not need to do traffic engineering, then the carrier network edge device of SRV6 network existsAfter accessing the message that CE is sent, then when converting the message transmitted in SRV6 network for the CE message sent, SRV6 message is just notHead information SRH can be routed containing section, whereas if the required type of service of current message needs to do traffic engineering, SRV6 reportText will route head information SRH containing section.
Step 302, the label information in object message format conversion table is obtained, wherein label information includes: external labelInformation and inner label information, external label information indicates transmission path information of second message in IP MPLS network, internalThe service type information of label information expression the second message demand in IP MPLS network;
Further, according to the message format transmitted in IP MPLS network shown in fig. 8 it is found that obtaining IP MPLSAfter midamble, to obtain complete IP MPLS message, it is also necessary to obtain external label information (LSP label value) andInner label information (inner label value), external label information indicate transmission of second message in IP MPLS networkRouting information, inner label information indicate the service type information of the second message demand in IP MPLS network, and in target reportAbove-mentioned label information (external label information and inner label information) has been preset in literary format conversion table.
Step 303, label information is encapsulated in IP MPLS midamble according to the message format of IP MPLS network, is obtainedTo the second message.
After all information for getting composition IP MPLS message, according to the message format of IP MPLS network by label informationIt is encapsulated in IP MPLS midamble, obtains the second message, which is also the corresponding IP MPLS message of SRV6 message.
Above to when first network is SRV6 network, and the second network is IP MPLS network, message is passed from first networkThe process for transporting to the second network is described in detail, and below to being IP MPLS network when first network, the second network isWhen SRV6 network, message is specifically introduced from the process that first network is transmitted to the second network.
In an optional embodiment, if first network is IP MPLS network, the second network is SRV6 network, thenFirst message is IP MPLS message;
The determining object message format conversion table with the first message matching includes as follows in default message format transformation warehouseStep:
Step 401, the inner label information of IP MPLS message is obtained;
Step 402, inner label information is matched with default message format transformation warehouse, obtains matched message formatConversion table, and using matched message format conversion table as object message format conversion table.
Specifically, the second network is SRV6 network, then the first message is IP MPLS if first network is IP MPLS networkMessage, the carrier network edge device in IP MPLS network provide the access and outlet of business, operator's net in inletNetwork edge device is responsible for the access of business, adds corresponding inner label inner label according to different types of service, differentInner label value represent different vpn service types.LSP label represents the letter of the path in IP MPLS networkBreath.
So targeted carrier's network edge device in the present invention is different from existing after getting IP MPLS messageCarrier network edge device at technology middle outlet sets the processing mode of IP MPLS message, targeted carrier's network edgeThe standby inner label information for obtaining IP MPLS message first, then by inner label information and default message format transformation warehouse intoRow matching, obtains matched message format conversion table, that is to say, that for each internal mark in default message format transformation warehouseLabel information (that is, inner label value) have all preset a kind of message format conversion table, specifically can be with reference to showing in Fig. 9, the value in Fig. 9 inside table is configured according to practical business type, and the present invention no longer enumerates one by one, by matched reportLiterary format conversion table is as object message format conversion table for IP MPLS message to the conversion of SRV6 message.
In an optional embodiment, the first message is converted to corresponding according to object message format conversion tableTwo messages include the following steps:
Step 501, the external label information and inner label information for deleting IP MPLS message, obtain SRV6 midamble;
According to the message format transmitted in the SRV6 network and IP MPLS network being given above it is found that targeted carrierNetwork edge device is after having determined object message format conversion table, first by the external label of the IP MPLS message receivedInformation and inner label information are deleted, and are known as the IP MPLS message after above two information is deleted among SRV6Message.
Step 502, V6 information of external IP and/or the conversion of object message format in object message format conversion table are obtainedSection in table routes head information;
Further, the message format transmitted in the SRV6 network according to shown in Fig. 6 is it is found that obtaining reporting among SRV6Wen Hou will obtain complete SRV6 message, it is also necessary to obtain V6 information of external IP and/or section routing head information SRH, if havingSection routing head information SRH depends on whether the business needs to do traffic engineering, and in object message format conversion table in advanceIf above- mentioned information.
Step 503, V6 information of external IP and/or section routing head Information encapsulation are existed according to the message format of SRV6 networkIn SRV6 midamble, the second message is obtained.
After all information for getting composition SRV6 message, according to the message format of SRV6 network by V6 information of external IPAnd/or section routing head information SRH is encapsulated in SRV6 midamble, obtains the second message, which is also IP MPLS reportThe corresponding SRV6 message of text.
In conclusion SRV6 network provided by the invention and the communication means of IP MPLS network increase a kind of End.BTM class newlyThe SID of type realizes the intercommunication between SRV6 network and IP MPLS network, under the scene of multiple CE network insertions, target fortuneBattalion's quotient's network edge device needs to be arranged multiple End.BTM, default message format transformation warehouse is arranged on forwarding plane, so that it may completeAt the intercommunication between two different networks.
From SRV6 network to the message transmissions direction of IP MPLS network, targeted carrier's network edge device needs to increaseIdentification to the SID of End.BTM type determines corresponding object message format conversion table, then root according to the SID in SRV6 messageCorresponding label information (inner label information and external label information) is added according to object message format conversion table;From IP MPLSTo the message transmissions direction of SRV6 network, targeted carrier's network edge device is needed to the inside in IP MPLS message networkLabel information is identified, corresponding object message format conversion table is determined according to inner label information, further according to object messageFormat conversion table adds corresponding external IP V6 information and/or section routes head information SRH;On a control level, can pass throughThe process content of above-mentioned all message format conversion tables is issued to while belonging to SRV6 network and IP MPLS network by controllerTargeted carrier's network edge device, to realize the intercommunication of SRV6 network Yu IP MPLS network.
Embodiment two:
The embodiment of the invention also provides the communication device of a kind of SRV6 network and IP MPLS network, the SRV6 network withThe communication device of IP MPLS network is mainly used for executing SRV6 network and IP provided by above content of the embodiment of the present inventionThe communication means of MPLS network below does SRV6 network provided in an embodiment of the present invention and the communication device of IP MPLS networkIt is specific to introduce.
Figure 10 is the schematic diagram of the communication device of a kind of SRV6 network provided in an embodiment of the present invention and IP MPLS network,As shown in Figure 10, the device mainly includes receiving module 10, determining module 20, conversion modules 30, in which:
Receiving module, for receiving the first message that the first carrier network edge device is sent in first network, whereinFirst network is SRV6 network or IP MPLS network;
Determining module turns for the object message format with the first message matching determining in default message format transformation warehouseChange table;
Conversion module, for the first message to be converted to corresponding second message according to object message format conversion table, andSecond message is sent to the second carrier network edge device of the second network, wherein the second network is SRV6 network or IPMPLS network, and the second network is different from first network.
In the prior art, when having intercommunication demand between across SRV6 network and IP MPLS network as more CE, it is necessary to occupyThe resources such as the IP address of middle PE, VRF, VSI, compared with network intercommunication method in the prior art, SRV6 provided by the inventionThe communication means of network and IP MPLS network, it is only necessary to be targeted carrier's network of intercommunication SRV6 network and IP MPLS networkDefault message format transformation warehouse is arranged in edge device, it will be able to will be passed in first network using targeted carrier's network edge deviceThe first defeated message is converted into the second message transmitted in the second network, in the IP for being not take up inter-carrier network edge deviceUnder the premise of the resources such as address, VRF, VSI, intercommunication demand of more CE between across SRV6 network and IP MPLS network is realized, delayThe technical issues of having solved SRV6 network in the prior art and the interoperability methods waste communication resource of IP MPLS network.
Further, if first network is SRV6 network, the second network is IP MPLS network, then the first message is SRV6Message;
Determining module includes:
First acquisition unit, the segment identification of purpose IP address in V6 information of external IP for obtaining SRV6 message;
Judging unit, for judging whether segment identification matches with the segment identification in segment identification library, wherein segment identification library packetThe segment identification of the network edge device containing targeted carrier;
First matching unit, if matching, segment identification is matched with default message format transformation warehouse, is obtained matchedMessage format conversion table, and using matched message format conversion table as object message format conversion table.
Further, conversion module includes:
First deletes unit, for deleting V6 information of external IP of SRV6 message and/or the section routing head of SRV6 messageInformation obtains IP MPLS midamble;
Second acquisition unit, for obtaining the label information in object message format conversion table, wherein label information packetInclude: external label information and inner label information, external label information indicate transmission road of second message in IP MPLS networkDiameter information, inner label information indicate the service type information of the second message demand in IP MPLS network;
First encapsulation unit, for label information to be encapsulated among IP MPLS according to the message format of IP MPLS networkIn message, the second message is obtained.
Further, if first network is IP MPLS network, the second network is SRV6 network, then the first message is IPMPLS message;
Determining module further include:
Third acquiring unit, for obtaining the inner label information of IP MPLS message;
Second matching unit is matched for matching inner label information with default message format transformation warehouseMessage format conversion table, and using matched message format conversion table as object message format conversion table.
Further, conversion module further include:
Second deletion unit obtains SRV6 for deleting the external label information and inner label information of IP MPLS messageMidamble;
4th acquiring unit, for obtaining V6 information of external IP and/or target report in object message format conversion tableSection in literary format conversion table routes head information;
Second encapsulation unit, for V6 information of external IP and/or section to be routed head according to the message format of SRV6 networkInformation encapsulation obtains the second message in SRV6 midamble.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extentPipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according toSo be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features intoRow equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solutionThe range of scheme.