CN102263817B - 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 PDF

Info

Publication number
CN102263817B
CN102263817B CN 201110187845 CN201110187845A CN102263817B CN 102263817 B CN102263817 B CN 102263817B CN 201110187845 CN201110187845 CN 201110187845 CN 201110187845 A CN201110187845 A CN 201110187845A CN 102263817 B CN102263817 B CN 102263817B
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.)
Expired - Fee Related
Application number
CN 201110187845
Other languages
Chinese (zh)
Other versions
CN102263817A (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.)
NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Original Assignee
NANJING CITY LINKAGE SYSTEM INTEGRATION 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 NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd filed Critical NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Priority to CN 201110187845 priority Critical patent/CN102263817B/en
Publication of CN102263817A publication Critical patent/CN102263817A/en
Application granted granted Critical
Publication of CN102263817B publication Critical patent/CN102263817B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Based on the dhcp address database data access implementation method of sharing storage
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 create corresponding data structure in sharing storage module: use the API of the data structure of relative address to create data structure; API rebuilds corresponding data structure fast and accurately when DHCP starts, thereby has guaranteed 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, so resume speed is very fast when the API process is recovered;
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 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 from being equipped with service, do not exist if be equipped with service, then can carry out system-level recovery from the file of regularly preserving.
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 preservation and the zero access of address information.
Share storage, as a kind of non-volatile memories, the method for a kind of rapid saving and recovery should be arranged.In the DHCP system because the characteristics of data and the quick startup requirement of program, we made up a cover based on the data structure API of relative address (1ist, hashtable...).This cover API can rebuild corresponding data structure fast and accurately when DHCP starts, thereby has guaranteed 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 copy 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 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 of sharing storage information dropout 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 with connecting any server that command line interface is provided, the line correlation of going forward side by side operation by this instrument.
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 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 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 the corresponding data structure of establishment
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 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 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 from being equipped with service, do not exist if be equipped with service, then can carry out system-level recovery from the file of regularly preserving.

Claims (2)

1. based on the dhcp address database data access implementation method of sharing storage, reach the high availability that DHCP 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 corresponding data structure in sharing storage module: use the API of the data structure of relative address to create data structure; API rebuilds corresponding data structure fast and accurately when DHCP starts, thereby has guaranteed quick startup and the recovery of DHCP system; The API process does not withdraw from can cause loss of data, because key data structure is based on the relative address offset address, does not need the initial data of recombinating, so resume speed is very fast when the API process is recovered;
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 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 the master unusually, be equipped with the memory address storehouse and automatically switch to the main storage address storehouse and receive 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 can optionally recover, and 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 from being equipped with service, do not exist if be equipped with service, then can carry out system-level recovery from the file of regularly preserving.
2. according to claim 1 based on the dhcp address database data access implementation method of sharing storage, 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, make the manager can by the order line client to each table information of shared library, data structure information is inquired about and manage;
Sharing storage preserves
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.
CN 201110187845 2011-07-06 2011-07-06 Method for realizing data access of DHCP (dynamic host configuration protocol) address base based on shared storage Expired - Fee Related CN102263817B (en)

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 CN102263817A (en) 2011-11-30
CN102263817B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN102263817A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
US11570243B2 (en) Decommissioning, re-commissioning, and commissioning new metadata nodes in a working distributed data storage system
CN102012789B (en) Centralized management type backup and disaster recovery system
Hupfeld et al. The XtreemFS architecture—a case for object‐based file systems in Grids
US10067722B2 (en) Storage system for provisioning and storing data to a virtual disk
EP2619695B1 (en) System and method for managing integrity in a distributed database
US9965306B1 (en) Snapshot replication
US9135120B1 (en) Consistency group moving
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
JP2019036353A (en) Index update pipeline
US9515878B2 (en) Method, medium, and system for configuring a new node in a distributed memory network
US20160004450A1 (en) Storage system with virtual disks
US20160004480A1 (en) Storage system with virtual disks
US20160004611A1 (en) Storage system with virtual disks
US20160004449A1 (en) Storage system with virtual disks
US20160004451A1 (en) Storage system with virtual disks
US20160004603A1 (en) Storage system with virtual disks
CN102662795A (en) Metadata fault-tolerant recovery method in distributed storage system
JP2016524750A5 (en)
JP2013544386A5 (en)
CN106959996B (en) Background data synchronization method based on Internet television
US20150288758A1 (en) Volume-level snapshot management in a distributed storage system
US20170235652A1 (en) Method and system for star replication using multiple replication technologies
WO2016004120A2 (en) Storage system with virtual disks
US11709780B2 (en) Methods for managing storage systems with dual-port solid-state disks accessible by multiple hosts and devices thereof
US11789830B2 (en) Anti-entropy-based metadata recovery in a strongly consistent distributed data storage 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130918