Lecture: Protocols in Detail

26
Lecture: Protocols in Detail

description

Lecture: Protocols in Detail. PROTOCOLS. file: local file access telnet: login remotely ftp: transfer files http: access web pages mailto: (send email). telnet: the client-server model. Client (you) vs - PowerPoint PPT Presentation

Transcript of Lecture: Protocols in Detail

Page 1: Lecture:  Protocols in Detail

Lecture:

Protocols in Detail

Page 2: Lecture:  Protocols in Detail

PROTOCOLS

file: local file access telnet: login remotely ftp: transfer files http: access web pages

mailto: (send email)

Page 3: Lecture:  Protocols in Detail

telnet: the client-server model

Client (you)

vs

Server (_____________)

Page 4: Lecture:  Protocols in Detail

What happens when you say telnet

grove.ufl.edu

Telnet looks up grove’s internet address

You and grove are now considered NVTs

(network virtual terminals)

Page 5: Lecture:  Protocols in Detail

Terminal Emulation

Needed because you and the server may have different ____________

A safe choice when you’re asked: VT-100 (vt=virtual terminal)

Page 6: Lecture:  Protocols in Detail

While you’re dialed up

You and grove have virtual

“Keyboards” to send data from one nvt to the other

AND “ Printers” to receive incoming info and display it on the screen

Page 7: Lecture:  Protocols in Detail

Transmitting TextYour typed text accumulates in a buffer

until it’s signaled to be transmitted (enter or line break)

It goes to the host with telnet commands as to how the other nvt should handle it.

There may be an apparent delay due to packet-switching.

Page 8: Lecture:  Protocols in Detail

ftp (file transfer protocol)

A permanent procedure that:

uploads (from your local drive to a remote computer)

downloads (from __________to

____________)

Page 9: Lecture:  Protocols in Detail

ftp Continued

ftp programs use either: 1. words (____ and ____) or 2. click and drag (example: _______)

Page 10: Lecture:  Protocols in Detail

Two Types of Links Used by ftp

1. command link passes instructions ex: changing directories

2. data link sends files closes automatically when finished

Page 11: Lecture:  Protocols in Detail

Two transmission formats

1. ASCII sends text files but

alters commands like CR

2. Binary sends files unaltered

Page 12: Lecture:  Protocols in Detail

HTTP (hypertext transfer protocol)

Transports text (HTML) documents

Page 13: Lecture:  Protocols in Detail

An Example

http uses

www.cise.ufl.edu/class/cgs3066sp07/syllabus.html

To send the text file “syllabus” to the cache memory of my browser

Page 14: Lecture:  Protocols in Detail

What’s “cache”?

stores most often-used things (commands or files) so they’re accessible quickly

Page 15: Lecture:  Protocols in Detail

Two Types of Cache

- Browser Cache (this is what html is using)

- Processor Cache

Page 16: Lecture:  Protocols in Detail

Browser Cache

- keeps pages, graphics, sounds, and URLs of online places you’ve visited recently

- stored on your hard drive -- for instanceC:\program files\netscape\users\lola\cache

Page 17: Lecture:  Protocols in Detail

For Privacy, empty cache periodically

sequence using IE:

View (version 4.0) or Tools (version 5.0) Internet Options. General

Temporary Internet Files Delete Files.

History Clear History.

OK

Page 18: Lecture:  Protocols in Detail

Sequence Using Netscape

Edit (on the tool bar)

Preferences. Advanced expand by clicking + Cache

Clear Memory Cache

Clear Disk Cache. OK

Page 19: Lecture:  Protocols in Detail

Processor Cache

stores most often used commands so that the processor doesn't have to wait for the (slower) hard drive to get them

Page 20: Lecture:  Protocols in Detail

More about Processor Cache

- aka high-speed Static RAM (SRAM) operates between CPU and main memory

2 levels L1 built into the processor chip itself –very

small L2 chip(s) external to the processor

Page 21: Lecture:  Protocols in Detail

Web Pages

An html file is not the same as a web page!

It becomes a web page only when it’s ________________________________

____ (like IE or Netscape).

Page 22: Lecture:  Protocols in Detail

Public Directories

- For your web page to be accessed by anyone else, it must be on a web server

- and in a public folder within the your root directory

Page 23: Lecture:  Protocols in Detail

How Public Directories Work

the server gets an http request

it looks for whatever the webmaster decided the public directory should be called

example: public_html

Page 24: Lecture:  Protocols in Detail

Index Files

-A non-specific request to public_html activates the file named (usually) “index”

- So most main web pages are called index.html

- the index convention applies to subdirectories too

Page 25: Lecture:  Protocols in Detail

More about Index Files

If there is no index file in your public_html

_______________________________________________

Page 26: Lecture:  Protocols in Detail

A Final Word on http

- Clicking a link is the same as typing its _______ in the window above

- You don’t have to click on a link to see the url– you can just __________________________