Friday, December 3, 2010

Q) When you open a webpage on your browser, list down the steps that occur.

  1. The web browser decodes the URL to retrieve the transfer protocol (http,ftp etc..) and servername.domain and the document path. The transfer protocol for a webpage will be http.
  2. Then it sends a DNS Query to the DNS server to get the IP address from the servername.domain name.
  3. After getting the IP address, the Web browser tries to establish a TCP connection with the port 80.
  4. A TCP SYN Segment is constructed by the TCP module and passed on to the IP module.
  5. It looks at the destination address. And looks into its routing database. It finds out the egress interface on which the packet will have to be forwarded. It encapsulates the IP header.
  6. In case PC is connected to a GiGE Lan, the packet will have to be forwarded to the default gateway. It sends a arp request to find out the MAC address of the Gateway.
  7. Then the packet is sent out by encapsulating the ethernet header.
  8. The Gateway then looks at the destination address and sends the packet out on its egress interface.
  9. Finally the packet reaches the Web Server. And it replies with a SYN-ACK.
  10. After a TCP connection is established, the PC sends a HTTP request and get the document in html format after which it displays it on its webpage.

No comments:

Post a Comment