CN-UNIT-1 - Part-1
CN-UNIT-1 - Part-1
CN-UNIT-1 - Part-1
( or )
(or)
● “ Network of networks “
Where does the Internet come from?
What is WWW?
● The World Wide Web, commonly known as the web, is a system of interconnected documents and
● World Wide Web is an information system that allows users to access and navigate websites and web
● It is a collection of websites, web pages, multimedia content, and hyperlinks that allow users to
● The web is just one of the many services and applications that utilize the internet infrastructure
Network Elements
Subnet ?
the weakened signal, amplify it, and then retransmit it at its original strength.
● In a network, as data travels over cables (such as copper or fiber-optic cables), it tends
● This attenuation can lead to data loss and degradation, affecting the overall
(or)
“A Network Topology is the arrangement with which computer systems or network devices are connected
to each other. Topologies may define both physical and logical aspect of the network.”
Figure : In this, the various secondary hubs are connected to the central hub which contains the
repeater. This data flow from top to bottom i.e. from the central hub to the secondary and then to the
devices or from bottom to top i.e. devices to the secondary hub and then to the central hub.
● Tree topology, also known as hierarchical topology, is a network configuration that
combines characteristics of both bus and star topologies.
● In a tree network, all devices are connected to a central hub, which acts as the root of the tree.
From this central hub, branches extend out to other hubs or end devices, creating a
hierarchical structure.
● It is a multi-point connection and a non-robust topology because if the backbone fails the topology
crashes.
1. Central hub: The central hub is the primary element of the tree topology and is responsible for
connecting all the branches and end devices in the network. It acts as the main communication point
for all connected devices.
2. Secondary hub: It is the intermediate levels of the hierarchy. Each Secondary hub is connected to
the central hub or other intermediate hubs. These branches can be further extended into sub-
branches, creating a multi-level hierarchy.
3. End devices: The end devices are the devices located at the leaves of the tree. These devices can be
computers, printers, switches, or any other networked devices.
4.Hierarchical structure: The tree topology exhibits a hierarchical arrangement of devices, which
makes it easy to manage and scale the network. Information generally flows from the top (root) of the
tree down to the leaves and vice versa.
● This topological technology is the combination of all the various types of topologies we have
studied above.
● Hybrid Topology is used when the nodes are free to take any form.
● It means these can be individuals such as Ring or Star topology or can be a combination of
various types of topologies seen above.
Types of Networks
PAN LAN CAN MAN WAN
Parameters
Transmission
Very High Very High High Average Low
Speed
● PANs (Personal Area Networks) let devices communicate over the range of a person.
● A Personal Area Network (PAN) is a type of network used for connecting personal
devices in close proximity to an individual.
● PANs are designed to facilitate communication and data exchange between devices
such as smartphones, tablets, laptops, personal computers, wireless headphones,
smartwatches, and other wearable devices.
● Example: Bluetooth devices
● In the simplest form, Bluetooth networks use the master-slave paradigm.
● The system unit (the PC) is normally the master, talking to the mouse, keyboard, etc.,
as slaves.
● The master tells the slaves what addresses to use, when they can broadcast, how long
they can transmit, what frequencies they can use, and so on.
Characteristics of a PAN are:
● Local Area Network (LAN) is a type of network that connects devices within a
limited geographical area, such as a single building like a home, office or
factory.
● LANs are widely used to connect personal computers and consumer electronics to
let them share resources (e.g., printers) and exchange information.
● Types of LAN networks:
a. Wired LAN
b. Wireless LAN
Wired LAN:
➔ Ethernet(IEEE 802.3)is the most common and widely used LAN technology.
➔ It uses twisted-pair or fiber-optic cables to connect devices in a star or bus topology.
➔ Wired LANs run at speeds of 100 Mbps to 1 Gbps, have low delay(microseconds or
nanoseconds), and make very few errors.
Wireless LAN:
● There is a standard for wireless LANs called IEEE 802.11, popularly known as WiFi,
to connect devices without the need for physical cables.
● WLANs use radio waves to transmit data over the airwaves, providing wireless
connectivity and mobility to devices within the network.
● It runs at speeds anywhere from 10 to hundreds of Mbps.
● Access Points: WLANs are typically built around one or more access points (APs) that
act as central communication hubs. Access points provide the wireless connectivity
and allow devices to connect to the WLAN.
● WLANs are widely used in homes, offices, public spaces, airports, hotels, educational
institutions, and various other environments to provide wireless internet access and
facilitate device connectivity.
● Fig. 1-8( a & b) shows a sample topology of WLAN and Switched Ethernet.
● Each computer speaks the Ethernet protocol and connects to a box called a switch with a
point-to-point link.
● Hence the name. A switch has multiple ports, each of which can connect to one computer.
● The job of the switch is to relay packets between computers that are attached to it, using the
address in each packet to determine which computer to send it to.
MAN (Metropolitan Area Network)
MAN (Metropolitan Area Network)
● MAN covers a larger geographical area than a Local Area Network (LAN) but is smaller than a Wide
Area Network (WAN).
● A MAN typically spans a city or a metropolitan region, connecting multiple LANs and data centers
within the area.
● The best-known examples of MANs are the cable television networks available in many cities.
● These systems grew from earlier community antenna systems used in areas with poor over-the-air
television reception.
● In those early systems, a large antenna was placed on top of a nearby hill and a signal was then piped to
the subscribers’ houses.
● a MAN might look something like the system shown in Fig. 1-9.
● In this figure we see both television signals and Internet being fed into the centralized cable headend
for subsequent distribution to people’s homes.
Q:: How does the MAN network work?
Why
Reference
Models?
[2]
● OSI stands for Open Systems Interconnection. It has been developed by ISO –
‘International Organization for Standardization‘, in the year 1984.
● The OSI (Open Systems Interconnection) reference model is a conceptual
framework used to understand and standardize how different networking protocols
and technologies interact and communicate with each other.
● The purpose of OSI reference model is to guide technology
vendors(Microsoft,CISCO) and developers , so their H/W and S/W can interoperate
and define common framework.
● It is a 7-layer architecture with each layer having specific functionality to perform.
● All these 7 layers work collaboratively to transmit the data from one person to
another across the globe.
Physical Layer
● The lowest layer of the OSI reference model is the physical layer. It is responsible for the
actual physical connection between the devices.
● The physical layer is concerned with transmitting raw bits over a communication channel.
● The physical layer contains information in the form of bits. It is responsible for
transmitting individual bits from one node to the next. When receiving data, this layer will
get the ignal received and convert it into 0s and 1s and send them to the Data Link layer,
which will put the frame back together.
● The design issues have to do with making sure that when one side sends a 1 bit it is
received by the other side as a 1 bit, not as a 0 bit.
Physical Layer
● The lowest layer of the OSI reference model is the physical layer. It is responsible for the
actual physical connection between the devices.
● The physical layer is concerned with transmitting raw bits(1’s & 0’s ) over a
communication channel.
● The physical layer contains information in the form of bits. It is responsible for
transmitting individual bits from one node to the next. When receiving data, this layer will
get the signal received and convert it into 0s and 1s and send them to the Data Link layer,
which will put the frame back together.
● The design issues have to do with making sure that when one side sends a 1 bit it is
received by the other side as a 1 bit, not as a 0 bit.
Physical Layer
● It defines the electrical, mechanical, and physical specifications for the network
interface, such as cables, connectors, and network topology.
● Hub, Repeater, Modem, and Cables are Physical Layer devices.
Data Link Layer
● The data link layer is responsible for the node-to-node delivery of the message.
● The main function of this layer is to make sure data transfer is error-free from
one node to another, over the physical layer.
● The data link layer performs error detection by adding checksums or cyclic
redundancy checks (CRC) to the data frames.
● When this layer received data from the Physical layer, it checks for transmission
errors and then convert the bits into “data frames”.
● When a packet arrives in a network, it is the responsibility of the DLL to
transmit it to the Host using its MAC address(Media Access Control).
● The data link layer uses MAC (Media Access Control) addresses to uniquely
identify network devices within a local network.
● MAC addresses are used for addressing and delivering data frames to the correct
destination on the same network.
Data Link Layer
Note:
2. Data Link layer is handled by the NIC (Network Interface Card) and device drivers of
host machines.
● The network layer operates above the data link layer (Layer 2) and below the transport
layer (Layer 4) in the OSI model.
● The network layer works for the transmission of data from one host to the other located in
different networks.
● It also takes care of packet routing i.e. selection of the shortest path to transmit the
packet, from the number of routes available.
● The sender & receiver’s IP addresses are placed in the header by the network layer.
● This layer also manages the mapping between logical addresses and physical addresses, for
IP addresses, this is accomplished through Address Resolution Protocol or ARP.
Network Layer
● Logical Addressing:
○ The network layer assigns logical addresses, such as IP (Internet Protocol) addresses, to
devices in a network. These addresses uniquely identify each device and allow for end-to-
end communication across different networks.
● Routing:
○ The network layer determines the most efficient path for data packets to travel from the
source to the destination across multiple networks. It uses routing algorithms and protocols
to make forwarding decisions based on the network topology and destination address.
Congestion:
○ If too many packets are present in the subnet at the same time, they will get in one
another’s way, forming bottlenecks.
○ A state occurring in network layer when the message traffic is so heavy that it slows
down network response time. As delay increases, performance decreases.
● The Transport layer, or layer 4, is responsible for the transmission of data across
network connections.
● The transport layer provides services to the application layer and takes services from
the network layer.
● The data in the transport layer is referred to as Segments.
● It is responsible for the End to End Delivery of the complete message.
● The transport layer also provides the acknowledgment of the successful data
transmission and re-transmits the data if an error is found.
● Segmentation and Reassembly: This layer accepts the message from the (session)
layer, and breaks the message into smaller units,called segments.
Each of the segments produced has a header associated with it. The transport layer at
the destination station reassembles the message.
● The two main Transport layer protocols are:
○ Transmission Control Protocol [TCP]
■ It provides reliable communication between two hosts.
○ User Datagram Protocol [UDP]
■ It provides unreliable communication between two hosts.
Note:
Example:
Data Link
2 Node to Node Delivery of Message. Frame Switch, Bridge
Layer
Hub, Repeater,
1 Physical Layer Establishing Physical Connections between Devices. Bits
Modem, Cables
OSI model acts as a reference model and is not implemented on the
Internet because of its late invention. The current model being used
is the TCP/IP model.
● TCP/IP was designed and developed by the Department of Defense (DoD) in the
1960s and is based on standard protocols.
● It stands for Transmission Control Protocol/Internet Protocol.
● The TCP/IP model is a concise version of the OSI model. It contains four layers,
unlike the seven layers in the OSI model.
TCP/IP Model
TCP/IP Model
The Link Layer [Network Access Layer]
1. IP (Internet Protocol)
2. ICMP (Internet Control Message Protocol)
3. ARP (Address Resolution Protocol)
1. IP (Internet Protocol) :
★ It is responsible for delivering packets from the source host to the destination host by
looking at the IP addresses in the packet headers.
★ IP has 2 versions: IPv4 and IPv6.
★ IPv4 is the one that most websites are using currently. But IPv6 is growing as the number of
IPv4 addresses is limited in number when compared to the number of users.
1. ICMP (Internet Control Message Protocol):
★ It is encapsulated within IP Packets and is responsible for providing hosts with information
about network conditions or to report errors.
1. ARP (Address Resolution Protocol):
★ Its job is to find the hardware address of a host from a known IP address. ARP has several
types: Reverse ARP, Proxy ARP, Gratuitous ARP, and Inverse ARP.
The Transport Layer
★ HTTP: HTTP stands for Hypertext transfer protocol. This protocol allows us to access
the data over the world wide web. It transfers the data in the form of plain text, audio,
★ SMTP: SMTP stands for Simple mail transfer protocol. The TCP/IP protocol that
supports the e-mail is known as a Simple mail transfer protocol. This protocol is used
★ SNMP: Simple Network Management Protocol is used for managing and monitoring
★ DNS: The DNS (Domain Name System) protocol is an application-layer protocol used
corresponding IP addresses.
★ RTP: The RTP (Real-time Transport Protocol) for delivering real-time media such as