Presentation is loading. Please wait.

Presentation is loading. Please wait.

MISY 322 CHAPTER 1 Introduction to Internet. CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.2 Outline WWW and Internet.

Similar presentations


Presentation on theme: "MISY 322 CHAPTER 1 Introduction to Internet. CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.2 Outline WWW and Internet."— Presentation transcript:

1 MISY 322 CHAPTER 1 Introduction to Internet

2 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.2 Outline WWW and Internet WWW and Internet Web Server and Web Clients Web Server and Web Clients How does the WWW work? How does the WWW work? Who defines the Web standards? Who defines the Web standards? Web Programming Languages Web Programming Languages –Markup Languages HTML, WML, XML, XHTML HTML, WML, XML, XHTML –Client-side & Server-side Scripting JavaScript, VBScript, Java Servlets, ASP, JSP JavaScript, VBScript, Java Servlets, ASP, JSP

3 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.3 The World Wide Web Affectionately called “ The Web ” Affectionately called “ The Web ” It is a collection of information stored on the networked computers over the world. It is a collection of information stored on the networked computers over the world. The WWW was proposed in 1991 by Tim Berners-Lee at CERN. The WWW was proposed in 1991 by Tim Berners-Lee at CERN.

4 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.4 Web or Internet? They are not the same things. They are not the same things. The Internet is a collection of computers or networking devices connected together. The Internet is a collection of computers or networking devices connected together. –They have communication between each other. –Decentralized design that there is no centralized body controls how the Internet functions. The Web is a collection of documents that are interconnected by hyper-links. The Web is a collection of documents that are interconnected by hyper-links. –These documents are accessed by web browsers and provided by web servers.

5 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.5 Internet Terminology Client Client –Any computer on the network that requests services from another computer on the network. Server Server –Any computer that receives requests from client computers, processes and sends the output. Web Page Web Page –Any page that is hosted on the Internet. Web Development Web Development –The process of creating, modifying web pages.

6 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.6 Web Browser (Web Client) It is a program that retrieves information from the Web. It is a program that retrieves information from the Web. –Microsoft Internet Explorer Most commonly used browsers Most commonly used browsers –Netscape, Mosaic Many different computing platforms Many different computing platforms –Opera The fastest browser on Earth The fastest browser on Earth –Lynx Text based web client Text based web client

7 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.7 Web Server It is a program that waits for requests from the web browser. It is a program that waits for requests from the web browser. It provides four major functions It provides four major functions –Serving web pages –Running gateway programs (CGI) and returning output –Controlling access to the server –Monitoring and logging all access E.g. Apache, IIS, Netscape Web server, … E.g. Apache, IIS, Netscape Web server, …

8 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.8 Web connection

9 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.9 How does the Web work? The web information is stored in the Web pages. The web information is stored in the Web pages. –In HTML format. The web pages are stored in the computers called Web servers. The web pages are stored in the computers called Web servers. –In the Web server file system. The computer reading the pages is called web clients with specific web browser. The computer reading the pages is called web clients with specific web browser. –Most commonly Internet Explorer or Netscape. The web server waits for the request from the web clients over the Internet. The web server waits for the request from the web clients over the Internet. –Internet Information Server (IIS) or Apache.

10 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.10 The HTTP Request/Response Model Client Server Request Response HTML Codes … Program / Scripts

11 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.11 HTTP HTTP (Hypertext Transfer Protocol) HTTP (Hypertext Transfer Protocol) –protocol used to access data on the WWW. –uses one TCP connection on well-known port 80. –two types of http messages: Request, Response –transfer data in the form of plain text, hypertext, audio, video, and so on.

12 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.12 Who defines the Web standards? The Web standards are not defined or setup by the browser companies or Microsoft, but the World Wide Web Consortium (W3C). The Web standards are not defined or setup by the browser companies or Microsoft, but the World Wide Web Consortium (W3C). The specifications form the Web standards. The specifications form the Web standards. –HTML, CSS, XML, XHTML, …

13 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.13 Web Programming Languages The Web is no longer just presenting information on a computer screen. The Web is no longer just presenting information on a computer screen. –Many commercial sites include some methods of getting information from a browser to web servers. How do you program your web site such that it can interact with people? How do you program your web site such that it can interact with people? –With XML, data from spreadsheets, reports or other applications can be easily displayed on the Web. Can we learn XML without the understanding of HTML and other Web language? Can we learn XML without the understanding of HTML and other Web language?

14 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.14 The History of Markup In the early 1970s In the early 1970s –GML (the Generalized Markup Language) –“ :h1.The Content is placed here ” Since the 1980s Since the 1980s –SGML (the Standard GML) –HTML Currently Currently –XML Not intended to replace HTML! Not intended to replace HTML! XHTML does by providing better data description, … XHTML does by providing better data description, …

15 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.15 HTML HyperText Markup Language HyperText Markup Language It is not a programming language. It is not a programming language. –Cannot be used to describe computations. –Use to describe the general form and layout of documents to be displayed by the browser. Compose of “ Content ” and “ Controls ” Compose of “ Content ” and “ Controls ”

16 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.16 WML Wireless Markup Language Wireless Markup Language –Formerly called HDML (Handheld Devices Markup Languages) –Allows the text portions of web pages to be displayed on cell phones or PDAs via wireless media. –It is part of the Wireless Application Protocol (WAP).

17 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.17 XML eXtensible Markup Language (XML) eXtensible Markup Language (XML) It provides a standard way to represent information so as to allow information to be stored and interchanged among any Internet- connected devices. It provides a standard way to represent information so as to allow information to be stored and interchanged among any Internet- connected devices. –It is not a markup language. –It is a meta-markup language that specifies rules for creating markup languages. –Browsers use XML parsers to isolate and extract the information from XML documents.

18 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.18 XHTML The eXtensible HyperText Markup Language The eXtensible HyperText Markup Language –A Reformulation of HTML 4 in XML 1.0 –Consists all HTML 4.0.1 predefined components combined with XML standards A way of making XML documents that look and act like HTML documents. A way of making XML documents that look and act like HTML documents. Using XHTML helps you strengthen the structure and syntax of your markup. Using XHTML helps you strengthen the structure and syntax of your markup.

19 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.19 Cascading Style Sheets (CSS) Provides a powerful and flexible way to control the details of web documents. Provides a powerful and flexible way to control the details of web documents. HTML is more concerned about the content, CSS is used to impose a particular style on the document. HTML is more concerned about the content, CSS is used to impose a particular style on the document. Named cascading style sheets because they can be defined at three different levels to specify the style of a document. Named cascading style sheets because they can be defined at three different levels to specify the style of a document. –Inline, document level, external.

20 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.20 Using Stylesheets to add presentation HTML Page CSS stylesheet Web browser Displayed page

21 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.21 Client-Side and Server-side Programming Client-side code Client-side code –ECMAScript JavaScript, JScript – Microsoft JavaScript, JScript – Microsoft –VBScript – Microsoft –Embedded in elements and execute in the browser, provides immediate feedback to the user. –Reduces the load on a server, reduces network traffic. Server-side code Server-side code –Execute on the server –CGI/Perl, ASP, PHP, ColdFusion, JSP –The code remains hidden from users, and browser independent. Can be combined with good results. Can be combined with good results.

22 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.22 Client-side & Server-side Technologies Client-SideServer-Side HTML, XML Cascading Style Sheets (CSS) Scripting languages - JavaScript, VBScript Java Applets ActiveX controls Plug-ins and Helpers application CGI/PerlPHPColdFusion Scripting Languages - Server-side JavaScript - ASP, JSP, Java Servlets ISAPI/NSAPI programs

23 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.23 JavaScript There is no relationship between Java and JavaScript – misleading! There is no relationship between Java and JavaScript – misleading! It provides a computational capability in web documents. It provides a computational capability in web documents. It is used in creating, accessing, modifying a document. It is used in creating, accessing, modifying a document.

24 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.24 What can JavaScript do? Control document appearance and content Control document appearance and content Control the browser Control the browser Interact with the user Interact with the user Read and Write Client State with Cookies Read and Write Client State with Cookies –my.yahoo.com Interact with Applets Interact with Applets What it cannot do? What it cannot do? –Read/write files

25 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.25 VBScript VBScript is the short form for Visual Basic Scripting from Microsoft. VBScript is the short form for Visual Basic Scripting from Microsoft. Try to edit a file “ hello.vbs ” Try to edit a file “ hello.vbs ” –Msgbox “ Hello world ”

26 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.26 ASP Active Server Page was developed by Microsoft and it is a popular technology for developing dynamic web sites. Active Server Page was developed by Microsoft and it is a popular technology for developing dynamic web sites. –It allows the author includes scripting code (VBScript or JScript) in regular web pages. –In complex code, COM (ActiveX) components are used. –Must run on an active server pages server IIS, Personal Web Server, … IIS, Personal Web Server, … –The latest version is ASP.NET

27 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.27 PHP It is not an acronym for anything. It is not an acronym for anything. –An open source web scripting language. –A PHP page is always interpreted by the server when it is requested. –The latest version is PHP 4. –Have to learn an entirely new language. –Reference: http://www.php.net/ http://www.php.net/

28 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.28 ColdFusion It is a Web application development environment produced by the Macromedia Corporation. It is a Web application development environment produced by the Macromedia Corporation. Client Web Server Request *.cfm Reply Web Page CF Page Cold Fusion Application Server Web Page

29 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.29 What is JSP? It is JavaServer Pages that built on top of Java servlets in late 1999. It is JavaServer Pages that built on top of Java servlets in late 1999. In the early days of the Web, the only tool for developing dynamic web content was CGI. For every request, the web server creates a process (not efficient). In the early days of the Web, the only tool for developing dynamic web content was CGI. For every request, the web server creates a process (not efficient). The Java Servlet API has introduced in 1997, however, HTML code has to be embedded inside programs. (lot of “ out.println() ” ) The Java Servlet API has introduced in 1997, however, HTML code has to be embedded inside programs. (lot of “ out.println() ” ) JSP provides a development model for the web authors to experience all the server-side technologies. JSP provides a development model for the web authors to experience all the server-side technologies.

30 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.30 Web Services What are Web services? What are Web services? –They are a distributed computing architecture. Who is using Web services now? Who is using Web services now? –Industry technologies Which approach should we use -.NET or J2EE? Which approach should we use -.NET or J2EE? Requestor, Registry, Provider Requestor, Registry, Provider

31 Internet is a network of computer networks Internet is a network of computer networks Data is transmitted by packet switching using the standard Internet Protocol (IP) Data is transmitted by packet switching using the standard Internet Protocol (IP) Packet – a unit of information carriage Packet – a unit of information carriage Packet switching – process of moving packets from one node (computer device) to another Packet switching – process of moving packets from one node (computer device) to another CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.31

32 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.32 At the sender, data is broken into packets and sent to the nearest node (router) At the sender, data is broken into packets and sent to the nearest node (router) At each router, it sends the packet to another router that is closer to the final destination At each router, it sends the packet to another router that is closer to the final destination At the receiver, packets are reassembled to get the original data At the receiver, packets are reassembled to get the original data A simple analogy: mailing system A simple analogy: mailing system

33 Basic task of IP – moving packets as quickly as possible from one router to another Basic task of IP – moving packets as quickly as possible from one router to another Yet, it doesn’t check whether packets are delivered successfully, thus need TCP Yet, it doesn’t check whether packets are delivered successfully, thus need TCP TCP (Transmission Control Protocol) – disassemble/reassemble packets, error checking, ACK packets TCP (Transmission Control Protocol) – disassemble/reassemble packets, error checking, ACK packets CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.33

34 We need some sort of address in order to identify different nodes, as if every house has a mailing address in order to receive mail from others We need some sort of address in order to identify different nodes, as if every house has a mailing address in order to receive mail from others The one used by Internet Protocol is called IP address The one used by Internet Protocol is called IP address Every host on the Internet has a unique IP address, made up of four numbers. E.g.. 192.56.215.131, each number is between 0 and 255 Every host on the Internet has a unique IP address, made up of four numbers. E.g.. 192.56.215.131, each number is between 0 and 255 CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.34

35 Domain Name System – a mapping between the human-readable name (domain name) of a host and its IP address Domain Name System – a mapping between the human-readable name (domain name) of a host and its IP address A domain name consists of two or more parts, e.g. cs.pitt.edu A domain name consists of two or more parts, e.g. cs.pitt.edu The rightmost label conveys the top- level domain, e.g. edu The rightmost label conveys the top- level domain, e.g. edu CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.35


Download ppt "MISY 322 CHAPTER 1 Introduction to Internet. CSC1720 – Introduction to Internet All copyrights reserved by C.C. Cheung 2003.2 Outline WWW and Internet."

Similar presentations


Ads by Google