Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6...

38
Topic 1: Fundamentals & Vocabulary Eric Mlinar CS 6 3/30/2016

Transcript of Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6...

Page 1: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Topic 1:Fundamentals &

VocabularyEric Mlinar

CS 63/30/2016

Page 2: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Basic Hardware

Desktop Computer

Ethernet Cable

Router

Modem

Page 3: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Basic Hardware

Laptop Computer w/ Wireless Net. Adapter

Ethernet Cable

Wireless Router

Modem

Page 4: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Basic Hardware

Wireless Modem/RouterLaptop Computer w/

Wireless Net. Adapter

Page 5: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Intranet• Internal network of computers (in a

company or home). Also: “LAN”

• Local Area Network

• Geographically local – limited to one

building, maybe a few buildings

• Use Ethernet cables or

wireless signals

to connect computers

Page 6: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Internet• A network of networks. Also: WAN

• Wide Area Network

• Unlimited by geography

• Different wires

Page 7: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Server• Client: requests and receives information

• Server: receives and processes info,

returns the information

• Examples

• Viewing a webpage

• Sending or receiving email

Page 8: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Server• Client: requests and receives information

• Server: receives and processes info,

returns the information

• Examples

• Viewing a webpage

• Sending or receiving email

• Server is a role, not a piece of equipment

Page 9: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

*loading• Downloading: receiving data from a

server

• Uploading: sending data to the server

• “Data”… typically refers to files

• Bandwidth: rate of data transmission

• Bits per second (bps) < Kbps < Mbps < Gbps

• Not to be confused with Byte = 8 bits:

(KB, MB, TB, etc.)

Page 10: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Data Transfer• Data formatted in standardized way

• Header + data/“payload”/body, e.g.:

01110111001001001111010110001110100

• Header contains routing information

• Address to/from, protocol

• Like envelope + letter at the post office

• What if data stream is too long?

Page 11: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Packets• Break up large data stream into several

packets

• Cutting up your food so you don’t choke

Data

D

Data

C

Data

B

Data

A

Data

E

Page 12: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Packets• Called “digital envelopes” (appropriately)

• Uniform size, contents irrelevant

Page 13: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Packet Switching• Passed along until destination (hot potato)

• “Is the destination address in my network,

or should I pass it on?”

Page 14: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Repeaters• What if distance between sending and

receiving data too far?

• Repeater boosts signal, keeps it going

Page 15: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Internet Structure• Physically structured? Yes ~ish

Page 16: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Internet Structure• Local, Regional, and National levels

• Just like roads:

Local roads, state highways, interstates

• Information only goes up as high as it

needs to…

• …for the game of hot potato

Page 17: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Protocols• Packet envelopes: addresses & protocol

• Guidelines for computers to talk with

each other

• Different envelopes that data packets can use

• Transferring web pages uses HTTP

• Hypertext Transfer Protocol

• Direct file transfers → FTP

• File Transfer Protocol

Page 18: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Protocols• Protocols stacked on top of each other

• HTTP or FTP at “Application Layer”

• Transmission Control Protocol (TCP) at

“Transport Layer”

• Internet Protocol (IP) at “Internet Layer”

vs

Page 19: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

RECAP…• Internet is network of networks sharing

data with each other

• Data packets sent with header + payload

• Header contains address & protocol

• Data routed to destination by jumping

from network to network (hot potato)

Page 20: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Browser• Translates HTML into a pretty webpage

• Hypertext Markup Language

Page 21: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Browser• Translates HTML into a pretty webpage

• Hypertext Markup Language

Page 22: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Cache (browser)• Temporary storage (se cacher “to hide”)

• Downloading can be intensive

• Instead of re-downloading everything,

save local copy → cache

• Quickly reopen pages (+)

• Delays page from updating (-)

• Takes up lots of disk space (-)

• Clear your cache through browser options

Page 23: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Browser History• Internet history: Addresses saved, find a

recently viewed page

• Useful for remembering that one page (+)

• Privacy issue (-)

• Different from cache: only stores

address, but not any content

• Clear internet history in browser options

Page 24: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

DNS• Domain Name Service

• Translates google.com to IP address

(e.g., 216.239.39.99)

• Technically http://www.google.com

• Domain names vary (.com, .org)

• Restricted: .gov, .edu, .mil

• Genre: .net, .biz, .tv

• Country: .us, .uk, .cn, .au

Page 25: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Address Details• With an address, we go from specific to

general using the dots (.)

http://moodle.cs.ucr.edu/

• Slashes (/) progress into subfolders

http://moodle.cs.ucr.edu/lectures/cs6/lecture01.html

Computer Company DomainDept.

Page 26: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

IP Address• Dotted decimal: four bytes (0 to 255)

• Ranges from 0.0.0.0 to 255.255.255.255

• Uniquely identifies all computers on internet

• Uniform Resource Locator (URL)

• Using words (like google.com) in place of

actual IP address for domain names

Page 27: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Static vs. Dynamic IP• To be on Internet, you need an IP address

• Usually assigned one by ISP (from a pool

of available addresses) for your session

• Address can change → dynamic IP

• To host a web page directly, generally

need a static IP address

• Costs extra $$

• Caveat: web page running 24/7 will rarely be

assigned new address

Page 28: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

IP Address Limitation• Current IP limits addresses to 2^8 * 2^8 *

2^8 * 2^8 = 2^32 ≈ 4,000,000,000 devices

• Some forbidden/reserved addresses

• Every networked device needs an address

• Includes both webpages and users

• Server and clients

• Workaround? Routers.

Page 29: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Routers• Pass along information to its destination

• Occupy one IP address to the world,

while hosting many devices itself.

Page 30: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Internal IP Addresses• modem → internet / computer → router

192.168.0.100

192.168.0.101

192.168.0.102

55.234.66.114

Modem

Router

192.168.0.1

Page 31: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Networked Computers• Network Card: Ethernet, wireless, dial-up

(most Ethernet, many wireless)

• MAC address: serial number for network

card, unique physical address

• E.g. 00-16-D4-40-8E-4D (> 100 zillion comb.)

Page 32: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Modems• Home network requires a modem to

connect to the Internet

• Different types with different connections

• Dial-up modems using telephone lines

• DSL (Digital Subscriber Line) – telephone

• Cable Modem – TV (cable) line

• Satellite Modems – Lineless

• Fiber Optics (e.g. Google Fiber)

Page 33: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Broadband Availability• DSL has incomplete availability

• Requires upgraded telephone lines

• Within certain distance of phone company’s

central office (i.e. switching station)

• Fiber to the curb: requires fiber optic cable

(placed below ground)

• “Broadband penetration” is now used as

a key economic indicator

Page 34: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

ISPs• Internet Service Provider: provide

access to the internet ($$), and typically

give/rent the modem used to connect to it

• Time Warner, Comcast, Charter…

• AOL used to be the biggest

• Repeatedly had lowest

customer satisfaction rates,

is now #5 … (Good riddance)

Page 35: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

AUP / TOS• Every ISP (and most networks) has

• AUP: Acceptable Use Policy, or

• TOS: Terms of Service

• Restrictions:• Copyright infringement

• Hacking/illegal trespassing

• Types of internet data (gaming?) – throttling

• Harassment

• For-profit Activities

Page 36: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

ISPs and Beyond• Tiered structure of Internet

• Where money goes

Home

account

Small ISP

Telephone

Company

Backbone

Company

Page 37: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Reminders

Lab tomorrow (Thursday).

Syllabus

Office hours location:

WCH 309

Page 38: Topic 1: Fundamentals & Vocabularygusta/cs8s19/cs6_01_definitions_trans.pdf · 2019-05-28 · CS 6 3/30/2016. Basic Hardware Desktop Computer Ethernet Cable Router Modem. Basic Hardware

Questions?