is set of rules that allows networked hosts to communicate data in a structured format.
protocol
is a set of rules that governs how data packets are routed and addressed to travel across networks to their correct destination.
Network layer
Internet Protocol (IP)
is responsible for delivering the data to that destination. can identify and recover from lost or out-of-order packets, mitigating the inherent unreliability of IP.
transport layer
Transmission Control Protocol (TCP)
is the second layer of the OSI model, responsible for reliable data transfer between two directly connected network nodes. It achieves this by framing data, performing error detection and correction, controlling the flow of data, and using physical addresses (MAC addresses) for local communication.
Data Link layer of the OSI model
is a communication protocol that finds the physical MAC address of a device on a local network when given its IP address. It works by broadcasting an ARP request asking which device has a specific IP address, and the device with that IP address responds with its MAC address. This process is crucial for data packets to be sent to the correct destination on a local network.
Address Resolution Protocol (ARP)
a protocol provides unreliable, connectionless
forwarding. makes sending data faster and can be tolerated glitches/squeak in videos/audio.
transport layer
User Datagram Protocol (UDP)
situated at the top of the OSI model, acts as the interface between applications and the network, enabling users to interact with network services like email and web browsing.
Application Layer
form of addressing comes in dotted decimal form of 4 octects(8 bits) converted from 1’s & 0’s. may be any value between 0.0.0.0 and 255.255.255.255 and are assigned.
IPv4 Addressing
of an IP address identifies the network itself, while the host part identifies a specific device on that network. The network part is the same for all devices on a given network, while the host part must be unique for each device.
Network Prefixes
is a number that splits an IP address into a network portion (prefix) and a host portion. It’s also known as a prefix mask because the number of bits used for the network part is often expressed in the Classless Inter-Domain Routing (CIDR) notation, which uses a forward slash followed by the bit count (e.g., /24).
IP address
subnet mask
is a feature that enables a Linux machine to act as a router by forwarding IP packets between different network interfaces.
transport layer
IPv4 Forwarding
is the IP address of a router on a local network that serves as the “doorway” to other networks, like the internet.
default gateway
addresses are allocated to customers networks by ISPs.
public IP address
standard that defines specific IP address ranges for use in private networks, which are not routable on the public internet
private addressing
aka
RFC 1918
private ip to public internet
is a networking technology that modifies IP address information in packet headers to allow multiple devices on a private network to share a single public IP address when accessing the internet.
network address translation (NAT)
setting a unique IP address for a device on a network, typically consisting of four octets (numbers between 0 and 255) separated by periods, where the first portion identifies the network and the remaining part uniquely identifies the host within that network;
IPv4 Host Address Configuration
a permanent number assigned to a device on a network.
static IP address
is the IP address of a router that connects your local network to other networks, such as the internet.
default gateway
is a network system that translates human-readable domain names (like “google.com”) into machine-readable IP addresses
Domain Name System (DNS)
a host can receive its IP address, subnet mask, default gateway, and DNS server addresses from a
dynamic host
configuration protocol (DHCP) server.
is a feature in operating systems that automatically assigns a computer an IP address in the range of 169.254.0.1 to 169.254.255.254
automatic private IP addressing (APIPA).
a router has multiple interfaces, Both interfaces must be configured with an IP address and subnet mask:
* public digital modem interface to connect to the ISP (ISP’s DHCP server).
* private Ethernet interface on the LAN (router’s DHCP)
SOHO Router Configuration
address is a 128-bit number and so can express
exponentially more address values that the 32-bit number used in IPv4. it is Hexadecimal address with two parts of Network/Interface ID number each 64bits (2001:0db8:0000:0000:0abc:0000:def0:1234)
IPv6
IP addresses are used on the local segment to communicate with neighbor hosts. In hex notation, link-local addresses start with (fe80::)
IPv6 addressing
Link-local addresses