Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
E-Commerce: Fundamentals and Applications Chapter 2 : Internet and World Wide Web _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 1 Wiley and the book authors, 2001 Outline An Overview of the internet Brief history of the web Web system architecture Uniform resource locator Overview of the hypertext transfer protocol Hypertext Transfer Protocol(HTTP) Generation of dynamic web pages Cookies HTTP/1.1 _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 2 Wiley and the book authors, 2001 Basic Network Architecture R R Internet R modem ADSL ISP Dedicated Connection Private network R : Router _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 3 Wiley and the book authors, 2001 Layered Model for the Internet Application Layer Transport Layer Network Layer Link Layer _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 4 Wiley and the book authors, 2001 Processing at Each Layer Application Header Application Data Application Layer TCP Header Application Header Application Data TCP Layer IP Header TCP Header Application Header Application Data IP Layer Link Header IP Header TCP Header Application Header Application Data Link Layer _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 5 Wiley and the book authors, 2001 Transfer of Packets Host A Application data Host B Application Application TCP TCP IP IP IP IP Link Link Link Link Application data _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 6 Wiley and the book authors, 2001 Different Internet Access Methods Access method Maximum data rate Telephone modem 24-56 Kbps Ethernet (Local area network) 10/100/1000 Mbps Integrated Services Digital Network Basic Rate Interface (ISDN BRI) 56 – 128 Kbps Cable modem 30 Mbps (theoretical) 1.5 Mbps shared (practical) Asymmetric Digital Subscriber Line (ADSL) 1.5 Mbps - 9 Mbps (from network to users) 128 Kbps – 9 Mbps (from users to network) Wireless local area network (IEEE 802.11) 1-56 Mbps _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 7 Wiley and the book authors, 2001 Common Application Layer Protocols Protocol Purpose Simple mail transfer protocol Support email services File transfer protocol Support file transfer services TELNET Allow users to log in remote host Hypertext transfer protocol Support communications between a Web client and a Web server _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 8 Wiley and the book authors, 2001 Part of the DNS tree Root com edu gov mil net org hk jp ….. vbs www _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 9 Wiley and the book authors, 2001 URL Used to identify web pages Example: protocol://domain_name:port/directory/resource http://www.vbs.com/welcome/main.html General format: protocol://username:password@domain_name:port/directory/resource _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 10 Wiley and the book authors, 2001 Request Methods in HTTP/1.0 GET HEAD POST _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 11 Wiley and the book authors, 2001 Commonly Used Status Codes in HTTP/1.0 Status code Status message 200 OK 201 Created 204 No content 301 Moved Permanently 302 Moved Temporarily 304 Not Modified 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 12 Wiley and the book authors, 2001 Commonly Used Response Header in HTTP/1.0 Location Server WWW-Authenticate _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 13 Wiley and the book authors, 2001 Generating dynamic web pages Attach names and values at the end of the URL using a query string: ?name1=value1& name2=value2&….& nameN=valueN Example: http://www.vbs.com/servlet/booksearch?title=ecommerce&year=2000 GET /servlet/booksearch?title=ecommerce&year=2000 HTTP/1.0 _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 14 Wiley and the book authors, 2001 Cookies Invented by Netscape. Save state data at client side. Visit http://www.netscape.com/newsref/std/cookie_spec.html Standardized in RFC2109 Server Set-Cookie: Name=Value Client Cookie: Name=Value _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 15 Wiley and the book authors, 2001 HTTP/1.1 Persistent connection Pipelining Efficient use of IP addresses Best support for: caching authentication language encoding More request methods _______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications 16 Wiley and the book authors, 2001