4 Network
4 Network
by
Kai-Lung Hua
Networking and the Internet
• 1 Network Fundamentals
• 2 The Internet
• 3 The World Wide Web
• 4 Internet Protocols
• 5 Security
4-2
Network Classifications
• Scope
– Local area network (LAN)
– Metropolitan area (MAN)
– Wide area network (WAN)
• Ownership
– Closed versus open
• Topology (configuration)
– Bus (Ethernet)
– Star (Wireless networks with central Access
Point)
4-3
Figure 4.1 Network topologies
4-4
Figure 4.1 Network topologies
(continued)
4-5
Protocols
• CSMA/CD
– Used in Ethernet
– Silent bus provides right to introduce new
message
• CSMA/CA
– Used in WiFi
– Hidden terminal problem
4-6
Figure 4.2 Communication over a
bus network
4-7
Figure 4.3 The hidden terminal
problem
4-8
Connecting Networks
4-9
Figure 4.4 Building a large bus
network from smaller ones
4-10
Figure 4.5 Routers connecting two
WiFi networks and an Ethernet
network to form an internet
4-11
Inter-process Communication
• Client-server
– One server, many clients
– Server must execute continuously
– Client initiates communication
• Peer-to-peer (P2P)
– Two processes communicating as equals
– Peer processes can be short-lived
4-12
Figure 4.6 The client/server model
compared to the peer-to-peer model
4-13
Distributed Systems
4-14
The Internet
4-15
Internet Architecture
4-16
Figure 4.7 Internet Composition
4-17
Internet Addressing
4-18
Internet Corporation for Assigned
Names & Numbers (ICANN)
• Allocates IP addresses to ISPs who then
assign those addresses within their regions.
• Oversees the registration of domains and
domain names.
4-19
Traditional Internet Applications
4-20
More Recent Applications
4-21
World Wide Web
4-22
Figure 4.8 A typical URL
4-23
Hypertext Document Format
• Encoded as text file
• Contains tags to communicate with browser
– Appearance
• <h1> to start a level one heading
• <p> to start a new paragraph
– Links to other documents and content
• <a href = . . . >
– Insert images
• <img src = . . . >
4-24
Figure 4.9 A simple Web page
4-25
Figure 4.9 A simple Web page
(continued)
4-26
Figure 4.10 An enhanced simple Web
page
4-27
Figure 4.10 An enhanced simple Web
page (continued)
4-28
Extensible Markup Language (XML)
4-29
Using XML
4-30
Figure 4.11 The first two bars of
Beethoven’s Fifth Symphony
4-31
Client Side Versus Server Side
• Client-side activities
– Examples: java applets, javascript,
Macromedia Flash
• Server-side activities
– Common Gateway Interface (CGI)
– Servlets
– PHP
4-32
Figure 4.12 Package-shipping
example
4-33
Internet Software Layers
4-34
Figure 4.13 The Internet
software layers
4-35
Figure 4.14 Following a message
through the Internet
4-36
TCP/IP Protocol Suite
• Transport Layer
– TCP
– UDP
• Network Layer
– IP (IPv4 and IPv6)
4-37
Figure 4.15 Choosing between TCP
and UDP
4-38
Security
• Attacks
– Malware (viruses, worms, Trojan horses,
spyware, phishing software)
– Denial of service
– Spam
• Protection
– Firewalls
– Spam filters
– Proxy Servers
– Antivirus software
4-39
Encryption
4-40
Figure 4.16 Public-key encryption
4-41