CN109639850A - A kind of method and system for realizing active and standby DHCP SERVER based on VRRP - Google Patents
A kind of method and system for realizing active and standby DHCP SERVER based on VRRP Download PDFInfo
- Publication number
- CN109639850A CN109639850A CN201910012592.1A CN201910012592A CN109639850A CN 109639850 A CN109639850 A CN 109639850A CN 201910012592 A CN201910012592 A CN 201910012592A CN 109639850 A CN109639850 A CN 109639850A
- Authority
- CN
- China
- Prior art keywords
- dhcp
- dhcp server
- equipment
- lease
- list item
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/586—Association of routers of virtual routers
Abstract
The invention discloses a kind of method and system that active and standby DHCP SERVER is realized based on VRRP, are related to field of communication technology, and this method includes periodically acquiring the VRRP role of DHCP SERVER equipment;VRRP role based on acquisition determines the DHCP SERVER role of DHCP SERVER equipment, keeps the DHCP SERVER role of DHCP SERVER equipment identical as VRRP role;DHCP SERVER main equipment and DHCP SERVER are for equipment room creation synchronizing channel;After DHCP lease list item is added in lease table by DHCP SERVER main equipment, DHCP lease list item is sent to DHCP SERVER for equipment by synchronizing channel.The present invention can effectively ensure that the working efficiency of DHCP SERVER main equipment.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a method of active and standby DHCP SERVER is realized based on VRRP
And system.
Background technique
In order to enhance reliability of the communication network device as DHCP SERVER when, the active and standby side of DHCP SERVER is devised
Case, DHCP SERVER refer to management DHCP (the Dynamic Host Configuration in a specific network
Agreement is arranged in Protocol, DynamicHost) computer of standard, effect is that IP is distributed when work stations log is come in
Location.When DHCP SERVER main equipment can not work normally, DHCP SERVER can take over immediately for equipment, avoid in network
It is disconnected, wherein active and standby election between two DHCP SERVER is the key point of the realization program with synchronous lease data.
Active and standby election realization process synchronous with lease data in existing implementation, between two DHCP SERVER
It is complex.Active and standby election needs to design proprietary protocol, can there is a large amount of negotiation packet;In lease data synchronization process, together
Step process need to be embedded into the main process task process of DHCP SERVER main equipment, to the process flow work of DHCP SERVER main equipment
It is had an impact as efficiency.It is synchronous using DHCP protocol message simultaneously, need DHCP SERVER to execute complete DHCP work for equipment
Make process, increases DHCP SERVER for the work load of equipment.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide one kind realizes active and standby DHCP based on VRRP
The method of SERVER can effectively ensure that the working efficiency of DHCP SERVER main equipment.
To achieve the above objectives, the technical solution adopted by the present invention is that, comprising:
Periodically acquire the VRRP role of DHCP SERVER equipment;
VRRP role based on acquisition determines the DHCP SERVER role of DHCP SERVER equipment, makes DHCP SERVER
The DHCP SERVER role of equipment is identical as VRRP role;
DHCP SERVER main equipment and DHCP SERVER are for equipment room creation synchronizing channel;
After DHCP lease list item is added in lease table by DHCP SERVER main equipment, DHCP is sent by synchronizing channel
Lease list item is to DHCP SERVER for equipment.
Based on the above technical solution,
The DHCP SERVER equipment includes DHCP SERVER main equipment and DHCP SERVER for equipment;
The VRRP role based on acquisition determines the DHCP SERVER role of DHCP SERVER equipment, makes DHCP
The DHCP SERVER role of SERVER equipment is identical as VRRP role, specifically: the DHCP SERVER equipment based on acquisition
VRRP role, when VRRP role is main, then current DHCP SERVER equipment is DHCP SERVER main equipment;As VRRP role
When being standby, then current DHCP SERVER equipment is DHCP SERVER for equipment.
Based on the above technical solution,
The DHCP lease list item includes when starting in dhcp client id, the address ip, vlan, physical interface number, rental period
Between, rental period, static mark, entry status and action type;
The action type is addition, is deleted or modified.
Based on the above technical solution, described that DHCP lease list item is sent to DHCP SERVER by synchronizing channel
Standby equipment, specific steps are as follows:
S411: periodically traversal lease table judges with the presence or absence of DHCP lease list item in lease table, if so, S412 is gone to,
If it is not, then terminating, wherein be the DHCP lease list item for increasing newly, being deleted or modified in the lease table;
S412: the DHCP lease contents in table in lease table is copied in sync message, S413 is gone to;
S413: sync message is sent to DHCP SERVER for equipment by synchronizing channel, then whether judges sync message
It sends successfully, if so, S414 is gone to, if it is not, repeating step S413;
S414: the DHCP lease list item in lease table is deleted.
Based on the above technical solution, DHCP lease list item is sent by synchronizing channel to set to DHCP SERVER is standby
It is standby, further comprising the steps of:
S421:DHCP SERVER parses the DHCP lease list item in sync message for equipment, then judges DHCP
SERVER whether there is DHCP lease list item for the lease table of equipment, if so, S422 is gone to, if it is not, then going to S427;
S422: whether the action type for judging DHCP lease list item in sync message is deletion, if so, S423 is gone to,
If it is not, then going to S424;
S423: DHCP SERVER is deleted for the DHCP lease list item in equipment lease table;
S424: whether the action type for judging DHCP lease list item in sync message is addition, if so, S425 is gone to,
If it is not, then going to S426;
S425: DHCP SERVER is deleted for the DHCP lease list item in equipment lease table, the DHCP in sync message is rented
About list item is added to DHCP SERVER in the lease table of equipment;
S426: using the DHCP lease list item modification DHCP SERVER in sync message for the DHCP in equipment lease table
Lease list item;
S427: whether the action type for judging DHCP lease list item in sync message is addition, if so, by sync message
In DHCP lease list item be added to DHCP SERVER in the lease table of equipment, if it is not, then terminating.
The present invention also provides a kind of systems for realizing active and standby DHCP SERVER based on VRRP, comprising:
Module is obtained, is used to periodically acquire the VRRP role of DHCP SERVER equipment;
Role's configuration module is used to determine DHCP SERVER equipment based on the VRRP role for obtaining module acquisition
DHCP SERVER role keeps the DHCP SERVER role of DHCP SERVER equipment identical as VRRP role;
Synchronizing channel creation module is used for same for equipment room creation in DHCP SERVER main equipment and DHCP SERVER
Walk channel;
Sending module, after being used to drive DHCP SERVER main equipment that DHCP lease list item is added in lease table, so
The synchronizing channel created afterwards by synchronizing channel creation module sends DHCP lease list item to DHCP SERVER for equipment.
Based on the above technical solution,
The DHCP SERVER equipment includes DHCP SERVER main equipment and DHCP SERVER for equipment;
Role's configuration module determines the angle DHCP SERVER of DHCP SERVER equipment based on the VRRP role of acquisition
Color keeps the DHCP SERVER role of DHCP SERVER equipment identical as VRRP role, specifically: the DHCP based on acquisition
The VRRP role of SERVER equipment, when VRRP role is main, then current DHCP SERVER equipment is that DHCP SERVER master sets
It is standby;When VRRP role is standby, then current DHCP SERVER equipment is DHCP SERVER for equipment.
Based on the above technical solution,
The DHCP lease list item includes when starting in dhcp client id, the address ip, vlan, physical interface number, rental period
Between, rental period, static mark, entry status and action type;
The action type is addition, is deleted or modified.
Based on the above technical solution, the sending module sends DHCP lease list item to DHCP by synchronizing channel
SERVER is for equipment, detailed process are as follows: and lease table is periodically traversed, is judged with the presence or absence of DHCP lease list item in lease table, if
It is no, then terminate, wherein be the DHCP lease list item for increasing newly, being deleted or modified in the lease table;If so, by lease table
DHCP lease contents in table is copied in sync message, sends sync message to DHCP SERVER for equipment by synchronizing channel,
Then judge whether sync message sends success, if the DHCP lease list item successfully deleted in lease table is sent, if not sent
Success then sends sync message to DHCP SERVER for equipment again by synchronizing channel.
Based on the above technical solution, sending module sends DHCP lease list item to DHCP by synchronizing channel
SERVER further includes following procedure for equipment: DHCP SERVER parses the DHCP lease list item in sync message for equipment,
Then judge that DHCP SERVER whether there is DHCP lease list item for the lease table of equipment:
If it exists, whether the action type for judging DHCP lease list item in sync message is to delete, if so, deleting DHCP
SERVER is for the DHCP lease list item in equipment lease table;If it is not, then judging the operation class of DHCP lease list item in sync message
Whether type is addition, if addition, then deletes DHCP SERVER for the DHCP lease list item in equipment lease table, reports synchronous
DHCP lease list item in text is added to DHCP SERVER in the lease table of equipment, if not adding, then uses sync message
In DHCP lease list item modification DHCP SERVER for the DHCP lease list item in equipment lease table;
If it does not exist, whether the action type for judging DHCP lease list item in sync message is addition, if so, will synchronize
DHCP lease list item in message is added to DHCP SERVER in the lease table of equipment, if it is not, then terminating.
Compared with the prior art, the advantages of the present invention are as follows: the angle VRRP by periodically acquiring DHCP SERVER equipment
Color, the VRRP role based on acquisition determine the DHCP SERVER role of DHCP SERVER equipment, effectively prevent based on DHCP
The active and standby election process of SERVER determines the complexity of DHCP SERVER equipment main and standby relation, and between DHCP SERVER master/slave device
The transmission that DHCP lease list item is carried out by synchronizing channel, avoids the real-time synchronization of a large amount of DHCP protocol messages, does not influence DHCP
The workflow of SERVER main equipment guarantees the working efficiency of DHCP SERVER main equipment.
Detailed description of the invention
Fig. 1 is a kind of flow chart that active and standby DHCP SERVER is realized based on VRRP in the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention provides a kind of method for realizing active and standby DHCP SERVER based on VRRP, based on the active and standby of VRRP
Relationship determines the main and standby relation of DHCP SERVER equipment, and the lease data between DHCP SERVER master/slave device pass through individually together
It is transmitted in step channel.The embodiment of the invention also provides the systems for realizing active and standby DHCP SERVER based on VRRP accordingly.
It is shown in Figure 1, a kind of method that realizing active and standby DHCP SERVER based on VRRP provided in an embodiment of the present invention
One embodiment includes:
S1: the VRRP role of DHCP SERVER equipment is periodically acquired.
In the embodiment of the present invention, operation has VRRP (Virtual Router Redundancy in DHCP SERVER equipment
Protocol, Virtual Router Redundacy Protocol).And DHCP SERVER equipment includes DHCP SERVER main equipment and DHCP
SERVER generally comprises two DHCP SERVER equipment for equipment, after active and standby election, two DHCP SERVER equipment
Between carry out active and standby point.In the prior art, two DHCP SERVER equipment rooms determine that who is that master sets by way of active and standby election
Standby, who is standby equipment, and active and standby election process is complex.
S2: the VRRP role based on acquisition determines the DHCP SERVER role of DHCP SERVER equipment, makes DHCP
The DHCP SERVER role of SERVER equipment is identical as VRRP role.
In the embodiment of the present invention, the VRRP role based on acquisition determines the angle DHCP SERVER of DHCP SERVER equipment
Color keeps the DHCP SERVER role of DHCP SERVER equipment identical as VRRP role, specifically: the DHCP based on acquisition
The VRRP role of SERVER equipment, when VRRP role is main, then current DHCP SERVER equipment is that DHCP SERVER master sets
It is standby;When VRRP role is standby, then current DHCP SERVER equipment is DHCP SERVER for equipment.As a DHCP SERVER
After equipment is confirmed as DHCP SERVER main equipment, then the equipment executes the workflow of DHCP SERVER main equipment, when one
After DHCP SERVER equipment is confirmed as DHCP SERVER for equipment, then the equipment executes DHCP SERVER for the work of equipment
Make process.
The active and standby role of DHCP SERVER equipment is not fixed in the embodiment of the present invention, when DHCP SERVER equipment
After VRRP role changes, the role of DHCP SERVER also accordingly changes.
S3:DHCP SERVER main equipment and DHCP SERVER are for equipment room creation synchronizing channel.Synchronizing channel is for passing
Defeated sync message, and synchronizing channel is realized by standard RAW SOCKET, raw socket, i.e. raw socket, for carrying out
The reception of data frame or data packet.
After DHCP lease list item is added in lease table by S4:DHCP SERVER main equipment, sent by synchronizing channel
DHCP lease list item is to DHCP SERVER for equipment.
In the embodiment of the present invention, DHCP SERVER does not have to receive and handles DHCP protocol message for equipment, without execution
DHCP SERVER main flow, DHCP SERVER receive the DHCP lease list item of DHCP SERVER master transmissions for equipment, into
The creation and maintenance of itself DHCP lease database of row.
In the embodiment of the present invention, DHCP lease list item includes dhcp client id, the address ip, vlan (Virtual
Local Area Network, virtual LAN), physical interface number, time started in rental period, rental period, static mark, entry status
And action type.Dhcp client id is dhcp client ID;Action type is addition, is deleted or modified.Each DHCP is rented
About byte shared by list item is 40, and the data portion design length of sync message is 1400 bytes, therefore sync message can be with
35 DHCP lease list items of synchronous transfer.
The method that active and standby DHCP SERVER is realized based on VRRP of the embodiment of the present invention, by periodically acquiring DHCP
The VRRP role of SERVER equipment, the VRRP role based on acquisition determine the DHCP SERVER role of DHCP SERVER equipment,
The complexity that DHCP SERVER equipment main and standby relation is determined based on the active and standby election process of DHCP SERVER is effectively prevented, and
The transmission for carrying out DHCP lease list item between DHCP SERVER master/slave device by synchronizing channel, avoids a large amount of DHCP protocol messages
Real-time synchronization, do not influence the workflow of DHCP SERVER main equipment, guarantee the working efficiency of DHCP SERVER main equipment.
Optionally, provided in an embodiment of the present invention a kind of real based on VRRP on the basis of above-mentioned Fig. 1 corresponding embodiment
In first alternative embodiment of the method for existing active and standby DHCP SERVER, DHCP lease list item is sent extremely by synchronizing channel
DHCP SERVER is for equipment, specific steps are as follows:
S411: periodically traversal lease table judges with the presence or absence of DHCP lease list item in lease table, if so, S412 is gone to,
If it is not, then terminating, wherein be the DHCP lease list item for increasing newly, being deleted or modified in the lease table;
S412: the DHCP lease contents in table in lease table is copied in sync message, S413 is gone to;
S413: sync message is sent to DHCP SERVER for equipment by synchronizing channel, then whether judges sync message
It sends successfully, if so, S414 is gone to, if it is not, repeating step S413;
S414: the DHCP lease list item in lease table is deleted.
Optionally, on the basis of above-mentioned Fig. 1 corresponding first alternative embodiment, one kind provided in an embodiment of the present invention
It is realized in second alternative embodiment of the method for active and standby DHCP SERVER based on VRRP, when sending DHCP by synchronizing channel
Lease list item to DHCP SERVER for equipment, it is further comprising the steps of:
S421:DHCP SERVER parses the DHCP lease list item in sync message for equipment, then judges DHCP
SERVER whether there is DHCP lease list item for the lease table of equipment, if so, S422 is gone to, if it is not, then going to S427;
S422: whether the action type for judging DHCP lease list item in sync message is deletion, if so, S423 is gone to,
If it is not, then going to S424;
S423: DHCP SERVER is deleted for the DHCP lease list item in equipment lease table;
S424: whether the action type for judging DHCP lease list item in sync message is addition, if so, S425 is gone to,
If it is not, then going to S426;
S425: DHCP SERVER is deleted for the DHCP lease list item in equipment lease table, the DHCP in sync message is rented
About list item is added to DHCP SERVER in the lease table of equipment;
S426: using the DHCP lease list item modification DHCP SERVER in sync message for the DHCP in equipment lease table
Lease list item;
S427: whether the action type for judging DHCP lease list item in sync message is addition, if so, by sync message
In DHCP lease list item be added to DHCP SERVER in the lease table of equipment, if it is not, then terminating.
A kind of one embodiment packet of system that active and standby DHCP SERVER is realized based on VRRP provided in an embodiment of the present invention
It includes:
Module is obtained, is used to periodically acquire the VRRP role of DHCP SERVER equipment;
Role's configuration module is used to determine DHCP SERVER equipment based on the VRRP role for obtaining module acquisition
DHCP SERVER role keeps the DHCP SERVER role of DHCP SERVER equipment identical as VRRP role;
Synchronizing channel creation module is used for same for equipment room creation in DHCP SERVER main equipment and DHCP SERVER
Walk channel;
Sending module, after being used to drive DHCP SERVER main equipment that DHCP lease list item is added in lease table, so
The synchronizing channel created afterwards by synchronizing channel creation module sends DHCP lease list item to DHCP SERVER for equipment.
Optionally, on a kind of above-mentioned basis for the corresponding embodiment of system for realizing active and standby DHCP SERVER based on VRRP
On, a kind of first alternative embodiment of the system that active and standby DHCP SERVER is realized based on VRRP provided in an embodiment of the present invention
In, DHCP SERVER equipment includes DHCP SERVER main equipment and DHCP SERVER for equipment.
Role's configuration module determines the DHCP SERVER role of DHCP SERVER equipment based on the VRRP role of acquisition, makes
The DHCP SERVER role of DHCP SERVER equipment is identical as VRRP role, specifically: the DHCP SERVER based on acquisition is set
Standby VRRP role, when VRRP role is main, then current DHCP SERVER equipment is DHCP SERVER main equipment;Work as VRRP
When role is standby, then current DHCP SERVER equipment is DHCP SERVER for equipment.
DHCP lease list item includes dhcp client id, the address ip, vlan, physical interface number, the time started in rental period, rents
Phase, static mark, entry status and action type.Action type is addition, is deleted or modified.
Optionally, in a kind of above-mentioned corresponding first optional reality of system for realizing active and standby DHCP SERVER based on VRRP
On the basis of applying example, second of a kind of system that realizing active and standby DHCP SERVER based on VRRP provided in an embodiment of the present invention
In alternative embodiment, sending module sends DHCP lease list item to DHCP SERVER for equipment, detailed process by synchronizing channel
Are as follows: periodically traversal lease table judges with the presence or absence of DHCP lease list item in lease table, if it is not, then terminating, wherein the rent
It is about the DHCP lease list item for increasing newly, being deleted or modified in table;If so, the DHCP lease contents in table in lease table is copied to
In sync message, sync message is sent to DHCP SERVER for equipment by synchronizing channel, then judges whether sync message is sent out
Success is sent, if the DHCP lease list item successfully deleted in lease table is sent, if not sent success, logical again by synchronizing
Road sends sync message to DHCP SERVER for equipment.
Sending module sends DHCP lease list item to DHCP SERVER for equipment by synchronizing channel, further includes following mistake
Journey: DHCP SERVER parses the DHCP lease list item in sync message for equipment, then judges DHCP SERVER for equipment
Lease table whether there is DHCP lease list item:
If it exists, whether the action type for judging DHCP lease list item in sync message is to delete, if so, deleting DHCP
SERVER is for the DHCP lease list item in equipment lease table;If it is not, then judging the operation class of DHCP lease list item in sync message
Whether type is addition, if addition, then deletes DHCP SERVER for the DHCP lease list item in equipment lease table, reports synchronous
DHCP lease list item in text is added to DHCP SERVER in the lease table of equipment, if not adding, then uses sync message
In DHCP lease list item modification DHCP SERVER for the DHCP lease list item in equipment lease table;
If it does not exist, whether the action type for judging DHCP lease list item in sync message is addition, if so, will synchronize
DHCP lease list item in message is added to DHCP SERVER in the lease table of equipment, if it is not, then terminating.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (10)
1. a kind of method for realizing active and standby DHCP SERVER based on VRRP, which comprises the following steps:
The VRRP role of DHCP SERVER equipment is periodically acquired, the DHCP SERVER equipment includes DHCP SERVER master
Equipment and DHCP SERVER are for equipment;
VRRP role based on acquisition determines the DHCP SERVER role of DHCP SERVER equipment, makes DHCP SERVER equipment
DHCP SERVER role it is identical as VRRP role;
DHCP SERVER main equipment and DHCP SERVER are for equipment room creation synchronizing channel;
After DHCP lease list item is added in lease table by DHCP SERVER main equipment, DHCP lease is sent by synchronizing channel
List item is to DHCP SERVER for equipment.
2. a kind of method for realizing active and standby DHCP SERVER based on VRRP as described in claim 1, it is characterised in that:
The VRRP role based on acquisition determines the DHCP SERVER role of DHCP SERVER equipment, makes DHCP SERVER
The DHCP SERVER role of equipment is identical as VRRP role, specifically: the angle VRRP of the DHCP SERVER equipment based on acquisition
Color, when VRRP role is main, then current DHCP SERVER equipment is DHCP SERVER main equipment;When VRRP role is standby
When, then current DHCP SERVER equipment is DHCP SERVER for equipment.
3. a kind of method for realizing active and standby DHCP SERVER based on VRRP as described in claim 1, it is characterised in that:
The DHCP lease list item includes dhcp client id, the address ip, vlan, physical interface number, the time started in rental period, rents
Phase, static mark, entry status and action type;
The action type is addition, is deleted or modified.
4. a kind of method for realizing active and standby DHCP SERVER based on VRRP as claimed in claim 3, it is characterised in that: described
DHCP lease list item is sent to DHCP SERVER by synchronizing channel for equipment, specific steps are as follows:
S411: periodically traversal lease table judges with the presence or absence of DHCP lease list item in lease table, if so, S412 is gone to, if
It is no, then terminate, wherein be the DHCP lease list item for increasing newly, being deleted or modified in the lease table;
S412: the DHCP lease contents in table in lease table is copied in sync message, S413 is gone to;
S413: sync message is sent to DHCP SERVER for equipment by synchronizing channel, then judges whether sync message sends
Success, if so, S414 is gone to, if it is not, repeating step S413;
S414: the DHCP lease list item in lease table is deleted.
5. a kind of method for realizing active and standby DHCP SERVER based on VRRP as claimed in claim 4, it is characterised in that: pass through
Synchronizing channel send DHCP lease list item to DHCP SERVER for equipment, it is further comprising the steps of:
S421:DHCP SERVER parses the DHCP lease list item in sync message for equipment, then judges DHCP SERVER
The lease table of standby equipment whether there is DHCP lease list item, if so, S422 is gone to, if it is not, then going to S427;
S422: whether the action type for judging DHCP lease list item in sync message is deletion, if so, S423 is gone to, if it is not,
Then go to S424;
S423: DHCP SERVER is deleted for the DHCP lease list item in equipment lease table;
S424: whether the action type for judging DHCP lease list item in sync message is addition, if so, S425 is gone to, if it is not,
Then go to S426;
S425: DHCP SERVER is deleted for the DHCP lease list item in equipment lease table, by the DHCP lease table in sync message
Item is added to DHCP SERVER in the lease table of equipment;
S426: using the DHCP lease list item modification DHCP SERVER in sync message for the DHCP lease in equipment lease table
List item;
S427: whether the action type for judging DHCP lease list item in sync message is addition, if so, by sync message
DHCP lease list item is added to DHCP SERVER in the lease table of equipment, if it is not, then terminating.
6. a kind of system for realizing active and standby DHCP SERVER based on VRRP characterized by comprising
Module is obtained, is used to periodically acquire the VRRP role of DHCP SERVER equipment;
Role's configuration module is used for based on the DHCP for obtaining VRRP role's decision DHCP SERVER equipment that module obtains
SERVER role keeps the DHCP SERVER role of DHCP SERVER equipment identical as VRRP role;
Synchronizing channel creation module is used for synchronous logical for equipment room creation with DHCP SERVER in DHCP SERVER main equipment
Road;
Then sending module leads to after being used to drive DHCP SERVER main equipment that DHCP lease list item is added in lease table
The synchronizing channel for crossing the creation of synchronizing channel creation module sends DHCP lease list item to DHCP SERVER for equipment.
7. a kind of system for realizing active and standby DHCP SERVER based on VRRP as claimed in claim 6, it is characterised in that:
The DHCP SERVER equipment includes DHCP SERVER main equipment and DHCP SERVER for equipment;
Role's configuration module determines the DHCP SERVER role of DHCP SERVER equipment based on the VRRP role of acquisition, makes
The DHCP SERVER role of DHCP SERVER equipment is identical as VRRP role, specifically: the DHCP SERVER based on acquisition is set
Standby VRRP role, when VRRP role is main, then current DHCP SERVER equipment is DHCP SERVER main equipment;Work as VRRP
When role is standby, then current DHCP SERVER equipment is DHCP SERVER for equipment.
8. a kind of system for realizing active and standby DHCP SERVER based on VRRP as claimed in claim 6, it is characterised in that:
The DHCP lease list item includes dhcp client id, the address ip, vlan, physical interface number, the time started in rental period, rents
Phase, static mark, entry status and action type;
The action type is addition, is deleted or modified.
9. a kind of system for realizing active and standby DHCP SERVER based on VRRP as claimed in claim 8, it is characterised in that: described
Sending module sends DHCP lease list item to DHCP SERVER for equipment, detailed process by synchronizing channel are as follows: periodically traversal
Lease table judges in lease table with the presence or absence of DHCP lease list item, if it is not, then terminating, wherein be in the lease table increase newly,
The DHCP lease list item being deleted or modified;If so, the DHCP lease contents in table in lease table is copied in sync message, lead to
It crosses synchronizing channel and sends sync message to DHCP SERVER for equipment, then judge whether sync message sends success, if sending
Success, then delete the DHCP lease list item in lease table, if not sent success, sends sync message again by synchronizing channel
To DHCP SERVER for equipment.
10. a kind of system for realizing active and standby DHCP SERVER based on VRRP as claimed in claim 8, it is characterised in that: send
Module sends DHCP lease list item to DHCP SERVER for equipment by synchronizing channel, further includes following procedure: DHCP
SERVER parses the DHCP lease list item in sync message for equipment, then judges DHCP SERVER for the lease table of equipment
With the presence or absence of DHCP lease list item:
If it exists, whether the action type for judging DHCP lease list item in sync message is to delete, if so, deleting DHCP
SERVER is for the DHCP lease list item in equipment lease table;If it is not, then judging the operation class of DHCP lease list item in sync message
Whether type is addition, if addition, then deletes DHCP SERVER for the DHCP lease list item in equipment lease table, reports synchronous
DHCP lease list item in text is added to DHCP SERVER in the lease table of equipment, if not adding, then uses sync message
In DHCP lease list item modification DHCP SERVER for the DHCP lease list item in equipment lease table;
If it does not exist, whether the action type for judging DHCP lease list item in sync message is addition, if so, by sync message
In DHCP lease list item be added to DHCP SERVER in the lease table of equipment, if it is not, then terminating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012592.1A CN109639850A (en) | 2019-01-07 | 2019-01-07 | A kind of method and system for realizing active and standby DHCP SERVER based on VRRP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910012592.1A CN109639850A (en) | 2019-01-07 | 2019-01-07 | A kind of method and system for realizing active and standby DHCP SERVER based on VRRP |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109639850A true CN109639850A (en) | 2019-04-16 |
Family
ID=66058084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910012592.1A Pending CN109639850A (en) | 2019-01-07 | 2019-01-07 | A kind of method and system for realizing active and standby DHCP SERVER based on VRRP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109639850A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115567486A (en) * | 2022-09-20 | 2023-01-03 | 浪潮思科网络科技有限公司 | Lease synchronization method, device, equipment and medium in MLAG environment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101090309A (en) * | 2007-07-18 | 2007-12-19 | 杭州华三通信技术有限公司 | Method for implementing DHCP service redundant and DHCP server |
CN101217477A (en) * | 2008-01-10 | 2008-07-09 | 杭州华三通信技术有限公司 | A method, device and router to realize DHCP lease smoothing switching in VRRP backup group |
CN103546315A (en) * | 2013-10-11 | 2014-01-29 | 北京星网锐捷网络技术有限公司 | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server |
US20150180717A1 (en) * | 2012-07-24 | 2015-06-25 | Hangzhou H3C Technologies Co., Ltd | Configuring virtual router redundancy protocol backup group |
CN105227455A (en) * | 2015-10-08 | 2016-01-06 | 北京星网锐捷网络技术有限公司 | A kind of method and system of batch user web authentication active-standby switch |
CN106936940A (en) * | 2017-02-10 | 2017-07-07 | 福建三元达网络技术有限公司 | Lease information backup method and system in a kind of Dynamic Host Configuration Protocol server |
-
2019
- 2019-01-07 CN CN201910012592.1A patent/CN109639850A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101090309A (en) * | 2007-07-18 | 2007-12-19 | 杭州华三通信技术有限公司 | Method for implementing DHCP service redundant and DHCP server |
CN101217477A (en) * | 2008-01-10 | 2008-07-09 | 杭州华三通信技术有限公司 | A method, device and router to realize DHCP lease smoothing switching in VRRP backup group |
US20150180717A1 (en) * | 2012-07-24 | 2015-06-25 | Hangzhou H3C Technologies Co., Ltd | Configuring virtual router redundancy protocol backup group |
CN103546315A (en) * | 2013-10-11 | 2014-01-29 | 北京星网锐捷网络技术有限公司 | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server |
CN105227455A (en) * | 2015-10-08 | 2016-01-06 | 北京星网锐捷网络技术有限公司 | A kind of method and system of batch user web authentication active-standby switch |
CN106936940A (en) * | 2017-02-10 | 2017-07-07 | 福建三元达网络技术有限公司 | Lease information backup method and system in a kind of Dynamic Host Configuration Protocol server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115567486A (en) * | 2022-09-20 | 2023-01-03 | 浪潮思科网络科技有限公司 | Lease synchronization method, device, equipment and medium in MLAG environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2562973A1 (en) | Virtual machine migration method, switch, virtual machine system | |
CN103544303B (en) | A kind of method of data synchronization, system and equipment | |
CN103248724A (en) | SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method | |
CN114024880B (en) | Network target range probe acquisition method and system based on proxy IP and flow table | |
CN104092746B (en) | A kind of O&M auditing system and the network load balancing method in its system | |
CN102413041B (en) | Method, device and system for moving security policy | |
CN102769544B (en) | Appliance services adaptation layer architecture and service adapting layer implementation method in communication system | |
CN104243608B (en) | A kind of communication means, cloud management server and virtual switch | |
CN105554175A (en) | ARP backup method in PW (Pseudo-wires) redundancy scene | |
CN104407913A (en) | Method for implementing two-wire access through virtual machine with single network card | |
CN106453541A (en) | Data synchronization method, server and data synchronization system | |
CN105162702A (en) | AC current guide method and device | |
CN103227773A (en) | Method and system for establishing virtual private dial-up network connection | |
WO2016173194A1 (en) | Updating method, device and system for information about resources | |
CN105227403B (en) | A kind of OpenStack network flow monitoring methods | |
CN102984043A (en) | Forwarding method and forwarding device of multicast data stream | |
CN100492985C (en) | Managing method of network apparatus based on access controlling layer of Ethernet medium | |
WO2011143947A1 (en) | Method and system for realizing application of machine-to-machine/man terminal based on groups | |
CN109639850A (en) | A kind of method and system for realizing active and standby DHCP SERVER based on VRRP | |
CN104539539A (en) | Multi-service-board data forwarding method for AC device | |
CN207968542U (en) | A kind of police service information acquisition system | |
CN104102607A (en) | CAN (controlled area network) bus driving method and system based on VxWorks operating system environment | |
CN112887312B (en) | Slow protocol message processing method and related device | |
CN100479371C (en) | Method of broadcast transmitting message and an exchange equipment | |
CN105790985A (en) | Data switching method, first device, second device and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |
|
RJ01 | Rejection of invention patent application after publication |