Comparing IPv4 addresses and telephone numbers 1 How are the
Comparing IPv4 addresses and telephone numbers,
1. How are they alike in function and structure?
2. How are they different?
Solution
1. In both, around 12-bit numbers, we have to place to store the IP address and telephone number.
Each number have divided into subpart like first is the class of network and then the small section of network and last the local network. Same like telephone number have started with a country then by state number and at last local numbers.
So in both case we can define the structure with four parts, each part has particular definition and their usages. We can also create functions for this such as get global_address() or get country_name() by get main_address().
2. There are difference such as range of numbers.
In Phone numbers, we can 1 trillion numbers with 12 digits.
In Ip addresses only 2^8^4.
Other difference is IP address is only used for Computer and mac address. we are not able to replace each one by another one.
