Some notes about computer networking, won’t go too deep.

References

DNS

Record Types Life of a DNS query DNS cache levels

IPv4

Address classes

ClassStartEndMaskCIDR
Class A0.0.0.0127.255.255.255255.0.0.0/8
Class B128.0.0.0191.255.255.255255.255.0.0/16
Class C192.0.0.0223.255.255.255255.255.255.0/24
Class D224.0.0.0239.255.255.255-/4
Class E240.0.0.0255.255.255.255--

Private addresses

DescStartEndCIDR
class A (1)10.0.0.010.255.255.25510.0.0.0/8
class B (16)172.16.0.0172.31.255.255172.16.0.0/12
class C (256)192.168.0.0192.168.255.255192.168.0.0/16

CIDR Notation

198.51.100.0/24

Subnet. The first 24 bits (198.51.100) define the network portion, and the remaining 8 bits are for individual devices (hosts) within that network. This subnet can contain a total of 256 (2^8) IP addresses, but two are reserved (network address - 198.51.100.0 and broadcast address - 198.51.100.255).

  • 198.51.100.14/24

198.51.100.14 is a specific IP address within the subnet defined by 198.51.100.0/24. The “/24” still refers to the subnet mask, but in this case, it clarifies that this particular IP (198.51.100.14) belongs to the network 198.51.100.0/24.

OSI Model

OSI

7. Application Layer

Data generated by and usable by software applications (eg: API calls).

Protocols: HTTP and SMTP.

6. Presentation Layer

Responsible for translation, encryption, and compression of data.

Protocols: HTTPS??

5. Session Layer

This is the layer responsible for opening and closing communication between the two devices.

Usually handled by TCP.

4. Transport Layer

This includes taking data from the session layer and breaking it up into chunks called segments before sending it to layer 3.

Protocols: TCP, UDP.

3. Network Layer

Handles the routing and sending of data between different networks.

Protocols: IP and ICMP.

Router (Gateway)

Device that forwards packets to a destination other than the local network

Facilitates data transfer between two devices on the same network.

Ethernet Switches

Forwarding based on MAC addresses, maintains a mapping of MAC -> PORT (physical).

Address Resolution Protocol (ARP)

https://en.wikipedia.org/wiki/Address_Resolution_Protocol#Example

1. Physical Layer

Includes the physical equipment involved in the data transfe (cables and switches). Data gets converted into a bit stream (1s and 0s).