Networks Introduction
In order to properly learn network secuirty, an understanding of computer network design and protocols is necessay. This presentation was aimed at teaching simple networking basics to prepare club members to learn more on their own. For a complete introduction, please watch the meeting recording and download the slides to follow along.
Dynamic Host Configuration Protocol (DHCP)
On new connection to network, DHCP server delivers 3 important pieces information
- Router IP Address
- Local DNS Server IP Address
- New Device’s IP Address and Subnet
Domain Name Service (DNS)
How to get to ‘Google.com’?
- Send request to local DNS Server for ip of ‘google.com’
- Local DNS Server responds with ip of ‘google.com’
What if ip address is not stored in the local DNS server?
- Send request to local DNS server for ip of ‘weirdwebsite.com’
- Local DNS server makes request to nameserver for ip of ‘weirdwebsite.com’
- Nameserver responds to local DNS server with ip of ‘weirdwebsite.com’
- Local DNS server responds with ip of ‘weirdwebsite.com’
Address Resolution Protocol (ARP)
“The purpose of this RFC [ARP] is to present a method of Converting
Protocol Addresses (e.g., IP addresses) to Local Network
Addresses (e.g., Ethernet addresses)” - RFC 826
Essentially, ARP is used for devices to comunicate to other local devices.
Steps
- Device broadcasts “who is [ip address to communicate with]. This is [ip of this machine]” to every device on the local network.
- The device with ip that was searched relpies “Hello [ip of original machine]. I’m [ip of requested machine]”
note: As seen in RFC 826, the packets used for ARP contain the ethernet address of the sending machine in the packet header. Because of this, no further communication is needed to convey ethernet addresses.