IP Library Granted Patent US 9,985,841
Granted Patent B2
US 9,985,841 · App. 15/191,549 · Granted May 29, 2018

Method for network address allocation and network device using the same

Inventor: Lu Fan (Shenzhen, CN)
Assignee: NANNING FUGUI PRECISION INDUSTRIAL CO., LTD.
H04L41/12H04L61/2038
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,985,841
App. No.
15/191,549
Granted
May 29, 2018
Kind
B2
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.

Claims (153)

1. 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).

2. The method as claimed in claim 1 , wherein calculating N according to M is performed using a calculation formula: N=2 M −1, where M is a number of the bits of the address of the node in the network.

3. The method as claimed in claim 1 , wherein calculating Npre according to L comprises:

calculating Cpre according to L and N, and

C

pre

=

[

N

1

L

]

,

 wherein Cpre is a maximum number of sub-nodes of each node in the network;

calculating Npre according to L and Cpre, and C pre L +C pre L-1 +C pre L-2 + . . . C pre =N pre .

4. The method as claimed in claim 1 , wherein calculating Cmax and NA according to the comparison result of Npre and N comprises:

calculating Cmax=Cpre, and NA=Npre when Npre≤N;

calculating Cmax=Cpre−1, and N A =C max L +C max L-1 +C max L-2 + . . . C max when Npre>N.

5. The method as claimed in claim 1 , wherein calculating Cskip(i) according to Cmax and NA is performed using a calculation formula:

C

skip

(

i

)

=

{

N

A

C

max

i

=

1

N

A

-

C

max

i

-

1

-

C

max

i

-

2

C

max

1

C

max

i

i

>

1

}

.

6. The method as claimed in claim 1 , wherein allocating the network addresses of the parent nodes to each node in layer i of the network according to Cskip(i) comprises:

allocating Cskip(i+1) to each node in layer i+1 from Cskip(i) by the node in layer i, wherein Cskip(i+1) is the addresses of each node in layer i+1 to be allocated; and

allocating Cskip(1) to each node in layer 1 from NA by the root node;

keeping the non-allocated addresses of Cskip(i) by the nodes in layer i.

7. The method as claimed in claim 1 , further comprises:

keeping Nrest by the root node in the network, wherein Nrest is the remaining non allocated addresses, and Nrest=N−NA.

8. 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).

9. The network device of claim 8 , wherein the one or more programs further include instructions for:

calculating N according to M follows the calculation formula: N=2 M −1, where M is a number of the bits of the address of the node;

calculating Cpre according to L and N, and

C

pre

=

[

N

1

L

]

,

 wherein Cpre is a maximum number of sub-nodes of each node in the network;

calculating Npre according to L and Cpre, and C pre L +C pre L-1 +C pre L-2 + . . . C pre =N pre .

10. The network device of claim 8 , wherein the one or more programs further include instructions for:

calculating Cmax=Cpre, and NA=Npre when Npre≤N;

calculating Cmax=Cpre−1, and N A =C max L +C max L-1 +C max L-2 + . . . C max when Npre>N.

11. The network device of claim 8 , wherein the one or more programs further include instructions for:

calculating Cskip(i) according to Cmax and NA, and

C

skip

(

i

)

=

{

N

A

C

max

i

=

1

N

A

-

C

max

i

-

1

-

C

max

i

-

2

C

max

1

C

max

i

i

>

1

}

.

12. The network device of claim 8 , wherein the one or more programs further include instructions for:

allocating Cskip(i+1) to each node in layer i+1 from Cskip(i) by the node in layer i, wherein Cskip(i+1) is the addresses of each node in layer i+1 to be allocated; and

allocating Cskip(1) to each node in layer 1 from NA by the root node.

13. The network device of claim 8 , wherein the one or more programs further include instructions for:

keeping the non-allocated addresses of Cskip(i) by the nodes in layer i;

keeping Nrest by the root node in the network, wherein Nrest is the remaining non allocated addresses, and Nrest=N−NA.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 27, 2018
From: NANNING FUGUI PRECISION INDUSTRIAL CO., LTD.; HON HAI PRECISION INDUSTRY CO., LTD.
To: NANNING FUGUI PRECISION INDUSTRIAL CO., LTD.
Reel/Frame 045171/0347 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 24, 2016
From: FAN, LU
To: NANNING FUGUI PRECISION INDUSTRIAL CO., LTD.; HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 039153/0181 →
Priority Claims (1)
CN 2015 1 0405695 · Jul 10, 2015 · national
Continuity (1)
Related Publication 20170012934A1 · Jan 12, 2017