






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Padua-Perez; Class: OBJECT-ORIENTED PROG II; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;
Typology: Study notes
1 / 38
This page cannot be seen from the preview
Don't miss anything!































Advanced Programming Concepts
Exception handling Streams Threads Graphics user interfaces (GUIs) Networking
Networking Background
Set of computers using common protocols tocommunicate over connecting media
1969 ARPANET 1986 NSFnet 1995 Internet
Networking Concepts
Protocols โ Email Delivery
Protocol โ HTTP GET (Web Page)
Client connects to server on port 80
GET /~pugh/index.html HTTP/1.0
HTTP/1.1 200 OK Date: Mon, 20 Feb 2006 03:47:44 GMT Server: Apache Last-Modified: Wed, 15 Feb 2006 01:17:09 GMT ETag: "9b2b1c-948-1222af40" Accept-Ranges: bytes Content-Length: 2376 Connection: close Content-Type: text/html; charset=ISO-8859- Followed by blank line, then contents of response
Network Model โ Layers
Transmit data as 0โs and 1โs over connection
Between two physically connected computers
Between any two computers connected to network
Deliver network data to application
Between two applications using network
Network Model โ VOIP Example
Internet (IP) Address
Running out of 32-bit IP addresses Caused by initial address allocation
Stanford & MIT given more IP addresses thanChina
1+ million addresses per square meter on Earth
IP Address โ DNS
Protocol for translating domain names to IPaddresses
Example: cs.umd.edu
Multiple DNS servers on internet DNS server may need to query other DNS servers
edu DNS server queries umd.edu server to findcs.umd.edu
IP Address โ NAT
Rewriting source / destination IP addresses
As data passes through router
Permits sharing of single IP address amongmultiple computers Used in home networking (NAT box)
IP Address โ NAT
NAT box connects to both internet & private network
Obtains single public IP address from ISP Assigns local IP address to computers on privatenetwork
For data traveling to / from internet
NAT box merges and translates IP addresses
Local IP addresses
โ
public IP address
From Internet
All private computers appear to have same IPaddress
Sockets
Represents network connection Implemented in software Supports both UDP and TCP protocols
Introduced in Berkley UNIX in 1980s Networking API
Sockets
Receives data packet Relays to specific port
port
port
port
port
port
TCP or UDP
port #,
data
Packet
app
app
app
app
app
Transport
Layer