|
A Web Browser Is Used to Display Web Server Content[br][br][img src="/storage/emulated/0/Download/GettyImages-513087873-5b82261746e0fb00503a7d8d.webp"][br][br]Web browsers like Internet Explorer, Firefox, Chrome, and Safari rank among the most popular network applications in the world. They're used for basic information browsing but also for various other needs including online shopping and casual gaming.[br][br][br]Web servers are what supply the content for web browsers; what the browser requests, the server delivers through Internet network connections. [br][br]Client-Server Network Design and the Web[br]Web browsers and web servers function together as a client-server system. In computer networking, client-server is a standard method for designing applications where data is kept in central locations (server computers) and efficiently shared with any number of other computers (the clients) on request. All web browsers function as clients that request information from websites (servers).[br][br]Numerous web browser clients can request data from the same website. Requests can happen at all different times or simultaneously. Client-server systems conceptually call for all requests to the same site to be handled by one server. In practice, however, because the volume of requests to web servers can sometimes grow very large, web servers are often built as a distributed pool of multiple server computers.[br][br]For very large websites popular in different countries around the world, this web server pool is geographically distributed to help improve the response time to browsers. If the server is closer to the requesting device, it would follow that the time it takes to deliver the content is faster than if the server were further away.[br][br]Network Protocols for Web Browsers and Servers[br]Web browsers and servers communicate via TCP/IP. Hypertext Transfer Protocol (HTTP) is the standard application protocol on top of TCP/IP supporting web browser requests and server responses.[br][br][br]Web browsers also rely on DNS to work with URLs. These protocol standards enable different brands of web browsers to communicate with different brands of web servers without requiring special logic for each combination.[br][br]Like most internet traffic, web browser and server connections normally run through a series of intermediate network routers.[br][br]A basic web browsing session works like this:[br][br]The user specifies a URL in their browser (either from a bookmark or by typing it in)[br]The browser initiates a TCP connection to the web server or server pool (using port 80 by default) via its IP address as published in DNS. As part of this process, the browser also makes DNS lookup requests to convert the URL to an IP address[br]After the server completes acknowledgment of its side of the TCP connection, the browser sends HTTP requests to the server to retrieve the content[br]After the server replies with content for the page, the browser retrieves it from the HTTP packets and displays it accordingly. Content can include embedded URLs for advertising banners or other third-party content, that in turn triggers the browser to issue new TCP connection requests to those locations. The browser may also save temporary information about its connections to local files on the client computer called cookies[br]Any errors encountered during the request for the content might be shown as HTTP status lines |
|