Networking 101

Copyright Priscilla Oppenheimer

Study Topics 4

Network Layer

IP Addresses

Size of an IP addresses

IPv4 addresses are broken into four 8-bit bytes (octets) that are separated by dots. This is called dotted decimal notation.

Converting between binary and IPv4 dotted decimal notation addresses:

Components of an IP address

An IP address is accompanied by an indication of the prefix length (Subnet mask or /length in CIDR notation).

Examples

Reserved IP addresses

The Network: To refer to the entire network (in documentation or routing tables, for example) use all zeros in the Host portion of the address.

Example: 192.168.70.0/24 (or 192.168.70.0 255.255.255.0) might appear on a network drawing or in a router's routing table and means the entire 192.168.70.0 network.

Broadcast: Devices can send to all hosts on their network by using all ones in the Host portion of the address.

If host 192.168.70.1/24 wants to send to everyone on its LAN, for example, it sends to 192.168.70.255.

Private IP addresses

Not routable on the Internet; great for internal networks, however.

If you use private addresses on hosts that need to reach the Internet, then you need a device that performs Network Address Translation (NAT).

Private Address ranges:

Microsoft's Automatic Private IP Addressing:

The main thing to know about the Microsoft private addresses is that they usually appear when a host has been configured to get its address from DHCP but has failed to reach the DHCP server (so the host makes up a private Microsoft address).

Subnetting

A network administrator can borrow bits from the original Host portion of the address space to divide a network into subnets. The subnet mask (or /length), in this case, specifies how many bits are used for Network/subnet and how many are used for Host IDs.

Working with IP Addresses and Subnet Masks

If the prefix length is a multiple of 8 (8, 16, or 24), working with addresses and subnet masks is easy.

Example: Network is 172.16.0.0 with a starting subnet mask of 255.255.0.0 (or /16).

However, network administrators need the flexibility of using any number of bits for Network/subnet versus Host. When the number of bits used for these fields isn't a multiple of 8, it's advisable to work with the numbers in binary before putting them into dotted decimal notation.

It's important to be able to tell what subnet you are on based on the subnet mask.

Example: 197.15.22.131 with a subnet mask of 255.255.255.224

It's also important to recognize a broadcast address.To send to all devices on its subnet, host 197.15.22.131 should send to:

Designing subnets

Be prepared to write out the following to help you with questions related to designing IP subnets:

210

29

28

27

26

25

24

23

22

21

20

1024

512

256

128

64

32

16

8

4

2

1

 

Binary

Decimal

1000 0000

128

1100 0000

192

1110 0000

224

1111 0000

240

1111 1000

248

1111 1100

252

1111 1110

254

1111 1111

255

Example: Network is 172.16.0.0 with a starting subnet mask of 255.255.0.0.

Notice that 600 falls between 29 and 210 in the first chart. To accommodate all those hosts, we better use 210 or 1024. In other words, we will use 10 bits to uniquely identify each host on each subnet.

Another example: Network is 192.168.55.0 with a starting subnet mask of 255.255.255.0.

How many bits are needed to uniquely identify 25 hosts? The answer is 5 because 25 is 32. (Notice that 24 wouldn't be enough).

Address Resolution Protocol (ARP)

Dynamic Host Configuration Protocol

Routing Fundamentals

Routed versus Routing

A routed protocol:

A routing protocol:

Interior versus Exterior Routing Protocols

Routing Protocol Metrics

A router can learn multiple paths to a remote network. The routing protocol metric lets the router decide which path is best.

Examples of metrics:

Distance Vector versus Link-State Routing Protocols

Distance-Vector Routing Protocols

Link-State Routing Protocols


Back to Networking 101