
HTTP and TCP Protocols in Networking
Explore the fundamentals of HTTP and TCP protocols through detailed explanations and illustrative examples. Learn about their roles in networking and how they facilitate communication between web clients and servers. Discover the benefits of concurrent TCP connections, persistent HTTP approaches, and HTTP/1.1 pipelining features. Dive into the world of web and HTTP technologies to enhance your understanding of internet applications and traffic patterns.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
HTTP and TCP Carey Williamson Department of Computer Science University of Calgary
Network View: HTTP and TCP TCP is a connection-oriented protocol SYN SYN/ACK Web Client Web Server ACK GET URL YOUR DATA HERE FIN ACK FIN/ACK 2
Example Web Page Harry Potter Movies As you all know, the new HP book will be out in June and then there will be a new movie shortly after that hpface.jpg page.html castle.gif Harry Potter and the Bathtub Ring 3
S C TCP SYN G page.html The classic approach in HTTP/1.0 is to use one HTTP request per TCP connection, serially. TCP FIN TCP SYN G hpface.jpg TCP FIN TCP SYN G castle.gif TCP FIN 4
Concurrent (parallel) TCP connections can be used to make things faster. S C S C TCP SYN G C S page.html S S TCP FIN G G hpface.jpg castle.gif F F 5
S C TCP SYN G page.html The persistent HTTP approach can re-use the same TCP connection for Multiple HTTP transfers, one after another, serially. Amortizes TCP overhead, but maintains TCP state longer at server. G hpface.jpg G castle.gif Timeout TCP FIN 6
S C TCP SYN G page.html The pipelining feature in HTTP/1.1 allows requests to be issued asynchronously on a persistent connection. Requests must be processed in proper order. Can do clever packaging. GG hpface.jpg castle.gif Timeout TCP FIN 7
Summary of Web and HTTP The major application on the Internet Majority of traffic is HTTP (or HTTP-related) Client/server model: Clients make requests, servers respond to them Done mostly in ASCII text (helps debugging!) Various headers and commands Too many to go into detail here Many web books/tutorials exist (e.g., Krishnamurthy & Rexford 2001) 8