CN102263817A - Method for realizing data access of DHCP (dynamic host configuration protocol) address base based on shared storage - Google Patents
Method for realizing data access of DHCP (dynamic host configuration protocol) address base based on shared storage Download PDFInfo
- Publication number
- CN102263817A CN102263817A CN2011101878452A CN201110187845A CN102263817A CN 102263817 A CN102263817 A CN 102263817A CN 2011101878452 A CN2011101878452 A CN 2011101878452A CN 201110187845 A CN201110187845 A CN 201110187845A CN 102263817 A CN102263817 A CN 102263817A
- Authority
- CN
- China
- Prior art keywords
- address
- dhcp
- data
- storage
- storehouse
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000015654 memory Effects 0.000 claims abstract description 45
- 238000011084 recovery Methods 0.000 claims description 24
- 230000008569 process Effects 0.000 claims description 6
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 241001269238 Data Species 0.000 claims description 2
- 230000008859 change Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 claims description 2
- 230000007246 mechanism Effects 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000013479 data entry Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000008034 disappearance Effects 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention provides a method for realizing data access of a DHCP (dynamic host configuration protocol) address base based on shared storage. The method comprises the following steps: 1) creating a DHCP system table structure and a data structure by a UNIX shared storage module; 2) realizing a data access mode by carrying out shared access from a kernel memory in accordance with a data relationship; 3) realizing management inquiry of command lines and configuring interfaces by a DHCP command line module, and carrying out inquiry and management data on the shared storage address base by a client-side through uniform command lines; 4) using CRB components in a DHCP to realize the main backup of the shared storage address base; and 5) using relative address inside the shared storage DHCP address base to carry out addressing, and preventing the effectiveness of data from being influenced by changes of an absolute address resulting from shared storage reconstruction. The invention provides the high-performance and high-availability access mode of the DHCP address and user information, which is realized by using UNIX shared storage, the command lines and a CRB mechanism.
Description
One, technical field
The present invention relates to utilize shared storage, command-line tool and the high reliability data bus interface of unix system, realization has the access method of the DHCP magnanimity address information of high-performance and high availability.
Two, background technology
Along with the development of Internet service, the problem of the multiple service supporting ability that how to improve existing network is badly in need of solving in telecom operators.Present traditional DHCP (DHCP) system, the general using file is preserved address information.This mode, on the one hand operability poor, be difficult to management; On the other hand, performance is low, is difficult to support a large amount of concurrent users.
And the access of magnanimity address information can not be directly carried out in the shared storage of unix system.
Three, summary of the invention
The objective of the invention is: provide a kind of based on sharing storage, order line management and the high-performance of CRB mechanism and the data acess method of high availability.It is frequent to be particularly useful for data access, and data relationship is flexible, and Information Security requires high and the high occasion of data manipulation.
Based on the dhcp address database data access implementation method of sharing storage, the DHCP that reaches high-performance and high availability shares the memory address storehouse, it is characterized in that
1) creates DHCP system's list structure and data structure by the UNIX sharing storage module, and be provided with based on the application programming interfaces (API) of the data structure of relative address and on sharing storage module, create related data structure: use the API of the data structure of relative address to create data structure; API rebuilds related data structure fast and accurately when DHCP starts, thereby has guaranteed the quick startup and the recovery of DHCP system; Can not cause loss of data so the API process withdraws from, because key data structure is based on the relative address offset address, not need the initial data of recombinating, when the API process is recovered so resume speed is very fast;
2) implementation method of data acess method: carry out shared access according to data relationship from the kernel internal memory, data relationship comprises shares the data structure that storage adds customization; The administration module in dhcp address storehouse has the authority of management address database data, and DHCP service core module has the authority of address base data query and Status Change, and DHCP order line module has address base data query authority, three module shared address database datas;
3) DHCP order line module realizes order line managing queries and configuration interface, and client can be shared the inquiry and the management data in memory address storehouse by unified order line;
4) utilize the CRB assembly of DHCP to realize sharing the active and standby of memory address storehouse, under the normal condition main storage address storehouse by data channel to being equipped with the synchronous address date in memory address storehouse, when the high reliability module (HA) of CRB assembly detects main unusual, being equipped with the memory address storehouse automatically switches to the main storage address storehouse and receives new address date, when recover in former main storage address storehouse, can obtain address date and recover normal from being equipped with the memory address storehouse;
5) share inside, storage dhcp address storehouse by the relative address addressing, share storage and rebuild the validity that the absolute address` variation that causes can not influence data;
6) sharing storage dhcp address storehouse optionally recovers, the memory address storehouse can be selected the type of recovery according to the situation of sharing the memory address storehouse when software systems rerun, still exist if share the memory address storehouse, then directly carry out the recovery of application-level thereon; Disappear if share storage, be equipped with service and normally then obtain address date and carry out system-level recovery, do not exist, then can carry out system-level recovery from the file of regularly preserving if be equipped with service from being equipped with service.
Address information is very huge in the DHCP system, and the data association is numerous, and data structure is various, and data query and renewal are frequent, so take to share the data structure that storage adds customization, realizes the preservation and the zero access of address information.
Share storage,, the method for a kind of rapid saving and recovery should be arranged as a kind of non-volatile memories.In the DHCP system because the quick startup requirement of data characteristic and program, we made up a cover based on the data structure API of relative address (1ist, hashtable...).This cover API can rebuild related data structure fast and accurately when DHCP starts, thereby has guaranteed the quick startup and the recovery of DHCP system.
Shared storage is that process is asked a kind of of communication mechanism (IPC) in the UNIX operating system, shares storage and allows two or more processes to share a given memory block.Because data need not duplicated between client-server, so this is the fastest a kind of IPC.Address information is very huge in the DHCP system, and the data association is numerous, and data structure is various, and data query and renewal are frequent, so take to share the data structure that storage adds customization, realizes the preservation and the zero access of address information.
The present invention utilizes the shared storage of unix system, and independently developed command-line tool and CRB assembly have been realized the shared storage dhcp address storehouse of a kind of high-performance and high availability.
The CRB assembly, be that a cover utilizes the Hot Spare service to guarantee the Client/Server storehouse of high reliability, comprise that activestandby state detects and active and standby automatic switchover, in the DHCP system, be mainly used in the content synchronization in the shared storage of main Dynamic Host Configuration Protocol server is equipped with server to DHCP, cause the problem that stored information is lost of sharing to prevent the separate unit main frame machine of delaying.Thereby further improve the high availability of sharing the memory address storehouse.Command-line tool, be a cover exploitation based on the unix command-line tool, can be by this instrument with connecting any server that command line interface is provided, the line correlation of going forward side by side operation.
The invention has the beneficial effects as follows: along with the development of Internet service, a DHCP system that can distribute the address for mass users fast and preserve its configuration is badly in need of in telecom operators.At present traditional DHCP system is many to preserve address information and user profile with file, and this mode is difficult to satisfy the demand.The invention provides a kind of UNIX of utilization and share storage, the high-performance that command-line tool and CRB mechanism realize and the dhcp address and the user profile access mode of high availability.And have following performance:
The storage of ■ internal storage data realizes high performance dhcp address data access;
■ unity of command line interface, the easy to operate and manageability of realization dhcp address data;
The real-time Hot Spare of ■, the high availability of realization dhcp address data;
■ regularly physical medium preserves and recovers, and recovers after the disaster of realization DHCP system.
Four, description of drawings
Fig. 1 is active and standby form (main and standby relation) schematic diagram of sharing the memory address storehouse
Fig. 2 is that memory address storehouse schematic diagram is shared in order line action queries and management
Fig. 3 shares memory address storehouse locator data example (idle address lookup) schematic diagram
Fig. 4 is a DHCP system list structure example
Five, embodiment
Realize that the DHCP of high-performance and high availability shares the method in memory address storehouse:
● obtain from kernel and to share storage (below be the UNIX program)
1) use ftok to obtain a key;
2) size of storing is shared in budget as required;
3) use key to obtain the shared storage of specifying size;
4) divide each table section and create data structure.Table information is saved in the appointed area of sharing storage.
● realize active and standby
1) the synchrodata channel interface of realization CRB;
2) realize active and standby service state and shared association of storing between the data processing, guarantee the validity of data.
● realize command line interface
Address base is realized various inquiries and management interface, makes the manager to inquire about and to manage each table information of shared library, data structure information etc. by the order line client.
● share storage and preserve
Directly be saved in file with sharing the mode of memory address storehouse by memory copying.
● share recovery of stomge
The recovery of sharing storage is divided into two kinds.
1) application-level is to store the operation of going up recovery routine from existing sharing;
2) system-level, system-level is to need to share storage and then carry out the recovery of application-level from file reconstruction earlier.
1. the memory size of configuration-system
The shared storage of unix system is to be based upon on the basis of physical memory, so the shared storage size that can create is limited by Installed System Memory.The address information access of DHCP system is frequent, requires high access speed, and the data entry length is fixing to realize fast access by the relative address method for addressing then so use.Since the data entry length is fixed, thus can be as required, the shared storage size that budgetary requirement is created, thus decision needs the physical memory size of configuration.
2. obtain and share the memory address storehouse, and planning table and establishment related data structure
Obtain the shared storage of budget size from system, and create predefined table and data structure, and relevant information is saved in the appointed area of sharing storage.Can obtain address date this moment from database.
3. starting command row service
The DHCP system has realized the inquiry of command line and the management interface in shared memory address storehouse, can pass through these interface question blank information, recorded information and related data structures information.Also can increase deletion and modification table or recorded information by this interface.The service of starting command row, just expression can be operated accordingly by the order line client executing.This moment can be by life row client configuration and inquire address data.
4. start active and standby service
Because shared storage is based on internal memory, so all can causing sharing storage, system cut-off or collapse disappear, can't start for avoiding this situation that the back system takes place, data channel and the HA of DHCP system by CRB realizes active and standbyly, is equipped with the back up in realtime address date of main service of service.When the storage disappearance is shared in main service, can obtain address date from being equipped with service.Start active and standby service, opened the function that main service is synchronized to address information the shared memory address storehouse that is equipped with service in real time exactly.
5. open regularly and preserve
The data of sharing the memory address storehouse are saved in file, are another means of avoiding shared library disappearance system to start.The DHCP system has the function of regularly preserving, and this function will be shared the memory address library information exactly and regularly be saved in file.Start regularly hold function, guarantee not start under the situation about being equipped with, shared library can normally be recovered after disappearing.
6. select to recover
Can select the type of recovery according to the situation of sharing the memory address storehouse after system stops, still existing, then directly carry out the recovery of application-level thereon if share the memory address storehouse; Disappear if share storage, be equipped with service and normally then obtain address date and carry out system-level recovery, do not exist, then can carry out system-level recovery from the file of regularly preserving if be equipped with service from being equipped with service.
Claims (2)
1. based on the dhcp address database data access implementation method of sharing storage, the DHCP that reaches high availability shares the memory address storehouse, it is characterized in that
1) create DHCP system's list structure and data structure by the UNIX sharing storage module, and the application programming interfaces API that is provided with based on the data structure of relative address creates related data structure on sharing storage module: use the API of the data structure of relative address to create data structure; API rebuilds related data structure fast and accurately when DHCP starts, thereby has guaranteed the quick startup and the recovery of DHCP system; Can not cause loss of data so the API process withdraws from, because key data structure is based on the relative address offset address, not need the initial data of recombinating, when the API process is recovered so resume speed is very fast;
2) implementation method of data acess method: carry out shared access according to data relationship from the kernel internal memory, data relationship comprises shares the data structure that storage adds customization; The administration module in dhcp address storehouse has the authority of management address database data, and DHCP service core module has the authority of address base data query and Status Change, and DHCP order line module has address base data query authority, three module shared address database datas;
3) DHCP order line module realizes order line managing queries and configuration interface, and client can be shared the inquiry and the management data in memory address storehouse by unified order line;
4) utilize the CRB assembly of DHCP to realize sharing the active and standby of memory address storehouse, under the normal condition main storage address storehouse by data channel to being equipped with the synchronous address date in memory address storehouse, when the high reliability module (HA) of CRB assembly detects main unusual, being equipped with the memory address storehouse automatically switches to the main storage address storehouse and receives new address date, when recover in former main storage address storehouse, can obtain address date and recover normal from being equipped with the memory address storehouse;
5) share inside, storage dhcp address storehouse by the relative address addressing, share storage and rebuild the validity that the absolute address` variation that causes can not influence data;
6) sharing storage dhcp address storehouse optionally recovers, the memory address storehouse can be selected the type of recovery according to the situation of sharing the memory address storehouse when software systems rerun, still exist if share the memory address storehouse, then directly carry out the recovery of application-level thereon; Disappear if share storage, be equipped with service and normally then obtain address date and carry out system-level recovery, do not exist, then can carry out system-level recovery from the file of regularly preserving if be equipped with service from being equipped with service.
2. the DHCP of realization high-performance according to claim 1 and high availability shares the method in memory address storehouse, it is characterized in that
● obtain shared storage and adopt the UNIX program from kernel
1) use ftok to obtain a key;
2) size of storing is shared in budget as required;
3) use key to obtain the shared storage of specifying size;
4) divide each table section and create data structure.Table information is saved in the appointed area of sharing storage.
● realize active and standby
1) the synchrodata channel interface of realization CRB;
2) realize active and standby service state and shared association of storing between the data processing, guarantee the validity of data.
● realize command line interface
Address base is realized various inquiries and management interface, makes the manager to inquire about and to manage each table information of shared library, data structure information etc. by the order line client.
● share storage and preserve
Directly be saved in file with sharing the mode of memory address storehouse by memory copying.
● share recovery of stomge
The recovery of sharing storage is divided into two kinds:
Application-level is to store the operation of going up recovery routine from existing sharing;
System-level, system-level is to need to share storage and then carry out the recovery of application-level from file reconstruction earlier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110187845 CN102263817B (en) | 2011-07-06 | 2011-07-06 | Method for realizing data access of DHCP (dynamic host configuration protocol) address base based on shared storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110187845 CN102263817B (en) | 2011-07-06 | 2011-07-06 | Method for realizing data access of DHCP (dynamic host configuration protocol) address base based on shared storage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102263817A true CN102263817A (en) | 2011-11-30 |
CN102263817B CN102263817B (en) | 2013-09-18 |
Family
ID=45010265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110187845 Expired - Fee Related CN102263817B (en) | 2011-07-06 | 2011-07-06 | Method for realizing data access of DHCP (dynamic host configuration protocol) address base based on shared storage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102263817B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1561072A (en) * | 2004-02-20 | 2005-01-05 | 港湾网络有限公司 | Method for sharing user IP address pool |
CN1976357A (en) * | 2006-11-29 | 2007-06-06 | 中兴通讯股份有限公司 | Method for establishing and managing DHCP strategy based on global address pool |
CN101075962A (en) * | 2007-06-26 | 2007-11-21 | 中兴通讯股份有限公司 | Method and apparatus for realizing DHCP repeater in two-layer network exchanger |
-
2011
- 2011-07-06 CN CN 201110187845 patent/CN102263817B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1561072A (en) * | 2004-02-20 | 2005-01-05 | 港湾网络有限公司 | Method for sharing user IP address pool |
CN1976357A (en) * | 2006-11-29 | 2007-06-06 | 中兴通讯股份有限公司 | Method for establishing and managing DHCP strategy based on global address pool |
CN101075962A (en) * | 2007-06-26 | 2007-11-21 | 中兴通讯股份有限公司 | Method and apparatus for realizing DHCP repeater in two-layer network exchanger |
Also Published As
Publication number | Publication date |
---|---|
CN102263817B (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12063270B2 (en) | Commissioning and decommissioning metadata nodes in a running distributed data storage system | |
CN102012789B (en) | Centralized management backup disaster recovery system | |
US10067722B2 (en) | Storage system for provisioning and storing data to a virtual disk | |
Hupfeld et al. | The XtreemFS architecture—a case for object‐based file systems in Grids | |
US9798489B2 (en) | Cloning a virtual disk in a storage platform | |
US9875063B2 (en) | Method for writing data to a virtual disk using a controller virtual machine and different storage and communication protocols | |
US9483205B2 (en) | Writing to a storage platform including a plurality of storage clusters | |
US9864530B2 (en) | Method for writing data to virtual disk using a controller virtual machine and different storage and communication protocols on a single storage platform | |
US9558085B2 (en) | Creating and reverting to a snapshot of a virtual disk | |
US9361192B2 (en) | Method and apparatus for restoring an instance of a storage server | |
US9965306B1 (en) | Snapshot replication | |
US20160004611A1 (en) | Storage system with virtual disks | |
JP2019036353A (en) | Index update pipeline | |
US20160004451A1 (en) | Storage system with virtual disks | |
US11789830B2 (en) | Anti-entropy-based metadata recovery in a strongly consistent distributed data storage system | |
US11709780B2 (en) | Methods for managing storage systems with dual-port solid-state disks accessible by multiple hosts and devices thereof | |
JP2016524750A5 (en) | ||
US20150288758A1 (en) | Volume-level snapshot management in a distributed storage system | |
US20160142249A1 (en) | Method, medium, and system for configuring a new node in a distributed memory network | |
EP2619695A2 (en) | System and method for managing integrity in a distributed database | |
CN106959996B (en) | Background data synchronization method based on Internet television | |
WO2016004120A2 (en) | Storage system with virtual disks | |
US20170235652A1 (en) | Method and system for star replication using multiple replication technologies | |
CN103795801A (en) | Metadata group design method based on real-time application group | |
CN102521114A (en) | File system log storage system under virtualization environment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130918 |
|
CF01 | Termination of patent right due to non-payment of annual fee |