WO2014079235A1 - 一种释放地址的方法、用户节点及远程接入服务器 - Google Patents

一种释放地址的方法、用户节点及远程接入服务器 Download PDF

Info

Publication number
WO2014079235A1
WO2014079235A1 PCT/CN2013/081422 CN2013081422W WO2014079235A1 WO 2014079235 A1 WO2014079235 A1 WO 2014079235A1 CN 2013081422 W CN2013081422 W CN 2013081422W WO 2014079235 A1 WO2014079235 A1 WO 2014079235A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
released
ipv6 address
user node
message
Prior art date
Application number
PCT/CN2013/081422
Other languages
English (en)
French (fr)
Inventor
赵申
翟青涌
王洪涛
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US14/646,032 priority Critical patent/US10050932B2/en
Priority to EP13856914.0A priority patent/EP2911367B1/en
Publication of WO2014079235A1 publication Critical patent/WO2014079235A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • 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
    • 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/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use

Definitions

  • the present invention relates to a technique for releasing an address, and more particularly to a method for releasing an address, a user node, and a remote access server.
  • IPv6 The design concept of the IPv6 basic protocol is that the V6 network can be a plug-and-play access network, but for some operators, it is necessary to use a stateful (ie, dynamic address allocation) form to manage addresses, so IPv6 is supported.
  • Dynamic Host Configuration Protocol IPv6 has emerged as a result, resulting in a non-volatile address in the Neighbor Discovery Protocol (NDP) protocol in the existing IPv6 remote broadband access network topology.
  • NDP Neighbor Discovery Protocol
  • SLAAC Stateless Address Auto configuration
  • IPv6 access user types offered by popular Broadband Remote Access Server (BRAS) routers are: IPHOST (Static Private Line) users, DCHPv6 users, and SLAAC users.
  • IPHOST Static Private Line
  • DCHPv6 Dynamic Private Line
  • SLAAC Session Advanced Technology Attachment
  • the DHCPv6 user and the SLAAC user can be divided into the Ethernet link link user and the point-to-point protocol over Ethernet (PPPoE) link user on the Ethernet.
  • PPPoE point-to-point protocol over Ethernet
  • the SLAAC function of the NDP protocol or the DHCPv6 protocol address allocation function is often used to assign a prefix to the user, and the user is triggered to generate an IPv6 address according to the prefix.
  • the address generated by the new user will be Duplicate Address Detection (DAD) in the local link range, that is, multicast DAD packets in the local link range (the format of the DAD packet is shown in Figure 1). , waiting for a reply.
  • DAD Duplicate Address Detection
  • the NA message replied by other nodes in the range proves that the address has no conflict in the local link range, that is, the new user can use the address normally.
  • the new user In the process of generating an address by a new user based on the prefix assigned by the BRAS router device, the new user supports one prefix to generate multiple addresses at a time and also supports generating one or more addresses multiple times, and also supports manually configuring one or more addresses.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method and device for releasing an address, which can avoid waste of address resources and incorrect charging for users.
  • a method for releasing an address including:
  • the user node When the user node releases the Internet Protocol version 6 IPv6 address, the user node notifies the released IPv6 address to the node in the local link range.
  • the step of notifying the released IPv6 address to the node in the local link range includes: sending, by the user node, a neighbor advertisement NA message to the node in the local link range, and carrying the released IPv6 address in The destination address field of the NA packet indicates, by the code CODE field of the NA packet, to the node in the local link range that the IPv6 address in the destination address field is the released IPv6 address.
  • the method further includes:
  • the nodes in the local link range include a broadband remote access server BRAS;
  • the node in the local link range includes a neighbor user node of the user node; the neighbor user node of the user node receives the NA message, and determines the destination address field according to the CODE field of the NA message.
  • the IPv6 address is the IPv6 address released by the user node, if the IPv6 address released by the user node is set to a duplicate address, the IPv6 address released by the user node is reset to a usable address.
  • the method further includes:
  • the BRAS After determining that the IPv6 address in the destination address field is the IPv6 address released by the user node, the BRAS sets the IPv6 address released by the user node as a usable address.
  • a user node includes: an address release unit and a release notification unit, where:
  • the address release unit is configured to: release an Internet Protocol version 6 IPv6 address;
  • the release notification unit is configured to: notify the node within the local link range of the released IPv6 address when the address release unit releases the IPv6 address.
  • the release notification unit is configured to notify the released intranet to the nodes in the local link range as follows:
  • a remote access server comprising: a receiving unit, a determining unit, and a charging unit, where: the receiving unit is configured to: receive a neighbor advertisement NA message;
  • the determining unit is configured to: after the receiving unit receives the NA message, determine, according to the code CODE field of the NA ⁇ text, whether the Internet Protocol version 6 IPv6 address in the destination address field is released by the user node When the IPv6 address in the segment is the IPv6 address released by the user node, the charging operation of the user node that sends the NA message is stopped.
  • the remote access server further includes an address maintenance unit, where:
  • the address maintenance unit is configured to: determine, at the determining unit, a destination of the NA message When the IPv6 address in the address field is the IPv6 address released by the user node, the IPv6 address released by the user node is set to be an usable address.
  • a user node comprising: a receiving unit, a determining unit, and an address generating unit, where: the receiving unit is configured to: receive a neighbor advertisement NA message;
  • the determining unit is configured to: after the receiving unit receives the NA message, determine, according to the code CODE field of the NA ⁇ text, whether the Internet Protocol version 6 IPv6 address in the destination address field is released by the user node IPv6 address;
  • the address generating unit is configured to: when the determining unit determines that the IPv6 address in the destination address field of the NA packet is an IPv6 address released by the user node, and the IPv6 address that has been released by the user node When the address is set to a duplicate address, the IPv6 address released by the user node is reset to be an usable address.
  • the released IPv6 address is notified to the node in the local link range, the charging accuracy is improved, the user experience is improved, and the local link is improved.
  • the function of reclaiming address resources is used in the scope, and the address resources released by the user can be reused in the network.
  • FIG. 1 is a schematic diagram of a package format of a DAD packet of the related art
  • FIG. 2 is a schematic diagram of a package format of a NA message of the related art
  • FIG. 5 is a structural diagram of a user node according to the embodiment.
  • FIG. 6 is a block diagram of a remote access server of the present embodiment
  • FIG. 7 is a block diagram of another user node of the present embodiment.
  • Preferred embodiment of the invention in this embodiment, it is considered that when a user (user node) releases its own generated IPv6 address or manually manually configured address, the released address is not advertised within the local link range. In this way, the BRAS cannot know that the user has released the address being used and will continue to charge the user. Other users cannot know that the address that originally conflicted with this user can be DAD detected and can be re-enabled.
  • the BRAS device After the user releases the address, the BRAS device still charges the user, causing the problem of the erroneous charging, and the user who generates the address does not try to use the address, which causes a waste of address resources.
  • the user node when the user node releases the address, Sending a neighbor advertisement message to each node in the local link range, including the BRAS and other neighbor user nodes.
  • the CODE field indicates the destination address field to the node in the local link range.
  • the IPv6 address is the released IPv6 address, and the destination address field carries the released IPv6 address.
  • the BRAS When the BRAS receives an NA message carrying an IPv6 address and is multicast by the node, if the CODE field is 1, it indicates that a neighboring user node wants to release the IPv6 address in the destination address field of the NA packet. The BRAS needs to stop the charging operation for this address, and the like.
  • the other user node or the BRAS When the other user node or the BRAS receives an NA message with the destination address field carrying the IPv6 address and being multicast by the node, if the CODE field is 1, it indicates that the neighbor user node has released the destination address field in the NA message. For an IPv6 address, other neighbor user nodes or BRASs can use this address to reset the address to a usable address.
  • the BRAS device or other neighbor nodes do the same before using the address released by a user node.
  • DAD detection because the user in the local link has released this address, DAD detection may succeed (ie, no conflicting address exists). This address can be reapplied to other user nodes or BRAS devices. If the unsuccessful situation occurs during the DAD detection, it indicates that the address still has a conflict condition in the link and cannot be reapplied to other users or BRAS devices.
  • FIG. 3 is a schematic diagram of network topology networking
  • FIG. 4 is a flowchart of a method for releasing an address. Referring to FIG. 3 and FIG. 4, the method for releasing an address in this embodiment includes:
  • SS1 When the BRAS assigns the user 1 prefix 100: : /64, User 1 generates an IPv6 address of 100: : 1/128, assuming that the BRAS address is 100: : 1234/128 does not conflict with User 1, at this time User 2 is not on the link, and the address generated by user 1 does not have an address conflicting with it in the local link range.
  • the DAD detection succeeds that user 1 normally uses address 100: : 1/128;
  • BRAS When User 2 subsequently requests a prefix from BRAS, BRAS also assigns User 2 a prefix of 100: : /64. At this time, User 2 generates the address based on the prefix as 100: : 1/128, User 2 Send DAD ⁇ to the local link-wide multicast to detect whether user 2 can use the address 100::1/128. Since user 1 is using the address, user 2 sets 100: : 1/128 as the duplicate address;
  • the CPE device is a normal switching device, the BRAS device and the user 1 can directly receive it.
  • the user 1 finds that the content of the destination address field in the DAD packet is the same as the address of the own node, and then replies to the NA packet (the normal NA packet with the CODE field being 0.
  • the user 2 is informed that the generated address has been used by the node within the local link range.
  • user 2 sets the address of 100: : 1/128 as a duplicate address, and does not use this address for network communication;
  • the BRAS needs to enable the DAD proxy function, and the BRAS proxy user 1 repeats the address detection.
  • the user 1 cannot receive the DAD message sent by the user 2, and the BRAS can receive the DAD message of the user 2, the BRAS finds that the DAD proxy function is enabled, and knows that the user 1 has used the address, The BRAS sends the NA 4 message to the user 2 to inform them that the generated address has been used by the node within the local link range.
  • User 2 sets the address of 100: : 1/128 as a duplicate address, and does not use this address for network communication.
  • SS3 When user 1 releases the address, it needs to send an NA packet.
  • the destination address field of the NA packet is the released IPV6 address.
  • the CODE field of this packet is filled with 1;
  • SS4 When the BRAS device receives this NA message, it indicates that User 1 has released the address 100: : 1/128. At this time, the BRAS stops charging for User 1's 100: : 1/128 address;
  • the CPE is a normal switching device
  • the user 2 can directly receive the NA message.
  • the CPE is a special routing device
  • the BRAS needs to enable the DAD proxy function.
  • the BRAS receives the NA packet
  • the BRAS needs to perform local processing. Forwarding in the link range is forwarded to other user nodes. At this time, user 2 can still receive such NA packets.
  • SS5 When user 2 receives the NA message, it knows that the 100::1/128 address has been released in the local link range, and the previously generated unusable 100: : 1/128 address can be re-executed. DAD detection, reset the address to a usable address, perform DAD detection, and use this address to access the network after successful detection;
  • the present embodiment enables the BRAS to effectively manage IPv6 addresses and proposes a solution to the problem of release and collection of addresses generated based on prefixes.
  • the address release unit 501 is configured to: release the Internet Protocol version 6 IPv6 address;
  • the embodiment further provides a remote access server, including: a receiving unit 601, a determining unit 602, and a charging unit 603, where: The receiving unit 601 is configured to: receive a neighbor advertisement NA message;
  • the determining unit 702 is configured to: after receiving the NA message, the receiving unit 701 is an IPv6 address released by the user node according to the NA report;

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种释放地址的方法、用户节点及远程接入服务器,包括:用户节点在释放互联网协议版本6IPv6地址时,将释放的IPv6地址通知给本地链路范围内的节点。上述技术方案中用户节点在释放通过前缀生成的IPv6地址时,将释放的IPv6地址通知给本地链路范围内的节点,提高了计费的准确性,改善了用户感受,并且,在本地链路范围内起到了回收地址资源的功能,可以将用户释放的地址资源重新用于网络中。

Description

一种释放地址的方法、 用户节点及远程接入服务器
技术领域
本发明涉及释放地址的技术, 尤其涉及一种释放地址的方法、 用户节点 及远程接入服务器。
背景技术
随着宽带技术的迅速发展以及宽带用户的迅速增长, 互联网协议版本 4 ( IPv4, Internet Protocol Version 4 )地址空间的危机由来已久, 这是导致互 联网协议(IP, Internet Protocol )版本升级的主要动力。 中国下一代互联网 示范工程(CNGI 项目)是国家级的战略项目, 该项目的主要目标是以互联 网协议版本 6 ( IPv6, Internet Protocol Version 6 )为核心, 搭建下一代互联 网的试验平台。此项目的启动标志了我国的 IPv6进入了实质性发展阶段。各 级运营商也正在加紧步伐部署 V6网络, V6宽带接入网络已逐步进入试商用 阶段。
IPv6基础协议的设计理念是希望 V6网络能成为一个即插即用的接入网 络, 但是对于部分运营商而言, 需要釆用有状态 (即动态地址分配)形式来 管理地址, 所以支持 IPv6 的动态主机配置协议 ( DHCPv6 , Dynamic Host Configuration Protocol for IPv6 )应运而生, 导致在现有 IPv6远程宽带接入网 络拓朴环境中, 邻居发现协议(NDP, Neighbor Discovery Protocol )协议中 的无^ 态地址自动配置 ( SLAAC, Stateless Address Auto configuration )功能 与 DHCPv6协议地址分配功能共存。
现今, 流行的宽带远程接入服务器(BRAS, Broadband Remote Access Server )路由器设备提供的典型的 IPv6接入用户类型有: IPHOST(静态专线) 用户、 DCHPv6用户和 SLAAC用户。 对于链路方式的不同, DHCPv6用户 与 SLAAC用户可以分为以太链网链路用户和以太网上的点对点协议( PPPoE, Point-to-point Protocol Over Ethernet )链路用户。
特别在 IPv6组网中, 多宿主主机变成日益重要的应用场景。一个主机除 了一个有线的网络连接(例如以太网),还可能有一个或者更多的无线连接, 例如, 蓝牙和 802.11协议等。 一个主机除了与物理链路连接, 也可能与虚拟 网络或者隧道网络连接。 例如, 一个主机除了直连到公共因特网, 还可能连 接到一个隧道私有共有网络。对于 IPv6过渡场景很可能会增加一条隧道链路, 例如, 主机们可能与 6to4 隧道(RFC3056 )或者一个配置隧道(RFC2893 ) 网络相连接。
而在 BRAS 路由器设备的实际应用中, 经常使用的是 NDP 协议的 SLAAC功能或者 DHCPv6协议地址分配功能给用户分配前缀, 而触发用户 根据前缀生成 IPv6地址。新用户生成的地址将会在本地链路范围内进行重复 地址检测 (DAD, Duplicate Address Detection ) , 即在本地链路范围内组播 DAD报文(图 1所示为 DAD报文的封装格式) , 等待是否有回复。 当本地 链路上已经有此地址在线时, 则使用此地址的用户将回复邻居通告 (NA, Neighbor Advertise ) 4艮文给后生成此地址的新用户 (图 2所示为 ΝΑ ·^艮文的 封装格式) , 告知其此地址不能被使用, 因为此地址已经在本地链路范围内 有节点正在使用。 此时发出 DAD报文并收到邻居节点回复的 NA报文的新 用户则需要将自身生成的地址打上重复标记, 等待人工重新手动配置。 如果 新用户进行了规定次数(注: DAD检测默认次数根据设备差异而各有不同, 必须大于一次, 一般检测三次, 每次间隔时间为一秒) 的 DAD检测后, 仍 然没有收到本地链路范围内其他节点回复的 NA报文, 则证明此地址在本地 链路范围内无冲突, 即新用户可以正常使用此地址。 在新用户根据 BRAS路 由器设备分配的前缀生成地址的过程中, 新用户支持一个前缀一次生成多个 地址也支持多次生成一个或者多个地址, 同样支持手动配置一个或者多个地 址。
如上描述的环境,在 BRAS路由器设备的 IPv6用户接入时属于普遍现象, 特别是在前缀共享的应用场景中。 而前缀共享的场景可以描述为 BRAS路由 器设备给多个用户分配同一个前缀的应用场景。 这样的协议内容给 BRAS路 由器设备的用户管理带来了很大的考验和难度。 当用户生成一个或者多个地 址时, 在后生成地址的用户收到对于该地址的 NA ^艮文后, 即使正在使用该 地址的用户释放地址后, 后生成地址的用户也不会对该地址再次进行 DAD 检测并启动该地址, 导致地址资源的浪费; 此外, 在用户释放地址后, BRAS 路由器设备仍然会对用户进行计费, 导致对用户的错误计费, 增加了用户的 不合理支出。 发明内容
本发明实施例要解决的技术问题是提供一种释放地址的方法及装置, 能 够避免地址资源的浪费及对用户的错误计费。
为解决上述技术问题, 釆用如下技术方案: 一种释放地址的方法, 包括:
用户节点在释放互联网协议版本 6IPv6地址时,将释放的 IPv6地址通知 给本地链路范围内的节点。 可选地, 将释放的 IPv6地址通知给本地链路范围内的节点的步骤包括: 所述用户节点向本地链路范围内的节点发送邻居通告 NA报文, 将所述 释放的 IPv6地址携带在所述 NA报文的目的地址字段,通过所述 NA报文的 代码 CODE字段向本地链路范围内的节点指示所述目的地址字段中的 IPv6 地址为释放的 IPv6地址。 可选地, 该方法还包括:
所述本地链路范围内的节点包括宽带远程接入服务器 BRAS;
所述 BRAS在接收到所述 NA报文,根据所述 NA报文的 CODE字段判 断目的地址字段中的 IPv6地址为所述用户节点释放的 IPv6地址后, 停止对 所述用户节点的计费操作。 可选地, 该方法还包括:
所述本地链路范围内的节点包括所述用户节点的邻居用户节点; 所述用户节点的邻居用户节点在接收到所述 NA报文, 根据所述 NA报 文的 CODE 字段判断目的地址字段中的 IPv6 地址为所述用户节点释放的 IPv6地址后, 在已将所述用户节点释放的 IPv6地址设置为重复地址的情况 下, 重设所述用户节点释放的 IPv6地址为能够使用的地址。 可选地, 该方法还包括:
所述 BRAS在判断目的地址字段中的 IPv6地址为所述用户节点释放的 IPv6地址后, 设置所述用户节点释放的 IPv6地址为能够使用的地址。
一种用户节点, 包括: 地址释放单元和释放通知单元, 其中:
所述地址释放单元设置成: 释放互联网协议版本 6IPv6地址;
所述释放通知单元设置成: 在所述地址释放单元释放 IPv6地址时, 将释 放的 IPv6地址通知给本地链路范围内的节点。 可选地,所述释放通知单元设置成按照如下方式将释放的 IPv6地址通知 给本地链路范围内的节点:
向本地链路范围内的节点发送邻居通告 NA报文,将所述释放的 IPv6地 址携带在所述 NA报文的目的地址字段, 通过所述 NA报文的代码 CODE字 段向本地链路范围内的节点指示所述目的地址字段中的 IPv6 地址为释放的 IPv6地址。
一种远程接入服务器, 包括: 接收单元、 判断单元和计费单元, 其中: 所述接收单元设置成: 接收邻居通告 NA报文;
所述判断单元设置成: 在所述接收单元接收到所述 NA报文后, 根据所 述 NA ^艮文的代码 CODE字段判断目的地址字段中的互联网协议版本 6IPv6 地址是否为所述用户节点释放的 IPv6地址; 段中的 IPv6地址为所述用户节点释放的 IPv6地址时, 停止对发送所述 NA 报文的用户节点的计费操作。 可选地, 该远程接入服务器还包括地址维护单元, 其中:
所述地址维护单元设置成: 在所述判断单元判断所述 NA报文的目的地 址字段中的 IPv6地址为所述用户节点释放的 IPv6地址时, 设置所述用户节 点释放的 IPv6地址为能够使用的地址。 一种用户节点, 包括: 接收单元、 判断单元和地址生成单元, 其中: 所述接收单元设置成: 接收邻居通告 NA报文;
所述判断单元设置成: 在所述接收单元接收到所述 NA报文后, 根据所 述 NA ^艮文的代码 CODE字段判断目的地址字段中的互联网协议版本 6IPv6 地址是否为所述用户节点释放的 IPv6地址;
所述地址生成单元设置成: 在所述判断单元判断所述 NA报文的目的地 址字段中的 IPv6地址为所述用户节点释放的 IPv6地址时, 并在已将所述用 户节点释放的 IPv6地址设置为重复地址的情况下,重设所述用户节点释放的 IPv6地址为能够使用的地址。
上述技术方案中用户节点在释放通过前缀生成的 IPv6地址时,将释放的 IPv6地址通知给本地链路范围内的节点, 提高了计费的准确性, 改善了用户 感受, 并且, 在本地链路范围内起到了回收地址资源的功能, 可以将用户释 放的地址资源重新用于网络中。
附图概述
图 1是相关技术的 DAD报文的封装格式示意图;
图 2是相关技术的 NA报文的封装格式示意图;
图 3是本实施方式应用的网络的拓朴组网示意图;
图 4是本实施方式的释放地址的方法的流程图;
图 5是本实施方式的一种用户节点的架构图;
图 6是本实施方式的远程接入服务器的架构图;
图 7是本实施方式的另一种用户节点的架构图。
本发明的较佳实施方式 本实施方式中在考虑到当有用户 (用户节点)释放了自己生成的 IPv6 地址或者人工手动配置的地址时,不会在本地链路范围内通告其释放的地址。 这样 BRAS无法知晓用户已经释放了正在使用地址而会继续为此用户计费, 其他用户也无法不知晓原先与此用户冲突的地址可以进行 DAD检测并可以 重新启用。
针对 BRAS设备在用户释放地址后仍然为用户计费, 造成误计费的问题 以及后生成地址的用户不会尝试使用该地址, 造成地址资源浪费的问题, 本 实施方式中用户节点在释放地址时发送邻居通告报文给本地链路范围内的各 节点, 包括 BRAS和其他邻居用户节点, 当用户节点主动释放某一 IPv6地址 字段,通过 CODE字段向本地链路范围内的节点指示目的地址字段中的 IPv6 地址为释放的 IPv6地址, 目的地址字段携带释放的 IPv6地址; 收到 CODE 字段被扩展的 NA报文后, BRAS对上述用户执行相应的停止计费; 其他存
1 时, 表示发送的邻居通告报文是向本地链路范围内的各个节点指示报文中 的目的地址字段中的 IPv6地址是释放的地址。
当 BRAS收到一个目的地址字段携带 IPv6地址、并由节点组播的 NA报 文时, 如果 CODE字段为 1 , 则表示某邻居用户节点要释放 NA报文中的目 的地址字段内的 IPv6地址, BRAS需要停止针对此地址的计费操作等。
当其他用户节点或者 BRAS收到一个目的地址字段携带 IPv6地址、并由 节点组播的 NA报文时, 如果 CODE字段为 1 , 则表示有邻居用户节点释放 了 NA报文中的目的地址字段内的 IPv6 地址, 则其他邻居用户节点或者 BRAS可以使用此地址, 将该地址重设为能够使用的地址。
BRAS设备或其他邻居节点在使用某用户节点释放的地址前, 同样进行
DAD检测, 由于本地链路中的用户已经释放了此地址, 则 DAD检测有可能 会成功 (即无冲突地址存在) 。 此地址可以重新应用于其他用户节点或者 BRAS设备。 如果在进行 DAD检测时, 还出现不成功的情况, 则表示此地 址在链路中还是存在冲突情况, 不能重新应用于其他用户或者 BRAS设备。 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。
图 3为网络拓朴组网示意图, 图 4为释放地址的方法的流程图, 请参考 图 3和图 4, 本实施方式的释放地址的方法, 包括:
SS1 : 当 BRAS分配用户 1前缀 100: : /64时, 用户 1生成一个 IPv6 地址为 100: : 1/128, 此时假设 BRAS的地址为 100: : 1234/128不与用户 1冲突, 此时用户 2未在链路上, 则用户 1生成的地址在本地链路范围内不 存在与其冲突的地址,则 DAD检测成功用户 1正常使用地址 100: : 1/128;
SS2: 当用户 2后续向 BRAS请求前缀时, BRAS同样也给用户 2分配 了 100: : /64的前缀, 此时用户 2才艮据前缀生成的地址也为 100: : 1/128, 用户 2向本地链路范围内组播发送 DAD ^艮文,检测用户 2是否可以使用 100:: 1/128这个地址, 由于用户 1在使用该地址, 用户 2设置 100: : 1/128为重 复地址;
如果 CPE设备为普通交换设备,则 BRAS设备与用户 1都可以直接收到
DAD报文。 用户 1收到此 DAD报文时, 发现 DAD报文中目的地址字段的 内容与自身节点的地址相同, 则回复 NA报文(CODE字段为 0的普通 NA 报文, 非本文扩展后的 NA报文)给用户 2告知其生成的地址已经在本地链 路范围内有节点正在使用。 此时用户 2将 100: : 1/128这个地址置为重复地 址, 并不使用此地址进行网络通讯;
如果 CPE 为特殊的路由设备(即不容许用户之间进行报文互通) , 则 BRAS需要开启 DAD代理功能, BRAS代理用户 1的重复地址检测。这种情 况下, 用户 1收不到用户 2发送的 DAD报文, 而 BRAS可以收到用户 2的 DAD报文, BRAS查找到开启了 DAD代理功能, 并且知道用户 1已经使用 了此地址, 则 BRAS发送 NA 4艮文给用户 2告知其生成的地址已经在本地链 路范围内有节点正在使用。 此时用户 2将 100: : 1/128这个地址置为重复地 址, 并不使用此地址进行网络通讯。
SS3 : 当用户 1释放地址时, 需要发送 NA报文, NA报文的目的地址字 段为释放的 IPV6地址, 此报文的 CODE字段填写为 1 ; SS4: 当 BRAS设备收到此 NA报文, 即表明用户 1释放了 100: : 1/128 这个地址, 此时 BRAS对用户 1的 100: : 1/128地址停止计费;
如果 CPE是普通的交换设备, 则用户 2可以直接收到此种 NA报文; 如 果 CPE为特殊的路由设备, 则 BRAS需要开启 DAD代理功能, 当 BRAS收 到此 NA报文时,需要进行本地链路范围内的转发,转发到其他用户节点上, 此时用户 2还是可以收到此种 NA报文。
SS5:当用户 2收到 NA报文时,得知本地链路范围内已经将 100:: 1/128 这个地址释放, 其之前生成的未能使用的 100: : 1/128这个地址可以重新进 行 DAD检测, 重设地址为能够使用的地址, 进行 DAD检测, 在检测成功后 使用此地址访问网络;
SS6: BRAS收到用户 2的 DAD报文, 得知用户 2现在使用此地址时, 开始对用户 2的 100: : 1/128这个地址进行计费操作。
从以上的描述中可以看出, 本实施方式能够使得 BRAS有效管理 IPv6 地址, 并且对根据前缀生成的地址的释放和回收的问题提出了解决方案。
如图 5所示,本事方式还提供了一种用户节点, 包括:地址释放单元 501 和释放通知单元 502 , 其中:
地址释放单元 501设置成: 释放互联网协议版本 6IPv6地址;
释放通知单元 502设置成: 在地址释放单元 501释放 IPv6地址时, 将释 放的 IPv6地址通知给本地链路范围内的节点。
释放通知单元 502设置成按照如下方式将释放的 IPv6地址通知给本地链 路范围内的节点: 向本地链路范围内的节点发送邻居通告 NA报文, 将释放 的 IPv6地址携带在 NA报文的目的地址字段, 通过 NA报文的代码 CODE 字段向本地链路范围内的节点指示目的地址字段中的 IPv6 地址为释放的 IPv6地址。
如图 6所示, 本实施方式还提供了一种远程接入服务器, 包括: 接收单 元 601、 判断单元 602和计费单元 603 , 其中: 接收单元 601设置成: 接收邻居通告 NA报文;
判断单元 602设置成: 在接收单元 601接收到 NA报文后, 根据 NA报 为用户节点释放的 IPv6地址;
计费单元 603设置成: 在判断单元 602判断 NA报文的目的地址字段中 的 IPv6地址为用户节点释放的 IPv6地址时, 停止对发送 NA 4艮文的用户节 点的计费操作。
远程接入服务器还包括地址维护单元 604, 其中:
地址维护单元 604设置成: 在判断单元 602判断 NA报文的目的地址字 段中的 IPv6地址为用户节点释放的 IPv6地址时, 设置用户节点释放的 IPv6 地址为能够使用的地址。
如图 7所示,本实施方式提供的另一种用户节点, 包括:接收单元 701、 判断单元 702和地址生成单元 703 , 其中:
接收单元 701设置成: 接收邻居通告 NA报文;
判断单元 702设置成: 在接收单元 701接收到 NA报文后, 根据 NA报 为用户节点释放的 IPv6地址;
地址生成单元 703设置成: 在判断单元 702判断 NA 4艮文的目的地址字 段中的 IPv6地址为用户节点释放的 IPv6地址时, 并在已将用户节点释放的 IPv6地址设置为重复地址的情况下, 重设用户节点释放的 IPv6地址为能够 使用的地址。
显然, 本领域的技术人员应该明白, 上述方法中的全部或部分步骤可通 过程序来指令相关硬件完成, 上述程序可以存储于计算机可读存储介质中, 如只读存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可 以使用一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可 以釆用硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明的各模块或各步骤可以用通用的计算装置来实现, 它们可以集中 在单个的计算装置上, 或者分布在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以将它们存储在存 储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处的顺序 执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者 将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明 不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。
工业实用性
上述技术方案中用户节点在释放通过前缀生成的 IPv6地址时,将释放的 IPv6地址通知给本地链路范围内的节点, 提高了计费的准确性, 改善了用户 感受, 并且, 在本地链路范围内起到了回收地址资源的功能, 可以将用户释 放的地址资源重新用于网络中。 因此本发明具有很强的工业实用性。

Claims

权利要求书
1、 一种释放地址的方法, 包括:
用户节点在释放互联网协议版本 6IPv6地址时,将释放的 IPv6地址通知 给本地链路范围内的节点。
2、 如权利要求 1所述的方法, 其中, 将释放的 IPv6地址通知给本地链 路范围内的节点的步骤包括:
所述用户节点向本地链路范围内的节点发送邻居通告 NA报文, 将所述 释放的 IPv6地址携带在所述 NA报文的目的地址字段,通过所述 NA报文的 代码 CODE字段向本地链路范围内的节点指示所述目的地址字段中的 IPv6 地址为释放的 IPv6地址。
3、 如权利要求 2所述的方法, 该方法还包括:
所述本地链路范围内的节点包括宽带远程接入服务器 BRAS;
所述 BRAS在接收到所述 NA报文,根据所述 NA报文的 CODE字段判 断目的地址字段中的 IPv6地址为所述用户节点释放的 IPv6地址后, 停止对 所述用户节点的计费操作。
4、 如权利要求 2所述的方法, 该方法还包括:
所述本地链路范围内的节点包括所述用户节点的邻居用户节点; 所述用户节点的邻居用户节点在接收到所述 NA报文, 根据所述 NA报 文的 CODE 字段判断目的地址字段中的 IPv6 地址为所述用户节点释放的 IPv6地址后, 在已将所述用户节点释放的 IPv6地址设置为重复地址的情况 下, 重设所述用户节点释放的 IPv6地址为能够使用的地址。
5、 如权利要求 3所述的方法, 该方法还包括:
所述 BRAS在判断目的地址字段中的 IPv6地址为所述用户节点释放的 IPv6地址后, 设置所述用户节点释放的 IPv6地址为能够使用的地址。
6、 一种用户节点, 包括: 地址释放单元和释放通知单元, 其中: 所述地址释放单元设置成: 释放互联网协议版本 6IPv6地址; 所述释放通知单元设置成: 在所述地址释放单元释放 IPv6地址时, 将释 放的 IPv6地址通知给本地链路范围内的节点。
7、 如权利要求 6 所述的用户节点, 其中: 所述释放通知单元设置成按 照如下方式将释放的 IPv6地址通知给本地链路范围内的节点:
向本地链路范围内的节点发送邻居通告 NA报文,将所述释放的 IPv6地 址携带在所述 NA报文的目的地址字段, 通过所述 NA报文的代码 CODE字 段向本地链路范围内的节点指示所述目的地址字段中的 IPv6 地址为释放的 IPv6地址。
8、 一种远程接入服务器, 包括: 接收单元、 判断单元和计费单元, 其 中:
所述接收单元设置成: 接收邻居通告 NA报文;
所述判断单元设置成: 在所述接收单元接收到所述 NA报文后, 根据所 述 NA ^艮文的代码 CODE字段判断目的地址字段中的互联网协议版本 6IPv6 地址是否为所述用户节点释放的 IPv6地址; 段中的 IPv6地址为所述用户节点释放的 IPv6地址时, 停止对发送所述 NA 报文的用户节点的计费操作。
9、 如权利要求 8 所述的远程接入服务器, 该远程接入服务器还包括地 址维护单元, 其中:
所述地址维护单元设置成: 在所述判断单元判断所述 NA报文的目的地 址字段中的 IPv6地址为所述用户节点释放的 IPv6地址时, 设置所述用户节 点释放的 IPv6地址为能够使用的地址。
10、 一种用户节点, 包括: 接收单元、判断单元和地址生成单元,其中: 所述接收单元设置成: 接收邻居通告 NA报文;
所述判断单元设置成: 在所述接收单元接收到所述 NA报文后, 根据所 述 NA ^艮文的代码 CODE字段判断目的地址字段中的互联网协议版本 6IPv6 地址是否为所述用户节点释放的 IPv6地址;
所述地址生成单元设置成: 在所述判断单元判断所述 NA报文的目的地 址字段中的 IPv6地址为所述用户节点释放的 IPv6地址时, 并在已将所述用 户节点释放的 IPv6地址设置为重复地址的情况下,重设所述用户节点释放的 IPv6地址为能够使用的地址。
PCT/CN2013/081422 2012-11-20 2013-08-14 一种释放地址的方法、用户节点及远程接入服务器 WO2014079235A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/646,032 US10050932B2 (en) 2012-11-20 2013-08-14 Method, user node and remote access server for releasing address
EP13856914.0A EP2911367B1 (en) 2012-11-20 2013-08-14 Method and system for releasing addresses

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012104724183A CN103002064A (zh) 2012-11-20 2012-11-20 一种释放地址的方法、用户节点及远程接入服务器
CN201210472418.3 2012-11-20

Publications (1)

Publication Number Publication Date
WO2014079235A1 true WO2014079235A1 (zh) 2014-05-30

Family

ID=47930197

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081422 WO2014079235A1 (zh) 2012-11-20 2013-08-14 一种释放地址的方法、用户节点及远程接入服务器

Country Status (4)

Country Link
US (1) US10050932B2 (zh)
EP (1) EP2911367B1 (zh)
CN (1) CN103002064A (zh)
WO (1) WO2014079235A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002064A (zh) * 2012-11-20 2013-03-27 中兴通讯股份有限公司 一种释放地址的方法、用户节点及远程接入服务器
CN104915312B (zh) * 2015-04-17 2017-12-29 苏州中晟宏芯信息科技有限公司 一种高速串行链路的通道资源回收拓展方法
WO2017180999A2 (en) * 2016-04-15 2017-10-19 Convida Wireless, Llc Enhanced 6lowpan neighbor discovery for supporting mobility and multiple border routers
CN107454199A (zh) * 2016-05-31 2017-12-08 中兴通讯股份有限公司 通信协议接入的方法、装置及***

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005104498A1 (en) * 2004-04-23 2005-11-03 Matsushita Electric Industrial Co., Ltd. Duplicate address detection optimisation
CN101374098A (zh) * 2007-08-22 2009-02-25 华为技术有限公司 一种地址资源管理的方法、装置和终端
CN102752414A (zh) * 2012-07-16 2012-10-24 杭州华三通信技术有限公司 释放IPv6地址的实现方法及设备
CN103002064A (zh) * 2012-11-20 2013-03-27 中兴通讯股份有限公司 一种释放地址的方法、用户节点及远程接入服务器

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100948383B1 (ko) * 2003-03-04 2010-03-22 삼성전자주식회사 Ad hoc 네트워크 환경에서의 효율적인 ip 주소할당 및 중복 검출 방법
US7912032B2 (en) * 2004-12-17 2011-03-22 Motorola, Inc. System and method for communicating within a wireless communication network
CN101064648A (zh) * 2006-04-30 2007-10-31 华为技术有限公司 实现移动IPv6的***及其用户连接建立方法
US20080043665A1 (en) * 2006-08-18 2008-02-21 Jeon Hong-Seok IPv6 NEIGHBOR DISCOVERY SUPPORT METHOD ON WIRELESS COMMUNICATIONS SYSTEM
US20100103876A1 (en) * 2007-03-16 2010-04-29 Panasonic Corporation Mobile terminal and communication management device
US20100039956A1 (en) * 2007-05-21 2010-02-18 Huawei Technologies Co., Ltd. Method and system for performing keep-alive monitoring on subscriber sessions
KR100929914B1 (ko) * 2007-12-18 2009-12-04 한국전자통신연구원 애드 혹 네트워크를 위한 동적 주소 할당 방법
CN101527671A (zh) * 2008-03-03 2009-09-09 华为技术有限公司 一种实现IPv6会话的方法、设备及***
US8495190B2 (en) * 2008-06-25 2013-07-23 International Business Machines Corporation Providing access by a client application program over an internet protocol (IP) network to a server application program instance
CN101465811A (zh) * 2009-01-07 2009-06-24 上海大学 基于分层移动IPv6协议资源预留方法
CN101692674B (zh) * 2009-10-30 2012-10-17 杭州华三通信技术有限公司 双栈接入的方法和设备
US8976807B2 (en) * 2011-06-07 2015-03-10 Cisco Technology, Inc. Dynamically determining hostnames of network devices
US8902896B2 (en) * 2012-04-16 2014-12-02 International Business Machines Corporation Packet switching without look-up table for ethernet switches

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005104498A1 (en) * 2004-04-23 2005-11-03 Matsushita Electric Industrial Co., Ltd. Duplicate address detection optimisation
CN101374098A (zh) * 2007-08-22 2009-02-25 华为技术有限公司 一种地址资源管理的方法、装置和终端
CN102752414A (zh) * 2012-07-16 2012-10-24 杭州华三通信技术有限公司 释放IPv6地址的实现方法及设备
CN103002064A (zh) * 2012-11-20 2013-03-27 中兴通讯股份有限公司 一种释放地址的方法、用户节点及远程接入服务器

Also Published As

Publication number Publication date
EP2911367A1 (en) 2015-08-26
US20150304277A1 (en) 2015-10-22
EP2911367A4 (en) 2015-12-30
US10050932B2 (en) 2018-08-14
CN103002064A (zh) 2013-03-27
EP2911367B1 (en) 2018-08-01

Similar Documents

Publication Publication Date Title
EP2879419B1 (en) Ipv6 address stateless auto-configuration system, data card, and implementation method thereof
WO2013185731A2 (zh) 一种自动管理IPv6地址冲突的方法及***
JP5967173B2 (ja) ネットワーク中継装置、ネットワーク中継装置が有するパケット中継処理部の動作モードを設定する方法、およびコンピュータープログラム
US7760666B2 (en) Method of generating and managing connection identifiers for supporting multicast for each group in IPv6-based wireless network and network interface using the method
CN111385374B (zh) 用于网络分配的方法、网络设备和计算机可读存储介质
WO2009117963A1 (zh) 地址配置方法、装置和***
US20130332586A1 (en) Providing ipv6 connectivity through shared external interfaces on electronic devices
WO2014079235A1 (zh) 一种释放地址的方法、用户节点及远程接入服务器
JP2006129355A (ja) 情報処理装置、データ伝送システム、データ伝送方法、および該データ伝送方法を情報処理装置に対して実行させるためのプログラム
CN113938427A (zh) 通信方法及***、路由节点
US20220094572A1 (en) Gateway selection method, device, and system
US10303502B2 (en) Creating a virtual machine for an IP device using information requested from a lookup service
CN102025797A (zh) 地址前缀处理方法、装置、***及网络设备
JP2004357016A (ja) 特定アドレス使用制限装置
WO2018006684A1 (zh) 报文处理方法、装置及路由器
CN112929284A (zh) 一种IPv6 VXLAN场景下的ND报文识别方法与***
WO2020029928A1 (zh) Bgp会话建立、发送接口地址和别名的方法及网络设备
CN102761425A (zh) 计费方法及装置
WO2017071367A1 (zh) 一种分组数据网关双栈地址选择的方法及装置
WO2014048248A1 (zh) Mac地址的控制方法及装置
CN102739814B (zh) 一种建立动态主机配置协议窥探绑定表的方法及***
JP2014171017A (ja) 通信情報検出装置、方法、及びプログラム
EP4207708A1 (en) Method for establishing session and network device
CN115550255A (zh) 一种地址识别方法以及相关设备
JP6175806B2 (ja) 通信情報検出装置、通信情報検出方法、及びプログラム

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: 13856914

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013856914

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 14646032

Country of ref document: US