CN105743762B - Message forwarding method and equipment in a kind of VPLS network - Google Patents

Message forwarding method and equipment in a kind of VPLS network Download PDF

Info

Publication number
CN105743762B
CN105743762B CN201610176568.8A CN201610176568A CN105743762B CN 105743762 B CN105743762 B CN 105743762B CN 201610176568 A CN201610176568 A CN 201610176568A CN 105743762 B CN105743762 B CN 105743762B
Authority
CN
China
Prior art keywords
strategy
forwarding
path
forwarding table
policybased routing
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.)
Active
Application number
CN201610176568.8A
Other languages
Chinese (zh)
Other versions
CN105743762A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201610176568.8A priority Critical patent/CN105743762B/en
Publication of CN105743762A publication Critical patent/CN105743762A/en
Application granted granted Critical
Publication of CN105743762B publication Critical patent/CN105743762B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing

Landscapes

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

Abstract

The invention discloses message forwarding methods in a kind of VPLS network, the described method includes: the network equipment receives message, judge whether the message is configured with policybased routing, if so, then judging whether the message meets the matching strategy that the policybased routing forwarding table of the policybased routing creation includes;If the message meets the matching strategy, the network equipment determines next-hop network equipment according to the corresponding forwarding strategy of the matching strategy, and according to the Virtual Private LAN Service VPLS forwarding information encapsulated message recorded in the forwarding strategy;The network equipment to the next-hop network device forwards encapsulate after message.The present invention also provides a kind of network equipments, the invention has the benefit that the network implementations demand of point-to-point and point-to-multipoint message forwarding can be realized without the additional networking configuration for increasing the network equipment or construction complexity in existing VPLS network.Using policybased routing pass-through mode of the present invention, forward efficiency is searched higher than MAC Address, improves the forward efficiency of message.

Description

Message forwarding method and equipment in a kind of VPLS network
Technical field
The invention belongs to data communication field more particularly to a kind of message forwarding method applied in VPLS network and set It is standby.
Background technique
VPLS (Virtual Private LAN Service, Virtual Private LAN Service) is mentioned in common network A kind of L2VPN (Virtual Private Network, the Virtual Private Network) business supplied.VPLS makes the user being geographically isolated Website can pass through MAN (Metropolitan Area Network, Metropolitan Area Network (MAN)) or WAN (Wide Area Network, wide area Net) it is connected, service provider is using VPLS technology in MPLS (Multi-Protocol Label Switching, multi-protocols mark Label exchange) Ethernet bridge is simulated for user network on backbone network, add VLAN to mark based on MAC Address or MAC Address Know to search forward-path, if specific forward-path cannot be found, by the way of broadcast, is set to other all websites Preparation is delivered newspaper text.
Since the message forwarding in VPLS network is using the routing mode of similar local area network, have the disadvantage in that
1, for current VPLS network, if routing success, can only realize point-to-point forwarding, if routing fails, only It can broadcasting packet.It can not achieve the message pass-through mode of point-to-multipoint, i.e., the message that will be received is sent to specified multiple set respectively It is standby;
2, it can not achieve similar VPWS (Virtual Private Wire Service) function and do not need routing, directly Point-to-point forwarding;
3, forward-path can only can not be determined according to other modes such as the priority of message according to target MAC (Media Access Control) address routing;
4, by the way of MAC Address lookup, routing efficiency is lower.
Current VPLS network is widely used, and the demand to the various applications of the network of VPLS is also not limited solely to simple mould Quasi- local area network forwarding, currently realizes the message forwarding side of the point-to-point of point-to-multipoint or similar VPWS function in VPLS network Formula, it is main to be realized using the mode of a VPLS example is created for each point-to-point or point-to-multipoint network demand, If identical using the incoming interface that multiple VPLS examples E-Packet, the VLAN carried according to message mark is needed to judge to report VPLS example belonging to text.The method not only needs to configure multiple VPLS forwarding instances, it is also necessary to draw for different VPLS examples Divide different VLAN marks, therefore is also required to the equipment of access VPLS network and plans different VLAN marks for the data flow of demand Know, networking planning is complex, is not easy to extend.
To sum up, due to the intrinsic forwarding defect of VPLS network, to realize that point-to-point or point-to-multipoint network implementations needs It asks, it is necessary to increase corresponding configuration and ancillary equipment and plan using the access device in VPLS network, realize difficulty It is more with limiting, it is unfavorable for VPLS network extension.And the target MAC (Media Access Control) address routing of message is used in current VPLS network, Since MAC Address has 48, forward efficiency is very low.In addition, also not according to the priority of message in current VPLS network Equal attributes determine the effective means of message forwarding path, also limit VPLS network and more flexibly provide and new apply function Energy.
Summary of the invention
The present invention provides the implementation methods and device of policybased routing in a kind of VPLS network, to solve due to VPLS network Intrinsic forwarding defect, to realize point-to-point or point-to-multipoint network implementations demand, it is necessary to increase corresponding configuration with And ancillary equipment and plan using the access device in VPLS network, realize difficulty and limit more, it is unfavorable for VPLS network The problem of extension, applies policybased routing in VPLS network, realizes point-to-point or point-to-multipoint network implementations demand.
The main purpose of the present invention is to provide message forwarding methods in a kind of VPLS network, which comprises
The network equipment receives message, judges whether the message is configured with policybased routing, if so, then judging that the message is The matching strategy that the no policybased routing forwarding table for meeting the policybased routing creation includes, the policybased routing forwarding table includes institute Matching strategy and the corresponding forwarding strategy of the matching strategy are stated, the forwarding strategy includes outbound path information;
If the message meets the matching strategy, the network equipment is according to the corresponding forwarding plan of the matching strategy Slightly determine next-hop network equipment, and according to the Virtual Private LAN Service VPLS forwarding information recorded in the forwarding strategy Encapsulated message;
The network equipment to the next-hop network device forwards encapsulate after message.
Further, before the network equipment receives message, the method also includes: the network equipment is tactful road By configurations match strategy and configuration forwarding strategy, the matching strategy include specify message to be matched enter path;Described turn Hair strategy includes for the specified one or more effective outbound paths of message;
The policybased routing creation includes the policybased routing forwarding table of matching strategy and forwarding strategy.
Further, the network equipments configuration matching strategy specifically includes:
The network equipment is that message to be matched is specified into path, and the matching strategy is stored in matching strategy In corresponding policybased routing;
To it is described enter path validity judge, when it is described enter path it is effective when, judge be in the policybased routing It is no to be configured with forwarding strategy;
When being configured with forwarding strategy in the policybased routing, and when the outbound path that configures in the forwarding strategy is effective, root According to the configuration information construction strategy route forwarding table of the matching strategy and the forwarding strategy.
Further, the network equipments configuration forwarding strategy specifically includes:
The network equipment is the specified one or more effective outbound paths of message in forwarding strategy, and by the forwarding plan It is slightly stored in corresponding policybased routing;
The validity of the outbound path is judged, when the outbound path is effective, judge be in the policybased routing It is no to be configured with matching strategy;
When in the policybased routing be configured with matching strategy, and configured in the matching strategy enter path it is effective when, root It is forwarded according to the configuration information construction strategy route forwarding table of the matching strategy and the forwarding strategy, and in the policybased routing VPLS forwarding table information is recorded in table.
Further, to it is described enter path validity carry out judgement specifically include: in VPLS forwarding information management module Middle traversal enters path with the presence or absence of corresponding VPLS forwarding table described in searching, and if it exists, then it is described enter path it is effective, it is otherwise described It is invalid to enter path;
Judgement is carried out to the validity of the outbound path to specifically include: being traversed and is searched in VPLS forwarding information management module The outbound path whether there is corresponding VPLS forwarding table, and if it exists, then the outbound path is effective, otherwise the outbound path without Effect.
Further, the method also includes: response VPLS forwarding table change message, update policybased routing forwarding table, tool Body includes:
After the network equipment receives VPLS forwarding table change message, according to the identification information of policybased routing in VPLS example to matching The policybased routing set in the VPLS example is judged, when the policybased routing forwarding table of policybased routing creation includes , and the matching identical as the forward-path specified in the VPLS forwarding table change message that enter path configured in matching strategy When the outbound path configured in the corresponding forwarding strategy of strategy is effective, enter path according to the judgement of VPLS forwarding table change message Validity situation of change updates policybased routing forwarding table;And/or
After the network equipment receives VPLS forwarding table change message, according to the identification information of policybased routing in VPLS example to matching The policybased routing set in the VPLS example is judged, when the policybased routing forwarding table of policybased routing creation includes The outbound path configured in forwarding strategy is identical as the forward-path specified in the VPLS forwarding table change message, and the forwarding Configured in the corresponding matching strategy of strategy enter path it is effective when, the outbound path is judged according to VPLS forwarding table change message Validity situation of change updates policybased routing forwarding table.
Another object of the present invention, which also resides in, provides a kind of network equipment, and the equipment includes:
Message receiving module, for receiving message;
Policybased routing identification module, for judging whether the message is configured with policybased routing, if so, then trigger policy road Judge whether the message meets that the policybased routing forwarding table of the policybased routing creation includes by forwarding table management module With strategy, the policybased routing forwarding table includes the matching strategy and the corresponding forwarding strategy of the matching strategy, The forwarding strategy includes outbound path information;
Policybased routing forwarding table management module, for judging whether the message meets the strategy of the policybased routing creation The matching strategy that route forwarding table includes;It is corresponding according to the matching strategy if the message meets the matching strategy Forwarding strategy determines next-hop network equipment, and triggers message sending module and forwarded according to the VPLS recorded in the forwarding strategy Information encapsulation message;
Message sending module, the message after being encapsulated for the network equipment to the next-hop network device forwards.
Further, the equipment further include:
Configuration module, for including for policybased routing configurations match strategy and configuration forwarding strategy, the matching strategy That specifies message to be matched enters path;The forwarding strategy includes for the specified one or more effective outbound paths of message;
VPLS forwarding information management module is used for Management VPLS forwarding table information;
Policybased routing forwarding table management module is also used to create the policybased routing forwarding including matching strategy and forwarding strategy Table.
Further, the configuration module includes:
Matching strategy configuration module, message to be matched is specified into path for being in matching strategy, and by the matching Strategy is stored in corresponding policybased routing;
Path Recognition module, for it is described enter path Effective judgement, when it is described enter path it is effective when, triggering forwarding Whether tactful identification module judges in the policybased routing configured with forwarding strategy;
Forwarding strategy identification module, for judging whether configured with forwarding strategy in the policybased routing, when the strategy When being configured with forwarding strategy in routing, then triggers Path Recognition module and judge the effective of the outbound path configured in the forwarding strategy Property;
The Path Recognition module is also used to judge the validity of the outbound path, when the outbound path is effective When, trigger policy route forwarding table management module is according to the configuration information construction strategy of the matching strategy and the forwarding strategy Route forwarding table;
The policybased routing forwarding table management module, is also used to the configuration according to the matching strategy and the forwarding strategy Information creating policybased routing forwarding table.
Further, the configuration module further include:
Forwarding strategy configuration module, for being the specified one or more effective outbound paths of message in forwarding strategy, and will The forwarding strategy is stored in corresponding policybased routing;
The Path Recognition module is also used to judge the validity of the outbound path, when the outbound path is effective When, trigger in the routing of matching strategy identification module determination strategy whether be configured with matching strategy;
Matching strategy identification module, for whether being configured with matching strategy in determination strategy routing, when the policybased routing In be configured with matching strategy when, triggering Path Recognition module judge that is configured in the matching strategy enters the validity in path;
The Path Recognition module, be also used to it is described enter path validity judge, when it is described enter path it is effective When, trigger policy route forwarding table management module is according to the configuration information construction strategy of the matching strategy and the forwarding strategy Route forwarding table;
The policybased routing forwarding table management module, is also used to the configuration according to the matching strategy and the forwarding strategy Information creating policybased routing forwarding table, and VPLS forwarding table information is recorded in the policybased routing forwarding table.
Further, the Path Recognition module specifically includes: for judging to entering route availability in VPLS Traversal is searched into path with the presence or absence of corresponding VPLS forwarding table in forwarding information management module, and if it exists, enters path described in then Effectively, otherwise it is described enter path it is invalid;
The Path Recognition module specifically includes: for judging outbound path validity in VPLS forwarding information pipe It manages traversal in module and searches the outbound path with the presence or absence of corresponding VPLS forwarding table, and if it exists, then the outbound path is effective, no Then the outbound path is invalid.
Further, the configuration module further includes VPLS forwarding table change message respond module, is turned for responding VPLS Change message is delivered, policybased routing forwarding table is updated;
The policybased routing identification module, after being also used to receive VPLS forwarding table change message, according to the VPLS example second best plan The identification information slightly routed judges policybased routing of the configuration in the VPLS example;
The Path Recognition module is also used to the matching plan when the policybased routing forwarding table of policybased routing creation includes Configured in slightly to enter path identical as forward-path specified in the VPLS forwarding table change message, and the matching strategy pair When the outbound path configured in the forwarding strategy answered is effective, trigger policy route forwarding table management module changes according to VPLS forwarding table The validity situation of change for entering path described in message judgement, updates policybased routing forwarding table;
The policybased routing forwarding table management module is also used to enter path according to the judgement of VPLS forwarding table change message Validity situation of change, update policybased routing forwarding table;
And/or
The Path Recognition module is also used to the forwarding plan when the policybased routing forwarding table of policybased routing creation includes The outbound path configured in slightly is identical as the forward-path specified in the VPLS forwarding table change message, and the forwarding strategy pair Configured in the matching strategy answered enter path it is effective when, trigger policy route forwarding table management module according to VPLS forwarding table change Message judges the validity situation of change of the outbound path, updates policybased routing forwarding table;
The policybased routing forwarding table management module is also used to judge the outbound path according to VPLS forwarding table change message Validity situation of change, update policybased routing forwarding table.
The invention has the benefit that without the additional increase network equipment or constructing complexity in existing VPLS network Networking configuration, can be realized the network implementations demand of point-to-point and point-to-multipoint message forwarding.Use strategy of the present invention Routing forwarding mode, forward efficiency are searched higher than MAC Address, improve the forward efficiency of message.
Detailed description of the invention
Fig. 1 is message forwarding method flow chart in VPLS network of the embodiment of the present invention;
Fig. 2 is the method flow diagram of configurations match strategy in policybased routing of the embodiment of the present invention;
Fig. 3 is the method flow diagram that the embodiment of the present invention configures forwarding strategy in policybased routing;
Fig. 4 is the method flow diagram of response VPLS forwarding table change information of the embodiment of the present invention;
Fig. 5 is the structural block diagram of equipment described in the embodiment of the present invention;
Fig. 6 is the structural block diagram of configuration module described in the embodiment of the present invention.
Specific embodiment
For technical solution of the present invention is more clearly understood, the present invention is described in further details now in conjunction with attached drawing:
Implementation strategy of the embodiment of the present invention routes the application in Virtual Private LAN Service VPLS network, the network equipment Need according to the characteristics of VPLS network in policybased routing configurations match strategy and configuration forwarding strategy.The matching strategy packet Include specify message to be matched enter path;The forwarding strategy includes for the specified one or more effective outbound paths of message.Strategy The configuration sequence of the matching strategy of routing and forwarding strategy in no particular order, to improve forward efficiency, avoids meaningless operation, strategy The path specified in the matching strategy and forwarding strategy of routing must just will create policybased routing and turn in VPLS network all effectively It delivers.In message forwarding, preferentially strategically route processing message if it fails to match for policybased routing reuses former VPLS Pass-through mode forwarding.
Embodiment 1
The specific implementation for applying the message forwarding method in VPLS network that the present invention will now be explained with reference to the accompanying drawings Process,
As shown in Figure 1, in the present invention, after the network equipment receives message, preferential implementation strategy route processing, if do not matched Policybased routing is set, then is E-Packeted according to former VPLS forwarding process.The specific implementation step of implementation strategy route processing includes:
Step 101, the network equipment receive message, judge whether the message is configured with policybased routing, if so, then judging institute It states whether message meets the matching strategy that the policybased routing forwarding table of the policybased routing creation includes, specifically includes: searching institute The matching strategy that the policybased routing forwarding table of policybased routing creation includes is stated, determine the VPLS message enters the whether same plan in path Slightly the route forwarding table matching strategy that includes to enter path identical, if they are the same, then the matching that strategically route forwarding table includes Other occurrence matching messages of strategy, if matching or other occurrences being not configured, the message meets the matching plan Slightly.In this step, it if policybased routing is not configured, is forwarded according to former VPLS forwarding process.
The policybased routing forwarding table includes the matching strategy and the corresponding forwarding strategy of the matching strategy, The forwarding strategy includes outbound path information.
If step 102, the message meet the matching strategy, the network equipment is corresponding according to the matching strategy Forwarding strategy determine next-hop network equipment, and according to the VPLS forwarding information encapsulated message recorded in the forwarding strategy; Wherein, if there are a plurality of effective outbound paths for the forwarding strategy of policybased routing forwarding table, by message one by one to every outlet Diameter E-Packets.In this step, it if the message does not meet the matching strategy, is forwarded according to former VPLS forwarding process.
Step 103, the network equipment to the next-hop network device forwards encapsulate after message.
Before the network equipment receives message, the method also includes: the network equipment is policybased routing configuration With strategy and configuration forwarding strategy, the matching strategy include specify message to be matched enter path;The forwarding strategy packet It includes as the specified one or more effective outbound paths of message;
The policybased routing creation includes the policybased routing forwarding table of matching strategy and forwarding strategy.
The matching strategy of the network equipment configuration strategic routing, as shown in Fig. 2, specifically including:
What step 201, the network equipment specified message to be matched in matching strategy enters path and occurrence, and will be described It is stored in corresponding policybased routing with strategy.It needs exist for that the VPLS of message to be matched is first specified to enter path, further matches Other occurrences for entering the message that path receives from specified VPLS are set, other occurrences can be message priority, message length Deng.Wherein have to configure message to be matched enters path, other occurrences can not be configured, if not configuring other matchings , then it represents that it is matched from specifying the message received into path to default.
Enter the validity in path described in step 202, judgement.Further, the validity that path is entered described in judgement specifically includes: Traversal searches VPLS forwarding information management module, if entering path pair described in can finding in VPLS forwarding information management module The VPLS forwarding table answered, then it is described enter path it is effective, go to step 203, otherwise it is described enter path it is invalid, go to step 205.
If step 203, it is described enter path it is effective, judge whether be configured with forwarding strategy in the policybased routing.If It is not configured, then goes to step 205, otherwise, judge the validity of outbound path configured in forwarding strategy, if the outbound path is invalid, 205 are then gone to step, if the outbound path is effective, goes to step 204.
Step 204, according to the configuration information of the matching strategy and the forwarding strategy, construction strategy route forwarding table.
Step 205, record matching strategy enter path the state of validity and exit processing.
The matching strategy of Utilization strategies routing in embodiments of the present invention, may be implemented to provide diversified routing mode, For example forward-path or dropping packets are specified according to information such as network congestion, the priority of message, length, extend VPLS industry The business scope of application.
To be configured with the forward-path that the message configuration of the matching strategy of policybased routing is specified, it is possible to specify one or more Item, if one specified, message can be sent to the specified forward-path of this, realize point-to-point message forwarding with this;If Specify a plurality of, then message can be sent to specified a plurality of forward-path respectively, and the message forwarding of point-to-multipoint is realized with this.
The forwarding strategy of network equipment configuration strategic routing, as shown in figure 3, specifically including:
Step 301 is the specified one or more effective outbound paths of message in forwarding strategy, and the forwarding strategy is protected There are in corresponding policybased routing.If specifying multiple outbound paths, forwarding process needs to send one to each effective outbound path Part message.
Step 302, the validity for judging the outbound path.Further, judge that the validity of the outbound path specifically includes: Traversal searches VPLS forwarding information management module, if can find the outbound path pair in VPLS forwarding information management module The VPLS forwarding table answered, then the outbound path is effective, goes to step 303, and otherwise the outbound path is invalid, goes to step 305.Into one Step, if determining that the corresponding VPLS of outbound path for finding forwarding strategy configuration turns by searching for VPLS forwarding information management module It delivers, then records VPLS forwarding table information, including outgoing label, outgoing interface etc. in policybased routing forwarding table.
If step 303, the outbound path are effective, whether matching strategy is configured in determination strategy routing.If do not matched Set, then go to step 305, otherwise, judge to configure in matching strategy enters the validity in path, if it is described enter path it is invalid, turn Step 305, if it is described enter path it is effective, go to step 304.
Step 304, according to the configuration information of matching strategy and forwarding strategy, construction strategy route forwarding table.
Step 305, the outbound path the state of validity for recording forwarding strategy simultaneously exit processing.
In embodiments of the present invention, matching strategy configures the path that enters of VPLS forward-path, and forwarding strategy configures VPLS and turns The outbound path in path is sent out, the VPLS forward-path of matching strategy and the forwarding strategy configuration of policybased routing is divided into two kinds, one is AC (Attachment Circuit accesses circuit), one is PW (Pseudo Wire, virtual link), the forward-path includes Enter path and outbound path, AC or the corresponding forwarding of PW of same policybased routing configuration are only created in VPLS forwarding table management module Table, just think to be arranged in policybased routing enter, outbound path it is effective, just will create corresponding policybased routing forwarding table and therefore work as AC Or PW validity, when changing, VPLS forwarding table management module needs to send forward-path update event, policybased routing needs Response, and update policybased routing forwarding table.
The matching strategy and forwarding strategy of configuration strategy routing are therefore, complete with building VPLS network without sequencing requirement At policybased routing with postponing, when there are when VPLS forwarding table information change, need to notice VPLS to policybased routing to turn for VPLS network Change message is delivered, what the matching strategy and forwarding strategy that policybased routing needs are routed with this determination strategy configured enters path, goes out The validity in path, and then update policybased routing forwarding table.
The network equipment responds VPLS forwarding table change message, updates policybased routing forwarding table, as shown in figure 4, specifically including:
Step 401, the network equipment receive VPLS forwarding table change message, are believed according to the mark of policybased routing in VPLS example Breath finds the policybased routing configured in the VPLS example.It further include that strategy road is enabled in VPLS example before this step By the affiliated policybased routing mark of VPLS forwarding table management module records VPLS example.
The matching strategy that step 402, the policybased routing forwarding table of the inquiry policybased routing creation include, judges the plan Whether what the matching strategy that slightly route forwarding table includes configured enters path with the forwarding road specified in VPLS forwarding table change message Diameter is identical, if it is described enter path it is identical with the forward-path specified in VPLS forwarding table change message, go to step 403, it is no Then go to step 405.
Step 403, the corresponding forwarding strategy of the inquiry matching strategy judge the outbound path of the forwarding strategy configuration Validity goes to step 304 if the outbound path is effective, otherwise, goes to step 305.
Step 404, judged according to VPLS forwarding table change message matching strategy configuration enter route availability situation of change Policybased routing forwarding table is updated, if entering route availability from becoming in vain effectively, according to matching for matching strategy and forwarding strategy Confidence breath, construction strategy route forwarding table.If entering route availability from effectively becoming invalid, the tactful road created is deleted By forwarding table.Then, 405 are gone to step.
The forwarding strategy that step 405, the policybased routing forwarding table of the inquiry policybased routing creation include, judgement is described to be turned Whether the outbound path of hair strategy configuration is identical with the forward-path specified in VPLS forwarding table change message, if the outbound path It is identical with the forward-path specified in VPLS forwarding table change message, then 407 are entered step, otherwise, enters step 406.
Step 406, woth no need to processing forward strategy, exit processing.
Step 407, the corresponding matching strategy of the inquiry forwarding strategy judge the path that enters of the matching strategy configuration Validity, if it is described enter path it is effective, enter step 409, if it is described enter path it is invalid, indicate there is currently no corresponding plans Slightly route forwarding table does not need to update policybased routing forwarding table.Then enter step 408.
Step 408, the outbound path the state of validity for recording forwarding strategy simultaneously exit processing.
Step 409, the outbound path validity situation of change that forwarding strategy configuration is judged according to VPLS forwarding table change message Update policybased routing forwarding table, if outbound path validity from becoming in vain effectively, according to matching for matching strategy and forwarding strategy Confidence breath, construction strategy route forwarding table.If outbound path validity deletes the tactful road created from effectively becoming invalid By forwarding table.Further, if the outbound path validity of forwarding strategy configuration is effectively forwarded in policybased routing from becoming in vain VPLS forwarding table information, including outgoing label, outgoing interface etc. are recorded in table.
Embodiment 2
As shown in figure 5, the embodiment of the present invention also provides a kind of network equipment, the equipment includes:
Message receiving module 50, for receiving message;
Policybased routing identification module 51, for judging whether the message is configured with policybased routing, if so, then trigger policy Route forwarding table management module judges whether the message meets the policybased routing forwarding table that the policybased routing creates and include Matching strategy,
Policybased routing forwarding table management module 52, for judging whether the message meets the plan of the policybased routing creation Omit the matching strategy that route forwarding table includes;It is corresponding according to the matching strategy if the message meets the matching strategy Forwarding strategy determine next-hop network equipment, and trigger message sending module according to the VPLS recorded in the forwarding strategy turn Photos and sending messages encapsulated message;
Message sending module 53, the message after being encapsulated for the network equipment to the next-hop network device forwards.
The equipment further include: configuration module 54 is used for as policybased routing configurations match strategy and configures forwarding strategy, The matching strategy include specify message to be matched enter path;The forwarding strategy includes specifying one or more to have for message Imitate outbound path;
VPLS forwarding information management module 55 is used for Management VPLS forwarding table information;
Policybased routing forwarding table management module 52 is also used to create the policybased routing including matching strategy and forwarding strategy and turns It delivers.
As shown in fig. 6, the configuration module 54 includes:
Matching strategy configuration module 541, for being that message to be matched is specified into path, and incites somebody to action described in matching strategy It is stored in corresponding policybased routing with strategy;
Path Recognition module 542, for it is described enter path validity judge, when it is described enter path it is effective when, Whether triggering forwarding strategy identification module judges in the policybased routing configured with forwarding strategy;
Forwarding strategy identification module 543, for judging whether configured with forwarding strategy in the policybased routing, when the plan When being slightly configured with forwarding strategy in routing, triggering Path Recognition module judges the effective of the outbound path configured in the forwarding strategy Property;
The Path Recognition module 542, judges for the validity to the outbound path, when the outbound path is effective When, trigger policy route forwarding table management module is according to the configuration information construction strategy routing forwarding of matching strategy and forwarding strategy Table;
The policybased routing forwarding table management module 52 is also used to matching according to the matching strategy and the forwarding strategy Confidence ceases construction strategy route forwarding table.
The configuration module 54 further include:
Forwarding strategy configuration module 544, for being the specified one or more effective outbound paths of message in forwarding strategy, and The forwarding strategy is stored in corresponding policybased routing;
The Path Recognition module 542 is also used to judge the validity of the outbound path, when the outbound path has When effect, whether matching strategy is configured in triggering 545 determination strategy of matching strategy identification module routing;
Matching strategy identification module 545, for whether being configured with matching strategy in determination strategy routing, when the tactful road When being configured with matching strategy in, what triggering Path Recognition module 542 judged to configure in the matching strategy enters the effective of path Property;
Path Recognition module 542, the validity for entering path described in judgement judge, if entering path described in has When effect, then trigger policy route forwarding table management module 52 is according to the configuration information construction strategy road of matching strategy and forwarding strategy By forwarding table;
The policybased routing forwarding table management module 52 is also used to matching according to the matching strategy and the forwarding strategy Confidence ceases construction strategy route forwarding table, and VPLS forwarding table information is recorded in the policybased routing forwarding table.
The Path Recognition module 542 specifically includes for judging to entering route availability: forwarding and believe in VPLS Traversal is searched into path with the presence or absence of corresponding VPLS forwarding table in breath management module, and if it exists, then it is described enter path it is effective, it is no It is invalid to enter path described in then;
The Path Recognition module 542 specifically includes for judging outbound path validity: forwarding and believe in VPLS It ceases traversal in management module and searches the outbound path with the presence or absence of corresponding VPLS forwarding table, and if it exists, then the outbound path has Effect, otherwise the outbound path is invalid.
The configuration module 54 further includes VPLS forwarding table change message respond module 546, for responding VPLS forwarding table Change message updates policybased routing forwarding table;
The policybased routing identification module 51, after being also used to receive VPLS forwarding table change message, according in VPLS example The identification information of policybased routing judges policybased routing of the configuration in the VPLS example;
The Path Recognition module 542 is also used to when the policybased routing forwarding table of policybased routing creation includes With, and the matching plan identical as the forward-path specified in the VPLS forwarding table change message that enter path configured in strategy When the outbound path configured in slightly corresponding forwarding strategy is effective, trigger policy route forwarding table management module 52 is forwarded according to VPLS The validity situation of change for entering path described in the judgement of table change message, updates policybased routing forwarding table;
When the policybased routing creation policybased routing forwarding table include matching strategy in configure enter path with it is described When the forward-path difference specified in VPLS forwarding table change message, the policybased routing forwarding table of the policybased routing creation is judged Including forwarding strategy in the outbound path that configures it is whether identical with the forward-path specified in VPLS forwarding table change message.
The policybased routing forwarding table management module 52 is also used to judge the approach according to VPLS forwarding table change message The validity situation of change of diameter updates policybased routing forwarding table.Herein, if it is described enter route availability from become in vain effectively, Then according to the configuration information construction strategy route forwarding table of the matching strategy of policybased routing and forwarding strategy;If it is described enter path have Effect property then deletes the policybased routing forwarding table created from effectively becoming invalid.
And/or the Path Recognition module 542, it is also used to the policybased routing forwarding table packet when policybased routing creation The outbound path configured in the forwarding strategy included and the forward-path specified in the VPLS forwarding table change message are identical and described Configured in the corresponding matching strategy of forwarding strategy enter path it is effective when, trigger policy route forwarding table management module is according to VPLS Forwarding table change message judges the validity situation of change of the outbound path, updates policybased routing forwarding table;
The policybased routing forwarding table management module 52 is also used to judge the outlet according to VPLS forwarding table change message The validity situation of change of diameter, update policybased routing forwarding table, if the outbound path validity from become in vain effectively, basis The matching strategy of policybased routing and the configuration information construction strategy route forwarding table of forwarding strategy, and in policybased routing forwarding table Record VPLS forwarding table information;If the outbound path validity deletes the policybased routing created from effectively becoming invalid Forwarding table.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (8)

1. message forwarding method in a kind of VPLS network, which is characterized in that the described method includes:
The network equipment is that policybased routing configurations match strategy and configuration forwarding strategy, the matching strategy are to be matched including specifying Message enters path;The forwarding strategy includes for the specified one or more effective outbound paths of message;The policybased routing creation Policybased routing forwarding table comprising matching strategy and forwarding strategy;
The network equipment receives message, judges whether the message is configured with policybased routing, if so, then judging whether the message accords with Close the matching strategy that the policybased routing forwarding table of the policybased routing creation includes;
If the message meets the matching strategy, the network equipment is true according to the corresponding forwarding strategy of the matching strategy Determine the next-hop network equipment, and is encapsulated according to the Virtual Private LAN Service VPLS forwarding information recorded in the forwarding strategy Message;
The network equipment to the next-hop network device forwards encapsulate after message;
Wherein, the network equipments configuration forwarding strategy specifically includes:
The network equipment is the specified one or more effective outbound paths of message in forwarding strategy, and the forwarding strategy is protected There are in corresponding policybased routing;
The validity of the outbound path is judged, when the outbound path is effective, judges whether match in the policybased routing It is equipped with matching strategy;
When in the policybased routing be configured with matching strategy, and configured in the matching strategy enter path it is effective when, according to institute The configuration information construction strategy route forwarding table of matching strategy and the forwarding strategy is stated, and in the policybased routing forwarding table Record VPLS forwarding table information.
2. the method according to claim 1, wherein the network equipments configuration matching strategy specifically includes:
The network equipment is that message to be matched is specified into path, and the matching strategy is stored in correspondence in matching strategy Policybased routing in;
To it is described enter path validity judge, when it is described enter path it is effective when, judge whether match in the policybased routing It is equipped with forwarding strategy;
When being configured with forwarding strategy in the policybased routing, and when the outbound path that configures in the forwarding strategy is effective, according to institute State the configuration information construction strategy route forwarding table of matching strategy and the forwarding strategy.
3. method according to claim 1 or 2, which is characterized in that
To it is described enter path validity carry out judgement specifically include: in VPLS forwarding information management module traversal search described in Enter path with the presence or absence of corresponding VPLS forwarding table, and if it exists, then it is described enter path it is effective, otherwise it is described enter path it is invalid;
It carries out judgement to the validity of the outbound path to specifically include: described in traversal is searched in VPLS forwarding information management module Outbound path whether there is corresponding VPLS forwarding table, and if it exists, then the outbound path is effective, and otherwise the outbound path is invalid.
4. the method according to claim 1, wherein the method also includes: response VPLS forwarding table variation disappears Breath updates policybased routing forwarding table, specifically includes:
After the network equipment receives VPLS forwarding table change message, existed according to the identification information of policybased routing in VPLS example to configuration Policybased routing in the VPLS example is judged, when the matching that the policybased routing forwarding table of policybased routing creation includes , and the matching strategy identical as the forward-path specified in the VPLS forwarding table change message that enter path configured in strategy When the outbound path configured in corresponding forwarding strategy is effective, enter the effective of path according to the judgement of VPLS forwarding table change message Property situation of change, update policybased routing forwarding table;And/or
After the network equipment receives VPLS forwarding table change message, existed according to the identification information of policybased routing in VPLS example to configuration Policybased routing in the VPLS example is judged, when the forwarding that the policybased routing forwarding table of policybased routing creation includes The outbound path configured in strategy is identical as the forward-path specified in the VPLS forwarding table change message, and the forwarding strategy Configured in corresponding matching strategy enter path it is effective when, the effective of the outbound path is judged according to VPLS forwarding table change message Property situation of change, update policybased routing forwarding table.
5. a kind of network equipment, which is characterized in that the equipment includes:
Configuration module, for being policybased routing configurations match strategy and configuration forwarding strategy, the matching strategy includes specified Message to be matched enters path;The forwarding strategy includes for the specified one or more effective outbound paths of message;
VPLS forwarding information management module is used for Management VPLS forwarding table information;
Policybased routing forwarding table management module, for creating the policybased routing forwarding table including matching strategy and forwarding strategy;
Message receiving module, for receiving message;
Policybased routing identification module, for judging whether the message is configured with policybased routing, if so, then trigger policy routing turns It delivers management module and judges whether the message meets the matching plan that the policybased routing forwarding table of the policybased routing creation includes Slightly;
Policybased routing forwarding table management module, is also used to judge whether the message meets the tactful road of the policybased routing creation The matching strategy for including by forwarding table;If the message meets the matching strategy, according to corresponding turn of the matching strategy Hair strategy determines next-hop network equipment, and triggers message sending module according to the VPLS forwarding letter recorded in the forwarding strategy Cease encapsulated message;
Message sending module, the message after being encapsulated for the network equipment to the next-hop network device forwards;
Wherein, the configuration module includes: forwarding strategy configuration module, Path Recognition module and matching strategy identification module,
The forwarding strategy configuration module, for being the specified one or more effective outbound paths of message in forwarding strategy, and will The forwarding strategy is stored in corresponding policybased routing;
The Path Recognition module, judges for the validity to the outbound path, when the outbound path is effective, triggering Whether matching strategy is configured in the routing of matching strategy identification module determination strategy;
The matching strategy identification module, for whether being configured with matching strategy in determination strategy routing, when the policybased routing In be configured with matching strategy when, triggering Path Recognition module judge that is configured in the matching strategy enters the validity in path;
The Path Recognition module, be also used to it is described enter path validity judge, when it is described enter path it is effective when, touching Policybased routing forwarding table management module is sent out to be routed according to the configuration information construction strategy of the matching strategy and the forwarding strategy Forwarding table;
Policybased routing forwarding table management module, for creating plan according to the configuration information of the matching strategy and the forwarding strategy Slightly route forwarding table, and VPLS forwarding table information is recorded in the policybased routing forwarding table.
6. equipment according to claim 5, which is characterized in that the configuration module further include matching strategy configuration module and Forwarding strategy identification module,
The matching strategy configuration module, message to be matched is specified into path for being in matching strategy, and by the matching Strategy is stored in corresponding policybased routing;
The Path Recognition module, be also used to it is described enter path Effective judgement, when it is described enter path it is effective when, triggering turn Tactful identification module is sent out whether to judge in the policybased routing configured with forwarding strategy;
The forwarding strategy identification module, for judging whether configured with forwarding strategy in the policybased routing, when the strategy When being configured with forwarding strategy in routing, then triggers Path Recognition module and judge the effective of the outbound path configured in the forwarding strategy Property;
The Path Recognition module is also used to judge the validity of the outbound path, when the outbound path is effective, touching Policybased routing forwarding table management module is sent out to be routed according to the configuration information construction strategy of the matching strategy and the forwarding strategy Forwarding table;
The policybased routing forwarding table management module, is also used to the configuration information according to the matching strategy and the forwarding strategy Construction strategy route forwarding table.
7. equipment according to claim 5 or 6, which is characterized in that
The Path Recognition module specifically includes for judging to entering route availability: managing mould in VPLS forwarding information Traversal is searched into path with the presence or absence of corresponding VPLS forwarding table in block, and if it exists, then it is described enter path it is effective, otherwise it is described enter Path is invalid;
The Path Recognition module specifically includes for judging outbound path validity: managing mould in VPLS forwarding information Traversal, which searches the outbound path, in block whether there is corresponding VPLS forwarding table, and if it exists, then the outbound path is effective, otherwise institute It is invalid to state outbound path.
8. equipment according to claim 5, which is characterized in that the configuration module further includes VPLS forwarding table change message Respond module updates policybased routing forwarding table for responding VPLS forwarding table change message;
The policybased routing identification module, after being also used to receive VPLS forwarding table change message, according to road tactful in VPLS example By identification information policybased routing of the configuration in the VPLS example is judged;
The Path Recognition module is also used to when in the matching strategy that the policybased routing forwarding table of policybased routing creation includes Configuration to enter path identical as forward-path specified in the VPLS forwarding table change message, and the matching strategy is corresponding When the outbound path configured in forwarding strategy is effective, trigger policy route forwarding table management module is according to VPLS forwarding table change message Enter the validity situation of change in path described in judgement, updates policybased routing forwarding table;
The policybased routing forwarding table management module is also used to enter having for path according to the judgement of VPLS forwarding table change message Effect property situation of change, updates policybased routing forwarding table;
And/or
The Path Recognition module is also used to when in the forwarding strategy that the policybased routing forwarding table of policybased routing creation includes The outbound path of configuration is identical as the forward-path specified in the VPLS forwarding table change message, and the forwarding strategy is corresponding Configured in matching strategy enter path it is effective when, trigger policy route forwarding table management module is according to VPLS forwarding table change message Judge the validity situation of change of the outbound path, updates policybased routing forwarding table;
The policybased routing forwarding table management module is also used to judge having for the outbound path according to VPLS forwarding table change message Effect property situation of change, updates policybased routing forwarding table.
CN201610176568.8A 2016-03-25 2016-03-25 Message forwarding method and equipment in a kind of VPLS network Active CN105743762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610176568.8A CN105743762B (en) 2016-03-25 2016-03-25 Message forwarding method and equipment in a kind of VPLS network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610176568.8A CN105743762B (en) 2016-03-25 2016-03-25 Message forwarding method and equipment in a kind of VPLS network

Publications (2)

Publication Number Publication Date
CN105743762A CN105743762A (en) 2016-07-06
CN105743762B true CN105743762B (en) 2019-10-25

Family

ID=56251527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610176568.8A Active CN105743762B (en) 2016-03-25 2016-03-25 Message forwarding method and equipment in a kind of VPLS network

Country Status (1)

Country Link
CN (1) CN105743762B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291151B (en) * 2020-11-18 2022-07-12 迈普通信技术股份有限公司 Message forwarding method, device, network equipment and storage medium
CN116418723A (en) * 2021-12-30 2023-07-11 腾讯科技(深圳)有限公司 Method and device for updating routing policy, related equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4606249B2 (en) * 2005-05-18 2011-01-05 富士通株式会社 Information processing method and router
CN100561978C (en) * 2006-04-26 2009-11-18 华为技术有限公司 A kind of strategy route device and method
CN104486229B (en) * 2014-12-24 2017-09-29 迈普通信技术股份有限公司 A kind of method and apparatus for realizing the forwarding of VPN message
CN104780103B (en) * 2015-04-14 2018-05-08 新华三技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN105743762A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
US8416787B2 (en) Method, system and apparatus for implementing L2VPN between autonomous systems
CN100563190C (en) Realize the method and system of hierarchical virtual private switch service
CN107040462A (en) Method for routing and intermediate router
CN104243270B (en) A kind of method and apparatus for establishing tunnel
CN102137024B (en) Message processing method, exit routing device and border routing device
EP1811728B1 (en) Method, system and device of traffic management in a multi-protocol label switching network
CN102413060B (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN104871483A (en) IP multicast service join process for MPLS-based virtual private cloud networking
CN102195844B (en) Method and equipment for managing forwarding table entry
JP2003051844A (en) User communication device, edge device, and packet relaying method
CN107070789A (en) The flow black hole of active active PBB EVPN redundancies is avoided and rapid fusion
CN110798403A (en) Communication method, communication device and communication system
CN106341423A (en) Message processing method and device
EP2897328B1 (en) Method, system and apparatus for establishing communication link
CN103795630A (en) Message transmitting method and device of label switching network
CN105743762B (en) Message forwarding method and equipment in a kind of VPLS network
US20190007279A1 (en) Control apparatus, communication system, virtual network management method, and program
CN106713130A (en) Routing table updating method, EVPN control equipment and EVPN system
CN100502400C (en) Double-attach/multi-attach logical packet network method and supplier equipment
EP2832055B1 (en) Pseudowire groups in a packet switched network
CN103634210B (en) Find the method and apparatus of the opposite end PE equipment of VPLS example
US8817648B2 (en) Pseudowire extended group messaging in a packet switched network
CN103095578B (en) Routing iinformation control method in MPLS L3VPN network and PE equipment
CN109756409A (en) Bridge-connection transmitting method
JP2017175522A (en) Network system, control device, method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Applicant after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: No. 16, nine Xing Avenue, Chengdu high tech Zone, Sichuan Province

Applicant before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.