Chapter 7 - IP Addressing Flashcards
What is binary?
A numbering system that consists of the numbers 0 and 1, called bits.
Why is binary important to understand?
Hosts, servers, and network devices use binary addressing to identify each other. Specifically binary IPv4 addresses.
What does an IP address consist of?
A string of 32 bits, divided into four section called octets. Each octet contains 8 bits (or one byte) separated with a dot.
I.e.: 11000000.10101000.00001010.00001010.
What makes IPv4 addresses easier to understand?
IPv4 addresses are commonly expressed in dotted decimal notation, which is each of the 4 bytes of the address expressed as it’s decimal numbering system equivalent..
i.e.: 192.168.10.10
What is the decimal number 2168 expressed in long form?
2 * 1000 (10^3) = 2000
1 * 100 (10^2) = 100
6 * 10 (10^1) = 60
8 * 1 (10^0) = 8
How would you express the decimal number 168 as a binary number?
10101000. 1 * 128 (2^7) = 128 0 * 64 (2^6) = 0 1 * 32 (2^5) = 32 0 * 16 (2^4) = 0 1 * 8 (2^3) = 8 0 * 4 (2^2) = 0 0 * 2 (2^1) = 0 0 * 1 (2^0) = 0 128 + 32 + 8 = 168
T/F: Some binary digits can be expressed in multiple ways.
False, just like decimal, there is only one way to express a binary number.
i.e. 100 is the only way to represent 4 in binary
How would you express the binary number 01101101 as a decimal number?
109 0 * 128 (2^7) = 0 1 * 64 (2^6) = 64 1 * 32 (2^5) = 32 0 * 16 (2^4) = 0 1 * 8 (2^3) = 8 1 * 4 (2^2) = 4 0 * 2 (2^1) = 0 1 * 1 (2^0) = 1 64 + 32 + 8 + 4 + 1 = 109
How would you express the IP address 11000000.10101000.00000001.01100101 in decimal?
192.168.1.105 Divide the IP address into it's 4 octets and then convert each one from binary to a decimal number: 11000000 = 192 10101000 = 168 00000001 = 1 01100101 = 105
What is positional notation?
Positional notation means that a digit represents different values depending on the position the digit occupies in a sequence of numbers.
i.e.
1234 in decimal.
4 is in the 0th position, and represents 4 * 10^0
3 is in the 1st position, and represents 3 * 10^1
2 is in the 2nd position, and represents 2 * 10^2
1 is in the 3rd position, and represents 1 * 10^3
What is the radix?
The radix is the base number of the numbering system. In decimal the radix is 10. In binary the radix is 2.
How would you express 192.168.10.11 in binary?
11000000.10101000.00001010.00001011
What are the portions of an IPv4 address? How is this represented?
A network portion and a host portion. Within the 32 bit IP address, a portion of the bits identify the network, and a portion of the bits identify the host.
How are the network bits and host bits different?
The network bits must be identical for all devices that reside on the same network. If two hosts have the same bit-pattern in the network portion, those two hosts will reside on the same network.
The host bits must be unique to identify a specific host within a network.
What is the subnet mask? What does a subnet mask of 255.255.255.0 mean?
It is the way that hosts know which portion of the 32-bit IPv4 address identifies the network and which identifies the host.
A subnet mask of 255.255.255.0 is equivalent to 11111111.11111111.11111111.00000000. When compared to an IP address, such as 192.168.10.10, or 11000000.10101000.00001010.00001010 the digits of each binary number are compared against each other. The 1s in the subnet mask identify the network portion, while the 0s identify the host portion. This means that 11000000.10101000.00001010 is the network portion and 00001010 is the host portion.
What is the logical AND?
Logical AND is the comparison of two bits that produce results as shown below: 1 AND 1 = 1 1 AND 0 = 0 0 AND 0 = 0 1 AND 0 = 0
How is logical AND used to identify the network address?
The IPv4 address is logically ANDed, bit by bit, with the subnet mask. ANDing between the address and the subnet mask yields the network address.
Logical AND 192.168.10.10 and 255.255.255.0. What is the resulting network address?
First you have to convert into binary, then bitwise AND each digit.
11000000.10101000.00001010.00001010
11111111.11111111.11111111.00000000
This gives you a result of:
11000000.10101000.00001010.00000000
The resulting network address is 192.168.10.0.
The prefix length?
The prefix length is an alternate shorthand method of identifying a subnet mask. It is the number of bits set to 1 in the subnet mask, written in slash notation, which is a “/” followed by the number of bits set to 1.
For example 11111111.11111111.11111111.00000000 is “/24”
11111111.00000000.00000000.00000000 is “/8”
What is the first and last host address?
First Host Address: The first available host IP address in a network. The host portion always has all 0s except the last bit, which is a 1. i.e.: 00000001
Last Host Address: The last available host IP address in a network. The host portion always has all 1s except the last bit which is a 0. i.e.: 11111110
The range from the First Host Address to the Last Host Address represents the entire possible range of host addresses in a given network.
What is the broadcast address?
A special address that communicates with all hosts in a network. For instance, when a host sends a packet to the network broadcast IPv4 address, all other hosts in the network receive the packet. The broadcast address uses the highest address in the network range, the host portion is all 1s.
What is a static IP address? When are they used?
An IP address that does not change. In networks some devices require a fixed IP address, for instances, printers, servers, and networking devices. A host can also be configured with a static IPv4 address, however for large networks it would be time-consuming to enter static addresses on each host.
What is a dynamic IP address? How are they assigned? When are they used?
An IP address that can change.
Dynamic IP addresses are often used for PCs, tablets, smartphones, printers, and IP phones. These devices make up the largest population of hosts in most networks. The user population and their devices also change frequently which would make it impractical to statically assign IPv4 addresses for each device.
What is DHCP, and what benefits does it provide?
Devices are assigned IPv4 addresses dynamically using the Dynamic Host Configuration Protocol (DHCP). A DHCP server will provide a DHCP client with an IPv4 address, a subnet mask, a default gateway, and other configuration information. DHCP does not permanently assign an address to a host, it is only “leased” for a period of time. If the host is powered down or taken off the network, the address is returned to the pool for reuse. This is especially helpful for mobile users that come and go on a network.
What is the range of unicast host addresses?
0.0.0.0 to 223.255.255.255. However there are many addresses in this range reserved for special purposes.
What are the types of broadcasts? What do each do?
A directed broadcast is sent to all hosts on a specific network. For example. a host on the 172.16.4.0/24 network sends a packet to 172.16.4.255.
A limited broadcast is sent to 255.255.255.255.
By default, routers do not forward broadcasts.