Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web page – Html –base file – Objects (first DNS) First get html file Then browser reads the html and gets the objects.

Similar presentations


Presentation on theme: "Web page – Html –base file – Objects (first DNS) First get html file Then browser reads the html and gets the objects."— Presentation transcript:

1 Web page – Html –base file – Objects (first DNS) First get html file Then browser reads the html and gets the objects

2 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Tcp: ack Have html, detect URLs to 2 jpeg Persistent Non- persistent -Serial -Parallel

3 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Tcp: ack Get html with URLs to 2 jpeg Persistent Non- persistent -Serial -Parallel

4 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Tcp: ack Got html with URLs to 2 jpeg www.google.com/pic1.jpeg www.google.com/pic2.jpeg Persistent – keep the TCP connection open after getting an object Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Cwnd=1*MSS Cwnd=2*MSS Cwnd=4*MSS Slow start Cwnd ++ for each ack Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg

5 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Tcp: ack Got html with URLs to 2 jpeg www.google.com/pic1.jpeg www.google.com/pic2.jpeg Persistent – keep the TCP connection open after getting an object Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Cwnd=1*MSS Cwnd=2*MSS Cwnd=4*MSS Slow start Cwnd ++ for each ack Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg Got www.google.com/pic1.jpegwww.google.com/pic1.jpeg Tcp: data Got www.google.com/pic2.jpegwww.google.com/pic2.jpeg 4RTT to get web page

6 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Got html with URLs to 2 jpeg www.google.com/pic1.jpeg www.google.com/pic2.jpeg Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg Got www.google.com/pic1.jpegwww.google.com/pic1.jpeg Tcp: data Got www.google.com/pic2.jpegwww.google.com/pic2.jpeg 6RTT to get web page Tcp: syn Tcp: syn+ack Tcp: ack Tcp: syn Tcp: syn+ack Tcp: ack Assume DNS cache have all ip addresses

7 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Got html with URLs to 2 jpeg www.google.com/pic1.jpeg www.google.com/pic2.jpeg Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg Got www.google.com/pic1.jpegwww.google.com/pic1.jpeg Tcp: data Got www.google.com/pic2.jpegwww.google.com/pic2.jpeg 4RTT to get web page Tcp: syn Tcp: syn+ack Tcp: ack Tcp: syn Tcp: syn+ack Tcp: ack Assume DNS cache have all ip addresses

8 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Got html with URLs to 2 jpeg www.google.com/pic1.jpeg www.facebook.com/pic2.jpeg Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg Got www.google.com/pic1.jpegwww.google.com/pic1.jpeg Tcp: data Got www.facebook.com/pic2.jpegwww.facebook.com/pic2.jpeg 2RTTg + max(2RTTg, 2RTTf) Tcp: syn Tcp: syn+ack Tcp: ack Tcp: syn Tcp: syn+ack Tcp: ack RTTg RTTf How long until something appears on the browser? = 2RTTg Assume DNS cache have all ip addresses

9 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Got html with URLs to 2 jpeg www.google.com/pic1.jpeg www.facebook.com/pic2.jpeg Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg Got www.google.com/pic1.jpegwww.google.com/pic1.jpeg Tcp: data Got www.facebook.com/pic2.jpegwww.facebook.com/pic2.jpeg 2RTTg + max(2RTTg, 2RTTf) Tcp: syn Tcp: syn+ack Tcp: ack Tcp: syn Tcp: syn+ack Tcp: ack RTTg RTTf How long until something appears on the browser? = 2RTTg DNS is empty DNS = 3RTT (root+TLD+google) DNS = 2RTT (TLD+facebook)

10 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Got html with URLs to 2 jpeg pic.google.com/pic1.jpeg www.facebook.com/pic2.jpeg Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg Got www.google.com/pic1.jpegwww.google.com/pic1.jpeg Tcp: data Got www.facebook.com/pic2.jpegwww.facebook.com/pic2.jpeg 3RTT + 2RTT + 2RTT + 2RTT Tcp: syn Tcp: syn+ack Tcp: ack Tcp: syn Tcp: syn+ack Tcp: ack RTT RTTf DNS cache is empty DNS = 3RTT (root+TLD+google) DNS = 2RTT (TLD+facebook) DNS =1RTT (google) 1 st DNS Base html DNS for www.facebook.com Get www.facebook.com/pic2.jpeg

11 Tcp: syn Tcp: syn+ack Tcp: ack Google server laptop Tcp: http: request GET / Tcp: ack Tcp: http: reply Got html with URLs to 2 jpeg pic.google.com/pic1.jpeg www.facebook.com/pic2.jpeg Non- persistent -Serial -Parallel Assume jpeg are on the same server Tcp: ack Tcp: data Tcp: http: request GET /pic1.jpeg Tcp: http: request GET /pic2.jpeg Got www.google.com/pic1.jpegwww.google.com/pic1.jpeg Tcp: data Got www.facebook.com/pic2.jpegwww.facebook.com/pic2.jpeg RTTroot + RTTtld + RTTg + 2RTTg + max( RTTtld + RTTf + 2RTTf, RTTg + 2RTTg) Tcp: syn Tcp: syn+ack Tcp: ack Tcp: syn Tcp: syn+ack Tcp: ack RTT RTTf DNS cache is empty DNS = 3RTT (root+TLD+google) DNS = 2RTT (TLD+facebook) DNS =1RTT (google) 1 st DNS Base html DNS for www.facebook.com Get www.facebook.com/pic2.jpeg


Download ppt "Web page – Html –base file – Objects (first DNS) First get html file Then browser reads the html and gets the objects."

Similar presentations


Ads by Google