Method for network address allocation and network device using the same
AssigneesNanning Fugui Precision Industrial Co., Ltd., Hon Hai Precision Industry Co., Ltd.
InventorLU FAN
Life of this patent
Estimating the term…
Abstract
The present disclosure recites a network address allocation method which including steps: calculating a preset number Npre of the addresses of the network according to a number L of layers of the network; comparing Npre with a maximum number N of the addresses of the network; calculating a maximum available number Cmax of the sub-nodes of each node and a maximum number NA of the network address to be allocated in the network according to the compare result of the Npre and the N; calculating the addresses Cskip(i) of the nodes of the layer i to be allocated according to Cmax and NA, wherein i is in the range of 1˜L; allocating Cskip(i) to each node of the layer i of the network. The present disclosure also provides a Network device for Network address allocation.
Claims13
A method for network addresses allocation, comprising:
- calculating Npre according to L, wherein Npre is a preset address number of a network topology for allocation and L is a number of layers of the network topology;
- comparing Npre and N, wherein N is a maximum number of the available network addresses in the network;
- calculating Cmax and NA according to the comparison result of Npre and N, wherein Cmax is a maximum number of available sub-nodes for each node, and NA is an actual number of network addresses to be allocated in the network;
- calculating Cskip(i) according to Cmax and NA, wherein Cskip(i) is an addresses of each node in layer i of the network to be allocated, wherein i is in the range of 1˜L;
- allocating the network addresses of the parent nodes to each node in layer i of the network according to Cskip(i).
A network device for network addresses allocation, comprising:
- at least one processor;
- a non-transitory storage system coupled to the at least one processor and configured to store one or more programs that are executed by the at least one processor, the one or more programs including instructions for:
- calculating Npre according to L, wherein Npre is a preset number addresses of a network topology for allocation and L is a number of layers of the network topology;
- comparing Npre and N, wherein N is a maximum number of the available network addresses in the network;
- calculating Cmax and NA according to the comparison result of Npre and N, wherein Cmax is a maximum number of a available sub-nodes for each node, and NA is an actual number of a network addresses to be allocated in the network;
- calculating Cskip(i) according to Cmax and NA, wherein Cskip(i) is an addresses of each node in layer i of the network to be allocated, wherein i is in the range of 1˜L;
- allocating the network addresses of the parent node to each node in layer i of the network according to Cskip(i).
Dependencies are inferred from the claim text.