Company: IBM_28thjuly
Difficulty: medium
Problem Description In order to uniquely identify the devices on the computer network, each device is allotted an Internet Protocol address (IP address). There are 2 versions of address formats in use i.e. IPv4 which 32 bits in length and IPv6 having 128 bits. Modern devices use IPv6 but in order to communicate with devices supporting only IPv4, the conversion from IPv4 to IPv6 and vice versa. Also, the IPv4 addresses of the format 127.x.x.x (where x means any octet value) are the loopback addresses and the equivalent of it in IPv6 is ::1. Consider the IP address 192.168.10.92. The 4 octets of the IP address would be 192, 168, 10 and 92 and the hexadecimal equivalent of these octets are C0, A8, 0A and 5C. Then, the first and second are concatenated and third and fourth are concatenated to get C0A8 and 0A5C. Finally, the IPv6 is formed as ::FFFF:C0A8:0A5C. (The FFFF in the IPv6 address is a constant and should appear in all IPv4 to IPv6 converted address except the loopback address.) Si