Messer - 1. Networking Concepts (Part 2 of 2) Flashcards
Draw Prof. Messer’s binary-to-decimal conversion chart.
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0
[You can continue extending this to the left, but not necessary for IP addresses because each part of an IP address is 8 bits = 1 byte = 1 octet.. Put another way, if you add up all the numbers above, you get 255, which is most you can have]
Using Prof. Messer’s binary-to-decimal conversion chart, convert 00000010 to decimal.
2
Using Prof. Messer’s binary-to-decimal conversion chart, convert 10000000 to decimal.
128
Using Prof. Messer’s binary-to-decimal conversion chart, convert 10000010 to decimal.
130
Using Prof. Messer’s binary-to-decimal conversion chart, convert 11111111 to decimal.
255
Using Prof. Messer’s binary-to-decimal conversion chart, convert 32 to binary.
00100000
Using Prof. Messer’s binary-to-decimal conversion chart, convert 63 to binary.
00111111
Using Prof. Messer’s binary-to-decimal conversion chart, convert 122 to binary.
01111010
- 168.1.165 is a ________.
255. 255.255.0 is a _______.
IP address (IPv4) subnet mask
What is a Default Gateway?
The node (e.g. router) that allows you to communicate outside of your local subnet.
The node in a computer network using the internet protocol suite that serves as the forwarding host to other networks when no other route specification matches the destination IP address of a packet.
In a home or small office environment, the default gateway is a device, such as a DSL router or cable router, that connects the local network to the Internet.
The Default Gateway must be an _____ on the ______.
IP address
local subnet
If you want to communicate within a network, you only need a _____ and _______. But if you want to communicate outside a network, you also need _________.
IP address
Subnet Mask
Gateway IP address
What is the purpose of a subnet mask?
Divides IP address into two parts that identify host computer and network. (A host will then use the subnet mask to know if destination is on local or remote network.)
[Repeating this question]
If your IP address is 192.168.1.165, and your subnet mask is 255.255.255.0, what are your network and host addresses?
Network: 192.158.1.0
Host: 0.0.0.165
All devices have a special IPv4 address called a _______, which provides an easy way to self-reference when trouble-shooting.
loopback address
Depending on the operating system, loopback addresses can range from _______ to _______. However, some operating systems only recognize _________.
- 0.0.1
- 255.255.254
- 0.0.1
How would you use a loopback address to ensure that a TCP/IP stack is working properly on a device.
In that device’s command line, type the following:
ping 127.0.0.1
_______ addresses are set aside for future use or testing, and range from _______ to _________.
Reserved
- 0.0.1
- 255.255.254
[Not to be confused with private addresses]
VIP (or VIPA) stands for _______.
Virtual IP Address
What is a Virtual IP Address?
An IP address that doesn’t correspond to an actual physical network interface. Used for network address translation, fault-tolerance, mobility, etc.
_____ subnetting has not been used since 1993 because ________. However, knowing subnet _____ is still helpful as a starting point for subnetting.
Classful
not an efficient way of IP addressing
classes
Draw a chart with the three main subnet classes you need to know, the leading bits that determine the class of an IP address, and the associated default subnet mask.
Class Leading Bits Default Subnet Mask A 0xxx (1-126) 255.0.0.0 B 10xx (128-191) 255.255.0.0 C 110x (192-223) 255.255.255.0
What is the class and default subnet mask of the following IP address?
17.22.90.7
Class A
255.0.0.0
What is the class and default subnet mask of the following IP address?
220.10.77.40
Class C
255.255.255.0
What is the class and default subnet mask of the following IP address?
165.245.0.1
Class B
255.255.0.0
What is the class and default subnet mask of the following IP address?
128.90.10.2
Class B
255.255.0.0
What is the class and default subnet mask of the following IP address?
191.77.24.250
Class B
255.255.0.0
What is the class and default subnet mask of the following IP address?
192.1.12.5
Class C
255.255.255.0
Given an IP address and subnet mask, how do you determine the network address?
This is equal to the first IP address of a subnet, which you can get by setting all host bits to 0 (0 decimal)
Given an IP address and subnet mask, how do you determine the first usable host address?
This is simply one number higher than the network address
Given an IP address and subnet mask, how do you determine the network broadcast address?
This is the last IP address of a subnet, which you get by setting all host bits to 1 (255 decimal)
Given an IP address and subnet mask, how do you determine the last usable host address?
This is simply one number lower than the broadcast address
10.74.222.11
For the above IP address, determine the following: Class Subnet Mask Network Address First Host Address Broadcast Address Last Available Host Address
Class: A
Subnet Mask: 255.0.0.0
Network Address: 10.0.0.0 (set all host bits to 0)
First Host Address: 10.0.0.1 (add one)
Broadcast Address: 10.255.255.255 (all host bits set to 1)
Last Available Host Address: 10.255.255.254 (subtract 1)
172.16.88.200
For the above IP address, determine the following: Class Subnet Mask Network Address First Host Address Broadcast Address Last Available Host Address
Class: B
Subnet Mask: 255.255.0.0
Network Address: 172.16.0.0 (set all host bits to 0)
First Host Address: 172.16.0.1 (add one)
Broadcast Address: 172.16.255.255 (all host bits set to 1)
Last Available Host Address: 172.16.255.254 (subtract 1)
192.168.4.77
For the above IP address, determine the following: Class Subnet Mask Network Address First Host Address Broadcast Address Last Available Host Address
Class: C
Subnet Mask: 255.255.255.0
Network Address: 192.168.4.0 (set all host bits to 0)
First Host Address: 192.168.4.1 (add one)
Broadcast Address: 192.168.4.255 (all host bits set to 1)
Last Available Host Address: 192.168.4.254 (subtract 1)
CIDR stands for __________.
Classless Inter-Domain Routing
What is CIDR?
A method for allocating IP addresses and for IP routing. Introduced in 1993 to replace the previous classful network addressing. Its goal was to slow the growth of routing tables on routers across the Internet, and to help slow the rapid exhaustion of IPv4 addresses.
[Probably don’t need to know this. Just know CIDR replaced classes, I think]
What is CIDR block notation?
A compact representation of an IP address and its associated network mask. Specifies an IP address, a slash (‘/’) character, and a decimal number. The decimal number is the count of leading 1 bits in the network mask. The number can also be thought of as the width (in bits) of the network prefix.
[Easier than it sounds. See examples below]
CIDR block notation is also known as _______ and _______.
prefix notation
slash notation
Show how a C class subnet mask can be written in decimal, binary, and in CIDR notation.
255.255.255.0
11111111.11111111.11111111.00000000
/24 (24 bits) i.e. the number of ones
(which also means network values will be 24 bits long and host values 8 bits long)
Show how a B class subnet mask can be written in decimal, binary, and in CIDR notation.
255.255.0.0
11111111.11111111.00000000.00000000
/16
Convert subnet class 255.255.255.192 to binary and CIDR notation.
11111111.11111111.11111111.11000000
/26
[Obviously a little harder since you can’t rely on Class A, B, or C conversion. Instead, you have to remember how to convert decimal to binary.]
Convert subnet class 255.224.0.0 to binary and CIDR notation.
11111111.11100000.00000000.00000000
/11
Draw a chart to help convert subnet mask octets from binary to decimal, and vice versa. (Show all nine possible values for a octet)
Binary Decimal 00000000 0 10000000 128 11000000 192 11100000 224 11110000 240 11111000 248 11111100 252 11111110 254 11111111 255
[This is basically just taking our other binary-decimal conversion chart and taking it a step further. You’re just adding 128, then 64, then 32, 16, 8, 4, 2, 1]
Convert /26 to binary and decimal.
- 11111111.11111111.11000000
255. 255.255.192
Convert /20 to binary and decimal.
- 11111111.11110000.00000000
255. 255.240.0
IPv4 addresses are made up of ______ (number) of _______, separated by __________.
IPv6 addresses are made up of ______ (number) of _______, separated by __________.
4
octets (decimal values between 0 and 255)
periods
8
segments (hexadecimal values between 0000 and FFFF)
colons
Each segment of an IPv4 address is ____ bits, and an entire IPv4 address is ______ bits.
Each segment of an IPv6 address is _____ bits, and an entire IPv6 address is _____ bits.
8
32 (8 bits x 4 segments)
16
128 (16 bits x 8 segments)
How IPv6 addresses are assigned:
The _________ provides address blocks to _________, such as _______ in North America, which then assigns smaller subnet blocks to ________, which then probably assign a /48 subnet to the customer.
IANA (Internet Assigned Numbers Authority)
RIRs (Regional Internet Registries)
ARIN
ISPs
Break the following IPv6 address into three component parts:
2600:DDDD:1111:0001:0000:0000:0000:0001
2600:DDDD:1111 - Global Routing Prefix provided by IANA/RIR/ISP (48 bits)
0001 - Locally assigned network ID / Subnet (16 bits)
0000:0000:0000:0001 - Host ID (64 bits)
[Unclear if this is always the case]
Why do we subnet a network?
We can’t connect every device in the world to each other. Not enough bandwidth or resources. Only one device can talk to another at a time. Also allows for segmentation, and perhaps provide additional security (e.g. add firewalls)
[Not totally clear on this]
VLSM stands for __________.
Variable Length Subnet Masks
VLSM can be referred to as _________ addressing, a more efficient alternative to _________.
classless
classful subnetting
Explain how to determine if an IP address with CIDR-block notation is classful or classless.
And then specify whether the following examples are classful or classless
- 0.0.0/8
- 0.1.0/24
- 0.8.0/26
1) Look at first octet of the IP address, and see if it falls in a class range (e.g. Class A = 1-126, Class B = 128=191, Class C = 192-223) So in our example, we see Class A
2) Convert CIDR-block notation to subnet mask. So, in our example, we know that /8 = 11111111.00000000.00000000.00000000. Which equals 255.0.0.0
3) Check that the Class of the IP address matches the appropriate subnet mask for that class. In this case, a class A IP address should have subnet mask of 255.0.0.0.
- 0.0.0/8 IS classful. Because the first bit (10) is Class A, and the subnet mask (255.0.0.0) is also Class A.
- 0.1.0/24 is classless. Because the first bit (10) is class A, but the subnet mask (255.255.255.0) would be class C. Doesn’t match up.
- 0.8.0/26 is also classless. We actually know this because classful will always either be /8, /16, or 24.
Explain how to determine how many subnet bits are in an address.
Take the number in the CIDR-notation and then subtract the number of subnet mask bits you’d expect given an IP address’ class.
How many network bits, subnet bits, and host bits are in the following address?
10.0.0.0/8
Network bits = 8
Subnet bits = 0
Host bits = 24
Explanation: If the address is 10.0.0.0/8, you’d expect it to be Class A, which means the subnet mask is 255.0.0.0. So that’s 8 bits in the subnet mask. 8 CIDR minus the 8 expected = 0 subnet bits. And you have 8 network bits + 24 host bits for a total of 32 bits. (Total should always be 32 for IPv4 address)
How many network bits, subnet bits, and host bits are in the following address?
10.0.1.0/24
Network bits = 8
Subnet bits = 16
Host bits = 8
If the address is 10.0.1.0/24, you expect Class A. Which means 255.0.0.0 (8 bit) subnet mask. But look at the /24. 24 - 8 = 16 subnet bits. And of course you have the 8 network bits. Which leaves 8 host bits. (Subnet bits always borrow from the host bits).
How many network bits, subnet bits, and host bits are in the following address?
10.0.8.0/26
Network bits = 8
Subnet bits = 18
Host bits = 6
You expect class A due to leading bits of IP (10). So you expect 255.0.0.0 (8 bit) subnet mask. 26 - 8 = 18 subnet bits. 32 total bits - 8 network bits - 18 subnet bits = 6 host bits remaining.
When you look at it this way, it becomes very clear:
11111111.11111111.11111111.11000000
How do you calculate number of available subnets?
2^subnet bits
[i.e. 2 to the power of the number of subnet bits. Wondering if I should have a power of twos chart written out?]
How do you calculate number of available hosts per subnet?
2^host bits - 2
For the following address, calculate number of available subnets.
10.0.1.0/24
2^16 = about 65k available subnets
(i.e. 2^subnet bits)
[I guess I’ll either need to memorize powers of two, learn a trick, or write out a chart. He has a chart in his video. Actually, maybe not. This is where we can use Messer’s 7 second subnetting]
For the following address, calculate number of available hosts per subnet.
10.0.1.0/24
2^8 - 2 = 254 available hosts per subnet
i.e. 2^host bits - 2
For the following address, calculate number of available subnets.
192.168.11.0/26
2^2 = 4 available subnets
(i.e. 2^subnet bits)
Explanation: Based on 192, we know Class C, which is 255.255.255.0, or /24 expected. Which means we have 2 subnet bits here (26-24). (Which means 6 host bits, by the way.)
For the following address, calculate number of available hosts per subnet.
192.168.11.0/26
2^6 - 2 = 62 available hosts per subnet
(i.e. 2^host bits - 2)
Explanation: Based on 192, we know Class C, which is 255.255.255.0, or /24 expected. Which means we have 2 subnet bits here (26-24). Which means 6 host bits.
For the following address, calculate number of available subnets.
172.16.55.0/21
2^5 = 32 available subnets
(i.e. 2^subnet bits)
Explanation: 172 means class B, which means we expect 255.255.0.0 (16 bits). We have 21 - 16 = 5 subnet bits
For the following address, calculate number of available hosts per subnet.
172.16.55.0/21
2^11 - 2 = 2046 available hosts per subnet
(i.e. 2^host bits - 2)
[You know, when you’re looking for hosts per subnet, you don’t even need to look at Class. You simply subtract the CIDR notation (21) from number of bits in IPv4 (32), which gives you 11. In other words, host bits is always going to equal 32 - CIDR]
165.245.12.88/24
Using Messer’s two 7-second subnetting charts, identify the following for the above address:
- Network address
- Broadcast address
- First usable IP address
- Last usable IP address
Network address: 165.245.12.0
Broadcast address: 165.245.12.255
First Usable IP address: 165.246.12.1
Last Usable IP address: 165.245.12.254
[Probably best to print out the two charts to use them. Will need to practice drawing them. Not including the drawing process in these cards]
165.245.12.88/26
Using Messer’s two 7-second subnetting charts, identify the following for the above address:
- Network address
- Broadcast address
- First usable IP address
- Last usable IP address
Network address: 165.245.12.64
Broadcast address: 165.245.12.127
First Usable IP address: 165.245.12.65
Last Usable IP address: 165.245.12.126
165.245.12.88/20
Using Messer’s two 7-second subnetting charts, identify the following for the above address:
- Network address
- Broadcast address
- First usable IP address
- Last usable IP address
Network address: 165.245.0.0
Broadcast address: 165.245.15.255
First Usable IP address: 165.245.0.1
Last Usable IP address: 165.245.15.254
18.172.200.77/11
Using Messer’s two 7-second subnetting charts, identify the following for the above address:
- Network address
- Broadcast address
- First usable IP address
- Last usable IP address
Network address: 18.160.0.0
Broadcast address: 18.191.255.255
First Usable IP address: 18.160.0.1
Last Usable IP address: 18.191.255.254
Initially released in 1997, _______ provides automatic IP address configuration for almost any device
DHCP (Dynamic Host Configuration Protocol
The precursor to DHCP was known as ______.
BOOTP
BOOTP stands for _________.
Bootstrap Protocol
What is BOOTP?
Precursor to DHCP, a networking protocol released in 1993 that automatically assigns IP address to network devices from a configuration server. It required some manual configuration, and didn’t know when an IP address lease was up and available again.
Prior to _______ and _______, IPv4 address configuration was manual.
BOOTP
DHCP
When DHCP assigns IP addresses, they’re dynamic. That is, they occasionally change. What are the two options if you do not want an IP address to change on a device (e.g. a server or printer)?
1) Disable DHCP on that device, and configure the IP address info manually
2) Configure an IP reservation on the DHCP server, associating a specific MAC address with an IP address (Better solution)
APIPA stands for __________.
Automatic Private IP Addressing
What is APIPA?
A feature that enables a computer to self-configure an IP address / subnet mask so it can communicate with local devices even when a DHCP server is unavailable.
APIPA functions by assigning devices a ______, which cannot be _______, but does allows the device to _________.
link-local address
forwarded by a router
communicate will all devices on local IP subnet
How can you tell if APIPA has assigned a device a link-local address?
If the device’s IPv4 address begins with 169.254
[An IPv6 link-local address begins with fe80]
APIPA uses _______ to confirm that a link-local address is not already in use.
ARP
In IPv6 / DHCPv6, all devices are automatically assigned a ________ that begins with _______.
link-local address
fe80
DHCPv6 uses multicast over which two ports?
udp/546 (client) and udp/547 (server)
[Remember that DHCPv4 uses ports udp/67 and udp/68]
What are the four main steps used by DHCPv6?
1) DHCPv6 Solicit message to multicast address looking for DHCP servers
2) DHCP server replies with a DHCPv6 advertise message w/ associated IP address
3) DHCP client will receive list of all different advertisements from all DHCP servers on that subnet, will choose one, and then send back DHCPv6 request message
4) DHCPv6 server sends reply message, and client can then configure itself with IP address assigned by DHCP server
EUI-64 stands for ____________.
Extended Unique Identifier
What is EUI-64?
A method for automatically configuring IPv6 host addresses. An IPv6 device can use the MAC address of its interface to generate a static (unchanging) unique 64-bit interface ID. In other words,, a host can automatically assign itself a unique 64-bit IPv6 interface identifier without the need for manual configuration or DHCP. (Remember that the whole IPv6 address is 128-bits, of course)
What is EUI-48?
Another term for MAC address, which is a 48-bit identifier for devices. (e.g. 8c:2d:aa:4b:98:a7)
How do you convert a EUI-48 into a EUI-64, and why is it necessary?
It’s necessary, because if you want to use a 48-bit MAC address as a 64-bit identifier, you need extra bits.
Conversion process:
- Split MAC address into two 24-bit halves (e.g. 8c:2d:aa:4b:98:a7 becomes 8c:2d:aa and 4b:98:a7)
- Place FFFE in middle to give us missing 16 bits (e.g. You now have 8c2d:aaff:ee4b:98a7)
- Invert or “flip” the 7th bit (You can do this by converting hexadecimal to binary, then back to hexadecimal. OR you can use Prof Messer’s handy conversion chart)
[NOTE: You’re not flipping the 7th digit / character of the EUI-64. You’re flipping the 7th BIT when it’s written in binary]
The seventh bit of a EUI-64 is also known as the _______. When you invert it, you are changing the address from ______ to ________.
U/L bit (Universal / Local)
Globally unique/universal
Locally administered
Why is the 7th bit inverted?
If the U/L bit isn’t flipped, you’re always going to have a 1 (global) at 7th position. Problem is, that 1 causes uglier addressing and prevents shorthand notation. From RFC 2373: “The alternative would have been for these to be of the form 0200:0:0:1, 0200:0:0:2, etc., instead of the much simpler ::1, ::2, etc.”
[When you’re inverting it, you’re changing the U/L bit from universal to local, but that really doesn’t matter in the context of an IPv6 address. Doesn’t explain WHY you’re inverting it]
[Btw, this isn’t really important to know]
Explain how an IPv6 address is built with a modified EUI-64. (i.e. Modified with a flipped bit).
First half of IPv6 address is the 64-bit IPv6 subnet prefix. (We can easily find this by sending a Neighbor Discovery Protocol to routers on local subnet.
And they’ll respond with this)
Second half of IPv6 address is the modified EUI-64 address. (Which we created by combining our modified MAC address and the FFFE in middle)
Draw Prof Messer’s chart for flipping the 7th bit of an EUI-64, and explain how to use it.
Count from 0 to F in hexadecimal. (Two columns, groups of four.)
0 1
2 3
4 5
6 7
8 9
A B
C D
E F
And then you’re flipping the SECOND digit / character of the EUI-64 using this chart. 0 becomes 2, 1 becomes 3, 8 becomes A, 9 becomes B, etc.
(e.g. MAC address 8c:2d:aa:4b:98:a7 becomes 8e2d:aaff:fe4b:98a7).
18:b4:30:10:7b:61
Convert the above MAC address to EUI-64.
1ab4:30ff:fe10:7b61
a0:21:b7:63:40:3f
Convert the above MAC address to EUI-64.
a221:b7ff:fe63:403f
34:62:88:dc:85:2f
Convert the above MAC address to EUI-64.
3662:88ff:fedc:852f
What are the two types of network diagrams?
logical and physical
What is a logical diagram?
A logical network diagram illustrates the flow of information through a network and shows how devices communicate with each other. It typically includes elements like subnets, network objects and devices, routing protocols and domains, voice gateways, traffic flow and network segments. In logical network diagrams, there are pivots for small, medium and large networks, where network diagram templates can be helpful.
(Helpful with virtualized equipment that isn’t physical. Shows high-level views, like how a WAN is connected, or how an application flows. e.g. web server to middleware to database on backend. Useful for planning or collaborating w/ third party)
What is a physical diagram?
Think of physical network mapping like a floor plan. It shows all of the physical aspects and arrangement of the network, including ports, cables, racks and servers, as well as any other hardware or devices that apply.
(Would show the physical cable connections from one interface to another. Might even show where devices might be installed in a particular rack. Then you could go to a data center, to a specific rack, and identify exactly the piece of equipment that’s listed in documentation)