CN100527686C - Method and device for restraining virtual local area network interface state change - Google Patents

Method and device for restraining virtual local area network interface state change Download PDF

Info

Publication number
CN100527686C
CN100527686C CNB2006101610787A CN200610161078A CN100527686C CN 100527686 C CN100527686 C CN 100527686C CN B2006101610787 A CNB2006101610787 A CN B2006101610787A CN 200610161078 A CN200610161078 A CN 200610161078A CN 100527686 C CN100527686 C CN 100527686C
Authority
CN
China
Prior art keywords
area network
local area
interface
virtual local
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2006101610787A
Other languages
Chinese (zh)
Other versions
CN101197697A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006101610787A priority Critical patent/CN100527686C/en
Publication of CN101197697A publication Critical patent/CN101197697A/en
Application granted granted Critical
Publication of CN100527686C publication Critical patent/CN100527686C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method of restraining the change of virtual local area network interface state and a device thereof and belongs to the network management field. The invention solves the problems of routing concussion and poor effect of active-standby equipment which are caused by the switch of the active-standby equipment when the active-standby equipment has high reliable standby application. The invention provides a method of informing a downstream business module of a stable interface state through restraining the change of the virtual local area network interface state; when the virtual local area network interface receives a first interface state change application, an interface state keeping function is started and a preset threshold is set; within the preset threshold, the virtual local area network interface replaces and stores the latest interface state change application; when reaching the preset threshold, the virtual local area network interface sends an interface state change notification to the downstream business module. The invention also provides a device for restraining the change of virtual local area network interface state which comprises a storage module, an interface state view module, a check module, an interface state change module and a state change notification sending module.

Description

A kind of method and apparatus that suppresses the virtual local area network interface state variation
Technical field
The present invention relates to field of network management, particularly a kind of method and apparatus that suppresses the virtual local area network interface state variation.
Background technology
VLAN (Virtual LAN-VLAN) technology has solved the problem that switch can't limit broadcasting.VLAN logically is divided into a plurality of broadcast domains with the LAN of a physics, just a plurality of VLAN.Can direct communication between the main frame in the VLAN, and direct mutual communication between VLAN, broadcasting packet is limited in the VLAN like this, has guaranteed problems such as information security.
In order to realize the intercommunication mutually between VLAN, two kinds of execution modes of main at present employing.First kind of execution mode is for realizing the mutual communication between VLAN by the deployment router: generally, LAN links to each other with the Ethernet interface of router by the Ethernet interface of switch, as shown in Figure 1, suppose on switch, to have divided VLAN2 and VLAN3, in order to realize communicating by letter between VLAN2 and VLAN3, need on router and Ethernet interface that switch links to each other, create two sub-interfaces, and change the Ethernet interface type that switch links to each other with router into mixed type, allow the frame of VLAN2 and VLAN3 to pass through.Second kind of execution mode is for by disposing VLANIF interface on the switch that has the IP routing function, realize the mutual communication between VLAN: VLANIF interface is a kind of virtual interface, is used for realizing the mutual communication between the VLAN, has three layers of attribute.As shown in Figure 2, suppose on switch, to have divided VLAN2 and VLAN3, on switch, create 2 VLANIF interface, and be their configuration of IP address and route, realize the mutual communication between VLAN2 and VLAN3.The state of VLANIF interface is divided into UP and two states of DOWN, and the UP/DOWN state relies on the UP/DOWN state of actual physics port in the VLAN fully.When existing its state of one or more physical ports to be UP in the VLAN, the state of VLANIF interface is UP, and when not existing any one physical port state to be UP, the VLANIF interface state is DOWN.Certainly, can also directly close VLANIF interface by ordering, make its state become DOWN by UP by manually operated mode.When the VLANIF state variation, this state can be reflected in the router immediately, directly notifies all relevant business modules, for example routing module etc.
We find that present State Control means can not satisfy the demand in some cases in actual use.The state of virtual interface will directly bring influence to route issue and calculating in router, this notifies routing module to upgrade route implementing by " virtual interface status change notification ".When using master/slave device to carry out the high reliability backup, there is such situation: as shown in Figure 3, router inserts two Universal Media Gateway A and B by port a and c, two Universal Media Gateways backup each other, if Universal Media Gateway A is in the main state of using, Universal Media Gateway B is in Status of Backups, and being positioned at interconnect port a on the A link and the state of b so is UP, and being positioned at interconnect port c on the B link and the state of d is DOWN.When active and standby switching took place, interconnect port a on the A link and the state of b all became DOWN, and interconnect port c on the B link and the state of d become UP subsequently, and the interconnect port that promptly can occur in handoff procedure on two links of A, B is the situation of DOWN simultaneously.If a on the router and c port are among the same VLAN, so in handoff procedure, these two ports will occur all is the situation of DOWN, establishes rules really then according to the VLANIF interface state, and the VLANIF interface state will become DOWN, after port c on the wait B link and the state of d become UP, the VLANIF interface state becomes UP again, has so just caused the route entry on the router that deletion earlier takes place once, after the situation of at once adding again, cause route oscillation, make active and standby part poor effect.
Summary of the invention
Using master/slave device to carry out in the high reliability back-up application in order to solve, master/slave device causes the problem of route oscillation and active and standby part of poor effect when switching, the present invention proposes a kind of by suppressing the variation of virtual local area network interface state, after making its Interface status stable, again stable state is notified the method for downstream traffic module, be said method comprising the steps of:
Steps A: the virtual local area network interface is received when first Interface status changes application, starts Interface status and keeps function, and set reservation threshold;
Step B: in described reservation threshold, described virtual local area network interface is replaced and is preserved up-to-date Interface status variation application, and described Interface status comprises UP and DOWN state;
Step C: reach described reservation threshold, described virtual local area network interface downstream traffic module transmission interface status change notification.
Described startup Interface status keeps comprising also whether the described virtual local area network interface of inspection has started the step that Interface status keeps function before the function.
Described reservation threshold is timing threshold values or count threshold.
Described timing threshold values or count threshold are provided with by user interface.
Described step C is specially: reach described reservation threshold, check last Interface status variation that described virtual local area network interface is preserved is applied for whether consistent with current described virtual local area network interface state, if it is inconsistent, then described virtual local area network interface changes application according to described Interface status and changes its Interface status, and downstream traffic module transmission interface status change notification, otherwise current virtual local area network interface state remains unchanged, not downstream traffic module transmission interface status change notification.
The present invention also provides a kind of device that virtual local area network interface state changes that suppresses, and described device comprises that memory module, Interface status are checked module, checked module, Interface status changes module and status change notification sending module;
Described memory module is used to replace the up-to-date Interface status variation application that preservation virtual local area network interface is received;
Described Interface status checks that module is used to check current virtual local area network interface state, and will check that the result sends to described inspection module;
Described status change notification sending module is used for downstream traffic module transmission interface status change notification;
Described Interface status changes the Interface status that module is used to change VLAN;
Described inspection module is used for reaching reservation threshold, what the Interface status of checking the storage of described memory module changed that application and described Interface status check the module transmission checks whether the result is consistent, if it is inconsistent, then described Interface status changes module and changes application change virtual local area network interface state according to Interface status, described status change notification sending module transmission interface status change notification, otherwise virtual local area network interface state remains unchanged.
Described device comprises that also reservation threshold is provided with module and keeps the functional check module;
Described reservation threshold is provided with the retention time that module is used to be provided with virtual local area network interface state;
Described maintenance functional check module is used for when the virtual local area network interface receives that first Interface status changes application, checks whether the virtual local area network interface has started Interface status and kept function.
Beneficial effect: keep function because the present invention has started Interface status to the virtual local area network interface, so when master/slave device switches, the virtual local area network interface can keep current Interface status, overtime up to the retention time, the final state variation application of receiving according to the virtual local area network interface compares with the Interface status that the virtual local area network interface keeps again, whether determine downstream traffic module transmission interface status change notification according to comparative result, so just avoided moment virtual local area network interface state variation, the route oscillation that causes has improved active and standby part of effect widely.
Description of drawings
Fig. 1 is a schematic diagram of realizing mutual communication between VLAN in the prior art by router;
Fig. 2 is a schematic diagram of realizing mutual communication between VLAN in the prior art by VLANIF interface;
Fig. 3 is active and standby with the mutually redundant connection diagram of Universal Media Gateway in the prior art;
Fig. 4 is the principle schematic that the embodiment of the invention suppresses the VLANIF interface state variation;
Fig. 5 is the method flow diagram that the embodiment of the invention realizes suppressing the VLANIF interface state variation;
Fig. 6 is that the embodiment of the invention suppresses the structure drawing of device that virtual local area network interface state changes.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
When switching, business is not brought any adverse effect, realize taking over seamlessly in order to satisfy master/slave device.When the present invention is about to change at the virtual interface state, suppress its variation, wait for its in stable condition after, again with stable state informing business module, avoided unsure state frequent notifications business module in the master/slave device handoff procedure like this, thereby the message forwarding and the route calculating of router has been brought adverse influence.
Fig. 4 realizes suppressing the principle schematic of virtual interface VLANIF state variation for the present invention, and wherein various piece is described as follows:
Member's physical interface reports: when the member's physical port state in the VLAN changes, and the notice VLANIF interface.
Interface status decision-making: for the physical interface state that reports, make a strategic decision, the VLANIF interface state transfer of making a strategic decision out is given " Interface status postpones and keeps " according to rule.The primitive rule of decision-making is as follows: when existing one or more physical states to be member's physical port of UP in the VLAN, the VLANIF interface state is UP, otherwise is DOWN.
Interface status postpones and keeps: when the VLANIF interface state changed, time-delay or inhibition VLANIF interface state variation reached the purpose that control VLANIF interface state changes." Interface status postpones and keeps " possesses the effect of two aspects: 1. the state variation of pair VLANIF interface suppresses; 2. postpone the generation of VLANIF interface state variation.For example set the VLANIF interface state is kept, retention time was 10 seconds, so when VLANIF interface is received first state variation application, the maintenance process will be activated, after this in 10 seconds of retention time, all state variation applications will cover an application, when the retention time finishes, according to a up-to-date state application, determine which kind of state this VLANIF interface is changed to.
Interface status changes notice: application of VLANIF interface state variation and current VLANIF interface state are compared, if application of VLANIF interface state variation and current VLAN interface state consistency, then the transmission interface status change notification is not given the downstream traffic module, if application of VLANIF interface state variation and current VLAN interface state are inconsistent, then the transmission interface status change notification is given the downstream traffic module.
According to above-mentioned principle schematic, the present invention realizes that the method that suppresses virtual interface VLANIF state variation specifically may further comprise the steps, as shown in Figure 5;
Step 101:VLANIF interface receives that first Interface status changes application, and the application Interface status changes.
Whether step 102:VLANIF interface check itself has been in the Interface status maintenance process, if then execution in step 103, otherwise execution in step 105.
The application of step 103:VLANIF interface saving interface state variation.
The application of saving interface state variation only need override original Interface status with the Interface status of application and get final product.
Step 104: check whether timer is overtime, if then execution in step 107, otherwise execution in step 106.
The application of step 105:VLANIF interface saving interface state variation enters hold mode, and starts timer, execution in step 104.
The time-out time of timer can be set at the retention time of user's appointment.The setting of timer expiry time can utilize realizations such as order line terminal that router itself possesses or gateway device.
Step 106; VLANIF interface continues to keep hold mode, the application of receiving interface state variation, and execution in step 103.
Step 107: the last Interface status of preserving of VLANIF interface is changed application compare with current VLANIF interface state, identical with current VLANIF interface state if Interface status changes application, then execution in step 108, otherwise execution in step 109.
Step 108:VLANIF interface is kept current Interface status, and the transmission interface status change notification is not given the downstream traffic module.
Step 109; The VLANIF interface state is changed into its last Interface status of preserving and is changed application, and sends the Interface status change notification to the downstream traffic module.
Present embodiment adopts timer to set the retention time of VLANIF interface state, in addition, can also adopt counter to set the retention time of VLANIF interface state, for example when the VALNIF interface receives that the 10th Interface status changes application, check whether the 10th Interface status changes application consistent with current Interface status, if it is inconsistent, then VLANIF interface is changed into the 10th Interface status variation application with Interface status, and send the Interface status change notification to downstream module, if consistent, then the VLANIF interface state remains unchanged.Adopt counter to set the retention time of VLANIF interface state, realize that the method for inhibition virtual interface VLANIF state variation is the same with present embodiment, no longer narration here.
Referring to Fig. 6, the present invention also provides a kind of device that virtual local area network interface state changes that suppresses, and device comprises that memory module, Interface status are checked module, checked module, Interface status change module and status change notification sending module;
Memory module is used for the up-to-date Interface status variation application that the storing virtual lan interfaces is received;
Interface status checks that module is used to check current virtual local area network interface state, and will check that the result sends to the inspection module;
The status change notification sending module is used for downstream traffic module transmission interface status change notification;
Interface status changes the Interface status that module is used to change VLAN;
Check that module is used for reaching reservation threshold, what the Interface status of checking the memory module storage changed that application and Interface status check the module transmission checks whether the result is consistent, if it is inconsistent, then Interface status changes module and changes application change virtual local area network interface state according to Interface status, status change notification sending module transmission interface status change notification, otherwise virtual local area network interface state remains unchanged.
Device comprises that also reservation threshold is provided with module and keeps the functional check module;
Reservation threshold is provided with the retention time that module is used to be provided with virtual local area network interface state;
Keep the functional check module to be used for when the virtual local area network interface receives that first Interface status changes application, check whether the virtual local area network interface has started Interface status and kept function.
Above-described embodiment is more preferably embodiment a kind of of the present invention, and the common variation that those skilled in the art carries out in the technical solution of the present invention scope and replacing all should be included in protection scope of the present invention.

Claims (7)

1. one kind is suppressed the method that virtual local area network interface state changes, and it is characterized in that, said method comprising the steps of:
Steps A: the virtual local area network interface is received when first Interface status changes application, starts Interface status and keeps function, and set reservation threshold;
Step B: in described reservation threshold, described virtual local area network interface is replaced and is preserved up-to-date Interface status variation application, and described Interface status comprises UP and DOWN state;
Step C: reach described reservation threshold, described virtual local area network interface downstream traffic module transmission interface status change notification.
2. the method that inhibition virtual local area network interface state as claimed in claim 1 changes is characterized in that, described startup Interface status keeps comprising also whether the described virtual local area network interface of inspection has started the step that Interface status keeps function before the function.
3. the method that inhibition virtual local area network interface state as claimed in claim 1 changes is characterized in that described reservation threshold is timing threshold values or count threshold.
4. the method that inhibition virtual local area network interface state as claimed in claim 3 changes is characterized in that described timing threshold values or count threshold are provided with by user interface.
5. the method that inhibition virtual local area network interface state as claimed in claim 1 changes, it is characterized in that, described step C is specially: reach described reservation threshold, check last Interface status variation that described virtual local area network interface is preserved is applied for whether consistent with current described virtual local area network interface state, if it is inconsistent, then described virtual local area network interface changes application according to described Interface status and changes its Interface status, and downstream traffic module transmission interface status change notification, otherwise current virtual local area network interface state remains unchanged, not downstream traffic module transmission interface status change notification.
6. one kind is suppressed the device that virtual local area network interface state changes, and it is characterized in that, described device comprises that memory module, Interface status are checked module, checked module, Interface status changes module and status change notification sending module;
Described memory module is used to replace the up-to-date Interface status variation application that preservation virtual local area network interface is received;
Described Interface status checks that module is used to check current virtual local area network interface state, and will check that the result sends to described inspection module;
Described status change notification sending module is used for downstream traffic module transmission interface status change notification;
Described Interface status changes the Interface status that module is used to change VLAN;
Described inspection module is used for reaching reservation threshold, what the Interface status of checking the storage of described memory module changed that application and described Interface status check the module transmission checks whether the result is consistent, if it is inconsistent, then described Interface status changes module and changes application change virtual local area network interface state according to Interface status, described status change notification sending module transmission interface status change notification, otherwise virtual local area network interface state remains unchanged.
7. the device that inhibition virtual local area network interface state as claimed in claim 6 changes is characterized in that, described device comprises that also reservation threshold is provided with module and keeps the functional check module;
Described reservation threshold is provided with the retention time that module is used to be provided with virtual local area network interface state;
Described maintenance functional check module is used for when the virtual local area network interface receives that first Interface status changes application, checks whether the virtual local area network interface has started Interface status and kept function.
CNB2006101610787A 2006-12-04 2006-12-04 Method and device for restraining virtual local area network interface state change Active CN100527686C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101610787A CN100527686C (en) 2006-12-04 2006-12-04 Method and device for restraining virtual local area network interface state change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101610787A CN100527686C (en) 2006-12-04 2006-12-04 Method and device for restraining virtual local area network interface state change

Publications (2)

Publication Number Publication Date
CN101197697A CN101197697A (en) 2008-06-11
CN100527686C true CN100527686C (en) 2009-08-12

Family

ID=39547864

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101610787A Active CN100527686C (en) 2006-12-04 2006-12-04 Method and device for restraining virtual local area network interface state change

Country Status (1)

Country Link
CN (1) CN100527686C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616454B (en) * 2008-06-23 2012-12-12 华为技术有限公司 Method, device and communication system of data transmission
CN102201994B (en) * 2011-05-31 2015-04-01 杭州华三通信技术有限公司 Context identification negotiation method, server and client used for OAA
CN103220187B (en) * 2013-04-03 2016-03-30 北京东土科技股份有限公司 A kind of detection method of three layer interface states and device
CN108600001B (en) * 2018-04-13 2022-01-18 联想(北京)有限公司 Network management method, switch and network management system
CN108933818B (en) * 2018-06-21 2021-09-07 新华三技术有限公司 Communication method and device

Also Published As

Publication number Publication date
CN101197697A (en) 2008-06-11

Similar Documents

Publication Publication Date Title
CN100417094C (en) Network failure recovery method with redundancy port
US9686098B2 (en) Efficient management of ring networks
CN100512292C (en) Apparatus and method of real-time recovering service
WO2008089614A1 (en) A method, system and device for ring link protection
CN102148677B (en) Method for updating address resolution protocol table entries and core switch
CN100571180C (en) Ensure the method and the device of ethernet ring network reliability service when transmission node fault
CN101060485B (en) Topology changed messages processing method and processing device
US7549078B2 (en) Redundancy in routing devices
WO2007115493A1 (en) A method, device and system for achieving the switch in the dual-homed network based on the vpls
CN104639464A (en) System and method for realizing cross-interchanger link aggregation on OpenFlow interchanger
CN100586096C (en) A topology notification method, system and device based on L2VPN
CN100527686C (en) Method and device for restraining virtual local area network interface state change
US20140185429A1 (en) Communication system, path switching method and communication device
CN102546222A (en) Backup system and fault detection and processing method
CN101227371B (en) Method and apparatus of backup switch among same level switch equipments
WO2020052687A1 (en) Network element anti-looping method and apparatus, device, and readable storage medium
CN105915426B (en) The fault recovery method and device of loop network
WO2008014696A1 (en) Method and apparatus for realizing communication take-over
CN102257759A (en) Master-standby switching method, system control unit and communication system
CN103227725A (en) Method and device for dual-server backup of firewall
CN102244609A (en) Method for preventing flow interruption caused by failover during access of VPLS (virtual private LAN service) to L3 (network layer 3) and router
CN100450025C (en) Ethernet environment protection system and method
CN101436938A (en) Method, system and switching equipment for halting/recovering port transmitting and receiving service
CN102355414B (en) Automatic protection switching state machine processing method and device
KR20090016676A (en) Uninterrupted network control message generation during local node outages

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