Method and apparatus for determining cooperation node
AssigneeZte Corporation
InventorsKun Yang, Hao Wu, Songjie Liu, Jing Ren
Life of this patent
Estimating the term…
Abstract
Provided is a method and apparatus for determining a cooperation node. The method includes: acquiring first location information of a target node when it is required to allocate a cooperation node to the target node; and selecting, from a plurality of nodes, the cooperation node satisfying a preset location requirement for the target node based on the first location information, where the plurality of nodes and the target node are located in a same network, and the preset location requirement refers to that the target node and the cooperation node do not have a common parent node or have a lowest-level common parent node closest to a root node.
Claims17
A method for determining a cooperating node, comprising:
- acquiring first location information of a target node when it is required to allocate a cooperating node to the target node;
- and
- selecting, from a plurality of nodes, the cooperating node satisfying a preset location requirement for the target node based on the first location information, wherein the plurality of nodes and the target node are located in a same network, and the preset location requirement refers to that the target node and the cooperating node do not have a common parent node or have a lowest-level common parent node closest to a root node;
- wherein the selecting, from a plurality of nodes, the cooperating node satisfying a preset location requirement for the target node based on the first location information comprises:
- acquiring a plurality of pieces of second location information of the plurality of nodes, wherein each of the plurality of nodes corresponds to one piece of second location information;
- and selecting, from the plurality of nodes and based on the plurality of pieces of second location information and the first location information, a node satisfying the preset location requirement as the cooperating node;
- wherein the selecting, from the plurality of node and based on the plurality of pieces of second location information and the first location information, a node satisfying the preset location requirement as the cooperating node comprises:
- acquiring first encoded information for representing the first location information and a plurality of pieces of second encoded information for representing the plurality of pieces of second location information;
- comparing, from a most significant bit, a plurality of encoded bits of the first encoded information with a plurality of encoded bits of each of the plurality of pieces of second encoded information, and searching the plurality of pieces of second encoded information for target encoded information having a maximum number of continuous non-coincident encoded bits with the first encoded information from the most significant bit and taking a node corresponding to the target encoded information as the cooperating node.
An apparatus for determining a cooperating node, comprising a processor and a storage device, wherein the storage device stores processor-executable programs, and the programs comprise:
- a first acquisition unit, which is configured to acquire first location information of a target node when it is required to allocate a cooperating node to the target node;
- and
- a selection unit, which is configured to select, from a plurality of nodes, the cooperating node satisfying a preset location requirement for the target node based on the first location information, wherein the plurality of nodes and the target node are located in a same network, and the preset location requirement refers to that the target node and the cooperating node do not have a common parent node or have a lowest-level common parent node closest to a root node;
- wherein the selection unit comprises:
- an acquisition module, which is configured to acquire a plurality of pieces of second location information of the plurality of nodes, wherein each of the plurality of nodes corresponds to one piece of second location information;
- and a selection module, which is configured to select, from the plurality of nodes and based on the plurality of pieces of second location information and the first location information, a node satisfying the preset location requirement as the cooperating node;
- wherein the selection module comprises:
- a first acquisition submodule, which is configured to acquire first encoded information for representing the first location information and a plurality of pieces of second encoded information for representing the plurality of pieces of second location information;
- a search submodule, which is configured to compare, from a most significant bit, a plurality of encoded bits of the first encoded information with a plurality of encoded bits of each of the plurality of pieces of second encoded information, and search the plurality of pieces of second encoded information for target encoded information having a maximum number of continuous non-coincident encoded bits with the first encoded information from the most significant bit and an operation submodule, which is configured to take a node corresponding to the target encoded information as the cooperating node.
Dependencies are inferred from the claim text.