World Wide Web Uniform Resource Locator hostname [:port]/path

Slides:



Advertisements
Similar presentations
Hypertext Transfer PROTOCOL ----HTTP Sen Wang CSE5232 Network Programming.
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
Everything. MACIP End-host IP: MAC: 11:11:11:11:11 gateway IP: MAC: 22:22:22:22:22 Google server IP: MACIP MACInterfaceMACInterface.
Web Architecture Dr. Frank McCown Intro to Web Science Harding University This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
TCP/IP Protocols Dr. Sharon Hall Perkins Applications World Wide Web(HTTP) Presented by.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
Internet Ethernet Token Ring Video High Speed Router Host A: Client browser: REQUEST:http//mango.ee.nogradesu.edu/c461.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Introduction to Internet. Chapter 1 Objectives Origins of the Internet Packets and Routers TCP/IP DNS HTTP URL Client-Server.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Introductory material. This module illustrates the interactions of the protocols of the TCP/IP protocol suite with the help of an example. The example.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
End-host IP: MAC: 11:11:11:11:11 gateway IP: MAC: 22:22:22:22:22 Google server IP: interne t interface DNS server IP:
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web fundamentals: Clients, Servers, and Communication
or call for office visit, or call Kathy Cheek,
Virtualization of networks
Hypertext Transfer Protocol
Block 5: An application layer protocol: HTTP
WWW and HTTP King Fahd University of Petroleum & Minerals
HTTP – An overview.
Hypertext Transfer Protocol
A Typical Connection Scenario
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Hypertext Transport Protocol
Protocols and networks in the TCP/IP model initially.
Web Design Introduction to the Internet Week One
Network Architecture Introductory material
TCP/IP Networking An Example
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
The Internet and HTTP and DNS Examples
Review of Important Networking Concepts
Computer Communication & Networks
Chapter 6 The Data Link layer
TCP/IP Networking An Example
HTTP Hypertext Transfer Protocol
Multimedia and Networks
Web Design & Development
Review of Important Networking Concepts
TCP/IP Networking An Example
Communication Networks NETW 501
Hyper Text Transfer Protocol
HyperText Transfer Protocol
Chapters 1~5 Overview Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley Prof. Hong Liu for ECE369 Adapted from.
EE 122: HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol (HTTP)
William Stallings Data and Computer Communications
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Kevin Harville Source: Webmaster in a Nutshell, O'Rielly Books
The HTTP Protocol COSC 2206 Internet Tools The HTTP Protocol
Synthesis A day in the life of a web request
HTTP Hypertext Transfer Protocol
Review of Important Networking Concepts
CSCI-351 Data communication and Networks
Presentation transcript:

World Wide Web Uniform Resource Locator http:// hostname [:port]/path Forouzan Chapter 22 Uniform Resource Locator http:// hostname [:port]/path Hostname = IP address :port = optional protocol port number (default is 80) Path = string specifying the document you want Absolute URL specifies complete info Relative URL once connected to a server browser can use this form

Hypertext Transfer Protocol (HTTP) HTTP is an application that assumes a connection oriented transport protocol => TCP After connection established browser sends an HTTP request to a server and the sever responds. When a user submits a form, this is a browser to server transfer. HTTP is bidirectional. An example server is APACHE. Each HTTP request is self contained, server does not keep any “state” Browsers and servers may negotiate character sets and capabilities Browsers cache a copy of a web page. If user requests page again, HTTP allows query to server to determine if contents have changed.

HTTP GET METHOD Browser Request with a URL Browser uses domain name service to obtain IP address IP address and port 80 used to form TCP connection to server Now use HTTP to communicate, for example GET http://users.ece.gatech.edu/~owen/ HTTP/1.1 Now may use Relative URL GET ~owen/academic/4110

Persistent Connections In the good old days a new TCP Connection was used for each transfer, after one transfer connection was closed. Client read data until end of file then also closed. June 1999 HTTP version 1.1 introduced persistent connection. Can do multiple requests and responses over same connection. Persistent connection means can send several requests one right after another before any response. Ask for multiple images on a web page. With persistent connection how do you identify the beginning and end of each item? Send Lengths. If a common Gateway Interface (CGI) mechanism generates a web page dynamically, server may not know size in advance. In this case server tells browser it will close connection after sending that item.

HTTP HEADERS All HTTP transmissions contain a header, a blank line, and the item being sent. Example: Content-length: 25 Content-language: en Content-encoding: ascii <HTML> AN EXAMPLE <HTML/> If persistent connection need length or need in header: Connection: close Can negotiate or state what will accept: Accept-encoding: Accept-language: If-modified-since:

In experiment 5, a web browser was opened to the msn In experiment 5, a web browser was opened to the msn.com web page from 130.207.231.13 No. Time Source Destination Protocol Info 1 0.000000 130.207.231.3 224.0.0.5 OSPF Hello Packet 2 1.237429 130.207.231.2 Broadcast ARP Who has 130.207.231.135? Tell 130.207.231.2 3 1.289206 130.207.231.2 Broadcast ARP Who has 130.207.231.29? Tell 130.207.231.2 4 1.872016 130.207.231.2 224.0.0.2 HSRP Hello (state Active) 5 2.363230 130.207.231.3 224.0.0.2 HSRP Hello (state Standby) 6 4.489165 130.207.231.13 130.207.231.94 DNS Standard query A www.msn.com 7 4.496284 130.207.231.94 130.207.231.13 DNS Standard query response CNAME www.msn.com.nsatc.net A 207.68.183.32 8 4.500321 130.207.231.13 207.68.183.32 TCP 1048 > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 9 4.577502 207.68.183.32 130.207.231.13 TCP http > 1048 [SYN, ACK] Seq=0 Ack=1 Win=8190 Len=0 MSS=1260 10 4.577607 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 11 4.578024 130.207.231.13 207.68.183.32 HTTP GET / HTTP/1.1 12 4.658821 130.207.231.2 Broadcast ARP Who has 130.207.231.29? Tell 130.207.231.2 13 4.667446 207.68.183.32 130.207.231.13 HTTP HTTP/1.1 200 OK (text/html) 14 4.667585 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 15 4.667669 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=2521 Win=65535 Len=0 16 4.744921 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 17 4.745025 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 18 4.745089 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=5041 Win=65535 Len=0 19 4.745157 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 20 4.745208 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=6301 Win=65535 Len=0 21 4.745259 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 22 4.815911 130.207.231.2 224.0.0.2 HSRP Hello (state Active) 23 4.822330 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 24 4.822433 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=8821 Win=65535 Len=0 25 4.822506 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 26 4.822532 207.68.183.32 130.207.231.13 HTTP Continuation or non-HTTP traffic 27 4.822568 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=10534 Win=65535 Len=0 28 5.355137 130.207.231.3 224.0.0.2 HSRP Hello (state Standby) 29 5.383050 130.207.231.3 224.0.0.2 HSRP Unknown (state Initial) 30 6.888133 130.207.231.2 224.0.0.5 OSPF Hello Packet 31 7.727718 130.207.231.2 224.0.0.2 HSRP Hello (state Active) 32 7.766767 130.207.231.2 Broadcast ARP Who has 130.207.231.135? Tell 130.207.231.2 33 8.207042 130.207.231.3 224.0.0.2 HSRP Hello (state Standby) 34 8.927825 130.207.231.3 224.0.0.13 PIMv2 Assert 35 9.477908 130.207.231.13 130.207.231.94 DNS Standard query A c.msn.com 36 9.479365 130.207.231.94 130.207.231.13 DNS Standard query response A 65.54.140.158 A 207.68.177.126 37 9.480199 130.207.231.13 65.54.140.158 TCP 1049 > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 38 9.557634 65.54.140.158 130.207.231.13 TCP http > 1049 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1460 39 9.557683 130.207.231.13 65.54.140.158 TCP 1049 > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 40 9.557977 130.207.231.13 65.54.140.158 HTTP GET /c.gif?di=340&pi=7317&ps=83527&tp=http://www.msn.com/&rf= HTTP/1.1

Same as previous page except the ethereal HTTP decoding was turned off to show the underlying TCP segments No. Time Source Destination Protocol Info 1 0.000000 130.207.231.3 224.0.0.5 OSPF Hello Packet 2 1.237429 130.207.231.2 Broadcast ARP Who has 130.207.231.135? Tell 130.207.231.2 3 1.289206 130.207.231.2 Broadcast ARP Who has 130.207.231.29? Tell 130.207.231.2 4 1.872016 130.207.231.2 224.0.0.2 HSRP Hello (state Active) 5 2.363230 130.207.231.3 224.0.0.2 HSRP Hello (state Standby) 6 4.489165 130.207.231.13 130.207.231.94 DNS Standard query A www.msn.com 7 4.496284 130.207.231.94 130.207.231.13 DNS Standard query response CNAME www.msn.com.nsatc.net A 207.68.183.32 8 4.500321 130.207.231.13 207.68.183.32 TCP 1048 > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 9 4.577502 207.68.183.32 130.207.231.13 TCP http > 1048 [SYN, ACK] Seq=0 Ack=1 Win=8190 Len=0 MSS=1260 10 4.577607 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 11 4.578024 130.207.231.13 207.68.183.32 TCP 1048 > http [PSH, ACK] Seq=1 Ack=1 Win=65535 Len=415 12 4.658821 130.207.231.2 Broadcast ARP Who has 130.207.231.29? Tell 130.207.231.2 13 4.667446 207.68.183.32 130.207.231.13 TCP http > 1048 [ACK] Seq=1 Ack=416 Win=8190 Len=1260 14 4.667585 207.68.183.32 130.207.231.13 TCP http > 1048 [PSH, ACK] Seq=1261 Ack=416 Win=8190 Len=1260 15 4.667669 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=2521 Win=65535 Len=0 16 4.744921 207.68.183.32 130.207.231.13 TCP http > 1048 [ACK] Seq=2521 Ack=416 Win=8190 Len=1260 17 4.745025 207.68.183.32 130.207.231.13 TCP http > 1048 [ACK] Seq=3781 Ack=416 Win=8190 Len=1260 18 4.745089 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=5041 Win=65535 Len=0 19 4.745157 207.68.183.32 130.207.231.13 TCP http > 1048 [ACK] Seq=5041 Ack=416 Win=8190 Len=1260 20 4.745208 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=6301 Win=65535 Len=0 21 4.745259 207.68.183.32 130.207.231.13 TCP http > 1048 [PSH, ACK] Seq=6301 Ack=416 Win=8190 Len=1260 22 4.815911 130.207.231.2 224.0.0.2 HSRP Hello (state Active) 23 4.822330 207.68.183.32 130.207.231.13 TCP http > 1048 [ACK] Seq=7561 Ack=416 Win=8190 Len=1260 24 4.822433 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=8821 Win=65535 Len=0 25 4.822506 207.68.183.32 130.207.231.13 TCP http > 1048 [ACK] Seq=8821 Ack=416 Win=8190 Len=1260 26 4.822532 207.68.183.32 130.207.231.13 TCP http > 1048 [PSH, ACK] Seq=10081 Ack=416 Win=8190 Len=453 27 4.822568 130.207.231.13 207.68.183.32 TCP 1048 > http [ACK] Seq=416 Ack=10534 Win=65535 Len=0 28 5.355137 130.207.231.3 224.0.0.2 HSRP Hello (state Standby) 29 5.383050 130.207.231.3 224.0.0.2 HSRP Unknown (state Initial) 30 6.888133 130.207.231.2 224.0.0.5 OSPF Hello Packet 31 7.727718 130.207.231.2 224.0.0.2 HSRP Hello (state Active) 32 7.766767 130.207.231.2 Broadcast ARP Who has 130.207.231.135? Tell 130.207.231.2 33 8.207042 130.207.231.3 224.0.0.2 HSRP Hello (state Standby) 34 8.927825 130.207.231.3 224.0.0.13 PIMv2 Assert 35 9.477908 130.207.231.13 130.207.231.94 DNS Standard query A c.msn.com 36 9.479365 130.207.231.94 130.207.231.13 DNS Standard query response A 65.54.140.158 A 207.68.177.126 37 9.480199 130.207.231.13 65.54.140.158 TCP 1049 > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 38 9.557634 65.54.140.158 130.207.231.13 TCP http > 1049 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1460 39 9.557683 130.207.231.13 65.54.140.158 TCP 1049 > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 40 9.557977 130.207.231.13 65.54.140.158 TCP 1049 > http [PSH, ACK] Seq=1 Ack=1 Win=65535 Len=487

HSRP = hot standby routing protocol HSRP = hot standby routing protocol. HSRP allows one router to automatically assume the function of the second router if the second router fails. PIMv2 = protocol independent multicast