Internet
The Internet is a global system of interconnected computer networks that communicate
using a common set of rules called the TCP/IP protocol suite. It is often called a
“network of networks” because it connects millions of smaller networks across the
world.
The Internet allows computers and devices to exchange information and share
resources regardless of their physical location. It has become an essential part of
modern life, enabling communication, business, education, and entertainment.
Structure of the Internet
The Internet consists of three main parts:
End Devices (Hosts):
These include computers, smartphones, servers, and other devices that send and
receive data.
Access Networks:
These connect end devices to the Internet. Examples include Wi-Fi, broadband, DSL,
and mobile networks.
Core Network (Backbone):
This is the high-speed infrastructure that connects different networks worldwide. It
includes powerful routers and fiber optic cables.
How the Internet Works
When data is sent over the Internet, it is divided into small units called packets. Each
packet contains the source and destination IP addresses.
These packets travel through different routers across multiple networks. Routers read
the destination address and forward the packet toward its destination. When all packets
reach the destination, they are reassembled into the original data.
This method of sending data is called packet switching.
Services Provided by the Internet
The Internet provides many services, such as:
• Web browsing (World Wide Web)
• Email communication
• File transfer
• Video conferencing
• Online banking and shopping
• Social networking
It supports both personal and professional communication.
Internet vs World Wide Web
The Internet is the infrastructure that connects networks worldwide.
The World Wide Web (WWW) is a service that runs on the Internet and allows users to
access web pages through browsers.
Thus, the Internet is the system, and the Web is one of the services provided by it.
Advantages of the Internet
• Fast global communication
• Easy access to information
• Online services and education
• Business and e-commerce opportunities
Disadvantages of the Internet
• Security threats and hacking
• Privacy issues
• Spread of false information
• Internet addiction
Internet Protocols
Internet Protocols are a set of rules that govern communication over the Internet. These
rules define how data is formatted, transmitted, routed, and received between devices
connected to a network.
Since the Internet connects millions of devices worldwide, common standards are
necessary so that different systems can communicate with each other without
confusion. These standards are provided by Internet protocols.
The Internet mainly works on a group of protocols known as the TCP/IP Protocol Suite.
TCP/IP Protocol Suite
TCP/IP is the foundation of Internet communication. It is not a single protocol but a
collection of protocols organized into four layers:
• Application Layer
• Transport Layer
• Internet Layer
• Network Access Layer
Each layer has specific responsibilities and works together to transmit data from sender
to receiver.
Internet Protocol (IP)
The Internet Protocol is responsible for logical addressing and routing of data packets.
When data is sent:
• It is divided into small packets.
• Each packet contains the source and destination IP address.
• Routers use this address to forward the packet.
IP provides best-effort delivery. It does not guarantee that packets will arrive safely or in
order.
There are two versions:
• IPv4 (32-bit address)
• IPv6 (128-bit address)
IP works at the Internet Layer.
Transmission Control Protocol (TCP)
TCP provides reliable and connection-oriented communication.
Before transmitting data, TCP establishes a connection between sender and receiver. It
ensures that:
• Data is delivered completely
• Data is delivered in correct order
• Lost packets are retransmitted
• Flow control and congestion control are maintained
TCP is used in applications where accuracy is important, such as web browsing, email,
and file transfer.
User Datagram Protocol (UDP)
UDP is a connectionless protocol. It does not establish a connection before sending
data and does not guarantee delivery.
Because of this, UDP is faster but less reliable than TCP.
It is used in applications where speed is more important than reliability, such as online
gaming, video streaming, and voice communication.
Application Layer Protocols
At the top layer, several protocols provide services to users:
• HTTP – Used for transferring web pages
• FTP – Used for file transfer
• SMTP – Used for sending emails
• DNS – Used for converting domain names to IP addresses
These protocols depend on TCP or UDP and IP for communication.
Topic 3: Internet Standards
Meaning of Internet Standards
Internet standards are officially accepted rules and specifications that define how
devices communicate over the Internet.
They ensure that:
• Devices from different companies can communicate.
• Networks across different countries can work together.
• Communication remains uniform and reliable.
Without standards, every company would use its own rules, and global communication
would not be possible.
Why Internet Standards Are Needed
Internet standards are necessary for:
• Interoperability – Different systems must work together.
• Compatibility – Hardware and software should communicate without conflict.
• Reliability – Communication must follow consistent procedures.
• Scalability – The Internet must grow without breaking communication rules.
Standards make the Internet universal.
Organizations That Develop Internet Standards
Internet standards are developed and maintained by international organizations.
IETF (Internet Engineering Task Force)
• Develops most Internet protocols.
• Publishes documents called RFCs (Request for Comments).
IEEE (Institute of Electrical and Electronics Engineers)
• Develops networking standards like Ethernet and Wi-Fi.
ISO (International Organization for Standardization)
• Develops general networking standards including OSI model.
These organizations ensure global standardization.
Types of Internet Standards
Internet standards are generally classified into:
• De facto Standards – Become standards due to widespread use (e.g., TCP/IP in
early days).
• De jure Standards – Officially approved by recognized organizations.
RFC (Request for Comments)
The IETF publishes standards in the form of RFC documents.
An RFC:
• Describes protocols and procedures.
• Goes through review and approval.
• May become an official Internet Standard.
Many important protocols like TCP/IP and HTTP are defined through RFCs.
Conclusion
Internet standards provide a common framework for global communication. They
ensure compatibility, reliability, and smooth functioning of the Internet across different
systems and countries.
Topic 4: Network Models
Meaning of Network Model
A Network Model is a structured framework that explains how data communication
takes place between devices in a network.
It divides the communication process into different layers.
Each layer performs a specific function.
Instead of handling communication as one big task, the model breaks it into smaller,
manageable parts.
This makes:
• Designing networks easier
• Troubleshooting simpler
• Standardization possible
Why Network Models Are Needed
When two devices communicate, many operations happen:
• Data formatting
• Error checking
• Addressing
• Routing
• Physical transmission
If all these tasks are handled together, communication becomes complex.
So, network models divide responsibilities into layers.
Each layer works independently but cooperates with other layers.
Types of Network Models
There are two main network models:
OSI Model
Developed by ISO.
It has 7 layers.
TCP/IP Model
Developed by DARPA (used in Internet).
It has 4 layers.
Both models describe how communication happens, but TCP/IP is practically used in
real-world Internet.
Basic Idea of Layered Architecture
In layered communication:
• Each layer provides services to the layer above it.
• Each layer receives services from the layer below it.
• At the sender side, data moves from top layer to bottom layer.
• At the receiver side, data moves from bottom layer to top layer.
This concept is called layered architecture.
Difference Between OSI and TCP/IP (Basic Idea)
OSI Model TCP/IP Model
7 layers 4 layers
Theoretical model Practical model
Developed by ISO Developed by DARPA
Strict layer separation Less strict layering
OSI Model (Detailed Explanation of Layers)
The OSI (Open Systems Interconnection) Model is a conceptual framework developed
by the International Organization for Standardization (ISO) to describe how
communication takes place between two devices over a network. It divides the entire
communication process into seven layers. Each layer performs a specific function and
works with the layers above and below it. This layered approach simplifies network
design and troubleshooting.
When data is sent from one computer to another, it moves from the top layer down to
the bottom layer at the sender side. At the receiver side, the process is reversed.
Now let us understand each layer clearly.
1. Application Layer (Layer 7)
This is the topmost layer and is closest to the user. It provides network services directly
to user applications. When you send an email, browse a website, or transfer a file, you
are interacting with the Application layer.
This layer does not actually perform the communication itself. Instead, it provides
services that allow applications to access the network. Protocols such as HTTP, FTP,
and SMTP operate at this layer. It acts as a bridge between user software and the
network system.
2. Presentation Layer (Layer 6)
The Presentation layer is responsible for formatting and transforming data. Different
systems may use different formats to represent data. This layer ensures that data sent
by one system is understandable by another system.
It performs three important functions:
• Data translation (converts data into a standard format)
• Encryption and decryption (for security)
• Data compression (to reduce size)
For example, when secure websites encrypt data, the encryption process is handled at
this layer.
3. Session Layer (Layer 5)
The Session layer manages communication sessions between two devices. A session is
a continuous exchange of information between two systems.
This layer establishes, maintains, and terminates the session. It also controls dialog
between devices and may insert checkpoints during data transfer so that if a failure
occurs, communication can resume from the last checkpoint instead of starting again.
For example, when you log into a website and remain logged in, the session layer
maintains that connection.
4. Transport Layer (Layer 4)
The Transport layer ensures reliable end-to-end communication between sender and
receiver. It divides large data into smaller segments before transmission and
reassembles them at the destination.
It is responsible for:
• Error detection and recovery
• Flow control
• Ensuring correct order of data
If any data segment is lost during transmission, this layer requests retransmission. It
guarantees complete and accurate delivery of data.
5. Network Layer (Layer 3)
The Network layer is responsible for logical addressing and routing. It determines the
best path for data to travel from source to destination across multiple networks.
Each device on a network has a logical address (IP address). This layer adds the source
and destination addresses to the data packet. Routers operate at this layer and forward
packets based on IP addresses.
Without this layer, data would not know where to go.
6. Data Link Layer (Layer 2)
The Data Link layer ensures node-to-node delivery within the same network. It converts
packets into frames and handles physical addressing (MAC address).
It is responsible for detecting and possibly correcting errors that occur at the Physical
layer. It also controls access to the transmission medium.
Switches operate at this layer.
7. Physical Layer (Layer 1)
The Physical layer is the lowest layer of the OSI model. It deals with the actual
transmission of raw bits over the communication medium.
It defines electrical signals, voltage levels, cables, connectors, and data transmission
rates. It does not understand frames or packets; it simply transmits bits (0s and 1s).
For example, Ethernet cables and fiber optic cables operate at this layer.
Overall Working of OSI Model
At the sender side:
Application → Presentation → Session → Transport → Network → Data Link → Physical
At the receiver side:
Physical → Data Link → Network → Transport → Session → Presentation → Application
Each layer adds its own header information during transmission. This process is called
encapsulation.
TCP/IP Protocol Suite
The TCP/IP Protocol Suite is the practical networking model used in the Internet. While
the OSI model is mainly theoretical, TCP/IP is the model on which real-world Internet
communication is based. It was developed by DARPA (Defense Advanced Research
Projects Agency) for ARPANET and later became the foundation of modern Internet
communication.
TCP/IP stands for Transmission Control Protocol and Internet Protocol. However, it is
not just two protocols; it is a collection of several protocols organized into layers. These
protocols work together to ensure that data is transmitted from one device to another
successfully.
Structure of TCP/IP Model
Unlike the OSI model which has seven layers, the TCP/IP model has four layers:
1. Application Layer
2. Transport Layer
3. Internet Layer
4. Network Access Layer
Each layer has specific responsibilities and works together to complete the
communication process.
1. Application Layer
The Application layer is the topmost layer of the TCP/IP model. It provides network
services directly to user applications. This layer combines the functions of the
Application, Presentation, and Session layers of the OSI model.
It is responsible for enabling applications to communicate over the network. Protocols
such as HTTP (for web browsing), FTP (for file transfer), SMTP (for email), and DNS (for
domain name resolution) operate at this layer.
When a user opens a website or sends an email, the request starts at the Application
layer.
2. Transport Layer
The Transport layer provides end-to-end communication between devices. It ensures
that data is delivered correctly and in the proper order.
The two main protocols at this layer are:
• TCP (Transmission Control Protocol)
• UDP (User Datagram Protocol)
TCP is reliable and connection-oriented. It establishes a connection before sending
data and ensures that all segments are received correctly. If any data is lost, it
retransmits it.
UDP is connectionless and does not guarantee delivery. It is faster and used in
applications where speed is more important than reliability, such as video streaming
and online gaming.
This layer is responsible for segmentation, error control, and flow control.
3. Internet Layer
The Internet layer is responsible for logical addressing and routing. It determines how
packets travel from source to destination across different networks.
The main protocol at this layer is the Internet Protocol (IP). It assigns IP addresses and
ensures that packets are forwarded through routers to reach their destination.
IP does not guarantee delivery. It only ensures that packets are sent toward the correct
destination. Reliability is handled by the Transport layer.
Routers operate at this layer.
4. Network Access Layer
The Network Access layer is the lowest layer of the TCP/IP model. It is responsible for
transmitting data over the physical network.
This layer combines the functions of the Data Link and Physical layers of the OSI model.
It handles framing, physical addressing (MAC address), and actual transmission of bits
over cables or wireless signals.
Technologies such as Ethernet and Wi-Fi operate at this layer.
Working of TCP/IP Model
When data is sent from one device to another:
• The Application layer creates the data.
• The Transport layer divides the data into segments and adds port numbers.
• The Internet layer adds IP addresses to form packets.
• The Network Access layer converts packets into frames and transmits them as
signals.
At the receiver side, the process happens in reverse order.
Difference Between OSI and TCP/IP (Conceptual Understanding)
The OSI model has seven layers and is mainly used for understanding networking
concepts. The TCP/IP model has four layers and is practically implemented in the
Internet.
OSI clearly separates functions into layers, while TCP/IP combines some layers
together. Despite structural differences, both models explain how communication
occurs in networks.
Physical Topology
Physical topology refers to the physical arrangement of devices, cables, and other
components in a network. It describes how computers and networking devices are
physically connected to each other.
It is important to understand that physical topology deals only with the physical
structure of the network, not how data flows. It focuses on the layout of cables and
hardware connections.
Different types of physical topologies are used depending on network size, cost,
performance, and reliability requirements.
1. Bus Topology
In a bus topology, all devices are connected to a single main cable called the backbone.
Every device shares this common communication line.
When one device sends data, the signal travels through the entire backbone cable. All
devices receive the signal, but only the intended receiver processes it.
Bus topology is simple and requires less cable compared to other topologies. However,
if the main backbone cable fails, the entire network stops working. It also becomes slow
when many devices are connected because all devices share the same communication
medium.
2. Star Topology
In a star topology, all devices are connected to a central device such as a hub or a
switch. Each device has a separate cable connection to the central device.
When a device sends data, it first goes to the central device, which then forwards it to
the destination device.
Star topology is widely used in modern networks because it is easy to install and
troubleshoot. If one cable fails, only that particular device is affected. However, if the
central device fails, the entire network stops working.
3. Ring Topology
In a ring topology, devices are connected in a circular manner. Each device is connected
to exactly two other devices, forming a closed loop.
Data travels in one direction (or sometimes both directions in dual ring systems). Each
device receives the data and forwards it to the next device until it reaches the
destination.
Ring topology reduces the chances of data collision but if one device or cable fails, it
can disrupt the entire network unless special protection mechanisms are used.
4. Mesh Topology
In a mesh topology, every device is connected to every other device. This creates
multiple paths for data transmission.
Because of multiple connections, mesh topology provides high reliability. Even if one
link fails, data can travel through another path.
However, it requires a large number of cables and is expensive to install. It is mainly
used in large networks where reliability is very important.
5. Tree Topology
Tree topology is a combination of bus and star topologies. It has a hierarchical structure
where multiple star networks are connected to a central backbone cable.
It is commonly used in large organizations because it allows easy expansion of the
network.
However, if the main backbone fails, the entire network may be affected.
Transmission Mode
Transmission mode refers to the direction in which data flows between two connected
devices. In simple words, it defines how communication takes place between sender
and receiver.
When two devices are connected in a network, data can flow in different ways
depending on the type of communication required. Based on the direction of data
transmission, communication is classified into three types: Simplex, Half-Duplex, and
Full-Duplex.
1. Simplex Mode
In Simplex mode, communication occurs in only one direction. One device acts only as
the sender, and the other acts only as the receiver. There is no possibility of sending
data back in the opposite direction.
This mode is used where feedback from the receiver is not required. For example, a
keyboard sends data to a computer, but the computer does not send data back to the
keyboard. Similarly, television broadcasting is another example where signals travel
only from the broadcaster to the viewers.
Simplex mode is simple and inexpensive, but it does not allow two-way communication.
2. Half-Duplex Mode
In Half-Duplex mode, communication can take place in both directions, but not at the
same time. At a given moment, only one device can send data while the other receives.
Once the sender finishes transmitting, the receiver can then send data back. Both
devices can act as sender and receiver, but alternately.
A common example is a walkie-talkie. When one person speaks, the other must wait
until the first person finishes. This type of communication is more flexible than simplex
but still has limitations because simultaneous communication is not possible.
3. Full-Duplex Mode
In Full-Duplex mode, communication occurs in both directions simultaneously. Both
devices can send and receive data at the same time.
This mode provides faster and more efficient communication because there is no
waiting time between sending and receiving. A telephone conversation is a good
example of full-duplex communication, where both people can speak and listen at the
same time.
Full-duplex mode requires more complex hardware but offers better performance.
Comparison of Transmission Modes (Conceptual Understanding)
Simplex allows communication in only one direction.
Half-duplex allows communication in both directions, but one at a time.
Full-duplex allows communication in both directions simultaneously.
Conclusion
Transmission mode defines the direction of data flow between devices in a network.
Depending on the communication requirement, networks may use simplex, half-
duplex, or full-duplex mode. Full-duplex provides the most efficient communication,
while simplex is the simplest form of transmission.
Addressing in Computer Networks
In a computer network, addressing is the process of identifying devices so that data can
be delivered to the correct destination.
When data is transmitted from one device to another, the network must know:
• Where the data is coming from
• Where the data has to go
For this purpose, different types of addresses are used at different layers of the network.
The two main types are:
• Physical Address
• Logical Address
Physical Address (MAC Address)
A Physical Address, also known as a MAC (Media Access Control) address, is a unique
address assigned to a device’s Network Interface Card (NIC) by the manufacturer.
It operates at the Data Link Layer (Layer 2) of the OSI model.
A MAC address:
• Is 48 bits long
• Is written in hexadecimal format
• Is permanently assigned to the hardware
• Is unique for every device
Example:
[Link]
The physical address is used for communication within the same local network (LAN).
When a frame is sent inside a LAN, switches use MAC addresses to deliver the frame to
the correct device.
However, MAC addresses cannot be used for communication across different networks
(like the Internet). They work only within a local network.
Logical Address (IP Address)
A Logical Address is assigned to a device when it connects to a network. The most
common logical address is the IP (Internet Protocol) address.
It operates at the Network Layer (Layer 3) of the OSI model.
An IP address:
• Identifies a device globally
• Helps in routing data across different networks
• Can change depending on the network
• Is assigned by the network administrator or ISP
There are two versions of IP addresses:
• IPv4 (32-bit) – Example: [Link]
• IPv6 (128-bit) – Longer and supports more devices
Routers use logical addresses to forward packets from one network to another until
they reach the final destination.
Difference Between Physical and Logical Address
Physical Address:
• Assigned by manufacturer
• Works in local network
• Used by switches
• Permanent
Logical Address:
• Assigned by network/ISP
• Works across networks
• Used by routers
• Can change
Conclusion
Addressing is essential in computer networks to ensure proper delivery of data. The
Physical address (MAC) is used for communication within a local network, while the
Logical address (IP) is used for communication across different networks. Both work
together to ensure accurate and efficient data transmission.
Networking Devices
Networking devices are hardware components used to connect computers and other
devices in a network. They help in transmitting, receiving, and managing data across
networks.
Different devices operate at different layers of the OSI model and perform specific
functions in communication.
1. Hub
A hub is a basic networking device used to connect multiple computers in a LAN. It
operates at the Physical layer of the OSI model.
When a hub receives data from one device, it broadcasts the data to all connected
devices without checking the destination address. Every device receives the data, but
only the intended device processes it.
Hubs are simple and inexpensive, but they are inefficient because they create network
congestion and collisions.
2. Switch
A switch is more advanced than a hub and operates at the Data Link layer.
Unlike a hub, a switch does not broadcast data to all devices. Instead, it forwards data
only to the intended device using MAC addresses. It maintains a MAC address table to
keep track of connected devices.
Switches reduce collisions and improve network performance. They are widely used in
modern LANs.
3. Router
A router operates at the Network layer of the OSI model.
It connects multiple networks and forwards data packets between them using IP
addresses. Routers determine the best path for data to travel from source to
destination.
Routers are essential for Internet communication because they connect local networks
to other networks and the Internet.
4. Bridge
A bridge connects two similar network segments and operates at the Data Link layer.
It filters traffic by checking MAC addresses and reduces unnecessary data transmission
between network segments.
Bridges are mainly used to divide large networks into smaller segments.
5. Repeater
A repeater operates at the Physical layer.
Its main function is to regenerate and amplify weak signals so they can travel longer
distances without losing quality.
Repeaters do not filter or modify data; they simply strengthen signals.
6. Gateway
A gateway connects two different types of networks that use different protocols.
It performs protocol conversion so that communication can occur between
incompatible systems.
Gateways operate at higher layers of the OSI model and are more complex devices.
Computer Network
A computer network is a collection of interconnected computers and devices that can
communicate with each other and share resources.
These devices are connected using communication media such as cables or wireless
signals. The main purpose of a computer network is to enable sharing of information,
hardware, and software resources.
For example, in a school or office, multiple computers may be connected so they can
share files, printers, and internet connections. This interconnected system is called a
computer network.
A computer network allows users to:
• Share data and files
• Share hardware devices like printers
• Communicate through email or messaging
• Access the Internet
• Share software applications
Thus, a computer network improves efficiency and reduces cost by allowing resource
sharing.
Types of Computer Networks
Computer networks are classified mainly based on geographical area covered.
1. LAN (Local Area Network)
A Local Area Network covers a small geographical area such as a room, building, office,
or campus.
In a LAN, computers are connected within a limited area. It provides high data transfer
speed and is usually privately owned.
Example:
Computers connected inside a school lab or office building.
LANs are easy to install and maintain. They are commonly used in homes, schools, and
small organizations.
2. MAN (Metropolitan Area Network)
A Metropolitan Area Network covers a larger area than LAN, such as a city or town.
It connects multiple LANs within a city. A MAN is usually managed by a government or
large organization.
Example:
A network connecting all branches of a bank within a city.
MAN provides moderate speed and covers a larger geographical area compared to LAN.
3. WAN (Wide Area Network)
A Wide Area Network covers a very large geographical area such as a country or
continent.
It connects multiple LANs and MANs. WAN uses public communication systems like
telephone lines, satellite links, or fiber optic cables.
The Internet is the best example of a WAN.
WANs are more complex and expensive compared to LAN and MAN.
Comparison (Conceptual Understanding)
LAN covers a small area and provides high speed.
MAN covers a city and connects multiple LANs.
WAN covers large geographical areas and connects networks worldwide.