CN103634844A - Method and system for realizing distributed multi-port DHCP relay - Google Patents

Method and system for realizing distributed multi-port DHCP relay Download PDF

Info

Publication number
CN103634844A
CN103634844A CN201210305378.3A CN201210305378A CN103634844A CN 103634844 A CN103634844 A CN 103634844A CN 201210305378 A CN201210305378 A CN 201210305378A CN 103634844 A CN103634844 A CN 103634844A
Authority
CN
China
Prior art keywords
dhcp
extended attribute
message
attribute option
option
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
CN201210305378.3A
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.)
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 CN201210305378.3A priority Critical patent/CN103634844A/en
Publication of CN103634844A publication Critical patent/CN103634844A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a system for realizing a distributed multi-port DHCP relay. The method comprises the steps that a DHCP relay receives a DHCP request message sent by a DHCP client to a network, writes access unit information and a port or VLAN sub port information into an extended attribute Option, wherein the access unit information and the port or the VLAN sub port information receive the DHCP request message, and sends the DHCP request message added with the extended attribute Option to a DHCP server; the DHCP relay acquires a response message sent by the DHCP server, wherein the response message comprises an IP address assigned by the DHCP server to the DHCP client and retains the extended attribute Option; and the extended attribute Option is analyzed, so as to select a corresponding access unit and port or a VLAN sub port to forward the DHCP response message to the DHCP client. According to the invention, the DHCP relay can select the correct access unit and port or the VLAN sub port to forward the DHCP message, and the reliability is improved to some extent.

Description

The implementation method of distributed multiport DHCP relay and system
Technical field
The present invention relates to communication technical field, particularly, relate to a kind of distributed multiport DHCP(Dynamic Host Configuration Protocol, dynamic host allocation protocol) implementation method and the system of relaying (RELAY), it is applicable to the Radio Access Controller product of wireless communication technology field, is also applicable to the data communication products that other adopts DHCP RELAY access (Internet) simultaneously.
Background technology
DHCP agreement provides a kind of method of dynamic IP address allocation and configuration parameter.DHCP agreement has a server (Server), and the user of all applied addresses is client (Client), and server S erver is responsible for distributing address to whole client Client.
In the middle of practical application, at client Client and server Server, indirectly connected in the situation that, system need to provide dhcp relay feature, by DHCP relay, sends to server to process the solicited message unification of client.
In the situation that using DHCP relay, if the client Client number accessing in system is numerous, DHCP relay may need to provide a plurality of access units, and each access unit may provide a plurality of ports.Under some occasion, between a plurality of client Client due to the reason of safety, may need mutual isolation, for example, by VPN(Virtual Private Network, VPN (virtual private network)) isolate, be that different client Client need to select the different port of the different access units of DHCP relay to carry out the forward process of message, therefore, in practical application, if can not guarantee DHCP relay receives and dispatches from the port of correct access unit when processing dhcp message, may cause dhcp message to be lost, client Client can not correctly obtain IP address and the configuration parameter of distribution.
Summary of the invention
Select correct access unit and port when making DHCP response message that distributed multiport DHCP relay sends to client forwarding server, main purpose of the present invention is to provide a kind of implementation method and system of distributed multiport DHCP relay, it is by DHCP relay option, so that DHCP relay can select correct access unit and port to carry out the forwarding of DHCP response message.
In order to reach object of the present invention, the present invention realizes by the following technical solutions:
An implementation method for distributed multiport DHCP relay, comprising:
DHCP relay receives the DHCP request message that dhcp client sends to network, the access unit information and the port information that receive this DHCP request message are write to extended attribute Option, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP response message that Dynamic Host Configuration Protocol server sends, wherein comprised Dynamic Host Configuration Protocol server and be the IP address that dhcp client distributes and retained described extended attribute Option, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP response message is forwarded to dhcp client.
Preferably, before dhcp client sends DHCP request message to network, the implementation method of described distributed multiport DHCP relay also comprises:
DHCP relay receives the DHCP searching message that dhcp client sends to network, the access unit information and the port information that receive this DHCP searching message are write to extended attribute Option, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP lease message that Dynamic Host Configuration Protocol server sends, wherein having comprised Dynamic Host Configuration Protocol server provides IP address lease and has retained described extended attribute Option to dhcp client, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP lease message is forwarded to dhcp client.
Preferably, described extended attribute Option is Option 82 extended attributes.
The system that realizes of distributed multiport DHCP relay, comprising:
DHCP relay, for writing extended attribute Option by receiving access unit information and the port information of dhcp client to the DHCP request message of network transmission, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server, wherein, Dynamic Host Configuration Protocol server is dhcp client distributing IP address for the DHCP request message according to obtaining, and generates IP address and the DHCP response message that has retained described extended attribute Option that has comprised described distribution and sends it to DHCP relay; And be further used for from Dynamic Host Configuration Protocol server obtains DHCP response message, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP response message is forwarded to dhcp client.
Preferably, described DHCP relay also writes extended attribute Option for this DHCP of reception being found to access unit information and the port information of message, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server; And be further used for obtaining and having comprised Dynamic Host Configuration Protocol server and provide DHCP lease message IP address lease and that retained described extended attribute Option to dhcp client from Dynamic Host Configuration Protocol server, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP lease message is forwarded to dhcp client.
Preferably, described extended attribute Option is Option 82 extended attributes.
An implementation method for distributed multiport DHCP relay, comprising:
DHCP relay receives the DHCP request message that dhcp client sends to network, the virtual LAN VLAN information that receives the port of this DHCP request message is write to extended attribute Option, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP response message that Dynamic Host Configuration Protocol server sends, wherein comprised Dynamic Host Configuration Protocol server and be the IP address that dhcp client distributes and retained described extended attribute Option, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP response message is forwarded to dhcp client.
Preferably, before dhcp client sends DHCP request message to network, the implementation method of described distributed multiport DHCP relay also comprises:
DHCP relay receives the DHCP searching message that dhcp client sends to network, the virtual LAN VLAN information that receives the port of this DHCP searching message is write to extended attribute Option, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP lease message that Dynamic Host Configuration Protocol server sends, wherein comprised the IP address lease that Dynamic Host Configuration Protocol server provides to dhcp client and retained described extended attribute Option, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP lease message is forwarded to dhcp client.
Preferably, described extended attribute Option is Option 82 extended attributes.
The system that realizes of distributed multiport DHCP relay, comprising:
DHCP relay, for writing extended attribute Option by receiving the virtual LAN VLAN information of dhcp client to the port of the DHCP request message of network transmission, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server, wherein, Dynamic Host Configuration Protocol server is dhcp client distributing IP address for the DHCP request message according to obtaining, and generates IP address and the DHCP response message that has retained described extended attribute Option that has comprised described distribution and sends it to DHCP relay; And be further used for from Dynamic Host Configuration Protocol server obtains DHCP response message, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP response message is forwarded to dhcp client.
Preferably, described DHCP relay also writes extended attribute Option for this DHCP of reception being found to the virtual LAN VLAN information of the port of message, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server; And be further used for obtaining and having comprised Dynamic Host Configuration Protocol server and provide DHCP lease message IP address lease and that retained described extended attribute Option to dhcp client from Dynamic Host Configuration Protocol server, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP lease message is forwarded to dhcp client.
Preferably, described extended attribute Option is Option 82 extended attributes.
Technical scheme by the invention described above can be found out, the present invention carries by DHCP relay option the access unit information of this DHCP request message and the virtual LAN VLAN information of port information or port of receiving, thereby make DHCP relay can select the VLAN subport of correct access unit and port or port to carry out the forwarding of dhcp message, its reliability has obtained raising to a certain degree.
Accompanying drawing explanation
Fig. 1 be the distributed multiport DHCP relay that provides of the embodiment of the present invention 1 realize system configuration schematic diagram;
Fig. 2 is the IP address lease that provides of the embodiment of the present invention 1 and the control flow chart of distribution;
Fig. 3 be the distributed multiport DHCP relay that provides of the embodiment of the present invention 2 realize system configuration schematic diagram;
Fig. 4 is the IP address lease that provides of the embodiment of the present invention 2 and the control flow chart of distribution.
The realization of the object of the invention, functional characteristics and excellent effect, be described further below in conjunction with specific embodiment and accompanying drawing.
Embodiment
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is described in further detail, so that those skilled in the art can better understand the present invention also, can be implemented, but illustrated embodiment is not as a limitation of the invention.
Embodiment 1
The embodiment of the present invention 1 provides a kind of implementation method of distributed multiport DHCP relay, comprises following concrete steps:
S200, DHCP relay receive the DHCP request message that dhcp client sends to network, the access unit information and the port information that receive this DHCP request message are write to extended attribute Option, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
S201, DHCP relay obtain the DHCP response message that Dynamic Host Configuration Protocol server sends, wherein comprised Dynamic Host Configuration Protocol server and be the IP address that dhcp client distributes and retained described extended attribute Option, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP response message is forwarded to dhcp client.
During concrete enforcement, before dhcp client sends DHCP request message to network, the implementation method of described distributed multiport DHCP relay also comprises:
S100, DHCP relay receive the DHCP searching message that dhcp client sends to network, the access unit information and the port information that receive this DHCP searching message are write to extended attribute Option, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
S101, DHCP relay obtain the DHCP lease message that Dynamic Host Configuration Protocol server sends, wherein comprised the IP address lease that Dynamic Host Configuration Protocol server provides to dhcp client and retained described extended attribute Option, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP lease message is forwarded to dhcp client.
The DHCP agreement of standard provides many extended attribute supports (referring to RFC2132 etc.), and these extended attributes Option can allow the use function of the expansion DHCP of each producer agreement.If the expanded function of Option definition, is generally acknowledged by industry and accepts, with RFC form, confirm, as recommending or official standard, for example Option 82 is exactly one of standard of confirming with RFC3046.
Consider that DHCP agreement has numerous extended fields, the consideration based on the compatible DHCP agreement of trying one's best, in the embodiment of the present invention 1, comparatively preferably, described extended attribute Option is Option 82 extended attributes.Option 82 is set to dhcp relay agent Custom Attributes field in RFC, and therefore its content and realize Ke Youge producer and confirm voluntarily to use selects Option 82 compatible best in DHCP relay.
As shown in Figure 1, the system that realizes of a kind of distributed multiport DHCP relay that the embodiment of the present invention 1 provides, comprising:
Dhcp client, for sending DHCP request message to network;
DHCP relay, for the access unit information and the port information that receive this DHCP request message are write to extended attribute Option, and sends to Dynamic Host Configuration Protocol server by the DHCP request message that has increased described extended attribute Option; And be further used for from Dynamic Host Configuration Protocol server obtains and comprised Dynamic Host Configuration Protocol server and be dhcp client DHCP response message IP address and that retained described extended attribute Option of distributing, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP response message is forwarded to dhcp client;
Dynamic Host Configuration Protocol server, is dhcp client distributing IP address for the DHCP request message according to obtaining, and generates IP address and the DHCP response message that has retained described extended attribute Option that has comprised described distribution and sends it to DHCP relay.
During concrete enforcement, also comprise that the DHCP that dhcp client is initiated finds flow process, particularly:
Described dhcp client is also found message for sending DHCP to network;
Described DHCP relay also writes extended attribute Option for this DHCP of reception being found to access unit information and the port information of message, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server; And be further used for obtaining and having comprised Dynamic Host Configuration Protocol server and provide DHCP lease message IP address lease and that retained described extended attribute Option to dhcp client from Dynamic Host Configuration Protocol server, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP lease message is forwarded to dhcp client;
Described Dynamic Host Configuration Protocol server is also found message for the DHCP according to obtaining and is provided IP address lease to dhcp client, and generation has comprised Dynamic Host Configuration Protocol server to be provided DHCP lease message IP address lease and that retained described extended attribute Option and send it to DHCP relay to dhcp client.
The DHCP agreement of standard provides many extended attribute supports (referring to RFC2132 etc.), and these extended attributes Option can allow the use function of the expansion DHCP of each producer agreement.If the expanded function of Option definition, is generally acknowledged by industry and accepts, with RFC form, confirm, as recommending or official standard, for example Option 82 is exactly one of standard of confirming with RFC3046.
Consider that DHCP agreement has numerous extended fields, the consideration based on the compatible DHCP agreement of trying one's best, in the embodiment of the present invention 1, comparatively preferably, described extended attribute Option is Option 82 extended attributes.Option 82 is set to dhcp relay agent Custom Attributes field in RFC, and therefore its content and realize Ke Youge producer and confirm voluntarily to use selects Option 82 compatible best in DHCP relay.
As shown in Figure 2, the DHCP flow process that step 1,3,6,8 is standard, the Extended Protocol flow process that step 2,4,5,7,9,10 is DHCP, below illustrates it.
Step 1, is the discovery step in the DHCP of standard, and dhcp client sends DHCPDISCOVER message to network and finds Dynamic Host Configuration Protocol server.
Step 2, DHCP relay receives after the DHCPDISCOVER of dhcp client, access unit information and port information that record receives, and in DHCPDISCOVER, select Option 82 options, access unit information and port information are filled in into.DHCP relay is transmitted to Dynamic Host Configuration Protocol server by dhcp discover.
Step 3, is the step that provides in the DHCP of standard, and Dynamic Host Configuration Protocol server provides IP address lease by message DHCPOFFER to client, retains Option 82 options simultaneously in DHCPOFFER message.
Step 4, DHCP relay receives after the DHCPOFFER of Dynamic Host Configuration Protocol server, resolves Option 82 options, extracts access unit information and the port information of the inside, and deletes Option 82 option contents wherein.
Step 5, DHCP relay sends to dhcp client from the designated port of the access unit of appointment by DHCPOFFER by access unit information and the port information extracting.
Step 6, is the request step in the DHCP of standard, and dhcp client sends DHCPREQUEST message to network, to its selected Dynamic Host Configuration Protocol server request distributing IP address.
Step 7, DHCP relay receives after DHCPREQUEST, access unit information and port information that record receives, and in DHCPREQUEST, increase Option 82 options, access unit information and port information are filled in into.DHCP relay is transmitted to Dynamic Host Configuration Protocol server by DHCPREQUEST message.
Step 8, is the confirmation step in the DHCP of standard, if the success of distributing IP address, Dynamic Host Configuration Protocol server sends the DHCPACK message of the IP address that comprises distribution to dhcp client; If the failure of distributing IP address, sends DHCPNACK message, in DHCPACK/NAC message, retain Option 82 options simultaneously.
Step 9, DHCP relay receives after DHCPACK/NACK, resolves Option 82 options, extracts access unit information and the port information of the inside, and deletes Option 82 option contents wherein.
Step 10, DHCP relay sends to dhcp client from the designated port of the access unit of appointment by DHCPACK/NACK by access unit information and the port information extracting.
Embodiment 2
The implementation method of a kind of distributed multiport DHCP relay that the embodiment of the present invention 2 provides, comprises following concrete steps:
S400, DHCP relay receive the DHCP request message that dhcp client sends to network, the virtual LAN VLAN information that receives the port of this DHCP request message is write to extended attribute Option, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
S401, DHCP relay obtain the DHCP response message that Dynamic Host Configuration Protocol server sends, wherein comprised Dynamic Host Configuration Protocol server and be the IP address that dhcp client distributes and retained described extended attribute Option, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP response message is forwarded to dhcp client.
During concrete enforcement, before dhcp client sends DHCP request message to network, the implementation method of described distributed multiport DHCP relay also comprises:
S300, DHCP relay receive the DHCP searching message that dhcp client sends to network, the virtual LAN VLAN information that receives the port of this DHCP searching message is write to extended attribute Option, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
S301, DHCP relay obtain the DHCP lease message that Dynamic Host Configuration Protocol server sends, wherein comprised the IP address lease that Dynamic Host Configuration Protocol server provides to dhcp client and retained described extended attribute Option, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP lease message is forwarded to dhcp client.
The DHCP agreement of standard provides many extended attribute supports (referring to RFC2132 etc.), and these extended attributes Option can allow the use function of the expansion DHCP of each producer agreement.If the expanded function of Option definition, is generally acknowledged by industry and accepts, with RFC form, confirm, as recommending or official standard, for example Option 82 is exactly one of standard of confirming with RFC3046.
Consider that DHCP agreement has numerous extended fields, the consideration based on the compatible DHCP agreement of trying one's best, in the embodiment of the present invention 1, comparatively preferably, described extended attribute Option is Option 82 extended attributes.Option 82 is set to dhcp relay agent Custom Attributes field in RFC, and therefore its content and realize Ke Youge producer and confirm voluntarily to use selects Option 82 compatible best in DHCP relay.
As shown in Figure 3, the system that realizes of a kind of distributed multiport DHCP relay that the embodiment of the present invention 2 provides, comprising:
Dhcp client, for sending DHCP request message to network;
DHCP relay, for the virtual LAN VLAN information that receives the port of this DHCP request message is write to extended attribute Option, and sends to Dynamic Host Configuration Protocol server by the DHCP request message that has increased described extended attribute Option; And be further used for from Dynamic Host Configuration Protocol server obtains and comprised Dynamic Host Configuration Protocol server and be dhcp client DHCP response message IP address and that retained described extended attribute Option of distributing, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP response message is forwarded to dhcp client;
Dynamic Host Configuration Protocol server, is dhcp client distributing IP address for the DHCP request message according to obtaining, and generates IP address and the DHCP response message that has retained described extended attribute Option that has comprised described distribution and sends it to DHCP relay.
During concrete enforcement, also comprise that the DHCP that dhcp client is initiated finds flow process, particularly:
Described dhcp client is also found message for sending DHCP to network;
Described DHCP relay also writes extended attribute Option for this DHCP of reception being found to the virtual LAN VLAN information of the port of message, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server; And be further used for obtaining and having comprised Dynamic Host Configuration Protocol server and provide DHCP lease message IP address lease and that retained described extended attribute Option to dhcp client from Dynamic Host Configuration Protocol server, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP lease message is forwarded to dhcp client;
Described Dynamic Host Configuration Protocol server is also found message for the DHCP according to obtaining and is provided IP address lease to dhcp client, and generation has comprised Dynamic Host Configuration Protocol server to be provided DHCP lease message IP address lease and that retained described extended attribute Option and send it to DHCP relay to dhcp client.
Similarly, the DHCP agreement of standard provides many extended attribute supports (referring to RFC2132 etc.), and these extended attributes Option can allow the use function of the expansion DHCP of each producer agreement.If the expanded function of Option definition, is generally acknowledged by industry and accepts, with RFC form, confirm, as recommending or official standard, for example Option 82 is exactly one of standard of confirming with RFC3046.
Consider that DHCP agreement has numerous extended fields, the consideration based on the compatible DHCP agreement of trying one's best, in the embodiment of the present invention 1, comparatively preferably, described extended attribute Option is Option 82 extended attributes.Option 82 is set to dhcp relay agent Custom Attributes field in RFC, and therefore its content and realize Ke Youge producer and confirm voluntarily to use selects Option 82 compatible best in DHCP relay.
As shown in Figure 4, the DHCP flow process that step 1,3,6,8 is standard, the Extended Protocol flow process that step 2,4,5,7,9,10 is DHCP, below illustrates it.
Step 1, is the discovery step in the DHCP of standard, and dhcp client sends DHCPDISCOVER message to network and finds Dynamic Host Configuration Protocol server.
Step 2, DHCP relay receives after the DHCPDISCOVER of dhcp client, records VLAN (Virtual Local Area Network, the VLAN) information of receiving port, and in DHCPDISCOVER, select Option 82 options, vlan information is filled in into.DHCP relay is transmitted to Dynamic Host Configuration Protocol server by dhcp discover.
Step 3, is the step that provides in the DHCP of standard, and Dynamic Host Configuration Protocol server provides IP address lease by message DHCPOFFER to client, retains Option 82 options simultaneously in DHCPOFFER message.
Step 4, DHCP relay receives after the DHCPOFFER of Dynamic Host Configuration Protocol server, resolves Option 82 options, extracts the vlan information of the inside, and deletes Option 82 option contents wherein.
Step 5, DHCP relay sends to dhcp client from the vlan sub-interface of appointment by DHCPOFFER by the vlan information extracting.
Step 6, is the request step in the DHCP of standard, and dhcp client sends DHCPREQUEST message to network, to its selected Dynamic Host Configuration Protocol server request distributing IP address.
Step 7, DHCP relay receives after DHCPREQUEST, records the vlan information of receiving port, and in DHCPREQUEST, increases Option 82 options, and vlan information is filled in into.DHCP relay is transmitted to Dynamic Host Configuration Protocol server by DHCPREQUEST message.
Step 8, is the confirmation step in the DHCP of standard, if the success of distributing IP address, Dynamic Host Configuration Protocol server sends the DHCPACK message of the IP address that comprises distribution to dhcp client; If the failure of distributing IP address, sends DHCPNACK message, in DHCPACK/NAC message, retain Option 82 options simultaneously.
Step 9, DHCP relay receives after DHCPACK/NACK, resolves Option 82 options, extracts the vlan information of the inside, and deletes Option 82 option contents wherein.
Step 10, DHCP relay sends to dhcp client from the vlan sub-interface of appointment by DHCPACK/NACK by the vlan information extracting.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (12)

1. an implementation method for distributed multiport DHCP relay, is characterized in that, comprising:
DHCP relay receives the DHCP request message that dhcp client sends to network, the access unit information and the port information that receive this DHCP request message are write to extended attribute Option, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP response message that Dynamic Host Configuration Protocol server sends, wherein comprised Dynamic Host Configuration Protocol server and be the IP address that dhcp client distributes and retained described extended attribute Option, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP response message is forwarded to dhcp client.
2. the implementation method of distributed multiport DHCP relay as claimed in claim 1, is characterized in that, before dhcp client sends DHCP request message to network, the implementation method of described distributed multiport DHCP relay also comprises:
DHCP relay receives the DHCP searching message that dhcp client sends to network, the access unit information and the port information that receive this DHCP searching message are write to extended attribute Option, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP lease message that Dynamic Host Configuration Protocol server sends, wherein comprised the IP address lease that Dynamic Host Configuration Protocol server provides to dhcp client and retained described extended attribute Option, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP lease message is forwarded to dhcp client.
3. the implementation method of distributed multiport DHCP relay as claimed in claim 1 or 2, is characterized in that, described extended attribute Option is Option 82 extended attributes.
4. the system that realizes of distributed multiport DHCP relay, is characterized in that, comprising:
DHCP relay, for writing extended attribute Option by receiving access unit information and the port information of dhcp client to the DHCP request message of network transmission, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server, wherein, Dynamic Host Configuration Protocol server is dhcp client distributing IP address for the DHCP request message according to obtaining, and generates IP address and the DHCP response message that has retained described extended attribute Option that has comprised described distribution and sends it to DHCP relay; And be further used for from Dynamic Host Configuration Protocol server obtains DHCP response message, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP response message is forwarded to dhcp client.
5. the system that realizes of distributed multiport DHCP relay as claimed in claim 4, is characterized in that,
Described DHCP relay also writes extended attribute Option for this DHCP of reception being found to access unit information and the port information of message, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server; And be further used for obtaining and having comprised Dynamic Host Configuration Protocol server and provide DHCP lease message IP address lease and that retained described extended attribute Option to dhcp client from Dynamic Host Configuration Protocol server, resolve described extended attribute Option, to select corresponding access unit and port that described DHCP lease message is forwarded to dhcp client.
6. the system that realizes of distributed multiport DHCP relay as claimed in claim 4, is characterized in that, described extended attribute Option is Option 82 extended attributes.
7. an implementation method for distributed multiport DHCP relay, is characterized in that, comprising:
DHCP relay receives the DHCP request message that dhcp client sends to network, the virtual LAN VLAN information that receives the port of this DHCP request message is write to extended attribute Option, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP response message that Dynamic Host Configuration Protocol server sends, wherein comprised Dynamic Host Configuration Protocol server and be the IP address that dhcp client distributes and retained described extended attribute Option, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP response message is forwarded to dhcp client.
8. the implementation method of distributed multiport DHCP relay as claimed in claim 7, is characterized in that, before dhcp client sends DHCP request message to network, the implementation method of described distributed multiport DHCP relay also comprises:
DHCP relay receives the DHCP searching message that dhcp client sends to network, the virtual LAN VLAN information that receives the port of this DHCP searching message is write to extended attribute Option, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server;
DHCP relay obtains the DHCP lease message that Dynamic Host Configuration Protocol server sends, wherein comprised the IP address lease that Dynamic Host Configuration Protocol server provides to dhcp client and retained described extended attribute Option, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP lease message is forwarded to dhcp client.
9. the implementation method of distributed multiport DHCP relay as claimed in claim 7, is characterized in that, described extended attribute Option is Option 82 extended attributes.
10. the system that realizes of distributed multiport DHCP relay, is characterized in that, comprising:
DHCP relay, for writing extended attribute Option by receiving the virtual LAN VLAN information of dhcp client to the port of the DHCP request message of network transmission, and the DHCP request message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server, wherein, Dynamic Host Configuration Protocol server is dhcp client distributing IP address for the DHCP request message according to obtaining, and generates IP address and the DHCP response message that has retained described extended attribute Option that has comprised described distribution and sends it to DHCP relay; And be further used for from Dynamic Host Configuration Protocol server obtains DHCP response message, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP response message is forwarded to dhcp client.
The system that realizes of 11. distributed multiport DHCP relay as claimed in claim 10, is characterized in that,
Described DHCP relay also writes extended attribute Option for this DHCP of reception being found to the virtual LAN VLAN information of the port of message, and the DHCP searching message that has increased described extended attribute Option is sent to Dynamic Host Configuration Protocol server; And be further used for obtaining and having comprised Dynamic Host Configuration Protocol server and provide DHCP lease message IP address lease and that retained described extended attribute Option to dhcp client from Dynamic Host Configuration Protocol server, resolve described extended attribute Option, to select the VLAN subport of corresponding port that described DHCP lease message is forwarded to dhcp client.
The system that realizes of 12. distributed multiport DHCP relay as claimed in claim 10, is characterized in that, described extended attribute Option is Option 82 extended attributes.
CN201210305378.3A 2012-08-24 2012-08-24 Method and system for realizing distributed multi-port DHCP relay Pending CN103634844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210305378.3A CN103634844A (en) 2012-08-24 2012-08-24 Method and system for realizing distributed multi-port DHCP relay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210305378.3A CN103634844A (en) 2012-08-24 2012-08-24 Method and system for realizing distributed multi-port DHCP relay

Publications (1)

Publication Number Publication Date
CN103634844A true CN103634844A (en) 2014-03-12

Family

ID=50215374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210305378.3A Pending CN103634844A (en) 2012-08-24 2012-08-24 Method and system for realizing distributed multi-port DHCP relay

Country Status (1)

Country Link
CN (1) CN103634844A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187855A (en) * 2015-07-14 2015-12-23 中国科学院信息工程研究所 Video-on-demand system based on Hadoop and Red5 and method
CN105450553B (en) * 2014-09-24 2018-12-25 英特尔公司 Methods, devices and systems and machine readable media for the study control plane level in data center environment
CN109495369A (en) * 2018-12-27 2019-03-19 新华三技术有限公司 A kind of message forwarding method and device
CN110855809A (en) * 2014-06-25 2020-02-28 华为技术有限公司 Message processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286991A (en) * 2008-05-23 2008-10-15 中兴通讯股份有限公司 Implementing method and device for dynamic host configuring protocol Option82
CN101771614A (en) * 2010-01-15 2010-07-07 瑞斯康达科技发展股份有限公司 DHCP route tracing method and DHCP relay equipment
CN102185766A (en) * 2011-04-26 2011-09-14 杭州华三通信技术有限公司 Unicast forwarding method and forwarding equipment for responding messages by DHCP (Dynamic host configuration protocol) server
CN102438051A (en) * 2012-01-14 2012-05-02 神州数码网络(北京)有限公司 Method and system for realizing dynamic host configuration protocol (DHCP) relay of two-layer network switch equipment
CN102480573A (en) * 2010-11-30 2012-05-30 上海博路信息技术有限公司 Positioning method of IP (Internet protocol) voice service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286991A (en) * 2008-05-23 2008-10-15 中兴通讯股份有限公司 Implementing method and device for dynamic host configuring protocol Option82
CN101771614A (en) * 2010-01-15 2010-07-07 瑞斯康达科技发展股份有限公司 DHCP route tracing method and DHCP relay equipment
CN102480573A (en) * 2010-11-30 2012-05-30 上海博路信息技术有限公司 Positioning method of IP (Internet protocol) voice service
CN102185766A (en) * 2011-04-26 2011-09-14 杭州华三通信技术有限公司 Unicast forwarding method and forwarding equipment for responding messages by DHCP (Dynamic host configuration protocol) server
CN102438051A (en) * 2012-01-14 2012-05-02 神州数码网络(北京)有限公司 Method and system for realizing dynamic host configuration protocol (DHCP) relay of two-layer network switch equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855809A (en) * 2014-06-25 2020-02-28 华为技术有限公司 Message processing method and device
CN110855809B (en) * 2014-06-25 2021-10-26 华为技术有限公司 Message processing method and device
US11405314B2 (en) 2014-06-25 2022-08-02 Huawei Technologies Co., Ltd. Packet processing method and apparatus
US11855891B2 (en) 2014-06-25 2023-12-26 Huawei Technologies Co., Ltd. Packet processing method and apparatus
CN105450553B (en) * 2014-09-24 2018-12-25 英特尔公司 Methods, devices and systems and machine readable media for the study control plane level in data center environment
CN105187855A (en) * 2015-07-14 2015-12-23 中国科学院信息工程研究所 Video-on-demand system based on Hadoop and Red5 and method
CN109495369A (en) * 2018-12-27 2019-03-19 新华三技术有限公司 A kind of message forwarding method and device
CN109495369B (en) * 2018-12-27 2020-11-27 新华三技术有限公司 Message forwarding method and device

Similar Documents

Publication Publication Date Title
US8767737B2 (en) Data center network system and packet forwarding method thereof
US11146666B2 (en) IPv4/IPv6 bridge
CN102447752B (en) Service access method, system and device based on layer 2 tunnel protocol (L2TP)
EP2536092A1 (en) Method and device for port mapping, and communications system
US20120254961A1 (en) Method of Distributing Information Regarding One or More Electrical Devices and System for the Same
US7706371B1 (en) Domain based routing for managing devices operating behind a network address translator
CN104486589B (en) Access method and device in video monitoring system based on GVRP
CN105025387A (en) Method and system for internet protocol television (IPTV) intelligent terminal to carry out IPTV business and internet business
CN103763407A (en) Method for achieving address resolution protocol proxy through two-layer virtual local area network and local area network system
CN104104926A (en) Universal plug and play (UPnP) monitoring terminal access method and access device
CN104283783B (en) The method and apparatus that gateway device E-Packets in a kind of plug and play network
CN108234518A (en) A kind of method, apparatus, terminal and the storage medium of terminal communication
WO2017000565A1 (en) User access control method and apparatus, relay device and server
CN105245629A (en) DHCP-based host communication method and device
CN104144096A (en) Virtual network layer construction method, device and system
CN102970387A (en) Domain name resolution method, device and system
CN106550058A (en) Network address translation penetration method and system using same
CN103634844A (en) Method and system for realizing distributed multi-port DHCP relay
CN107770010A (en) A kind of home intranet method and home networking system based on OpenFlow
CN101873320A (en) Client information verification method based on DHCPv6 relay and device thereof
CN104253878A (en) VLAN (Virtual Local Area Network) information management system and method of DHCP (Dynamic Host Configuration Protocol) RELAY termination sub-interface
CN106878481B (en) Method, device and system for acquiring Internet Protocol (IP) address
CN102480476A (en) Multi-service access method based on DHCP protocol extension
CN110430478B (en) Networking communication method, device, terminal equipment and storage medium
WO2016206562A1 (en) Method, device and system for configuring user equipment forwarding table

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140312