2003 6 kung@mail.npust.edu.tw, b8956018@mail.npust.edu.tw, m9056011@mail.npust.edu.tw (Internet) and build up cache proxy servers. In this paper, we (Multi-media) design and development four proxy servers to achieve the functions, which are the load balance, 寛 (Delay) technologies achieve high access rate, high performance, and stable connection quality. The (Cache Proxy Server) proposed deployment schemes is based on the adaptive routing table to turn up peer access and the (Cache) access control list in squid daemon. Keywords: Cache Proxy Servers, Fault Tolerance, 寛 (Routing Table) Squid (Peer Access) (Client) (Browser) (Access Control List, ACL) (World Wide Web, WWW) (Load Balance) (Fault Tolerance) (Distributed) (Load Sharing) 1 Abstract As the rapid deployment of broadband Internet, multimedia presentation is required. However multimedia communications speed high bandwidth to transmit information. Furthermore, the limited bandwidth is not enough to support traffic requirement the peak. There are two solutions to solve this problem, which are to expand bandwidth fault tolerance, distributed and load sharing. These Load Balance, Distributed, Load Sharing. Internet (Multi Router Traffic Grapher, MRTG) 1 95.4Mb/ 52Kbps/ 81Kbps/ 30Kbps/ (Local Area Network, LAN) 364
1 (Cache Proxy Server) 寛 (Route) (Load Balance) (Fault Tolerance ) (Distributed) (Load Sharing) (i) (Proxy Server)(ii) (Asymmetric Digital Subscriber Line, ADSL) (Proxy Server) (Client) HTTP (Server) (Request) (Response) (Caching) (Text) (Image) (Web) (Hyper link) 1. 2 WEB (Request) WEB WEB (Cache) (Cache Hit) Cache hit 3 365
Parent Proxy Child Proxy ICP Query 2 (i) Proxy Server ICP Query Sibling Proxy 3 (ii) 2. Subscriber Line, ADSL) (TANET) 1 Internet Internet Cache Protocol (ICP) WEB (Request) URL WEB [3] (1) (Parent) (2) (Silbing) (3) (Child) [2] 4 (ADSL) ICP Silbling Parent ;Silbling Parent ADSL ATU-R (Splitter) 4 Proxy ; Parent (Peer Access) (Hit) (Asymmetric Digital / 5 ADSL ATU-R 366
ADSL splitter ATU-R DSLAM ATM 5 ADSL ADSL ADSL 6 ADSL ATU-R ADSL ADSL ADSL Alteon (Load (Layer 4 Switch ) (Load Sharing) Proxy Server HTTP HTTP Routing Table (Load Sharing) [5] Proxy Server (1) (2) (3) Access Control ListRouting TablePeer Access 6 CISCO 7513 (Direct Access) (TANET) Router (Peer Access) (Load Sharing) ALTEN 180e 10 (LAN PORT) LAN PORT 1000Base-SX/LX Cisco2900 Cisco2900 Cisco2900 TANET Route Balance) SQUID (Load balance)[5] Access Control List (Direct Access) (Direct Access) (i) (ii) HINET TANET TANET HINET 367
(iii) lib-dn ACL 1 cache_peer proxy.nsysu.edu.tw parent 3128 3130 no-query no-digest no-netdb-exchange cache_peer ccproxy.nsysu.edu.tw parent 3128 3130 no-query no-digest no-netdb-exchange cache_peer proxy.hinet.net parent 80 3130 no-query no-digest no-netdb-exchange Proxy Server Access Control ListRouting Table Peer Access Access Control ListRouting TablePeer Access 1. (Access Control List, ACL) ACL dst ip-network/netmask. ACL dstdomain. 2 acl npust-ip dst "/etc/squid/npust-ip.txt" acl npust-dn dstdomain.npust.edu.tw SQUID 1 acl tw-ip dst "/etc/squid/tw-ip.txt" proxy.nsysu.edu.tw acl tw-dn dstdomain.tw acl foreign-dn dstdomain.edu.com ccproxy.nsysu.edu.tw acl HINET-dn dstdomain.hinet.net.seed.net acl lib-dn dstdomain "/etc/squid/lib.txt" proxy.hinet.net parent npust-ipnpust-dn lib-dn IP SQUID 3 3 always_direct allow npust-dn always_direct allow npust-ip always_direct allow lib-dn tw-dntw-ipforeign-dnhinet-dn SQUID ACL (Load Sharing) (Distance) hient Routing Table Peer Access Routing Table Peer Access dst 2. (Peer Access, PA) dst SQUID IP dstdomain (Distributed) 2 npust-ip npust-dn tw-ip tw-dn foreign-dn SQUID HINET-dn HINET 1 proxy.nsysu.edu.tw 368
ccproxy.nsysu.edu.tw proxy.hinet.net 4 4 cache_peer proxy2 sibling 3128 3130 proxy-only cache_peer proxy3 sibling 3128 3130 proxy-only cache_peer proxy4 sibling 3128 3130 proxy-only 3. (Routing Table) Proxy Server (Routing Table) ICP Squid (Peer Access) (Access Control List, ACL) cache_peer_access Proxy Server 6 Cisco 2900 5 140.127.1.253 TANET Cache_Peer_Access (Default Route) tw-ip tw-dn proxy.hinet.net proxy.nsysu.edu.tw 140.127.1.253 ADSL ATU-R foreign-dn ccproxy.nsysu.edu.tw 5 cache_peer_access proxy.hinet.net allow foreign-dn tw-ip tw-dn!npust-ip!npust-dn!lib-dn cache_peer_access proxy.hinet.net deny all cache_peer_access proxy.nsysu.edu.tw allow tw-ip tw-dn!npust-ip!npust-dn!lib-dn cache_peer_access proxy.nsysu.edu.tw deny all cache_peer_access ccproxy.nsysu.edu.tw allow foreign-dn!npust-ip!npust-dn!tw-ip!tw-dn cache_peer_access ccproxy.nsysu.edu.tw deny all ICP ICP (TANET) (Gateway) (140.127.0.0/255.255.220.0) HINET Gateway proxy.hinet.net 211.72.44.49 HINET 211.72.44.49 ICP ICP ICP 369
6 Kernel IP routing table Destination Gateway Genmask Use 61-219-36-250.HINET 211.72.44.49 proxy1.nsysu.edu.tw 140.127.1.253 proxy2.nsysu.edu.tw 140.127.1.253 61-219-36-120.HINET 211.72.44.49 ccproxy2.nsysu.edu.tw 140.127.1.253 ccproxy1.nsysu..edu.tw 140.127.1.253 211.72.44.48 * 140.127.0.0 * default 140.127.1.253 255.255.255.248 255.255.224.0 0.0.0.0 eth1 eth1 eth1 8 Proxy2 (211.72.44.49) ADSL 7 8 9 10 Pwebstats HTTP Request (Cache Hit Rate) Request 35%30% Byte 23% 20% 9 Proxy3 10 Proxy4 7 Proxy1 proxy.nsysu.edu.tw ccproxy.nsysu.edu.tw ICP HINET proxy.hinet.net proxy.nsysu.edu.tw ccproxy.nsysu.edu.tw Cisco 2900 TANET squid (/var/log/squid/access.log) proxy.hinet.net 况 TANET 370
[5] 2001 [6] 2002WWW (Routing Table) [7] 2000 Linux (Peer Access) (Access Control List, [8], ACL) http://proxy.nsysu.edu.tw PAC(Proxy Auto Configuration) Router (i) (Direct Access) (Peer Access) (Load Sharing) (Load Sharing) (ii) HINET TANET (iii) NSC 91-2219-E-020-002 [1] 2000 [2] 2002Red Hat Linux8 峯 [3] 2001 ADSL - 7 120 [4] 2000LINUX 371