A question about how network data traverses through the internet.
I'm wondering whether the encapsulation/de-capsulation process happens at each hop while a request is being sent through the internet. (Reference https://afteracademy.com/blog/what-is-data-encapsulation-and-de-encapsulation-in-networking)
For example, I send a HTTP/S request from my private laptop to www.google.com. When the Google web server receives my request, it prepares its response. I understand the steps are as follow.
- Google web server puts HTML data into a HTTP (layer 7) data stream.
- Data stream to be encapsulated into Transport layer (layer 4)
- and so on.... (until layer 1)
When the Google response traverses through the internet, it passes multiple hops (like routers from the Internet Service Provider)
Question: Does each hop conduct the de-capsulation (to lookup information) and encapsulation (to forward the response) process again? e.g. I would expect a router (layer 3) to de-capsulate the response package up to layer 3, where it reads the relevant information, and capsulate it again - so the router wouldn't de-capsulate all the way to layer 7?
Thanks in advance!