I'm interested in understanding, conceptually (e.g., similar to how many of the concepts in networking are explained in textbooks like Tanenbaum's Computer Networks, or Kurose's Computer Networking), how a virtual private server (VPS) processes an incoming packet with data conceptually and it is mapped to my virtual instance among the thousands of virtual instances that are running in parallel.
Assume thus that my blog, myawesomerants.com, is hosted on some of the well known VPS providers, such as AWS Lightsail. A user is delighted to have found my website on Google and clicks on it.
What happens then?
I assume the VPS provider maintains some dynamic DNS, in order to map to which physical machine my request has to be directed. But then what, do they use ports behind which the variois VMs that make up the VPS sit, in order to assign the packet to the specific VM which is my server?
I'm really having trouble imagining how this might work. How processes can be matched to packets is delightfully clearly described in the books above, but unfortunately they contain no information on how a VPS might work. There's also this answer, but it does not give any useful information to me.
In order to understand better how this works, the following question is also of immediate relevance:
(How) Could I tell, as a client clicking on myawesomerants.com if the content was served from a VPS, instead of a physical server?
myawesomerants.comand seeing if it's one of the blocks owned by AWS, GCP, Azure, etc.