100% found this document useful (1 vote)
55 views7 pages

OSI and TCP/IP Networking Overview

The document outlines the OSI and TCP/IP models, detailing their respective layers, purposes, and key protocols involved in networking. It also covers IP addressing, including IPv4 and IPv6, subnetting, DNS, and routing protocols like RIP and OSPF. Each section provides essential information on how data is transmitted and managed across networks.

Uploaded by

Donlon Ngwarai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
55 views7 pages

OSI and TCP/IP Networking Overview

The document outlines the OSI and TCP/IP models, detailing their respective layers, purposes, and key protocols involved in networking. It also covers IP addressing, including IPv4 and IPv6, subnetting, DNS, and routing protocols like RIP and OSPF. Each section provides essential information on how data is transmitted and managed across networks.

Uploaded by

Donlon Ngwarai
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

OSI Model (Open Systems Interconnection Model)

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 7 Layers of the OSI Model:

1. Physical Layer (Layer 1):


o Purpose: Deals with the physical transmission of raw data over a
communication medium (e.g., cables, fiber optics, radio waves).
o Key Responsibilities:
 Conversion of data to signals (electric, light, or radio waves).
 Handling of the medium (copper wire, fiber optics, wireless channels).
 Ensuring signal strength and bit timing.
 Physical aspects of network devices like cables, NICs, and hubs.
o Devices/Protocols:
 Cables: twisted pair, coaxial, fiber optic.
 Network Interface Cards (NICs).
 Repeaters, hubs, and modems.
 Standards: Ethernet, Wi-Fi (IEEE 802.11), Bluetooth, and USB.
2. Data Link Layer (Layer 2):
o Purpose: Ensures that data transferred between two directly connected nodes
is error-free and in the correct format.
o Key Responsibilities:
 Framing: Breaking data into smaller frames for transmission.
 MAC (Media Access Control) addressing: Unique identifiers for
network devices.
 Error detection and correction: Checks and ensures no corruption in
data transmission.
 Flow control: Manages data transmission rate between devices.
o Devices/Protocols:
 Bridges, switches (Layer 2 switches), and NICs.
 Protocols: Ethernet, PPP (Point-to-Point Protocol), HDLC (High-
Level Data Link Control), ARP (Address Resolution Protocol).
3. Network Layer (Layer 3):
o Purpose: Handles routing of data packets across multiple networks and
ensures that data reaches its destination.
o Key Responsibilities:
 Logical addressing (IP addresses) and routing between different
networks.
 Determining the best path for data transfer based on routing
algorithms.
 Fragmentation and reassembly of packets for transmission over
different networks.
o Devices/Protocols:
 Routers, Layer 3 switches.
 Protocols: IP (Internet Protocol), ARP (Address Resolution Protocol),
ICMP (Internet Control Message Protocol), OSPF (Open Shortest Path
First), BGP (Border Gateway Protocol), RIP (Routing Information
Protocol).
4. Transport Layer (Layer 4):
o Purpose: Manages end-to-end data transfer between devices, ensuring that
data is sent reliably and efficiently.
o Key Responsibilities:
 Segmentation and reassembly: Splits large data into smaller segments
and ensures they are reassembled correctly at the destination.
 Error detection and correction at the end-to-end level.
 Flow control to avoid congestion.
 Reliable transmission (with acknowledgments) or unreliable
transmission (without acknowledgment).
o Protocols:
 TCP (Transmission Control Protocol): Provides reliable,
connection-oriented communication, error-checking, and flow control.
 UDP (User Datagram Protocol): Offers faster, connectionless
communication with no error recovery, typically used for streaming,
gaming, and real-time applications.
 SCTP (Stream Control Transmission Protocol).
5. Session Layer (Layer 5):
o Purpose: Manages sessions or connections between applications, ensuring
that data is synchronized and correctly ordered.
o Key Responsibilities:
 Establishing, maintaining, and terminating connections between
applications.
 Managing dialogue control, ensuring that data can flow in both
directions (full-duplex or half-duplex).
 Synchronizing data flow and maintaining session state.
o Protocols:
 NetBIOS, SMB (Server Message Block), RPC (Remote Procedure
Call), PPTP (Point-to-Point Tunneling Protocol), NFS (Network File
System).
6. Presentation Layer (Layer 6):
o Purpose: Translates and formats data for the application layer, ensuring that it
can be understood across different platforms.
o Key Responsibilities:
 Data encoding: Formats and encodes data (e.g., from ASCII to
EBCDIC).
 Data compression: Reduces data size for efficient transmission.
 Encryption and decryption: Secures data by encoding it during
transmission.
o Protocols:
 SSL/TLS (for secure communication).
 JPEG, GIF, PNG (image formats).
 ASCII, EBCDIC (character encodings).
 MPEG (video compression).
7. Application Layer (Layer 7):
o Purpose: Directly interacts with end-user applications and provides network
services to them.
o Key Responsibilities:
 Provides protocols that allow applications to communicate over the
network.
 Provides services such as email, file transfer, web browsing, etc.
o Protocols:
 HTTP/HTTPS (Hypertext Transfer Protocol/ Secure HTTP).
 FTP (File Transfer Protocol).
 SMTP/POP3/IMAP (Email Protocols).
 DNS (Domain Name System).
 SNMP (Simple Network Management Protocol).

2. TCP/IP Model (Transmission Control Protocol / Internet Protocol)

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

IP addressing allows devices on a network to be uniquely identified and located. IP addresses


are assigned to devices to route data correctly across the internet or private networks.

IPv4 Addressing:

 32-bit Address: Divided into 4 octets, each containing 8 bits.


 Decimal Representation: E.g., [Link].

Private IP Addresses: Not routable on the internet, used in local networks.

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.

o Class A: [Link] to [Link].


o Class B: [Link] to [Link].
o Class C: [Link] to [Link].

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.

Devices using these IP addresses are accessible from


anybody using the internet. Public IP addresses are used by

» 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:

 128-bit Address: Divided into 8 groups of 4 hexadecimal digits.


 Notation: 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
 IPv6 solves the address exhaustion problem faced by IPv4 and provides greater
address space.
Subnetting:

 Divides a network into smaller, more manageable sub-networks (subnets).


 The subnet mask (e.g., [Link]) specifies which part of the IP address refers to
the network and which part refers to the host.

CIDR (Classless Inter-Domain Routing):

 An improved system of IP addressing and routing. For


example, [Link]/24 represents an IP address with 24 bits allocated to the
network part.

4. Domain Name System (DNS)

The Domain Name System (DNS) translates human-readable domain names into machine-
readable IP addresses. DNS is essential for the functioning of the internet.

Key Concepts of DNS:

 Domain Name: The address used by users to access resources on the internet
(e.g., [Link]).
 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:

 A Record: Resolves a domain to an IPv4 address.


 AAAA Record: Resolves a domain to an IPv6 address.
 MX Record: Defines mail servers for the domain.
 CNAME Record: Provides alias names for a domain.
 NS Record: Indicates authoritative name servers for a domain.

5. Routing Protocols (RIP)

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:

 RIP v1: Classful routing, does not support subnetting or CIDR.


 RIP v2: Supports classless routing, multicast updates, and uses subnet masks to
enable more efficient routing.

6. Shortest Path First (OSPF)

Open Shortest Path First (OSPF) is an advanced link-state routing protocol designed to solve
some of the limitations of RIP.

Key Features of OSPF:

 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.

Common questions

Powered by AI

The Network Layer in the OSI Model and the Internet Layer in the TCP/IP Model share similar responsibilities, including logical addressing and routing. The Network Layer handles IP addressing and routing to ensure data reaches its destination across multiple networks, using protocols like IP and ICMP. Similarly, the Internet Layer assigns IP addresses, routes data packets, and employs protocols such as IP and ICMP for diagnostics. However, the Internet Layer is part of a simpler 4-layer structure, whereas the Network Layer is a component of a more complex 7-layer OSI structure .

The Physical Layer of the OSI Model is crucial for data transmission as it deals with the conversion of data into physical signals that can be transmitted over communication mediums like cables, optical fibers, or radio waves. This layer is responsible for maintaining signal strength, bit timing, and the physical aspects of network devices, such as Network Interface Cards (NICs) and cables. It uses standards like Ethernet and Wi-Fi to ensure compatibility across different hardware devices .

The Data Link Layer ensures error-free data transfer between nodes through several mechanisms: framing to organize data into manageable units, error detection and correction to identify and rectify errors during transmission, Media Access Control (MAC) addressing to identify devices on the network, and flow control to regulate data rates. Protocols such as Ethernet and HDLC assist in these tasks by providing methods for error checking and managing data transmission efficiently .

The Routing Information Protocol (RIP) determines the best path for data transmission using a distance-vector routing protocol that calculates the number of hops between the source and destination as its primary metric. RIP updates its routing tables every 30 seconds, enabling routers to share their paths and determine efficient routes. The maximum hop count is 15, beyond which a network is deemed unreachable. RIP v2 improves upon v1 by supporting classless routing and multicast updates, which helps manage routing more efficiently .

IP addressing facilitates data routing by providing a unique locator for devices within a network, allowing data packets to be properly routed to their destinations. IPv4 uses a 32-bit address space divided into four octets, while IPv6 uses a 128-bit address space for more comprehensive addressing. Public IP addresses allow devices to be accessed over the internet, whereas private IP addresses are used within local networks without taking up public space. Subnetting further breaks down networks into smaller, manageable sub-networks, streamlining routing and management logistics .

The Session Layer manages connections between applications by establishing, maintaining, and terminating communication sessions. It controls the dialogue, ensuring data can flow in full-duplex or half-duplex modes and synchronizes data flow to maintain session states. Protocols such as NetBIOS and RPC assist in these tasks by facilitating orderly communication and managing session states to ensure data consistency and correct ordering .

The Domain Name System (DNS) is essential for internet functionality as it translates human-readable domain names into machine-readable IP addresses, allowing users to access websites without memorizing complex IP addresses. DNS involves components like DNS resolvers, which query DNS servers, and DNS records like A and AAAA, which resolve domains to IPv4 or IPv6 addresses respectively. This system ensures the smooth translation and routing of internet requests, critical for the reliable navigation and operation of the web .

The Transport Layer ensures data transmission reliability and efficiency through segmentation and reassembly, error detection, correction, and flow control. It splits large data into smaller segments, enabling efficient transfer and correct reassembly at the destination. Protocols such as TCP provide reliable communication by using acknowledgments and error checking, whereas UDP allows for faster, connectionless communication suitable for real-time applications but without reliability assurances. Flow control mechanisms help in managing the data transmission rate to prevent network congestion .

Open Shortest Path First (OSPF) overcomes RIP's limitations by using a link-state routing protocol, which maintains a detailed map of the network and independently calculates the best routes using Dijkstra's Algorithm. Unlike RIP's hop count metric, OSPF quickly converges on the best path following network changes due to its complete view of the network topology. OSPF supports faster convergence, scalability, and area-based routing to reduce routing table sizes, thus providing greater efficiency and adaptability in varied and dynamic network environments .

The Presentation Layer ensures data compatibility across systems by translating and formatting data for the Application Layer. It performs functions like data encoding, whereby it converts data formats (e.g., ASCII to EBCDIC), compression for efficient transmission, and encryption/decryption for secure transmission. This ensures that data generated by applications on different platforms can be understood and processed consistently across the network. Protocols like SSL/TLS and various image and character encoding formats support these functions .

You might also like