CN100388680C - Method for treating medium access conbrol address in main and spare conversion - Google Patents

Method for treating medium access conbrol address in main and spare conversion Download PDF

Info

Publication number
CN100388680C
CN100388680C CNB2004100965631A CN200410096563A CN100388680C CN 100388680 C CN100388680 C CN 100388680C CN B2004100965631 A CNB2004100965631 A CN B2004100965631A CN 200410096563 A CN200410096563 A CN 200410096563A CN 100388680 C CN100388680 C CN 100388680C
Authority
CN
China
Prior art keywords
control board
mac address
current
main
standby
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.)
Ceased
Application number
CNB2004100965631A
Other languages
Chinese (zh)
Other versions
CN1783803A (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.)
Global Innovation Polymerization LLC
Gw Partnership 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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=36773591&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN100388680(C) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100965631A priority Critical patent/CN100388680C/en
Publication of CN1783803A publication Critical patent/CN1783803A/en
Application granted granted Critical
Publication of CN100388680C publication Critical patent/CN100388680C/en
Ceased legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method for treating medium access control (MAC) addresses in master/backup switch. The present invention comprises the following steps storage space is respectively arranged in memorizers of a main control plate and a standby control plate for storing current MAC addresses; when the main control plate is started, default MAC addresses are written in the storage space of the control plate as the current MAC addresses and, the current MAC addresses are used as external MAC addresses; when the standby control plate is started, the current MAC addresses of the main control plate are automatically synchronized; in the process of the main/standby switch, the current MAC addresses of the original standby control plate are kept unchanged; after the main/standby switch, current MAC addresses of a new main control plate are used as the external MAC addresses. The present invention guarantees the clear performance of network tube maintenance accesses in the process of the main/standby switch and reduces the possibility of the collision of the MAC addresses caused when the control plates are moved into other devices.

Description

A kind of in masterslave switchover the method for treatment media accessing to control address
Technical field
The present invention relates to communication equipment field, particularly a kind of in masterslave switchover the method for treatment media accessing to control address.
Background technology
In communication network, in order to guarantee the high-end devices reliability of operation, usually all there are two control boards in each system, one for being in the main main control board of using with state, provide management and controlled function to system equipment, and Ethernet interface with the webmaster main-machine communication is provided, other one is standby control board, is in the wait state of not enabling.When the master breaks down with control board or needs upgrading, can carry out switching of two control boards by automatic or manual, be that original master reduces to standby control board with control board, standby control board originally is upgraded to lead with control board and replace original master provides management and controlled function with control board to system equipment, and Ethernet interface with the webmaster main-machine communication is provided, this process is called masterslave switchover.
(Media Access Control, MAC) address is the ethernet data link layer address in medium access control.When an equipment sends to another equipment that is positioned at same local area network (LAN) to ethernet data frame, be to determine the purpose interface according to target MAC (Media Access Control) address wherein.Each piece control board all has been set up globally unique MAC Address when dispatching from the factory, this MAC Address be kept at control board static memory (Static Random Access Memory, SRAM) in.On the equipment that moves in network, every control board all has oneself in the unique MAC Address of the whole network, otherwise the MAC Address conflict can take place.
In the masterslave switchover process, prior art has two kinds of methods of handling MAC Address:
1, the nonsynchronous method of MAC Address
In the masterslave switchover process, the master is asynchronous with control board and standby control board MAC Address.Data sync is meant main and uses in the control board running, and its service data is extracted, and is sent to standby control board and generates respective data structures at standby control board by synchronization module.MAC Address when the master shows that with control board is asynchronous with standby control board MAC Address two each self-sustainings of control board self are dispatched from the factory.
Behind the masterslave switchover, because the MAC Address that the webmaster main frame is learnt is the former main control board of using, but former master does not externally provide function and interface with control board, and new master uses the MAC Address of control board different with former main MAC Address with control board, so new master is interrupted with control board and the data communication that is in the webmaster main frame of the same network segment.This need outwards send address resolution protocol (Address Resolution Protocol with control board by new master, ARP) packet, the mapping relations of MAC Address and IP address in the renewal ARP high-speed buffer, new master relearns the connection that MAC Address could be recovered the webmaster maintenance channel with control board and webmaster main frame.In this course, the obstructed meeting of webmaster maintenance channel causes the interruption of the cluster management passage of webmaster, also may cause network management system can't receive the warning information that the equipment of generation masterslave switchover reports, cause losing even the interruption of out-of-band communication of network management information, have influence on the continuity of equipment operation.
2, the synchronous method of MAC Address
In the masterslave switchover process, main MAC Address with control board and standby control board is synchronous.As shown in Figure 1, in the masterslave switchover process, main MAC Address with control board is extracted from SRAM, is sent to standby control board by synchronization module, with synchronous MAC Address be kept among the SRAM of standby control board and cover the original MAC Address of standby control board.
Behind masterslave switchover, because the MAC Address of equipment do not change, so the webmaster maintenance channel can not interrupt, and need not to carry out the renewal of ARP high-speed buffer after switching yet.But, suppose that device A is arranged, B, be moved on the equipment B as main when using control board when main on the device A with any control board in control board or the standby control board, because MAC Address is synchronously and is saved among the SRAM, device A has identical MAC Address with equipment B so, and this can cause the conflict of both MAC Address.If the control board of device A and equipment B all flows, will cause the conflict once more of MAC Address.
Summary of the invention
In view of this, the present invention is in order to overcome above-mentioned shortcoming, proposed a kind of in masterslave switchover the method for treatment media accessing to control address, its purpose is to guarantee the unimpeded of webmaster maintenance channel, and reduces the possibility of MAC Address conflict in the network.
For achieving the above object, the present invention proposes a kind of in the masterslave switchover process method of treatment media access control MAC addresses, this method may further comprise the steps:
A. when the master starts as current operation control board with control board, with this main current C urrent MAC Address of using control board with the default Default MAC Address of control board as this master, and with this Current MAC Address as external MAC Address, communicate with the network equipment;
B. behind masterslave switchover, standby control board is as current operation control board, and with the Current MAC Address of described main Current MAC Address with control board as this standby control board, and as external MAC Address, communicate with the network equipment.
When being standby control board initialization, the MAC Address of Current described in the step B obtains by main synchronously Current MAC Address of preserving automatically with control board.
In leading, a memory space is set respectively in advance, preserves the Current MAC Address of its use in service respectively with the memory of control board and standby control board.
Described main memory with control board is this main volatile storage medium with control board.
The memory of described standby control board is the volatile storage medium of this standby control board.
Described master is the internal memory of this control board with the volatile storage medium of control board or standby control board.
Technique scheme further comprises: after the master is with control board or the outage of standby control board, eliminate the above Current MAC Address of this control board.
From such scheme as can be seen, because the present invention is provided with a memory space that is used to store the Current MAC Address respectively on leading with control board and standby control board, and use the Current MAC Address of control board as external MAC Address with current master, keep the identical Default MAC Address that all is main with control board of main Current MAC with control board and standby control board, and in the masterslave switchover process, keep former standby control board Current MAC Address constant, therefore the present invention has kept the consistency of the external MAC Address of equipment before and after the masterslave switchover process, thereby has guaranteed the unimpeded of webmaster maintenance channel.Because main Current MAC Address with control board is identical with its Default MAC Address,, reduced the possibility that the MAC Address conflict takes place so after control board was transferred to miscellaneous equipment, the Current MAC Address of each equipment all was globally unique.
Description of drawings
Fig. 1 is the synchronous schematic diagram of MAC Address in the prior art 2;
Fig. 2 is a schematic flow sheet of the present invention;
Fig. 3 is the main synchronously schematic diagram with control board Current MAC Address of standby control board among the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in more detail by the following examples.
Core concept of the present invention is: when the master starts as current operation control board with control board, use default (Default) MAC Address of control board as current (Current) MAC Address this master, and with this Current MAC Address as external MAC Address, communicate with the network equipment; Behind masterslave switchover, standby control board is as current operation control board, and with described Current MAC Address as external MAC Address, communicate with the network equipment.
And the present invention is provided with a memory space respectively in leading with the memory of control board and standby control board, be used to store the Current MAC Address, and this memory space can be non-volatile memory medium or volatile storage medium.The Default MAC that the present invention also will lead with control board and standby control board is kept in the non-volatile memory medium.Whether therefore, no matter lead with control board and standby control board and start or power down, the Default MAC of himself storage is constant.When standby control board starts, need be main synchronously automatically with control board Current MAC Address, the Current MAC Address of standby like this control board is identical with the Current MAC Address of control board with the master.After this, in the masterslave switchover process, standby control board just can communicate with the network equipment with the main described Current MAC Address of using veneer as external MAC Address as current operation control board.
Elaborate technical scheme of the present invention below in conjunction with Fig. 2 and Fig. 3 specific embodiment.
As shown in Figure 2, the flow process of the specific embodiment of realization the inventive method is as follows:
Step 201: in leading, two memory spaces are set respectively, are respectively applied for storage Current MAC Address and Default MAC with control board and standby control board.
As shown in Figure 3, main control board 31 and the standby control board 35 used arranged on the system equipment of present embodiment.The master comprises a SRAM 32 and first memory space 34 at least with control board 31, wherein, the one SRAM32 is used to preserve the main Default MAC Address that writes with control board when dispatching from the factory, first memory space 34, the Current MAC Address of using when being used to preserve this control board operation.Equally, at least comprise the 2nd SRAM 36 and second memory space 38 in the memory of standby control board 35, wherein, the 2nd SRAM36 is used to preserve the Default MAC Address that standby control board writes when dispatching from the factory, and second memory space 38 is used to preserve the Current MAC Address of standby control board.
And a SRAM 32 and the 2nd SRAM 36 are non-volatile memory medium, and first memory space 34 and second memory space 38 can be non-volatile memory medium or volatile storage medium.Here, non-volatile memory medium can be flash memory (Flash Memory), electrically-erasable memory (Electrically Erasable Programmable ROM, EEPROM), non-volatile ram (Non-Volatile Random Access Memory, NVRAM), Nonvolatile sram etc.Volatile storage medium can be internal memory, volatibility SRAM etc.
Therefore, under initial condition, main with control board a SRAM 32 and the 2nd SRAM 36 of standby control board in preserved its corresponding Default MAC Address.
Step 202: when the master switches on initialization with control board, the Default MAC Address that is kept among the SRAM 32 is write first memory space 34 as the Current MAC Address, and when operation with this Current MAC Address as external MAC Address, communicate with the network equipment.
The purpose of this step is externally to use as the Current MAC Address with the Default MAC Address of control board main, can guarantee that like this Current MAC Address has the whole network uniqueness, avoids the conflict of MAC Address.Therefore, after this step that is finished, main identical with the MAC Address of first memory space, 34 preservations with a SRAM 32 in the control board.
Step 203: when standby control board is switched on initialization, main synchronously automatically with control board Current MAC Address.
Before the energising initialization, preserved the Default MAC Address that writes when dispatching from the factory in the standby control board, the Default MAC Address is kept in the non-volatile memory medium, but when standby control board energising initialization, do not need the Default MAC Address of self preserving, and the CurrentMAC address synchronization that will lead with control board stores in second memory space 38 of standby control board into.So, the Current MAC Address of standby control board is consistent with main Current MAC Address with control board, and is promptly all identical with main Default MAC Address with control board, is that the whole network is unique.
Step 204: in the masterslave switchover process, keep in the standby control board Current MAC Address in second memory space 38 constant.
Step 205: behind the masterslave switchover, standby control board as external MAC Address, carries out data communication with the network equipment with the Current MAC Address as current operation veneer.
Here, main out of service because standby control board is as current operation veneer with control board, use control board so this standby control board can be called new leading, will lead with control board and be called new standby control board.
Behind masterslave switchover, if new standby control board resets or power-down rebooting after, new standby control board will new synchronously main Current MAC Address with control board, the Current MAC Address that is about in second memory space 38 is synchronized in first memory space 34.Like this, first memory space 34 is still identical with Current MAC Address in second memory space 38, all is the Default MAC Address among the SRAM, has kept the consistency of the external MAC Address of system equipment.
To sum up, before and after the masterslave switchover, separately Default MAC Address is constant among a SRAM 32 and the 2nd SRAM 36; Current MAC Address in second memory space 38 is constant, and the Current MAC Address final and in second memory space 38 of the Current address in first memory space 34 is identical.
Therefore, because when carrying out data communication at present, with the new main control board of using, the Current MAC Address that is former standby control board is carried out transfer of data as external MAC Address, and the Current MAC Address of former standby control board is identical with former main Current MAC Address with control board, therefore, has guaranteed that the external MAC Address in masterslave switchover front and back does not change, thereby need not the master and relearn MAC Address, kept the unimpeded of webmaster maintenance channel with control board and opposite equip..
And, when the environment for use of control board in the system changes, as main be moved with control board or standby control board after, the Current MAC Address of preserving in its internal memory or other volatile storage medium can be lost automatically, when they are powered on once more, to be written into content corresponding as step 202 or 203 descriptions, and promptly can be written into self Default MAC Address with control board, and can be write corresponding main Current MAC Address synchronously with control board as standby control board as main.If main Current MAC Address with control board or standby control board is to be stored in the non-volatile memory medium, Currant MAC Address in this control board can not lost automatically, when this control board powers on again, the memory space that is used for preserving the Current MAC Address can be write content corresponding, its process such as step 202 and 203 descriptions again.Anyway, be kept at the master and can not lose and change with the Default MAC Address in control board or the standby control board non-volatile memory medium.Different with prior art 2, suppose device A is arranged, B, if after on the device A masterslave switchover taking place, wherein any control board is moved to equipment B as the main control board of using, because the Default MAC Address that will lead in step 202 with control board writes the memory space that is used to store the Current MAC Address, the Current MAC Address is each autonomous Default MAC Address with control board in device A and the equipment B, and main Default MAC Address with control board is the globally unique MAC Address of setting when dispatching from the factory, therefore the CurrentMAC address of device A and equipment B can be not identical, can not cause the problem of MAC Address conflict.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. the method for a treatment media access control MAC addresses in the masterslave switchover process is characterized in that, this method may further comprise the steps:
A. when the master starts as current operation control board with control board, with this main current C urrent MAC Address of using control board with the default Default MAC Address of control board as this master, and with this Current MAC Address as external MAC Address, communicate with the network equipment;
B. behind masterslave switchover, standby control board is as current operation control board, and with the Current MAC Address of described main Current MAC Address with control board as this standby control board, and as external MAC Address, communicate with the network equipment.
2. method according to claim 1 is characterized in that, obtains by main synchronously Current MAC Address of preserving with control board automatically when the MAC Address of Current described in the step B is standby control board initialization.
3. method according to claim 2 is characterized in that, in leading with the memory of control board and standby control board a memory space is set respectively in advance, preserves the Current MAC Address of its use in service respectively.
4. method according to claim 3 is characterized in that, described main memory with control board is this main volatile storage medium with control board.
5. method according to claim 3 is characterized in that, the memory of described standby control board is the volatile storage medium of this standby control board.
6. according to claim 4 or 5 described methods, it is characterized in that described master is the internal memory of this control board with the volatile storage medium of control board or standby control board.
7. method according to claim 1 is characterized in that, this method further comprises: after the master is with control board or the outage of standby control board, eliminate the above Current MAC Address of this control board.
CNB2004100965631A 2004-12-03 2004-12-03 Method for treating medium access conbrol address in main and spare conversion Ceased CN100388680C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100965631A CN100388680C (en) 2004-12-03 2004-12-03 Method for treating medium access conbrol address in main and spare conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100965631A CN100388680C (en) 2004-12-03 2004-12-03 Method for treating medium access conbrol address in main and spare conversion

Publications (2)

Publication Number Publication Date
CN1783803A CN1783803A (en) 2006-06-07
CN100388680C true CN100388680C (en) 2008-05-14

Family

ID=36773591

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100965631A Ceased CN100388680C (en) 2004-12-03 2004-12-03 Method for treating medium access conbrol address in main and spare conversion

Country Status (1)

Country Link
CN (1) CN100388680C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461741C (en) * 2006-06-09 2009-02-11 华为技术有限公司 A method and communication equipment for protecting the Ethernet link collective logic port message against loss
CN101159606B (en) * 2007-11-09 2010-07-07 华为技术有限公司 Method and network appliance of settling address conflict
CN101835062B (en) * 2010-04-29 2014-03-19 中兴通讯股份有限公司 Method for processing service plate changeover and shelf control unit
CN102790814B (en) * 2012-08-13 2015-08-19 福建星网锐捷网络有限公司 A kind of Media Access Control Address defining method, relevant apparatus and system
CN109471770B (en) * 2018-09-11 2021-09-03 华为技术有限公司 System management method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949753A (en) * 1997-04-11 1999-09-07 International Business Machines Corporation Redundant internet protocol gateways using local area network emulation
CN1494228A (en) * 2002-11-02 2004-05-05 华为技术有限公司 Method of realizing single plate main and ready change over and its circuit
CN1525703A (en) * 2003-02-26 2004-09-01 ��Ϊ�������޹�˾ Backup method for Ethernet port connected to Internet protocol network
CN1529459A (en) * 2003-10-16 2004-09-15 港湾网络有限公司 Main-standby rotation realizing method facing to high-side exchange board

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949753A (en) * 1997-04-11 1999-09-07 International Business Machines Corporation Redundant internet protocol gateways using local area network emulation
CN1494228A (en) * 2002-11-02 2004-05-05 华为技术有限公司 Method of realizing single plate main and ready change over and its circuit
CN1525703A (en) * 2003-02-26 2004-09-01 ��Ϊ�������޹�˾ Backup method for Ethernet port connected to Internet protocol network
CN1529459A (en) * 2003-10-16 2004-09-15 港湾网络有限公司 Main-standby rotation realizing method facing to high-side exchange board

Also Published As

Publication number Publication date
CN1783803A (en) 2006-06-07

Similar Documents

Publication Publication Date Title
CN102413046B (en) Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN101090309A (en) Method for implementing DHCP service redundant and DHCP server
CN102025798B (en) Address allocation processing method, device and system
JP4877482B2 (en) PCI Express link, multi-host computer system, and PCI Express link reconfiguration method
CN101110776B (en) Backup method, backup device and backup system for data business
US6487591B1 (en) Method for switching between active and standby units using IP swapping in a telecommunication network
CN102439903B (en) Method, device and system for realizing disaster-tolerant backup
CN103346903A (en) Dual-machine backup method and device
CN101160794B (en) Disaster recovery system and method of service controlling device in intelligent network
CN100492984C (en) Method for realizing data transfer backup through address interpretation protocol messages
CN105099793A (en) Hot-standby method, hot-standby device and hot-standby system
CN102388570B (en) Single board running method and system under active-standby mode
US20130039443A1 (en) System and method for power reduction in redundant components
CN103945016A (en) DHCP server active-standby redundancy method and system
CN100388680C (en) Method for treating medium access conbrol address in main and spare conversion
CN102143063A (en) Method and device for protecting business in cluster system
CN102725746B (en) Method and apparatus for managing memories in distributed computer system
US7660234B2 (en) Fault-tolerant medium access control (MAC) address assignment in network elements
EP4164197A1 (en) Virtual ip management method and apparatus, electronic device and storage medium
EP2093936B1 (en) Method and network device for solving address conflict
CN104243304A (en) Data processing method, device and system of locally-connected topological structure
CN108616598A (en) Method of data synchronization, device and distributed memory system
CN100362484C (en) Method of multi-computer back-up
JP5711169B2 (en) COMMUNICATION DEVICE AND COMMUNICATION DEVICE SETTING METHOD
CN101789854B (en) Main/standby load sharing method, device and system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180427

Address after: London, England

Patentee after: GW partnership Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

Effective date of registration: 20180427

Address after: California, USA

Patentee after: Global innovation polymerization LLC

Address before: London, England

Patentee before: GW partnership Co.,Ltd.

IW01 Full invalidation of patent right
IW01 Full invalidation of patent right

Decision date of declaring invalidation: 20220104

Decision number of declaring invalidation: 53036

Granted publication date: 20080514