S
S
sorry_i_noob2018-11-15 21:17:31
Computer networks
sorry_i_noob, 2018-11-15 21:17:31

What is a chain of routers?

Hello! I'm trying to understand the http request life cycle. I found an article that describes the cycle.

1. The user enters a request in the browser line, for example: example.com/mypage.php
2. If the request does not specify the recipient's IP, a request is sent to the DNS server to obtain the address of the server to which it is intended.
3. An http request is generated, which is packaged into a network packet and sent to the network.
4. The packet passes through a chain of routers, each of which checks the destination and forwards the shortest path.
5. The request comes to the recipient, in the simplest version it is one server (in a more complex group), unpacking and determining the application that will process it.
6. And finally, the data that the user entered has reached the web server, which begins processing it.
6.1. Depending on the request, the handler is defined, for example, static files (images, javascript) are returned without processing, while php files need to be executed on the interpreter and only after that return the result to the user.
6.2. In our case, the client requested a php file, so the server looks for the mypage.php file and passes it to the php interpreter.
6.2. The interpreter executes the code, accessing the database, files, other services, if necessary, and returns the result.
7. The received code is packed into an http response, a network packet and sent to the user.
8. The browser receives a response from the server and renders (draws) it, loading additional resources (images, styles, etc.) if necessary.

Point 4 is of interest. What is a chain of routers?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2018-11-15
@sorry_i_noob

a chain of routers is a chain of routers.
your home router is the first node in the chain, then your ISP's router (there may be more than one), then your ISP's ISP's router, and so on until we get to the target.

V
Valentin, 2018-11-15
@vvpoloskin

Here it is well and accessible described:
https://m.habr.com/post/186282/

Y
yayashitoya, 2018-11-15
@yayashitoya

Networks for the little ones. Part 3. Routing
2bb164d779a2736f8f407f1c2094bfb9.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question