Professional Documents
Culture Documents
Network - Repaired
Network - Repaired
Fundamentals of Computer
Networking
03/28/2021 1
What Is a Network?
03/28/2021 2
What Is a Network?
• A network is a connected collection of devices
and end systems, such as computers and
servers, which can communicate with each
other.
• Networks carry data in many types of
environments, including homes, small
businesses, and large enterprises.
03/28/2021 3
Common Physical Components of a Network
03/28/2021 4
Common Physical Components of a Network
03/28/2021 5
Common Physical Components of a Network
03/28/2021 6
• Network interface cards (NICs) that translate the
data produced by the computer into a format
that can be transmitted over the local network
— Network media, such as cables or wireless
media, that provide the means by which the
signals are transmitted from one networked
device to another
— Connectors that provide the connection points
for the media
03/28/2021 7
Conti…
• Switches: Switches are devices that provide
network attachment to the end systems and
intelligent switching of the data within the
local network.
• Routers: Routers interconnect networks and
choose the best paths between networks.
03/28/2021 8
Interpreting a Network Diagram
03/28/2021 9
Interpreting a Network Diagram
03/28/2021 10
Resource-Sharing Functions and Benefits
03/28/2021 11
Resource-Sharing Functions and Benefits
03/28/2021 12
Resource-Sharing Functions and Benefits
03/28/2021 13
Conti…
• Resources: The resources that can be shared
include both input devices, such as cameras,
and output devices, such as printers.
• Backup devices: A network can also include
backup devices, such as tape drives, that
provide a central means to save files from
multiple computers. Network storage is also
used to provide archive capability, business
continuance, and disaster recovery.
03/28/2021 14
Conti…
• Network storage: Direct attached storage
(DAS) directly connects physical storage to a
PC or a shared server
• Network attached storage (NAS) makes
storage available through a special network
appliance.
• storage area networks (SANs) provide a
network of storage devices.
03/28/2021 15
SAN
03/28/2021 16
03/28/2021 17
Network User Applications
• While there are many applications available
for users in a network environment, some
applications are common to nearly all users.
This topic describes common network user
applications.
03/28/2021 18
Network User Applications
• E-mail (Outlook, POP3, Yahoo, and so on)
• Web browser (IE, Firefox, and so on)
• Instant messaging (Yahoo IM, Microsoft
Messenger, and so on)
• Collaboration (Whiteboard, Netmeeting,
WebEx, and so on)
• Databases (file servers)
03/28/2021 19
Characteristics of a Network
• Speed
• Cost
• Security
• Availability
• Scalability
• Reliability
• Topology
03/28/2021 20
Conti…
• Speed: Speed is a measure of how fast data is
transmitted over the network. A more precise
term would be data rate.
• Cost : Cost indicates the general cost of
components, installation, and maintenance of
the network.
03/28/2021 21
Conti…
• Security: Security indicates how secure the
network is, including the data that is
transmitted over the network. The subject of
security is important and constantly evolving.
• Availability : Availability is a measure of the
probability that the network will be available
for use when it is required.
03/28/2021 22
Conti…
• Scalability : Scalability indicates how well the
network can accommodate more users and
data transmission requirements. If a network
is designed and optimized for just the current
requirements, it can be very expensive and
difficult to meet new needs when the network
grows.
03/28/2021 23
Conti…
• Reliability : Reliability indicates the
dependability of the components (routers,
switches, PCs, and so on) that make up the
network.
03/28/2021 24
Network Categories
• Local Area Network (LAN)
03/28/2021 25
Local Area Network (LAN)
• A LAN is a network that is used for communicating
among computer devices, usually within an office
building or home.
• 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
• Is fast, with speeds from 10 Mbps to 10 Gbps
• Requires little wiring, typically a single cable connecting
to each device
• Has lower cost compared to MAN’s or WAN’s
03/28/2021 26
Local Area Network (LAN)
• LAN’s can be either wired or wireless. Twisted pair,
coax or fibre optic cable can be used in wired
LAN’s.
• Every LAN uses a protocol – a set of rules that
governs how packets are configured and
transmitted.
• Nodes in a LAN are linked together with a certain
topology. These topologies include: Bus – Ring –
Star
• LANs are capable of very high transmission rates
(100s Mb/s to Gb/s).
03/28/2021 27
Local Area Network (LAN)
03/28/2021 28
Advantages of LAN
• Speed
• Cost
• Security
• E-mail
• Resource Sharing
03/28/2021 29
Disadvantages of LAN
• Expensive To Install
• Requires Administrative Time
• File Server May Fail
• Cables May Break
03/28/2021 30
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
of 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.
03/28/2021 31
Metropolitan Area Network (MAN)
• A MAN often acts as a high speed network to
allow sharing of regional resources.
• A MAN typically covers an area of between 5
and 50 km diameter.
• Examples of MAN: Telephone company
network that provides a high speed DSL to
customers and cable TV network.
03/28/2021 32
MAN
03/28/2021 33
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.
03/28/2021 34
WAN
• Multiple LANs can be connected together
using devices such as bridges, routers, or
gateways, which enable them to share data.
• The world's most popular WAN is the Internet.
03/28/2021 35
WAN
03/28/2021 36
LAN vs WAN
03/28/2021 37
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.
• PAN’s can be wired or wireless
03/28/2021 38
Personal Area Network (PAN)
• A personal area network (PAN) is a computer
network used for communication among
computer devices, including telephones and
personal digital assistants, in proximity to an
individual's body.
• The devices may or may not belong to the
person in question. The reach of a PAN is
typically a few meters.
03/28/2021 39
Personal Area Network (PAN)
03/28/2021 40
Roles Of Computer In A Network
03/28/2021 41
Network Types
• Network falls into two major types:
– Peer-to-Peer
– Client/server or server-based Networks
03/28/2021 42
Peer-to-peer Networking
03/28/2021 47
03/28/2021 48
Server-based-networksadvantages
03/28/2021 49
Server-based-networks disadvantages
03/28/2021 50
Network Topologies
• Topology : In networks, there are two types of
topologies: the physical topology, which is the
arrangement of the cable, network devices,
and end systems (PCs and servers), and the
logical topology, which is the path that the
data signals take through the physical
topology.
03/28/2021 51
Physical vs. Logical Topologies
03/28/2021 52
Bus Topology
• Commonly referred to as a linear bus, all of
the devices on a bus topology are effectively
connected by one single cable.
03/28/2021 53
03/28/2021 54
Bus Topology
• As illustrated in the figure, in a bus topology a
cable proceeds from one computer to the next
like a bus line going through a city.
03/28/2021 55
Conti…
• If there is no terminator, the electrical signal
representing the data bounces back at the end
of the wire, causing errors in the network.
03/28/2021 56
Star Topology
• The star topology is the most common
physical topology in Ethernet LANs
• it is made up of a central connection point
that is a device, such as a hub, switch, or
router, where all the cabling segments actually
meet
• Each device on the network is connected to
the central device with its own cable.
03/28/2021 57
Conti…
• Although a physical star topology costs more
to implement than the physical bus topology,
• Each device is connected to the central device
with its own wire, so that if that cable has a
problem, only that one device is affected, and
the rest of the network remains operational
03/28/2021 58
Conti…
• This benefit is extremely important and is the
reason why almost every newly designed
Ethernet LAN has a physical star topology
03/28/2021 59
Extended-Star Topology
03/28/2021 60
Extended-Star Topology
• When a star network is expanded to include an
additional network device that is connected to
the main network devices, the topology is
referred to as an extended-star topology.
• The problem with the pure extended-star
topology is that if the central node point fails,
large portions of the network can become
isolated.
03/28/2021 61
Ring Topologies
03/28/2021 62
Ring Topologies
• As the name implies, in a ring topology all the
devices on a network are connected in the
form of a ring or circle.
• Unlike the physical bus topology, a ring type of
topology has no beginning or end that needs
to be terminated.
03/28/2021 63
Ring Topologies
• Data is transmitted in a way that is very
different from the logical bus topology.
• In one implementation, a “token” travels
around the ring, stopping at each device
• If a device wants to transmit data, it adds that
data and the destination address to the token
• The token then continues around the ring until
it finds the destination device
03/28/2021 64
Ring Topologies
• which takes the data out of the token. The
advantage of using this type of method is that
there are no collisions of data packets.
• There are two types of ring topology: single-
ring and dual-ring.
03/28/2021 65
03/28/2021 66
Mesh Topology
• In a mesh topology, every device has a
dedicated point-to-point link to every other
device. The term dedicated means that the
link carries traffic only between the two
devices it connects.
03/28/2021 67
03/28/2021 68
Advantages of Mesh Topology
• The use of dedicated links guarantees that
each connection can carry its own data load
• A mesh topology is robust. If one link becomes
unusable, it does not incapacitate the entire
system.
• There is the advantage of privacy or security.
When every message travels along a
dedicated line, only the intended recipient
sees it.
03/28/2021 69
Disadvantages of Mesh topology
• The amount of cabling because every device
must be connected to every other device,
installation and reconnection are difficult.
• Wiring can be greater than the available space
(in walls, ceilings, or floors) can accommodate
• The hardware required to connect each link
(I/O ports and cable) can be prohibitively
expensive.
03/28/2021 70
03/28/2021 71
Tree Topology
03/28/2021 72
Advantages of Tree Topology
03/28/2021 73
Disadvantages of Tree Topology
• Heavily cabled.
• Costly.
• If more nodes are added maintenance is
difficult.
• Central hub fails, network fails.
03/28/2021 74
Hybrid Topology
03/28/2021 78
Connection Types
Point to Point and Multipoint Connection
• The point-to-point and Multipoint are two types of
line configuration. Both of them describes a method
to connect two or more communication devices in a
link. The main difference between point-to-point
and multipoint connection is that in a point-to-point
connection the link is only between two devices i.e.
a sender and a receiver. On the other hand, in a
multipoint connection ,the link is between a sender
and multiple receivers
03/28/2021 79
Point to Point Connection
• The point-to-point connection is a unicast
connection. There is a dedicated link between
an individual pair of sender and receiver. The
capacity of the entire channel is reserved only
for the transmission of the packet between
the sender and receiver.
03/28/2021 80
Multipoint Connection
• In multipoint connection, a single link is
shared by multiple devices. So, it can be said
that the channel capacity is shared
temporarily by every device connecting to the
link.
03/28/2021 81
Summary
• A network is a connected collection of devices that can communicate
with each other. Networks carry data in many kinds of environments,
including homes, small businesses, and large enterprises.
• There are four major categories of physical components in a computer
network: the computer, interconnections, switches, and routers.
• Networks are depicted graphically using a set of standard icons.
• The major resources that are shared in a computer network include
data and applications, peripherals, storage devices, and backup devices.
• The most common network user applications include e-mail, web
browsers, instant messaging, collaboration, and databases.
• User applications affect the network by consuming network resources.
03/28/2021 82
Summary
• The ways in which networks can be described include characteristics
that address network performance and structure: speed, cost, security,
availability, scalability, reliability, and topology.
• A physical topology describes the layout for wiring the physical devices,
while a logical topology describes how information flows through a
network.
• In a physical bus topology, a single cable effectively connects all the
devices.
• In a physical star topology, each device in the network is connected to
the central device with its own cable.
• When a star network is expanded to include additional networking
devices that are connected to the main networking device, it is called
an extended-star topology.
03/28/2021 83
Summary
• In a ring topology, all the hosts are connected
in the form of a ring or circle.
• In a dual-ring topology, there are two rings to
provide redundancy in the network.
• A full-mesh topology connects all devices to
each other; in a partial-mesh topology, at least
one device has multiple connections to all
other devices.
03/28/2021 84
The OSI Reference Model
• The OSI reference model provides a means of
describing how data is transmitted over a
network.
• It provided vendors with a set of standards
that ensured greater compatibility and
interoperability between the various types of
network technologies produced by companies
around the world.
03/28/2021 85
03/28/2021 86
• The OSI model is considered the best tool
available for teaching people about sending
and receiving data on a network.
• The OSI reference model separates network
functions into seven categories.
• This separation of networking functions is
called layering
03/28/2021 87
• The OSI reference model has seven numbered
layers, each illustrating a particular network
function.
• The OSI model defines the network functions
that occur at each layer
03/28/2021 88
• More importantly, the OSI model facilitates an
understanding of how information travels
throughout a network. In addition, the OSI
model describes how data travels from
application programs (for example,
spreadsheets) through a network medium, to
an application program located in another
computer, even if the sender and receiver are
connected using different network media.
03/28/2021 89
The OSI Model Layers and Their Function
03/28/2021 90
Layer 1: The Physical Layer
• The physical layer defines the electrical,
mechanical, procedural, and functional
specifications for activating, maintaining, and
deactivating the physical link between end
systems
03/28/2021 91
• Characteristics such as voltage levels, timing of
voltage changes, physical data rates,
maximum transmission distances, physical
connectors, and other similar attributes are
defined by physical layer specifications.
03/28/2021 92
Layer 2: The Data Link Layer
• The data link layer defines how data is
formatted for transmission and how access to
the physical media is controlled.
• This layer also typically includes error
detection and correction to ensure reliable
delivery of the data.
03/28/2021 93
03/28/2021 94
Layer 3: The Network Layer
• The network layer provides connectivity and
path selection between two host systems that
may be located on geographically separated
networks
• The growth of the Internet has increased the
number of users accessing information from
sites around the world, and the network layer
is the layer that manages this connectivity.
03/28/2021 95
03/28/2021 96
Layer 4: The Transport Layer
03/28/2021 97
03/28/2021 98
03/28/2021 99
03/28/2021 100
Encapsulation and De-Encapsulation
03/28/2021 101
03/28/2021 102
Encapsulation
• The information sent on a network is referred
to as data or data packets.
• If one computer wants to send data to
another computer, the data must first be
packaged by a process called encapsulation.
• Encapsulation wraps data with the necessary
protocol information before network transit
03/28/2021 103
Conti…
• As the data moves down through the layers of
the OSI model, each OSI layer adds a header
(and a trailer, if applicable) to the data before
passing it down to a lower layer
• The headers and trailers contain control
information for the network devices and
receiver to ensure proper delivery of the data
and to ensure that the receiver can correctly
interpret the data.
03/28/2021 104
Conti…
• Step 1 The user data is sent from an
application to the application layer.
• Step 2 The application layer adds the
application layer header (Layer 7 header) to
the user data. The Layer 7 header and the
original user data become the data that is
passed down to the presentation layer.
03/28/2021 105
Conti…
• Step 3 The presentation layer adds the
presentation layer header (Layer 6 header) to
the data. This then becomes the data that is
passed down to the session layer.
• Step 4 The session layer adds the session
layer header(Layer 5 header) to the data. This
then becomes the data that is passed down to
the transport layer.
03/28/2021 106
Conti…
• Step 5 The transport layer adds the transport
layer header (Layer 4 header) to the data. This
then becomes the data that is passed down to
the network layer.
• Step 6 The network layer adds the network
layer header (Layer 3 header) to the data. This
then becomes the data that is passed down to
the data link layer.
03/28/2021 107
Conti…
• Step 7 The data link layer adds the data link
layer header and trailer (Layer 2 header and
trailer) to the data. A Layer 2 trailer is usually
the frame check sequence (FCS), which is used
by the receiver to detect whether the data is
in error. This then becomes the data that is
passed down to the physical layer.
03/28/2021 108
Conti…
• Step 8 The physical layer then transmits the
bits onto the network media.
03/28/2021 109
03/28/2021 110
03/28/2021 111
Physical Layer
03/28/2021 112
Physical Layer
• The physical layer defines the electrical,
mechanical, and functional specifications for
activating, maintaining, and deactivating the
physical link between end systems.
• Characteristics such as voltage levels, voltage
changes, physical data rates, physical
connectors, and other similar attributes are
defined by physical layer specifications.
03/28/2021 113
Physical layer
• The physical layer is responsible for movement
of individual bits from one node to the next
• Representation of bits: the physical layer data
consists of a stream of bits to be transmitted
bits must be encoded into signals - electrical
or optical .
• The physical layer define the type of encoding
03/28/2021 114
Physical layer
• Data rate : is defined in physical layer
• Synchronization bits : sender and receiver
clock must be synchronize . Same bit rate
• Line configuration: point to point or
multipoint
• Physical topology.
• Transmission Mode:
03/28/2021 115
Data Link layer
03/28/2021 116
Data Link Layer
• It makes the physical layer appear error free to
the upper layer
• The data link layer is responsible for moving
frames from one node to the next
• Framing: the data link layer divides the stream
of bits received form the network layer into
manageable data units called frames
03/28/2021 117
Data link Layer
• Physical Addressing: define the sender or
receiver . If the frame intended for a system
outside the sender’s network then the address
of the receiver is the address of device which
connect two network
• Flow Control: control the date rate . If
problem then impose a flow control
mechanism to avoid overwhelming
03/28/2021 118
Conti.…
• Error Control: add reliability to the physical
layer
• Detect and retransmit damaged or lost frames
• Avoid duplicate frames
• Error control is achieved through a trailer
added to the end of frame
03/28/2021 119
Conti…
• Access Control: when two or more devices are
connected to the same link
• It determine which device has control over the
link at any give time
03/28/2021 120
03/28/2021 121
Network Layer
03/28/2021 122
Network Layer
• The network layer provides connectivity and
path selection between two host systems that
may be located on geographically separated
networks.
• Network layer is responsible for source to
destination delivery of the packet
• Routing .
• Logical Addressing
03/28/2021 123
Network layer
03/28/2021 124
Network layer
• The network layer is responsible for the
delivery of individual packets from the source
host to the destination host.
03/28/2021 125
Transport Layer
• The transport layer is responsible for the
delivery of a message from one process to
another.
03/28/2021 126
Transport layer
03/28/2021 127
Transport layer
• Service point addressing : from specific
process to specific process
• Error control :
• Connection Control: Connection less and
connection oriented
• Segmentation and reassembly
03/28/2021 128
Session Layer
• The session layer is responsible for dialog
control and synchronization.
• The session layer is the network dialog
controller it establishes maintains and
synchronize the interaction among
communicating devices .
03/28/2021 129
Conti…
• Dialog control: process to process
communication either full duplex or half
duplex
• Synchronization: synchronization point to a
stream of data
03/28/2021 130
Presentation Layer
• Translation: encoding ----
• Encryption
• Compression : needed for media
•
03/28/2021 131
Application Layer
• The application layer enables the user,
whether human or software, to access the
network.
• It provides user interfaces and support for
services such as electronic mail, remote file
access and transfer, shared database
management, and other types of distributed
information services.
03/28/2021 132
Devices
• Repeater: Physical
• Hub: Physical
• Switches: Data link layer
• Bridge : Data link
• Router: Network layer
• Gateway: Network layer
03/28/2021 133
TCP/IP
• Short for Transmission Control
Protocol/Internet Protocol
• TCP/IP also commonly abbreviated as TCP
• TCP/IP is two separate protocols, TCP and IP,
that are used together
03/28/2021 134
TCP/IP
• IP has a packet-addressing method that lets
any computer on the Internet forward a
packet to another computer. The Transmission
Control Protocol ensures the reliability of data
transmission across Internet connected
networks.
03/28/2021 135
• TCP checks packets for errors and submits
requests for re-transmissions if errors are found;
• TCP is one of the main protocols in TCP/IP
networks. Whereas the IP protocol deals only
with packets, TCP enables two hosts to establish
a connection and exchange streams of data. TCP
guarantees delivery of data and also guarantees
that packets will be delivered in the same order
in which they were sent.
03/28/2021 136
TCP/IP Suite
• The TCP/IP suite—whose name is actually a
combination of just two individual protocols,
• Transmission Control Protocol (TCP) and
Internet Protocol (IP)
• divided into layers, each of which performs
specific functions in the data communication
process
03/28/2021 137
03/28/2021 138
TCP/IP Suite
• The components, or layers, of the TCP/IP stack
are as follows:
03/28/2021 139
Network access layer
• This layer covers the same processes as the
two lower OSI layers:
03/28/2021 140
Network access layer
• Physical layer: in OSI Model
• The physical layer defines the electrical, mechanical,
procedural,
• and functional specifications for activating, maintaining, and
deactivating the
• physical link between end systems. Characteristics such as
voltage levels, timing of
• voltage changes, physical data rates, maximum transmission
distances, physical
• connectors, and other similar attributes are defined by
physical layer specifications.
03/28/2021 141
Conti…
• Data link layer : The data link layer defines
how data is formatted for transmission and
how access to the network is controlled.
03/28/2021 142
Internet layer:
• This layer provides routing of data from the
source to the destination by defining the
packet and the addressing scheme, moving
data between the data link and transport
layers, routing packets of data to remote
hosts,
03/28/2021 143
Transport layer
• The transport layer is the core of the TCP/IP
architecture, providing communication
services directly to the application processes
running on network hosts.
03/28/2021 144
Application layer
• The application layer provides applications for
file transfer, network troubleshooting, and
Internet activities and supports network
application programming interfaces (APIs) that
allow programs that have been created for a
particular operating system to access the
network.
03/28/2021 145
TCP/IP Stack vs. the OSI Model
03/28/2021 146
• Both the OSI model and the TCP/IP stack were
developed, by different organizations, at
approximately the same time as a means to
organize and communicate the components
that guide the transmission of data.
03/28/2021 147
• The TCP/IP network access layer roughly
corresponds to the OSI physical and data link
layers and is concerned primarily with
interfacing with network hardware and
accessing the transmission media.
03/28/2021 148
• The TCP/IP Internet layer corresponds closely
to the network layer of the OSI model and
deals with the addressing of and routing
between network devices.
03/28/2021 149
• The TCP/IP transport layer, like the OSI
transport layer, provides the means for
multiple host applications to access the
network layer, either in a best-effort mode or
through a reliable delivery mode.
03/28/2021 150
• The TCP/IP application layer addresses
applications that communicate with the lower
layers and corresponds to the separate
application, presentation, and session layers of
the OSI model.
03/28/2021 151
Difference between OSI and TCP/IP reference
model
• Home work
03/28/2021 152
Summary
• The OSI reference model defines the network functions that
occur at each layer.
• The physical layer defines the electrical, mechanical, procedural,
and functional specifications for activating, maintaining, and
deactivating the physical link between end systems.
• The data link layer defines how data is formatted for
transmission and how access to the physical media is controlled.
• The network layer provides connectivity and path selection
between two host systems that may be located on geographically
separated networks.
03/28/2021 153
Summary (Cont.)
• The transport layer segments data from the system of the
sending host and reassembles the data into a data stream on
the system of the receiving host.
• The session layer establishes, manages, and terminates
sessions between two communicating hosts.
• The presentation layer ensures that the information sent at
the application layer of one system is readable by the
application layer of another system.
• The application layer provides network services to the
• applications of the user, such as e-mail, file transfer, and
terminal
03/28/2021 154
Summary (Cont.)
• The information sent on a network is referred to
as data or data packets. If one computer wants to
send data to another computer , the data must first
be packaged by a process called encapsulation.
• When the remote device receives a sequence of
bits, the physical layer at the remote device passes
the bits to the data link layer for manipulation. This
process is referred to as de-encapsulation.
03/28/2021 155
Summary (Cont.)
• TCP/IP is now the most widely used protocol for a number
of reasons, including its flexible addressing scheme, its
usability by most operating systems and platforms, its
many tools and utilities, and the need to use it to connect
to the Internet.
• The components of the TCP/IP stack are the network
access, Internet, transport, and application layers.
• The OSI model and the TCP/IP stack are similar in structure
and function, with correlation at the physical, data link,
network, and transport layers.
•
03/28/2021 156
• Understanding the
TCP/IP Internet Layer
03/28/2021 157