Overview of Computer Networks and Uses
Overview of Computer Networks and Uses
• Data hierarchy refers to how data is organized and structured, typically in a tree-
like or layered fashion, with each level representing different levels of detail or
abstraction
among computers.
• Protocols: TCP/IP
Need for Networks
• A computer that operates independently from other computers is
called a stand-alone computer.
• Need for Networks is to
– Enhance communication.
– Share resources.
– Facilitate centralized management.
• Peripheral devices include faxes, modems, scanners, printers, and any other device that
• Equipment having common requirements can be shared in order to reduce maintenance cost.
• Important data can also be stored centrally to make it accessible to users, thereby saving
• Computer applications, which take up a considerable amount of storage space, can be installed
• Software can be installed at a central location using servers, where the installation
files are made accessible over the network.
Types of Networks
• PAN (Personal Area Network)
• LAN (Local Area Network)
• MAN (Metropolitan Area Network)
• WAN (Wide Area Network)
What is a PAN?
• A Personal Area Network (PAN) is a small network
used for communication among personal devices
such as smartphones, laptops, and tablets within a
range of a few meters.
• Wireless:
- Greater mobility
- May have interference and lower speed
Network Topologies
• Bus Topology
• Ring Topology
• Star Topology
• Mesh Topology
• Hybrid Topology
Uses of Computer Networks
• Education: Online classes, digital libraries
• Business: Cloud computing, CRM tools
• Healthcare: Telemedicine, patient records
• Government: E-Governance
Role of the Internet
• Backbone of global communication
• e-commerce, social networking, research
• Access to cloud services and online tools
Security in Networks
• Firewalls to prevent unauthorized access
• Encryption for secure data transmission
• VPN for secure remote access
Future Trends
• 6G Networks for faster data transmission
• IoT: Smart homes, connected devices
• Software-defined Networks (SDN) for flexible control
Summary
• Computer networks enable efficient communication
and resource sharing
• Multiple types with distinct purposes
• Essential for modern applications across all
domains
Data and Information
• Data refers to the raw facts that are collected while information refers to processed
data that enables us to take decisions.
• Example: When result of a particular test is declared it contains data of all students.
• When you find the marks you have scored you have the information that lets you
know whether you have passed or failed.
• The word data refers to any information which is presented in a form that is agreed
and accepted upon by is creators and users.
Data Communication
What is Data Communication?
• Data Communication is a process of exchanging data or information.
• In case of computer networks this exchange is done between two devices over a
transmission medium.
• This process involves a communication system which is made up of hardware and
software.
• The hardware part involves the sender and receiver devices and the intermediate
devices through which the data passes.
• The software part involves certain rules which specify what is to be communicated,
how it is to be communicated and when, it is also called as a Protocol.
Data Communication
What is Data Communication?
• Data communication refers to the exchange of data between a source and a receiver
via form of transmission media such as a wire cable.
• Data communication is said to be local if communicating devices are in the same
building or a similarly restricted geographical area.
1. Delivery: The data should be delivered to the correct destination and correct user.
2. Accuracy: The communication system should deliver the data accurately, without introducing any
errors. The data may get corrupted during transmission affecting the accuracy of the delivered data.
3. Timeliness: Audio and Video data has to be delivered in a timely manner without any delay; such a
data delivery is called real time transmission of data.
4. Jitter: It is the variation in the packet arrival time. Uneven jitter may affect the timeliness of data
being transmitted.
Components of Data Communication System
Components of data communication system
1. Message: It is the information or data to be communicated. It can consist of text, numbers, pictures,
sound or video or any combination of these.
– The distance between sender and receiver depends upon the types of network used in between.
4. Medium: It is the channel or physical path through which the message is carried from sender to the
receiver. The medium can be wired like twisted pair wire, coaxial cable, fiber-optic cable or wireless like
laser, radio waves, and microwaves.
– Both sender and receiver follow same protocol to communicate with each other.
• The data can flow between the two devices in the following ways.
1. Simplex
2. Half Duplex
3. Full Duplex
1. Simplex
• Only one of the devices sends the data and the other one only receives the data.
• Example: in the above diagram: a CPU sends data while a monitor only receives data.
Data Flow
2. Half Duplex
• In half duplex both the stations can transmit as well as receive but not at the same time.
• When one device is sending other can only receive and vice-versa
• Example: A walkie-talkie.
3. Full Duplex
• In Full duplex mode, both stations can transmit and receive at the same time.
• Example: mobile phones.
1. Data Sequencing: It refers to breaking a long message into smaller packets of fixed size. Data sequencing rules define
the method of numbering packets to detect loss or duplication of packets, and to correctly identify packets, which
belong to same message.
2. Data Routing: Data routing defines the most efficient path between the source and destination.
3. Data Formatting: Data formatting rules define which group of bits or characters within packet constitute data,
control, addressing, or other information.
4. Flow Control: A communication protocol also prevents a fast sender from overwhelming a slow receiver. It ensures
resource sharing and protection against traffic congestion by regulating the flow of data on communication lines.
5. Error Control: These rules are designed to detect errors in messages and to ensure transmission of correct messages.
The most common method is to retransmit erroneous message block. In such a case, a block having error is discarded
by the receiver and is retransmitted by the sender.
Functions of a Protocol
6. Precedence and order of Transmission: These rules ensure that all the nodes get a chance to use the communication
lines and other resources of the network based on the priorities assigned to them.
7. Connection Establishment and Termination: These rules define how connections are established, maintained and
terminated when two nodes of a network want to communicate with each other.
8. Data Security: Providing data security and privacy is also built into most communication software packages. It prevents
access of data by unauthorized users.
9. Log Information: Several communication software are designed to develop log information, which consists of all jobs and
data communications tasks that have taken place. Such information may be used for charging the users of the network
based on their usage of the network resources.
Types of Data Transmission
Parallel Transmission
Definition: Within a computing or communication
device, the distances between different subunits are
too short.
• Thus, it is normal practice to transfer data between subunits using a separate wire to carry each bit of data.
• There are multiple wires connecting each sub-unit and data is exchanged using a parallel transfer mode.
• In parallel transmission, all the bits of data are transmitted simultaneously on separate communication lines.
• In order to transmit ‘n’ bits, ‘n’ wires or lines are used. Thus each bit has its own line.
• All ‘n’ bits of one group are transmitted with each clock pulse from one device to another i.e. multiple bits are sent with
each clock pulse.
Sender
Simultaneous Transmission of 8-bit data Receiver
• It is speedy way of transmitting data as multiple bits are transmitted simultaneously with a single clock pulse.
Serial Transmission
Definition:
Data is transmitted as a single bit at a time using a fixed
time interval for each bit.
• When transferring data between two physically separate devices, especially if the separation is more than a few
kilometres, for reasons of cost, it is more economical to use a single pair of lines.
• In serial transmission, the various bits of data are transmitted serially one after the other.
• It requires only one communication line rather than n lines to transmit data from sender to receiver.
• Thus all the bits of data are transmitted on single line in serial fashion.
• In serial transmission, only single bit is sent with each clock pulse.
Serial Data Transmission
• As shown in the above figure, suppose an 8-bit data 11001010 is to be sent from source to destination.
• The Least Significant Bit (LSB) i.e., 0 will be transmitted first followed by other bits.
• The Most Significant Bit (MSB) i.e., 1 will be transmitted in the end via single communication line.
• The internal circuitry of computer transmits data in parallel fashion. So in order to change this parallel data into serial
data, conversion devices are used.
• These conversion devices convert the parallel data into serial data at the sender side so that it can be transmitted over
single line.
• On receiver side, serial data received is again converted to parallel form so that the interval circuitry of computer can
accept it.
• Use of single communication line reduces the transmission line cost by the factor of ‘n’ as compared to parallel
transmission.
1. Use of conversion devices at source and destination end may lead to increase in overall transmission cost.
2. This method is slower as compared to parallel transmission as bits are transmitted serially one after the other.
• There are two types of serial transmission - Synchronous and Asynchronous both these transmissions use 'Bit
synchronization'
• Bit Synchronization is a function that is required to determine when the beginning and end of the data transmission
occurs.
• Bit synchronization helps the receiving computer to know when data begin and end during a transmission.
• Bit synchronization between two devices is made possible using start bit and stop bit.
• Start bit indicates the beginning of data i.e. alerts the receiver to the arrival of new group of bits. A start bit usually 0
is added to the beginning of each byte.
• Stop bit indicates the end of data i.e. to let the receiver know that byte is finished, one or more additional bits are
appended to the end of the byte.
• This mechanism is called Asynchronous, because at byte level sender and receiver need not to be synchronized.
• But within each byte, receiver must be synchronized with the incoming bit stream.
2. Asynchronous transmission is best suited to Internet traffic in which information is transmitted in short bursts.
This type of transmission is used by modems.
Advantages of Asynchronous Transmission
1. This method of data transmission is cheaper in cost as compared to synchronous e.g. If lines are short, asynchronous
transmission is better, because line cost would be low and idle time will not be expensive.
2. In this approach each individual character is complete in itself, therefore if character is corrupted during transmission, its
successor and predecessor character will not be affected.
4. The transmission can start as soon as data byte to be transmitted becomes available.
2. Successful transmission inevitably depends on the recognition of the start bits. These bits can be missed or corrupted.
Synchronous Data Transmission
• Synchronous transmission does not use start and stop bits.
• In this method bit stream is combined into longer frames that may contain multiple bytes.
• In the absence of start & stop bits, bit synchronization is established between sender & receiver by 'timing' the
transmission of each bit.
• Since the various bytes are placed on the link without any gap, it is the responsibility of receiver to separate the bit
stream into bytes so as to reconstruct the original information.
• In order to receive the data error free, the receiver and sender operates at the same clock frequency.
Application of Synchronous Transmission
1. Synchronous transmission is used for high speed communication between computers
2. The sender and receiver have to operate at the same clock frequency. This requires proper synchronization which
makes the system complicated.
Comparison between
Serial and Parallel Transmission
Serial Parallel
S. No Factor
Transmission Transmission
Number of bits
1 transmitted at one One bit ‘n’ bits
clock pulse
Number of lines
2 One line ‘n’ lines
transmit ‘n’ bits
Speed of data
3 Slow Fast
transfer
Cost of Low as one line High as ‘n’ lines
4
transmission is required are required
Long distance Short distance
communication communication
5 Application
between two like computer to
computers printer
Comparison between
Asynchronous and Synchronous Transmission
• Transmitter
– Converts data into transmittable signals.
– Example, a modem takes a digital bit stream from an attached device such as a personal computer
and transforms that bit stream into an analog signal that can be handled by the telephone network.
• Transmission System
– Carries data.
– This can be a single transmission line or a complex network connecting source and destination.
• Receiver
– Converts received signal into data.
– Example, a modem will accept an analog signal coming from a network or transmission line and
convert it into a digital bit stream.
• Destination
– Takes incoming data.
Communication Tasks
Interfacing Routing
Flow control
Communication Tasks
Transmission System Utilization
✓ Efficient use of transmission facilities,
• Example: multiplexing, congestion control
Interfacing
✓ Electromagnetic signals propagated over the transmission medium
Signal Generation
✓ Signal must be capable of being propagated through transmission system
✓ Signal must be interpretable as data at the receiver
Synchronization
✓ Between transmitter and receiver
✓ Receiver should determine when a signal begins to arrive, when it ends, and
its duration
Communication Tasks
Exchange Management
✓ If data are exchanged in both directions
✓ Must be decided whether both devices may tranmit simultaneously or in turns, the amount and format of data
etc.,
Flow control
✓ To assure that the source does not overwhelm the destination by sending data faster than they can be
processed by the receiver.
Formatting
✓ Agreement to the form of data to be exchanged
Security
✓ The sender of data wants to be assured that only the intended receiver actually receives the data
Network Management
✓ For system configuration
✓ Monitoring the system status
✓ Planning
✓ Alarm reporting and troubleshooting
Data Communication Model
❑ Propagation Delay: The time it takes a signal to propagate from one node to the next.
❑ The speed of electromagnetic signals through a wire medium, it is typically 2 108 m/s.
❑ Transmission Time: The time it takes for a transmitter to send out a block of data.
❑ For example, it takes 1 s to transmit a 10,000-bit block of data onto a 10-kbps line.
❑ Node Delay: The time it takes for a node to perform the necessary processing as it
switches data.
Effect of Packet Size on Transmission Time
❑ There is a significant relationship between packet size and transmission
time.
❑ The message to be sent comprises 40 octets, with 3 octets of control
information at the beginning of each packet in the header.
❑ If the entire message is sent as a single packet of 43 octets (3 octets of
header plus 40 octets of data), then the packet is first transmitted from
station X to node. When the entire packet is received, it can then be
transmitted from a to b. When the entire packet is received at node b, it is
then transferred to station Y. Ignoring switching time, total transmission
time is 129 octet-times (43 octets 3 packet transmissions).
❑ By breaking the message into two packets with 20 octets of message and 3
octets of header each. In this case, node a can begin transmitting the first
packet as soon as it has arrived from X. Because of this overlap in
transmission, the total transmission time drops to 92 octet-times.
❑ By breaking the message into five packets, each intermediate node can
begin transmission even sooner, with a total of 77 octet-times for
transmission.
❑ This process of using more and smaller packets eventually results in
increased, rather than reduced delay
Effect of Packet Size on Transmission Time
❑ Data: 40 octets
❑ Header: 3 Octets
❑ Number of Intermediate Nodes: 2
❑ Transmission Time = (Packet Size including Header in octets) * (Number
of Intermediate Nodes + Number of Packets) octet times
***********************************************************************************
❑ Case 1: Number of Packets:1
Packet Size (including Header): 43 octets
Transmission Time: 43*(2+1)=43*3= 129 octet times.
❑ Case 2: Number of Packets:2
Packet Size (including Header): 23 octets
Transmission Time: 23*(2+2)=24*4= 92 octet times.
❑ Case 3: Number of Packets:5
Packet Size (including Header): 11 octets
Transmission Time: 11*(2+5)=11*7= 77 octet times.
❑ Case 4: Number of Packets:10
Packet Size (including Header): 7 octets
Transmission Time: 7*(2+10)=7*12= 84 octet times.
Line Configuration
❑ Two characteristics that distinguish various data link configurations are
a) Topology and
❑ If each terminal has a point-to-point link to its computer, then the computer must have one
❑ Also there is a separate transmission line from the computer to each terminal.
❑ In a multipoint configuration, the computer needs only a single I/O port and a single
❑ Traditional multipoint topologies are made possible when the terminals are only transmitting a
❑ or echo canceling
Network Topologies
❑ Describe the basic and hybrid LAN physical topologies, and their uses, advantages and
disadvantages
❑ Describe the backbone structures that form the foundation for most LANs
Simple Physical Topologies
✓ Ring
✓ Star
devices
❑ Devices share responsibility for getting data from one point to another
Advantages
➢ Difficult to administer/troubleshoot
❑ Token contains a piece of information which along with data is sent by the source
computer
❑ This token then passes to next node, which checks if the signal is intended to it
❑ Expensive
❑ Each packet of data must pass through all the computers between source and
❑ If one workstation or port goes down, the entire network gets affected
❑ Each networked device in star topology can access the media independently
❑ Easy to manage
✓ The use of hub as central device increases the overall cost of the network
❑ Performance and as well number of nodes which can be added in such topology is
❑ Rather than single concentrator routers, two or more routers are used
User Location B
User Location A
T1 T1 T1 T1 T1
T1 T1 T1
56Kb 56Kb
scalable.
❑ A three-tiered WAN constructed with dedicated facilities offers even greater fault
Disadvantage:
User Location A
T1
T1
T1
T1
T1 T1 User Location C
User Location B
User Location D
Full-mesh Topology
❑ This topology features the ultimate reliability and fault tolerance
❑ Redundant routes to each location are plentiful, hence static routing impractical.
❑ Another potential application is to fully mesh just parts of the WAN, such as the
backbone of a multitiered WAN or tightly coupled work centers
Advantages and Disadvantages of
Full-mesh Topology
Advantages:
Disadvantages:
User Location A
T1
T1
T1
T1
User Location C
User Location B
User Location D
Partial-mesh topology
❑ Partial meshes are highly flexible topologies that can take a variety of very
different configurations
❑ The routers are much more tightly coupled than any of the basic topologies but
are not fully interconnected, as would be the case in a fully meshed network
❑ Partial meshes offer the capability to minimize hops for the bulk of the WAN’s users
❑ Unlike fully meshed networks, a partial mesh can reduce the startup and operational
expenses by not interconnecting low-traffic segments of the WAN, hence more affordable
and scalable
Hybrid Topologies
tier of routers
T3 T3
Backbone tier
T1
T1 T1
User Location D
User Location B
T1 T1 T1
56Kb 56Kb
User Tier
❑ This simple approach uses ports on existing hubs for interconnecting the hubs
❑ Daisy chains are easily built and don’t require any special administrative skills
❑ Daisy chains were, historically, the interconnection method of choice for emerging, first-generation LANs
Disadvantage of Daisy Chain
❑ Increases the number of connections, and therefore the number of devices, on a LAN.
❑ Too many devices competing for the same amount of bandwidth can create collisions and
Printer/
Router Resource
Hub
Bridge
Node
Hub
Internet
Inter-networking Devices
Inter-networking Devices
❑ REPEATERS Physical Layer (Layer 1)
Repeaters are devices that amplify and retransmit signals, extending the reach of wired or
wireless networks
Repeater
Physical Layer: Hubs
Hub :
➢ A hub is device used to connect several computers together.
➢ Hubs cannot filter data, so data packets are sent to all connected devices.
➢ Also, they do not have intelligence to find out best path for data packets which leads to
inefficiencies and wastage.
Types of Hub
Active Hub :- Active hubs use electronics to amplify and clean up the signal before it is
broadcast to the other ports.
Passive Hub :- Passive hubs simply connect all ports together electrically and they are not
powered.
Physical Layer: Hubs
❑ Joins multiple input lines electrically
❑ Designed to hold multiple line cards
Hub
Hub Hub
Limitations of Repeaters and Hubs
❑ One large shared link
❑ Each bit is sent everywhere
❑ So, aggregate throughput is limited
❑ E.g., three departments each get 10 Mbps independently
❑ … and then connect via a hub and must share 10 Mbps
BRIDGE
❑ Bridge is simpler
❑ Connects similar LANs, following the same protocol
❑ Minimal processing
❑ Reliability
❑ Performance
❑ Security
❑ Geography
Functions of a Bridge
❑ Read all frames transmitted on one LAN and accept those address to any station on
the other LAN
❑ No encapsulation
❑ Dedicated access
❑ Host has direct connection to the switch
❑ Full duplex
❑ Each connection can send in both directions
118
Routers
❑ Routers operate at the network layer.
❑ A router is a device like a switch that routes data packets based on their IP addresses.
❑ Routers may split a message into several smaller messages for transmission.
❑ Routers connect two or more LANs and WANs that use same or different data link
protocols , but the same network protocol
❑ Routers may be referred to as “black boxes”, computers with several NICs or special
network modules in computers
❑ In general they perform more processing on each message that bridges and therefore
operate more slowly
Router Vs Bridge
Routers Bridges
Routers operate in the network layer of OSI
Bridge operates in data link layer of OSI Model.
Model.
The router is used to connect the LAN and The bridge is used to connect two different LAN
WAN. segments.
The router transmits data in the form of
Bridge transmit data in the form frames.
packets.
It reads the IP Address of a device. Bridge reads the MAC Address of a device.
The router has more ports compare to bridge. The bridge has only two ports.
The bridge does not use any routing table for
It uses routing table for sending data.
sending data.
It works on more than one broadcast domain. It works on a single broadcast domain.
Routers use a software-configured network Bridges determine the destination address with
address to determine the address. the help of the MAC address of the device.
With the help of MAC addresses of the devices, the
It communicates with other routers to decide
Bridges listen to the network traffic and then
the best way to transfer the data.
decide the way to send the data.
The bridge does not create multiple paths to send
The router creates multiple paths to send data.
data.
protocols such as RIP, IGRP, OSPF, etc can be Any routing protocols cannot be configured in a
configured in a router. bridge.
Gateways
❑ A gateway, as the name suggests, is a passage to connect two networks together that may work
upon different networking models.
❑ They basically work as the messenger agents that take data from one system, interpret it, and
transfer it to another system.
❑ Gateways are also called protocol converters and can operate at any network layer.
❑ The gateways provides both the basic system interconnection and the necessary translation
between the protocols in both directions.
Modem
Modem :
Modem means Modulator- Demodulator.
Modulation : digital information to analog signals.
Demodulation: Analog signal back into digital information.
Network Interface Cards
Network Interface Card (NIC):
➢ NIC provides physical interface between computer and cabling.
➢ NIC prepares data, sends data, and controls the flow of data.
➢ It can also receive and translate data into bytes for the CPU to understand.
➢ It has specific MAC address.
❑ Wireless routers can function as (AP), but not all APs can work as routers.
Standardized Protocol Architectures
❑ Seven layers
❑ Each layer relies on the next lower layer to perform more primitive functions
❑ Transport of information
❑ Error free
❑ In sequence
❑ No losses
❑ No duplicates
❑ Quality of service
OSI Reference Model
❑ Layer 5: The Session Layer
❑ Provides user-oriented connection service
❑ Control of dialogues between applications
❑ Grouping
❑ Recovery
❑ Transfers data over communication lines
✓ Example: TCP/IP
❑ TCP/IP
✓ Emphasizes internetworking
❑ Four/Five layers
TCP/IP Protocol Architecture
❑ Developed by the US Defense Advanced Research Project Agency (DARPA) for
its packet switched network (ARPANET)
❑ Signal levels
❑ Data rates
Network Access Layer
❑ Ordering of delivery
Application Layer
❑ The OSI model was devised before the ❑ TCP/IP model was just a description of the
protocols were invented. It can be made to existing protocols. The model and the
work in diverse heterogeneous networks. protocol fit perfectly.
❑ OSI emphasis on providing a reliable data ❑ TCP/IP treats reliability as an end to end
transfer service Problem.
❑ Each layer of the OSI model detects and ❑ The transport layer handles all error
handles errors detection and recovery, it was checksums,
reliability. verification.
❑ Host on OSI implementations do not handle ❑ TCP/IP hosts participate in most network
❑ It can be used for communicating between the devices themselves, or for connecting to a larger network such
as the internet
❑ PAN’s can be wired with a computer bus such as a universal serial bus:
PAN’s can also be wireless through the use of bluetooth (a radio standard
❑ LAN’s enable the sharing of resources such as files or hardware devices that may be needed
by multiple users
❑ Is limited in size, typically spanning a few hundred meters, and no more than a mile
❑ Requires very little wiring, typically a single cable connecting to each device
❑ Private owned
❑ No regulation
❑ Media or Cables
✓ Unshielded twisted pair (inexpensive)
❑ Hub (compatible)
✓ connect wires and cables, repeater, error detection
❑ Nodes in a LAN are linked together with a certain topology. These topologies include:
❑ Bus
❑ Ring
❑ Star
❑ Branching tree
❑ A node is defined to be any device connected to the network. This could be a computer, a printer etc.
❑ A Hub is a networking device that connects multiple segments of the network together
❑ A Network Interface Card (NIC) is the circuit board that is used to connect computers to the network. In most cases, this is
an Ethernet card plugged in a computer’s motherboard
❑ The Network Operating System (NOS) is the software that enables users to share files and hardware and communicate with
other computers. Examples of NOS include: Windows XP, Windows NT, Sun Solaris, Linux, etc..
❑ Resource sharing in a LAN is accomplished with different access methods. These include:
❑ CSMA/CD
Types of Ethernet LANs
❑ 10Base-T
❑ Operates at 10 Mbps
❑ IEEE 802.3 standard
❑ Gigabit Ethernet
❑ Operates at 1 Gbps
❑ Uses fiber optic cable
❑ 10 Gbps Ethernet
❑ Latest development of ethernet
❑ Uses fiber optic cable
❑ Developed to meet the increasing bandwidth needs of the LAN market
❑ Wireless Ethernet
❑ IEEE 802.11 standard
❑ Operates at around 2.4 Gbps
Metropolitan Area Network
❑ Configuration spanning area larger than LAN
❑ Several blocks of buildings to entire city