CN100473037C - Method for realizing distributed DHCP relay - Google Patents

Method for realizing distributed DHCP relay Download PDF

Info

Publication number
CN100473037C
CN100473037C CNB2007100851988A CN200710085198A CN100473037C CN 100473037 C CN100473037 C CN 100473037C CN B2007100851988 A CNB2007100851988 A CN B2007100851988A CN 200710085198 A CN200710085198 A CN 200710085198A CN 100473037 C CN100473037 C CN 100473037C
Authority
CN
China
Prior art keywords
user
response packet
relaying process
request package
ply
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
CNB2007100851988A
Other languages
Chinese (zh)
Other versions
CN101039234A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007100851988A priority Critical patent/CN100473037C/en
Publication of CN101039234A publication Critical patent/CN101039234A/en
Application granted granted Critical
Publication of CN100473037C publication Critical patent/CN100473037C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a implementation method of relaying for distributed DHCP, which includes following steps: numbering for each PELAY process in the DHCP RELAY device and defining that different REPLAY process receives the user request packet from the corresponding line card physical port; analyzing the number of the line card physical port of the user request packet when receiving the user request packet, then sending the user request packet to the RELAY process which is corresponding to the number of the line card physical port; filling the number of RELAY process in the MAC field which is in the message of the modification packet of RELAY process, sending the request packet to the server device which correlates with the RELAY process; extracting the number of RELAY process which is in the user MAC field of the message when receiving the response packet of the server device, forwarding the response packet to corresponding RELAY process indicated by the number; After RELAY process receiving the response packet, modifying the content of the user MAC field therein and forwarding to corresponding user of the line card physical port. The invention implements that one DHCP RELAY device can concurrently treat more user requests and server responses which improves the equipment performance.

Description

A kind of implementation method of relaying for distributed DHCP
Technical field
The present invention relates to a kind of distributed DHCP (Dynamic Host Configuration Protocol, dynamic host allocation protocol) implementation method of relaying (RELAY), relate in particular to the BAS Broadband Access Server product of data communication communication field, also be applicable to that other adopts DHCP RELAY to insert the data communication products of Internet simultaneously.
Background technology
Along with ADSL (Asymmetrical Digital Subscriber Line, ADSL (Asymmetric Digital Subscriber Line)), access technology such as Ethernet is increasingly mature, broadband access is more and more universal, meanwhile, the IPTV that carries out at broadband access network (Internet Protocol Television) video and VoIP (IP-based voice) business is also more and more.Carrying out of each business needs to adopt special-purpose terminal to realize that need use STB (set-top box) as video traffic, voice service need be used IAD (Integrated Access Device, integrated access equipment), or the like.Each special-purpose terminal will obtain the address information of local terminal before commencing business, then, just can utilize the local terminal address to carry out miscellaneous service.
In communication network, above these terminals obtain the address and adopt DHCP (DynamicHost configuration) agreement to realize usually.The DHCP agreement has a Server (server) equipment, and the terminal equipment of all applied addresses is Client (client computer) ends, and Server is responsible for giving whole Client to distribute the address.But such C/S (client/server) pattern can only realize that real world applications usually is an across a network at local network; In addition, the address is very valuable resource, normally the whole network unified management.Scope that can be very not little just disposes a Server (server).Like this, just produce DHCPRELAY (DHCP proxy) technology, solved the demand of across a network applied address.
At present, all providing the function of DHCP RELAY on a lot of broadband access equipments, is exactly for the networking needs above satisfying.In addition, adopt DHCP RELAY mode, reduced the broadcast packet on the backbone network, broadband access equipment is by this mode, management that can participating user, and the legitimacy of identification bag when the user goes offline unusually, can notify Server to discharge resource.Server there is protective effect, avoids assault.
A broadband access equipment can be connected with a plurality of networks, communicates by letter with many DHCP Server.But because every Server works alone, broadband access equipment might become bottleneck as the Relay equipment of centre so.
Summary of the invention
Technical problem to be solved by this invention is to provide the implementation method of a kind of distributed DHCP RELAY (relaying), to solve when last broadband access equipment during as the Relay equipment of centre the bottleneck problem of appearance.
In order to address the above problem, the invention provides the implementation method of a kind of distributed DHCP RELAY, it is characterized in that, may further comprise the steps:
(1), and disposes user's request package that different RELAY processes receives ply-yarn drill physical port corresponding with it to each the RELAY process numbering on the DHCP RELAY equipment;
(2) when DHCP RELAY equipment is received user's request package, analyze the ply-yarn drill physical port number of this user's request package, then this user's request package is sent to the RELAY process corresponding with this ply-yarn drill physical port number;
(3) this RELAY process is revised the user MAC field of message in the request package, fills in this RELAY process numbering in user MAC field, request package is issued Server (server) equipment of this RELAY process context;
(4) DHCP RELAY equipment is received the response packet of Server equipment, extracts user MAC field in the message of this response packet, and obtains this RELAY process numbering, and this response packet is transmitted to the corresponding RELAY process of numbering indication;
(5) after the RELAY process is received this response packet, revise the user MAC field contents of the inside, and be transmitted to the user of corresponding ply-yarn drill physical port.
Method of the present invention, wherein, described RELAY process numbering, for the slot number of the ply-yarn drill under this RELAY process and side-play amount and;
Wherein, described step (3) comprising:
This relaying process is revised the user MAC field of message in the request package, fills in this relaying process numbering, request package is issued the server apparatus of this relaying process context for the 1st in user MAC field;
Described step (4) comprising:
DHCP RELAY equipment is received the response packet of Server equipment, extract in the message of this response packet the 1st relaying process numbering in the user MAC field, if this relaying process numbering is not between the RELAY of correspondence process numbering, this is an illegal response packet so, and DHCP RELAY equipment abandons it; Otherwise the value that this relaying process numbering deducts side-play amount is the slot number of the affiliated ply-yarn drill of the RELAY process of corresponding this response packet of reception, and DHCP RELAY equipment sends to this RELAY process with response packet and handles.
Method of the present invention, wherein, described user's request package is the DHCP request package; Wherein, described DHCP request package is Discovery request package or Request request package.
Method of the present invention, wherein, described step (1) further comprises:
If not being this ply-yarn drill physical port, request package do not receive that then DHCP RELAY equipment abandons it.
Method of the present invention, wherein, described step (3) further comprises: this RELAY process is revised IP address, the value of gateway field, the broadcast flag of message in the request package.
Method of the present invention, wherein, the response packet of Server described in the step (5) is Offer response packet or Ack/Nak response packet.
Method of the present invention, wherein, described step (3) comprising:
(31) this RELAY process summary record user MAC and corresponding ply-yarn drill physical port number, read the IP address of Server equipment, and search route, and acquire the route of this Server equipment, in this route, take out local interface IP address, interface MAC, next-hop MAC information;
(32) source IP address, source MAC, purpose IP address, the purpose MAC in the message of this RELAY process modification user request package, original broadcast flag is changed into clean culture, and the value of filling in gateway field is the interface IP address of user's request package of this ply-yarn drill physical port, fills in this RELAY process numbering the 1st of user MAC field;
(33) recomputate user's request package verification and, and send to the Server equipment of this RELAY process context.
Wherein, described step (5) comprising:
After the RELAY process is received this response packet, is the 1st bit recovery of user MAC field 0, and the clean culture mark is changed into broadcast flag, and recomputate this response packet verification and, find the user of ply-yarn drill physical port of the correspondence of initial record according to user MAC field, response packet is broadcast to this user.
Adopt method of the present invention, the request that broadband access equipment can a plurality of Client of distributed processing (client computer), the replying of distributed treatment S erver (server).Like this,, can regard the concurrent working of many DHCP RELAY equipment in logic as, improve the performance of system though physically be an equipment.More user's request of the i.e. processing that DHCP RELAY equipment can be concurrent and Server reply, and have improved equipment performance.
Description of drawings
Fig. 1 is the data-bag interacting schematic diagram between the described Client equipment of the embodiment of the invention, DHCP Relay equipment, the Server equipment;
Fig. 2 is the flow chart of steps of the implementation method of the described a kind of distributed DHCP RELAY of the embodiment of the invention;
Fig. 3 is the concrete operations flow chart of the implementation method of the described a kind of distributed DHCP RELAY of the embodiment of the invention.
Embodiment
The present invention is in order to solve the drawback that conventional solution exists, further set forth the implementation method of a kind of distributed DHCP RELAY of the present invention by following specific embodiment, below embodiment is described in detail, but not as a limitation of the invention.
As shown in Figure 1, a plurality of RELAY processes of operation on the described in embodiments of the present invention DHCP RELAY equipment; Up direction: according to certain rule, Client (client computer) message (as: Discovery that different physical ports are sent here, Request etc.) giving different RELAY processes handles, the inter-process logic of each RELAY process is identical, the legitimacy of RELAY process analysis message, after user's legitimacy is passed through, revise source IP address and MAC in the message, purpose IP address and MAC, gateway, broadcast flag, fields such as user MAC, message is transmitted to separately agency's Server (server) equipment, sends from the physical port that links to each other with Server equipment separately;
Down direction: DHCP RELAY equipment is received the response packet of Server device responds, gives corresponding RELAY process this response packet, and the RELAY process is transmitted to the user to it after handling this response packet.Recited abovely how giving corresponding RELAY process respond packet, is emphasis of the present invention.
Wherein the roughly flow process of the method for the invention is: for which RELAY process is quick identification Server respond packet be to, the present invention is in advance to each RELAY process numbering; When transmitting user's request message, first bit mac that utilizes station address is 0 this characteristic always, and the RELAY process number is recorded in first of user MAC, revises some field in the message then, and user's request message is transmitted to Server equipment.When receiving the replying of Server equipment, extract user MAC in this response packet first, obtain the RELAY process number, this response packet is sent to corresponding RELAY process.
Be to adopt the present invention on BAS Broadband Access Server, to realize the example of distributed DHCP RELAY below.The BAS Broadband Access Server that present embodiment uses possesses a master control borad and polylith ply-yarn drill, and master control borad is responsible for the configuration management of entire equipment, and independent CPUs and forwarding module are arranged on the every ply-yarn drill, can finish the function that the user inserts.On this equipment, DHCPRELAY process of operation on the every ply-yarn drill, the process between different ply-yarn drills is fully independently.Each DHCP RELAY process is only handled the user's request that is connected with this ply-yarn drill physical port.Shown in accompanying drawing 2,3;
The implementation step of the embodiment of the invention:
Step 201 is to each the RELAY process numbering on the equipment; Lay down a regulation, each RELAY process is handled user's request package of which ply-yarn drill physical port;
On the BAS Broadband Access Server of present embodiment, owing on every ply-yarn drill a RELAY process is arranged, the numbering of this process is exactly the slot number+side-play amount 8 of ply-yarn drill so; This equipment has 8 ply-yarn drills, and the numbering of all RELAY processes is exactly 9-16 so, and is corresponding one by one with slot number; The rule of this access server is: the RELAY process on each ply-yarn drill is only handled the user's who is connected with this ply-yarn drill physical port request package, as Discovery, Request etc.; If not being this ply-yarn drill physical port, this request package do not receive that then DHCP RELAY equipment abandons it without exception;
Step 202 when DHCP RELAY equipment is received user's request package, is analyzed the ply-yarn drill physical port number of this user's request package, gives corresponding RELAY process;
Wherein, when certain ply-yarn drill is received the request package of DHCP, as Discovery, Request etc.; Because this ply-yarn drill has only a RELAY process, so directly this request package is given the RELAY process of this ply-yarn drill; This RELAY process analysis receives physical slot item, the port numbers of this bag, and judges to be the groove position of this ply-yarn drill, just it is abandoned if not DHCP RELAY equipment; Otherwise, judge whether port numbers is legal, be effective port, just it is abandoned if not DHCP RELAY equipment; Otherwise continue to handle;
Step 203, fields such as the IP address in the message of this RELAY process modification request package, MAC, gateway, broadcast flag, user MAC, wherein, fill in this RELAY process numbering, this request package is issued the Server equipment of this process context for first of user MAC;
Above-mentioned this step mainly is: this RELAY process summary record user's MAC and ply-yarn drill physical port; This RELAY process reads the IP address of Server equipment, searches route, acquires the route of this Server equipment, takes out information such as local interface IP address, interface MAC, next-hop MAC in route; Then, this RELAY process is revised source IP, source MAC, purpose IP address, the purpose MAC in the request package, and original broadcast flag is changed into clean culture, fills in the interface IP address of gateway for user's request package of this ply-yarn drill physical port; This RELAY process makes first of user MAC into this groove bit number+8; At last, recomputate request package verification and, send;
Step 204, DHCP RELAY equipment is received the response packet of Server equipment, as Offer, Ack etc.; Extract the user MAC field in the message of this response packet, get first, obtain this RELAY process numbering, this response packet is transmitted to the RELAY process of numbering indication;
Certain piece ply-yarn drill of broadband access equipment is received the response packet of Server, as Offer, Ack/Nak etc., extracts first X of the user MAC in the bag, if X not between 9-16, this is an illegal packet so, then DHCP RELAY equipment directly abandons; Otherwise X-8 is exactly the slot number that receive this bag; Specifically, if X-8 equals the slot number of this ply-yarn drill, so this bag is issued the RELAY process processing of this ply-yarn drill; Otherwise the RELAY process of issuing X-8 groove position correspondence is handled;
Step 205, this RELAY process is received the response packet of Server equipment, revises the user MAC field contents of the inside, is transmitted to the user of corresponding ply-yarn drill physical port;
Wherein, specifically, this RELAY process is received the Server response packet, is first bit recovery of user MAC field 0, and the clean culture mark changed into broadcasting, recomputate this response packet verification and, according to user's ply-yarn drill physical port information that user MAC finds initial record, this response packet is broadcasted away to this user.
Need to prove that internal event of the inventive method and external event all can be set, therefore above-mentioned occurrence only for an embodiment of explanation the inventive method, can not be used for limiting scope of patent protection of the present invention.
Adopt the described method of the embodiment of the invention, the request that broadband access equipment can a plurality of Client of distributed processing (client computer), the replying of distributed treatment S erver (server).Like this,, can regard the concurrent working of many DHCP RELAY equipment in logic as, improve the performance of system though physically be an equipment.More user's request of the i.e. processing that DHCP RELAY equipment can be concurrent and Server reply, and have improved equipment performance.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1, a kind of implementation method of relaying for distributed DHCP is characterized in that, may further comprise the steps:
(1), and disposes user's request package that different relaying processes receives ply-yarn drill physical port corresponding with it to each the relaying process numbering on the DHCP relay equipment;
(2) when DHCP relay equipment is received user's request package, analyze the ply-yarn drill physical port number of this user's request package, then this user's request package is sent to the relaying process corresponding with this ply-yarn drill physical port number;
(3) this relaying process is revised the user MAC field of message in the request package, fills in this relaying process numbering in user MAC field, request package is issued the server apparatus of this relaying process context;
(4) DHCP relay equipment is received the response packet of server apparatus, extracts user MAC field in the message of this response packet, and obtains this relaying process numbering, and this response packet is transmitted to the corresponding relaying process of numbering indication;
(5) after the relaying process is received this response packet, revise the user MAC field contents of the inside, and be transmitted to the user of corresponding ply-yarn drill physical port.
2, the method for claim 1 is characterized in that, described relaying process numbering, for the slot number of the ply-yarn drill under this relaying process and side-play amount and.
3, method as claimed in claim 2 is characterized in that, described step (3) comprising:
This relaying process is revised the user MAC field of message in the request package, fills in this relaying process numbering, request package is issued the server apparatus of this relaying process context for the 1st in user MAC field;
Described step (4) comprising:
DHCP relay equipment is received the response packet of server apparatus, extract in the message of this response packet the 1st relaying process numbering in the user MAC field, if this relaying process numbering is not between the relaying process numbering of correspondence, this is an illegal response packet so, and DHCP relay equipment abandons it; Otherwise the value that this relaying process numbering deducts side-play amount is the slot number of the affiliated ply-yarn drill of the relaying process of corresponding this response packet of reception, and DHCP relay equipment sends to this relaying process with response packet and handles.
4, the method for claim 1 is characterized in that, described user's request package is the DHCP request package.
5, method as claimed in claim 4 is characterized in that, described DHCP request package is Discovery request package or Request request package.
6, the method for claim 1 is characterized in that, described step (1) further comprises:
If not being this ply-yarn drill physical port, request package do not receive that then DHCP relay equipment abandons it.
7, the method for claim 1 is characterized in that, described step (3) further comprises: this relaying process is revised IP address, the value of gateway field, the broadcast flag of message in the request package.
8, the method for claim 1 is characterized in that, the response packet of server described in the step (5) is Offer response packet or Ack/Nak response packet.
9, the method for claim 1 is characterized in that, described step (3) comprising:
(31) this relaying process summary record user MAC and corresponding ply-yarn drill physical port number, read the IP address of server apparatus, and search route, and acquire the route of this server apparatus, in this route, take out local interface IP address, interface MAC, next-hop MAC information;
(32) source IP address, source MAC, purpose IP address, the purpose MAC in the message of this relaying process modification user request package, original broadcast flag is changed into clean culture, and the value of filling in gateway field is the interface IP address of user's request package of this ply-yarn drill physical port, fills in this relaying process numbering the 1st of user MAC field;
(33) recomputate user's request package verification and, and send to the server apparatus of this relaying process context.
10, method as claimed in claim 9 is characterized in that, described step (5) comprising:
After the relaying process is received this response packet, is the 1st bit recovery of user MAC field 0, and the clean culture mark is changed into broadcast flag, and recomputate this response packet verification and, find the user of ply-yarn drill physical port of the correspondence of initial record according to user MAC field, response packet is broadcast to this user.
CNB2007100851988A 2007-03-19 2007-03-19 Method for realizing distributed DHCP relay Expired - Fee Related CN100473037C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100851988A CN100473037C (en) 2007-03-19 2007-03-19 Method for realizing distributed DHCP relay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100851988A CN100473037C (en) 2007-03-19 2007-03-19 Method for realizing distributed DHCP relay

Publications (2)

Publication Number Publication Date
CN101039234A CN101039234A (en) 2007-09-19
CN100473037C true CN100473037C (en) 2009-03-25

Family

ID=38889890

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100851988A Expired - Fee Related CN100473037C (en) 2007-03-19 2007-03-19 Method for realizing distributed DHCP relay

Country Status (1)

Country Link
CN (1) CN100473037C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9742726B2 (en) 2015-02-26 2017-08-22 Red Hat Israel, Ltd. Distributed dynamic host configuration protocol

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510902B (en) * 2009-03-25 2011-12-21 杭州华三通信技术有限公司 Method, system and equipment for preventing wireless client terminal from disconnection during internet process
CN101616029B (en) * 2009-07-28 2011-10-26 中兴通讯股份有限公司 Method and system for realizing network topology discovery
CN104935505B (en) * 2014-03-21 2018-11-27 杭州迪普科技股份有限公司 A kind of message forwards, assists the method and device, trunking of forwarding
CN105939278B (en) * 2015-04-30 2020-04-03 杭州迪普科技股份有限公司 Traffic processing method and device
CN106878481B (en) * 2016-12-30 2020-08-18 瑞斯康达科技发展股份有限公司 Method, device and system for acquiring Internet Protocol (IP) address
CN107809498B (en) * 2017-10-26 2021-02-02 迈普通信技术股份有限公司 Communication method and communication device
CN110851238A (en) * 2019-11-13 2020-02-28 浪潮云信息技术有限公司 Implementation method of openstack fully-distributed dhcp service

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9742726B2 (en) 2015-02-26 2017-08-22 Red Hat Israel, Ltd. Distributed dynamic host configuration protocol

Also Published As

Publication number Publication date
CN101039234A (en) 2007-09-19

Similar Documents

Publication Publication Date Title
CN100473037C (en) Method for realizing distributed DHCP relay
US10439862B2 (en) Communication terminal with multiple virtual network interfaces
CN100388739C (en) Method and system for contributing DHCP addresses safely
CN1929472B (en) Method and system for managing a transfer of data in a data network
CN102143035B (en) Data traffic processing method, network device and network system
CN101141492B (en) Method and system for implementing DHCP address safety allocation
CN102571613B (en) Method and network device for message forwarding
CN101616056B (en) Shunt-stream method and shunt-stream gateway breaking through PPPoE technical limitation and network structure of the shunt-stream gateway
US20210014174A1 (en) Method, Device, and System for Transmitting Multicast Packet
CN101662511A (en) Network address distributing method, DHCP server, access system and method thereof
CN1722707B (en) Method for securing communication in a local area network switch
CN101237332A (en) Billing method, billing system and traffic statistical device
CN102098278B (en) Subscriber access method and system as well as access server and device
CN100486158C (en) Subscriber authentication realizing method in broadband access network
CN103220276A (en) Method and system for network access, and gateway
CN103327129B (en) For the domain name analytic method of more WAN mouthfuls of gateway devices
CN104040989B (en) Gateway, and corresponding method, computer program and storage device
US7590757B2 (en) Broadcast type communication data distribution device and broadcast type communication system
CN109743265A (en) A kind of method and apparatus obtaining certificate information
CN1997036A (en) Access multiplexer
CN101282282B (en) Method, system and terminal for determining service quality degree
CN110474951A (en) A kind of fingerprint collecting method and view networked server
CN107210973B (en) Message processing method, device and system
CN104054303B (en) Gateway suitable for VOD
KR100458252B1 (en) Message Exchanging Method between Cable Modem and Cable Modem Termination 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: 20090325

Termination date: 20180319

CF01 Termination of patent right due to non-payment of annual fee