Unit 1 - Introduction To Computer Network
Unit 1 - Introduction To Computer Network
com
Introduction
Network is the interconnection of a set of devices capable of
communication.
There may be 2 kinds of devices in the network
1. Host:- also called end system. (desktop, laptop, cell phone)
2. Connecting Devices:- connects to other devices(modem, router, switch)
Network Criteria
1. Performance(evaluated by throughput and delay)
2. Reliability(evaluated by frequency of failure)
3. Scalability(Adding processing capacity)
4. Security(protecting data from unauthorized access)
2
For more notes visit https://collegenote.pythonanywhere.com
Introduction
Application of Computer Networks
1. Business Application
a) Resource Sharing
b) High Reliability
c) Saving Money
2. Home Application
a) Access to Remote Information(WWW)
b) Person to Person communication
c) Interactive Entertainment(Live TV, Games)
3
For more notes visit https://collegenote.pythonanywhere.com
Merits
• Allows File Sharing/ Resource Sharing
• Inexpensive System
• Flexible to be Used
• Increase in Storage Capacity of the Software
4
For more notes visit https://collegenote.pythonanywhere.com
Demerits
• Security Difficulties(Hacking)
• Presence of Computer Viruses and Other Malwares
For more notes visit https://collegenote.pythonanywhere.com
Network Models
• There are several classification for networks
• Classification based on Scale(size)
• Classification based on Topology
• Classification based on Architecture
6
For more notes visit https://collegenote.pythonanywhere.com
8
For more notes visit https://collegenote.pythonanywhere.com
9
For more notes visit https://collegenote.pythonanywhere.com
12
For more notes visit https://collegenote.pythonanywhere.com
13
For more notes visit https://collegenote.pythonanywhere.com
14
For more notes visit https://collegenote.pythonanywhere.com
15
For more notes visit https://collegenote.pythonanywhere.com
Topology
Topology :- Physical inter connection between different node
Node:- End device in computer network(Laptop, mobile, desktop, PDA,
tablet etc.)
Various Topologies are:-
• Bus
• Ring
• Star
• Mesh
• Tree
• Hybrid
16
For more notes visit https://collegenote.pythonanywhere.com
Bus
• In this system there are 8 nodes Figure : Bus Topology
connected to network using 2
1 3 4
common connection also called
bus Bus
17
For more notes visit https://collegenote.pythonanywhere.com
Ring
• Data travels in circular fashion from
one computer to another on the 1
network.
• Typically FDDI, SONET or Token Ring 2 3
technology are used to implement a
ring network
• Data access based on token 4 5
• Only one way data transfer
• Data passed through intermediate
nodes to destination Consider if data transfer from
node 1 to 2, It will pass through
3,5,4 and reaches 2
18
For more notes visit https://collegenote.pythonanywhere.com
Ring
Advantages Disadvantage
• A central server is not required for • Failure of a single node in the network
the management can cause the entire network to fail.
• Traffic is unidirectional and the data • Less secured because of intermediate
transmission is high-speed. nodes
• Comparison to a bus, a ring is better
• Lower speed because of intermediate
at handling load.
nodes
• Easier configuration and fault
detection
• Less expensive than a star topology.
19
For more notes visit https://collegenote.pythonanywhere.com
Star
• All computers/devices connect
to a central device called hub or 1
switch.
• Each device requires a single
4 Hub/Switch 2
cable
• Point-to-point connection
between the device and hub. 3
• Most widely implemented
• Hub/Switch is the single point of
failure
20
For more notes visit https://collegenote.pythonanywhere.com
Star
Advantages Disadvantage
• Due to its centralized nature, the • Network operation depends on the
topology offers simplicity of functioning of the central hub. Hence,
operation central hub failure leads to failure of
• Isolation of each device in the the entire network
network • Also, the number of nodes that can be
• Adding or removing network nodes is added, depends on the capacity of the
easy, and can be done without central hub
affecting the entire network • The setup cost is quite high.
• Due to the centralized nature, it is
easy to detect faults in the network
devices
• As the analysis of traffic is easy, the
topology poses lesser security risk
21
For more notes visit https://collegenote.pythonanywhere.com
Mesh
• Each computer connects to
every other.
1 2
• High level of redundancy.
• Rarely used
• Wiring is very complicate
• Cabling cost is high 3 4
22
For more notes visit https://collegenote.pythonanywhere.com
Mesh
Advantages Disadvantages
• Possible to transmit data from one • Many connections serve no major
node to many other nodes at the purpose
same time • Lot of cabling is required
• Failure of a single node does not • Costs incurred in setup and
cause the entire network to fail as
there are alternate paths for data maintenance are high
transmission • Administration of a mesh network is
• It can handle heavy traffic, as there difficult
are dedicated paths between any two
network nodes
• Point-to-point contact between every
pair of nodes, makes it easy to
identify faults
23
For more notes visit https://collegenote.pythonanywhere.com
Tree
• Hierarchical structure like
inverted tree 1 Level 1
24
For more notes visit https://collegenote.pythonanywhere.com
Tree
Advantages Disadvantages
• Expansion of nodes is possible • Heavily cabled
and easy • Costly
• Easily managed and maintained • If more nodes are added
• Error detection is easily done maintenance is difficult
• If one node fails all nodes under
it will be out of the network
25
For more notes visit https://collegenote.pythonanywhere.com
Hybrid
• Two or more different types of Advantages
topologies which is a mixture of • Effective
two or more topologies
• Scalable
• For example if in an office in one
department ring topology is • Flexible
used and in another star Disadvantages
topology is used, connecting • Complex in design
these topologies will result in
Hybrid Topology (ring topology • Costly.
and star topology).
26
For more notes visit https://collegenote.pythonanywhere.com
27
For more notes visit https://collegenote.pythonanywhere.com
Peer to Peer(P2P) 1
P2P
2
28
For more notes visit https://collegenote.pythonanywhere.com
Peer to Peer(P2P)
Advantage
1. Easy to install and configure
2. All the resources and contents are shared by all the peers
3. P2P is more reliable as central dependency is eliminated
4. No need for full-time System Administrator(No central Admin)
5. Cost comparatively very less
29
For more notes visit https://collegenote.pythonanywhere.com
Peer to Peer(P2P)
Disadvantage
1. One person (user / administrator )cannot determine the whole
accessibility setting of whole network
2. Security in this system is very less viruses, spywares,trojans, etc
malwares can easily transmitted over this P-2-P architecture
3. Data recovery or backup is very difficult. Each computer should
have its own back-up system
4. Lot of movies, music and other copyrighted files are transferred
using this type of file transfer. P2P is the technology used in torrents
30
For more notes visit https://collegenote.pythonanywhere.com
Client/Server(Tiered)
• Computing system in which one powerful workstation serves the requests
of other systems
• Server :- Provides services to clients
• Client :- Accept services from server
• Server is central device for managing files , and other resources.
• If server is down all communication among the clients will be down
• Features of Servers :-
1. They have large storage capacity.
2. They are able to provide information to many computers simultaneously,
therefore have large RAM
3. Its processor speed is high, as it may have to execute multi-tasking too
31
For more notes visit https://collegenote.pythonanywhere.com
Client/Server
Advantages Server
1. Centralization
2. Proper Management
C1 C2 C3 Clients
3. Back-up and Recovery possible
4. Upgradation and Scalability in Client-server set-up
5. Accessibility
6. Security
32
For more notes visit https://collegenote.pythonanywhere.com
Client/Server
Disadvantages
1. Congestion in Network(Too many requests at same time)
2. Cost : It is very expensive to install and manage this type of
computing
3. Client-Server architecture is not as robust as a P2P and if the server
fails, the whole network goes down.
4. You need professional IT people to maintain the servers and other
technical details of network.
33
For more notes visit https://collegenote.pythonanywhere.com
Active Networks(ANTS)
• Allows packets flowing through a telecommunications network to
dynamically modify the operation of the network
• Dynamic modification is mainly for improving the performance of the
system
• Real time /Rapid changes in network is allowed
• Usually network packets consist of data only but in ANTS packets
consist of code and data
• Application customized code to be executed in network
34
For more notes visit https://collegenote.pythonanywhere.com
35
For more notes visit https://collegenote.pythonanywhere.com
Reference Model
• 2 important reference models OSI reference model & TCP/IP
reference model
• Also called Protocol Architecture or Layered Architecture
• Mainly define the protocols of communication in layered architecture
For more notes visit https://collegenote.pythonanywhere.com
Protocol ???
• Protocol means rule
• In computer networking Protocol means rules for establishing
communication between 2 devices
• Consists of a set of rules that govern data communications
• determines what is communicated, how it is communicated and
when it is communicated
• Key Elements
1. Syntax
2. Semantics
3. Timing
For more notes visit https://collegenote.pythonanywhere.com
TCP Layer
Application Layer
• Similar to Application Presentation and Session layer in OSI
• Application programs using the network
Transport Layer (TCP/UDP)
• Similar to Transport Layer in OSI
• Only TCP protocol works
• Management of end-to-end message transmission,
• error detection and error correction
For more notes visit https://collegenote.pythonanywhere.com
TCP Layer
Internetwork Layer (IP)
• Similar to Network layer in OSI
• IP Address
• Handling of packets : routing and congestion
Network Access Layer
• Similar to Datalink and physical layer in OSI
• Management of cost effective and reliable data delivery,
• access to physical networks
• Physical Media
For more notes visit https://collegenote.pythonanywhere.com
TCP/IP vs OSI
Application
Presentation Data Application Data
Session
Transport Segment Transport Segment
Network Packet Internetwork Packet
Data Link Frames Network Frames
Physical Bits Access & Bits
OSI TCP/IP
For more notes visit https://collegenote.pythonanywhere.com
TCP/IP Vs OSI
OSI TCP/IP
• 7 Layered architecture • 4 Layered architecture
• Designed for General Network • Internet only
• Supports TC and UDP • Supports only TCP
• Designed both Functionalities of layer • More based on protocols than
and protocol functions
• Defines functionalities of all layer • Only protocol
• Protocols are hidden in OSI model • Difficult to change the protocol in
and are easily replaced as the future
technology changes.
For more notes visit https://collegenote.pythonanywhere.com
1. Connection is established.
2. Information is sent.
3. Connection is released.
Connectionless Services
It is similar to the postal services, as it carries the full address where the message (letter) is to be
carried. Each message is routed independently from source to destination. The order of message
sent can be different from the order received.
In connectionless the data is transferred in one direction from source to destination without
checking that destination is still there or not or if it prepared to accept the message.
Authentication is not needed in this. Example of Connectionless service is UDP (User Datagram
Protocol) protocol.