Exercise 17 IP addresses are important for computers to be able to communicate with eachother on the Internet. They identify a 'host' (personal computers are a kind of host) and enable other hosts to...


Exercise 17<br>IP addresses are important for computers to be able to communicate with eachother on the Internet.<br>They identify a 'host' (personal computers are a kind of host) and enable other hosts to pass information to it, similar<br>Develop a regular expression that matches a well formed IPV4 address in dot-decimal notation.<br>an home address for physical packages or mail.<br>An IPV4 address follows the scheme below:<br>• 4 numbers that are separated by dots.<br>• The first number is within the range of o and 223.<br>• The second number is within the range of 0 and 255.<br>• The third number is within the range of o and 255.<br>• The fourth number is within the range of o and 255.<br>• There may be a subnet mask at the end of the address, which has a slash '/' followed by a number between 1 and 30.<br>Exercise 17<br>Test Strings:<br>Test Suite: (Should be ACCEPTED)<br>REJECT: 127.0.0.1<br>REJECT: 192.168.0.254<br>REJECT: 10.4.1.211<br>REJECT: 6.147.190.64<br>REJECT: 202.156.3.78<br>REJECT: 0.0.0.0<br>REJECT: 192.168.1.1/12<br>REJECT: 10.24.3.2/30<br>Test Suite: (Should be REJECTED):<br>REJECT: 128.2.14.257<br>REJECT: 127.0.0.00<br>REJECT: 192.168.01.5<br>REJECT: 233.134.2.3<br>REJECT: a.0.0.1<br>REJECT: 127.b.0.1<br>REJECT: 192.169.c.3<br>REJECT: 102.34.2.d<br>REJECT: 127..0.0.1<br>REJECT: 8.5.4.2.<br>REJECT: 192.168.1.1/<br>REJECT: 192.168.1.1/33<br>

Extracted text: Exercise 17 IP addresses are important for computers to be able to communicate with eachother on the Internet. They identify a 'host' (personal computers are a kind of host) and enable other hosts to pass information to it, similar Develop a regular expression that matches a well formed IPV4 address in dot-decimal notation. an home address for physical packages or mail. An IPV4 address follows the scheme below: • 4 numbers that are separated by dots. • The first number is within the range of o and 223. • The second number is within the range of 0 and 255. • The third number is within the range of o and 255. • The fourth number is within the range of o and 255. • There may be a subnet mask at the end of the address, which has a slash '/' followed by a number between 1 and 30. Exercise 17 Test Strings: Test Suite: (Should be ACCEPTED) REJECT: 127.0.0.1 REJECT: 192.168.0.254 REJECT: 10.4.1.211 REJECT: 6.147.190.64 REJECT: 202.156.3.78 REJECT: 0.0.0.0 REJECT: 192.168.1.1/12 REJECT: 10.24.3.2/30 Test Suite: (Should be REJECTED): REJECT: 128.2.14.257 REJECT: 127.0.0.00 REJECT: 192.168.01.5 REJECT: 233.134.2.3 REJECT: a.0.0.1 REJECT: 127.b.0.1 REJECT: 192.169.c.3 REJECT: 102.34.2.d REJECT: 127..0.0.1 REJECT: 8.5.4.2. REJECT: 192.168.1.1/ REJECT: 192.168.1.1/33

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here