lecture a4 network / internet

42
Lecture A4 Network / Internet Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

Upload: others

Post on 01-Oct-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture A4 Network / Internet

Lecture A4 Network / Internet

Computing and Art : Nature, Power, and LimitsCC 3.12: Fall 2007

Page 2: Lecture A4 Network / Internet

FunctionaliaInstructor

Chipp Jansen, [email protected]

Course Web Page

http://www.sci.brooklyn.cuny.edu/~chipp/cc3.12/

Today:

• Network Concepts

• Internet Specifics

• Clients and Servers

• IP Address and Domain Name Servers

Page 3: Lecture A4 Network / Internet

What is a network?

• when computers talk to each other, this is called a network

purpose: to share resources, physical (hardware), digital (software and data)

• open system = “a system whose architecture is not a secret”

• Internet is a distributed network

- robust to failure, or attack

Page 4: Lecture A4 Network / Internet

ARPAnet

Page 5: Lecture A4 Network / Internet
Page 6: Lecture A4 Network / Internet
Page 7: Lecture A4 Network / Internet
Page 8: Lecture A4 Network / Internet
Page 9: Lecture A4 Network / Internet

Components of a Network• the network can have different kinds of computers and peripherals attached to it

router

printer

camera

toaster

Page 10: Lecture A4 Network / Internet

Toaster?

2001 - British Design - queried the local weather via the network, burned an appropriate symbol on your toast.

Page 11: Lecture A4 Network / Internet

WAN vs. LAN

What is a LAN?

What is a WAN?

What kind of network is the internet?

Page 12: Lecture A4 Network / Internet

WAN vs. LAN

What is a LAN?

• networks in which computers are physically connected to each other in the close geographical proximity are called local area networks (LANs)

What is a WAN?

• other networks are called wide area networks (WANs)

What kind of network is the internet?

• the internet is a wide area network

Page 13: Lecture A4 Network / Internet

Network Topologies

• the way in which the computers are connected to each other is called the network’s topology

Hub - Star

Page 14: Lecture A4 Network / Internet

Kinds of Network Topologies

• bus (linear model; inexpensive to run cables, but not robust to node failure) (back-bones of the internet)

Page 15: Lecture A4 Network / Internet

Kinds of Network Topologies

• ring (example: IBM token ring)

Page 16: Lecture A4 Network / Internet

Kinds of Network Topologies

• star (can be expensive to run cables, but robust to node failure)

Page 17: Lecture A4 Network / Internet

Kinds of Network Topologies

• hub (efficient; internet model) (scalable, centralized point of failure)

hub

workstation

workstation

workstation

printer

file-server

Page 18: Lecture A4 Network / Internet

Network Architecture

• Open System Interconnection (OSI) reference model or “7-layer” model

1. application layer

2. presentation layer

3. session layer

4. transport layer

5. network layer

6. data link layer

7. physical layer

• “All People Seem To Need Data Processing.”

Page 19: Lecture A4 Network / Internet

What is a layer?

• layers allow us to break-down a large task (i.e. communicating over a network) into smaller tasks

• provides abstraction

• a collection of related functions that provides services to the layer above it and receives service from the layer below it

presentation

application

session

providesservice

receivesservice

Page 20: Lecture A4 Network / Internet

OSI / “7-layer” model

1. application layer

• displays data, communicates with lower layers via presentation layer

• programmers writing applications (i.e. web-browser) use this layer’s functionality

• end-user’s use the application itself

2. presentation layer

3. session layer

4. transport layer

5. network layer

6. data link layer

7. physical layer

Page 21: Lecture A4 Network / Internet

OSI / “7-layer” model

1. application layer

2. presentation layer

• converts application layer data to forms understandable by other layers, and back; translates the “meaning” of the bits

• “special-packaging”

• encryption

3. session layer

4. transport layer

5. network layer

6. data link layer

7. physical layer

Page 22: Lecture A4 Network / Internet

OSI / “7-layer” model

1. application layer

2. presentation layer

3. session layer

• exchange of data between applications – “dialog” – and synchronization between applications

• manages and terminates the connections between the local and remote application

4. transport layer

5. network layer

6. data link layer

7. physical layer

Page 23: Lecture A4 Network / Internet

OSI / “7-layer” model

1. application layer

2. presentation layer

3. session layer

4. transport layer

• transfer of data through network; effects flow control; provides some error recovery

• TCP (transmission control protocol) and UDP (universal datagram protocol) operate at this layer

• “post-office” - handles / classifies the parcels

5. network layer

6. data link layer

7. physical layer

Page 24: Lecture A4 Network / Internet

OSI / “7-layer” model

1. application layer

2. presentation layer

3. session layer

4. transport layer

5. network layer

• physical routing of data from one computer to another; facilitates sender finding receiver

• IP, Internet Protocol - addressing

• Routers operate at the network level

• fragmentation - can break a package up into smaller packages (packets), handles resending (packet switched)

• “shipping network” - sacks of mail, trucks, airplanes

6. data link layer

7. physical layer

Page 25: Lecture A4 Network / Internet

Packet-switching

Sending units in smaller chunks:

1. More efficient: line of people at a busy pay-phone

2. React to failure and congestion: avoiding traffic jams

3. Improves reliability: part of message will arrive, and can resend

Page 26: Lecture A4 Network / Internet

OSI / “7-layer” model

1. application layer

2. presentation layer

3. session layer

4. transport layer

5. network layer

6. data link layer

• manages transmissions of low-level data; detects and corrects transmission errors

• point-to-point links

7. physical layer

Page 27: Lecture A4 Network / Internet

OSI / “7-layer” model

1. application layer

2. presentation layer

3. session layer

4. transport layer

5. network layer

6. data link layer

7. physical layer

• sends electronic signals, or “bits” – 0’s and 1’s)

• (usually linked to above layer)

• wired ethernet network vs. wireless network

Page 28: Lecture A4 Network / Internet

network information units and formats

• “information units” are passed from one layer to another

• “headers” are added as information passes from upper to lower layer

• terminology is defined below (it is often not used clearly or precisely):

– frame - information unit whose source and destination are the data link layer

– packet - information unit whose source and destination are the network layer

– segment - information unit whose source and destination are the transport layer

– message - information unit whose source and destination are the application, presentation or session layers

– datagram - information unit in a “connectionless” network

Page 29: Lecture A4 Network / Internet

network/internet protocols

• protocol = set of rules for how computers communicate with each other

• IP: internet protocol, i.e., moving data via TCP or UDP

• TCP: transmission control protocol (computer ↔ computer); can re-

transmit if errors

• UDP: user datagram protocol; no error checking, fast messaging

• HTTP: hypertext transfer protocol (computer ↔ browser)

• FTP: file transfer protocol

• SMTP: simple mail transfer protocol

Page 30: Lecture A4 Network / Internet

internet addresses

• IP address = Internet Protocol address

• every computer on the internet has a unique address

• dotted quad notation = four numbers separated by dots (.); e.g., 146.245.250.131 (which is the address of the CIS dept web server...)

- every number in the address is between 0 and 255(*do you know why?)

• address can be stored in 32 bits; there are four formats, depending on the size of the network (i.e., the size of each of the numbers in the dotted quad notation is defined by the format...)

Page 31: Lecture A4 Network / Internet

internet address

• “subnetting” is a standard (defined in 1985) to divide a large network into a number of smaller networks (this is what a router does)

• a computer is assigned one IP address

- assigned statically (manual)

- assigned dynamically (DHCP)

• “subnetting” is a standard (defined in 1985) to divide a large network into anumber of smaller networks (this is what a router does)

• example:network subnet hostprefix number number

IP address 130.5.5.25 → 130.5. .5 .25

domain names

• provides a more convenient way to address a computer on the internet thanthe numeric IP address

• structured hierarchically

• example: www.sci.brooklyn.cuny.edu

• common domain names: com, edu, gov, uk and other country-based domains

• name server : maintains correspondance between numeric IP address and do-main names;

• DNS = internet domain name system = group of domain name servers

clients and servers

• server :

– computer on a network which carries out some service for another com-puter

• client:

– the other computer for whom the server is carrying out the service

• types of servers:

– file servers (provides files for clients)

– database servers (specialized file server: provides databases – structuredfiles – for clients)

∗ what is a database?

∗ key concepts: SQL (structured query language), hierarchy, records,fields

– web servers (specialized file server: provides files that make up the com-ponents of a web site, e.g., html documents, video clips, etc)

– groupware

∗ manages scheduling for individuals and groups of co-workers/collaborators

∗ provides reports (e.g., billing) for collaborators

4

Page 32: Lecture A4 Network / Internet

Randall Munroe.

Page 33: Lecture A4 Network / Internet

Domain Names

• provides a more convenient way to address a computer on the internet than the numeric IP address (we like naming things)

• structured hierarchically

• example: www.sci.brooklyn.cuny.edu (which is more general?)

• no correspondence between parts of a domain name and numbers in IP

• common domain names : com, edu, gov, uk and other country-based domains (TLDs - top-level domains), (what about .tv? or .fm?)

• name server maintains correspondence between numeric IP address and domain names;

• DNS = internet domain name system = group of domain name servers

Page 34: Lecture A4 Network / Internet

URLs

URL - uniform resource locator

- what web-browsers use (not exclusive!)

http://www.sci.brooklyn.cuny.edu/~chipp/cc3.12/syllabus.html

3 Parts

1. Protocol (i.e. telephone vs. fax)

2. DNS name

3. path to a file on the server

Page 35: Lecture A4 Network / Internet

clients and servers

• server

– computer on a network which carries out some service for another computer

• client

– the other computer for whom the server is carrying out the service

Page 36: Lecture A4 Network / Internet

types of servers

– file servers (provides files for clients)

– database servers (specialized file server: provides databases – structured files – for clients)

• what is a database ?

• key concepts: SQL (structured query language), hierarchy, records, fields

– web servers (specialized file server: provides files that make up the components of a web site, e.g., html documents, video clips, etc)

– groupware

• manages scheduling for individuals and groups of co-workers collaborators

• provides reports (e.g., billing) for collaborators

• supports mailing lists for collaborators

Page 37: Lecture A4 Network / Internet

– mail servers (provides mail sending, receiving, storage)

– object servers (provides access to“distributed objects”)

– print servers (manages a print queue)

• adds requests to the queue

• schedules requests

• instructs printer regarding requests

• provides status on requests to clients

– application servers (provides access to particular applications, e.g., game servers)

Page 38: Lecture A4 Network / Internet

Client-Server Architecture

• client-server advantages:

– isolates data storage technology

– places more burden on server (instead of client) and distributes tasks amongst server(s)

– follows object-oriented and modular paradigms

∗ supports mailing lists for collaborators

∗ e.g. Lotus Notes

– mail servers (provides mail sending, receiving, storage)

– object servers (provides access to “distributed objects”)

– print servers (manages a print queue)

∗ adds requests to the queue

∗ schedules requests

∗ instructs printer regarding requests

∗ provides status on requests to clients

– application servers (provides access to particular applications, e.g., gameservers)

client-server architectures

internet

and

logic layer

data layer web server

web browser == client

presentation

file server, database server, web server

and

logic layer

data layer

processing

layer

web browser == client

internet

internet

or LAN

application server, web server

presentation

two-tier architecture three-tier architecture

• advantages:

– isolates data storage technology

– places more burden on server (instead of client) and distributes tasksamongst server(s)

– follows object-oriented and modular paradigms

5

Page 39: Lecture A4 Network / Internet

Telegarden (1995 - 2004)

Ken Goldberg - UC Berkley Prof.

Page 40: Lecture A4 Network / Internet

Tillie, the telerobotic doll (1995 - 1998)

Lynn Hershman (1995 - 1998)

Page 41: Lecture A4 Network / Internet

About now in Chicago; about here, now

Michael Rodemer, 1996

Video, wind sensors, fans

Chicago - West Virginia connection.

Page 42: Lecture A4 Network / Internet

TO DO

• Homework A (part 1 and 2) DUE Sunday, September 16, 11:59 pm via E-mail as a TEXT FILE attachment.

READ:

• Reed, Chapter 1

• Reed, Chapter 3

• Reed, Chapter 6