Chapter 6 Computer Networks
Chapter 6 Computer Networks
6 Computer
11/19/2023
1
Networks 6 Computer Networks
Objectives
6.2
6-1 INTRODUCTION
6.3
Local area network
A local area network (LAN) is usually privately owned and
connects some hosts in a single office, building, or campus.
Depending on the needs of an organization, a LAN can be as
simple as two PCs and a printer in someone’s home office, or it
can extend throughout a company and include audio and
video devices.
Each host in a LAN has an identifier, an address, that uniquely
defines the host in the LAN.
A packet sent by a host to another host carries both the source
host’s and the destination host’s addresses
6.4
Local area network
6.5
Wide area network
A wide area network (WAN) is also an interconnection of
devices capable of communication.
However, there are some differences between a LAN and a
WAN.
A LAN is normally limited in size, spanning an office, a
building, or a campus;
a WAN has a wider geographical span, spanning a town, a
state, a country, or even the world.
A LAN interconnects hosts; a WAN interconnects connecting
devices such as switches, routers, or modems.
6.6
Wide area network
A LAN is normally privately owned by the organization that
uses it;
a WAN is normally created and run by communication
companies and leased by an organization that uses it. We see
two distinct examples of WANs today: point-to-point WANs
and switched WANs as shown in Figure 6.2
6.7
Wide area network
6.8
Internetwork
Today, it is very rare to see a LAN or a WAN in isolation; they
are connected to one another.
When two or more networks are connected, they make an
internetwork, or internet.
As an example, assume that an organization has two offices.
Each office has a LAN that allows all employees in the office to
communicate with each other.
6.9
Internetwork
To make the communication between employees at different
offices possible, the management leases a point-to-point
dedicated WAN from a service provider, such as a telephone
company, and connects the two LANs. Now the company has an
internetwork, or a private internet (with lowercase i).
Communication between offices is now possible. Figure 6.3
shows this internet.
6.10
Internetwork
6.11
The Internet
Internet.
6.12
The Internet
6.13
Protocol layering
outputs.
If two machines provide the same outputs when given the same
6.14
Principles of protocol layering
For example, the third-layer task is to listen (in one direction) and
talk (in the other direction). The second layer needs to be able to
encrypt and decrypt. The first layer needs to send and receive mail.
6.15
Principles of protocol layering
6.16
Protocol layering
6.17
TCP/IP protocol suite
TCP/IP is a protocol suite (a set of protocols organized in
different layers) used in the Internet today.
It is a hierarchical protocol made up of interactive modules,
each of which provides a specific functionality. The term
hierarchical means that each upper-level protocol is supported
by the services provided by one or more lower-level protocols.
The TCP/IP protocol suite is made of five layers as shown in
Figure 6.7.
6.18
TCP/IP protocol suite
6.19
The application layer
receive messages.
6.20
The application layer
6.21
Uniform resource locator (URL)
Protocol. The first identifier is the abbreviation for the client–
server program that we need in order to access the web page.
Host identifier. The host identifier can be the IP address of the
server or the unique name given to the server.
Port number. The port, a 16-bit integer, is normally
predefined for the client–server application.
Path. The path identifies the location and the name of the file
in the underlying operating system. The format of this identifier
normally depends on the operating system.
6.22
Uniform resource locator (URL)
6.23
File Transfer Protocol
6.24
The transport layer
The transport layer in the TCP/IP suite is located between the
application layer and the network layer.
It provides services to the application layer and receives
services from the network layer.
The transport layer acts as a liaison between a client program
and a server program, a process-to-process connection.
The transport layer is the heart of the TCP/IP protocol suite; it
is the end-to-end logical vehicle for transferring data from one
point to another in the Internet. Figure 6.19 shows the idea
behind this logical connection.
6.25
The transport layer
6.26
Transport-layer protocols
The User Datagram Protocol (UDP) is a connectionless,
unreliable transport protocol. It does not add anything to the
services of network layer except for providing process-to-
process communication instead of host-to-host communication
Transmission Control Protocol (TCP) is a connection-oriented,
reliable protocol. TCP explicitly defines connection
establishment, data transfer, and connection teardown phases
to provide a connection-oriented service.
6.27
NETWORK LAYER
The network layer in the TCP/IP protocol suite is responsible
for the host-to-host delivery of messages.
Figure 6.24 shows the communication between Alice and Bob
at the network layer assuming that there is only one path from
Alice’s computer to Bob’s computer.
This is the same scenario we used in the last two sections to
show the communication at the application and the transport
layers, respectively.
6.28
NETWORK LAYER
6.29
Services Provided by network layer
6.30
Packet delivery
unreliable. This means that the packets can be corrupted, lost, duplicated. In
other words, the network layer provides a best-effort delivery, but there is
connectionless, but the word connectionless here does not mean that there is
6.31
Network-layer protocols
6.32
Network-layer protocols
Internet Protocol Version 4 (IPv4)
6.33
Network-layer protocols
6.34
Network-layer protocols
6.35
DATA-LINK LAYER
The TCP/IP suite does not define any protocol in the data-link
layer. This layer is the territory of networks that when
connected make up the Internet.
6.36
PHYSICAL LAYER
6.37
Data and signals
A digital signal, on the other hand, can have only a limited number
of defined values. Although each value can be any number, it is
often as simple as 1 and 0
6.38
Data and signals
6.39
Digital transmission
Digital–to–digital conversion
If our data is digital and we need to transmit digital signal, we
can use digital-to-digital conversion to change the digital data
to digital signal.
Although there are many techniques for doing so, in its simplest
form, a bit or group of bits is represented by a signal level
6.40
Digital transmission
Analog-to-digital conversion
Sometimes we have an analog signal such as one created by a
microphone or camera. The tendency today is to change an
analog signal to digital data because the digital signal is less
susceptible to noise. Although there are several techniques for
doing so, the simplest one is to sample the analog signal to
create a digital data and convert the digital data to digital
signal
6.41
Analog transmission
Digital-to-analog conversion
Digital-to-analog conversion is the process of changing one of
the characteristics of an analog signal based on the
information in digital data.
Figure 6.45 shows the relationship between the digital
information, the digital-to-analog conversion process, and the
resultant analog signal.
6.42
Analog transmission
Analog-to-analog conversion is the process of changing one of
the characteristics of an analog signal based on the
information in digital data. Figure 6.46 shows the relationship
between the digital information, the digital-to-analog
conversion process, and the resultant analog signal.
6.43
TRANSMISSION MEDIA
6.44
TRANSMISSION MEDIA
6.45
TRANSMISSION MEDIA
Guided media : Guided media, which are those that
provide a conduit from one device to another, include twisted-
pair cable, coaxial cable, and fiber-optic cable. Figure 6.48
shows the three types of guided media.
6.46
TRANSMISSION MEDIA
Guided media
A twisted-pair consists of two conductors (normally copper),
each with its own plastic insulation, twisted together.
Coaxial cable encased in an outer conductor of metal foil,
braid, or a combination of the two. The outer metallic
wrapping serves both as a shield against noise and as the
second conductor, which completes the circuit.
A fiber-optic cable is made of glass or plastic and transmits
signals in the form of light.
6.47
TRANSMISSION MEDIA
Unguided media: wireless
Radio waves Electromagnetic waves ranging in frequencies between 3
kHz and 1 GHz are normally called radio waves. They are used mostly
for radio communication.
Microwaves Electromagnetic waves having frequencies between 1 and
300 GHz are called microwaves. Microwaves are unidirectional. When
an antenna transmits microwaves, they can be narrowly focused. This
means that the sending and receiving antennas need to be aligned. The
unidirectional property has an obvious advantage. A pair of antennas
can be aligned without interfering with another pair of aligned
antennas.
Infrared Infrared waves, with frequencies from 300 GHz to 400
6.48
Summary
A network is a set of devices connected by communication links
A protocol is a set of rules that governs communication.
TCP/IP is a hierarchical protocol suite made of five layers:
application, transport, network, data-link, and physical.
The main duty of a transport-layer protocol is to provide process-to-
process communication.
UDP is a transport protocol that provides unreliable and
connectionless service.
Transmission Control Protocol (TCP) is another transport-layer
protocol that provides reliable and connection-oriented service.
6.49
Summary
Data must be transformed to electromagnetic signals to be
transmitted.
Analog data are continuous and take continuous values.
Digital data have discrete states and take discrete values.
Transmission media lie below the physical layer. A guided medium
provides a physical conduit from one device to another.
Twisted-pair cable, coaxial cable, and optical fiber are the most
popular types of guided media.
Unguided media (free space) transport electromagnetic waves
without the use of a physical conductor.
6.50
Important Links
51
https://drive.google.com/file/d/12kVSE1DQJm2S
1b2FD3tpiEuD7La3_MPF/view?usp=sharing