CN101984636A - Prefix distribution method, device and system - Google Patents

Prefix distribution method, device and system Download PDF

Info

Publication number
CN101984636A
CN101984636A CN2010105274156A CN201010527415A CN101984636A CN 101984636 A CN101984636 A CN 101984636A CN 2010105274156 A CN2010105274156 A CN 2010105274156A CN 201010527415 A CN201010527415 A CN 201010527415A CN 101984636 A CN101984636 A CN 101984636A
Authority
CN
China
Prior art keywords
ipv6 prefix
relay
prefix
client
ipv6
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
CN2010105274156A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2010105274156A priority Critical patent/CN101984636A/en
Publication of CN101984636A publication Critical patent/CN101984636A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a prefix distribution method comprising the following steps: a dynamic host configuration protocol version 6 (DHCPv6) relay agent receives a request message sent by client side gateway equipment for requesting an internet protocol version 6 (IPv6) prefix and obtaining the IPv6 prefix prompt message corresponding to the client side; a relay forwarding message is sent to a DHCPv6 server and carries the IPv6 prefix prompt message; a relay response message sent by the DHCPv6 server is received and carries an IPv6 prefix which is distributed for the client side by the DHCPv6 server and is matched with the IPv6 prefix prompt message. The invention also discloses a corresponding device and system. When the technical scheme in the invention is adopted, an advice is provided to IPv6 prefix distribution through the DHCPv6 relay agent, and the DHCPv6 server can distribute the IPv6 prefix matched with the advised IPv6 prefix prompt message to the client side.

Description

Prefix distribution method, device and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a prefix allocation method, apparatus, and system.
Background
A typical networking for distributing an Internet Protocol version six (Internet Protocol version 6, IPv6) address and Prefix through a Dynamic host configuration Protocol (DHCPv 6) Prefix Delegation (PD) of Internet Protocol version six is shown in fig. 1.
In fig. 1, a home Gateway (RG) or a Customer Premises Equipment (CPE) implements a router function to link a home network (home network) of a user and an external Network Service Provider (NSP) network. A centralized DHCPv6 server (server) is deployed in an NSP network and used for allocating IPv6 addresses or IPv6 prefixes to an RG, the DHCPv6 server is not in the same broadcast domain as the RG, and the RG accesses the DHCPv6 server through a DHCPv6 Relay Agent (Relay Agent) device.
The IPv6 prefix allocated by the DHCPv6PD is applied to a local area network interface (LAN port) of the RG; and the wide area network interface (WAN port) of the RG can acquire a separate IPv6 address through the DHCPv6 protocol to facilitate the NSP to manage the RG. In this scenario, the RG should acquire the IPv6 address and the IPv6 prefix simultaneously in one DHCPv6 interaction, and the IPv6 address cannot be within the IPv6 prefix range.
As shown in fig. 2, the process of the RG acquiring the IPv6 address and IPv6 prefix includes the steps of:
in step 101, the RG, as a request router (Requesting router), sends a request (SOLICIT) message to the DHCPv6 relay agent, where the request message carries an identifier for Temporary address Association (identifier _ IA _ NA) and a Prefix agent Association identifier (identifier _ IA _ PD), where the identifier _ IA _ NA is used to request an IPv6 address and the identifier _ IA _ PD is used to request an IPv6 Prefix.
In step 102, after the RELAY proxy of the DHCPv6 receives the request message, it creates a RELAY-forward (RELAY-forrw) message and forwards the RELAY-forward message to the DHCPv6 server. According to the protocol, the DHCPv6 relay agent can fill in the link-address field of the relay forwarding message with a global or local site address, and the address has the function of prompting the DHCPv6 server what IPv6 address should be assigned to the client; filling the source IP address of the received request message data packet in a peer-address field of the relay forwarding message; the received request Message (excluding an Internet Protocol (IP) header and a User Datagram Protocol (UDP) header) is put into a Relay Message Option (Relay Message Option) of the Relay forwarding Message, and other options are added according to the configuration. The relay message option is an essential component in the relay forwarding message and carries the message content to be relayed.
Step 103, after receiving the RELAY forwarding message sent by the DHCPv6 RELAY agent, the DHCPv6 server parses the RELAY forwarding message, dynamically allocates an IPv6 address and an IPv6 prefix to the client according to a local policy, then creates an Advertisement (ADVERTISE) message carrying the allocated IPv6 address and IPv6 prefix, encapsulates the advertisement message into a RELAY response (RELAY-REPL) message, and sends the RELAY response (RELAY-REPL) message to the DHCPv6 RELAY agent.
Step 104, the DHCPv6 Relay agent receives the Relay response Message, takes out the notification Message from the Relay Message Option (Relay Message Option) of the Relay response Message, encapsulates the IPv6 Message with the destination address being peer-address, and forwards the Message to the RG.
Step 105, after receiving the announce message, the RG sends a REQUEST message to the DHCPv6 relay agent, where the REQUEST message carries the IPv6 address and IPv6 prefix carried in the announce message.
And 106, the DHCPv6 relay agent receives the request message, encapsulates the request message into a relay forwarding message and forwards the relay forwarding message to the DHCPv6 server.
In step 107, after receiving the relay forwarding message, the DHCPv6 server replies a REPLY (REPLY) message encapsulated as a relay response message to the DHCPv6 relay agent.
And step 108, the DHCPv6 relay agent takes out the response message from the relay message option of the received relay response message, encapsulates the IPv6 message with the target address of peer-address and forwards the message to the RG. At this point, the allocation of IPv6 addresses and IPv6 prefixes is complete.
The message format of the relay forwarding message or the relay response message is shown in fig. 3, and includes:
msg-type: the message type is RELAY-FORW (12) or REPLY-REPL (13).
hop-count: the hop count of the passing DHCPv6 relay agent is from 0, the hop-count of the first-hop DHCPv6 relay agent is set to 0, and the hop-count of the next-hop DHCPv6 relay agent is set to the previous-hop-count + 1.
link-address: a global or local site address that the server uses to determine the link on which the client is located. The link-address field is used to prompt the DHCPv6 server what IPv6 address is assigned to the RG's wide area network interface.
peer-address: the last hop address of the message may be a client or other relay agent.
options: a Relay Message Option (Relay Message Option) must be included, and the Relay Message Option is an essential component in the Relay forwarding Message and the Relay response Message and carries the Message content to be relayed.
In the above-mentioned method for allocating IPv6 addresses and prefixes according to the prior art:
for the IPv6 address, the DHCPv6 relay agent gives a proposal of distribution through the link-address field of the transmitted relay forwarding message, and the DHCPv6 server distributes a matched IPv6 address for the client according to the proposal. Thus, the DHCPv6 relay agent can only establish a route for the link-address, so that the data message transmitted in the network can be forwarded to the RG according to the route of the link-address, and the route does not need to be established for each IPv6 address.
For IPv6 prefixes, the DHCPv6 server dynamically allocates clients according to a local policy. This results in that the DHCPv6 relay agent needs to establish a route for each IPv6 prefix dynamically allocated to the RG by the DHCPv6 server and publish the dynamically established route to the network through a routing protocol; it is also necessary to monitor and manage each RG in real time so as to delete a corresponding route when a Release (Release) message transmitted from the RG is received or a lease arrives.
Disclosure of Invention
The embodiment of the invention provides an IPv6 prefix distribution method, device and system.
A prefix assignment method, comprising:
receiving a request message sent by a client gateway device and used for requesting the IPv6 prefix;
acquiring IPv6 prefix prompt information corresponding to a client;
sending a relay forwarding message to a dynamic host configuration protocol server, wherein the relay forwarding message carries the IPv6 prefix prompt information;
and receiving a relay response message sent by the dynamic host configuration protocol server, wherein the relay response message carries an IPv6 prefix which is distributed by the dynamic host configuration protocol server for the client and matched with the IPv6 prefix prompt message.
A prefix assignment method, comprising:
receiving a relay forwarding message sent by a relay agent of a dynamic host configuration protocol, wherein the relay forwarding message carries IPv6 prefix prompt information which is acquired by the relay agent of the dynamic host configuration protocol and corresponds to a client;
allocating IPv6 prefixes matched with IPv6 prefix prompt information to the client;
and sending a relay response message to the DHCP relay agent equipment, wherein the relay response message carries the IPv6 prefix distributed for the client.
A dynamic host configuration protocol relay proxy device, comprising:
the first receiving module is used for receiving a request message which is sent by the client gateway device and used for requesting the IPv6 prefix;
the acquisition module is used for acquiring IPv6 prefix prompt information corresponding to the client;
the sending module is used for sending a relay forwarding message to the dynamic host configuration protocol server, wherein the relay forwarding message carries IPv6 prefix prompt information;
and the second receiving module is used for receiving a relay response message sent by the dynamic host configuration protocol server, wherein the relay response message carries an IPv6 prefix which is distributed by the dynamic host configuration protocol server for the client and is matched with the IPv6 prefix prompt message.
A dynamic host configuration protocol server, comprising:
the receiving module is used for receiving a relay forwarding message sent by the relay agent equipment of the dynamic host configuration protocol, wherein the relay forwarding message carries IPv6 prefix prompt information which is acquired by the relay agent equipment of the dynamic host configuration protocol and corresponds to the client;
the distribution module is used for distributing IPv6 prefixes matched with IPv6 prefix prompt information for the client;
and the sending module is used for sending a relay response message to the dynamic host configuration protocol relay agent equipment, wherein the relay response message carries the IPv6 prefix distributed for the client.
A prefix distribution system is characterized by comprising a dynamic host configuration protocol relay agent device and a dynamic host configuration protocol server;
the dynamic host configuration protocol relay proxy equipment is used for receiving a request message which is sent by the client gateway equipment and used for requesting the IPv6 prefix, acquiring IPv6 prefix prompt information corresponding to the client, sending a relay forwarding message to the dynamic host configuration protocol server, wherein the relay forwarding message carries IPv6 prefix prompt information, and receiving a relay response message sent by the dynamic host configuration protocol server, and the relay response message carries the IPv6 prefix which is distributed by the dynamic host configuration protocol server for the client and is matched with the IPv6 prefix prompt information;
the dynamic host configuration protocol server is used for receiving a relay forwarding message sent by the dynamic host configuration protocol relay agent device, wherein the relay forwarding message carries IPv6 prefix prompt information which is acquired by the dynamic host configuration protocol relay agent device and corresponds to the client, allocating an IPv6 prefix matched with the IPv6 prefix prompt information for the client, and sending a relay response message to the dynamic host configuration protocol relay agent device, wherein the relay response message carries an IPv6 prefix allocated for the client.
By adopting the technical scheme of the embodiment of the invention, the DHCPv6 relay agent can give suggestions to IPv6 prefix allocation by using IPv6 prefix prompt information, so that the DHCPv6 server allocates IPv6 prefixes matched with the IPv6 prefix prompt information for the client. Therefore, the DHCPv6 relay agent can establish a route only for the IPv6 prefix prompt information, and can realize the correct forwarding of the data message in the network, without establishing a route for each IPv6 prefix, and further without monitoring and managing each RG in real time because of deleting useless IPv6 prefix routes. It is easily understood that the number of IPv6 prefix hint information can be much smaller than the number of IPv6 prefixes, so that the DHCPv6 relay agent aggregates routes to the RG, reduces the number of routes published into the network, and reduces device complexity.
Drawings
FIG. 1 is a schematic networking diagram of distributing IPv6 addresses and prefixes through DHCPv6 PD;
fig. 2 is a flowchart illustrating a method for allocating IPv6 addresses and prefixes according to the prior art;
fig. 3 is a schematic diagram of a message format of a relay forward message or a relay reply message;
FIG. 4 is a flowchart illustrating a prefix assignment method according to an embodiment of the present invention;
fig. 5 is a diagram illustrating a format of a relay agent link prefix option created by a prefix assignment method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a second prefix allocation method according to an embodiment of the present invention;
fig. 7 is a schematic logical structure diagram of a DHCPv6 relay agent device according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of the logical structure of a DHCPv6 server according to an embodiment of the present invention;
fig. 9 is a schematic logical structure diagram of an IPv6 prefix allocation system according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a prefix allocation method, wherein DHCPv6 relay agent equipment acquires IPv6 prefix prompt information corresponding to a client from pre-configuration, and the IPv6 prefix prompt information is carried in a relay forwarding message sent to a DHCPv6 server, so that the DHCPv6 server can allocate a corresponding IPv6 prefix to the client according to the IPv6 prefix prompt information. The embodiment of the invention also provides a corresponding device and a corresponding system, which comprise DHCPv6 relay agent equipment, a DHCPv6 server and an IPv6 prefix distribution system. The following are detailed below.
The first embodiment,
Referring to fig. 4, an embodiment of the present invention provides a prefix allocation method, including the following steps:
201. the DHCPv6 relay agent receives a request message sent by the client gateway device to request an IPv6 prefix.
The request message for requesting the IPv6 prefix sent by the client gateway device carries the non-temporary address association identifier for requesting the IPv6 address and the prefix proxy association identifier for requesting the IPv6 prefix. Step 201 may adopt the prior art scheme, and is not described herein again.
202. The DHCPv6 relay agent obtains IPv6 prefix hint information corresponding to the client from the pre-configuration.
In the prior art allocation method, the DHCPv6 relay agent device only has a suggestion right for allocating the IPv6 address, and has no suggestion right for allocating the IPv6 prefix, so that the DHCPv6 server cannot be prompted to allocate the IPv6 address and the IPv6 prefix of the client gateway device at the same time. The embodiment of the invention solves the problem by acquiring the IPv6 prefix prompt message from the pre-configuration.
203. The DHCPv6 relay agent equipment sends a relay forwarding message to the DHCPv6 server, wherein the relay forwarding message carries IPv6 prefix prompt information.
On the basis of the prior art, this step is performed when the prior art allocation method performs step 102, and the DHCPv6 relay agent device carries, in the transmitted relay forwarding message, not only a link-address field filled with global or local site addresses for prompting the DHCPv6 server what IPv6 addresses are assigned to the client, but also IPv6 prefix prompting information for prompting the DHCPv6 server what IPv6 prefixes are assigned to the client.
204. The DHCPv6 relay agent equipment receives a relay response message sent by the DHCPv6 server, wherein the relay response message carries the IPv6 prefix which is distributed by the DHCPv6 server for the client and is matched with the IPv6 prefix prompt information.
Based on the combination of the prior art, the relay response message received by the DHCPv6 relay agent device in this step includes the IPv6 prefix and the IPv6 address allocated by the DHCPv6 server according to the proposal of the DHCPv6 relay agent. This step corresponds to step 104 of the prior art allocation method, and since this step, the allocation method can adopt the same scheme as the prior art, for example: and sending a response message to the client gateway device, wherein the response message carries the IPv6 prefix and the like which are distributed by the DHCPv6 server for the client and are matched with the IPv6 prefix prompt information, and details are not repeated here.
As a preferable scheme, step 202 may specifically include:
the DHCPv6 relay agent device selects IPv6 prefix hint information corresponding to the client from the binding relationship between pre-configured incoming interface information and IPv6 prefix hint information according to the information of the incoming interface receiving the request message, or selects IPv6 prefix hint information corresponding to the client from the binding relationship between pre-configured administrative domain information and IPv6 prefix hint information according to the administrative domain information.
Firstly, the binding relationship between the interface information or the management domain information and the IPv6 prefix prompting information is configured in advance, and the routing information corresponding to the IPv6 prefix prompting information is issued to the network. In this step, the first-level L3 (triple-layer) DHCPv6 relay agent device selects IPv6 prefix hint information from the pre-configured binding relationship. The binding relationship may be manually preconfigured. The DHCPv6 relay agent device may have multiple levels, but only the binding relationship described above is preconfigured in the first level. The DHCPv6 relay agent device as the first level is preferably an L3DHCPv6 relay agent device. When the L3DHCPv6 relay agent device is used as a BRAS device, the corresponding IPv6 prefix hint information may be selected from the binding relationship between the preconfigured regulatory domain information and the IPv6 prefix hint information according to the regulatory domain information. Then, routing information corresponding to the IPv6 prefix hint information needs to be published into the network.
As another preferable scheme, the following steps can be further included before step 203:
the DHCPv6 relay agent device creates a relay agent link prefix option, which carries IPv6 prefix hint information.
In this step, the DHCPv6 relay agent device creates a relay agent Link Prefix Option (relay agent Link-Prefix Option), fills the obtained pre-configured IPv6 Prefix hint information into the relay agent Link Prefix Option, and then inserts the relay agent Link Prefix Option into the relay forwarding message. Thus, in step 202, the relay forwarding message sent by the DHCPv6 relay agent device to the DHCPv6 server carries the relay agent link prefix option, that is, carries the IPv6 prefix hint information.
As shown in fig. 5, the relay agent link prefix option contains the following:
type: option codes, pending, are assigned by The Internet Assigned Numbers Authority (IANA);
prefix-length: the length is 1 byte, and is used for representing the prefix length;
prefix: the length of the first-level L3DHCPv6 relay equipment is 16 bytes, and IPv6 prefix prompting information is filled in the first-level L3DHCPv6 relay equipment and used for prompting the DHCPv6 Server to allocate the matched IPv6 prefix to the RG.
And (4) Option-len: 17 x number of IPv6 prefix hints.
The method of this embodiment has other preferable solutions, for example, allocating an IPv6 prefix matched with IPv6 prefix hint information to the client specifically may include:
the length of the IPv6 prefix hint information is smaller than that of the IPv6 prefix, and for the matched IPv6 prefix hint information and IPv6 prefix, the bit number of the IPv6 prefix, which is the same as the IPv6 prefix hint information in length, is the same as the IPv6 prefix hint information. That is, the two are the same in several bits from the first, and the difference is that the IPv6 prefix is longer in length and has several more bits. For example: the IPv6 prefix hint information is 2001:1234:5678:: 48, then the matched IPv6 prefix can be 2001:1234:5678:0100:: 56, and the first 48 bits of the two are the same. It should be noted that the length of the IPv6 prefix hint information is selectable, and is not limited to 48 bits, and may be, for example, 36 bits, 42 bits, and the like.
On the basis of the prior art, by adopting the prefix allocation method of the embodiment of the invention, the DHCPv6 relay agent device can give a suggestion for prompting the DHCPv6 server what IPv6 prefix is allocated to the client while giving a suggestion for prompting the DHCPv6 server what IPv6 address is allocated to the client. Therefore, the DHCPv6 relay agent can establish a route only for the IPv6 prefix prompt information, and can realize the correct forwarding of the data message in the network, without establishing a route for each IPv6 prefix, and further without monitoring and managing each RG in real time because of deleting useless IPv6 prefix routes. By adopting the method, the routes reaching the RG equipment are aggregated, the complexity of the DHCPv6 relay agent equipment and the number of the routes issued to the backbone network are reduced, and the complexity of the equipment is reduced.
In addition, when the DHCPv6 relay agent is not a BRAS device, the requirement for FIB capacity of the L3DHCPv6 relay agent device can be reduced. This is because BRAS equipment needs to accurately manage each client, and the packet can be forwarded only by complete address/prefix matching, so the BRAS equipment must issue the prefix route of the client, and thus the capacity cannot be reduced when the BRAS equipment is used; and under the condition of the BRAS equipment, the addresses/prefixes do not need to be accurately matched, so that prefix routes do not need to be issued for each client, and the message can be forwarded by only issuing one aggregation route, so that the FIB capacity can be reduced.
Example II,
Referring to fig. 6, an embodiment of the present invention provides a prefix allocation method, including the following steps:
301. the DHCPv6 server receives a relay forwarding message sent by the DHCPv6 relay agent device, wherein the relay forwarding message carries IPv6 prefix prompting information corresponding to the client, acquired by the DHCPv6 relay agent from the preset configuration.
The relay forwarding message carries a relay proxy link prefix option created by the DHCPv6 relay proxy device, and the relay proxy link prefix option carries pre-configured IPv6 prefix hint information, so that the relay forwarding message carries pre-configured IPv6 prefix hint information.
302. The DHCPv6 server allocates IPv6 prefixes matching IPv6 prefix hint information for the client.
After receiving the relay forwarding message, the DHCPv6 server firstly analyzes the relay proxy link prefix option carried by the relay forwarding message, then acquires the IPv6 prefix hint information carried by the relay proxy link prefix option, and then allocates the IPv6 prefix matched with the IPv6 prefix hint information to the client.
303. The DHCPv6 server sends a relay response message to the DHCPv6 relay agent device, wherein the relay response message carries the IPv6 prefix distributed for the client.
This step corresponds to step 103 of the prior art allocation method, and since this step, the allocation method may adopt the same scheme as the prior art, which is not described herein again.
In a preferred embodiment, the length of the IPv6 prefix hint information is smaller than the length of the IPv6 prefix, and step 302 may specifically be:
the IPv6 prefix prompt information is used as the beginning part of the IPv6 prefix;
generating the rest of IPv6 prefix;
and allocating the generated IPv6 prefix matched with the IPv6 prefix hint information to the client.
With this preferred scheme: the IPv6 prefix hint information and the IPv6 prefix amount are the same in a plurality of bits from the first bit, and the difference is that the IPv6 prefix is longer in length and has a plurality of more bits. For example: the IPv6 prefix hint information is 2001:1234:5678:: 48, then the matched IPv6 prefix can be 2001:1234:5678:0100:: 56, and the first 48 bits of the two are the same. It should be noted that the length of the IPv6 prefix hint information is selectable, and is not limited to 48 bits, and may be, for example, 36 bits, 42 bits, and the like.
On the basis of the prior art, by adopting the IPv6 prefix allocation method of the embodiment of the invention, the DHCPv6 server can allocate the IPv6 prefix matched with the IPv6 prefix prompt information to the client according to the allocation suggestion given by the DHCPv6 relay agent device through the IPv6 prefix prompt information. Therefore, the DHCPv6 relay agent can establish a route only for the IPv6 prefix prompt information, and can realize the correct forwarding of the data message in the network, without establishing a route for each IPv6 prefix, and further without monitoring and managing each RG in real time because of deleting useless IPv6 prefix routes. By adopting the method, the routes reaching the RG equipment are aggregated, the complexity of the DHCPv6 relay agent equipment and the number of the routes issued to the backbone network are reduced, and the complexity of the equipment is reduced.
Example III,
Referring to fig. 7, an embodiment of the present invention provides a dhcp relay agent apparatus, including:
a first receiving module 401, configured to receive a request message sent by a client gateway device for requesting an IPv6 prefix;
an obtaining module 402, configured to obtain, from a pre-configuration, IPv6 prefix hint information corresponding to a client;
a sending module 403, configured to send a relay forwarding message to the DHCPv6 server, where the relay forwarding message carries IPv6 prefix hint information;
a second receiving module 404, configured to receive a relay response message sent by the DHCPv6, where the relay response message carries an IPv6 prefix, which is allocated by the DHCPv6 server to the client and matches the IPv6 prefix hint information.
Wherein, the obtaining module 402 may further include:
the first obtaining unit 402a is configured to select, according to the information of the ingress interface receiving the request message, corresponding IPv6 prefix hint information from a binding relationship between preconfigured ingress interface information and IPv6 prefix hint information;
the first obtaining unit 402b is configured to select, according to the regulatory domain information, corresponding IPv6 prefix hint information from a binding relationship between preconfigured regulatory domain information and IPv6 prefix hint information.
Preferably, the DHCPv6 relay agent device may further include a creation module 405 and a publishing module 406.
A creating module 405, configured to create a relay agent link prefix option, where the relay agent link prefix option carries IPv6 prefix hint information.
The issuing module 406 is configured to issue the routing information corresponding to the IPv6 prefix hint information to the network.
On the basis of the prior art, by adopting the DHCPv6 relay proxy equipment of the embodiment of the invention, a suggestion for prompting the DHCPv6 server what IPv6 front-level is allocated to the client can be given while a suggestion for prompting the DHCPv6 server what IPv6 address is allocated to the client is given. Therefore, the DHCPv6 relay agent can establish a route only for the IPv6 prefix prompt information, and can realize the correct forwarding of the data message in the network, without establishing a route for each IPv6 prefix, and further without monitoring and managing each RG in real time because of deleting useless IPv6 prefix routes. By adopting the method, the routes reaching the RG equipment are aggregated, the complexity of the DHCPv6 relay agent equipment and the number of the routes issued to the backbone network are reduced, and the complexity of the equipment is reduced.
Example four,
Referring to fig. 8, an embodiment of the present invention provides a dhcp server, including:
a receiving module 501, configured to receive a relay forwarding message sent by a DHCPv6 relay agent device, where the relay forwarding message carries IPv6 prefix hint information corresponding to a client, obtained by the DHCPv6 relay agent device from a pre-configuration;
the allocating module 502 is used for allocating an IPv6 prefix matched with IPv6 prefix prompt information for the client;
a sending module 503, configured to send a relay response message to the DHCPv6 relay agent device, where the relay response message carries an IPv6 prefix allocated to the client.
Preferably, the allocating module 502 may include:
the generating unit is used for taking the IPv6 prefix prompt information as the initial part of the IPv6 prefix and generating the rest part of the IPv6 prefix;
and the allocation unit is used for allocating the generated IPv6 prefix matched with the IPv6 prefix prompt information to the client.
On the basis of the prior art, by adopting the DHCPv6 server of the embodiment of the invention to be matched with the DHCPv6 relay agent device of the third embodiment, the DHCPv6 server can allocate the IPv6 prefix matched with the IPv6 prefix hint information to the client according to the allocation suggestion given by the DHCPv6 relay agent device through the IPv6 prefix hint information. Therefore, the DHCPv6 relay agent can establish a route only for the IPv6 prefix prompt information, and can realize the correct forwarding of the data message in the network, without establishing a route for each IPv6 prefix, and further without monitoring and managing each RG in real time because of deleting useless IPv6 prefix routes. By adopting the method, the routes reaching the RG equipment are aggregated, the complexity of the DHCPv6 relay agent equipment and the number of the routes issued to the backbone network are reduced, and the complexity of the equipment is reduced.
Example V,
Referring to fig. 9, an embodiment of the present invention provides a prefix allocation system, which includes a dhcp relay agent 601 and a dhcp server 602.
The relay agent device 601 of dynamic host configuration protocol is configured to receive a request message for requesting an IPv6 prefix sent by a client gateway device, acquire IPv6 prefix hint information corresponding to the client, send a relay forwarding message to a DHCPv6 server, where the relay forwarding message carries IPv6 prefix hint information, receive a relay response message sent by the DHCPv6 server, and where the relay response message carries an IPv6 prefix, which is allocated by the DHCPv6 server for the client and matches the IPv6 prefix hint information.
The dynamic host configuration protocol server 602 is configured to receive a relay forwarding message sent by the DHCPv6 relay agent device, where the relay forwarding message carries IPv6 prefix hint information corresponding to the client, which is acquired by the DHCPv6 relay agent device, allocate an IPv6 prefix matched with the IPv6 prefix hint information to the client, and send a relay response message to the DHCPv6 relay agent device, where the relay response message carries an IPv6 prefix allocated to the client.
Based on the prior art, by adopting the IPv6 prefix allocation system of the embodiment of the invention, a suggestion for prompting the DHCPv6 server what IPv6 address is allocated to the client can be given, meanwhile, a suggestion for prompting the DHCPv6 server what IPv6 prefix is allocated to the client, and the IPv6 prefix matched with the IPv6 prefix prompting information is allocated to the client. Therefore, the DHCPv6 relay agent can establish a route only for the IPv6 prefix prompt information, and can realize the correct forwarding of the data message in the network, without establishing a route for each IPv6 prefix, and further without monitoring and managing each RG in real time because of deleting useless IPv6 prefix routes. By adopting the method, the routes reaching the RG equipment are aggregated, the complexity of the DHCPv6 relay agent equipment and the number of the routes issued to the backbone network are reduced, and the complexity of the equipment is reduced.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a hard disk, a magnetic or optical disk, or the like.
The IPv6 prefix allocation method, apparatus, and system provided in the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the embodiments of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A method for prefix allocation, comprising:
receiving a request message sent by a client gateway device and used for requesting an internet protocol version hexaIPv 6 prefix;
acquiring IPv6 prefix prompt information corresponding to the client;
sending a relay forwarding message to a dynamic host configuration protocol server, wherein the relay forwarding message carries the IPv6 prefix prompt information;
and receiving a relay response message sent by a dynamic host configuration protocol server, wherein the relay response message carries an IPv6 prefix which is distributed by the dynamic host configuration protocol server for the client and matched with the IPv6 prefix prompt message.
2. The method of claim 1, wherein the obtaining IPv6 prefix hint information corresponding to the client comprises:
selecting IPv6 prefix prompt information corresponding to the client from a binding relationship between pre-configured interface information and IPv6 prefix prompt information according to the information of the interface receiving the request message; or,
and selecting IPv6 prefix prompt information corresponding to the client from the binding relationship between the pre-configured management domain information and IPv6 prefix prompt information according to the management domain information.
3. The method of claim 2, wherein obtaining IPv6 prefix hint information corresponding to the client further comprises:
and issuing the routing information corresponding to the IPv6 prefix prompt information to a network.
4. The method of claim 1, wherein:
the length of the IPv6 prefix hint information is smaller than that of the IPv6 prefix, and for the matched IPv6 prefix hint information and IPv6 prefix, the bit number of the IPv6 prefix, which is the same as the IPv6 prefix hint information in length, is the same as the IPv6 prefix hint information.
5. The method of claim 1, wherein sending the relay forward message to the dhcp server further comprises:
creating a relay agent link prefix option, wherein the relay agent link prefix option carries the IPv6 prefix prompt information;
the forwarding relay message carrying the IPv6 prefix hint information specifically includes:
the relay forwarding message carries the relay agent link prefix option.
6. A method for prefix allocation, comprising:
receiving a relay forwarding message sent by a relay agent of a dynamic host configuration protocol, wherein the relay forwarding message carries IPv6 prefix prompt information which is acquired by the relay agent of the dynamic host configuration protocol and corresponds to a client;
allocating IPv6 prefixes matched with the IPv6 prefix prompt information to the client;
and sending a relay response message to the DHCP relay agent equipment, wherein the relay response message carries the IPv6 prefix distributed for the client.
7. The method of claim 6, wherein:
the length of the IPv6 prefix hint information is less than the length of the IPv6 prefix;
the allocating the IPv6 prefix matched with the IPv6 prefix hint information to the client comprises:
taking the IPv6 prefix hint information as the beginning part of an IPv6 prefix;
generating the rest of IPv6 prefix;
and allocating the generated IPv6 prefix matched with the IPv6 prefix prompt information to the client.
8. A dhcp relay agent device, comprising:
the first receiving module is used for receiving a request message which is sent by the client gateway device and used for requesting the IPv6 prefix;
the acquisition module is used for acquiring IPv6 prefix prompt information corresponding to the client;
a sending module, configured to send a relay forwarding message to a dynamic host configuration protocol server, where the relay forwarding message carries the IPv6 prefix hint information;
and the second receiving module is used for receiving a relay response message sent by the dynamic host configuration protocol server, wherein the relay response message carries an IPv6 prefix which is distributed by the dynamic host configuration protocol server for the client and matched with the IPv6 prefix prompt message.
9. The apparatus of claim 8, wherein the obtaining module comprises:
the first acquisition unit is used for selecting corresponding IPv6 prefix prompt information from the binding relationship between the pre-configured interface information and IPv6 prefix prompt information according to the information of the interface for receiving the request message;
and the second acquisition unit is used for selecting corresponding IPv6 prefix prompt information from the binding relationship between the pre-configured management domain information and the IPv6 prefix prompt information according to the management domain information.
10. The apparatus of claim 8, further comprising a creation module to:
the creating module is configured to create a relay agent link prefix option, where the relay agent link prefix option carries the IPv6 prefix hint information.
11. The apparatus of claim 8, further comprising a publish module:
the issuing module is used for issuing the routing information corresponding to the IPv6 prefix prompt information to the network.
12. A dhcp server, comprising:
the system comprises a receiving module, a forwarding module and a forwarding module, wherein the receiving module is used for receiving a relay forwarding message sent by a relay agent device of a dynamic host configuration protocol, and the relay forwarding message carries IPv6 prefix prompt information which is acquired by the relay agent device of the dynamic host configuration protocol and corresponds to a client;
the distribution module is used for distributing IPv6 prefixes matched with the IPv6 prefix prompt information for the client;
and the sending module is used for sending a relay response message to the dynamic host configuration protocol relay agent device, wherein the relay response message carries the IPv6 prefix distributed for the client.
13. The ip version six dhcp server of claim 12, wherein the assignment module comprises:
the generating unit is used for taking the IPv6 prefix prompt information as the initial part of an IPv6 prefix and generating the rest part of the IPv6 prefix;
and the distribution unit is used for distributing the generated IPv6 prefix matched with the IPv6 prefix prompt information to the client.
14. A prefix distribution system is characterized by comprising a dynamic host configuration protocol relay agent device and a dynamic host configuration protocol server;
the relay agent device of the dynamic host configuration protocol is configured to receive a request message sent by a gateway device of a client for requesting an IPv6 prefix, acquire IPv6 prefix hint information corresponding to the client, send a relay forwarding message to a dynamic host configuration protocol server, where the relay forwarding message carries the IPv6 prefix hint information, receive a relay response message sent by the dynamic host configuration protocol server, and where the relay response message carries an IPv6 prefix, which is allocated by the dynamic host configuration protocol server to the client and matches the IPv6 prefix hint information;
the dynamic host configuration protocol server is configured to receive a relay forwarding message sent by the dynamic host configuration protocol relay agent device, where the relay forwarding message carries IPv6 prefix hint information corresponding to the client and acquired by the dynamic host configuration protocol relay agent device, allocate an IPv6 prefix matching the IPv6 prefix hint information to the client, and send a relay response message to the dynamic host configuration protocol relay agent device, where the relay response message carries an IPv6 prefix allocated to the client.
CN2010105274156A 2010-10-25 2010-10-25 Prefix distribution method, device and system Pending CN101984636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105274156A CN101984636A (en) 2010-10-25 2010-10-25 Prefix distribution method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105274156A CN101984636A (en) 2010-10-25 2010-10-25 Prefix distribution method, device and system

Publications (1)

Publication Number Publication Date
CN101984636A true CN101984636A (en) 2011-03-09

Family

ID=43641807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105274156A Pending CN101984636A (en) 2010-10-25 2010-10-25 Prefix distribution method, device and system

Country Status (1)

Country Link
CN (1) CN101984636A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011144138A1 (en) * 2010-09-26 2011-11-24 华为技术有限公司 Method, device and system for implementing route aggregation
WO2011157141A2 (en) * 2011-05-31 2011-12-22 华为技术有限公司 Internet protocol version 6 address allocation method and apparatus
WO2012155562A1 (en) * 2011-10-14 2012-11-22 中兴通讯股份有限公司 Method for route transmission based on single ipv6 address prefix, and wireless device
CN103248718A (en) * 2012-02-10 2013-08-14 华为技术有限公司 Method for configuring DHCPv6 client-side, DHCPv6 client-side, network device, and network system
WO2013123763A1 (en) * 2012-02-20 2013-08-29 烽火通信科技股份有限公司 Dynamic ipv6 configuration method for home gateway
CN105897460A (en) * 2015-02-18 2016-08-24 西门子公司 Method for configurating communication device of industrial automation system and communication device
CN106412143A (en) * 2016-09-12 2017-02-15 新疆石油管理局数据公司 Visible allocation method of cluster node IP address
JP2019506095A (en) * 2016-02-18 2019-02-28 フュージョンレイヤー・オサケユフティオFusionLayer Oy Delegation / delegation to networks in orchestrated computing environments or software-defined computing environments
CN110622485A (en) * 2017-05-15 2019-12-27 瑞典爱立信有限公司 Topic processing in MQTT networks
CN114979075A (en) * 2021-02-24 2022-08-30 华为技术有限公司 IPv6 address generation method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794737A (en) * 2004-12-20 2006-06-28 阿尔卡特公司 Device for dynamically allocating variable length prefixes to network equipments of an ip-network.
US7349346B2 (en) * 2002-10-31 2008-03-25 Intel Corporation Method and apparatus to model routing performance
CN101753633A (en) * 2008-12-09 2010-06-23 华为技术有限公司 Method, system and equipment for allocating IPv6 (internet protocol version 6) prefixes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349346B2 (en) * 2002-10-31 2008-03-25 Intel Corporation Method and apparatus to model routing performance
CN1794737A (en) * 2004-12-20 2006-06-28 阿尔卡特公司 Device for dynamically allocating variable length prefixes to network equipments of an ip-network.
CN101753633A (en) * 2008-12-09 2010-06-23 华为技术有限公司 Method, system and equipment for allocating IPv6 (internet protocol version 6) prefixes

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011144138A1 (en) * 2010-09-26 2011-11-24 华为技术有限公司 Method, device and system for implementing route aggregation
US9426065B2 (en) 2010-09-26 2016-08-23 Huawei Technologies Co., Ltd. Method, apparatus and system for implementing routing aggregation
WO2011157141A2 (en) * 2011-05-31 2011-12-22 华为技术有限公司 Internet protocol version 6 address allocation method and apparatus
WO2011157141A3 (en) * 2011-05-31 2012-05-03 华为技术有限公司 Internet protocol version 6 address allocation method and apparatus
CN102918817A (en) * 2011-05-31 2013-02-06 华为技术有限公司 Internet protocol version 6 address allocation method and apparatus
CN102918817B (en) * 2011-05-31 2016-06-08 华为技术有限公司 The method of IPv6 address assignment and equipment
US9258699B2 (en) 2011-10-14 2016-02-09 Zte Corporation Method for route transmission based on single IPv6 address prefix, and wireless device
WO2012155562A1 (en) * 2011-10-14 2012-11-22 中兴通讯股份有限公司 Method for route transmission based on single ipv6 address prefix, and wireless device
CN103248718A (en) * 2012-02-10 2013-08-14 华为技术有限公司 Method for configuring DHCPv6 client-side, DHCPv6 client-side, network device, and network system
CN103248718B (en) * 2012-02-10 2017-07-28 华为技术有限公司 Method, DHCPv6 clients, the network equipment and the network system of configuration DHCP v6 clients
WO2013117088A1 (en) * 2012-02-10 2013-08-15 华为技术有限公司 Method for configuring dhcpv6 client, dhcpv6 client, network device, and network system
WO2013123763A1 (en) * 2012-02-20 2013-08-29 烽火通信科技股份有限公司 Dynamic ipv6 configuration method for home gateway
US10931549B2 (en) 2015-02-18 2021-02-23 Siemens Aktiengesellschaft Communication device of an industrial automation system and method for configurating the communication device
CN105897460B (en) * 2015-02-18 2019-07-30 西门子公司 Configure the method and communication equipment of the communication equipment of industrial automation system
CN105897460A (en) * 2015-02-18 2016-08-24 西门子公司 Method for configurating communication device of industrial automation system and communication device
JP2019506095A (en) * 2016-02-18 2019-02-28 フュージョンレイヤー・オサケユフティオFusionLayer Oy Delegation / delegation to networks in orchestrated computing environments or software-defined computing environments
CN106412143A (en) * 2016-09-12 2017-02-15 新疆石油管理局数据公司 Visible allocation method of cluster node IP address
CN106412143B (en) * 2016-09-12 2019-10-18 新疆石油管理局数据公司 A kind of visualization distribution method of clustered node IP address
CN110622485A (en) * 2017-05-15 2019-12-27 瑞典爱立信有限公司 Topic processing in MQTT networks
CN110622485B (en) * 2017-05-15 2021-12-24 瑞典爱立信有限公司 Method and node for theme processing in MQTT network
CN114979075A (en) * 2021-02-24 2022-08-30 华为技术有限公司 IPv6 address generation method and related device
WO2022179410A1 (en) * 2021-02-24 2022-09-01 华为技术有限公司 Ipv6 address generation method and related device

Similar Documents

Publication Publication Date Title
CN101984636A (en) Prefix distribution method, device and system
US10218671B2 (en) Dynamic media access control address allocation and leasing for wireless network
US8887234B2 (en) Network service selection and authentication and stateless auto-configuration in an IPv6 access network
CN101534329B (en) IP address assignment method and system
CN1897589B (en) Access apparatus, routing equipment and method for supporting IPv6 stateless address configuration in telecommunication network
US20130010614A1 (en) METHOD AND APPARATUS FOR PROCESSING PACKETS IN IPv6 NETWORK
US10560378B2 (en) Data link layer-based communication method, device, and system
CN107277190B (en) A kind of method of SDN equipment automatic wire charging, SDN equipment and controller
KR100864158B1 (en) Address generation/allocation method based on wireless broadband access network, mobile resource configuration method using its
CN102413203A (en) IP (Internet Protocol) address allocation method and device
US20180359214A1 (en) Device and method for wireless communication in an ip network
CN111866201B (en) IPv6 multicast address generation method and device
CN103916484A (en) IP-address configuring method and device
CN101873320B (en) Client information verification method based on DHCPv6 relay and device thereof
CN106888450A (en) Information processing method and device
CN101110817B (en) Method and system for address selection
US9503418B2 (en) Method and apparatus for obtaining remote IP address
CN101103614A (en) Efficient address-space extension to pseudo multi-homed hosts
CN109803028A (en) method and device for configuring service flow
EP3104580A1 (en) Ipv6 address assignment method and device
US7085836B1 (en) System and method for automatic private IP address selection
KR100772537B1 (en) Ipv6 transition system and method tunneling from ipv6 packet to ipv4 in ipv4 network environment
KR100908245B1 (en) Heterogeneous network communication apparatus and method
JP4170649B2 (en) Messenger server system, method of providing messenger service, connection destination determination server in messenger service
CN102892108B (en) Multiple address prefix distributing method and 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110309