05. Addressing and Networks
Addressing and Networks
Addressing And Networking 1
/22 Addresses Available?
QUESTION:
How many individual addresses are there on a /22
network (recall that several of them are reserved).
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
Addressing And Networking 2
Review of Binary Conversion and the AND operator
If you watched that video and wondered, "How do I convert to binary?" and "What's an AND operation?", don't worry because the following resources will explain the basics to you.
If you'd like to learn how to convert decimal to binary by hand, read this tutorial on the subject.
Once you understand how the math works and have practiced a conversion or two, you'll probably want to use an online conversion tool for efficiency's sake. The following two tools were used to perform the conversions seen in the video,
Additionally, the process of determining the network address given an address of a host on the network and the subnet mask requires you to perform a logical AND operation. The AND operator compares two inputs to produce an output. In the case of the address and mask, it compared each bit position individually.
The following truth table summarizes which inputs produce what output.
Input 1 | Input 2 | Output |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
You read the table above from left to right. In the first row, Input 1 is 0
, Input 2 is also a 0
. If you do a logical AND of 0
and 0
, you'll get another 0
. The second and third rows are both doing a logical and of a zero and a one (albeit, in different orders) and both result in 0
. The last row is the interesting one; a logical AND of 1
and 1
equals 1
! So the logical AND is actually very simple - the output is only 1
when both inputs have values of 1
.
Happy Converting!
Quizzes
Same Subnet? 1
SOLUTION:
- 122.48.200.200
- 122.48.193.61
Same Subnet? 2
QUESTION:
Write an IP address that is in same subnet as 172.254.3.17/8.
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
Reserved Addresses on a Netblock
If you recall, the number of addresses that are available for use in a netblock were reduced by three, because those three addresses are reserved for something. Well, what are they?
- The first address (
.0
) is used for identification of the network, - the follow address (
.1
) is often assigned to the router, - the last address (
.255
) is called the broadcast address. Anything sent to the broadcast address will be sent out to all devices on the network.
Additional Resources
Some basic reading on subnetworks and Classless Inter-Domain Routing (CIDR):
- Subnetworks,
- A good read on CIDR with a helpful table on all IPv4 CIDR blocks.
And several technical reports on the following subjects: