8/22/2019 basics of networks
1/66
UNIT I
8/22/2019 basics of networks
2/66
What is the Computer Network? A communication network is a set of nodes connected by
links and able to communicate with one another.
A computer network is a communication network in which
nodes are computers.
8/22/2019 basics of networks
3/66
Benefits of Computer Networks
Resource Sharing
Hardware (computing resources, disks, printers)
Software (application software)
Information Sharing
Easy accessibility from anywhere (files, databases)
Search Capability (WWW)
Communication Email
Message broadcast
8/22/2019 basics of networks
4/66
Problems with Computer Networks
Relaying of message over multiple
communication links
Sharing of communication links between
many users
Distributed control of the system
8/22/2019 basics of networks
5/66
Networks Types Classification Based on Area
and Ownership
Local Area Networks
A LAN is a group of
computers connected in
small geographical area (a
few kilometers) i.e.connect computers in an
office building
Privately owned
LAN topologies-Bus, Star,
Ring and Mesh Speed-100Mbps to 1Gbps
Examples-Ethernet, Token
Ring
8/22/2019 basics of networks
6/66
Metropolitan Area Networks
A MAN connects an arealarger than a LAN (50km-80km), such as a city, withdedicated or high-performance hardware i.e.coaxial cable, optic fibres
Speed-1Gbps
Privately owned or serviceprovided by a telephonecompany
8/22/2019 basics of networks
7/66
Wide Area Networks
A WAN is a group ofcomputers connected inlarge geographical areasuch as country
connect distantcomputers usingmicrowaves, radio wavesand fiber optic.
Costly hardware, routers,dedicated leased lines and
complicated implementationprocedures.
Example: Internet - Userusing a telephone line toconnect to an ISP (InternetService Provider)
8/22/2019 basics of networks
8/66
Network Topologies
Topology refers to the shape of a network, or
the network's layout.
How, different nodes in a network areconnected to each other and how they
communicate are determined by the network's
topology.
The choice of topology is dependent upon
Type and number of equipments being used
Cost
8/22/2019 basics of networks
9/66
Network Topologies
Computer networks topologies
Bus
Star
Ring
Mesh
8/22/2019 basics of networks
10/66
Bus Topology
All devices are connected to a central cable,called the bus or backbone.
Systems connect to this backbone using Tconnectors or taps
8/22/2019 basics of networks
11/66
Bus Topology
Both ends of the network must beterminated with a terminator.
8/22/2019 basics of networks
12/66
Bus Topology
The backbone functions as a shared
communication medium
Device wanting to communicate with another
device on the network sends a message onto
the backbone
The message is heard by all stations, but only
the intended recipient actually accepts and
processes the message.
Terminator absorbs frames at end of medium
8/22/2019 basics of networks
13/66
Frame Transmission - Bus LAN
Station C want to
transmit a frame to
station A.
8/22/2019 basics of networks
14/66
Bus Advantages and
Disadvantages
Advantages
Simple, easy to use and construct
Requires least amount of cable (less expensive)
Disadvantages
A faulty cable will take the entire LAN down
Difficult to troubleshoot
Heavy network traffic can slow bus considerably
Network disruption when computers are
added or removed
8/22/2019 basics of networks
15/66
Star Topology
8/22/2019 basics of networks
16/66
Star Types
All computers/devices connect to a central device
called hub or switch.
Nodes communicate across the network by passing
data through the central device
Each device requires a single cable
point-to-point connection between the device and
hub.
Most widely implemented Hub/Switch is the single point of failure
8/22/2019 basics of networks
17/66
Star Advantages
Single computer failure doesnt bring down
whole network
Adding new devices to a Star network is very
simple compared to any of the othertopologies
No disruptions to the network when connecting
or removing devices.
Centralized control i.e. Centralized
network/hub monitoring
Easy to troubleshoot
8/22/2019 basics of networks
18/66
Star Disadvantages
If central device fails, the whole network fails Compared to the bus topology, a star network
generally requires more cable
More expensive than linear bus topologiesbecause of the cost of the central device
8/22/2019 basics of networks
19/66
Ring Topology
All devices are connected to one another in the shape ofa closed loop, so that each device is connected directly
to two other devices, one on either side of it.
Data is passed one way from device to device.
8/22/2019 basics of networks
20/66
Ring Topology
A short message (called a token) is circulated aroundthe ring, being passed from station to station.
The token originates from a controller or master
station which inserts it onto the ring.
A station which wants to transmit waits for the token to
arrive.
When the token arrives, the station changes it from atoken to a connector message, and appends its
message. This new message is then placed on the
outgoing side of the ring.
8/22/2019 basics of networks
21/66
Ring Topology
Each station passes on received tokens if they havenothing to transmit.
They monitor connector messages to see if the message isaddressed to them.
If connector messages are addressed to them, they copythe message, modify it to signify its receipt, then send it onaround the ring.
Connector messages which are not addressed to them arepassed directly on to the next station in the ring.
When the connector message travels full circle and arrivesat the original sending station, it checks the message tosee if it's been received. It then discards the message andreplaces it with a token.
8/22/2019 basics of networks
22/66
Frame Transmission - Ring LAN
8/22/2019 basics of networks
23/66
Frame Transmission - Ring LAN
8/22/2019 basics of networks
24/66
Frame Transmission - Ring LAN
8/22/2019 basics of networks
25/66
Frame Transmission - Ring LAN
Ri Ad t d
8/22/2019 basics of networks
26/66
Ring Advantages and
Disadvantages
Advantages Equal access for all users
Perform well under heavy traffic
Disadvantages If one device/cable fails then the whole network goes
down.
Difficult to troubleshoot
Adding/Removing computers disrupts the whole
network
8/22/2019 basics of networks
27/66
Mesh Topology
In a mesh topology each device/PC isconnected to every other device/PC in the
network by its own cable
M h Ad t d
8/22/2019 basics of networks
28/66
Mesh Advantages and
Disadvantages
Advantages Mesh topology boasts the highest fault tolerance of all
of the network topologies
The network can be expanded implementation without
disruption to current uses
Disadvantages
Because each connection needs its own cable aMesh topology can get very expensive.
Complicated implementation
8/22/2019 basics of networks
29/66
Communication modes
Simplex Data in a simplex channel is
always one way. Simplexchannels are not often usedbecause it is not possible tosend back error or controlsignals to the transmit end. Anexample of a simplex channelin a computer system is theinterface between thekeyboard and the computer,in that key codes need only
be sent one way from thekeyboard to the computersystem.
Example Keyboard, Monitor
8/22/2019 basics of networks
30/66
Half Duplex A half duplex channel can
send and receive, but not
at the same time. Its like a
one-lane bridge where twoway traffic must give way in
order to cross. Only one
end transmits at a time, the
other end receives.
Example Walkie-Talkie
8/22/2019 basics of networks
31/66
Full Duplex Data can travel in both
directions simultaneously.
There is no need to switchfrom transmit to receive
mode like in half duplex.
Its like a two lane bridge
on a two-lane highway.
Example Telephone
network
8/22/2019 basics of networks
32/66
OSI Layer Model
8/22/2019 basics of networks
33/66
Network Protocols
Define format and order of messages sent and
received among network entities, and actions taken on
message transmission and receipt
Govern all communication activities in a network
control sending and receiving of messages
Examples - TCP, IP, HTTP, FTP, MPEG
ISO Organization for
8/22/2019 basics of networks
34/66
ISO - Organization for
Standardization.
International standards organisation is
responsible for a wide range of
standards, including many that are
relevant to computer networking.
In 1984 , the Open Systems
Interconnection (OSI) Reference Model
was approved as an internationalstandard for communications
architecture.
8/22/2019 basics of networks
35/66
OSI - Open Systems Interconnection
Developed by the International
Organization for Standardization (ISO)
Seven layers- Application - Data link
- Presentation - Physical
- Session- Transport
- Network
8/22/2019 basics of networks
36/66
OSI - The Model
Layered Architecture Peer to Peer Process
Interface between Layers
Organization of the Layers-----------------------------------------------------------
Each layer performs a subset of the required
communication functions
Layer 1,2,3-Network support layer
Layer 5,6,7-User Support Layer
Layer 4-Links the two subgroups.
8/22/2019 basics of networks
37/66
Layered Architecture
Layer architecture simplifies the network
design.
It is easy to debug network applications
in a layered architecture network.
The network management is easier due
to the layered architecture.
8/22/2019 basics of networks
38/66
The OSI model describes how information ordata makes its way from application (such asspreadsheets) through a network medium(such as wire) to another application located
on another network. The OSI reference model divides the problem
of moving information between computersover a network medium into SEVEN smallerand more manageable problems .
This separation into smaller more manageablefunctions is known as layering.
8/22/2019 basics of networks
39/66
Layering Characteristics
Each layer relies on services from layer
below and exports services to layer
above
Interface defines interaction
Hides implementation - layers can
change without disturbing other layers
(black box)
8/22/2019 basics of networks
40/66
Peer-to-Peer Communication
8/22/2019 basics of networks
41/66
Network Architecture of OSI Model
8/22/2019 basics of networks
42/66
OSI Model: 7 Protocol Layers
Physical: how to transmit bits
Data link: how to transmit frames
Network: how to route packets Transport: how to send packets end2end
Session: how to tie flows together
Presentation: byte ordering, securityApplication: everything else
8/22/2019 basics of networks
43/66
43
OSI Layers and Locations
Switch RouterHost Host
Application
Transport
Network
Data Link
Presentation
Session
Physical
8/22/2019 basics of networks
44/66
Application Layer
Application The top layer of the OSI model
Provides a set of interfaces for sending and receivingapplications to gain access to and use network services, suchas: networked file transfer, message handling and database
query processing
Examples of application layer protocols:
Telnet
SMTP
FTP
SNMP
8/22/2019 basics of networks
45/66
Application Layer.
8/22/2019 basics of networks
46/66
Presentation Layer.
The presentation layer ensures that the information that theapplication layer of one system sends out is readable by theapplication layer of another system.
The major duties of the presentation layer are:
Format conversion:
Convert message from one format into another format .
Compression. Compress the message to take less bandwidth on the
transmission media and less time for transmission.
Encryption:
Convert the message into a form that will not be readable byothers.
Provides security to the message. Protocols of the presentation layer are JPEG, MPEG, ASCII etc.
8/22/2019 basics of networks
47/66
Presentation Layer.
8/22/2019 basics of networks
48/66
Session Layer. Enables two networked resources to hold ongoing communications (called a
session) across a network Applications on either end of the session are able to exchange data for the
duration of the session
This layer is:
- Responsible for initiating, maintaining and terminating sessions
- Responsible for security and access control to session information (via sessionparticipant identification)
- Responsible for synchronization services, and for data checkpoint services
- Responsible for Dialog control
Session layer determines that which role is to be played at any giventime by a host.
Duplex: Two-way simultaneous.
Half-Duplex: Two-way alternate.
Simplex: One-way.
Session layer protocols are SQL, ASP (AppleTalk Session Protocol), RemoteProcedure Call (RPC), SSH
8/22/2019 basics of networks
49/66
Session Layer.
T t L (E d t E d)
8/22/2019 basics of networks
50/66
Transport Layer (End-to- End)
The transport layer is responsible for process-to-process delivery of theentire message.
The major duties performed by the transport layer are:
Port address 16 bits
- Computers often running several processes (running programs)
at the same time
Segmentation and reassembly
- A message received form the upper layers is divided into
transmittable segments, each segment contains a sequence
number.
- These number enables the transport layer to reassemble the
message correctly upon arrival at the destination and to identify
and replace packets that were lost in the transmission.
8/22/2019 basics of networks
51/66
Transport Layer
Connection Control- The transport layer can be either connectionless or connection
oriented.
- Connection Oriented - Provides acknowledgements of
successful transmissions and requests resends for packets
which arrive with errors- Connectionless service no guarantee on the order of the
messages (possibly with some errors)
Flow-control
Error control
Multiplexes several low rate transmissions with different ServiceAccess Points (SAPs) onto one virtual circuit
The PDU of network layer is segment Transport layer protocols TCP, UDP
8/22/2019 basics of networks
52/66
Transport Layer.
Reliable Process-to-Process
8/22/2019 basics of networks
53/66
Reliable Process to Process
Delivery.
8/22/2019 basics of networks
54/66
Network Layer.
The network layer is responsible for the source-to-destination delivery of a packet possiblyacross multiple networks.
If two systems are connected to the samelink, there is usually no need for a networklayer.
However, if the two systems are attached todifferent networks with connecting devicesbetween the networks, there is need for thenetwork layer to accomplish the delivery.
8/22/2019 basics of networks
55/66
Network Layer.
The major duties performed by the network layer are: Logical addressing
Logical address is also called IP address which is of 32-
bits and represented in decimal format.
192.168.32.97 Routing
To route the packets from the source to destination in an
internetwork, the router uses network layer information.
The PDU of network layer is packet.
Network layer protocols are IP, IPX, AppleTalk.
8/22/2019 basics of networks
56/66
Network Layer.
8/22/2019 basics of networks
57/66
Network Layer.
8/22/2019 basics of networks
58/66
Data Link Layer.
The data link layer is responsible for moving frames from one hop
(node) to the next.
The major duties of the data link layer are:
Framing
Physical addressing
Physical address is the MAC address, which is hard coded
into NIC and is of 48-bit represented by Hexadecimal format. 00.27.AB.CC.EE.23
00.27.AB-Vendor
CC.EE.23-User
Flow control
Error Control Access Control
Data Link layer protocols are CSMA/CD, CSMA/CA,HDLC
8/22/2019 basics of networks
59/66
Data Link Layer.
Data Link divided into two sub layers- Medium Access Control- MAC address will beadded- Logical Link Control - CRC will be added
8/22/2019 basics of networks
60/66
Data Link Layer.
D t Li k L
8/22/2019 basics of networks
61/66
Data Link Layer
8/22/2019 basics of networks
62/66
OSI Layers (1)
Physical Bottommost layer
Uses synchronization bits to synchronize the receiver
Specify the modulation scheme
The physical layer defines the transmission rate, the number of bitssent each second.
8/22/2019 basics of networks
63/66
Physical Layer
8/22/2019 basics of networks
64/66
Encapsulation
As the data flows down through the layers in thehierarchy, each layer adds some extra information tothe data in the form of headers or tailors. This processof wrapping data with headers and tailors is calledencapsulation.
Path of a Webpage Request and Encapsulation
8/22/2019 basics of networks
65/66
Path of a Webpage Request and Encapsulation
Summary of the Layers
8/22/2019 basics of networks
66/66
Summary of the Layers.