WO2008011776A1 - An address assignment realizing method and the system, the relay agent, the server thereof - Google Patents

An address assignment realizing method and the system, the relay agent, the server thereof Download PDF

Info

Publication number
WO2008011776A1
WO2008011776A1 PCT/CN2007/001128 CN2007001128W WO2008011776A1 WO 2008011776 A1 WO2008011776 A1 WO 2008011776A1 CN 2007001128 W CN2007001128 W CN 2007001128W WO 2008011776 A1 WO2008011776 A1 WO 2008011776A1
Authority
WO
WIPO (PCT)
Prior art keywords
prefix
address
identifier
relay
server
Prior art date
Application number
PCT/CN2007/001128
Other languages
French (fr)
Chinese (zh)
Inventor
Hongguang Guan
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.
Publication of WO2008011776A1 publication Critical patent/WO2008011776A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/59Network arrangements, protocols or services for addressing or naming using proxies for addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method, system, relay agent, and server for implementing address allocation. Background of the invention
  • IPv6 The Dynamic Host Configuration Protocol (IPv6) of IP version 6 is a mechanism for dynamically allocating IPv6 addresses and configuration parameters.
  • DHCPv6 adopts the client/server mode.
  • the client sends a configuration request to the server.
  • the application includes the following parameters: the assigned IP address, the subnet mask, and the default gateway.
  • the server returns the configuration information according to the policy.
  • the DHCPv6 message adopts the user.
  • the Datagram Protocol (UDP) is encapsulated.
  • the DHCPv6 client looks for the DHCPv6 server: The DHCPv6 client sends a Solicit message to find the DHCPv6 server.
  • the DHCPv6 server provides the IP address: The DHCPv6 server that receives the Solicit message on the network responds, selects the available address and assigns it to the DHCPv6 client, and sends a notification containing the assigned IP address and other configuration parameters to the DHCPv6 client.
  • the DHCPv6 client selects the IP address provided by a DHCPv6 server: If multiple DHCPv6 servers send Advertise messages to the DHCPv6 client, the DHCPv6 client selects one of the received Advertises, that is, selects a DHCPv6 server. The DHCPv6 client then responds with a Request message containing DHCPv6 The IP address of the DHCPv6 server selected by the client and the IP address provided by the DHCPv6 server.
  • the DHCPv6 server confirms the provided IP address: When the DHCPv6 server receives the Request message from the DHCPv6 client, it sends a reply (Reply) message to the DHCPv6 client for the IP address and other configuration parameters provided by the DHCPv6 client. Tell the DHCPv6 client to use the EP address it provides.
  • the DHCPv6 relay agent is located between the DHCPv6 client and the DHCPv6 server. Its role is to:
  • Relay-forward message can relay messages sent by DHCPv6 clients and Relay-fonvard messages sent by other relay agents.
  • the relay agent When the relay agent receives a legitimate message that needs to be relayed, it will construct a new Relay-forward message. Fill in the link-address field with a global or local site address, which is used to prompt the server what address to assign to the client. Then fill in the source IP address of the received packet in the peer-address field of the Relay-forward message, and put the received DHCPv6 message (excluding the IP header and UDP header) in the Relay Message option, and add according to the configuration. Some other options are used, and the constructed Relay-forward message is sent to other relay agents or servers.
  • the Relay-forward message format is:
  • Link-address A global or local site address that the server uses to determine the link where the client is located.
  • Peer-address The address of the last hop of the message (may be a client or other relay agent);
  • the DHCPv6 client requests the address from the DHCPv6 server through the DHCPv6 relay agent as follows:
  • the DHCPv6 client sends a request for a request address to the DHCPv6 relay agent.
  • the DHCPv6 relay agent After receiving the request from the DHCPv6 client, the DHCPv6 relay agent creates a relay-forward message and sends it to the DHCPv6 server.
  • the value of the link-address in the message is IP-Y.
  • the DHCPv6 server After receiving the Relay-forward message from the DHCPv6 relay agent, the DHCPv6 server assigns an address to the DHCPv6 client according to the link-address in the message, and sends the address to the DHCPv6 relay agent.
  • the Relay-forward message at this time. As shown below: msg-type: RELAY-FORW;
  • Peer-address Address of the DHCPv6 client.
  • Relay Message option ⁇ Request for DHCPv6 Client>.
  • the DHCPv6 relay agent After receiving the address sent by the DHCPv6 server, the DHCPv6 relay agent forwards it to the DHCPv6 client.
  • the prefix corresponding to Internet Service Provider_1 is prefix_l
  • the prefix corresponding to ISP-2 is prefix-2
  • the prefix corresponding to ISP is prefix_3
  • the client wants to obtain ISP-1, ISP. 2, the address of ISP-3, but the client does not know the specific prefix.
  • the DHCPv6 server is prompted according to the link-address (ie interface IP-Y)
  • the DHCPv6 server (DHCP v6 Server) Only one address associated with the interface IP_Y can be assigned to the client, and addresses belonging to ISP-1, ISP_2, and ISP-3 cannot be provided.
  • the DHCPv6 relay agent cannot prompt the DHCPv6 server.
  • To provide customers with an address with a specific prefix only one address associated with the DHCPv6 relay agent address can be assigned, and the customer has poor selectivity when applying for an address.
  • the link-address inserted by the other DHCPv6 relay agent in the Relay-forward message cannot be used by the DHCPv6 server to determine the client. Link. Summary of the invention
  • Embodiments of the present invention provide a method, system, pants agent, and server for implementing address allocation, which can effectively solve the problem of poor address selectivity when a server allocates an address through a relay agent.
  • a method for implementing address allocation is applied to a system including a relay agent, a client, and a server; when the relay agent receives an address request message from the client, the method includes:
  • the relay agent forwards the address to the client.
  • a system for implementing address allocation comprising:
  • a client configured to send an address request message
  • a relay agent configured to: when receiving an address request message sent by the client, determine a prefix or a prefix identifier, and send the prefix or a prefix identifier; receive an address corresponding to the prefix or the prefix identifier, and forward the address The address to the client;
  • a server configured to determine, according to the prefix or the prefix identifier sent by the relay agent, an address corresponding to the prefix or the prefix identifier, and corresponding to the prefix or the prefix identifier The address is sent to the relay agent.
  • a relay agent that implements address allocation including:
  • a first module configured to determine a prefix or a prefix identifier after receiving an address request message from the client
  • the second module is configured to send the prefix or prefix identifier to the server.
  • a server that implements address allocation including:
  • a first module configured to determine an address corresponding to the prefix or prefix identifier according to a prefix or a prefix identifier from a relay agent;
  • a second module configured to send the address corresponding to the prefix or the prefix identifier to the relay agent.
  • the prefix selection option can be inserted in the Relay-forward message sent by the relay agent to the server, and the prefix or prefix identifier is stored in the prefix selection option, or the relay agent directly deposits the prefix or prefix identifier into the prefix selection option.
  • the server is prompted to assign an address to the client that belongs to a specific prefix or prefix identifier, or the server may be prompted to assign multiple addresses belonging to multiple specific prefixes or prefix identifiers to the client.
  • FIG. 1 is a schematic diagram of a working process of a DHCPv6 in the prior art
  • FIG. 2 is a schematic diagram of a Relay-forward message format of a DHCPv6 relay agent in the prior art
  • FIG. 3 is a schematic diagram of a DHCPv6 client performing address selection process through a DHCPv6 relay agent in the prior art
  • FIG. 4 is a schematic diagram of address allocation by a DHCPv6 relay agent in the prior art
  • FIG. 5 is a flowchart of an address allocation method according to an embodiment of the present invention
  • 6 is a schematic diagram of a format of a prefix selection option according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a specific prefix format in a prefix selection option according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of an address allocation system according to an embodiment of the present invention. Mode for carrying out the invention
  • IPv6 An embodiment of the present invention is described by using IPv6 as an example.
  • a prefix selection option is inserted, so that the DHCPv6 server can be prompted to perform address allocation according to the option.
  • FIG. 5 is a flowchart of an address allocation method according to an embodiment of the present invention.
  • the client is a DHCPv6 client
  • the relay agent is a DHCPv6 relay agent
  • the server is a DHCPv6 server.
  • prefix selection option (Relay Prefix Selection Option) in the relay-forward message format of the DHCPv6 relay agent. See Figure 6 for the prefix selection option format:
  • Option-len the length of the option
  • PS-Prefix option 1 PS-Prefix option 2, , PS- Prefix option n: prefix information, ie prefix or prefix identifier;
  • the PS-Prefix option option is used to describe each specific prefix or prefix identifier in the relay prefix selection option. For details, see Figure 7:
  • Prefix-length prefix length
  • IPv6-prefix IPv6 prefix or prefix identifier
  • Step 101 The DHCPv6 client sends an address request message in multicast mode.
  • Step 102 After receiving the address request message, the DHCPv6 relay agent determines the prefix information according to the selection policy, and stores the prefix information in a prefix selection option, where the selection policy includes at least one of the following policies:
  • the information in the address request message refers to the hardware address of the client, a network access identifier (NAI), a client identifier, and the like;
  • NAI network access identifier
  • the DHCPv6 relay agent performs prefix selection according to the current configuration of the DHCPv6 relay agent, and generates prefix information: [prefix-1, prefix-2, ..., prefix_n], and prefixes the prefix.
  • the information is stored in the prefix selection option.
  • Step 103 The DHCPv6 relay agent sets up a Relay-forward message, and sends a Relay-forward message to the DHCPv6 server, where the Relay-forward message is:
  • Msg-type The type of the message, which is Relay-forw;
  • Hop-count The number of times the packet has undergone transit from the node to the destination node, which is 0;
  • Link-address A global or local site address that the server uses to determine the link where the client is located. This is IP-Y;
  • Peer-address Address of the last hop of the message (may be a client or other relay agent), which is the client address;
  • Relay Message Option includes [; DHCPv6 client address request message], Is a required option in the Options option;
  • Prefix selection options Includes prefix information [prefix 1 , prefix - 2, ..., prefix - n].
  • Step 104 After receiving the Relay-forward message, the DHCPv6 server obtains the prefix information from the prefix selection option, obtains the address request message from the Relay Message Option option, and then assigns the prefix information to the DHCPv6 client according to the address allocation policy. the address of.
  • the above address allocation strategy is at least one of the following strategies:
  • the address is allocated according to the information in the prefix information and the address request message. After the address allocation policy is determined, the client is assigned an address corresponding to the prefix information in the prefix selection option, and the assigned address is the address IP with the prefix one. 1. Address IP-2 with prefix - 2, ... IP with address - n.
  • Step 105 After the DHCPv6 server selects the address corresponding to the prefix information, the address corresponding to the prefix information is carried in the Relay-reply message, and the Relay-reply message is sent to the DHCPv6 relay agent, where the Relay-reply message is The Relay Message Option option is a response message from the DHCPv6 server to the DHCPv6 client. The response message contains the address corresponding to the prefix information assigned by the DHCPv6 server to the DHCPv6 client.
  • Step 106 After receiving the relay-reply message sent by the DHCPv6 server, the DHCPv6 relay agent extracts the response message from the DHCPv6 server to the DHCPv6 client from the Relay Message Option, and sends the response message to the DHCPv6 client.
  • Step 107 After receiving the response message, the DHCPv6 client receives the response message. Obtain the assigned address, which is the address IP-1 with the prefix -1, the address IP with the prefix -2, 2, ..., the IP__n with the prefix -n.
  • the prefix selection option may not be inserted in the Relay-forward message, but the prefix information determined by the DHCPv6 relay agent is placed in the Link-address field of the Relay-forward message, and the DHCPv6 server receives the Relay-forward. After the message, the DHCPv6 client is assigned an address according to the prefix information in the Link-address field.
  • an embodiment of the present invention further provides a system for address allocation, where the system includes a client, a relay agent, and a server;
  • the client is configured to send an address request message and receive an address allocated by the server.
  • the relay agent is configured to receive an address request message sent by the client, determine prefix information according to the selection policy, and send the prefix information to the server. At the same time, the relay agent is further configured to receive an address corresponding to the prefix information sent by the server;
  • the server is configured to receive the prefix information sent by the relay agent, and allocate an address corresponding to the prefix information according to the address allocation policy, and send the address corresponding to the prefix information to the relay agent.
  • the relay agent includes a relay-forward message module and a selection policy module.
  • the relay-forward message module is configured to store an address request message and prefix information sent by the client.
  • the selection policy module provides for selection of a prefix based on the location of the client, selection of prefix information based on information in the address request message, or selection of prefix information based on the current configuration of the relay agent.
  • the server includes a relay-reply message module and an address allocation policy module.
  • the relay-reply message module is configured to store an address corresponding to the prefix information.
  • the address allocation policy module performs address allocation according to the obtained prefix information.
  • the information in the prefix information and the address request message is used for address allocation.
  • the client in the system is a DHCPv6 client
  • the relay agent is a DHCPv6 relay agent
  • the server is a DHCPv6 server.

Abstract

An address assignment realizing method is applied to a system including relay agents, client-ends and servers, which includes: a relay agent determines a prefix or prefix identifier after receiving an address request message from a client-end, and transmits the prefix or prefix identifier to a server; the address corresponding to the prefix or prefix identifier is received, and the address is the one which is assigned by the server for the prefix or prefix identifier; the address is transferred to the client-end. Also an address assignment realizing system, a relay agent and a server are provided. According to the invention, the server is clued on that it assigns multiple addresses belonging to the special prefix or prefix identifier to the client-end, and also clued on that it assigns multiple addresses belonging to the multiple prefixes or prefix identifiers to the client-end, so the problem that the selectivity is bad during the server assigning addresses through the relay agents is solved.

Description

实现地址分配的方法、 系统、 中继代理和服务器  Method, system, relay agent and server for implementing address allocation
技术领域 Technical field
本发明涉及网络通信领域, 特別涉及一种实现地址分配的方法、 系 统、 中继代理和服务器。 发明背景  The present invention relates to the field of network communications, and in particular, to a method, system, relay agent, and server for implementing address allocation. Background of the invention
IP版本六的动态主机配置协议 ( DHCPv6 , Dynamic Host Configuration Protocol for IPv6 )是一种动态分配 IPv6地址和配置参数的 机制。  The Dynamic Host Configuration Protocol (IPv6) of IP version 6 is a mechanism for dynamically allocating IPv6 addresses and configuration parameters.
DHCPv6采用客户端 /服务器模式,由客户端向服务器提出配置申请, 申请内容包括: 分配的 IP地址、 子网掩码、 缺省网关等参数, 服务器根 据策略返回相应配置信息, DHCPv6报文采用用户数据报协议(UDP, User Datagram Protocol )进行封装。  DHCPv6 adopts the client/server mode. The client sends a configuration request to the server. The application includes the following parameters: the assigned IP address, the subnet mask, and the default gateway. The server returns the configuration information according to the policy. The DHCPv6 message adopts the user. The Datagram Protocol (UDP) is encapsulated.
参见图 1, DHCPv6工作过程如下:  Referring to Figure 1, the working process of DHCPv6 is as follows:
1. DHCPv6客户端寻找 DHCPv6服务器: DHCPv6客户端发送请求 ( Solicit ) 消息寻找 DHCPv6服务器;  1. The DHCPv6 client looks for the DHCPv6 server: The DHCPv6 client sends a Solicit message to find the DHCPv6 server.
2. DHCPv6服务器提供 IP地址: 在网络中接收到 Solicit消息的 DHCPv6服务器都会做出响应, 选择可用的地址分配给 DHCPv6客户端, 向 DHCPv6客户端发送包含分配的 IP地址和其他配置参数的通知 2. The DHCPv6 server provides the IP address: The DHCPv6 server that receives the Solicit message on the network responds, selects the available address and assigns it to the DHCPv6 client, and sends a notification containing the assigned IP address and other configuration parameters to the DHCPv6 client.
( Advertise ) 消息; (Advertise) message;
3. DHCPv6 客户端选择某个 DHCPv6服务器提供的 IP地址: 如果 有多个 DHCPv6服务器向 DHCPv6客户端发送 Advertise消息,则 DHCPv6 客户端从接收到的 Advertise中选择一个, 即选定一个 DHCPv6服务器。 然后 DHCPv6客户端用要求(Request )消息应答,该消息中包含 DHCPv6 客户端所选定的 DHCPv6服务器的 IP地址和该 DHCPv6服务器提供的 IP 地址。 3. The DHCPv6 client selects the IP address provided by a DHCPv6 server: If multiple DHCPv6 servers send Advertise messages to the DHCPv6 client, the DHCPv6 client selects one of the received Advertises, that is, selects a DHCPv6 server. The DHCPv6 client then responds with a Request message containing DHCPv6 The IP address of the DHCPv6 server selected by the client and the IP address provided by the DHCPv6 server.
4. DHCPv6服务器确认所提供的 IP地址: 当 DHCPv6服务器接收到 DHCPv6客户端的 Request消息后, 它便向 DHCPv6客户端发送一个包舍 它所提供的 IP地址和其他配置参数的应答(Reply ) 消息, 告诉 DHCPv6 客户端可以使用它所提供的 EP地址。  4. The DHCPv6 server confirms the provided IP address: When the DHCPv6 server receives the Request message from the DHCPv6 client, it sends a reply (Reply) message to the DHCPv6 client for the IP address and other configuration parameters provided by the DHCPv6 client. Tell the DHCPv6 client to use the EP address it provides.
DHCPv6中继代理( Relay Agent )位于 DHCPv6客户端和 DHCPv6 服务器之间, 它的作用是:  The DHCPv6 relay agent is located between the DHCPv6 client and the DHCPv6 server. Its role is to:
1.可以中继 DHCPv6 客户端发来的消息和其他中继代理发来的 Relay-fonvard消息, 当中继代理收到合法的需要中继的消息时, 它会构 建一个新的 Relay-forward消息, 在 link-address字段填入一个全球或本 地站点地址, 该地址的作用是提示服务器该分给客户端什么样的地址。 然后将收到的数据包的源 IP 地址填写在 Relay-forward 消息的 peer-address字段中, 将收到的 DHCPv6消息 (不包括 IP头和 UDP头) 放在 Relay Message选项中, 另外按照配置加上其它一些选项, 并将构 建的 Relay-forward消息发送的给其它中继代理或服务器。  1. It can relay messages sent by DHCPv6 clients and Relay-fonvard messages sent by other relay agents. When the relay agent receives a legitimate message that needs to be relayed, it will construct a new Relay-forward message. Fill in the link-address field with a global or local site address, which is used to prompt the server what address to assign to the client. Then fill in the source IP address of the received packet in the peer-address field of the Relay-forward message, and put the received DHCPv6 message (excluding the IP header and UDP header) in the Relay Message option, and add according to the configuration. Some other options are used, and the constructed Relay-forward message is sent to other relay agents or servers.
参见图 2 , Relay-forward消息格式为:  Referring to Figure 2, the Relay-forward message format is:
Link-address: —个全球或本地站点地址, 服务器用该地址来确定客 户端所在链路;  Link-address: A global or local site address that the server uses to determine the link where the client is located.
Peer-address: 该消息的上一跳的地址(可能是客户端或其它中继代 理);  Peer-address: The address of the last hop of the message (may be a client or other relay agent);
Options: 必须包含" Relay Message Option"。  Options: Must contain "Railup Message Option".
2. 可以中继 DHCPv6 服务器或者其他中继代理发来的 Relay-reply 消息, 处理 Relay-reply消息中除了 Relay Message选项外的所有选项, 处理后将他们丢弃。 然后将 Relay Message选项中的内 由出, 转发给 其它.中继代理或客户端。 2. You can relay the Relay-reply message sent by the DHCPv6 server or other relay agent, and process all the options except the Relay Message option in the Relay-reply message, and discard them after processing. Then forward the inbound and outbound messages in the Relay Message option to Other. Relay agent or client.
参见图 3 , DHCPv6客户端通过 DHCPv6中继代理向 DHCPv6服务 器申请地址的过程如下:  Referring to Figure 3, the DHCPv6 client requests the address from the DHCPv6 server through the DHCPv6 relay agent as follows:
1. DHCPv6客户端向 DHCPv6中继代理发送申请地址的请求。 2. DHCPv6中继代理接收到来自 DHCPv6客户端的请求之后, 組 建 Relay-forward消息,并发送给 DHCPv6服务器,该消息中 link-address 的值为 IP—Y;  1. The DHCPv6 client sends a request for a request address to the DHCPv6 relay agent. 2. After receiving the request from the DHCPv6 client, the DHCPv6 relay agent creates a relay-forward message and sends it to the DHCPv6 server. The value of the link-address in the message is IP-Y.
3. DHCPv6服务器接收到来自 DHCPv6中继代理的 Relay-forward 消息后, 根据消息中的 link-address给 DHCPv6客户端分配地址, 并将 该地址发送给 DHCPv6中继代理; 此时的 Relay-forward消息如下所示: msg-type: RELAY-FORW;  3. After receiving the Relay-forward message from the DHCPv6 relay agent, the DHCPv6 server assigns an address to the DHCPv6 client according to the link-address in the message, and sends the address to the DHCPv6 relay agent. The Relay-forward message at this time. As shown below: msg-type: RELAY-FORW;
hop-count: 0;  Hop-count: 0;
link-address: IP—Y;  Link-address: IP—Y;
peer-address: DHCPv6客户端的地址;  Peer-address: Address of the DHCPv6 client.
Relay Message option: <DHCPv6 Client的请求〉。  Relay Message option: <Request for DHCPv6 Client>.
4. DHCPv6中继代理收到 DHCPv6服务器发送的地址后, 转发给 DHCPv6客户端。  4. After receiving the address sent by the DHCPv6 server, the DHCPv6 relay agent forwards it to the DHCPv6 client.
参见图 4 , 假设 Internet 月良务提供商 _1 ( ISP_1 ) 对应的前缀为 prefix_l , ISP— 2对应的前缀为 prefix— 2 , ISP 对应的前缀为 prefix_3 , 客户端希望获取属于 ISP— 1 , ISP一 2, ISP—3的地址, 但是该客户端不知 道具体的前綴, 在这种情况下, 如果根据 link-address (即接口 IP— Y ) 来提示 DHCPv6服务器的话, DHCPv6服务器( DHCP v6 Server ) 只能 给客户分配一个和接口 IP_Y相关的地址 , 不能提供属于 ISP—1 , ISP_2 , ISP— 3的地址。  Referring to Figure 4, assume that the prefix corresponding to Internet Service Provider_1 (ISP_1) is prefix_l, the prefix corresponding to ISP-2 is prefix-2, the prefix corresponding to ISP is prefix_3, and the client wants to obtain ISP-1, ISP. 2, the address of ISP-3, but the client does not know the specific prefix. In this case, if the DHCPv6 server is prompted according to the link-address (ie interface IP-Y), the DHCPv6 server (DHCP v6 Server) Only one address associated with the interface IP_Y can be assigned to the client, and addresses belonging to ISP-1, ISP_2, and ISP-3 cannot be provided.
因此, 在现有技术中, DHCPv6中继代理不能提示 DHCPv6服务器 为客户提供具有特定前缀的地址, 只能分配一个与 DHCPv6中继代理地 址相关的地址,客户在申请地址时可选性差。另外, 当存在多个 DHCPv6 中继代理时, 除了最靠近客户端的 DHCPv6中继代理, 其它的 DHCPv6 中继代理在 Relay-forward消息中插入的 link-address都不能被 DHCPv6 服务器用来确定客户端所在的链路。 发明内容 Therefore, in the prior art, the DHCPv6 relay agent cannot prompt the DHCPv6 server. To provide customers with an address with a specific prefix, only one address associated with the DHCPv6 relay agent address can be assigned, and the customer has poor selectivity when applying for an address. In addition, when there are multiple DHCPv6 relay agents, except for the DHCPv6 relay agent closest to the client, the link-address inserted by the other DHCPv6 relay agent in the Relay-forward message cannot be used by the DHCPv6 server to determine the client. Link. Summary of the invention
本发明的实施例提供了一种实现地址分配的方法、 系统、 中裤代理 和服务器, 能够有效地解决服务器通过中继代理分配地址时地址可选性 差的问题。  Embodiments of the present invention provide a method, system, pants agent, and server for implementing address allocation, which can effectively solve the problem of poor address selectivity when a server allocates an address through a relay agent.
一种实现地址分配的方法, 应用于包括中继代理、 客户端和服务器 的系统; 所述中继代理在收到来自所述客户端的地址请求消息时, 所述 方法包括:  A method for implementing address allocation is applied to a system including a relay agent, a client, and a server; when the relay agent receives an address request message from the client, the method includes:
确定前缀或前缀标识符, 并把所述前缀或前綴标识符发送给所述服 务器;  Determining a prefix or prefix identifier and transmitting the prefix or prefix identifier to the server;
接收与所述前綴或前缀标识符对应的地址, 所述地址为所述服务器 为所述前缀或前缀标识符分配的地址;  Receiving an address corresponding to the prefix or prefix identifier, where the address is an address allocated by the server for the prefix or prefix identifier;
所述中继代理将所述地址转发给所述客户端。  The relay agent forwards the address to the client.
一种实现地址分配的系统, 包括:  A system for implementing address allocation, comprising:
客户端, 用于发送地址请求消息;  a client, configured to send an address request message;
中继代理, 用于在收到所述客户端发送的地址请求消息时, 确定前 缀或前綴标识符, 并发送所述前缀或前缀标识符; 接收所述前缀或前綴 标识符对应的地址并转发所述地址至所述客户端;  a relay agent, configured to: when receiving an address request message sent by the client, determine a prefix or a prefix identifier, and send the prefix or a prefix identifier; receive an address corresponding to the prefix or the prefix identifier, and forward the address The address to the client;
服务器, 用于在收到所述中继代理发送的前綴或前綴标识符时, 确 定所述前綴或前缀标识符对应的地址, 并将所述前缀或前綴标识符对应 的地址发送给所述中继代理。 a server, configured to determine, according to the prefix or the prefix identifier sent by the relay agent, an address corresponding to the prefix or the prefix identifier, and corresponding to the prefix or the prefix identifier The address is sent to the relay agent.
一种实现地址分配的中继代理, 包括:  A relay agent that implements address allocation, including:
第一模块, 用于在收到来自客户端的地址请求消息后确定前綴或前 缀标识符;  a first module, configured to determine a prefix or a prefix identifier after receiving an address request message from the client;
第二模块, 用于将所述前缀或前綴标识符发送给服务器。  The second module is configured to send the prefix or prefix identifier to the server.
一种实现地址分配的服务器, 包括:  A server that implements address allocation, including:
第一模块, 用于根据来自中继代理的前缀或前綴标识符确定所述前 缀或前缀标识符对应的地址;  a first module, configured to determine an address corresponding to the prefix or prefix identifier according to a prefix or a prefix identifier from a relay agent;
第二模块, 用于将所述前缀或前綴标识符对应的地址发送给所述中 继代理。  And a second module, configured to send the address corresponding to the prefix or the prefix identifier to the relay agent.
由此可见,可以在中继代理发送给服务器的 Relay-forward消息中插 入前缀选择选项, 并将前缀或前缀标识符存入前缀选择选项中, 或者中 继代理直接将前缀或前缀标识符存入 Relay-forward消息的 Link-addres 字段中, 从而提示服务器给客户端分配属于特定前綴或前缀标识符的地 址, 也可以提示服务器给客户端分配属于多个特定前缀或前缀标识符的 多个地址。 附图简要说明  It can be seen that the prefix selection option can be inserted in the Relay-forward message sent by the relay agent to the server, and the prefix or prefix identifier is stored in the prefix selection option, or the relay agent directly deposits the prefix or prefix identifier into the prefix selection option. In the Link-addres field of the Relay-forward message, the server is prompted to assign an address to the client that belongs to a specific prefix or prefix identifier, or the server may be prompted to assign multiple addresses belonging to multiple specific prefixes or prefix identifiers to the client. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是现有技术中 DHCPv6工作过程示意图;  1 is a schematic diagram of a working process of a DHCPv6 in the prior art;
图 2是现有技术中 DHCPv6中继代理的 Relay-forward消息格式示 意图;  2 is a schematic diagram of a Relay-forward message format of a DHCPv6 relay agent in the prior art;
图 3是现有技术中 DHCPv6客户端通过 DHCPv6中继代理进行地址 选择过程示意图;  3 is a schematic diagram of a DHCPv6 client performing address selection process through a DHCPv6 relay agent in the prior art;
图 4是现有技术中通过 DHCPv6中继代理进行地址分配的示意图; 图 5是本发明实施例的地址分配方法流程图; 图 6是本发明实施例的前缀选择选项格式示意图; 图 7是本发明实施例的前缀选择选项中具体的前缀格式示意图; 图 8是本发明实施例的地址分配系统示意图。 实施本发明的方式 4 is a schematic diagram of address allocation by a DHCPv6 relay agent in the prior art; FIG. 5 is a flowchart of an address allocation method according to an embodiment of the present invention; 6 is a schematic diagram of a format of a prefix selection option according to an embodiment of the present invention; FIG. 7 is a schematic diagram of a specific prefix format in a prefix selection option according to an embodiment of the present invention; and FIG. 8 is a schematic diagram of an address allocation system according to an embodiment of the present invention. Mode for carrying out the invention
下面结合附图和具体实施例对本发明作进一步说明, 但不作为对本 发明的限定。  The invention will be further described with reference to the accompanying drawings and specific embodiments, but not to be construed as limiting.
本发明的实施例以应用在 IPv6上为例进行说明,在原有的 DHCPv6 中继代理的 Relay-forward 消息中插入前缀选择选项, 这样可以提示 DHCPv6服务器根据该选项进行地址分配。'  An embodiment of the present invention is described by using IPv6 as an example. In the relay-forward message of the original DHCPv6 relay agent, a prefix selection option is inserted, so that the DHCPv6 server can be prompted to perform address allocation according to the option. '
图 5是本发明实施例的地址分配方法的流程图, 在该方法中, 客户 端为 DHCPv6客户端,中继代理为 DHCPv6中继代理,服务器为 DHCPv6 服务器。  FIG. 5 is a flowchart of an address allocation method according to an embodiment of the present invention. In the method, the client is a DHCPv6 client, the relay agent is a DHCPv6 relay agent, and the server is a DHCPv6 server.
首先, 在 DHCPv6中继代理的 Relay- forward消息格式中插入前缀 选择选项 ( Relay Prefix Selection Option ),该前缀选择选项格式参见图 6:  First, insert the prefix selection option (Relay Prefix Selection Option) in the relay-forward message format of the DHCPv6 relay agent. See Figure 6 for the prefix selection option format:
OPTION— RELAY— PS: 中继前缀选择选项;  OPTION—RELAY— PS: Relay prefix selection option;
Option-len: 选项的长度;  Option-len: the length of the option;
PS- Prefix option 1, PS-Prefix option 2, , PS- Prefix option n: 前 缀信息, 即前缀或前缀标识符;  PS-Prefix option 1, PS-Prefix option 2, , PS- Prefix option n: prefix information, ie prefix or prefix identifier;
其中, PS-Prefix option选项用于描述中继前綴选择选项中每个具体 的前缀或前缀标识符, 具体格式参见图 7:  The PS-Prefix option option is used to describe each specific prefix or prefix identifier in the relay prefix selection option. For details, see Figure 7:
OPTION— PSPREFIX: 前缀选项;  OPTION— PSPREFIX: prefix option;
Prefix-length: 前缀长度;  Prefix-length: prefix length;
IPv6-prefix: IPv6前缀或前缀标识符;  IPv6-prefix: IPv6 prefix or prefix identifier;
Related options: 和这个前綴或前缀标识符相关的其他选项。 本发明实施例所述方法具体包括以下步骤: Related options: Other options related to this prefix or prefix identifier. The method of the embodiment of the present invention specifically includes the following steps:
步驟 101: DHCPv6客户端以组播方式发送地址请求消息。  Step 101: The DHCPv6 client sends an address request message in multicast mode.
步骤 102: 所述 DHCPv6中继代理接收到上述地址请求消息后, 根 据选择策略确定前缀信息, 并把前綴信息存入前缀选择选项中, 所述选 择策略至少包括下述策略之一:  Step 102: After receiving the address request message, the DHCPv6 relay agent determines the prefix information according to the selection policy, and stores the prefix information in a prefix selection option, where the selection policy includes at least one of the following policies:
1)根据 DHCPv6客户端的位置进行前缀或前缀标识符的选择; 1) Select the prefix or prefix identifier according to the location of the DHCPv6 client;
2)根据地址请求消息中的信息进行前缀或前缀标识符的选择,这里 的地址请求消息中的信息指客户端的硬件地址,网络接入识别符( NAI ), 客户端标识符等; 2) selecting a prefix or a prefix identifier according to the information in the address request message, where the information in the address request message refers to the hardware address of the client, a network access identifier (NAI), a client identifier, and the like;
3)根据 DHCPv6 中继代理的当前配置进行前缀或前綴标识符的选 择。  3) Select the prefix or prefix identifier based on the current configuration of the DHCPv6 relay agent.
当然, 除了以上列举的三种选择策略之外, 还可以包括其它的选择 策略。  Of course, in addition to the three selection strategies listed above, other selection strategies may be included.
本实施例 DHCPv6中继代理根据 DHCPv6中继代理的当前配置进行 前缀的选择, 并生成前缀信息: 〔前缀一1, 前缀一 2, ... ..., 前缀 _n〕, 并 把该前缀信息存入前缀选择选项中。  In this embodiment, the DHCPv6 relay agent performs prefix selection according to the current configuration of the DHCPv6 relay agent, and generates prefix information: [prefix-1, prefix-2, ..., prefix_n], and prefixes the prefix. The information is stored in the prefix selection option.
步骤 103 : DHCPv6 中继代理组建 Relay-forward 消息, 并把 Relay-forward消息发送给 DHCPv6服务器, 其中 Relay-forward消息为: Step 103: The DHCPv6 relay agent sets up a Relay-forward message, and sends a Relay-forward message to the DHCPv6 server, where the Relay-forward message is:
Msg-type: 消息的类型, 此时为 Relay-forw; Msg-type: The type of the message, which is Relay-forw;
Hop-count: 报文从本节点到目的节点经历的中转次数, 此时为 0; Hop-count: The number of times the packet has undergone transit from the node to the destination node, which is 0;
Link-address: —个全球或本地站点地址, 服务器用该地址来确定客 户端所在链路, 此时为 IP— Y; Link-address: A global or local site address that the server uses to determine the link where the client is located. This is IP-Y;
Peer-address: 该消息的上一跳的地址(可能是客户端或其它中继代 理), 此时为客户端地址;  Peer-address: Address of the last hop of the message (may be a client or other relay agent), which is the client address;
Relay Message Option: 包括 [; DHCPv6客户端的地址请求消息〕, 是 Options选项中的必选项; Relay Message Option: includes [; DHCPv6 client address request message], Is a required option in the Options option;
前缀选择选项: 包括前缀信息 〔前缀一 1 , 前缀— 2, ... ... , 前缀—n〕。 步骤 104: DHCPv6服务器接收到上述 Relay-forward消息后, 从前 綴选择选项中获取前缀信息, 从 Relay Message Option选项中获取地址 请求消息, 然后根据地址分配策略, 给 DHCPv6客户端分配所述前缀信 息对应的地址。  Prefix selection options: Includes prefix information [prefix 1 , prefix - 2, ..., prefix - n]. Step 104: After receiving the Relay-forward message, the DHCPv6 server obtains the prefix information from the prefix selection option, obtains the address request message from the Relay Message Option option, and then assigns the prefix information to the DHCPv6 client according to the address allocation policy. the address of.
上述地址分配策略至少为下述策略之一:  The above address allocation strategy is at least one of the following strategies:
1)根据获取的前缀信息进行地址的分配;  1) performing address allocation according to the obtained prefix information;
2)根据前缀信息和地址请求消息中的信息进行地址的分配。  2) The allocation of addresses is performed based on the information in the prefix information and the address request message.
当然, 除了以上列举的两种地址分配策略之外, 还可以包括其它地 址分配策略。  Of course, in addition to the two address allocation policies listed above, other address allocation policies may be included.
本实施例根据前缀信息和地址请求消息中的信息进行地址的分配, 地址分配策略确定后 , 给客户分配与前缀选择选项中前缀信息对应的地 址, 分配的地址为具有前缀一 1 的地址 IP一 1 , 具有前缀— 2 的地址 IP— 2, ... ... , 具有前缀— n的地址 IP— n。  In this embodiment, the address is allocated according to the information in the prefix information and the address request message. After the address allocation policy is determined, the client is assigned an address corresponding to the prefix information in the prefix selection option, and the assigned address is the address IP with the prefix one. 1. Address IP-2 with prefix - 2, ... IP with address - n.
步骤 105: DHCPv6服务器选择所述前缀信息对应的地址后, 把所 述前綴信息对应的地址携带在 Relay-reply消息中,并将 Relay-reply消息 发送给 DHCPv6中继代理,其中 Relay-reply消息的 Relay Message Option 选项中为 DHCPv6服务器对 DHCPv6客户端的应答消息,在该应答消息 中,包含了 DHCPv6服务器为 DHCPv6客户端分配的前缀信息对应的地 址。  Step 105: After the DHCPv6 server selects the address corresponding to the prefix information, the address corresponding to the prefix information is carried in the Relay-reply message, and the Relay-reply message is sent to the DHCPv6 relay agent, where the Relay-reply message is The Relay Message Option option is a response message from the DHCPv6 server to the DHCPv6 client. The response message contains the address corresponding to the prefix information assigned by the DHCPv6 server to the DHCPv6 client.
步骤 106: DHCPv6中继代理收到 DHCPv6服务器发送的 Relay-reply 消息后, 从 Relay Message Option选项中抽取出 DHCPv6 服务器对 DHCPv6客户端的应答消息, 并将该应答消息发送给 DHCPv6客户端。  Step 106: After receiving the relay-reply message sent by the DHCPv6 server, the DHCPv6 relay agent extracts the response message from the DHCPv6 server to the DHCPv6 client from the Relay Message Option, and sends the response message to the DHCPv6 client.
步骤 107: DHCPv6客户端收到所述应答消息后, 从所述应答消息 中获取分配的地址, 该地址为具有前缀— 1的地址 IP— 1 , 具有前缀— 2的 地址 IP— 2, ……, 具有前缀— n的地址 IP__n。 Step 107: After receiving the response message, the DHCPv6 client receives the response message. Obtain the assigned address, which is the address IP-1 with the prefix -1, the address IP with the prefix -2, 2, ..., the IP__n with the prefix -n.
在本实施例中, 也可以不在 Relay-forward消息插入前缀选择选项, 而是将 DHCPv6 中继代理确定的前綴信息放入 Relay-forward 消息的 Link-address字段中 , DHCPv6服务器在接收到 Relay-forward消息后, 根据 Link-address字段中的前缀信息为 DHCPv6客户端分配地址。  In this embodiment, the prefix selection option may not be inserted in the Relay-forward message, but the prefix information determined by the DHCPv6 relay agent is placed in the Link-address field of the Relay-forward message, and the DHCPv6 server receives the Relay-forward. After the message, the DHCPv6 client is assigned an address according to the prefix information in the Link-address field.
参见图 8 , 本发明的实施例还提供了一种地址分配的系统, 该系统 包括客户端、 中继代理、 服务器;  Referring to FIG. 8, an embodiment of the present invention further provides a system for address allocation, where the system includes a client, a relay agent, and a server;
其中, 客户端用于发送地址请求消息并接收服务器分配的地址; 中继代理用于接收所述客户端发送的地址请求消息, 根据选择策略 确定前綴信息, 并把所述前缀信息发送给服务器, 同时所述中继代理还 用于接收服务器发送的与前缀信息对应的地址;  The client is configured to send an address request message and receive an address allocated by the server. The relay agent is configured to receive an address request message sent by the client, determine prefix information according to the selection policy, and send the prefix information to the server. At the same time, the relay agent is further configured to receive an address corresponding to the prefix information sent by the server;
服务器用于接收所述中继代理发送的前缀信息, 才艮据地址分配策略 分配所述前缀信息对应的地址, 并将前缀信息对应的地址发送给中继代 理。  The server is configured to receive the prefix information sent by the relay agent, and allocate an address corresponding to the prefix information according to the address allocation policy, and send the address corresponding to the prefix information to the relay agent.
中继代理具体包括 Relay-forward消息模块和选择策略模块; 其中, Relay-forward消息模块用于存放客户端发送的地址请求消息 和前缀信息;  The relay agent includes a relay-forward message module and a selection policy module. The relay-forward message module is configured to store an address request message and prefix information sent by the client.
选择策略模块提供根据客户端的位置进行前缀的选择、 根据所述地 址请求消息中的信息进行前缀信息的选择或根据中继代理的当前配置 进行前缀信息的选择。  The selection policy module provides for selection of a prefix based on the location of the client, selection of prefix information based on information in the address request message, or selection of prefix information based on the current configuration of the relay agent.
服务器具体包括 Relay- reply消息模块和地址分配策略模块; 其中, Relay-reply消息模块用于存放与所述前缀信息对应的地址; 地址分配策略模块^ ^据获取的前缀信息进行地址的分配或根据前 缀信息和地址请求消息中的信息进行地址的分配。 该系统中的客户端为 DHCPv6客户端,所述中继代理为 DHCPv6中 继代理, 所述服务器为 DHCPv6服务器。 The server includes a relay-reply message module and an address allocation policy module. The relay-reply message module is configured to store an address corresponding to the prefix information. The address allocation policy module performs address allocation according to the obtained prefix information. The information in the prefix information and the address request message is used for address allocation. The client in the system is a DHCPv6 client, the relay agent is a DHCPv6 relay agent, and the server is a DHCPv6 server.
以上所述的实施例, 只是本发明较优选的具体实施方式的一种, 本 领域的技术人员在本发明技术方案范围内进行的通常变化和替换都应 包含在本发明的保护范围内。  The above-mentioned embodiments are only one of the more preferred embodiments of the present invention, and all the usual changes and substitutions made by those skilled in the art within the scope of the present invention should be included in the scope of the present invention.

Claims

权利要求书 Claim
1、 一种实现地址分配的方法, 应用于包括中继代理、 客户端和服 务器的系统; 其特征在于, 所述中继代理在收到来自所述客户端的地址 请求消息时, 所述方法包括:  A method for implementing address allocation, applied to a system including a relay agent, a client, and a server; wherein, when the relay agent receives an address request message from the client, the method includes :
确定前缀或前缀标识符, 并把所述前綴或前綴标识符发送给所述服 务器;  Determining a prefix or prefix identifier and transmitting the prefix or prefix identifier to the server;
接收与所述前缀或前缀标识符对应的地址, 所述地址为所述服务器 为所述前缀或前缀标识符分配的地址;  Receiving an address corresponding to the prefix or prefix identifier, where the address is an address allocated by the server for the prefix or prefix identifier;
将所述地址转发给所述客户端。  Forwarding the address to the client.
2、 如权利要求 1 所述的方法, 其特征在于, 所述中继代理根据选 择策略确定所述前缀或前缀标识符。  2. The method of claim 1 wherein the relay agent determines the prefix or prefix identifier based on a selection policy.
3、 如权利要求 2 所述的方法, 其特征在于, 所述选择策略至少包 括以下策略之一:  3. The method of claim 2, wherein the selection strategy comprises at least one of the following strategies:
根据所述客户端的位置进行前缀或前缀标识符的选择;  Selecting a prefix or a prefix identifier according to the location of the client;
根据所述地址请求消息中的信息进行前缀或前缀标识符的选择; 根据所述中继代理的当前配置进行前缀或前缀标识符的选择。  Selecting a prefix or a prefix identifier according to the information in the address request message; selecting a prefix or a prefix identifier according to the current configuration of the relay agent.
4、 如权利要求 1 所述的方法, 其特征在于, 所述中继代理把所述 前缀或前綴标识符发送给所述服务器的步骤具体包括:  The method of claim 1, wherein the step of the relay agent sending the prefix or the prefix identifier to the server comprises:
在 Relay-forward 消息中携带所述前缀或前缀标识符发送给所述服 务器。  The prefix or prefix identifier is carried in the relay-forward message and sent to the server.
5、 如权利要求 4所述的方法, 其特征在于, 所述在 Relay-forward 消息中携带所述前缀或前缀标识符包括:  The method of claim 4, wherein the carrying the prefix or prefix identifier in the relay-forward message includes:
在所述 Relay-forward消息中插入前缀选择选项,并把所述前缀或前 綴标识符存入所述前綴选择选项中。 A prefix selection option is inserted in the Relay-forward message, and the prefix or prefix identifier is stored in the prefix selection option.
6、 如权利要求 4所述的方法, 其特征在于, 所述在 Relay-forward 消息中携带所述前缀或前缀标识符包括: The method of claim 4, wherein the carrying the prefix or prefix identifier in the Relay-forward message includes:
把所述前綴或前缀标识符存入所述 Relay-forward 消息的 Link-address字段中。  The prefix or prefix identifier is stored in the Link-address field of the Relay-forward message.
7、 如权利要求 1 所述的方法, 其特征在于, 所述地址为所述服务 器才 据地址分配策略为所述前缀或前缀标识符分配的地址。  7. The method of claim 1, wherein the address is an address assigned by the server to the prefix or prefix identifier according to an address assignment policy.
8、 如权利要求 7 所述的方法, 其特征在于, 所述地址分配策略至 少包括以下策略之一:  8. The method of claim 7, wherein the address allocation policy comprises at least one of the following strategies:
根据所述前缀或前缀标识符进行地址的分配;  Assigning an address according to the prefix or prefix identifier;
根据所述前缀或前缀标识符和所述地址请求消息中的信息进行地 址的分配。  The assignment of the address is performed based on the prefix or prefix identifier and the information in the address request message.
9、 如权利要求 1或 8所述的方法, 其特征在于, 所述地址请求消 息中的信息至少包括以下之一:  The method according to claim 1 or 8, wherein the information in the address request message includes at least one of the following:
客户端的硬件地址、 网络接入识別符(NAI )和客户端标识符。  The client's hardware address, network access identifier (NAI), and client identifier.
10、 如权利要求 8 所述的方法, 其特征在于, 所述服务器在 Relay-reply消息中携带包含为所述前缀或前缀标识符分配的地址的应答 消息发送给所述中继代理。  10. The method according to claim 8, wherein the server sends a response message containing an address assigned to the prefix or prefix identifier to the relay agent in a relay-reply message.
11、 如权利要求 10 所述的方法, 其特征在于, 所述中继代理将所 述地址转发给所述客户端包括:  The method of claim 10, wherein the relay agent forwarding the address to the client comprises:
所述中继代理从所述 Relay-reply消息中提取出所述应答消息,并将 所述应答消息发送给所述客户端。  The relay agent extracts the response message from the relay-reply message, and sends the response message to the client.
12、 一种实现地址分配的系统, 其特征在于, 包括:  12. A system for implementing address allocation, comprising:
客户端, 用于发送地址请求消息;  a client, configured to send an address request message;
中继代理, 用于在收到来自所述客户端的地址请求消息时, 确定前 缀或前缀标识符, 并发送所述前缀或前缀标识符; 接收所述前缀或前缀 标识符对应的地址并转发所述地址至所述客户端; a relay agent, configured to determine a prefix or a prefix identifier when receiving an address request message from the client, and send the prefix or prefix identifier; receive the prefix or prefix An address corresponding to the identifier and forwarding the address to the client;
服务器, 用于在收到所述中继代理发送的前缀或前缀标识符时, 确 定所述前綴或前缀标识符对应的地址, 并将所述前缀或前缀标识符对应 的地址发送给所述中继代理。  a server, configured to determine, according to the prefix or the prefix identifier sent by the relay agent, an address corresponding to the prefix or the prefix identifier, and send the address corresponding to the prefix or the prefix identifier to the middle Following the agent.
13、 如权利要求 12 所述的系统, 其特征在于, 所述中继代理用于 根据选择策略确定所述前缀或前缀标识符。  13. The system of claim 12, wherein the relay agent is configured to determine the prefix or prefix identifier based on a selection policy.
14、 如权利要求 12 所述的系统, 其特征在于, 所述中继代理用于 把所述前缀或前缀标识符携带在 Reky-forward 消息中发送给所述服务 器。  The system according to claim 12, wherein the relay agent is configured to carry the prefix or prefix identifier in a Reky-forward message and send the message to the server.
15、 如权利要求 12 所述的系统, 其特征在于, 所述服务器用于根 据地址分配策略给所述客户端分配与所述前缀或前缀标识符对应的地 址。  The system according to claim 12, wherein the server is configured to assign the client an address corresponding to the prefix or prefix identifier according to an address allocation policy.
16、 一种实现地址分配的中继代理, 其特征在于, 包括: 第一模块, 用于在收到来自客户端的地址请求消息后确定前缀或前 缀标识符;  A relay agent for implementing address allocation, comprising: a first module, configured to determine a prefix or a prefix identifier after receiving an address request message from a client;
第二模块, 用于将所述前缀或前缀标识符发送给服务器。  The second module is configured to send the prefix or prefix identifier to the server.
17、 如权利要求 16 所述的中继代理, 其特征在于, 所述第一模块 用于根据选择策略确定前缀或前缀标识符。  The relay agent according to claim 16, wherein the first module is configured to determine a prefix or a prefix identifier according to a selection policy.
18、 如权利要求 16 所述的中继代理, 其特征在于, 所述第二模块 用于把所述前缀或前缀标识符携带在 Relay-forward 消息发送给所述服 务器。  The relay agent according to claim 16, wherein the second module is configured to send the prefix or prefix identifier to a server in a Relay-forward message.
19、 一种实现地址分配的服务器, 包括:  19. A server for implementing address allocation, comprising:
第一模块, 用于根据来自中继代理的前缀或前缀标识符确定所述前 缀或前缀标识符对应的地址;  a first module, configured to determine an address corresponding to the prefix or prefix identifier according to a prefix or a prefix identifier from a relay agent;
第二模块, 用于将所述前綴或前缀标识符对应的地址发送给所述中 继代理。 a second module, configured to send an address corresponding to the prefix or the prefix identifier to the middle Following the agent.
20、 如权利要求 19 所述的服务器, 其特征在于, 所述第一模块用 于才艮据地址分配策略确定所述前缀或前缀标识符对应的地址。  The server according to claim 19, wherein the first module is configured to determine an address corresponding to the prefix or prefix identifier according to an address allocation policy.
21、 如权利要求 19 所述的服务器, 其特征在于, 所述第二模块用 于把包含所述前綴或前缀标识符对应的地址的应答消息携带在 Relay-reply消息中发送给所述中继代理。  The server according to claim 19, wherein the second module is configured to carry a response message including an address corresponding to the prefix or the prefix identifier in a Relay-reply message and send the message to the relay. proxy.
PCT/CN2007/001128 2006-07-21 2007-04-09 An address assignment realizing method and the system, the relay agent, the server thereof WO2008011776A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2006101033629A CN101110817B (en) 2006-07-21 2006-07-21 Method and system for address selection
CN200610103362.9 2006-07-21

Publications (1)

Publication Number Publication Date
WO2008011776A1 true WO2008011776A1 (en) 2008-01-31

Family

ID=38981127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/001128 WO2008011776A1 (en) 2006-07-21 2007-04-09 An address assignment realizing method and the system, the relay agent, the server thereof

Country Status (2)

Country Link
CN (1) CN101110817B (en)
WO (1) WO2008011776A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753633B (en) * 2008-12-09 2013-06-05 华为技术有限公司 Method, system and equipment for allocating IPv6 (internet protocol version 6) prefixes
CN101753460B (en) * 2010-01-15 2012-07-11 杭州华三通信技术有限公司 Method and device for processing internet protocol version 6(IPV6) routing prefix
CN102413033B (en) 2010-09-26 2015-07-08 华为技术有限公司 Method, device and system for realizing route aggregation
CN102892108B (en) * 2011-07-18 2017-04-26 中兴通讯股份有限公司 Multiple address prefix distributing method and system
CN103379180B (en) * 2012-04-18 2019-04-23 中兴通讯股份有限公司 Station address distribution method and device
CN104883408A (en) * 2014-02-28 2015-09-02 中兴通讯股份有限公司 Method of processing NAT64 prefix, network equipment and DHCPv server
CN114448933A (en) * 2020-10-20 2022-05-06 华为技术有限公司 IP address allocation method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543143A (en) * 2003-04-29 2004-11-03 ���ǵ�����ʽ���� Wireless local area network system capable of supporting host mobility and an operation method therefor
US20050105489A1 (en) * 2003-11-13 2005-05-19 Jee Jung H. Network apparatus and packet routing method for ubiquitous computing
US20060140164A1 (en) * 2004-12-29 2006-06-29 Cisco Technology, Inc. Methods and apparatus for using DHCP for home address management of nodes attached to an edge device and for performing mobility and address management as a proxy home agent

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543143A (en) * 2003-04-29 2004-11-03 ���ǵ�����ʽ���� Wireless local area network system capable of supporting host mobility and an operation method therefor
US20050105489A1 (en) * 2003-11-13 2005-05-19 Jee Jung H. Network apparatus and packet routing method for ubiquitous computing
US20060140164A1 (en) * 2004-12-29 2006-06-29 Cisco Technology, Inc. Methods and apparatus for using DHCP for home address management of nodes attached to an edge device and for performing mobility and address management as a proxy home agent

Also Published As

Publication number Publication date
CN101110817A (en) 2008-01-23
CN101110817B (en) 2012-04-25

Similar Documents

Publication Publication Date Title
EP2364543B1 (en) Broadband network access
US9258699B2 (en) Method for route transmission based on single IPv6 address prefix, and wireless device
EP2321936B1 (en) Apparatus and method for dynamic host configuration protocol version 6 extensions for configuring hosts with multiple interfaces
US20120317637A1 (en) Communication between private network and public network
WO2011147353A1 (en) Method and apparatus for message transmission
WO2008011776A1 (en) An address assignment realizing method and the system, the relay agent, the server thereof
WO2010108431A1 (en) Method for realizing ipv6 host visting ipv4 host, method for obtaining ipv6 address prefix and translation device
WO2010069181A1 (en) Method and system for configuring ipv6 address
JP5816293B2 (en) Private device identification in the public network
EP2442521B1 (en) Method for obtaining ip address of dynamic host configuration protocol version 6 server, dynamic host configuration protocol version 6 server and dynamic host configuration protocol version 6 communication system
WO2003024056A2 (en) Addressing scheme for wireless mobile clients
WO2013071765A1 (en) Method, device and system for distributing ip address for user terminal
Thaler Evolution of the IP Model
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
WO2015127750A1 (en) Ipv6 address processing method and device, and dhcpv6 relay apparatus
US20080095154A1 (en) IPv6 ADDRESS CONFIGURATION METHOD IN WIRELESS MOBILE NETOWRK AND APPARATUS THEREFOR
WO2022022530A1 (en) Method for determining public network address of mptcp server and communication device
WO2011157141A2 (en) Internet protocol version 6 address allocation method and apparatus
JP3646936B2 (en) IPv4 management method and management apparatus in IPv6 wireless LAN environment
US9667592B2 (en) Efficient utilization of internet protocol addresses
JP2010062757A (en) Dns proxy apparatus and dns relay method
CN104935677B (en) A kind of NAT64 resource acquiring method and acquisition/distributor
JP3864397B2 (en) User edge router, gateway router, multihoming communication system, multihoming communication method, and multihoming communication program
WO2010078809A1 (en) Method, gateway, server and system for obtaining ipv6 address information
JP2005064570A (en) Network system and internetwork apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07720701

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

122 Ep: pct application non-entry in european phase

Ref document number: 07720701

Country of ref document: EP

Kind code of ref document: A1