Hierarchical address arithmetic algorithm


I invented this algoritm a while back. It allows you to perform arithmetic operations ( add, subtract) on any hierarchical address scheme. 


IP example: 1.1.1.255 + 257 = 1.1.3.0
Generic example:  For a scheme: a[1-2]/b[3-4]/c[5-6]: a1/b3/c6 + 3 = a2/b3/c5

Notes:
A hierarchical address (HA) or multi-level address is a logical address divided into levels in left to right order of significance. IP address 1.1.1.1 and Termination ID tdm/3/28/24 (RFC 3525) are examples of hierarchical address.

Hierarchical Address can also be in binary form by using hierarchical address table to define level/significance.

Advertisements
Hierarchical address arithmetic algorithm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s