Chapter 1 Intro to Computers and the Internet
Download
Report
Transcript Chapter 1 Intro to Computers and the Internet
Chapter 1
Introduction to Computers and the
Internet
© 2010, Robert K. Moniot
1
OBJECTIVES
In this chapter, you will learn:
• Basic facts about the Internet and World-Wide Web
• The client-server model of network interaction
• What elements and tools are used for web programming
• How the Web is evolving today
© 2010, Robert K. Moniot
2
The Internet
• Developed beginning in the 1960s, sponsored by ARPA
(Dept. of Defense Advanced Research Projects Agency).
• Communication between computers uses TCP/IP:
Transmission Control Protocol / Internet Protocol.
• Information is transmitted by packet switching: data is
broken up into packets, which are then passed from one
computer to the next until they reach their destination.
This is in contrast to the phone system, which creates a temporary
direct link between communicating parties.
Packet switching is robust since it can route around disabled nodes
and use multiple paths. But there is no guarantee packets will
be delivered within any given time.
© 2010, Robert K. Moniot
3
The Internet
• IP requires each connected computer to have a unique
address: a number such as 150.108.64.52.
• Clients such as home computers are generally assigned
IP addresses dynamically (by DHCP) from a pool of
available numbers upon connecting to the Internet.
• Server computers have static IP addresses.
• More human-friendly: names. Domain Name Service
(DNS) translates between name and number.
• Internet names have two parts: a host name (the first
component) and a domain (everything else). Example:
erdos.dsm.fordham.edu
© 2010, Robert K. Moniot
4
The Internet
• Various protocols are built on top of TCP/IP:
–
–
–
–
–
E-mail (SMTP)
File Transfer Protocol (FTP)
Drive and printer sharing protocols, e.g. NetBIOS
Network Time Protocol (NTP) for setting computers' clocks.
Hypertext Transport Protocol (HTTP): the World-Wide Web
• TCP requires computers to connect via numbered ports
defined by the network software applications. Each
protocol uses a different port. For instance, Web
transactions usually use port 80.
• Note that the Web is just one of many protocols using
the Internet.
© 2010, Robert K. Moniot
5
The World-Wide Web
• Invented around 1990 by Tim Berners-Lee, a
programmer at CERN (a physics lab in Geneva) to
simplify sharing of information between research groups.
• Designed to be easy to program, easy to use, flexible
and decentralized.
• Based on client-server model:
– client computer runs a browser (e.g. Internet Explorer or
Netscape) that requests information from a server
– server computer runs a web server (e.g. Microsoft Internet
Information Server or Apache Web Server) that listens for
requests and sends back information
© 2010, Robert K. Moniot
6
Client-Server Model
request
response
Internet
Server
Client
© 2010, Robert K. Moniot
7
Web Programming Elements
• XHTML: Extensible Hyper-Text Markup Language.
(Formerly HTML.) Provides formatting of text and
graphics, as well as links between documents.
• CSS: Cascading Style Sheets. Provide more powerful
and detailed control of style and formatting.
• JavaScript: a programming language for client-side
scripting, to provide dynamically changing content.
• Java: a more powerful programming language for web
applications on the client that can also run independently
of the browser.
• Server-side scripting and programming (SHTML, ASP,
PHP, CGI). These permit access to databases and
other information located on the server.
© 2010, Robert K. Moniot
8
Web 2.0
• Goes beyond just getting content to users
• Involves the users
–
–
–
–
–
–
Creating content
Commenting & reviewing
Collaborating, networking
Sharing
Categorizing
Syndicating
• Examples: Wikipedia, eBay, YouTube, Facebook, …
© 2010, Robert K. Moniot
9
Semantic Web
• Also called “Web 3.0”
• Web pages include embedded information about the
meaning of their content
• Allows automation of tasks that now require humans
– More intelligent searching, e.g. “Apple”
• Fruit
• Computer company
• Record label
– Collating & combining data of interest
© 2010, Robert K. Moniot
10
Compatibility
• Unfortunately, competition between software companies
has often resulted in the introduction of incompatible
features so that web pages that work on one browser do
not work right on a different one.
• The World-Wide Web Consortium (www.w3c.org) exists
to develop and define standards for HTML, CSS, etc.
• However, compliance with these standards is only partial
at best.
– Stick to features known to be compatible
– Test your web pages on as many different browsers and
platforms as possible.
© 2010, Robert K. Moniot
11