Learn the basics of how routers work, and how to setup your network securely.
Networking 101
Project Layout:
Week 1: Routers Explained
Week 2: Basic Router setup + Switching
Week 3: Wireless Explained + Review + Wireless Setup
Week 4: Upgrading Routers + 3 Router Setup
Routers vs. Switches
* Both Routers and Switches look for the most efficient path to route data
* However, HOW they do it is different
* Switches work with physical addresses (i.e. MAC addresses)
* Routers work with network addresses (i.e. IP addresses)
Let's get basic:
* Switches have a table of MAC (Media Access Control) Addresses that let it know where frames should be sent.
* This works ok for a network of dozens to a few hundred PCs
* However, once you start having THOUSANDS of nodes, a MAC table doesn't work (There's just too many)
* Routers: Typically use BGP (Border Gateway Protocol)
-- Instead of every device having a table of every device on the Internet, BGP just knows "best routes"
-- Every device knows the devices closest to it, and the best way to transit the Internet to get CLOSER to the router that actually has the path to the desired device.
The EASIEST way to think of switching & routing is this:
-- You use a switch when you are sending/receiving data across your network
-- You use a router when you are sending/receiving data BETWEEN networks
Home routers are REALLY dumbed-down versions of core routers. (Technically, they're EDGE routers) --- They just need to have enough power and smarts to talk to your ISP's routers.
1. Edge (US)
2. Subscriber Edge (the part of the subscriber's network that talks to the edge routers)
3. Border Router (Routers that talk with other border routers ACROSS networks)
4. Core: The Backbone
What basic services does a typical Consumer Router offer?
1. NAT
2. DHCP
3. Firewall (Part of the NAT Functionality)
4. Wireless
NAT: (Network Address Translation)
* NAT remaps an IP address in one address space, into a different address space
* NAT came around because of IPv4 Exhaustion (Way back in the 80's)
* We USED to all have devices that had REAL addresses, and we were running out.
* NAT allowed us to greatly expand the lifespan of IPv4 because a network really only needed ONE routable address, and everything else was behind the NAT
* NAT, DOES have an impact on both the reliability and performance of your connection.
DHCP (Dynamic Host Configuration Protocol)
* It's a way for a client to obtain all the necessary IP configuration parameters when connecting to a network
* Before DHCP, we had to input IP config information into each client manually. (AKA "Static IP Addressing")
* DHCP uses UDP (User Datagram Protocol) and NOT TCP. (TCP requires a handshake and error checking --- UDP is "connectionless")
It's a multi-part process:
1) Discovery: The client broadcasts (again via UDP) a message, "DHCPDISCOVER" on the network to the IP address 255.255.255.255
2) Offer: The DHCP server recieves the broadcasted discovery message. It then reserves and IP address for that client and sends a "DHCPOFFER" message to the client that contains the client's MAC address // IP Address // Subnet Mask // Lease Duration // Gateway address
3) Request: The client receives the offer and broadcasts back to the server, "DHCPREQUEST" telling it that it will accept the offered address.
4) Acknowledge: The server receives the "DHCPREQUEST" from the client and returns a "DHCPACK"
Firewall
* The ability to turn off services and close ports
* With NAT on an edge router, the Firewall basically serves two functions:
- Manage what ports and services you've turned on (and otherwise keep the ports closed)
- Map ports to particular IP addresses in your network.
Networking 101
Project Layout:
Week 1: Routers Explained
Week 2: Basic Router setup + Switching
Week 3: Wireless Explained + Review + Wireless Setup
Week 4: Upgrading Routers + 3 Router Setup
Routers vs. Switches
* Both Routers and Switches look for the most efficient path to route data
* However, HOW they do it is different
* Switches work with physical addresses (i.e. MAC addresses)
* Routers work with network addresses (i.e. IP addresses)
Let's get basic:
* Switches have a table of MAC (Media Access Control) Addresses that let it know where frames should be sent.
* This works ok for a network of dozens to a few hundred PCs
* However, once you start having THOUSANDS of nodes, a MAC table doesn't work (There's just too many)
* Routers: Typically use BGP (Border Gateway Protocol)
-- Instead of every device having a table of every device on the Internet, BGP just knows "best routes"
-- Every device knows the devices closest to it, and the best way to transit the Internet to get CLOSER to the router that actually has the path to the desired device.
The EASIEST way to think of switching & routing is this:
-- You use a switch when you are sending/receiving data across your network
-- You use a router when you are sending/receiving data BETWEEN networks
Home routers are REALLY dumbed-down versions of core routers. (Technically, they're EDGE routers) --- They just need to have enough power and smarts to talk to your ISP's routers.
1. Edge (US)
2. Subscriber Edge (the part of the subscriber's network that talks to the edge routers)
3. Border Router (Routers that talk with other border routers ACROSS networks)
4. Core: The Backbone
What basic services does a typical Consumer Router offer?
1. NAT
2. DHCP
3. Firewall (Part of the NAT Functionality)
4. Wireless
NAT: (Network Address Translation)
* NAT remaps an IP address in one address space, into a different address space
* NAT came around because of IPv4 Exhaustion (Way back in the 80's)
* We USED to all have devices that had REAL addresses, and we were running out.
* NAT allowed us to greatly expand the lifespan of IPv4 because a network really only needed ONE routable address, and everything else was behind the NAT
* NAT, DOES have an impact on both the reliability and performance of your connection.
DHCP (Dynamic Host Configuration Protocol)
* It's a way for a client to obtain all the necessary IP configuration parameters when connecting to a network
* Before DHCP, we had to input IP config information into each client manually. (AKA "Static IP Addressing")
* DHCP uses UDP (User Datagram Protocol) and NOT TCP. (TCP requires a handshake and error checking --- UDP is "connectionless")
It's a multi-part process:
1) Discovery: The client broadcasts (again via UDP) a message, "DHCPDISCOVER" on the network to the IP address 255.255.255.255
2) Offer: The DHCP server recieves the broadcasted discovery message. It then reserves and IP address for that client and sends a "DHCPOFFER" message to the client that contains the client's MAC address // IP Address // Subnet Mask // Lease Duration // Gateway address
3) Request: The client receives the offer and broadcasts back to the server, "DHCPREQUEST" telling it that it will accept the offered address.
4) Acknowledge: The server receives the "DHCPREQUEST" from the client and returns a "DHCPACK"
Firewall
* The ability to turn off services and close ports
* With NAT on an edge router, the Firewall basically serves two functions:
- Manage what ports and services you've turned on (and otherwise keep the ports closed)
- Map ports to particular IP addresses in your network.
- Category
- Routers and Switches
Be the first to comment