WO2009012694A1 - Network address processing method and router node - Google Patents

Network address processing method and router node Download PDF

Info

Publication number
WO2009012694A1
WO2009012694A1 PCT/CN2008/071653 CN2008071653W WO2009012694A1 WO 2009012694 A1 WO2009012694 A1 WO 2009012694A1 CN 2008071653 W CN2008071653 W CN 2008071653W WO 2009012694 A1 WO2009012694 A1 WO 2009012694A1
Authority
WO
WIPO (PCT)
Prior art keywords
network address
node
terminal
routing node
terminal node
Prior art date
Application number
PCT/CN2008/071653
Other languages
French (fr)
Chinese (zh)
Inventor
Mu Zhao
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 WO2009012694A1 publication Critical patent/WO2009012694A1/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/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a network address processing method and a routing node. Background technique
  • a wireless personal area network (hereinafter referred to as WPAN) is a network composed of a plurality of devices that are close to each other, and these devices communicate in a wireless internal manner.
  • WPAN technology has rapidly developed into a vital component of computer networks, and is also one of the mainstream technologies in the fourth generation of wireless communication and control, and can be used for second-generation and third-generation mobile communications.
  • Various air interfaces provide seamless roaming connections.
  • one or more devices typically communicate with a carrier network through which other devices in the network communicate with the carrier network.
  • the devices in the WPAN are divided into routing nodes and terminal nodes by function.
  • the routing node is responsible for the basic structure of the network, constitutes the network structure of the WPAN, and manages the terminal nodes associated with it. Routing nodes can communicate with each other.
  • the terminal node is held by the user and can use the service provided by the WPAN by establishing association with a routing node.
  • Each terminal node can only be associated with one routing node at a time, and only the terminal node associated with the routing node can use the service provided by the WPAN through the routing node.
  • Each routing node can associate multiple terminal nodes and is responsible for assigning associated terminal nodes network addresses for communication between devices within the WPAN.
  • the routing node itself also has a network address, and the network address of each device changes according to the association and de-association of the device with different routing nodes.
  • the routing node When the terminal node is associated with the routing node, the routing node assigns a network address of length 16 bits to the terminal node for communication within the WPAN.
  • each device in the WPAN has the Institute of Electrical and Electronics Engineers (hereinafter referred to as IEEE) address, which is a fixed 64 bit physical device. Address.
  • IEEE Institute of Electrical and Electronics Engineers
  • a disassociation notification is sent to the routing node. After receiving the disassociation notification, the routing node deletes the information of the terminal node from its own neighbor list, and reclaims the network address assigned to the terminal node for allocation to other terminal nodes for use.
  • the routing node does not know that the terminal node has left its associated range, and It is considered that the network address assigned to the terminal node is still in use, so that the network address is not reclaimed and reassigned to other terminal nodes, so that the network address is in an idle state.
  • the routing node does not reclaim the network address and re-allocate the network address to other terminals. Node, so that the network address is often idle.
  • the inventors have found that at least the following problems exist in the prior art: when the terminal node leaves the association range of the routing node in an abnormal situation, or is often in an idle state when it is normally associated with the routing node, Occupying a network address, the limited network address resources of the routing node cannot be fully utilized; since the network address resources owned by each routing node in the WPAN are limited, when the network address is exhausted, the routing node cannot request other requests.
  • the added terminal node allocates the network address, the association request of the other terminal node is rejected, thereby affecting the service of the other terminal node to use the WPAN normally. Summary of the invention
  • the technical problem to be solved by the embodiments of the present invention is to improve the utilization of network address resources.
  • a method for processing a network address includes: acquiring a usage status of a network address of one or more terminal nodes allocated by a routing node; and using a status of the network address as an idle state The routing node reclaims the network address in an idle state.
  • a routing node including: An obtaining module, configured to acquire a usage status of a network address of one or more terminal nodes allocated by the routing node;
  • the network address management module is configured to: when the use status of the network address is an idle state, reclaim the network address in an idle state.
  • the routing node may acquire the usage status of the network address of one or more terminal nodes allocated by the routing node and reclaim the network address in the idle state, so as to allocate the network address to other terminal nodes requesting to join, which improves the limited
  • the utilization of network address resources, under the condition of limited network address resources, ensures that more terminal nodes can use the services of WPAN.
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for processing a network address according to the present invention
  • FIG. 2 is a flowchart of establishing a association between a terminal node of a reclaimed network address and a routing node according to an embodiment of the present invention
  • FIG. 3 is a flowchart of establishing, by a routing node, an association with a terminal node that is reclaimed a network address according to an embodiment of the present invention
  • Embodiment 4 is a flowchart of Embodiment 2 of a method for processing a network address according to the present invention
  • Embodiment 1 of a routing node according to the present invention is a schematic structural diagram of Embodiment 1 of a routing node according to the present invention.
  • Embodiment 2 of a routing node according to the present invention
  • Embodiment 7 is a schematic structural diagram of Embodiment 3 of a routing node according to the present invention.
  • FIG. 8 is a schematic structural diagram of Embodiment 4 of a routing node according to the present invention. detailed description
  • the routing node obtains the management status of the network address of one or more terminal nodes that allocates the network address, and reclaims the network address in the idle state when the network address is in the idle state. So that it can be assigned to other terminal nodes that request to join use.
  • the routing node can periodically manage its own network address resource, reclaim the idle network address, and can also communicate according to different terminal nodes in the neighbor table. For example, it is found that the terminal node does not communicate within a certain period of time, or After receiving the association request of the new terminal node, it is found that there is no network address available for allocation, or when there is no network address that can be allocated to other terminal nodes that need to communicate, the network address resource is managed and recovered. Idle network address.
  • FIG. 1 it is a flowchart of Embodiment 1 of a method for processing a network address according to the present invention.
  • the embodiment includes:
  • Step 101 The routing node queries a neighbor table indicating a correspondence between the terminal node identifier and the network address, and obtains a terminal node identifier of the network address.
  • Step 102 The routing node acquires service usage status of one or more terminal nodes in the neighbor table. Specifically, the service usage of each terminal corresponding to each terminal node identifier may be queried according to the identifier of the terminal node, for example, the time when the terminal node uses the WPAN service, and/or the idle time, and/or the total traffic used by the terminal node. Or the amount of business used during a certain period of time, and/or the time ratio between the service used by the terminal and the unused service.
  • the routing node Since the service using the WPAN by the terminal node has to pass through its associated routing node, the routing node has mastered the service usage of all the terminal nodes associated with it. It is also possible to query the service usage of each terminal node by other nodes in the WPAN (for example, the coordinator Coordinator), and then notify the routing node.
  • the coordinator Coordinator for example, the coordinator Coordinator
  • Step 103 The routing node compares the service usage of each terminal node with a preset criterion, and determines whether each terminal node is in an idle state, that is, whether the network address allocated to the terminal node is in an idle state, and the idle state is selected. Terminal node. For example: If the preset standard specifies that the terminal node is in idle time, the terminal node uses less than B in the A period of time, and the idle time is greater than C, then the terminal node that satisfies the above conditions is in idle time.
  • Step 104 The routing node reclaims the network address assigned to the terminal node in the idle state, That is: the terminal node in the idle state is disconnected from the corresponding network address. After the routing node reclaims the network address assigned to the terminal node in the idle state, the related information of the terminal node may still be retained. In this way, when the association between the terminal node and the routing node is re-established, the routing node does not need to re-acquire the related information of the terminal node, and the terminal node does not need to be re-authenticated, thereby reducing the routing node and the terminal.
  • the network burden caused by the information exchange between nodes and the load of the routing node shortens the time required for re-establishing the association and improves the working efficiency of the routing node.
  • the routing node reclaiming the network address assigned to the terminal node in the idle state may be: updating the neighbor table, and deleting the correspondence between the terminal node identifier in the idle state and the network address from the neighbor table, so that the network address is not currently Used by the terminal node.
  • the routing node may send a network address update command to the terminal node that is reclaimed the network address, and instruct the terminal node to set its own network address as a broadcast address or an illegal unicast address. That is: the terminal node can only receive the broadcast information in the WPAN, but cannot receive the message addressed to the network address. In this way, the routing node can allocate the network address in the idle state to other required terminal nodes, so as to fully utilize the network address resources, and ensure that more terminal nodes use the WPAN service under the condition of limited network address resources. .
  • the terminal node of the reclaimed network address can also re-establish association with the routing node to implement communication with the routing node.
  • the process of establishing the association with the routing node by the terminal node that is reclaimed the network address includes: Step 201: When the terminal node that is reclaimed the network address needs to communicate with the original routing node, send the routing node to the routing node.
  • Step 202 The routing node receives the network address request sent by the terminal node, and determines whether the IEEE address carried in the network address request is stored, that is, whether the terminal node identified by the IEEE address is a terminal node that has previously recovered the network address, and if so, Go to step 203; otherwise, execute Step 206.
  • Step 203 The routing node determines whether there is currently a network address available, and if yes, step 204 is performed; otherwise, step 206 is performed.
  • Step 204 The routing node allocates a new network address to the terminal node that is reclaimed the network address, and returns a response message to the terminal node of the reclaimed network address, where the response message carries a new network address.
  • Step 205 After receiving the new network address, the terminal node sets the network address as a new network address, and then the terminal node can use the new network address to implement communication with the routing node.
  • Step 206 The routing node returns a response message rejecting the communication with the terminal node that is reclaimed the network address.
  • the terminal node that has reclaimed the network address updates the network address set on the terminal node to a broadcast address or an illegal unicast address according to the indication of the routing node, and then the routing node also
  • the terminal node that is reclaimed the network address can be actively associated to implement communication with the terminal node.
  • 3 is a flow chart of establishing a relationship between a routing node and a terminal node of a reclaimed network address. As shown in FIG. 3, it includes:
  • Step 301 The routing node needs to communicate with the terminal node that has previously reclaimed the network address and when there is an available network address, the broadcast node queries the command, which carries the IEEE address of the terminal node of the reclaimed network address to be communicated.
  • the routing node When the routing node has available network address resources, it broadcasts a node query command to the terminal node of the reclaimed network address that needs to communicate, thereby avoiding the association failure caused by the absence of available network address resources.
  • Step 302 The terminal node that receives the request compares whether the IEEE address in the broadcast query command is the same as the IEEE address saved by itself, and if yes, step 303 is performed; if not, step 307 is performed.
  • Step 303 The terminal node sends a query response to the routing node, where the query response message carries the IEEE address information of the terminal node.
  • Step 304 After receiving the query response, the routing node verifies whether the IEEE address is related to itself.
  • the IEEE addresses of the terminal nodes to be communicated are the same. If they are the same, go to step 305; otherwise, go to step 307.
  • the terminal node When the IEEE address returned by the terminal node is the same as the IEEE address of the terminal node to which the routing node is to communicate, the terminal node is assigned a new network address, ensuring the correctness of the terminal node selection.
  • Step 305 The routing node allocates a new network address to the terminal node of the reclaimed network address, and sends a network address allocation command for setting the network address to the new network address.
  • the new network address can be carried in the network address assignment command or it can be sent separately.
  • Step 306 The terminal node sets the network address to the new network address according to the network address allocation command, and returns a response message that the new network address has been successfully received to the routing node. After receiving the response message sent by the terminal node, the routing node can start communication with the terminal node.
  • Step 307 the process ends.
  • Step 301 to step 304 may be omitted.
  • the routing node needs to communicate with the terminal node that has previously reclaimed the network address and can directly allocate a new network address to the terminal node of the reclaimed network address when there is an available network address, and It sends a network address assignment command that sets the network address to the new network address.
  • Embodiment 2 As shown in FIG. 4, it is a flowchart of Embodiment 2 of a method for processing a network address according to the present invention.
  • the embodiment includes:
  • Step 401 The routing node identifies a corresponding terminal node to the unicast or broadcast message to one or more terminal nodes in the neighbor table, and the terminal node needs to respond after receiving the message.
  • Step 402 The routing node receives the response of the terminal node to the message, and determines, according to the response condition of each terminal node, whether each terminal node is currently in an idle state, that is, whether its network address is idle. If the terminal node does not effectively reply to the message, the terminal node is considered to be in an idle state. For example, if the routing node does not receive the response message of the terminal node within the preset time, and/or the number of times the terminal node responds to the message is lower than the preset number of times, it is considered that the valid response is not performed.
  • the preset number of times of the five broadcast message responses sent by the terminal node to the routing node is three times, and one terminal node only responds twice; or, the number of responses in a certain period of time is not less than D, if Routing node If the response message of a terminal node is not received, or the number of response messages received by a terminal node in E time is less than D, the terminal node is currently in an idle state, and its network address is idle.
  • Step 403 The routing node determines, according to the determination result of step 402, whether there is a terminal node that does not have a valid response to the message in an idle state. If yes, step 404 is performed; otherwise, step 406 is performed.
  • Step 404 The routing node reclaims the network address of the terminal node that does not effectively reply to the message. For example: Delete the correspondence between the endpoint ID that does not respond to the message and its network address from the neighbor table.
  • Step 405 The routing node determines whether the number of the terminal nodes that have not effectively responded to the message reaches a preset value.
  • the preset value may be the number of other terminal nodes that are currently requested to join the WPAN. If not, go to step 406; , go to step 407. Step 405 can be performed concurrently with step 404 or prior to step 404.
  • Step 406 The routing node acquires the usage status of the network address allocated to each terminal node according to the service usage of each terminal node in the neighbor table, and reclaims the network address of the terminal node whose service usage does not reach the preset standard.
  • the routing node acquires the usage status of the network address allocated to each terminal node according to the service usage of each terminal node in the neighbor table, and reclaims the network address of the terminal node whose service usage does not reach the preset standard.
  • step 407 the operation of reclaiming the idle network address is not performed.
  • step 405 may not be performed.
  • step 404 after the routing node reclaims the network address of the terminal node that does not effectively reply to the message, step 406 is directly executed to reclaim the network address of the terminal node that does not reach the preset standard. To achieve strict control and effective management of network address resources. For example, in step 403, if there is no terminal node that does not effectively reply to the message, step 406 may not be performed, and the network address management process may be directly ended.
  • the routing node may delete the related information of the terminal node of the reclaimed network address from the neighbor list, and release the storage space of the routing node, so as to store other necessary information and improve storage space utilization. . It is also possible to delete the original network address of the terminal node of the reclaimed network address only from the neighbor list, so as to reflect that the network address is not currently used by the terminal node.
  • step 406 may also be performed to implement strict control and management of the idle network address, so as to be allocated to subsequent more needed terminals. Used by the node.
  • the terminal node of this embodiment includes an obtaining module and a network address management module.
  • the obtaining module is configured to obtain a usage status of a network address of one or more terminal nodes managed by the routing node; and the network address management module is configured to reclaim the network address in an idle state when the usage status is an idle state.
  • FIG. 6 is a schematic structural diagram of Embodiment 2 of a routing node according to the present invention.
  • the acquisition module includes a query unit and a first comparison unit.
  • the query unit is configured to query the service usage of the one or more terminal nodes that allocate the network address;
  • the first comparison unit is configured to compare the service usage of each terminal node with a preset standard, and determine the service usage of each terminal node. Whether the situation reaches the preset standard, and the judgment result is notified to the network address management module; the network address management module is used to recover the network address of the terminal node whose service usage does not reach the preset standard.
  • the routing node in the embodiment of the present invention may further include a first determining module and a second determining module.
  • the first determining module is configured to receive a network address request of the terminal node, and determine whether the IEEE node of the terminal node with the reclaimed network address is stored in the routing node; the second determining module is configured to determine whether an available network address is available; When the module has an available network address, it assigns a new network address to the terminal node that is reclaimed the network address.
  • the routing node in this embodiment can implement the process shown in FIG. 2, and establish an association between the terminal node that is reclaimed the network address and the routing node.
  • the obtaining module comprises a sending unit, a second comparing unit and a receiving unit.
  • the sending unit is configured to send, to each terminal node identifier in the neighbor table indicating the correspondence between the terminal node identifier and the network address, a message that requires a response from each terminal node, where the receiving unit is configured to receive a response message returned by each terminal node;
  • the second comparing unit is configured to determine whether each terminal node effectively responds to the message according to the situation of sending the message and receiving the response message; and the network address management module is configured to reclaim the network address of the terminal node that does not effectively reply to the message.
  • a deletion module may be further disposed to delete related information of the terminal node of the reclaimed network address from the neighbor table.
  • the routing node may further include a third determining module, a querying unit, and a first comparing unit.
  • FIG. 8 it is a structural schematic diagram of Embodiment 4 of the routing node of the present invention, and the embodiment can be used to implement the process of the embodiment shown in FIG.
  • the third determining module is configured to determine whether the number of terminal nodes that do not effectively respond to the message reaches a preset value; the query unit queries the service usage of one or more terminal nodes managed by the routing node; the first comparing unit uses each terminal node Comparing the service usage with the preset standard, determining whether the service usage of each terminal node reaches a preset standard, and notifying the network address management module of the judgment result; the network address management module reclaiming the terminal whose service usage does not reach the preset standard The network address of the node.
  • the inquiry list and the first comparison unit can also be set in the acquisition module.
  • the routing node acquires the usage status of the network address assigned to one or more terminal nodes managed by the routing node, and reclaims the idle network address when the network address is in the idle state, so as to join the terminal node that is requested to join other requests.
  • the network address is allocated to realize the full utilization of the limited network address resources of the routing node, and it is effectively ensured that more terminal nodes can use the service of the WPAN under the condition of limited network address resources.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A network address processing method and a router node. The network address processing method includes: acquiring the user state of the network address(es) of one or more terminal node(s) assigned by the router node; the router node taking back the network address in idle state when the user state of the network address is idle. The router node includes an acquiring module for acquiring the user state of the network address(es) of one or more terminal node(s) assigned by the router node; a network management module for taking back the network address in idle state when the user state of the network address is idle.

Description

网络地址的处理方法与路由节点  Network address processing method and routing node
技术领域 Technical field
本发明涉及通信技术领域,尤其是一种网络地址的处理方法与路由节点。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a network address processing method and a routing node. Background technique
无线个人域网络( Wireless Personal Area Network , 以下简称: WPAN ) 是由多个彼此距离较近的设备组成的网络, 这些设备之间通过某种无线的内 部方式进行通信。近几年来, WPAN技术已经迅速发展成为计算机网络中一 个至关重要的组成部分, 同时也是第四代无线通信和控制中的主流技术之一, 并可以为第二代、 第三代移动通信的各种空中接口提供无缝漫游连接。  A wireless personal area network (hereinafter referred to as WPAN) is a network composed of a plurality of devices that are close to each other, and these devices communicate in a wireless internal manner. In recent years, WPAN technology has rapidly developed into a vital component of computer networks, and is also one of the mainstream technologies in the fourth generation of wireless communication and control, and can be used for second-generation and third-generation mobile communications. Various air interfaces provide seamless roaming connections.
在 WPAN中 , 一般由一个或多个设备与运营商网络进行通信 , 网络中的 其它设备通过这些设备与运营商网络通信。 WPAN中的设备按功能分为路由 节点与终端节点。 其中, 路由节点用于负责网络的基本构成, 构成 WPAN的 网络结构, 管理与其关联的终端节点。 路由节点之间可以相互通信。 终端节 点为用户持有, 可通过与某个路由节点建立关联而使用 WPAN提供的业务。 每个终端节点同一时间只能与一个路由节点关联, 并且只有与路由节点建立 关联的终端节点才能通过该路由节点使用 WPAN提供的业务。 每个路由节点 可关联多个终端节点, 并负责给关联的终端节点分配用于 WPAN内设备之间 通信的网络地址。 路由节点本身也有一个网络地址, 每个设备的网络地址随 着该设备与不同路由节点的关联、 解关联等发生变化。  In WPAN, one or more devices typically communicate with a carrier network through which other devices in the network communicate with the carrier network. The devices in the WPAN are divided into routing nodes and terminal nodes by function. The routing node is responsible for the basic structure of the network, constitutes the network structure of the WPAN, and manages the terminal nodes associated with it. Routing nodes can communicate with each other. The terminal node is held by the user and can use the service provided by the WPAN by establishing association with a routing node. Each terminal node can only be associated with one routing node at a time, and only the terminal node associated with the routing node can use the service provided by the WPAN through the routing node. Each routing node can associate multiple terminal nodes and is responsible for assigning associated terminal nodes network addresses for communication between devices within the WPAN. The routing node itself also has a network address, and the network address of each device changes according to the association and de-association of the device with different routing nodes.
当终端节点与路由节点建立关联时, 路由节点会向该终端节点分配一个 长度为 16位( bit )的网络地址, 以供其在 WPAN内通信之用。 另夕卜, WPAN 中的每个设备具有电子电气工程师协会 ( Institute of Electrical and Electronics Engineers , 以下简称: IEEE )地址, 该 IEEE地址为设备固定的 64 bit的物理 地址。 正常情况下, 当终端节点与路由节点解除关联时会向路由节点发出解 除关联通知。 路由节点接收到解除关联通知后, 从自己的邻居表中删除该终 端节点的信息, 并收回为该终端节点分配的网络地址, 以分配给其它终端节 点使用。 若由于网络连接等原因, 使得终端节点在非正常情况下离开路由节 点的关联范围, 在与路由节点解除关联时未通知到路由节点, 则路由节点不 知道该终端节点已经离开其关联范围, 而认为其分配给该终端节点的网络地 址仍在使用, 从而不会把该网络地址收回再分配给其它终端节点, 使得该网 络地址处于闲置状态。 另外, 若终端节点与路由节点正常关联, 即: 占用路 由节点的一个网络地址, 却经常处于空闲状态, 不使用 WPAN的任何业务, 则路由节点也不会把该网络地址收回再分配给其它终端节点, 使该网络地址 经常处于闲置状态。 When the terminal node is associated with the routing node, the routing node assigns a network address of length 16 bits to the terminal node for communication within the WPAN. In addition, each device in the WPAN has the Institute of Electrical and Electronics Engineers (hereinafter referred to as IEEE) address, which is a fixed 64 bit physical device. Address. Normally, when the terminal node is disassociated from the routing node, a disassociation notification is sent to the routing node. After receiving the disassociation notification, the routing node deletes the information of the terminal node from its own neighbor list, and reclaims the network address assigned to the terminal node for allocation to other terminal nodes for use. If, due to a network connection or the like, the terminal node leaves the association range of the routing node in an abnormal situation, and the routing node is not notified when disassociating with the routing node, the routing node does not know that the terminal node has left its associated range, and It is considered that the network address assigned to the terminal node is still in use, so that the network address is not reclaimed and reassigned to other terminal nodes, so that the network address is in an idle state. In addition, if the terminal node is normally associated with the routing node, that is, a network address of the routing node is occupied, but is often in an idle state, and no service of the WPAN is used, the routing node does not reclaim the network address and re-allocate the network address to other terminals. Node, so that the network address is often idle.
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: 终端节点在非正常情况下离开路由节点的关联范围时, 或者虽然与路由 节点正常关联却经常处于空闲状态时, 都会占用一个网络地址, 这就导致路 由节点的有限网络地址资源无法被充分利用; 由于 WPAN内每个路由节点拥 有的网络地址资源是有限的, 当网络地址用尽时, 路由节点便无法向其它请 求加入的终端节点分配网络地址, 则会因此拒绝其它终端节点的关联请求, 从而影响了其它终端节点正常使用 WPAN的业务。 发明内容  In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: when the terminal node leaves the association range of the routing node in an abnormal situation, or is often in an idle state when it is normally associated with the routing node, Occupying a network address, the limited network address resources of the routing node cannot be fully utilized; since the network address resources owned by each routing node in the WPAN are limited, when the network address is exhausted, the routing node cannot request other requests. When the added terminal node allocates the network address, the association request of the other terminal node is rejected, thereby affecting the service of the other terminal node to use the WPAN normally. Summary of the invention
本发明实施例所要解决的技术问题是提高网络地址资源的利用率。  The technical problem to be solved by the embodiments of the present invention is to improve the utilization of network address resources.
根据本发明实施例的一个方面, 提供的一种网络地址的处理方法, 包括: 获取路由节点分配的一个或多个终端节点的网络地址的使用状态; 当所述网络地址的使用状态为闲置状态时, 所述路由节点收回处于闲置 状态的网络地址。  According to an aspect of the embodiments of the present invention, a method for processing a network address includes: acquiring a usage status of a network address of one or more terminal nodes allocated by a routing node; and using a status of the network address as an idle state The routing node reclaims the network address in an idle state.
根据本发明实施例的另一个方面, 提供的一种路由节点, 包括: 获取模块, 用于获取路由节点分配的一个或多个终端节点的网络地址的 使用状态; According to another aspect of the embodiments of the present invention, a routing node is provided, including: An obtaining module, configured to acquire a usage status of a network address of one or more terminal nodes allocated by the routing node;
网络地址管理模块, 用于在所述网络地址的使用状态为闲置状态时, 收 回处于闲置状态的所述网络地址。  The network address management module is configured to: when the use status of the network address is an idle state, reclaim the network address in an idle state.
本发明实施例中, 路由节点可以获取路由节点分配的一个或多个终端节 点的网络地址的使用状态并收回处于闲置状态的网络地址, 以便向其它请求 加入的终端节点分配网络地址, 提高了有限网络地址资源的利用率, 在有限 网络地址资源条件下, 保证更多终端节点可以使用 WPAN的业务。  In the embodiment of the present invention, the routing node may acquire the usage status of the network address of one or more terminal nodes allocated by the routing node and reclaim the network address in the idle state, so as to allocate the network address to other terminal nodes requesting to join, which improves the limited The utilization of network address resources, under the condition of limited network address resources, ensures that more terminal nodes can use the services of WPAN.
下面通过附图和实施例, 对本发明的技术方案做进一步的详细描述。 附图说明  The technical solution of the present invention will be further described in detail below through the accompanying drawings and embodiments. DRAWINGS
图 1为本发明网络地址的处理方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a method for processing a network address according to the present invention;
图 2为依据本发明实施例的被收回网络地址的终端节点与路由节点建立 关联的流程图;  2 is a flowchart of establishing a association between a terminal node of a reclaimed network address and a routing node according to an embodiment of the present invention;
图 3为本发明实施例中路由节点主动与; 被收回网络地址的终端节点建 立关联的流程图;  3 is a flowchart of establishing, by a routing node, an association with a terminal node that is reclaimed a network address according to an embodiment of the present invention;
图 4为本发明网络地址的处理方法实施例二的流程图;  4 is a flowchart of Embodiment 2 of a method for processing a network address according to the present invention;
图 5为本发明路由节点实施例一的结构示意图;  5 is a schematic structural diagram of Embodiment 1 of a routing node according to the present invention;
图 6为本发明路由节点实施例二的结构示意图;  6 is a schematic structural diagram of Embodiment 2 of a routing node according to the present invention;
图 7为本发明路由节点实施例三的结构示意图;  7 is a schematic structural diagram of Embodiment 3 of a routing node according to the present invention;
图 8为本发明路由节点实施例四的结构示意图。 具体实施方式  FIG. 8 is a schematic structural diagram of Embodiment 4 of a routing node according to the present invention. detailed description
本发明实施例中, 路由节点获取其管理的, 即: 分配网络地址的一个或 多个终端节点的网络地址的使用状态, 在获知有网络地址处于闲置状态时, 收回处于闲置状态的网络地址, 以便可以分配给其它请求加入的终端节点使 用。 In the embodiment of the present invention, the routing node obtains the management status of the network address of one or more terminal nodes that allocates the network address, and reclaims the network address in the idle state when the network address is in the idle state. So that it can be assigned to other terminal nodes that request to join use.
路由节点可以周期性地对自己的网络地址资源进行管理, 收回闲置的网 络地址, 也可以根据邻居表中的不同终端节点的通信情况, 例如: 发现终端 节点在一定时间内没有进行通信, 或者, 在收到新终端节点的关联请求后发 现自己没有可供分配的网络地址时, 或者, 在没有可以分配给需要进行通信 的其它终端节点的网络地址时, 对自己的网络地址资源进行管理, 收回闲置 的网络地址。  The routing node can periodically manage its own network address resource, reclaim the idle network address, and can also communicate according to different terminal nodes in the neighbor table. For example, it is found that the terminal node does not communicate within a certain period of time, or After receiving the association request of the new terminal node, it is found that there is no network address available for allocation, or when there is no network address that can be allocated to other terminal nodes that need to communicate, the network address resource is managed and recovered. Idle network address.
如图 1所示, 为本发明网络地址的处理方法实施例一的流程图, 该实施 例包括:  As shown in FIG. 1 , it is a flowchart of Embodiment 1 of a method for processing a network address according to the present invention. The embodiment includes:
步骤 101 , 路由节点查询表示终端节点标识与网络地址之间对应关系的 邻居表, 获取其分配网络地址的终端节点标识。  Step 101: The routing node queries a neighbor table indicating a correspondence between the terminal node identifier and the network address, and obtains a terminal node identifier of the network address.
步骤 102, 路由节点获取邻居表中的一个或多个终端节点的业务使用情 况。 具体地, 可以根据终端节点标识, 查询与各终端节点标识对应的各终端 的业务使用情况, 例如: 终端节点使用 WPAN业务的时间, 和 /或空闲时间, 和 /或终端节点使用的总业务量或在某段时间内使用的业务量,和 /或终端使用 业务与未使用业务的时间比值等。  Step 102: The routing node acquires service usage status of one or more terminal nodes in the neighbor table. Specifically, the service usage of each terminal corresponding to each terminal node identifier may be queried according to the identifier of the terminal node, for example, the time when the terminal node uses the WPAN service, and/or the idle time, and/or the total traffic used by the terminal node. Or the amount of business used during a certain period of time, and/or the time ratio between the service used by the terminal and the unused service.
由于终端节点使用 WPAN的业务都要通过其关联的路由节点, 因此, 路 由节点掌握所有与其关联的终端节点的业务使用情况。 也可以由 WPAN内的 其它节点 (例如: 协调者 Coordinator ) 来查询各终端节点的业务使用情况, 然后通知给路由节点。  Since the service using the WPAN by the terminal node has to pass through its associated routing node, the routing node has mastered the service usage of all the terminal nodes associated with it. It is also possible to query the service usage of each terminal node by other nodes in the WPAN (for example, the coordinator Coordinator), and then notify the routing node.
步骤 103 , 路由节点分别将各终端节点的业务使用情况与预设标准进行 比较, 判断各终端节点是否处于空闲状态, 即: 分配给该终端节点的网络地 址是否处于闲置状态, 选择出处于空闲状态的终端节点。 例如: 若预设标准 规定终端节点处于空闲时间为终端节点在 A段时间内使用的业务量小于 B , 且空闲时间大于 C, 则满足上述条件的终端节点便处于空闲时间。  Step 103: The routing node compares the service usage of each terminal node with a preset criterion, and determines whether each terminal node is in an idle state, that is, whether the network address allocated to the terminal node is in an idle state, and the idle state is selected. Terminal node. For example: If the preset standard specifies that the terminal node is in idle time, the terminal node uses less than B in the A period of time, and the idle time is greater than C, then the terminal node that satisfies the above conditions is in idle time.
步骤 104, 路由节点收回分配给处于空闲状态的终端节点的网络地址, 即: 让处于空闲状态的终端节点与相应的网络地址脱离关系。 路由节点收回 分配给处于空闲状态的终端节点的网络地址后, 可以仍然保留该终端节点的 相关信息。 这样, 在后续重新建立该终端节点与路由节点之间的关联时, 不 需要路由节点重新获取该终端节点的相关信息, 并且不需要重新对该终端节 点进行鉴权, 减轻了由于路由节点与终端节点之间的信息交互引起的网络负 担与路由节点的负载, 缩短了重新建立关联所需的时间, 提高了路由节点的 工作效率。 Step 104: The routing node reclaims the network address assigned to the terminal node in the idle state, That is: the terminal node in the idle state is disconnected from the corresponding network address. After the routing node reclaims the network address assigned to the terminal node in the idle state, the related information of the terminal node may still be retained. In this way, when the association between the terminal node and the routing node is re-established, the routing node does not need to re-acquire the related information of the terminal node, and the terminal node does not need to be re-authenticated, thereby reducing the routing node and the terminal. The network burden caused by the information exchange between nodes and the load of the routing node shortens the time required for re-establishing the association and improves the working efficiency of the routing node.
路由节点收回分配给处于空闲状态的终端节点的网络地址具体可以是: 更新邻居表, 从邻居表中删除处于空闲状态的终端节点标识与其网络地址的 对应关系 , 以体现该网络地址当前未被该终端节点使用。  The routing node reclaiming the network address assigned to the terminal node in the idle state may be: updating the neighbor table, and deleting the correspondence between the terminal node identifier in the idle state and the network address from the neighbor table, so that the network address is not currently Used by the terminal node.
路由节点收回分配给处于空闲状态的终端节点的网络地址后, 可以向被 收回网络地址的终端节点发送网络地址更新命令, 命令终端节点将自己的网 络地址设置为广播地址或非法的单播地址, 即: 终端节点只能收到 WPAN内 的广播信息, 而无法接收发往该网络地址的消息。 这样, 路由节点就可将该 处于闲置状态的网络地址分配给其它需要的终端节点, 以实现对网络地址资 源的充分利用, 尽可能在有限网络地址资源条件下保证更多终端节点使用 WPAN的业务。  After the routing node reclaims the network address assigned to the terminal node in the idle state, it may send a network address update command to the terminal node that is reclaimed the network address, and instruct the terminal node to set its own network address as a broadcast address or an illegal unicast address. That is: the terminal node can only receive the broadcast information in the WPAN, but cannot receive the message addressed to the network address. In this way, the routing node can allocate the network address in the idle state to other required terminal nodes, so as to fully utilize the network address resources, and ensure that more terminal nodes use the WPAN service under the condition of limited network address resources. .
在 WPAN中的终端节点的网络地址被收回后, 该被收回网络地址的终端 节点还可以重新建立与路由节点的关联, 实现与路由节点的通信。 如图 2所 示, 被收回网络地址的终端节点建立与路由节点的关联的流程, 其包括: 步骤 201 , 被收回网络地址的终端节点需要与原来关联的路由节点通信 时, 向该路由节点发送网络地址请求, 该网络地址请求中携带有被收回网络 地址的终端节点的 IEEE地址。  After the network address of the terminal node in the WPAN is reclaimed, the terminal node of the reclaimed network address can also re-establish association with the routing node to implement communication with the routing node. As shown in FIG. 2, the process of establishing the association with the routing node by the terminal node that is reclaimed the network address includes: Step 201: When the terminal node that is reclaimed the network address needs to communicate with the original routing node, send the routing node to the routing node. A network address request, the network address request carrying the IEEE address of the terminal node with the reclaimed network address.
步骤 202, 路由节点接收终端节点发送的网络地址请求, 判断是否存储 有网络地址请求中携带的 IEEE地址, 即: 判断该 IEEE地址标识的终端节点 是否为之前被收回网络地址的终端节点, 若是, 执行步骤 203; 否则, 执行 步骤 206。 Step 202: The routing node receives the network address request sent by the terminal node, and determines whether the IEEE address carried in the network address request is stored, that is, whether the terminal node identified by the IEEE address is a terminal node that has previously recovered the network address, and if so, Go to step 203; otherwise, execute Step 206.
步骤 203 , 路由节点判断当前是否有可用的网络地址, 若有, 执行步骤 204; 否则, 执行步骤 206。  Step 203: The routing node determines whether there is currently a network address available, and if yes, step 204 is performed; otherwise, step 206 is performed.
步骤 204, 路由节点向被收回网络地址的终端节点分配新网络地址, 并 向该被收回网络地址的终端节点返回应答消息, 该应答消息中携带有新网络 地址。  Step 204: The routing node allocates a new network address to the terminal node that is reclaimed the network address, and returns a response message to the terminal node of the reclaimed network address, where the response message carries a new network address.
步骤 205, 终端节点接收到新网络地址后, 将网络地址设置为新网络地 址, 之后该终端节点便可以使用新网络地址实现与路由节点的通信。  Step 205: After receiving the new network address, the terminal node sets the network address as a new network address, and then the terminal node can use the new network address to implement communication with the routing node.
步骤 206, 路由节点向被收回网络地址的终端节点返回拒绝与其通信的 应答消息。  Step 206: The routing node returns a response message rejecting the communication with the terminal node that is reclaimed the network address.
在 WPAN中的终端节点的网络地址被收回后,被收回网络地址的终端节 点根据路由节点的指示, 将该终端节点上设置的网络地址更新为广播地址或 非法单播地址, 之后, 路由节点也可以主动与被收回网络地址的终端节点建 立关联, 实现与该终端节点的通信。 图 3为路由节点建立与被收回网络地址 的终端节点的关联的流程图, 如图 3所示, 其包括:  After the network address of the terminal node in the WPAN is reclaimed, the terminal node that has reclaimed the network address updates the network address set on the terminal node to a broadcast address or an illegal unicast address according to the indication of the routing node, and then the routing node also The terminal node that is reclaimed the network address can be actively associated to implement communication with the terminal node. 3 is a flow chart of establishing a relationship between a routing node and a terminal node of a reclaimed network address. As shown in FIG. 3, it includes:
步骤 301 , 路由节点需要与之前被收回网络地址的终端节点通信且自己 在有可用网络地址时, 广播节点查询命令, 其中携带有要进行通信的被收回 网络地址的终端节点的 IEEE地址。  Step 301: The routing node needs to communicate with the terminal node that has previously reclaimed the network address and when there is an available network address, the broadcast node queries the command, which carries the IEEE address of the terminal node of the reclaimed network address to be communicated.
路由节点在有可用网络地址资源时, 才向需要进行通信的被收回网络地 址的终端节点广播节点查询命令, 避免了由于不存在可用网络地址资源导致 的建立关联失败。  When the routing node has available network address resources, it broadcasts a node query command to the terminal node of the reclaimed network address that needs to communicate, thereby avoiding the association failure caused by the absence of available network address resources.
步骤 302,收到请求的终端节点比较广播查询命令中的 IEEE地址是否与 自身所保存的 IEEE地址相同,若相同,执行步骤 303;若不同,执行步骤 307。  Step 302: The terminal node that receives the request compares whether the IEEE address in the broadcast query command is the same as the IEEE address saved by itself, and if yes, step 303 is performed; if not, step 307 is performed.
步骤 303 ,终端节点向路由节点发送查询应答,该查询应答消息中携带有 该终端节点的 IEEE地址信息。  Step 303: The terminal node sends a query response to the routing node, where the query response message carries the IEEE address information of the terminal node.
步骤 304, 路由节点收到查询应答后, 验证其中的 IEEE地址是否与自己 所要通信的终端节点的 IEEE地址相同, 若相同, 执行步骤 305; 否则, 可以 执行步骤 307。 Step 304: After receiving the query response, the routing node verifies whether the IEEE address is related to itself. The IEEE addresses of the terminal nodes to be communicated are the same. If they are the same, go to step 305; otherwise, go to step 307.
在终端节点返回的 IEEE地址与路由节点所要通信的终端节点的 IEEE地 址相同时, 才向该终端节点分配新网络地址, 确保了终端节点选择的正确性。  When the IEEE address returned by the terminal node is the same as the IEEE address of the terminal node to which the routing node is to communicate, the terminal node is assigned a new network address, ensuring the correctness of the terminal node selection.
步骤 305, 路由节点向该被收回网络地址的终端节点分配新网络地址, 并向其发送将网络地址设置为新网络地址的网络地址分配命令。 新网络地址 可以携带在网络地址分配命令中发送, 也可以单独被发送。  Step 305: The routing node allocates a new network address to the terminal node of the reclaimed network address, and sends a network address allocation command for setting the network address to the new network address. The new network address can be carried in the network address assignment command or it can be sent separately.
步骤 306, 终端节点根据网络地址分配命令, 将网络地址设置为新网络 地址, 并向路由节点返回已成功接收到新网络地址的应答消息。 路由节点收 到终端节点发送的应答消息后, 就可以与该终端节点开始通信了。  Step 306: The terminal node sets the network address to the new network address according to the network address allocation command, and returns a response message that the new network address has been successfully received to the routing node. After receiving the response message sent by the terminal node, the routing node can start communication with the terminal node.
步骤 307, 结束流程。  Step 307, the process ends.
其中, 步骤 301〜步骤 304可以省略, 路由节点需要与之前被收回网络地 址的终端节点通信且自己在有可用网络地址时, 可以直接向该被收回网络地 址的终端节点分配新网络地址, 并向其发送将网络地址设置为新网络地址的 网络地址分配命令。  Step 301 to step 304 may be omitted. The routing node needs to communicate with the terminal node that has previously reclaimed the network address and can directly allocate a new network address to the terminal node of the reclaimed network address when there is an available network address, and It sends a network address assignment command that sets the network address to the new network address.
如图 4所示, 为本发明网络地址的处理方法实施例二的流程图, 该实施 例包括:  As shown in FIG. 4, it is a flowchart of Embodiment 2 of a method for processing a network address according to the present invention. The embodiment includes:
步骤 401 , 路由节点向邻居表中的一个或多个终端节点标识对应的终端 节点单播或广播消息, 需要终端节点接收到该消息后作出应答。  Step 401: The routing node identifies a corresponding terminal node to the unicast or broadcast message to one or more terminal nodes in the neighbor table, and the terminal node needs to respond after receiving the message.
步骤 402, 路由节点接收终端节点对该消息的应答, 并根据各终端节点 的应答情况确定各终端节点当前是否处于空闲状态,即其网络地址是否闲置。 若终端节点未对该消息进行有效应答, 则认为终端节点处于空闲状态。 例如: 路由节点在预设时间内未收到终端节点的应答消息, 和 /或者终端节点对该消 息的应答次数低于预设次数, 则认为未进行有效应答。 例如: 规定终端节点 向路由节点发送的 5次广播消息应答的预设次数为 3次, 而某一终端节点仅 应答了 2次; 或者, 规定在某一段时间内的应答次数不小于 D, 若路由节点 未接收到某终端节点的应答消息, 或在 E时间内接收到某终端节点的应答消 息的次数小于 D, 就说明终端节点当前处于空闲状态, 其网络地址闲置。 Step 402: The routing node receives the response of the terminal node to the message, and determines, according to the response condition of each terminal node, whether each terminal node is currently in an idle state, that is, whether its network address is idle. If the terminal node does not effectively reply to the message, the terminal node is considered to be in an idle state. For example, if the routing node does not receive the response message of the terminal node within the preset time, and/or the number of times the terminal node responds to the message is lower than the preset number of times, it is considered that the valid response is not performed. For example, the preset number of times of the five broadcast message responses sent by the terminal node to the routing node is three times, and one terminal node only responds twice; or, the number of responses in a certain period of time is not less than D, if Routing node If the response message of a terminal node is not received, or the number of response messages received by a terminal node in E time is less than D, the terminal node is currently in an idle state, and its network address is idle.
步骤 403 , 路由节点根据步骤 402的确定结果, 判断是否存在未对消息 进行有效应答处于空闲状态的终端节点, 若存在, 执行步骤 404; 否则, 执 行步骤 406。  Step 403: The routing node determines, according to the determination result of step 402, whether there is a terminal node that does not have a valid response to the message in an idle state. If yes, step 404 is performed; otherwise, step 406 is performed.
步骤 404,路由节点收回未对消息进行有效应答的终端节点的网络地址。 例如: 从邻居表中删除未对消息进行有效应答的终端节点标识与其网络地址 的对应关系。  Step 404: The routing node reclaims the network address of the terminal node that does not effectively reply to the message. For example: Delete the correspondence between the endpoint ID that does not respond to the message and its network address from the neighbor table.
步骤 405 , 路由节点判断未对消息进行有效应答的终端节点的数量是否 达到预设数值, 该预设数值可以是当前请求加入 WPAN的其它终端节点的数 量, 若未达到, 执行步骤 406; 若达到, 执行步骤 407。 步骤 405可以与步骤 404同时执行, 也可以先于步骤 404执行。  Step 405: The routing node determines whether the number of the terminal nodes that have not effectively responded to the message reaches a preset value. The preset value may be the number of other terminal nodes that are currently requested to join the WPAN. If not, go to step 406; , go to step 407. Step 405 can be performed concurrently with step 404 or prior to step 404.
步骤 406, 路由节点根据邻居表中的各终端节点的业务使用情况获取分 配给各终端节点的网络地址的使用状态, 并收回业务使用未达到预设标准的 终端节点的网络地址。 该步骤详细操作可以参考图 1所示的实施例。  Step 406: The routing node acquires the usage status of the network address allocated to each terminal node according to the service usage of each terminal node in the neighbor table, and reclaims the network address of the terminal node whose service usage does not reach the preset standard. For detailed operations of this step, reference may be made to the embodiment shown in FIG. 1.
步骤 407, 不执行收回闲置的网络地址的操作。  In step 407, the operation of reclaiming the idle network address is not performed.
另外, 也可以不执行步骤 405 , 在步骤 404中, 路由节点收回未对消息 进行有效应答的终端节点的网络地址后, 直接执行步骤 406, 收回业务使用 未达到预设标准的终端节点的网络地址, 以实现对网络地址资源的严格控制 与有效管理。 例如: 在步骤 403 中, 若不存在未对消息进行有效应答的终端 节点, 也可以不执行步骤 406, 而直接结束网络地址管理流程。  In addition, step 405 may not be performed. In step 404, after the routing node reclaims the network address of the terminal node that does not effectively reply to the message, step 406 is directly executed to reclaim the network address of the terminal node that does not reach the preset standard. To achieve strict control and effective management of network address resources. For example, in step 403, if there is no terminal node that does not effectively reply to the message, step 406 may not be performed, and the network address management process may be directly ended.
步骤 404中, 路由节点收回处于闲置状态的网络地址后, 可以从邻居表 中删除被收回网络地址的终端节点的相关信息, 释放路由节点的存储空间, 以便存储其它必要信息, 提高存储空间利用率。 也可以仅从邻居表中删除被 收回网络地址的终端节点的原网络地址, 以体现该网络地址当前未被该终端 节点使用。 此外, 步骤 405中, 未对消息进行有效应答的终端节点的数量达到预设 数值时, 也可以执行步骤 406, 以实现对闲置的网络地址的严格控制与管理, 以便分配给后续更需要的终端节点使用。 In step 404, after the routing node reclaims the network address in the idle state, the routing node may delete the related information of the terminal node of the reclaimed network address from the neighbor list, and release the storage space of the routing node, so as to store other necessary information and improve storage space utilization. . It is also possible to delete the original network address of the terminal node of the reclaimed network address only from the neighbor list, so as to reflect that the network address is not currently used by the terminal node. In addition, in step 405, when the number of terminal nodes that do not effectively reply to the message reaches a preset value, step 406 may also be performed to implement strict control and management of the idle network address, so as to be allocated to subsequent more needed terminals. Used by the node.
如图 5所示, 为本发明路由节点实施例一的结构示意图, 该实施例的终 端节点包括获取模块与网络地址管理模块。 其中, 获取模块用于获取该路由 节点管理的其管理的一个或多个终端节点的网络地址的使用状态; 网络地址 管理模块用于在使用状态为闲置状态时, 收回处于闲置状态的网络地址。  As shown in FIG. 5, it is a schematic structural diagram of Embodiment 1 of a routing node according to the present invention. The terminal node of this embodiment includes an obtaining module and a network address management module. The obtaining module is configured to obtain a usage status of a network address of one or more terminal nodes managed by the routing node; and the network address management module is configured to reclaim the network address in an idle state when the usage status is an idle state.
如图 6所示, 为本发明路由节点实施例二的结构示意图, 该实施例可用 于实现如图 1所示实施例的网络地址的处理方法。 该实施例中, 获取模块包 括查询单元与第一比较单元。 其中, 查询单元用于查询分配网络地址的一个 或多个终端节点的业务使用情况; 第一比较单元用于将各终端节点的业务使 用情况与预设标准相比较, 判断各终端节点的业务使用情况是否达到预设标 准, 并将判断结果告知网络地址管理模块; 网络地址管理模块用于收回业务 使用情况未达到预设标准的终端节点的网络地址。  As shown in FIG. 6, FIG. 6 is a schematic structural diagram of Embodiment 2 of a routing node according to the present invention. This embodiment can be used to implement a method for processing a network address in the embodiment shown in FIG. 1. In this embodiment, the acquisition module includes a query unit and a first comparison unit. The query unit is configured to query the service usage of the one or more terminal nodes that allocate the network address; the first comparison unit is configured to compare the service usage of each terminal node with a preset standard, and determine the service usage of each terminal node. Whether the situation reaches the preset standard, and the judgment result is notified to the network address management module; the network address management module is used to recover the network address of the terminal node whose service usage does not reach the preset standard.
进一步地, 如图 6所示, 本发明实施例的路由节点还可以包括第一判断 模块与第二判断模块。 其中, 第一判断模块用于接收终端节点的网络地址请 求,判断路由节点中是否存储有被收回网络地址的终端节点的 IEEE地址; 第 二判断模块用于判断是否有可用网络地址; 网络地址管理模块在有可用网络 地址时, 向被收回网络地址的终端节点分配新网络地址。 增加第一判断模块 与第二判断模块后, 本实施例的路由节点可以实现如图 2所示的流程, 在被 收回网络地址的终端节点与路由节点之间建立关联。  Further, as shown in FIG. 6, the routing node in the embodiment of the present invention may further include a first determining module and a second determining module. The first determining module is configured to receive a network address request of the terminal node, and determine whether the IEEE node of the terminal node with the reclaimed network address is stored in the routing node; the second determining module is configured to determine whether an available network address is available; When the module has an available network address, it assigns a new network address to the terminal node that is reclaimed the network address. After the first judging module and the second judging module are added, the routing node in this embodiment can implement the process shown in FIG. 2, and establish an association between the terminal node that is reclaimed the network address and the routing node.
如图 7所示, 为本发明路由节点实施例三的结构示意图, 该实施例可用 于实现如图 4中步骤 401〜步骤 404所示实施例的流程。 该实施例中, 获取模 块包括发送单元、 第二比较单元与接收单元。 其中, 发送单元用于向表示终 端节点标识与网络地址之间对应关系的邻居表中的各终端节点标识发送需要 各终端节点应答的消息, 接收单元用于接收各终端节点返回的应答消息; 第 二比较单元用于根据发送消息与接收应答消息的情况, 判断各终端节点是否 对消息进行有效应答; 网络地址管理模块用于收回未对消息进行有效应答的 终端节点的网络地址。 图 7所示实施例的路由节点中, 还可以设有删除模块, 用于从邻居表中 删除被收回网络地址的终端节点的相关信息。 As shown in FIG. 7 , it is a schematic structural diagram of Embodiment 3 of the routing node of the present invention. The embodiment can be used to implement the process of the embodiment shown in steps 401 to 404 in FIG. 4 . In this embodiment, the obtaining module comprises a sending unit, a second comparing unit and a receiving unit. The sending unit is configured to send, to each terminal node identifier in the neighbor table indicating the correspondence between the terminal node identifier and the network address, a message that requires a response from each terminal node, where the receiving unit is configured to receive a response message returned by each terminal node; The second comparing unit is configured to determine whether each terminal node effectively responds to the message according to the situation of sending the message and receiving the response message; and the network address management module is configured to reclaim the network address of the terminal node that does not effectively reply to the message. In the routing node of the embodiment shown in FIG. 7, a deletion module may be further disposed to delete related information of the terminal node of the reclaimed network address from the neighbor table.
进一步地, 如图 7所示, 上述路由节点中还可以包括第三判断模块、 查 询单元与第一比较单元。 如图 8所示, 为本发明路由节点实施例四的结构示 意图, 该实施例可用于实现如图 4所示实施例的流程。 第三判断模块用于判 断未对消息进行有效应答的终端节点的数量是否达到预设数值; 查询单元查 询路由节点管理的一个或多个终端节点的业务使用情况; 第一比较单元将各 终端节点的业务使用情况与预设标准相比较, 判断各终端节点的业务使用情 况是否达到预设标准, 并将判断结果告知网络地址管理模块; 网络地址管理 模块收回业务使用情况未达到预设标准的终端节点的网络地址。 查询单与第 一比较单元也可以设置在获取模块中。  Further, as shown in FIG. 7, the routing node may further include a third determining module, a querying unit, and a first comparing unit. As shown in FIG. 8, it is a structural schematic diagram of Embodiment 4 of the routing node of the present invention, and the embodiment can be used to implement the process of the embodiment shown in FIG. The third determining module is configured to determine whether the number of terminal nodes that do not effectively respond to the message reaches a preset value; the query unit queries the service usage of one or more terminal nodes managed by the routing node; the first comparing unit uses each terminal node Comparing the service usage with the preset standard, determining whether the service usage of each terminal node reaches a preset standard, and notifying the network address management module of the judgment result; the network address management module reclaiming the terminal whose service usage does not reach the preset standard The network address of the node. The inquiry list and the first comparison unit can also be set in the acquisition module.
本发明实施例路由节点获取分配给该路由节点管理的一个或多个终端节 点的网络地址的使用状态, 在获知网络地址处于闲置状态时, 收回闲置的网 络地址, 以便向其它请求加入的终端节点分配网络地址, 实现对路由节点的 有限网络地址资源的充分利用, 有效保证在有限网络地址资源条件下, 更多 终端节点可使用 WPAN的业务。  In the embodiment of the present invention, the routing node acquires the usage status of the network address assigned to one or more terminal nodes managed by the routing node, and reclaims the idle network address when the network address is in the idle state, so as to join the terminal node that is requested to join other requests. The network address is allocated to realize the full utilization of the limited network address resources of the routing node, and it is effectively ensured that more terminal nodes can use the service of the WPAN under the condition of limited network address resources.
最后所应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 本发明作限制性理解。 例如: 虽然以上实施例都以 WPAN网络为例, 但本发 明也可以适用于其他网络地址资源有限的网络, 以提高网络地址的利用率。 尽管参照上述较佳实施例对本发明进行了详细说明, 本领域的普通技术人员 应当理解: 其依然可以对本发明的技术方案进行修改或者等同替换, 而这种 修改或者等同替换并不脱离本发明技术方案的精神和范围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention and are not to be construed as limiting. For example, although the above embodiments all take the WPAN network as an example, the present invention can also be applied to other networks with limited network address resources to improve the utilization of network addresses. Although the present invention has been described in detail with reference to the preferred embodiments thereof, those skilled in the art will understand that the invention may be modified or equivalently substituted without departing from the teachings of the present invention. The spirit and scope of the programme.

Claims

权 利 要 求 Rights request
1、 一种网络地址的处理方法, 其特征在于, 包括: A method for processing a network address, comprising:
获取路由节点分配的一个或多个终端节点的网络地址的使用状态; 当所述网络地址的使用状态为闲置状态时, 所述路由节点收回处于闲置 状态的网络地址。  Obtaining a usage status of a network address of one or more terminal nodes allocated by the routing node; when the usage status of the network address is an idle state, the routing node reclaims the network address in an idle state.
2、根据权利要求 1所述的网络地址的处理方法, 其特征在于, 所述获取 路由节点分配的一个或多个终端节点的网络地址的使用状态具体为: 根据所 述一个或多个终端节点的业务使用情况, 获取所述终端节点的网络地址的使 用状态;  The method for processing a network address according to claim 1, wherein the usage status of the network address of the one or more terminal nodes allocated by the routing node is specifically: according to the one or more terminal nodes The service usage situation, obtaining the usage status of the network address of the terminal node;
所述网络地址的使用状态为闲置状态具体为: 使用所述网络地址的终端 节点的业务使用情况未达到预设标准。  The usage status of the network address is an idle state, which is specifically: The service usage of the terminal node that uses the network address does not reach a preset standard.
3、根据权利要求 2所述的网络地址的处理方法, 其特征在于, 所述终端 节点的业务使用情况具体为: 所述终端节点使用业务的时间, 和 /或所述终端 节点使用的业务量, 和 /或所述终端使用业务与未使用业务的时间比值。  The method for processing a network address according to claim 2, wherein the service usage of the terminal node is specifically: a time when the terminal node uses a service, and/or a service volume used by the terminal node. And/or the time ratio of the terminal using the service to the unused service.
4、根据权利要求 1至 3任意一项所述的网络地址的处理方法,其特征在 于, 所述路由节点收回处于闲置状态的所述网络地址具体为:  The method for processing a network address according to any one of claims 1 to 3, wherein the routing node reclaims the network address in an idle state as follows:
所述路由节点从表示终端节点标识与网络地址之间对应关系的邻居表中 删除被收回网络地址的终端节点标识与被收回的网络地址之间的对应关系信 息。  The routing node deletes correspondence information between the terminal node identifier of the reclaimed network address and the reclaimed network address from the neighbor table indicating the correspondence between the terminal node identifier and the network address.
5、 根据权利要求 4所述的网络地址的处理方法, 其特征在于, 还包括: 被收回网络地址的终端节点与所述路由节点之间重新建立关联。  The method for processing a network address according to claim 4, further comprising: re-establishing association between the terminal node that has reclaimed the network address and the routing node.
6、根据权利要求 5所述的网络地址的处理方法, 其特征在于, 所述被收 回网络地址的终端节点与所述路由节点之间重新建立关联包括:  The method for processing a network address according to claim 5, wherein the re-establishing the association between the terminal node that receives the network address and the routing node includes:
所述路由节点接收所述被收回网络地址的终端节点发送的网络地址请 求, 该网络地址请求中携带有所述被收回网络地址的终端节点的 IEEE地址; 所述路由节点判断是否存储有所述被收回网络地址的终端节点的 IEEE 地址; Receiving, by the routing node, a network address request sent by the terminal node of the reclaimed network address, where the network address request carries an IEEE address of the terminal node of the reclaimed network address; and the routing node determines whether the stored IEEE of the terminal node that is reclaimed the network address address;
若存储, 则判断是否有可用网络地址;  If it is stored, it is determined whether there is an available network address;
若有可用网络地址, 则向所述被收回网络地址的终端节点分配新网络地 址; 所述终端节点将网络地址设置为所述新网络地址;  If there is a network address available, assign a new network address to the terminal node of the reclaimed network address; the terminal node sets the network address as the new network address;
或者包括:  Or include:
所述路由节点在有可用网络地址时, 向所述被收回网络地址的终端节点 发送新网络地址和网络地址分配命令, 所述网络地址分配命令要求所述终端 节点将网络地址设置为所述新网络地址;  Sending, by the routing node, a new network address and a network address assignment command to the terminal node of the reclaimed network address when the available network address is available, the network address assignment command requesting the terminal node to set the network address to the new website address;
所述路由节点接收被收回网络地址的终端节点将网络地址设置为所述新 网络地址后返回的应答消息。  The routing node receives the response message returned by the terminal node of the reclaimed network address after setting the network address to the new network address.
7、根据权利要求 1所述的网络地址的处理方法, 其特征在于, 所述获取 路由节点分配的一个或多个终端节点的网络地址的使用状态具体为: 所述路 由节点向所述一个或多个终端节点发送需要应答的消息, 通过所述一个或多 个终端节点对该消息的应答情况获取所述一个或多个终端节点的网络地址的 使用状态;  The method for processing a network address according to claim 1, wherein the usage status of the network address of the one or more terminal nodes allocated by the routing node is specifically: the routing node to the one or Transmitting, by the plurality of terminal nodes, a message that needs to be acknowledged, and acquiring, by the one or more terminal nodes, the usage status of the network address of the one or more terminal nodes;
所述网络地址的使用状态为闲置状态具体为: 使用所述网络地址的终端 节点未对所述消息进行有效应答。  The use state of the network address is an idle state, specifically: the terminal node that uses the network address does not effectively reply to the message.
8、根据权利要求 7所述的网络地址的处理方法, 其特征在于, 所述未对 所述消息进行有效应答具体为:  The method for processing a network address according to claim 7, wherein the invalid response to the message is specifically:
9、根据权利要求 7或 8所述的网络地址的处理方法, 其特征在于, 所述 路由节点收回处于闲置状态的所述网络地址的同时或之后, 还包括: The method for processing a network address according to claim 7 or 8, wherein the routing node retracts the network address in the idle state, or after:
所述路由节点从表示终端节点标识与网络地址之间对应关系的邻居表中 删除所述被收回网络地址的终端节点信息。  The routing node deletes the terminal node information of the reclaimed network address from a neighbor table indicating a correspondence between the terminal node identifier and the network address.
10、 根据权利要求 7或 8所述的网络地址的处理方法, 其特征在于, 还 包括: 判断未对所述消息进行有效应答的终端节点的数量是否达到预设数值, 若未达到, 或者不存在未对所述消息进行有效应答的终端节点, 则所述路由 节点还根据所述邻居表中的各终端节点的业务使用情况, 获取分配给所述各 终端节点的网络地址的使用状态, 并收回业务使用未达到预设标准的终端节 点的网络地址。 The method for processing a network address according to claim 7 or 8, further comprising: Determining whether the number of terminal nodes that have not effectively responded to the message reaches a preset value, and if not, or there is no terminal node that does not effectively reply to the message, the routing node is further configured according to the neighbor table. The service usage status of each terminal node in the terminal acquires the usage status of the network address allocated to the terminal nodes, and reclaims the network address of the terminal node whose service usage does not reach the preset standard.
11、 一种路由节点, 其特征在于, 包括:  A routing node, comprising:
获取模块, 用于获取路由节点分配的一个或多个终端节点的网络地址的 使用状态;  An obtaining module, configured to acquire a usage status of a network address of one or more terminal nodes allocated by the routing node;
网络地址管理模块, 用于在所述网络地址的使用状态为闲置状态时, 收 回处于闲置状态的所述网络地址。  The network address management module is configured to: when the use status of the network address is an idle state, reclaim the network address in an idle state.
12、根据权利要求 11所述的路由节点,其特征在于,所述获取模块包括: 查询单元, 用于查询分配网络地址的一个或多个终端节点的业务使用情 况;  The routing node according to claim 11, wherein the obtaining module comprises: a querying unit, configured to query a service usage situation of one or more terminal nodes that allocate a network address;
第一比较单元, 用于判断所述一个或多个终端节点的业务使用情况是否 达到预设标准。  The first comparing unit is configured to determine whether the service usage of the one or more terminal nodes reaches a preset standard.
13、 根据权利要求 11或 12所述的路由节点, 其特征在于, 还包括: 第一判断模块, 用于判断所述路由节点中是否存储有所述被收回网络地 址的终端节点的 IEEE地址;  The routing node according to claim 11 or 12, further comprising: a first determining module, configured to determine whether an IEEE address of the terminal node of the reclaimed network address is stored in the routing node;
第二判断模块, 用于判断是否有可用网络地址;  a second determining module, configured to determine whether an available network address is available;
所述网络地址管理模块在有可用网络地址时, 向所述被收回网络地址的 终端节点分配新网络地址。  The network address management module allocates a new network address to the terminal node of the reclaimed network address when an available network address is available.
14、根据权利要求 11所述的路由节点,其特征在于,所述获取模块包括: 发送单元, 用于向分配网络地址的一个或多个终端节点发送需要所述一 个或多个终端节点应答的消息;  The routing node according to claim 11, wherein the obtaining module comprises: a sending unit, configured to send, to one or more terminal nodes that allocate a network address, that the one or more terminal nodes are required to respond Message
接收单元, 用于接收所述一个或多个终端节点返回的应答消息; 第二比较单元, 用于根据发送所述消息与接收应答消息的情况, 判断所 述各终端节点是否对所述消息进行有效应答。 a receiving unit, configured to receive a response message returned by the one or more terminal nodes, and a second comparing unit, configured to determine, according to the situation that the message is sent and the response message is received Whether each terminal node effectively responds to the message.
15、 根据权利要求 14所述的路由节点, 其特征在于, 还包括: 删除模块, 用于从表示终端节点标识与网络地址之间对应关系的邻居表 中删除所述被收回网络地址的终端节点信息。  The routing node according to claim 14, further comprising: a deleting module, configured to delete the terminal node of the reclaimed network address from a neighbor table indicating a correspondence between the terminal node identifier and the network address information.
16、 根据权利要求 14所述的路由节点, 其特征在于, 还包括: 第三判断模块, 用于判断未对所述消息进行有效应答的终端节点的数量 是否达到预设数值;  The routing node according to claim 14, further comprising: a third determining module, configured to determine whether the number of terminal nodes that do not effectively respond to the message reaches a preset value;
查询单元, 用于在未对所述消息进行有效应答的终端节点的数量未达到 预设数值时, 或者不存在未对所述消息进行有效应答的终端节点时, 查询分 配网络地址的一个或多个终端节点标识对应的业务使用情况;  a querying unit, configured to query one or more network addresses assigned when the number of terminal nodes that do not effectively respond to the message does not reach a preset value, or when there is no terminal node that does not effectively reply to the message The terminal usage identifies the corresponding service usage;
第一比较单元, 用于判断所述各终端节点标识对应的业务使用情况是否 达到预设标准。  The first comparing unit is configured to determine whether the service usage corresponding to the identifier of each terminal node reaches a preset standard.
PCT/CN2008/071653 2007-07-26 2008-07-16 Network address processing method and router node WO2009012694A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710119565.1 2007-07-26
CN2007101195651A CN101355469B (en) 2007-07-26 2007-07-26 Method for processing network address and route node

Publications (1)

Publication Number Publication Date
WO2009012694A1 true WO2009012694A1 (en) 2009-01-29

Family

ID=40281006

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071653 WO2009012694A1 (en) 2007-07-26 2008-07-16 Network address processing method and router node

Country Status (2)

Country Link
CN (1) CN101355469B (en)
WO (1) WO2009012694A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103163407B (en) * 2011-12-13 2016-08-24 浙江明凯照明有限公司 A kind of test the conversion method of multiple TCH test channels in system
CN106341250B (en) 2015-07-10 2019-11-22 南宁富桂精密工业有限公司 Network equipment and network address initialize distribution method
CN107770296B (en) * 2016-08-18 2022-05-13 中兴通讯股份有限公司 Method and device for allocating addresses
WO2018214113A1 (en) * 2017-05-25 2018-11-29 深圳市伊特利网络科技有限公司 Method and system for applying virtual network addresses in network link

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020040407A1 (en) * 2000-09-29 2002-04-04 Lg Electronics Inc. IP address managing apparatus and method in a switching system
US20040151167A1 (en) * 1999-02-09 2004-08-05 Chiussi Fabio Massimo Method and apparatus for guaranteeing data transfer rates and delays in data packet networks using generalized discrete data transfer rate approach
CN1533101A (en) * 2003-03-20 2004-09-29 华为技术有限公司 Checking method for IP address

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100751101B1 (en) * 2004-11-05 2007-08-22 주식회사 팬택앤큐리텔 IP management system and method for a mobile phone
CN100493102C (en) * 2005-12-01 2009-05-27 中国科学院计算技术研究所 Method for distribution of IP address in wideband wireless city area network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040151167A1 (en) * 1999-02-09 2004-08-05 Chiussi Fabio Massimo Method and apparatus for guaranteeing data transfer rates and delays in data packet networks using generalized discrete data transfer rate approach
US20020040407A1 (en) * 2000-09-29 2002-04-04 Lg Electronics Inc. IP address managing apparatus and method in a switching system
CN1533101A (en) * 2003-03-20 2004-09-29 华为技术有限公司 Checking method for IP address

Also Published As

Publication number Publication date
CN101355469B (en) 2011-04-20
CN101355469A (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN110012437B (en) Method, device and system for sending multicast message
EP4149084B1 (en) Address management method and system, and device
WO2019158010A1 (en) Resource management method, device and system
US10798770B2 (en) Method, apparatus, and system for establishing session
WO2018153253A1 (en) Method, apparatus and system for selecting session management functional entity
CN106790732B (en) Address translation method, device and system, and network identification control method and device
CN111432044B (en) Multi-link equipment MAC address management method and device and multi-link equipment
WO2018170755A1 (en) Communication method and device
CN110337150B (en) Bearing control method and system
EP3742785B1 (en) Session management method and device
KR102392120B1 (en) Processing method, device and system for nf component abnormality
JP5507004B2 (en) Bearer resource allocation method and apparatus
WO2004084496A1 (en) A method for implementing gateway dynamic load distribution
WO2012079474A1 (en) Address allocation processing method, apparatus, and system
WO2007051407A1 (en) Evolved mobile communication system and a terminal register method thereof
WO2009009940A1 (en) A mobile terminal registration method in a radio network
JP2013526191A5 (en)
US8059598B2 (en) Wireless communication system and method for managing service flow identifier in the same
WO2007041899A1 (en) A system and method of managing the dynamic adaptive distributed resource
WO2009000214A1 (en) Method and device for configuring configuration data of user access network
WO2009012694A1 (en) Network address processing method and router node
JP2021520659A (en) How to request mobile communication network components and services
WO2009009938A1 (en) A method for routing when a service is activated by a mobile terminal in a radio network
CN102958128B (en) The method connected for UE service selection PDN and device
US20090059840A1 (en) Wireless communication system and method for managing service flow identifier in the same

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08783701

Country of ref document: EP

Kind code of ref document: A1