A Level Networking Notes
A Level Networking Notes
The OSI model is a theoretical framework that defines how different networking protocols
interact and allows for standardization of networking tasks. It helps to understand how data
travels through a network from one device to another.
The TCP/IP model is a simplified 4-layer model that serves as the framework for internet
communication. Unlike the OSI model, it is the actual architecture used by the internet.
The 4 Layers of the TCP/IP Model:
1. Link Layer:
o Corresponds to both the Physical Layer and Data Link Layer in the OSI
model.
o Defines how devices interact with the transmission medium.
o Protocols: Ethernet, ARP, PPP, and Wi-Fi.
2. Internet Layer:
o Corresponds to the Network Layer in OSI.
o Responsible for routing and addressing. Data packets are assigned IP
addresses here.
o Protocols:
IP (Internet Protocol): IPv4 and IPv6.
ICMP (Internet Control Message Protocol): Used for diagnostics (e.g.,
Ping).
IGMP (Internet Group Management Protocol): Used for multicast
communication.
3. Transport Layer:
o Responsible for reliable data transfer across networks.
o Protocols:
TCP: Connection-oriented, reliable communication, with flow control
and error correction.
UDP: Connectionless, fast, unreliable communication, used in real-
time applications.
SCTP: Provides reliable, message-oriented communication, combining
aspects of both TCP and UDP.
4. Application Layer:
o Corresponds to the Application, Presentation, and Session Layers in OSI.
o Includes all higher-level protocols used by applications.
o Protocols: HTTP/HTTPS, FTP, DNS, SMTP, POP3, IMAP.
3. IP Addressing
IPv4 Addressing:
Private IP addresses (which are internal value only) allow for an entirely
separate set of addresses within a network. They allow access to the network
without taking up a public IP address space. However, devices using these, private IP addresses
cannot be reached by internet users.
Public IP addresses
A public IP address is an IP address that can be accessed directly over the internet and is
assigned to your network router by your internet service provider (ISP). Your personal device
also has a private IP that remains hidden when you connect to the internet through your
router’s public IP, They can be allocated by a user’s ISP to identify the location of their device.
» DNS servers
» network routers
»directly-controlled computers.
Using a public IP address to connect to the internet is like using a P.O. box for your snail
mail, rather than giving out your home address. It’s a little bit safer, but a lot more visible.
IPv6 Addressing:
The Domain Name System (DNS) translates human-readable domain names into machine-
readable IP addresses. DNS is essential for the functioning of the internet.
Domain Name: The address used by users to access resources on the internet
(e.g., www.example.com).
DNS Resolver: The client-side component that queries DNS servers to resolve
domain names to IP addresses.
DNS Server: A server that responds to DNS queries and provides the IP address of a
requested domain name.
Zone: A portion of the DNS database that is managed by a specific organization or
administrator.
DNS Records:
Routing Information Protocol (RIP) is an interior gateway protocol used to determine the
best path for routing packets in an IP network.
Key Features:
Distance Vector Protocol: RIP uses the number of hops as the metric to find the best
path.
Maximum Hops: RIP has a maximum hop count of 15. A network with 16 or more
hops is considered unreachable.
Periodic Updates: RIP routers send updates every 30 seconds to share their routing
table with neighbors.
RIP Versions:
Open Shortest Path First (OSPF) is an advanced link-state routing protocol designed to solve
some of the limitations of RIP.
Link-State Protocol: Each OSPF router maintains a complete map of the network
and independently calculates the best route.
Fast Convergence: OSPF quickly adjusts to network changes, ensuring rapid
recovery from link failures.
Area-Based Routing: Divides large networks into smaller areas to reduce the size of
routing tables.
Uses Dijkstra's Algorithm: Computes the shortest path first based on the network's
topology.