What happened in your browser and enter the URL

After we enter google.com, your browser will soon be showing Google page, we briefly explain to enter the URL from the browser page display, which occurred in the middle of something.

 

What is the URL
URL full name Uniform Resource Locator, uniform resource Locator, literally to understand, it is used to locate resources.
The equivalent of books at the label, with these labels, the administrator can quickly find the corresponding book.
A complete URL includes the following information: the protocol (the most common are the http protocol, https protocol, file protocol, FTP protocol, etc.); IP address (a string of numbers); path; port number (port access, etc.).

 

Enter the following URL into your browser

When we enter the URL in the address bar after the browser, the browser began to work until we see the page, involves the following key points during this period:


IP Address:
IP address is a unique identifier of the device among the Internet, the computer is not a domain name as the address of record (the reason why the domain name as a daily mark because of semantic reasons), it is in fact true visited a string of numbers ( server IP address). Google.com then the computer from the server to the corresponding IP, the middle of this process is resolved.
After the root domain name server is responsible for resolving the domain name and corresponding IP address, browser access parsed, we will look for the corresponding cache, and then the page will be presented to the user.

 

Cache:
1) the browser each time you visit the site, the browser will generate local cache, when a user to visit a second time, will detect the corresponding cache, accessed directly.

2) If the browser cache is not checked, it will go to access the system cache (that is, we say Hosts).

 

 

 

3) If there is no local cache, the browser will cache to detect router, which can then check the ISP (operator) cache.

4) If the above requirements are not found cache resources, the browser will find the corresponding IP address of the root name servers and accessed.

 

DNS hijacking
our pages when browsing the poor, there is a workaround is to modify the DNS 114.114.114 or 8.8.8.8. The reason for this is that after a period browser to access the program very much, need to find a level too cache, including a cache problem, then the page will have access to the deviation. We will modify DNS to 114.114.114 or 8.8.8.8, allow your browser to directly access the dns server, reduce intermediate links. After this change the browser does not find the ISP, but is looking inside from Google DNS (8.8.8.8) or 114 DNS (114.114.114).


Server
server is just a computer, the computer can not process the request itself is a browser, you must have the appropriate software. This software is called Web server, there is a common web server Apache, Nginx, IIS, node.js and so on. The local computer as a web server to use, but also need to install a web server.

 

MVC

MVC (model view controller), is business logic, display interface and data frame separation method. Controller acquires data from the model data set into html template back to the browser, the browser and then displayed.

 

 

Guess you like

Origin www.cnblogs.com/dabai-wang09/p/11458387.html