Computer Science An Overview Chapter 4
Computer Science An Overview Chapter 4
Chapter 4
Networking and
the Internet
• 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)
Copyright © 2019 Pearson Education, Ltd. All Rights Reserved.
Figure 4.1 Two popular network
topologies (1 of 2)
• CSMA/Collision Detection
– used in Ethernet
– both machines stop and wait for a independent,
random time
• CSMA/Collision Avoidance
– used in WiFi, where not all machines can hear each
other (hidden terminal problem)
– give advantage to the machine that has already
been waiting
• 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
EXTERMINATE!
Regards, Dalek
.
250 2.0.0 r7NJYAEl028071 Message accepted for delivery
QUIT
221 2.0.0 mail.tardis.edu closing connection
Copyright © 2019 Pearson Education, Ltd. All Rights Reserved.
More Recent Applications
• Transport Layer
– Transmission Control Protocol (TCP)
– User Datagram Protocol (UDP)
• Network Layer
– Internet Protocol (IP)
▪ IPv4
▪ IPv6
import socket
Sock = socket.socket()
Server_address
• 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