Computer Networks
1
Today’s Goals:
(Computer Networks)
• We will become able to appreciate the role of
networks in computing
What is a
computer network?
5
Computer Network
6
Examples of Computer Network Usage
• I can send an eMail message to a remote
computer using the SMTP (Simple Mail
Transfer Protocol )
7
Example of
Computer
Computer
E a Computer
A Network
Computer
D
Hub
Computer
B Computer
C
8
Components of Conventional Computer Networks
1. Computers
3. Hub
– The network traffic controller
9
Components of Conventional Computer Networks
4. Cables
– Are either electrical or optical
– Not required at all for wireless networks
5. Protocol
– Rules governing communications over the
network
10
How Does a Conventional Network Work?
11
How Does a Conventional Network Work?
13
Hub (2)
• Each computer in a network is connected to
one of those ports through a cable
14
Packet (1)
• The smallest unit of data transmitted over a
computer network
16
Types of Computer Networks
according to the network access policy
• Private
• Public
17
Private Networks (1)
• Organizations having many computers usually
connect them in the form of private networks
18
Private Networks (2)
• This allows computers from within the
organization to exchange info, but keeps the
info private and protected from outsiders
19
Public Networks
• All networks that are not private, are … public
• Example: Internet
21
VPN: Virtual Private Network (2)
22
Types of Computer Networks
according to the distance between nodes
23
LAN
• A network of computers located in the same
building or a handful of nearby buildings.
• LAN is a computer networks widely used for
local communications.
• Examples:
– Computer network of a University campus
24
WAN
• A network in which computers are separated by
great distances, typically across cities or even
continents
• Example:
– The network connecting the ATM of a bank located
in various cities
– A network connecting the local and oversea offices
of a SW house
– Internet 25
MAN
• MAN is a computer network spread over a city
• The computer in a MAN is connected using coaxial
cable or fiber optics cables.
29
Gateway
• A special-purpose computer that connects and
translates between networks that use different
communications protocols
30
Modem (1)
• I/O device used for connecting two
computers over telephone lines
31
Modem (2)
• Modulator converts computer messages to
electrical pulses that are suitable for
transmission over the telephone lines
32
Local Area Network Topologies
• The pattern in which computers are connected
to form a network
• Popular patterns:
– Point-to-point
– Star
– Bus
– Ring
Computer Computer
A B
34
P2P
• Inexpensive
• Limited connectivity
35
Computer
Star
D
Computer Computer
Server
A C
Computer
B
36
Star (1)
• A computer sends the address of the intended
receiver and the data to the server
37
Star (2)
• Costly, because it uses an additional computer
to direct the data
Bus: A high
speed cable
Computer Computer
B D
39
Bus (1)
• No server is required
Computer Computer
A C
Computer
B
42
Ring (1)
• No server is required
44
Ring (3)
• New nodes are difficult to add
45
Computer
A
Combination
Computer
Hub Computer
B
D
Computer
C Computer
Hub
E
Computer
46 F
The OSI Model
• The Open System Interconnection (OSI)
model is framework for defining standards for
linking heterogeneous computers in a packet
switched network
• Standardized OSI protocol makes it possible
for any two heterogeneous computer
systems, located anywhere in the world, to
easily communicate with each other
• Separate set of protocols is defined for each
layer in its seven-layer architecture. Each
layer has an independent function 47
The OSI (Open System Interconnection)
Model Layers
48
7-Layer Model of OSI
Physical DataLink Network Transport Session Presentation Application
• Application Layer
– set of utilities used by application programs
• Presentation Layer
– formats data for presentation to the user
– provides data interfaces, data compression and translation
between different data formats
• Session Layer
– initiates, maintains and terminates each logical session
between sender and receiver
7-Layer Model of OSI
• Transport Layer
– deals with end-to-end issues such as segmenting the
message for network transport, and maintaining the logical
connections between sender and receiver
• Network Layer
– responsible for making routing decisions
• Data Link Layer
– deals with message delineation, error control and network
medium access control
• Physical Layer
– defines how individual bits are formatted to be transmitted
through the network
Networking Protocols
• Networks use protocols, or rules, to exchange
info through shared channels
Layer N Layer N
sender receiver
Ethernet Protocol
• A computer using this protocol checks if a
shared connection is in use before transmitting
a message
54
Computer Networks
=
Computers
+
Communications 55
Types of Communication Channels
1. Wire
2. Wireless
56
Bandwidth
58
Wireless (Radio) LANs Are Becoming Popular
Key benefits:
– Set-up time
– Set-up cost
– Maintenance cost
– Cost Key challenges:
– Security & privacy
– Quality of service
– Cost
59
Network Security (1)
• Keeping an eye on the security of private
networks (e.g. LANs) is relatively easy
60
Network Security (2)
• Applications transferred from the Internet to the
LAN may contain computer viruses
62
Firewall Private
Internet Network
63
Firewall Policy: Example
64
Anti-Virus Software
• Antivirus or anti-virus software (often
abbreviated as AV), sometimes known as
anti-malware software, is computer software
used to prevent, detect and remove malicious
software.
• Malware, short for malicious software, is an
umbrella term used to refer to a variety of
forms of hostile or intrusive software,
including computer viruses, worms, Trojan
horses, ransomware, spyware, adware,
scareware, and other malicious programs. It
65
can take the form of executable code, scripts,
In Today’s Lecture
67