So now let us discuss the problem statement in detail.
So whenever you type out the name of any website in your browser, you are trying to access that particular
website, which is actually hosted somewhere on the network.
So remember, whenever you type a name of any website in your browser, that particular website is actually
present on some server which could be present anywhere in the network, right?
So you can see in this diagram that that your local machine is represented by this laptop and your IP
address is 12 .1.1.6 and you are connected to an internet via your ISP that is internet service provider.
And let us suppose that you are typing a URL in your web browser and you are trying to access the website
w-w-w dot com.
So let us suppose that this website is present on some remote server whose IP address is 13 .1.1.2 and
this server could be located anywhere in the network.
So the moment you type out w-w-w-what my pictures.com in your web browser and hit the enter key, your
machine generates a packet.
The packet that is generated by your browser will look like this.
If you type out the following URL in your browser and hit the enter key.
Right.
So what will be the packet?
You will have some data link layer.
You will have source Mac and destination Mac address.
As usual, your source IP address will be the IP address of your machine and destination.
IP address will be the IP address of the server which actually hosts the website.
Right.
And then on the top of IP layer you will have application layer, which is actually Http protocol.
So this is the application which is running Http protocol.
This will be the IP layer and this will be data link layer.
So you can see that you are trying to access the website and on that particular website you are trying
to access this particular resource.
So your application layer protocol that is Http will have the following get request.
Get request means path to the resource which you are trying to access.
So in this case you are trying to access an image flower dot jpg flower dot jpg which is present in
index folder.
Right.
And the name of the website that is w-w-w-what.
My pictures.com is resolved to an IP address.
13 .1.1.2.
So here what I'm trying to explain is that what is the packet content that is generated by a local machine
when you try to access some website which is present on some remote host in the network?
So now here, one obvious question arise.
The question is how your machine knows the destination IP address.
13 .1.1.2 where this IP address came from.
And the answer is that this IP address was given to your local machine by DNS.
Right.
So DNS takes an input.
The name of the website in this case, the name of the website is w-w-w dot My pictures.com and DNS
returns an IP address of the server on which that particular website is hosted.