Preliminary Computer Science I: COMP0001
Preliminary Computer Science I: COMP0001
COMP0001
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 1 / 50
2
Lecture 3B
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 2 / 50
Contents
3
1 Network Fundamentals
2 The Internet
4 Internet Protocols
5 Security
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 3 / 50
Content
4
1 Network Fundamentals
2 The Internet
4 Internet Protocols
5 Security
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 4 / 50
Network Fundamentals
5
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 5 / 50
6
Network Classifications
Scope
Personal Area Network (short-range)
Local Area Network (building/campus)
Metropolitan Area Network (community)
Wide Area Network (greater distances)
Ownership
Closed versus open
Topology (configuration)
Bus (Ethernet)
Star (Wireless networks with central Access Point)
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 6 / 50
7
Protocols
Rules by which activities are conducted on a network
Example: Coordinating the transmission of messages between
computers
Need to avoid all machines transmitting at the same time
Allows vendors to build products that are compatible with products
from other vendors
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 7 / 50
8
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 8 / 50
Communication over a bus network
9
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 9 / 50
10
Combining Networks
Repeater: passes all messages across two busses
Bridge: passes only messages that are destined for computers on
the other bus
Switch: acts like a bridge, but with connections to multiple busses
Router: Connects two incompatible networks resulting in a
network of networks called an internet
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 10 / 50
11
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 11 / 50
Routers connecting two WiFi networks and an
12
Ethernet network to form an internet
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 12 / 50
13
Client-server
Many clients, one server (executing continuously)
Clients make requests of other processes
Server satisfies requests made by clients
Peer-to-peer (P2P)
Two processes communicating as equals
Processes execute on a temporary basis
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 13 / 50
14
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 14 / 50
15
Distributed Systems
Systems units that execute as processes on different computers
Cluster computing
Independent computers work closely together instead of a single,
much larger machine
Grid computing
Millions of home PCs (not connected to each other) work on a
complex problem
Cloud computing
Provide services, hide the details
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 15 / 50
Content
16
1 Network Fundamentals
2 The Internet
4 Internet Protocols
5 Security
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 16 / 50
17
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 17 / 50
18
The Internet
The Internet is an internet that spans the world
1 Original goal was to link a variety of networks into a connected
system unaffected by local disasters
2 Today, it is a commercial undertaking that links a worldwide
combination of PANs, LANs, MANs, and WANs involving millions
of computers
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 18 / 50
19
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 19 / 50
20
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 20 / 50
21
Internet Addressing
IP address: pattern of 32 or 128 bits often represented in dotted
decimal notation
Mnemonic address:
Domain names (uwi.edu)
Top-Level Domains
.org, .gov, .ag, .jm, .com, .mil, .net, .au, .ca, .biz, . . . .
Domain name system (DNS)
Name servers
DNS lookup
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 21 / 50
22
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 22 / 50
23
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 23 / 50
24
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 24 / 50
25
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 25 / 50
Content
26
1 Network Fundamentals
2 The Internet
4 Internet Protocols
5 Security
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 26 / 50
27
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 27 / 50
28
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 28 / 50
A typical URL
29
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 29 / 50
30
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 30 / 50
A simple webpage
31
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 31 / 50
Extensible Markup Language (XML)
32
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 32 / 50
Client Side Versus Server Side
33
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 33 / 50
HTML and CSS
34
https://www.w3schools.com/html/default.asp
https://www.w3schools.com/css/default.asp
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 34 / 50
Content
35
1 Network Fundamentals
2 The Internet
4 Internet Protocols
5 Security
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 35 / 50
36
Internet Protocols
Control how messages are transferred over the Internet
This software must reside on every computer in the Internet
Accomplished by a multi-level hierarchy
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 36 / 50
Package-shipping example
37
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 37 / 50
38
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 38 / 50
The Internet software layers
39
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 39 / 50
Following a message through the Internet
40
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 40 / 50
41
Transport Layer
Transmission Control Protocol (TCP)
User Datagram Protocol (UDP)
Network Layer
Internet Protocol (IP)
IPv4
IPv6
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 41 / 50
Choosing between TCP and UDP
42
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 42 / 50
Content
43
1 Network Fundamentals
2 The Internet
4 Internet Protocols
5 Security
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 43 / 50
Cybersecurity
44
Forms of Attack
Malware (viruses, worms, Trojan horses, spyware, phishing
software)
Denial of service (DoS)
Spam (common medium for delivering malware)
Protection and Cures
Firewalls
Spam filters
Proxy Servers
Antivirus software
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 44 / 50
Cryptography
45
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 45 / 50
Public key encryption
46
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 46 / 50
Legal Approaches to Network Security
47
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 47 / 50
Live attacks and threats
48
https://www.akamai.com/visualizations/visualizing-akamai
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 48 / 50
Further reading assignments
49
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 49 / 50
50
End
Ilenius Ildephonce (The UWI, Five Islands) COMP0001-Lecture Week 4 September 24, 2021 50 / 50