I needed to review some computer networking concepts this week. I’ve learned and forgotten a lot of this stuff more than once so thought I’d write some of it down here for easy reference. I’ll likely add more as I get to it.
Updated 9/10/20: Just adding a few more bullets from my studies.
- DNS
- Domain Name System
- Matches URLs to IPs
- Your computer can’t find ‘wordpress.com’
- When you try visiting an address, your local DNS cache will be checked first
- If the address is not found, then the resolver server cache will be checked with your ISP
- If not found with your ISP, then the DNS root server will be checked to match the URL to the IP
- DHCP
- Domain Host Control Protocol
- At home it lives in your router
- In an office it likely has a dedicated server
- Provides hosts in the home network with IP addresses
- Also provides subnet mask and default gateway
- default gateway is your router, your ‘gateway to the internet’
- NAT
- Network Address Translation
- Lives in routers
- Translates public & private IP addresses
- Inside your network your IPs are private
- Outside of your network, IPs are public
- MAC Address
- Media Access Control address
- ensures the physical address of the computer
- while IP address uniquely identifies the connection
- operates on the data link layer
- aka physical address
- WPA2
- WiFi Protected Access 2
- Security setting that lives in your router
- Just navigate to your router’s Admin page to check that out
- Troubleshooting Network Connectivity Basics (from Windows)
- Can you see your router?
- Windows key>’cmd’
- type ‘ipconfig’
- ipconfig is used to display your connection to the internet
- look for your gateway/router
- will likely be ‘192.168.1.1’
- type ‘ping 192.168.1.1’ to check that you can reach your router
- You should get back a response like like this:
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=3ms TTL=64
- If you instead get 0.0.0.0 with ipconfig or the ping, check that your router is on and plugged in etc.
- traceroute
- coming soon!
- Can you see your router?
- SCP
- Secure Copy Protocol
- Based on SSH
- Provides file transfers between hosts on a network
- It’s faster than SFTP (Secure FTP)
- Though SFTP is better at file management
- Has a more efficient transfer algorithm
- Bonus item as this is not necessarily related to networking 🙂
- Hardware
- Hub
- Physical Layer device
- connects multiple devices to a network
- connects computers to a LAN
- basically a repeater
- Switch
- Data Link Layer device
- ‘creates’ networks
- used filtering and forwarding
- a virtual LAN can be created here
- allows different network devices to communicate
- Router
- Network Layer device
- allows different networks to communicate
- gateway to the network
- Hub
- OSI Model
- The OSI model (Open Systems Interconnection) describes the functions of a network system. It’s a more generic description of the TCP/IP Model.
- Lots more info here as well!
- Within the OSI Model there are 7 layers. I’ve bulleted these out below:
- Application Layer
- highest level
- provides interfaces for users
- interacts directly with software applications
- uses both TCP/IP and OSI models
- presents data to user
- ensures receiving device is identified, can be accessed and is available to receive data
- ensures effective communication b/n application and network
- Presentation Layer
- hands data to the application
- translates between application and network formats
- transforms data into a form that application accepts
- de/encryption
- data compression
- graphic handling
- Session Layer
- it’s the dialogue controller
- establishes, manages, syncs & terminates communication b/n end use application processes
- token management
- Transport Layer
- responsible for end-to-end communication over the network
- collects message segments from applications and transmits them on to the network layer
- adds a port address to the data packet header
- divides messages into smaller segments
- Network Layer
- allows for connection and transfer of data packets b/n different devices and networks
- provides routing paths for data
- considered backbone of OSI Model
- selects and manages best logical path for transfer of data b/n nodes
- assigns destination and source IP addresses to each data segment
- responds to requests from transport layer
- issues requests to data link layer
- Data Link Layer
- encodes/decodes data bits
- organizes bits into patterns
- coordinates data volume
- detects and retransmits damaged or lost frames
- sub-layers are:
- MAC – Media Access Control (see above)
- LLC – Logical Link Control
- Physical Layer
- actual physical connection between devices
- info is in the form of bits
- transmits individual bits from from one node to the next
- receives signal, converts to 1s & 0s and sends them to the Data Link layer for reassembly
- Application Layer
- The OSI model (Open Systems Interconnection) describes the functions of a network system. It’s a more generic description of the TCP/IP Model.