Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "World Wide Web Uniform Resource Locator hostname [:port]/path"— Presentation transcript:

1 World Wide Web Uniform Resource Locator http:// hostname [:port]/path
Forouzan Chapter 22 Uniform Resource Locator 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

2 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.

3 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/1.1 Now may use Relative URL GET ~owen/academic/4110

4 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.

5 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:

6 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 No. Time Source Destination Protocol Info OSPF Hello Packet Broadcast ARP Who has ? Tell Broadcast ARP Who has ? Tell HSRP Hello (state Active) HSRP Hello (state Standby) DNS Standard query A DNS Standard query response CNAME A TCP > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 TCP http > 1048 [SYN, ACK] Seq=0 Ack=1 Win=8190 Len=0 MSS=1260 TCP > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 HTTP GET / HTTP/1.1 Broadcast ARP Who has ? Tell HTTP HTTP/ OK (text/html) HTTP Continuation or non-HTTP traffic TCP > http [ACK] Seq=416 Ack=2521 Win=65535 Len=0 HTTP Continuation or non-HTTP traffic HTTP Continuation or non-HTTP traffic TCP > http [ACK] Seq=416 Ack=5041 Win=65535 Len=0 HTTP Continuation or non-HTTP traffic TCP > http [ACK] Seq=416 Ack=6301 Win=65535 Len=0 HTTP Continuation or non-HTTP traffic HSRP Hello (state Active) HTTP Continuation or non-HTTP traffic TCP > http [ACK] Seq=416 Ack=8821 Win=65535 Len=0 HTTP Continuation or non-HTTP traffic HTTP Continuation or non-HTTP traffic TCP > http [ACK] Seq=416 Ack=10534 Win=65535 Len=0 HSRP Hello (state Standby) HSRP Unknown (state Initial) OSPF Hello Packet HSRP Hello (state Active) Broadcast ARP Who has ? Tell HSRP Hello (state Standby) PIMv2 Assert DNS Standard query A c.msn.com DNS Standard query response A A TCP > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 TCP http > 1049 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1460 TCP > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 HTTP GET /c.gif?di=340&pi=7317&ps=83527&tp= HTTP/1.1

7 Same as previous page except the ethereal HTTP decoding was turned off to show the underlying TCP segments No. Time Source Destination Protocol Info OSPF Hello Packet Broadcast ARP Who has ? Tell Broadcast ARP Who has ? Tell HSRP Hello (state Active) HSRP Hello (state Standby) DNS Standard query A DNS Standard query response CNAME A TCP > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 TCP http > 1048 [SYN, ACK] Seq=0 Ack=1 Win=8190 Len=0 MSS=1260 TCP > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 TCP > http [PSH, ACK] Seq=1 Ack=1 Win=65535 Len=415 Broadcast ARP Who has ? Tell TCP http > 1048 [ACK] Seq=1 Ack=416 Win=8190 Len=1260 TCP http > 1048 [PSH, ACK] Seq=1261 Ack=416 Win=8190 Len=1260 TCP > http [ACK] Seq=416 Ack=2521 Win=65535 Len=0 TCP http > 1048 [ACK] Seq=2521 Ack=416 Win=8190 Len=1260 TCP http > 1048 [ACK] Seq=3781 Ack=416 Win=8190 Len=1260 TCP > http [ACK] Seq=416 Ack=5041 Win=65535 Len=0 TCP http > 1048 [ACK] Seq=5041 Ack=416 Win=8190 Len=1260 TCP > http [ACK] Seq=416 Ack=6301 Win=65535 Len=0 TCP http > 1048 [PSH, ACK] Seq=6301 Ack=416 Win=8190 Len=1260 HSRP Hello (state Active) TCP http > 1048 [ACK] Seq=7561 Ack=416 Win=8190 Len=1260 TCP > http [ACK] Seq=416 Ack=8821 Win=65535 Len=0 TCP http > 1048 [ACK] Seq=8821 Ack=416 Win=8190 Len=1260 TCP http > 1048 [PSH, ACK] Seq=10081 Ack=416 Win=8190 Len=453 TCP > http [ACK] Seq=416 Ack=10534 Win=65535 Len=0 HSRP Hello (state Standby) HSRP Unknown (state Initial) OSPF Hello Packet HSRP Hello (state Active) Broadcast ARP Who has ? Tell HSRP Hello (state Standby) PIMv2 Assert DNS Standard query A c.msn.com DNS Standard query response A A TCP > http [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1260 TCP http > 1049 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1460 TCP > http [ACK] Seq=1 Ack=1 Win=65535 Len=0 TCP > http [PSH, ACK] Seq=1 Ack=1 Win=65535 Len=487

8 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


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

Similar presentations


Ads by Google