Week 1 - samuelwilson02/tech-journal GitHub Wiki

How Data Travels

  • data is sent in packets, need an IP address to send it, DNS converts to a human friendly hostname
  • every packet has headers with sender/receiver addresses
  • packets first go to NIC (Network Interface Controller on the motherboard), then the router which acts as a gateway and sends the packets forward
  • routers pass traffic hop-by-hop using routing tables until the packet reaches the recipients local router, uses the IP + MAC to find the exact device
  • Systems need: physical addresses (MAC), which work as nodes, logical addresses (IP), to route, and routers to connect the different networks and pass traffic through
  • devices don't need to know the whole path, just the next stop *in a packet, protocols get added at the beginning or end (encapsulation), headers can be changed for updates

Computers vs. Humans

  • computers work with numbers, humans with names
  • converting between the two is essential for human interpretation

OSI Model

  • 7 layers
  1. Physical - sends bits over the actual media (copper wires/ethernet, fiber optic, radio waves)
  2. Data Link - defines how packets get onto the media; handles collisions and confirms the recipient is ready to receive
  3. Network - IP addresses of sender/receiver
  4. Transport - port numbers tell the receiver what the data is for; sender and receiver need to agree on ports
  • examples - port 80 = HTTP (older websites), 25 = SMTP (email), 22 = SSH (secure shell)
  1. Session- sets up/tears down the connection; establishes the relationship
  2. Presentation - compression, encryption, encoding
  3. Application - the computer sending/receiving the data *understanding the layers matters for troubleshooting, programming, and connection to servers

Benefits of OSI

  • assists in protocol design
  • OSI is standard for networking, allows for scalability/innovation and managing complexity
  • isolates capability/technology errors so they don't effect other layers
  • provides a common language to describe networking