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.