CN104519149A - Method for protecting important communication equipment by caching DHCPv6 rq options - Google Patents

Method for protecting important communication equipment by caching DHCPv6 rq options Download PDF

Info

Publication number
CN104519149A
CN104519149A CN201410818003.6A CN201410818003A CN104519149A CN 104519149 A CN104519149 A CN 104519149A CN 201410818003 A CN201410818003 A CN 201410818003A CN 104519149 A CN104519149 A CN 104519149A
Authority
CN
China
Prior art keywords
dhcpv6
options
dhcpv6 client
client
buffer memory
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
Application number
CN201410818003.6A
Other languages
Chinese (zh)
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.)
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Jiangsu Electric Power Co Ltd
Smart Grid Research Institute of SGCC
Original Assignee
State Grid Corp of China SGCC
China Electric Power Research Institute Co Ltd CEPRI
State Grid Jiangsu Electric Power 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 State Grid Corp of China SGCC, China Electric Power Research Institute Co Ltd CEPRI, State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201410818003.6A priority Critical patent/CN104519149A/en
Publication of CN104519149A publication Critical patent/CN104519149A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method for protecting important communication equipment by caching DHCPv6 rq options. The method comprises the following steps: creating a Daemon, wherein the Daemon, as an independent process, runs synchronously with a DHCPv6 Client; monitoring the state of the DHCPv6 Client through inter-process communications; caching rq options values carried in the offer information received by the DHCPv6 Client when the DHCPv6 Client is in a Bound state; starting a timer when the DHCPv6 Client is in a Selecting state, and if the DHCPv6 Client does not receive the offer information when the timer expires, using the cached rq options values to configure information for a system, so as to realize normal communications of the system. The method provided by the invention prevents users from suffering inconvenience and economic losses caused by communication interruption of the important communication equipment.

Description

A kind of method being protected important communication equipment by buffer memory DHCPv6 rq options
Technical field
The present invention relates to a kind of method protecting important communication equipment, be specifically related to a kind of method being protected important communication equipment by buffer memory DHCPv6 rq options.
Background technology
Along with the development of Internet technology, IPv6 is relative to IPv4, and address is by 32 Bits Expanding to 128, and the length of the configuration informations such as corresponding route and DNS also increases considerably thereupon.And in real work, when especially lacking the personnel of professional technique, cannot manual configuration be carried out at all.Therefore, general by message such as DHCPv6 Client automatic acquisition IPv6 address, route and DNS, be automatically configured in system; Specifically, these message are that DHCPv6 Client asks to obtain to DHCPv6 Server by discover message, are present in the offer message received, and are presented with the form of TLV (Type, length, value).
DHCPv6 Client will ask lease information to DHCPv6 Server every 24 hours usually.In the discover message that DHCPv6 Client sends to DHCPv6 Server, carry the rq options that DHCPv6 Client is concerned about, as being concerned about routing iinformation, then with rq options, 3,33,121; If be concerned about sip proxy information, then carry rq options120; Corresponding NTP with DNS rq options has definition concrete separately in the RFC that DHCP is relevant.DHCPv6 Server is according to rq options corresponding in discover message, and return in offer message and be worth accordingly, its concrete message flow is see accompanying drawing 3.
But, when DHCPv6 Server transship or communication equipment to the communication link Down of DHCPv6 Server fall and arrive the link of other ISP normal time, DHCPv6 Client can not obtain Offer message, therefore, this communication equipment can not obtain as IPv6 address and route, cause this equipment not communicate normally.
Summary of the invention
For the problem of prior art, the present invention proposes a kind of method being protected important communication equipment by buffer memory DHCPv6 rq options, according to the different conditions of DHCPv6 Client, the rq options value entrained by offer information that buffer memory DHCPv6 Client receives; By the rq options value of buffer memory to system configuration IP address, the information such as route, make System recover communication function.The invention provides a kind of emergency communication mechanism, avoid the communication disruption of important communication equipment.
The object of the invention is to adopt following technical proposals to realize:
Protected a method for important communication equipment by buffer memory DHCPv6 rq options, described method comprises:
(1) Daemon is created;
(2) using described Daemon as an independently process, with DHCPv6 Client synchronous operation;
(3) by interprocess communication, the state of monitoring DHCPv6 Client;
(4) when DHCPv6 Client is in Bound state, rq options value entrained in the offer information that buffer memory DHCPv6 Client receives;
(5) when DHCPv6 Client is in Selecting state, start a timer, when the timer times out, still do not receive offer message, then by the rq options value of buffer memory to system configuration information, to realize system proper communication.
Wherein, the Offer information of described step (4) comprises IP address, routing iinformation and DNS information.
Preferably, when DHCPv6 Client can receive the Offer information that DHCPv6 Server sends, described DHCPv6Client is in Bound state.
Preferably, when DHCPv6 Client cannot obtain the Offer information that DHCPv6 Server sends, described DHCPv6Client rests on selecting state.
Preferably, described step (5) comprising: if exceed the scheduled time at described timer, DHCPv6 Client still rests on Selecting state, described Daemon is according to the rq options value of last time buffer memory under Bound state, to system configuration IP address and routing iinformation, and in routing iinformation, add the flag of DHCPv6 Client;
DHCPv6 Client enters Bound state after receiving the Offer information of described DHCPv6 Server configuration, and removes the routing iinformation with DHCPv6 flag, reconfigures route and IP address information according to the offer newly received.Further, the routing iinformation that injects for removing Daemon of described DHCPv6 Client flag.
With immediate prior art ratio, excellent effect of the present invention is:
When DHCPv6 Server cisco unity malfunction time, utilize the DHCPv6 rq options of buffer memory, to information such as the automatic configuration of IP address of system and routes, make System recover communication function.The puzzlement that the communication disruption avoiding important communication equipment is brought and economic loss.When DHCPv6 Server normally works time, Daemon is buffer memory rq options only, provides a kind of emergency communication mechanism.
This invention can revise any code of existing DHCPv6 Client, and Daemon is carried out work as an independent process with DHCPv6 Client, the heavy security mechanism that made important communication equipment many; In addition, the method also extends to the situation being obtained IPv4 address by DHCP.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that buffer memory DHCPv6 rq options provided by the invention protects important communication equipment;
Fig. 2 is that communication equipment provided by the invention cannot the topological diagram of normal receipt message;
The DHCPv6 Client that Fig. 3 provides for background technology is with the communication scheme of DHCPv6 Server.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described.
As shown in Figure 1, a kind of method being protected important communication equipment by buffer memory DHCPv6 rq options, it is characterized in that, described method comprises:
(1) Daemon is created;
(2) using described Daemon as an independently process, with DHCPv6 Client synchronous operation;
(3) by interprocess communication, the state of monitoring DHCPv6 Client;
(4) when DHCPv6 Client is in Bound state, rq options value entrained in the offer information that buffer memory DHCPv6 Client receives;
Wherein, the out of Memory that the Offer information of described step (4) comprises IP address, routing iinformation and asks, as Sip Proxy etc.
When DHCPv6 Client can receive the Offer information that DHCPv6 Server sends, described DHCPv6 Client is in Bound state.
As shown in Figure 2, (5), when DHCPv6 Client is in Selecting state, start a timer, when the timer times out, when still not receiving offer, by the rq options value of buffer memory to system configuration information, to realize system proper communication.
When DHCPv6 Client cannot obtain the Offer information that DHCPv6 Server sends, described DHCPv6 Client rests on selecting state.
Described step (5) comprising: if DHCPv6 Client still rests on Selecting state within the scheduled time of described timer, described Daemon is according to the rq options value of last time buffer memory under Bound state, to information such as system configuration IP address and routes, and in routing iinformation, add the flag of DHCPv6 Client;
DHCPv6 Client enters Bound state after receiving the Offer information of described Daemon configuration, and removes the routing iinformation with DHCPv6 flag, reconfigures the information such as route and IP address according to the offer newly received.Wherein, the information setup parameter according to actual needs of each Equipments Setting, is generally divided into optional parameters and mandatory parameter.Mandatory parameter comprises IP address, subnet mask (rq options value is 1), routing iinformation (3,33,121) 3 are wherein, router routes, 33 is static routing table, and 121 is classless Static Route Option.Optional parameters is selected voluntarily according to the location of equipment, if equipment pays close attention to sip proxy, so in the discover message of request, carries 120, if equipment pays close attention to DNS Server, so in the Discover message of request, carries 119;
The routing iinformation that described DHCPv6 Client flag injects for removing Daemon.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; although with reference to above-described embodiment to invention has been detailed description; those of ordinary skill in the field still can modify to the specific embodiment of the present invention or equivalent replacement; and these do not depart from any amendment of spirit and scope of the invention or equivalent replacement, it is all being applied within the claims of the present invention awaited the reply.

Claims (6)

1. protected a method for important communication equipment by buffer memory DHCPv6 rq options, it is characterized in that, described method comprises:
(1) Daemon is created;
(2) using described Daemon as an independently process, with DHCPv6 Client synchronous operation;
(3) by interprocess communication, the state of monitoring DHCPv6 Client;
(4) when DHCPv6 Client is in Bound state, rq options value entrained in the offer information that buffer memory DHCPv6 Client receives;
(5) when DHCPv6 Client is in Selecting state, start a timer, when the timer times out, still do not receive offer, then by the rq options value of buffer memory to system configuration information, to realize system proper communication.
2. a kind of method protecting important communication equipment by buffer memory DHCPv6 rq options as claimed in claim 1, it is characterized in that, the Offer information of described step (4) comprises IP address, routing iinformation.
3. a kind of method being protected important communication equipment by buffer memory DHCPv6 rq options as claimed in claim 1, when DHCPv6 Client can receive the Offer information that DHCPv6 Server sends, described DHCPv6 Client is in Bound state.
4. a kind of buffer memory DHCPv6 rq options of passing through protects the method for important communication equipment as claimed in claim 1; it is characterized in that; when DHCPv6 Client cannot obtain the Offer information that DHCPv6 Server sends, described DHCPv6 Client rests on selecting state.
5. a kind of buffer memory DHCPv6 rq options of passing through protects the method for important communication equipment as claimed in claim 1, it is characterized in that, described step (5) comprising: if DHCPv6 Client still rests on Selecting state within the scheduled time of described timer, described Daemon is according to the rq options value of last time buffer memory under Bound state, to system configuration IP address and routing iinformation, and in routing iinformation, add the flag of DHCPv6 Client;
DHCPv6 Client enters Bound state after receiving the Offer information of described DHCPv6 Server, and removes the routing iinformation with DHCPv6 flag, reconfigures route and IP address information according to the offer newly received.
6. a kind of method protecting important communication equipment by buffer memory DHCPv6 rq options as claimed in claim 5, is characterized in that, the routing iinformation that described DHCPv6 Client flag injects for removing Daemon.
CN201410818003.6A 2014-12-24 2014-12-24 Method for protecting important communication equipment by caching DHCPv6 rq options Pending CN104519149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410818003.6A CN104519149A (en) 2014-12-24 2014-12-24 Method for protecting important communication equipment by caching DHCPv6 rq options

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410818003.6A CN104519149A (en) 2014-12-24 2014-12-24 Method for protecting important communication equipment by caching DHCPv6 rq options

Publications (1)

Publication Number Publication Date
CN104519149A true CN104519149A (en) 2015-04-15

Family

ID=52793852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410818003.6A Pending CN104519149A (en) 2014-12-24 2014-12-24 Method for protecting important communication equipment by caching DHCPv6 rq options

Country Status (1)

Country Link
CN (1) CN104519149A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453705A (en) * 2007-12-05 2009-06-10 北京邮电大学 Off-line browsing system for news
CN101820387A (en) * 2010-02-08 2010-09-01 北京航空航天大学 Method for rapidly deploying extensible cluster
EP2503804A1 (en) * 2011-03-21 2012-09-26 Apple Inc. Apparatus and method for managing peer-to-peer connections between different service providers
CN102710665A (en) * 2012-06-27 2012-10-03 深圳中兴网信科技有限公司 Mobile terminal, and data synchronization method of server and mobile terminal
CN103561122A (en) * 2013-10-23 2014-02-05 华为终端有限公司 IPv6 address collocation method, IPv6 client and server
CN103731394A (en) * 2012-10-10 2014-04-16 中国移动通信集团公司 Method and equipment for configuring IPv6 transitional technologies on CPE

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453705A (en) * 2007-12-05 2009-06-10 北京邮电大学 Off-line browsing system for news
CN101820387A (en) * 2010-02-08 2010-09-01 北京航空航天大学 Method for rapidly deploying extensible cluster
EP2503804A1 (en) * 2011-03-21 2012-09-26 Apple Inc. Apparatus and method for managing peer-to-peer connections between different service providers
CN102710665A (en) * 2012-06-27 2012-10-03 深圳中兴网信科技有限公司 Mobile terminal, and data synchronization method of server and mobile terminal
CN103731394A (en) * 2012-10-10 2014-04-16 中国移动通信集团公司 Method and equipment for configuring IPv6 transitional technologies on CPE
CN103561122A (en) * 2013-10-23 2014-02-05 华为终端有限公司 IPv6 address collocation method, IPv6 client and server

Similar Documents

Publication Publication Date Title
EP3313025B1 (en) Data packet forwarding
EP2677689A2 (en) Method, apparatus and system for network device configuration
CN104767666A (en) Virtual extensible local area network tunnel terminal tunnel building method and equipment
WO2014194753A1 (en) Method, device and system for generating service path
WO2006119358A3 (en) Secure address proxying using multi-key cryptographically generated addresses
DE602007005946D1 (en) Configure routers for DHCP service requests
CN102740308B (en) The establishing method of the network parameter in pre-configured equipment and pre-configured network
EP2515507A1 (en) Auto-configuration of network devices
WO2018121257A1 (en) Method, apparatus and system for sending message, and storage medium
EP2991313A1 (en) Method and system for forwarding information in distributed network
CN104883407A (en) IPv6 address handling method and apparatus and DHCPv6 relay
US20190297655A1 (en) Local break-out in mobile ip networks
CN104509072A (en) Method and apparatus for configuring dhcp client
CN101873320A (en) Client information verification method based on DHCPv6 relay and device thereof
CN103581353A (en) Method and system of automatic configuration of gateway device
CN104883408A (en) Method of processing NAT64 prefix, network equipment and DHCPv server
EP2736222B1 (en) Service node and inter-service node user protocol message synchronization method
EP3048756A1 (en) Management method and apparatus for dynamic host configuration protocol server and relay
CN106375489B (en) Method and device for processing Media Access Control (MAC) address
WO2017114128A1 (en) Method and device for processing packets
CN104519149A (en) Method for protecting important communication equipment by caching DHCPv6 rq options
CN105812272A (en) Processing method of service chain, device and system
JP4647473B2 (en) Management apparatus and monitoring target device management method
CN102801826B (en) IPv6 (Internet Protocol Version 6) site multi-homing application method on basis of IPv6 address translation
JP5105124B2 (en) Router device, packet control method and program based on prefix management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160325

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant after: State Grid Corporation of China

Applicant after: China Electric Power Research Institute

Applicant after: State Grid Smart Grid Institute

Applicant after: Jiangsu Electric Power Company

Address before: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant before: State Grid Corporation of China

Applicant before: China Electric Power Research Institute

Applicant before: Jiangsu Electric Power Company

CB02 Change of applicant information

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant after: State Grid Corporation of China

Applicant after: China Electric Power Research Institute

Applicant after: GLOBAL ENERGY INTERCONNECTION RESEARCH INSTITUTE

Applicant after: Jiangsu Electric Power Company

Address before: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Applicant before: State Grid Corporation of China

Applicant before: China Electric Power Research Institute

Applicant before: State Grid Smart Grid Institute

Applicant before: Jiangsu Electric Power Company

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication

Application publication date: 20150415

RJ01 Rejection of invention patent application after publication