Computer Networks UNIT I
Computer Networks UNIT I
and devices
communication devices
2
Computer Communications
3
Advantages of Networks
4
Evolution of Computer Networks
5
1962 - Linking output systems like teletypewriters to computers
was an interest at Advanced Research Project Agency (ARPA)
when J.C.R Licklider was hired and developed a working group
called Intergalactic Computer Network. This Concept, allowed
the data and programs stored within each computer to be accessed
from anywhere in the world, by any of the computers connected to
the network
1964 - Researchers at Darmouth developed the Darmouth Time Sharing System for
Distributed users of large computer systems. At the same Time Massachusetts Institute of
Technology (MIT), a research group supported by General Electric and Bell Labs used a
computer to route and manage telephone connections
1965 - Thomas Marill and Lawrence G.Roberts created the first Wide Area Network
(WAN). This was an immediate precursor to the ARPANET. At the same time, the first
widely used telephone switch that used true computer control was introduced by Western
Electric
1972 - Commercial services using X.25 were deployed and later used as an underlying
infrastructure for expanding TCP/IP networks
6
1991 - Home Broadband Created
2001 - Home broadband enters mainstream usage and begins growing at a faster
rate than the dial-up services
2009 - 10 Gigabyte Ethernet was the only market segment to show sequential port
7
Networks
Types of Networks
8
Different Types of Networks
LAN 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
LAN’s can be either wired or wireless. Twisted pair, coax or fiber optic
cable can be used in wired LAN’s.
10
Every LAN uses a protocol – a set of rules that governs how packets are
configured and transmitted.
-Bus Topology
-Ring Topology
-Star Topology
-Mesh Topology
11
Limitations of LAN
Expensive To Install
12
Metropolitan Area Network (MAN)
A metropolitan area network (MAN) is a large computer network that usually spans a
city or a large campus.
A MAN is optimized for a larger geographical area than a LAN, ranging from several
blocks buildings to entire cities.
A MAN might be owned and operated by a single organization, but it usually will be
used by many individuals and organizations.
13
Wide Area Network (WAN)
WAN covers a large geographic area such as country, continent or even whole of the
world.
A WAN is two or more LANs connected together. The LANs can be many miles apart.
To cover great distances, WANs may transmit data over leased high-speed phone lines or
wireless links such as satellites.
Multiple LANs can be connected together using devices such as bridges, routers, or
gateways, which enable them to share data.
14
Personal Area Network (PAN)
A PAN is a network that is used for communicating among computers and computer
devices (including telephones) in close proximity of around a few meters within a
room
It can be used for communicating between the devices themselves, or for connecting
to a larger network such as the internet.
15
Networks
Topologies
16
Physical
Logical
17
LAN Topologies (Physical)
Bus
Star
Ring
Switched
Daisy chains
Hierarchies
18
BUS Topology
All nodes are interconnected, peer to peer, using a single, open-ended cable
Both ends of the bus must be terminated with a terminating resistor to prevent
signal bounce
19
Advantages of Bus
topology
20
Limitations of Bus
topology
•Difficult to administer/troubleshoot
21
Ring Topology
•Each networked workstation had two connections: one to each of its nearest
neighbors
22
Token Passing
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
23
Advantages of Ring Topology
•No need for network server to control the connectivity between workstations
24
Limitations of Ring Topology
•Each packet of data must pass through all the computers between source and
destination, slower than star topology
•If one workstation or port goes down, the entire network gets affected
25
Star Topology
Each networked device in star topology can access the media independently
26
Advantages of Topology
27
Limitations of Topology
•The use of hub, a router or a switch as central device increases the overall cost
of the network
28
Networks
OSI Layers
29
Seven Layers of OSI
Establish/manage connection 🡪
End-to-end control & error checking
(ensure complete data transfer): TCP 🡪
30
Physical layer
31
The physical layer of the OSI model defines connector and interface specifications,
as well as the medium (cable) requirements. Electrical, mechanical, functional,
and procedural specifications are provided for sending a bit stream on a computer
network.
The IEEE, EIA/TIA, ANSI, and other similar standards bodies developed
standards for this layer.
Note: The Physical Layer of the OSI model is only part of a LAN (Local Area
Network).
32
Data link layer
33
Allows a device to access the network to send and receive messages
• Offers a physical address so a device’s data can be sent on the network
•Works with a device’s networking software when sending and receiving messages
NICs have a layer 2 or MAC address. A switch uses this address to filter and
forward traffic, helping relieve congestion and collisions on a network segment.
34
Hop-to-hop delivery
35
Network layer
36
Provides an end-to-end logical addressing system so that a packet of data can be
routed across several layer 2 networks (Ethernet, Token Ring, Frame Relay, etc.).
Note that network layer addresses can also be referred to as logical addresses.
Routers use the network or subnet portion of the IP addressing to route traffic
between different networks. Each router must be configured specifically for the
networks or subnets that will be connected to its interfaces
37
Transport layer
38
Offers end-to-end communication between end devices through a network. Depending on
the application, the transport layer either offers reliable, connection-oriented or
connectionless , best-effort communications.
Some of the functions offered by the transport layer include:
• Application identification
• Client-side entity identification
• Confirmation that the entire message arrived intact
• Segmentation of data for network transport
• Control of data flow to prevent memory overruns
• Establishment and maintenance of both ends of virtual circuits
• Transmission-error detection
• Realignment of segmented data in the correct order on the receiving side
• Multiplexing or sharing of multiple sessions over a single physical link
The most common transport layer protocols are the connection-oriented TCP and the
39
connectionless UDP
Session layer
40
Provides various services, including tracking the number of bytes that each end of the
session has acknowledged receiving from the other end of the session. This session layer
allows applications functioning on devices to establish, manage, and terminate a dialog
through a network. Session layer functionality includes:
41
Presentation
layer
42
The presentation layer, is responsible for how an application formats the data to be sent
out onto the network.
The presentation layer basically allows an application to read (or understand) the
message.
43
Application layer
44
This layer is what the user sees, in terms of loading an application (such as Web browser
or e-mail); that is, this application layer is the data the user views while using these
applications.
45
Summary of layers
46
Networks
TCP/IP Protocol Model
47
TCP/IP Protocol Model
The layers in the TCP/IP protocol suite do not exactly match those in the OSI
model. The original TCP/IP protocol suite was defined as having four layers:
host-to-network, internet, transport, and application. However, when TCP/IP is
compared to OSI, we can say that the TCP/IP protocol suite is made of five
layers: physical, data link, network, transport, and application.
48
TCP/IP and OSI model
49
ADDRESSING
Four levels of addresses are used in an internet employing the TCP/IP protocols:
physical, logical, port, and specific.
50
Relationship of layers and addresses in TCP/IP
51
For an Example node with physical address 10 sends a frame to a node with
physical address 87. The two nodes are connected by a link (bus topology LAN).
As the figure shows, the computer with physical address 10 is the sender, and the
computer with physical address 87 is the receiver.
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
52
A part of an internet with two routers connecting three LANs. Each device
(computer or router) has a pair of addresses (logical and physical) for each
connection. In this case, each computer is connected to only one link and
therefore has only one pair of addresses. Each router, however, is connected to
three networks (only two are shown in the figure). So each router has three pairs
of addresses, one for each connection.
53
Shows two computers communicating via the Internet. The sending computer is
running three processes at this time with port addresses a, b, and c. The receiving
computer is running two processes at this time with port addresses j and k.
Process a in the sending computer needs to communicate with process j in the
receiving computer. Note that although physical addresses change from hop to
hop, logical and port addresses remain the same from the source to destination.
54