Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,56 @@ | ||
## 内容提要 | ||
|
||
* 本章主要介绍了网站重定向和负载均衡的一些技术,术语网站架构方面的知识! | ||
* 本章主要介绍了网站重定向和负载均衡的一些技术,术语网站架构方面的知识! | ||
|
||
### 技术概览 | ||
|
||
* 重定向技术通常可以用来确定报文是否终结于某个代理、缓存或服务器集群中某台特定的服务器。重定向技术可以将报文发送到客户端没有显示请求的地方去。与此需要涉及到的技术: | ||
|
||
1、HTTP重定向 | ||
|
||
2、DNS重定向 | ||
|
||
3、任播路由 | ||
|
||
4、策略路由 | ||
|
||
5、IP MAC转发 | ||
|
||
6、IP地址转发 | ||
|
||
7、WCCP(Web缓存协调协议) | ||
|
||
8、ICP(缓存间通信协议) | ||
|
||
9、HTCP(超文本缓存协议) | ||
|
||
10、NECP(网元控制协议) | ||
|
||
11、CARP(缓存阵列路由协议) | ||
|
||
12、WRAD(Web代理自动发现协议) | ||
|
||
### 为什么要重定向 | ||
|
||
* 原因如下: | ||
|
||
1、 可靠地执行HTTP事务 | ||
|
||
2、最小化时延 | ||
|
||
3、节约网络带宽 | ||
|
||
|
||
### 重定向到何地 | ||
|
||
* 重定向把URL的每条请求都发送到最佳的Web服务器上去(最靠近客户端的、或负载最轻的或采用其他优化策略选择的服务器) | ||
|
||
### 通用的重定向方法 | ||
|
||
1、HTTP重定向:原始服务器通过发送重定向响应报文,让客户端去其它可用的资源地点请求资源。常见发送状态码为302的响应报文,有以下缺点:1)原始服务器处理负载较大;2)增加了用户时延,因为需要多一次访问原始服务器;3)如果重定向服务器出现故障,站点就会瘫痪。 | ||
|
||
2、DNS重定向:其实tcp/ip视同ip地址来确定一个连接的,所以DNS重定向的原理就是通过DNS解析器确定合适的ip地址路劲来建立连接的。相关技术有DNS轮转。 | ||
|
||
|
||
### 待续...... | ||
|