CN101873246B - Method and device for controlling interface state of routing equipment - Google Patents

Method and device for controlling interface state of routing equipment Download PDF

Info

Publication number
CN101873246B
CN101873246B CN2010102050384A CN201010205038A CN101873246B CN 101873246 B CN101873246 B CN 101873246B CN 2010102050384 A CN2010102050384 A CN 2010102050384A CN 201010205038 A CN201010205038 A CN 201010205038A CN 101873246 B CN101873246 B CN 101873246B
Authority
CN
China
Prior art keywords
equipment interface
interface
tunnel
counter value
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.)
Expired - Fee Related
Application number
CN2010102050384A
Other languages
Chinese (zh)
Other versions
CN101873246A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2010102050384A priority Critical patent/CN101873246B/en
Publication of CN101873246A publication Critical patent/CN101873246A/en
Application granted granted Critical
Publication of CN101873246B publication Critical patent/CN101873246B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for controlling the interface state of routing equipment. The invention has the main technical scheme that the method comprises the following steps: carrying out route selection on channel target addresses configured by a first routing equipment interface corresponding to the current channel to determine a second routing equipment interface used for carrying the channel; updating the counter value corresponding to the first routing equipment interface according to the counter valve corresponding to the second routing equipment interface; and configuring the first routing equipment interface into a non-working state when the counter valve corresponding to the first routing equipment interface is determined to reach the set threshold value. According to the technical scheme, the multiple nested encapsulation of messages can be avoided at the source, and the operation efficiency of the routing equipment can be improved. In addition, the generation of the unlimited recursion nested channel can be effectively prevented, and the channel nesting can be realized in channels such as IPv4 over IPv4, IPv6 over IPv4, IPv4 over IPv6 and the like including the IPv4 protocols.

Description

A kind of method and device of controlling interface state of routing equipment
Technical field
The present invention relates to the tunneling technique field, relate in particular to a kind of method and device of controlling interface state of routing equipment.
Background technology
Tunneling technique is a kind of encapsulation technology that can realize that the IPv6 network communicates with one another in the IPv4 network; It utilizes a kind of procotol to transmit another kind of procotol; Be that a kind of procotol is encapsulated in the data message that other agreements produce in the message of oneself, then in transmission through network.Tunnel (Tunnel) is a virtual point-to-point connection, for the data message that encapsulates provides a transmission channel, need encapsulate and decapsulation the data message at the two ends in tunnel.Tunneling technique just is meant and comprises that data encapsulation, transmission reconciliation are encapsulated in interior overall process.
Fig. 1 is the sketch map in IPv6over IPv6 tunnel, and IPv6 private network 1 can not directly transmit data with IPv6 private network 2.These two private networks will be realized intercommunication, can promptly use IPv6 over IPv6 tunnel transmit the IPv6 protocol massages based on the IPv6 agreement through IPv6 public network transmission data, thereby reach the purpose that two private networks of IPv6 can mutual access.When message transmission, need the IPv6 protocol massages from private network be encapsulated, encapsulation format is as shown in Figure 2, promptly adds the IPv6 heading at private network IPv6 protocol massages.Fig. 3 is the sketch map in IPv6 over IPv4 tunnel, and IPv6 network 1 is two isolated networks with IPv6 network 2, can not directly transmit data.These two networks will be realized intercommunication, can pass through the IPv4 transmitted data on network, promptly use IPv6 over IPv4 tunnel to transmit the IPv6 protocol massages based on the IPv4 agreement, thereby reach the purpose that two isolated networks of IPv6 can mutual access.When message transmission, need the IPv6 protocol massages from isolated network be encapsulated, encapsulation format is as shown in Figure 4, promptly adds the IPv4 heading at private network IPv6 protocol massages.In Fig. 2 and encapsulation format shown in Figure 4, interior layer protocol is called passenger protocol, and outer layer protocol is called host-host protocol, and in the IPv6 over IPv4 tunnel as shown in Figure 4, IPv6 is a passenger protocol, and IPv4 is a host-host protocol.
The tunnel is nested; Promptly the host-host protocol in tunnel is simultaneously also as the situation of the passenger protocol in another one tunnel; Specifically as shown in Figure 5; Be the nested topological sketch map in tunnel, " IPv6 private network 1 " will be visited " IPv6 private network 3 ", needs to set up one " tunnel 2 " through " IPv6 private network 2 ".And " IPv6 private network 1 " will be visited " IPv6 private network 2 ", at first will pass through " IPv6 public network " foundation " tunnel 1 ".It is nested to go up the tunnel that just occurs at " RouterA (route A) " shown in Figure 5 like this.Encapsulation format when message transmission is as shown in Figure 6; Wherein, IPv6 message 601 is the innermost layer passenger protocol, and IPv6 heading 602 is both as the host-host protocol of internal layer passenger protocol; As the passenger protocol of outer host-host protocol, IPv6 heading 603 is the outermost layer host-host protocol again.
(for example Ethernet is 1500 bytes) that the outermost host-host protocol that the tunnel is nested, its message length are normally fixing, the nested number of plies that therefore can support is limited.And in the practical application, the too many nested number of plies can make the maximum transmission byte number of the passenger protocol of innermost layer diminish; Thereby cause burst, also possibly cause the burst of the IPv6 message that is in the intermediate layer, after the opposite end route in tunnel is received burst; Reorganization again; Regrouping process often consumes more cpu resource, and therefore, the too many nested number of plies can have a strong impact on router efficiency and performance.And because mistake appears in routing device configuration, the nested encapsulation that message is recycled causes the tunnel infinite recursion nested, makes the hurried decline of routing device performance, even can't operate as normal.
For fear of the problems referred to above, prior art has provided a kind of method that limits the nested number of plies, and this method adds a packages limits option in the IPv6 extension header, and general in innermost layer passenger's IPv6 head, this packages limits is arranged to 4.Behind the packed upward host-host protocol IPv6 head of message, the packages limits value among the passenger is subtracted 1, be filled up in the IPv6 extension header of host-host protocol; Along with nested encapsulation; This packages limits value will be subtracted into 0, abandons this message this moment, and sends Source Site transmission ICMP error message to message the earliest.
Though adopt technique scheme effectively to limit the nested number of plies, processing cost is very high.That is: if the nested tunnel (even infinite recursion is nested) of multilayer, the message of innermost layer has wanted packed after the good multilayer so, and system finds just that the nested number of plies surpasses and limited.And if at this moment exist a lot of messages to flow into this nested tunnel in the network, systematic function will descend, even can't operate as normal.And, adopt this technical scheme, owing to do not have the packages limits option in the IPv4 heading, therefore, the nested number of plies in tunnel in the tunnel of the uncontrollable IPv4 over of this technical scheme IPv4.
Summary of the invention
In view of this; The embodiment of the invention provides a kind of method of controlling interface state of routing equipment; Be used for solve adopting the nested implementation of existing tunnel, high and can not effectively be controlled in the IPv4 over IPv4 tunnel and carry out the nested problem in tunnel to message encapsulation process cost.
The embodiment of the invention realizes through following technical scheme:
An aspect according to the embodiment of the invention provides a kind of method of controlling interface state of routing equipment.
The method of the control interface state of routing equipment that provides according to the embodiment of the invention comprises:
Through the corresponding first via in current tunnel is carried out routing by the tunnel destination address that equipment interface disposes, confirm to be used to carry the secondary route equipment interface in said tunnel;
According to the corresponding Counter Value of confirming of said secondary route equipment interface, upgrade the said first via by the corresponding Counter Value of equipment interface;
When the Counter Value after confirming the renewal corresponding by equipment interface of the said first via reached setting threshold, disposing the said first via was non operating state by equipment interface.
According to another aspect of the embodiment of the invention, a kind of device of controlling interface state of routing equipment is provided also.
The device of the control interface state of routing equipment that provides according to the embodiment of the invention comprises:
Interface is confirmed the unit, is used for confirming to be used to carry the secondary route equipment interface in said tunnel through the corresponding first via in current tunnel is carried out routing by the tunnel destination address that equipment interface disposes;
The counter updating block is used for confirming the corresponding Counter Value of the definite secondary route equipment interface in unit according to said interface, upgrades the said first via by the corresponding Counter Value of equipment interface;
The state configuration unit is used for when the first via of confirming said counter updating block renewal reaches setting threshold by the corresponding Counter Value of equipment interface, and disposing the said first via is non operating state by equipment interface.
Above-mentioned at least one technical scheme that provides through the embodiment of the invention; Through the corresponding first via in current tunnel is carried out routing by the tunnel destination address that equipment interface disposes; Confirm to be used to carry the secondary route equipment interface in this tunnel; The Counter Value corresponding according to the secondary route equipment interface of confirming; Upgrade this first via by the corresponding Counter Value of equipment interface, and when confirming that the first via reaches setting threshold by the corresponding Counter Value of equipment interface, disposing this first via is non operating state by equipment interface.According to this technical scheme; Can in time that the counter that reaches threshold value is corresponding routing device interface configuration be non operating state; Thereby on the source, avoided the multinest encapsulation of message; On the basis of the nested number of plies in control tunnel, the invalid operation of avoiding routing device to carry out multiple message encapsulation, the operational paradigm of raising routing device.And; Can effectively prevent the generation in the nested tunnel of infinite recursion; Avoid the hurried decline of routing device performance even not available, and can be implemented in that to carry out the tunnel in the tunnel that IPv4 over IPv4, IPv6 over IPv4, IPv4 over IPv6 etc. comprise the IPv4 agreement nested.
Other features and advantages of the present invention will be set forth in specification subsequently, and, partly from specification, become obvious, perhaps understand through embodiment of the present invention.The object of the invention can be realized through the structure that in the specification of being write, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, is used to explain the present invention with the embodiment of the invention, is not construed as limiting the invention.In the accompanying drawings:
The IPv6 over IPv6 tunnel sketch map of Fig. 1 for providing in the background technology of the present invention;
Fig. 2 is the encapsulation format sketch map in the IPv6 over IPv6 tunnel that provides in the background technology of the present invention;
The IPv6 over IPv4 tunnel sketch map of Fig. 3 for providing in the background technology of the present invention;
Fig. 4 is the encapsulation format sketch map in the IPv6 over IPv4 tunnel that provides in the background technology of the present invention;
The tunnel nested topological sketch map of Fig. 5 for providing in the background technology of the present invention;
Fig. 6 is the encapsulation format sketch map of the tunnel that provides in the background technology of the present invention in nested;
The method flow diagram one of the control interface state of routing equipment that Fig. 7 provides for the embodiment of the invention;
The method flow diagram two of the control interface state of routing equipment that Fig. 8 provides for the embodiment of the invention;
Fig. 9 realizes the flow chart of interface state of routing equipment for what the embodiment of the invention provided based on Fig. 5;
The method flow diagram of the renewal interface state of routing equipment that Figure 10 provides for the embodiment of the invention;
The device sketch map one of the control interface state of routing equipment that Figure 11 provides for the embodiment of the invention;
The device sketch map two of the control interface state of routing equipment that Figure 12 provides for the embodiment of the invention;
The device sketch map three of the control interface state of routing equipment that Figure 13 provides for the embodiment of the invention;
The device sketch map four of the control interface state of routing equipment that Figure 14 provides for the embodiment of the invention.
Embodiment
In order to provide reduction to the processing cost of message encapsulation process and in IPv4 over IPv4 tunnel, carry out the nested implementation in tunnel; The embodiment of the invention provides a kind of method and device of controlling interface state of routing equipment; Below in conjunction with Figure of description the preferred embodiments of the present invention are described; Should be appreciated that preferred embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.And under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
According to the embodiment of the invention, a kind of method of controlling interface state of routing equipment at first is provided, as shown in Figure 7, this method mainly realizes through following steps:
Step 701, basis are carried out routing for the corresponding first via in current tunnel by the tunnel destination address that equipment interface disposes, and confirm to be used to carry the routing device interface (be conveniently follow-up differentiation, the interface of confirming is called the secondary route equipment interface) in this tunnel here.
Step 702, the Counter Value corresponding according to this secondary route equipment interface upgrade the first via by the corresponding Counter Value of equipment interface.
Step 703, judge whether the first via reaches setting threshold by the corresponding Counter Value of equipment interface, if, execution in step 704, if not, execution in step 705.
Step 704, to dispose this first via be non operating state by equipment interface.
In this step, the configuration first via is a non operating state by equipment interface, specifically comprises:
Change this first via by the corresponding state value of equipment interface, be about to the first via is updated to the non operating state correspondence by the state value of equipment interface state value.
This state value is used to identify the operating state of routing device interface; The corresponding relation of concrete operating state and state value can be provided with in advance; For example, when this state value was made as " TRUE ", this routing device interface was in running order; When this state value was made as " FALSE ", this routing device interface was in non operating state.In the practical application, when the corresponding state value of routing device interface was " UP ", this interface was in running order, and when the corresponding state value of routing device interface was " DOWN ", this interface was in non operating state.
Step 705, keep this first via in running order by equipment interface.
In the flow process shown in Figure 7; In order more effectively to control the state of routing device interface, before carrying out above-mentioned steps 702, promptly at the Counter Value corresponding according to the secondary route equipment interface; Upgrade before the Counter Value of the first via by the equipment interface correspondence; Also comprise the step of confirming secondary route equipment interface state, and when definite secondary route equipment interface is in running order, execution in step 702.
The purpose of carrying out above-mentioned steps is, guarantees the validity of the routing device interface in the current tunnel of carrying, promptly guarantees this first via effective by the renewal of equipment interface.
In the flow process shown in Figure 7; In order more effectively to control the state of routing device interface, before carrying out above-mentioned steps 702, promptly at the Counter Value corresponding according to the secondary route equipment interface; Upgrade before the Counter Value of the first via by the equipment interface correspondence; Also comprise the step of confirming secondary route equipment interface state, and when definite secondary route equipment interface is non operating state, further carry out following steps:
According to being of the tunnel destination address again routing of the corresponding first via in current tunnel, confirm to be used for the secondary route equipment interface of bearing tunnel by the equipment interface configuration.
Through the execution of this step, can guarantee the normal foundation in tunnel.
In the flow process shown in Figure 7; In order more effectively to control the state of routing device interface, before carrying out above-mentioned steps 702, promptly at the Counter Value corresponding according to the secondary route equipment interface; Upgrade before the Counter Value of the first via by the equipment interface correspondence, can also carry out following steps:
Confirm whether the first via reaches setting threshold by the corresponding Counter Value of equipment interface;
If not, execution in step 702 then;
If, then direct execution in step 704, promptly directly disposing the first via is non operating state by equipment interface.
The purpose of carrying out above step is, avoids the unnecessary operation to the renewal of first interface state of routing equipment, improves the efficient to the control of route equipment interface.And; Through confirming in advance whether the first via reaches setting threshold by the corresponding Counter Value of equipment interface; When reaching setting threshold; Need not to carry out counter and upgrade, is non operating state and directly dispose this first via by equipment interface, thereby has improved the efficient of the state of control routing device interface.
Above embodiment is the process of the network device interface state being controlled to according to the situation of setting up in current tunnel; This tunnel can be tunnel independently; For example; This tunnel can be the tunnel of setting up based on RouterA among Fig. 51, and the then corresponding first via is Interface tunnel 1 by equipment interface, and corresponding secondary route equipment interface is Interface FastEthernet 0/0; This tunnel also can be nested tunnel, and for example, this tunnel can be the tunnel of setting up based on RouterA among Fig. 52, and the corresponding first via is Interface tunnel 2 by equipment interface, and corresponding secondary route equipment interface is Interface tunnel 1.
In the practical application, the tunnel of between the network equipment, setting up comprises a plurality of, and the routing device interface control situation under corresponding a plurality of tunnels situation all can adopt technique scheme to realize.
Can realize control according to flow process shown in Figure 7 to the network device interface state; According to the embodiment of the invention, can also upgrade concrete configuration and upgrade the network device interface state, specifically as shown in Figure 8; Renewal process to the network device interface state comprises the steps:
The tunnel destination address that step 801, monitoring are disposed by equipment interface for the corresponding first via in current tunnel.
Step 802, judge whether this tunnel destination address changes, if execution in step 803 if not, is returned step 801.
Step 803, according to the tunnel destination address routing again after changing.
Step 804, upgrade the first via by the corresponding Counter Value of equipment interface according to the routing result.
In the step 804 of flow process shown in Figure 8, upgrade the said first via by the corresponding Counter Value of equipment interface, specifically comprise according to the routing result:
By the corresponding Counter Value of equipment interface, upgrade this first via according to the Third Road of confirming among the routing result that is used for bearing tunnel by the corresponding Counter Value of equipment interface.
Through the technique scheme that the embodiment of the invention provides, can be on the basis of the nested number of plies in control tunnel, the invalid operation of avoiding routing device to carry out multiple message encapsulation, the operational paradigm of raising routing device.And, can effectively prevent the generation in the nested tunnel of infinite recursion, avoid the hurried decline of routing device performance even not available, and can be applicable to that the tunnel of IPv4 over IPv4 is nested, mix nested with IPv6 over IPv4 overIPv4 various.
In order to understand the technical scheme that the embodiment of the invention provides better, below in conjunction with concrete application, the ins and outs related to the embodiment of the invention are described in detail:
With the nested topological relation in tunnel shown in Figure 5 is example; Be to connect between IPv6 private network 1 and the IPv6 private network 3; Need through IPv6 private network 2; Promptly set up a tunnel 2, and at first need to connect between IPv6 private network 1 and the IPv6 private network 2, promptly set up tunnel 1 through the IPv6 public network through IPv6 private network 2.Wherein, RouterA (being route A) is corresponding with IPv6 private network 1, and RouterB (being route B) is corresponding with IPv6 private network 2, and RouterC (being route C) is corresponding with IPv6 private network 3.
According to tunnel topological relation shown in Figure 5, the concrete control procedure of interface state of routing equipment is as shown in Figure 9, comprises step 901~step 906, and wherein, the concrete implementation of each step is following:
Step 901, establishment tunnel and configuration routing device interface.
In this step, routing device is a router, and wherein, RouterA is last, and the tunnel to occur nested, and this RouterA can dispose three interfaces, and configuration is as follows respectively:
Interface FastEthernet 0/0: this interface is the physical interface of RouterA, and its IPv6 address is 2000::1/64;
Interface tunnel 1: this interface is the logic interfacing of RouterA; Its IPv6 address is 2001::1/64; The tunnel destination address is 2000::2; This tunnel destination address is the RouterB corresponding address, and the tunnel destination address of this interface is set to the RouterB corresponding address, its purpose be to set up with RouterB between the tunnel be connected;
Interface tunnel 2: this interface is the logic interfacing of RouterA; Its IPv6 address is 2002::1/64; The tunnel destination address is 2005::3; This tunnel destination address is the RouterC corresponding address, and the tunnel destination address of this interface is set to the RouterC corresponding address, its purpose be to set up with RouterC between the tunnel be connected.
According to above interface configuration, the routing table among the RouterA is pointed to Interface tunnel 1 if dispose route 2005::0/64, and then expression arrival RouterC goes out from Interface tunnel 1 interface.
RouterB disposes three interfaces, and configuration is as follows respectively:
Interface FastEthernet 0/0: this interface is the physical interface of RouterB, and its IPv6 address is 2000::2/64, is used for linking to each other with RouterA;
Interface tunnel 1: this interface is the logic interfacing of RouterB; Its IPv6 address is 2001::2/64; The tunnel destination address is 2000::1; This tunnel destination address is the RouterA corresponding address, and the tunnel destination address of this interface is set to the RouterA corresponding address, its purpose be to set up with RouterA between the tunnel be connected;
Interface FastEther 0/1: this interface is the physical interface of RouterB, and its IPv6 address is 2005::1/64, is used for linking to each other with RouterC.
RouterC disposes two interfaces, and configuration is as follows respectively:
Interface FastEthernet 0/0: this interface is the physical interface of RouterC, and basic IPv6 address is 2005::3/64, is used for linking to each other with RouterB;
Interface tunnel 1: this interface is the logic interfacing of RouterC; Its IPv6 address is 2002::2/64; The tunnel destination address is 2001::1; This tunnel destination address is the RouterA corresponding address, and the tunnel destination address of this interface is set to the RouterA corresponding address, its purpose be to set up with RouterA between the tunnel be connected.
According to above interface configuration, the routing table among the RouterC is pointed to Interface FastEthernet 0/0 if dispose route 2001::0/64, and then expression arrival RouterA goes out from Interface FastEthernet 0/0 interface.
Above layoutprocedure can realize through the mode that system operators is imported configuration order; For example; For Interface tunnel X (expression tunnel X corresponding interface), configuration order comprises: be used for the IP address (IPv6 address or IPv4 address) at configuration interface under the Interfacetunnel X order, be used for the order of the destination address of configured tunneling technique under Interfacetunnel X.Behind the interface configuration tunnel destination address to route equipment, confirmed that promptly this tunnel and which routing device carry out the tunnel and be connected, and then confirmed of which the interface operation of this tunnel frame in which this routing device through routing.
Step 902, be routing device interface configuration counter.
In this step, to the counter of each interface configuration on the routing device, this counter is used to write down the nested number of plies in tunnel.For the counter of each routing device interface configuration carries out initialization when the interface configuration.
Wherein, the counting mode of counter can be provided with flexibly, for example; Can adopt the incremental manner counting, be about to Counter Value and be initialized as 0, at every turn when the corresponding interface of this counter is selected the operation tunnel; The value that this counter is corresponding adds 1, is incremented to setting threshold up to Counter Value; Also can adopt the mode of successively decreasing to count, be about to Counter Value and be initialized as setting threshold, when the corresponding interface of this counter was selected the operation tunnel, the value that this counter is corresponding subtracted 1 at every turn, was decremented to 0 up to the value of counter.The counting mode of counter can be provided with flexibly in the embodiment of the invention, enumerates no longer one by one here.
Step 903, according to the routing result of tunnel destination address, refresh counter value.
In this step, after the routing device interface configuration tunnel destination address of the situation of setting up, use the destination address of configuration to carry out routing, select promptly this tunnel is that frame moves on which interface for this tunnel correspondence according to the tunnel.Then that this interface is corresponding Counter Value adds 1 (counter adopts the situation of incremental manner counting) or subtracts 1 (situation that counter adopts the mode of successively decreasing to count), and will add Counter Value after 1 as the Counter Value of the corresponding routing device interface in this tunnel.
As shown in Figure 5; Suppose to confirm that according to the routing result Tunnel 1 (tunnel 1) operates on the InterfaceFastEthernet 0/0; Tunnel 2 (tunnel 2) is nested among the Tunnel 1; Be that Tunnel 2 operates on the Interface tunnel 1, the process of refresh counter is following as a result according to routing:
The tunnel destination address that disposes for Tunnel 1 corresponding interface Interface tunnel 1 is 2000::2; On RouterA, carry out routing according to this destination address; Confirm that according to the routing result Tunnel 1 goes out from Interface FastEthernet 0/0, promptly Tunnel 1 operates on the Interface FastEthernet 0/0;
The local address of tunnel purpose that disposes for Tunnel 2 corresponding interface Interface tunnel 2 is 2001::3; On RouterA, carry out routing according to this destination address; Confirm that according to the routing result Tunnel 2 goes out from Tunnel 1; Be that Tunnel 2 operates on the Interface tunnel 1, just Tunnel 2 is nested on the Tunnel 1.
According to above routing result; Interface tunnel 1 corresponding counter is exactly that InterfaceFastEthernet 0/0 corresponding Counter Value (the Counter Value perseverance that this interface is corresponding is 0) is added 1, is about to Interface tunnel 1 corresponding Counter Value and is updated to 1;
Interface tunnel 2 corresponding counters are exactly that Interface tunnel 1 corresponding Counter Value is added 1, equal 2, are about to Interface tunnel 2 corresponding Counter Values and are updated to 2.
According to the embodiment of the invention, Interface FastEthernet 0/0 is the physical interface of router, and its corresponding Counter Value does not upgrade, and all is set to initial value, and this initial value determines according to technical approach and the preset threshold that counter adopted.
Step 904, monitor the corresponding Counter Value of each routing device interface.
In this step; The routing device interface that respectively is used to move tunnel protocol is provided with the nested number of times of permission; And as the threshold value of this counter; According to counting mode and this threshold value of the corresponding counter of each routing device interface, this counter is monitored, promptly whether the count value of monitor counter reaches setting threshold (the nested number of times that this threshold setting is allowed to for this interface).
Step 905, judge whether Counter Value reaches setting threshold, if, execution in step 906, otherwise return step 904.
In this step, setting threshold is the limits value of the nested number of plies in tunnel that limits to the routing device interface corresponding with this counter.
Step 906, the corresponding routing device interface of counter that will arrive setting threshold place non operating state.
In this step, when the corresponding counter of routing device interface surpasses the threshold value that is provided with in advance, this routing device interface is placed non operating state.For example, can not surpass 1 if Interface tunnel 2 corresponding counters are set in advance, at this moment, Interface tunnel 2 corresponding Counter Values are 2, have surpassed preset threshold value, then Interface Tunnel 2 are placed non operating state.
Above step 901~step 906 has constituted in the embodiment of the invention flow process to route equipment interface State Control independently.
Through above-mentioned flow process to route equipment interface State Control; For the routing device interface is provided with counter and Counter Value is monitored; Because Interface Tunnel 2 is in non operating state; Therefore routing device Router A can't send to Tunnel 2 with message, thereby has avoided the multinest encapsulation of message from the source.And in the prior art scheme; Be earlier message to be delivered among the Tunnel 2, after accomplishing by Tunnel 2 encapsulation, give Tunnel 1 encapsulation; And, encapsulation judges whether message surpasses the nested number of plies after accomplishing; If the nested number of plies that surpass to limit, dropping packets then, this has strengthened the burden of routing device undoubtedly.
In the embodiment of the invention; After the routing device interface is placed non operating state; Configuration information that further can each network interface is safeguarded the state of route equipment interface, particularly, can realize the maintenance to interface state of routing equipment through the mode that the tunnel destination address is monitored; Shown in figure 10, comprise following process:
Step 1001, monitoring are the tunnel destination address of each routing device interface configuration.
In this step, the routing device interface of monitoring comprises in running order routing device interface, also comprises the routing device interface that is set to non operating state.
Whether step 1002, the tunnel destination address that is judged as each routing device interface configuration have renewal, if, execution in step 1003, otherwise return step 1001;
Step 1003, to the tunnel destination address routing again after upgrading, and upgrade the corresponding Counter Value of corresponding routing device interface according to the routing result.
In this step 1003, the process of upgrading the corresponding Counter Value of corresponding routing device interface according to the routing result is consistent with the concrete execution principle of above-mentioned steps 903, repeats no more here.
Above step 1001~step 1003 has constituted the flow process of in the embodiment of the invention interface state of routing equipment being monitored independently.
Through the above-mentioned flow process that interface state of routing equipment is monitored, can upgrade in time to the corresponding counter of each routing device, and in time adjust the corresponding state of each routing device interface.
Particularly,, confirm to satisfy the condition that Interface tunnel 2 is activated (it is in running order by the non operating state configuration to be about to Interface tunnel 2), promptly satisfy through the above-mentioned flow process that interface state of routing equipment is monitored:
The count value of the counter that this interface is corresponding is updated to smaller or equal to preset value.
For example; According to above-mentioned embodiment to route equipment interface State Control; Interface tunnel 2 is owing to its corresponding Counter Value is 2 to be set to non operating state; The threshold value of the counter of Interface tunnel 2 correspondences is 1, then under following situation, needs to upgrade the value of this counter:
User's free hand modification tunnel destination address causes that routing device reselects the outlet of tunnel purpose.In Fig. 5; If the tunnel destination address of Tunnel 2 is modified as the address of RouterB; Routing result according to this destination address routing confirms that interface becomes Interface Fast Ethernet 0/0; At this moment, the counter that Interface tunnel2 is corresponding just is that 0 of FastEthernet 0/0 adds 1, and promptly upgrading Interface tunnel 2 corresponding Counter Values is 1.
In the embodiment of the invention; After the routing device interface was placed non operating state, configuration information that further can each network interface safeguarded the state of route equipment interface, particularly; Can realize maintenance through the mode that the routing table in the router is monitored to interface state of routing equipment; Particularly, the monitoring first via is by the routing table in the routing device of equipment interface place, when this routing table changes; According to the routing table routing again after changing, and upgrade the first via by the corresponding Counter Value of equipment interface according to the routing result.
Generally speaking, during routing table change in router, can change the tunnel purpose interface of this router simultaneously, thereby need reselect the routing device interface that is used for bearing tunnel.For example; Among Fig. 5; If tunnel that the tunnel destination address is 2001::3/128; Be Tunnel 2, Interface Fast Ethernet 0/0 is pointed in the outlet in this tunnel, and the tunnel purpose interface of Tunnel 2 also can be adjusted into Interface FastEthernet 0/0 automatically so; This moment, Interface tunnel 2 corresponding counters just were that the corresponding Counter Value of Fast Ethernet0/0 (the Counter Value perseverance that this interface is corresponding is 0) adds 1, were about to the corresponding Counter Value of Interface tunnel2 and were updated to 1.
According to the technique scheme that the embodiment of the invention provides,, can also avoid the generation in the nested tunnel of infinite recursion effectively controlling on the basis of the interface state of routing equipment number of plies; For example; The network manager is because misoperation is configured to 2002::2 with the tunnel destination address of Tunnel 1, and the tunnel purpose interface of Tunnel 1 will be chosen to Tunnel 2 so, and the tunnel purpose interface of Tunnel 2 is Tunnel 1; According to the prior art scheme, the nested tunnel of infinite recursion has just appearred.And according to the embodiment of the invention; The counter that Interface tunnel 1 and Interface tunnel 2 are corresponding respectively will constantly add up up; When surpassing the nested number of plies threshold limit that is provided with in advance; Interface tunnel 1 and Interface tunnel 2 will be set to non operating state simultaneously, and remind network Guan Yuan to judge whether configuration error.
According to the embodiment of the invention, the nested number of plies threshold limit for the corresponding counter of each routing device interface is provided with can preferably be set to 4, i.e. the recommendation of RFC 2473 (Generic Packet Tunneling in IPv6Specification).Be made as 1, the actual realization principle that does not influence the embodiment of the invention for the convenient threshold value of describing the counter that Interface tunnel 2 is corresponding among the above embodiment.
The technique scheme that the embodiment of the invention provides is understood for convenient; With the routing device is that router is that example describes; Be to be understood that; The technical scheme that the embodiment of the invention provides is equally applicable to equipment such as switch, fire compartment wall, realizes that specifically principle is similar with the principle that adopts router to realize, repeats no more here.
Correspondingly, corresponding with the said method flow process, the embodiment of the invention also provides a kind of device of controlling interface state of routing equipment, and is shown in figure 11, and this device comprises:
Interface is confirmed unit 1101, counter updating block 1102 and state configuration unit 1103;
Wherein:
Interface is confirmed unit 1101, is used for confirming to be used to carry the secondary route equipment interface in said tunnel according to carrying out routing for the corresponding first via in current tunnel by the tunnel destination address that equipment interface disposes;
Counter updating block 1102 is used for confirming the corresponding Counter Value of secondary route equipment interface unit 1101 confirmed to upgrade the said first via by the corresponding Counter Value of equipment interface according to interface;
State configuration unit 1103 is used for when the first via of confirming 1102 renewals of counter updating block reaches setting threshold by the corresponding Counter Value of equipment interface, and disposing the said first via is non operating state by equipment interface.
Shown in figure 12, in the preferred embodiment of the present invention, device shown in Figure 11 can further include:
Status determining unit 1104 is used for confirming the state of said secondary route equipment interface;
Counter updating block 1102, specifically when status determining unit 1104 confirmed that the secondary route equipment interface is in running order, the Counter Value corresponding according to said secondary route equipment interface upgraded the said first via by the corresponding Counter Value of equipment interface;
Interface is confirmed unit 1101, also is used for when said status determining unit confirms that said secondary route equipment interface is in non operating state, according to being the tunnel destination address again routing of the corresponding first via in current tunnel by the equipment interface configuration.
Shown in figure 13, in the preferred embodiment of the present invention, device shown in Figure 11 can further include:
Threshold value is confirmed unit 1105, is used for confirming whether the said first via reaches setting threshold by the corresponding Counter Value of equipment interface;
Said counter updating block 1102, the definite result who specifically confirms unit 1105 in threshold value is not for the time, and the Counter Value corresponding according to said secondary route equipment interface upgrades the said first via by the corresponding Counter Value of equipment interface.
State configuration unit 1103, the definite result who specifically confirms unit 1105 in threshold value is when being, directly disposing the said first via is non operating state by equipment interface.
Shown in figure 14, in the preferred embodiment of the present invention, device shown in Figure 11 can further include:
Address monitoring unit 1106 is used to monitor the tunnel destination address that is disposed by equipment interface into the corresponding first via in current tunnel; And, monitor the said first via by the routing table in the routing device of equipment interface place;
Correspondingly, interface is confirmed unit 1101, also is used in said address monitoring unit and monitors said tunnel destination address when changing, according to the tunnel destination address routing again after changing; Or in said address monitoring unit monitors said routing table when changing, according to the routing table routing again after changing;
Counter updating block 1102 also is used for confirming that according to said interface the routing result of unit upgrades the said first via by the corresponding Counter Value of equipment interface.
In the preferred embodiment of the present invention, the counter updating block 1102 that device shown in Figure 14 comprises specifically is used for:
By the corresponding Counter Value of equipment interface, upgrade the said first via according to the Third Road of confirming among the routing result that is used to carry said tunnel by the corresponding Counter Value of equipment interface.
In the preferred embodiment of the present invention, the state configuration unit 1103 that device shown in Figure 11 comprises specifically is used for:
When the first via of confirming said counter updating block renewal reaches setting threshold by the corresponding Counter Value of equipment interface, the said first via is updated to the corresponding state value of non operating state by the corresponding state value of equipment interface.
Should be appreciated that unit that the device of the control interface state of routing equipment that above embodiment provides comprises is merely the logical partitioning that the function that realizes according to this device is carried out, and in the practical application, can carry out the stack or the fractionation of said units.And the function that the device of the control interface state of routing equipment that above embodiment provides is realized is corresponding one by one with the method flow of the control interface state of routing equipment that the foregoing description provides; The more detailed handling process that realizes for this device; In said method embodiment, done detailed description, be not described in detail here.
Above-mentioned at least one technical scheme that provides through the embodiment of the invention; According to carrying out routing by the tunnel destination address that equipment interface disposes for the corresponding first via in current tunnel; Confirm to be used to carry the secondary route equipment interface in this tunnel; The Counter Value corresponding according to the secondary route equipment interface of confirming; Upgrade this first via by the corresponding Counter Value of equipment interface, and when confirming that the first via reaches setting threshold by the corresponding Counter Value of equipment interface, disposing this first via is non operating state by equipment interface.According to this technical scheme; Can in time that the counter that reaches threshold value is corresponding routing device interface configuration be non operating state; Thereby on the source, avoided the multinest encapsulation of message; On the basis of the nested number of plies in control tunnel, the invalid operation of avoiding routing device to carry out multiple message encapsulation, the operational paradigm of raising routing device.And; Can effectively prevent the generation in the nested tunnel of infinite recursion; Avoid the hurried decline of routing device performance even not available, and can be implemented in that to carry out the tunnel in the tunnel that IPv4 over IPv4, IPv6 over IPv4, IPv4 over IPv6 etc. comprise the IPv4 agreement nested.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. a method of controlling interface state of routing equipment is characterized in that, comprising:
Through the corresponding first via in current tunnel is carried out routing by the tunnel destination address that equipment interface disposes, confirm to be used to carry the secondary route equipment interface in said tunnel;
According to the corresponding Counter Value of confirming of said secondary route equipment interface, upgrade the said first via by the corresponding Counter Value of equipment interface;
When the Counter Value after confirming the renewal corresponding by equipment interface of the said first via reached setting threshold, disposing the said first via was non operating state by equipment interface, wherein, and the nested number of times of said setting threshold for allowing.
2. the method for claim 1 is characterized in that, the Counter Value corresponding according to said secondary route equipment interface upgrades before the Counter Value of the said first via by the equipment interface correspondence, also comprises:
Confirm the state of said secondary route equipment interface;
If said secondary route equipment interface is in running order, then carry out the Counter Value corresponding according to said secondary route equipment interface, upgrade the step of the said first via by the corresponding Counter Value of equipment interface;
If said secondary route equipment interface is in non operating state; Then after carrying out routing again through the first via corresponding by the tunnel destination address of equipment interface configuration and confirming to be used to carry the secondary route equipment interface in said tunnel to current tunnel; The Counter Value that execution is corresponding according to said secondary route equipment interface upgrades the step of the said first via by the corresponding Counter Value of equipment interface.
3. the method for claim 1 is characterized in that, at the Counter Value corresponding according to said secondary route equipment interface, upgrades before the Counter Value of the said first via by the equipment interface correspondence, also comprises:
Confirm whether the said first via reaches setting threshold by the corresponding Counter Value of equipment interface;
If not, then carry out the Counter Value corresponding, upgrade the step of the said first via by the corresponding Counter Value of equipment interface according to said secondary route equipment interface;
If then directly carrying out the said first via of configuration is the step of non operating state by equipment interface.
4. the method for claim 1 is characterized in that, according to the corresponding Counter Value of confirming of said secondary route equipment interface, upgrade the said first via by the corresponding Counter Value of equipment interface after, also comprise:
The tunnel destination address that monitoring is disposed by equipment interface for the corresponding first via in current tunnel; Monitoring said tunnel destination address when changing; According to the tunnel destination address routing again after changing, and upgrade the said first via by the corresponding Counter Value of equipment interface according to the routing result; Or
Monitor the said first via by the routing table in the routing device of equipment interface place, when said routing table changes,, and upgrade the said first via by the corresponding Counter Value of equipment interface according to the routing result according to the routing table routing again after changing.
5. method as claimed in claim 4 is characterized in that, upgrades the said first via by the corresponding Counter Value of equipment interface according to the routing result, comprising:
By the corresponding Counter Value of equipment interface, upgrade the said first via according to the Third Road of confirming among the routing result that is used to carry said tunnel by the corresponding Counter Value of equipment interface.
6. a device of controlling interface state of routing equipment is characterized in that, comprising:
Interface is confirmed the unit, is used for confirming to be used to carry the secondary route equipment interface in said tunnel through the corresponding first via in current tunnel is carried out routing by the tunnel destination address that equipment interface disposes;
The counter updating block is used for confirming the corresponding Counter Value of the definite secondary route equipment interface in unit according to said interface, upgrades the said first via by the corresponding Counter Value of equipment interface;
The state configuration unit; Be used for when the first via of confirming said counter updating block renewal reaches setting threshold by the corresponding Counter Value of equipment interface; Disposing the said first via is non operating state by equipment interface, wherein, and the nested number of times of said setting threshold for allowing.
7. device as claimed in claim 6 is characterized in that, also comprises:
Status determining unit is used for confirming the state of said secondary route equipment interface;
Said counter updating block, specifically when said status determining unit confirmed that said secondary route equipment interface is in running order, the Counter Value corresponding according to said secondary route equipment interface upgraded the said first via by the corresponding Counter Value of equipment interface;
Said interface is confirmed the unit; Also be used for when said status determining unit confirms that said secondary route equipment interface is in non operating state; Through the corresponding first via in current tunnel is carried out routing again by the tunnel destination address that equipment interface disposes, confirm to be used to carry the secondary route equipment interface in said tunnel.
8. device as claimed in claim 6 is characterized in that, also comprises:
Threshold value is confirmed the unit, is used for confirming whether the said first via reaches setting threshold by the corresponding Counter Value of equipment interface;
Said counter updating block, the definite result who specifically confirms the unit in said threshold value is not for the time, and the Counter Value corresponding according to said secondary route equipment interface upgrades the said first via by the corresponding Counter Value of equipment interface;
Said state configuration unit, the definite result who specifically confirms the unit in said threshold value is when being, disposing the said first via is non operating state by equipment interface.
9. device as claimed in claim 6 is characterized in that, also comprises:
The address monitoring unit is used for after said counter updating block upgrades the said first via Counter Value corresponding by equipment interface, monitoring the tunnel destination address that is disposed by equipment interface into the corresponding first via in current tunnel; And, monitor the said first via by the routing table in the routing device of equipment interface place;
Said interface is confirmed the unit, also is used in said address monitoring unit and monitors said tunnel destination address when changing, according to the tunnel destination address routing again after changing; Or in said address monitoring unit monitors said routing table when changing, according to the routing table routing again after changing;
Said counter updating block also is used for confirming that according to said interface the routing result of unit upgrades the said first via by the corresponding Counter Value of equipment interface.
10. device as claimed in claim 9 is characterized in that, said counter updating block specifically is used for:
By the corresponding Counter Value of equipment interface, upgrade the said first via according to the Third Road of confirming among the routing result that is used to carry said tunnel by the corresponding Counter Value of equipment interface.
CN2010102050384A 2010-06-11 2010-06-11 Method and device for controlling interface state of routing equipment Expired - Fee Related CN101873246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102050384A CN101873246B (en) 2010-06-11 2010-06-11 Method and device for controlling interface state of routing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102050384A CN101873246B (en) 2010-06-11 2010-06-11 Method and device for controlling interface state of routing equipment

Publications (2)

Publication Number Publication Date
CN101873246A CN101873246A (en) 2010-10-27
CN101873246B true CN101873246B (en) 2012-09-12

Family

ID=42997922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102050384A Expired - Fee Related CN101873246B (en) 2010-06-11 2010-06-11 Method and device for controlling interface state of routing equipment

Country Status (1)

Country Link
CN (1) CN101873246B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166846B (en) * 2013-03-27 2016-11-09 杭州华三通信技术有限公司 A kind of message forwarding method and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582834A (en) * 2008-05-16 2009-11-18 华为技术有限公司 Updating method, equipment and system of forwarding table during service transmission of Ethernet
CN101695047A (en) * 2009-10-26 2010-04-14 中兴通讯股份有限公司 Method and switch for realizing forwarding of dynamic tunnel message

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582834A (en) * 2008-05-16 2009-11-18 华为技术有限公司 Updating method, equipment and system of forwarding table during service transmission of Ethernet
CN101695047A (en) * 2009-10-26 2010-04-14 中兴通讯股份有限公司 Method and switch for realizing forwarding of dynamic tunnel message

Also Published As

Publication number Publication date
CN101873246A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
JP6508256B2 (en) Communication system, communication device, control device, control method and program of packet flow transfer route
CN1258940C (en) Method and system for mobile ip nodes in heterogeneous networks
ES2602084T3 (en) Method and system for creating, modifying and deleting a distributed virtual CPE
EP2869509B1 (en) Method, apparatus, and system for processing data packet
US20170264496A1 (en) Method and device for information processing
CN104796344B (en) Method and system for realizing message forwarding based on SDN, Openflow switch and server
EP2652923B1 (en) Communication path control system, path control device, communication path control method, and path control program
EP2916499B1 (en) Ip packet processing method, apparatus and network system
CN105530259A (en) Message filtering method and equipment
CN101577711B (en) Method for realizing network security platform of IP software router by utilizing VLAN technology
EP2780815B1 (en) Selective ip address allocation for probes that do not have assigned ip addresses
US10122654B2 (en) Divided hierarchical network system based on software-defined networks
CN105337853A (en) Instance establishing method and apparatus in software defined network (SDN)
WO2013172391A1 (en) Multi-tenant system, switch, controller, and packet transfer method
US20140313898A1 (en) Method for delivering emergency traffic in software defined networking networks and apparatus for performing the same
CN108259356B (en) Routing control method and device
CN104717142B (en) Method for carrying out mobility management based on OpenFlow protocol
CN108206783B (en) Address configuration method and device in software defined network system
CN101873246B (en) Method and device for controlling interface state of routing equipment
CN103731370A (en) Switch caching method capable of effectively reducing network packet loss rate in intra-domain reconfiguration process
WO2013141193A1 (en) Communication system, control device, communication device, information-relaying method, and program
EP2600568B1 (en) Relay server and relay communication system
KR20160003603A (en) Methods for changing an authority of control for a controller in multiple controller environment
JP3614006B2 (en) COMMUNICATION SYSTEM USING Asymmetrical Route and Communication Method Utilizing Asymmetrical Route
KR101576518B1 (en) Method and apparatus for expansion and utilization of openflow protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee before: Fujian Star Network Ruijie Networks Co.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120912

Termination date: 20210611

CF01 Termination of patent right due to non-payment of annual fee