可以研究的间题 算法 机 轮询 网络距离 负载情况 架构(√ 基于客户 基于DNS 基于分配器 基于服务器端
可以研究的问题 • 算法 – 随机 – 轮询 – 网络距离 – 负载情况 • 架构(√) – 基于客户端 – 基于DNS – 基于分配器 – 基于服务器端
基于分配器 特点:在URL层次上处理,分配器有一个虚 抄地址( IP SVA 名种路由算法: 包地址重写( Magicrouter, Local director) 转发 htto重定向
基于分配器 • 特点:在URL层次上处理,分配器有一个虚 拟地址(IP_SVA) • 各种路由算法: – 包地址重写(Magicrouter, Local Director) – 包转发 – http重定向
包地址重写 Server 1 (address 1) Address dispatcher User Client (IP-SvA) 5 之 3 step 1: Document request (IP-SvA) Server N (address N) Step 2: Web-server selection step 3: Packet rewriting (IP-SvA-> address 1) step 4: Packet routing step 5: Server sends each packet to the dispatcher step 6: Packet rewriting (address 1 ->IP-SvA) step 7: Document response (IP-SvA)
包地址重写
包转发 Second-level Network Dispatcher (cluster 1) Server 1 (address 1) First-level Second-level User Client Network Dispatcher4LNetwork Dispatcher_7 (IP-SVA) Step 1: Document request (IP-SVA) Server N Step 2: Web-dluster selection Second-level (address N) Step 3: Packet rewriting (IP-SVA->cluster k) Network Dispatcher step 4: Packet routing (cluster m) Step 5: Web Step 6: Packet rewriting (cluster K->IP-SVA) Step 8: Document response(IP-SvA)
包转发
hp重定向 Server 1 (address 1) (address 2) User Client Intermediate DNS name server 3 step 1: Address request (URL) step 1: Address request reaches the DNs Server N step 2: WWeb-server. Tn) selection (address N) Step 3: Address mappIng (URL - address 1) step 3: Address mapping (URL - address 1) step 4: Document request (address 1) step 5: Web-server seection step 6: Http redirectlon Step 7: Document request (address 2) step 8: Document response (address 2)
http重定向