L2
L2
04/24/2025 1
Client/Server Networks
• Server-based network
• Clients and servers
• Data flows efficiently
• Servers respond to
requests from clients
• Servers perform specific
tasks
• Scalable network
• Centralized
04/24/2025 2
Classifications of
Client/Server Networks
• LAN
• Local area network
• Computers linked
together over a small
geographic region
04/24/2025 3
Classifications of
Client/Server Networks
• WAN
• Wide area network
• Computers linked
over large
geographic locations
• MAN
• Metropolitan area
network
• Computers linked
together within a
city or county
04/24/2025 4
Classifications of
Client/Server Networks
• PAN
• Personal area network
• Wireless devices connected in close proximity to each other
• Intranet
• Private corporate network
• Protected by a firewall
04/24/2025 5
Constructing
Client/Server Networks
• Servers
• Network topologies
• Transmission media
• Network operating
system (NOS)
• Network adapters
• Network navigation
devices
04/24/2025 6
Servers
• Number and type of servers
depend on network size and
workload
• Dedicated server
• Performs one specific function
• Authentication server
• Keeps track of network logins
and services available
• File server
• Stores and manages files
04/24/2025 7
Dedicated Servers
• Print server
• Manages client-requested printing jobs
• Creates print queue (prioritizes print jobs)
• Applications server
• Acts as a storage area for application software
• Database server
• Provides clients with access to database information
• E-mail server
• Processes and delivers in-coming and outgoing
e-mail
04/24/2025 8
Dedicated Servers
• Communications server
• Handles communications between networks including the Internet
• Often the only device on the network directly connected to the Internet
• Web server
• Hosts a Web site available through
the Internet
04/24/2025 9
P2P Networking/Computing
• P2P computing is the sharing of computer
resources and services by direct exchange
between systems.
• These resources and services include the
exchange of information, processing cycles,
cache storage, and disk storage for files.
• P2P computing takes advantage of existing
computing power, computer storage and
networking connectivity, allowing users to
leverage their collective power to the
“benefit” of all.
04/24/2025 10
P2P Architecture
• All nodes are both
clients and servers
• Provide and consume
data
• Any node can initiate a
connection
• No centralized data
source
• “The ultimate form of
democracy on the
Internet”
• “The ultimate threat to
copy-right protection on
the Internet
04/24/2025 11
What is P2P?
• A distributed system
architecture
• No centralized control
• Typically many nodes, but
unreliable and
heterogeneous Internet
Internet
• Nodes are symmetric in
function
• Take advantage of
distributed, shared
resources (bandwidth, CPU,
storage) on peer-nodes
• Fault-tolerant, self-
organizing
• Operate in dynamic
environment, frequent join and
04/24/2025 leave is the norm 12
P2P Network Characteristics
• Clients are also servers and routers
• Nodes contribute content, storage, memory, CPU
• Nodes are autonomous (no administrative
• authority)
• Network is dynamic: nodes enter and leave the network
“frequently”
• Nodes collaborate directly with each other (not through
well-known servers)
• Nodes have widely varying capabilities
04/24/2025 13
P2P vs. Client/Server
• Pure P2P:
• No central server
• For certain requests any peer can function as a
client, as a router, or as a server
• The information is not located in a central
location but is distributed among all peers
• A peer may need to communicate with multiple
peers to locate a piece of information
04/24/2025 2.17
Figure 2.1 Tasks involved in sending a letter
04/24/2025 2.18
2-2 THE OSI MODEL
Established in 1947, the International Standards
Organization (ISO) is a multinational body dedicated to
worldwide agreement on international standards. An ISO
standard that covers all aspects of network
communications is the Open Systems Interconnection (OSI)
model. It was first introduced in the late 1970s.
04/24/2025 2.20
Figure 2.2 Seven layers of the OSI model
04/24/2025 2.21
Figure 2.3 The interaction between layers in the OSI model
04/24/2025 2.22
Figure 2.4 An exchange using the OSI model
04/24/2025 2.23
2-3 LAYERS IN THE OSI MODEL
04/24/2025 2.24
Figure 2.5 Physical layer
04/24/2025 2.25
Note
04/24/2025 2.26
Figure 2.6 Data link layer
04/24/2025 2.27
Note
04/24/2025 2.28
Figure 2.7 Hop-to-hop delivery
04/24/2025 2.29
Figure 2.8 Network layer
04/24/2025 2.30
Note
04/24/2025 2.31
Figure 2.9 Source-to-destination delivery
04/24/2025 2.32
Figure 2.10 Transport layer
04/24/2025 2.33
Note
04/24/2025 2.34
Figure 2.11 Reliable process-to-process delivery of a message
04/24/2025 2.35
Figure 2.12 Session layer
04/24/2025 2.36
Note
04/24/2025 2.37
Figure 2.13 Presentation layer
04/24/2025 2.38
Note
04/24/2025 2.39
Figure 2.14 Application layer
04/24/2025 2.40
Note
04/24/2025 2.41
Figure 2.15 Summary of layers
04/24/2025 2.42
2-4 TCP/IP PROTOCOL SUITE
04/24/2025 2.44
2-5 ADDRESSING
04/24/2025 2.45
Figure 2.17 Addresses in TCP/IP
04/24/2025 2.46
Figure 2.18 Relationship of layers and addresses in TCP/IP
04/24/2025 2.47
Example 2.1
04/24/2025 2.48
Figure 2.19 Physical addresses
04/24/2025 2.49
Example 2.2
07:01:02:01:2C:4B
04/24/2025 2.50
Example 2.3
04/24/2025 2.51
Figure 2.20 IP addresses
04/24/2025 2.52
Example 2.4
04/24/2025 2.53
Figure 2.21 Port addresses
04/24/2025 2.54
Note
04/24/2025 2.55
Example 2.5
753
04/24/2025 2.56
2-2 THE OSI MODEL
Established in 1947, the International Standards
Organization (ISO) is a multinational body dedicated to
worldwide agreement on international standards. An ISO
standard that covers all aspects of network
communications is the Open Systems Interconnection (OSI)
model. It was first introduced in the late 1970s.
6 Presentation
5 Session
4 Transport INTRODUCTION
3 Network
2 Data Link
1 Physical
04/24/2025 58
7 Application NETWORK GOALS
Communications
5 Session Information can be distributed very quickly, such as
email and video conferencing.
4 Transport
Saving Money
Resources such as information, software, and
3 Network hardware can be shared.
1 Physical
04/24/2025 59
7 Application APPLICATIONS
5 Session • Email
• Chat
• Web sites
4 Transport
• Sharing of documents and pictures
• Accessing a centralized database of information
3 Network • Mobile workers
2 Data Link
1 Physical
04/24/2025 60
7 Application NETWORK STRUCTURE
Subnet
5 Session Carries messages from host to host. It is made up
of telecommunication lines (i.e. circuits, channels,
4 Transport trunks) and switching elements (i.e. IMPs, routers).
Hosts
3 Network End user machines or computers.
1 Physical
04/24/2025 61
7 Application NETWORK ARCHITECTURES
04/24/2025 62
7 Application NETWORK ARCHITECTURES
2 Data Link
1 Physical
04/24/2025 63
7 Application OSI REFERENCE MODEL
1 Physical
04/24/2025 64
7 Application OSI REFERENCE MODEL
04/24/2025 65
7 Application OSI REFERENCE MODEL
04/24/2025 66
7 Application OSI REFERENCE MODEL
1 Physical
04/24/2025 67
7 Application OSI REFERENCE MODEL
Main topics:
4 Transport
• Connection-oriented and connectionless services
• Transmission Control Protocol (TCP)
3 Network • User Datagram Protocol (UDP)
2 Data Link
1 Physical
04/24/2025 68
7 Application OSI REFERENCE MODEL
3 Network d) Synchronization.
2 Data Link
1 Physical
04/24/2025 69
7 Application OSI REFERENCE MODEL
2 Data Link
1 Physical
04/24/2025 70
7 Application OSI REFERENCE MODEL
1 Physical
04/24/2025 71
7 Application SERVICES
1. Terminologies
5 Session
Entities – active elements in each layer (e.g.
process, intelligent I/O chip).
4 Transport Peer Entities – entities in the same layer on
different machines.
3 Network Service Provider – Layer N.
Service User – Layer N + 1.
2 Data Link
Service Access Points – places where layer N + 1
can access services offered by layer N.
1 Physical
04/24/2025 72
7 Application SERVICES
04/24/2025 73
7 Application SERVICES
Analog Bandwidth
5 Session • Measurement is in Hertz (Hz) or cycles/sec.
1 Physical
04/24/2025 75
7 Application TRANSMISSION MEDIA
6 Presentation 1. Guided
Data is sent via a wire or optical cable.
5 Session Twisted Pair
Two copper wires are twisted together to reduce
the effect of crosstalk noise. (e.g. Cat5, UTP, STP)
4 Transport
Baseband Coaxial Cable
3 Network A 50-ohm cable used for digital transmission. Used
in 10Base2 and 10Base5.
2 Data Link Broadband Coaxial Cable
A 75-ohm cable used for analog transmission such
1 Physical as Cable TV.
04/24/2025 76
7 Application TRANSMISSION MEDIA
1 Physical
* Fiber optic cables are difficult to tap (higher security)
and are normally used for backbone cabling.
04/24/2025 77
7 Application TRANSMISSION MEDIA
6 Presentation 2. Unguided
Data is sent through the air.
5 Session
Line-of-sight
Transmitter and receiver must “see” each other,
4 Transport such as a terrestrial microwave system.
Communication Satellites
3 Network
A big microwave repeater in the sky. Data is
broadcasted, and can be “pirated.”
2 Data Link
Radio
Term used to include all frequency bands, such as
1 Physical
FM, UHF, and VHF television.
04/24/2025 78
7 Application ANALOG TRANSMISSION
6 Presentation 1. Modulation
Modulating a sine wave carrier to convey data.
5 Session
Amplitude Modulation (AM)
Amplitude is increased/decreased while frequency
4 Transport remains constant.
04/24/2025 79
7 Application ANALOG TRANSMISSION
6 Presentation 2. Modems
A device that accepts digital signals and outputs a
modulated carrier wave, and vice versa.
5 Session
It is used to interconnect the digital computer to the
4 Transport analog telephone network.
2 Data Link
1 Physical
04/24/2025 80
7 Application ANALOG TRANSMISSION
04/24/2025 81
7 Application DIGITAL TRANSMISSION
3 Network Hubs
• Multi-port repeater.
2 Data Link • Interconnects several computers.
• Does not filter data traffic.
1 Physical
6 Presentation
5 Session
2 Data Link
1 Physical
04/24/2025 84
7 Application OVERVIEW
04/24/2025 85
7 Application ROUTING ALGORITHMS
B(A,2) C(B,3)
5 Session B 1 C
2
4 Transport A(-,-) 3 2 3
D(E,3)
2
A D F(E,4)
3 Network 1
1 F
E(A,2) 2
2 Data Link 2
E
1 Physical
A–E–D–F
A – E – F is the answer.
04/24/2025 86
7 Application ROUTING ALGORITHMS
6 Presentation 2. Flooding
1 Physical
04/24/2025 87
7 Application IP ADDRESSING
6 Presentation Format
xxxxxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
where x is either 0 or 1
5 Session
Example 1:
4 Transport 11111111. 11111111.00000000.00000000
255.255.0.0
3 Network
Example 2:
2 Data Link 11111111. 11111111.10000000.00000000
1 Physical 255.255.192.0
04/24/2025 88
7 Application IP ADDRESSING
Example 3:
1 Physical
IP address of computer 180.100.7.2
Mask 255.255.192.0
Network address 180.100.0.0
04/24/2025 89
7 Application IP ADDRESSING
6 Presentation Mask
6 Presentation Subnets
The Internet is running out of IP address. One solution
is to subnet a network address.
5 Session
This is done by borrowing host bits to be used as
4 Transport network bits.
Example:
3 Network
Class B mask 255.255.0.0
Borrowing 1 bit gives a subnet mask of 255.255.128.0
2 Data Link Borrowing 2 bits gives a subnet mask of 255.255.192.0
Borrowing 3 bits gives a subnet mask of 255.255.224.0
Borrowing 4 bits gives a subnet mask of 255.255.240.0
1 Physical
04/24/2025 91
7 Application IP ADDRESSING
6 Presentation Example:
Given an IP address of 180.200.0.0, subnet by
borrowing 4 bits.
5 Session
Subnet mask = 255.255.240.0
4 Transport The 4 bits borrowed are value 128, 64, 32, 16. This will
create 16 sub networks, where the first and last will be
unusable.
3 Network
Sub network address:
2 Data Link 180.200.0.0
180.200.16.0
180.200.32.0
1 Physical
180.200.48.0
180.200.64.0
etc…
04/24/2025 92
7 Application IP ADDRESSING
180.200.31.255
1 Physical
04/24/2025 93
7 Application ROUTERS
2 Data Link
1 Physical
04/24/2025 94
Reference
• Forouzan, B.A. Data Communicaiton and Networking, McGraw- Hill
Education. Global edition 5e(© 2013).
04/24/2025 95