Question: commonly known as the compressed format. 10. [8p] Write two JAVA methods that will compress a given Full format IPv6 into compressed format and vice-versa.

 commonly known as the compressed format. 10. [8p] Write two JAVA

commonly known as the compressed format. 10. [8p] Write two JAVA methods that will compress a given Full format IPv6 into compressed format and vice-versa. All samples in the slide 8.2.2.4 must be tested. Incorrect address: 2001:0DB8::ABCD::1234 class IPv6 { public static void main(String[] args) { // Below should print: 2001: DB8:0:1111::200 System.out.println (compressIPv6 ("2001:0DB8:0000:1111:0000:0000:0000:0200") ; // test others... Possible expansions of ambiguous compressed addresses: // Below should print: 2001:0DB8:0000:1111:0000:0000:0000:0200 Systemindutikintin (decompressIPv6 ("2001: DB8:0:1111::200") L. // thers... 2001:0DB8::ABCD:0000:0000:1234 est } 2001:0DB8::ABCD:0000:0000:0000:1234 public static String compressIPv6 (String full_ipv6) { return""; // fill } 2001:0DB8:0000:ABCD::1234 2001:0DB8:0000:0000:ABCD::1234 public static String decompressIPv6 (String compressed_ipv6) { return""; // fill } The Figures 1 to 7 show several examples of the how using the double colon (:) and omitting leading Os can reduce the size of an IPv6 address. commonly known as the compressed format. 10. [8p] Write two JAVA methods that will compress a given Full format IPv6 into compressed format and vice-versa. All samples in the slide 8.2.2.4 must be tested. Incorrect address: 2001:0DB8::ABCD::1234 class IPv6 { public static void main(String[] args) { // Below should print: 2001: DB8:0:1111::200 System.out.println (compressIPv6 ("2001:0DB8:0000:1111:0000:0000:0000:0200") ; // test others... Possible expansions of ambiguous compressed addresses: // Below should print: 2001:0DB8:0000:1111:0000:0000:0000:0200 Systemindutikintin (decompressIPv6 ("2001: DB8:0:1111::200") L. // thers... 2001:0DB8::ABCD:0000:0000:1234 est } 2001:0DB8::ABCD:0000:0000:0000:1234 public static String compressIPv6 (String full_ipv6) { return""; // fill } 2001:0DB8:0000:ABCD::1234 2001:0DB8:0000:0000:ABCD::1234 public static String decompressIPv6 (String compressed_ipv6) { return""; // fill } The Figures 1 to 7 show several examples of the how using the double colon (:) and omitting leading Os can reduce the size of an IPv6 address

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!