Host B Host A Yahoo com Internet 10
Host B Host A Yahoo. com Internet 10. 1 B 3 -1 Cache를 Transparent 모드로 설정하고 알테온 스 위치와 연결한다. 3 -2 Cache를 리얼 서버로 설정한다. - 명령어 : /cfg/slb/re 1 Transpare nt cache farm Non. HTTPTo HTTP B HTTP To A HTTPTo 3. 실제 설정 방법 및 절차 10. 2 [Real server 1 Menu] rip - Set IP addr of real server name - Set server name weight - Set server weight maxcon - Set maximum number of connections tmout - Set minutes inactive connection remains open backup - Set backup real server inter - Set interval between health checks retry - Set number of failed attempts to declare server DOWN restr - Set number of successful attempts to declare server UP addlb - Add URL path for URL load balance remlb - Remove URL path for URL load balance remote - Enable/disable remote site operation proxy - Enable/disable client proxy operation submac - Enable/disable source MAC address substitution nocook - Enable/disable no available URL cookie operation exclude - Enable/disable exclusionary string matching ena - Enable real server : 리얼 서버를 활성화 한다. dis - Disable real server del - Delete real server cur - Display current real server configuration >> Real server 1 # rip 192. 2. 10. 1/enable 3
Host B Host A Yahoo. com Internet Transpare nt cache farm 10. 1 B Non. HTTPTo HTTP B HTTP To A HTTPTo WCR에서는 앞의 VSLB(Virtual Server Load Balancing)과 달리 포트에 server/client설정을 하지 안는다. 3 -3 리얼서버를 리얼서버그룹으로 묶는다. - 명령어 : /cfg/slb/gr 1 - 그룹설정 시 로드 밸런싱 정책은 Hash로 해 주어 야 Cache의 히트율이 높아진다. • 10. 2 [Real server group 1 Menu] metric - Set metric used to select next server in group content - Set health check content health - Set health check type : backup - Set backup real server or group name - Set real server group name realthr - Set real server failure threshold add - Add real server rem - Remove real server del - Delete real server group cur - Display current group configuration >> Real server group 1# add 1/add 2 >> Real server group 1# health http hash >> Real server group 1# metric 4
Host B Host A Yahoo. co m Internet 10. 1 B Non. HTTPTo HTTP B HTTP To A HTTPTo Transpar ent cache farm 10. 2 3 -4 필터를 적용한다. 3 -4 -1. 명령어 : /cfg/slb/fil 100(필터번호) (redirection) >> Layer 4# fil 100 [Filter 100 Menu] adv - Filter Advanced Menu smac - Set source MAC address dmac - Set destination MAC address sip - Set source IP address smask - Set source IP mask dip - Set destination IP address dmask - Set destination IP mask proto - Set IP protocol sport - Set source TCP/UDP port or range dport - Set destination TCP/UDP port or range action - Set action group - Set real server group for redirection rport - Set real server port for redirection nat - Set which addresses are network address translated invert - Enable/disable filter inversion ena - Enable filter dis - Disable filter del - Delete filter cur - Display current filter configuration >> Filter 100 # dport http/pro tcp/rport 80 >> Filter 100 # action redir >> Filter 100 # group 1 5
Host B Host A Yahoo. co m Internet Transpar ent cache farm 10. 1 B Non. HTTPTo HTTP B To HTTPATo 9번 포트 10. 2 3 -4 -2. 필터 적용(Non-Http트래픽에 대한 허용 처리) - 필터 번호 224로 정의한다. >> Filter 224 # enable - 224번 필터에는 아무런 설정 사항이 없이 필터만 활성 화 하여 준다. 3 -4 -3. 필터를 클라이언트 트래픽이 들어오는 포트에 추가 [SLB port 9 Menu] client - Enable/disable client processing server - Enable/disable server processing hotstan - Enable/disable hot-standby processing intersw - Enable/disable inter-switch processing proxy - Enable/disable use of PIP for ingress traffic pip - Set Proxy IP address for port filt - Enable/disable filtering : 필터를 활성화하기 위한 메뉴 add - Add filter to port : 필터를 추가하기 위한 메뉴 rem - Remove filter from port cur - Display current port configuration >> SLB port 9# add 100/add 224<필터 번호> >> SLB port 9# filt en >> SLB port 9# apply/save 6
Frame /Session Inspection Engine @ Filter 의 조건식과 적용 가능 처리 옵션 사항 • Source MAC • Destination MAC Frame Ingress • IP Source Addr /Range Allow/Frame Forward • IP Dest Addr / Range • Protocol Type • TCP/UDP Source Port Action Redirect to Server Group • TCP/UDP Dest Port • Non-IP packets filtering • IP options • Type of Service (TOS) • ICMP message types • Echo, Echo reply, Source quench, Redirect) Drop NAT (Destination or Source IP Address) 7
Contents 기반의 지능형 Load Balancing • URL sub-string match: » 서버를 특정 Contents 타입으로만 최적화 할 수 있다. » Contents의 분리로 리플리케이션을 최소화 할 수 있고, Contents의 관리가 용이 » 어떤 길이의 URL도 파싱 가능; 설정 가능한 128개의 패턴을 검사 가능 RIP_1 HTTP 1. 1 request “images” “. gif” “. jpg” . gif s/abc e g a m /i om. foo. c w w T /w GE RIP_2 GET/www. f GET /www. foo. com/images/abc. gif » RIP_1로 전달 oo. com/eve nt/reg. bin RIP_3 GET /www. foo. com/event/reg. bin » » URL을 검사 후 RIP_3 선택 RIP_1와의 연결을 해제 RIP_3와 연결 … RIP_4 “. cgi” “. bin” “. exe” 10
Contents 기반의 지능형 Cache Redirection Excite. hk. co foo. com Yahoo. com Excite. com 호스트헤더가 ”hk”, “jp”, 인 경우는 바이 패 스… 넌 케셔블 데이 터도아래와 바이패스 같은 경우는 “. exe”, … Redir: “/weather” : RIP_1, RIP_2 “/map” : RIP_2 “/company” : RIP_3 GET /…/ Host=www. excite. hk. co GET /…/ Host=www. yahoo. jp. co GET www. yahoo. com/myahoo. exe GET www. yahoo. com/weather Yahoo. jp. co URL헤싱에 의 한 로드 발란싱 RIP_1 RIP_2 RIP_3 RIP_4 Spread big sites over multiple caches: www. excite. com/weather www. lycos. com/weather www. yahoo. com/weather www. excite. com/map www. yahoo. com/map www. abc. com/mapping-tools www. alteon. com/company www. ibm. com/company www. ge. com/company www. gap. com/company GET www. Yahoo. com/weather GET www. excite. com/map 11
1. Firewall Load Balancing의 장점 Internet • 성능 향상 - 256개의 FWLB를 지원 - Redundant firewalls can actively bear load • 가용성 Firewall Farm - F/W 이 있는 경로에 대한 헬스 체크. - Active-Active redundant switch 지원. • 투명함 - F/W 에 별도의 소프트웨어가 불 필요. • 플랫폼에 독립적 - NT, Solaris, UNIX 또는 firewall 장비 - Routing 또는 transparent firewalls, NAT firewalls • 집적화 된 기능 Secured Web Farm - F/W, Web 서버 로드 발란싱 기능을 동시에 구현 가능 - 스위치에서 패킷 필터링을 사용하여 F/W의 부하를 경감. 13
4. 설정 절차 4 -1 스위치의 인터페이스 설정 Internet Net #5 210. 116. 39. 0/25 IF #2 : 192. 168. 10. 254 명령어 : /cfg/ip/if 1(인터페이스 번호) IF #1 : 210. 116. 39. 126/25 IF #3 : 192. 168. 11. 254 Net #1 Net #2 192. 168. 10. 0 192. 168. 11. 0 Firewa ll Farm Net #3 Net #4 192. 168. 12. 0 192. 168. 13. 0 IF #2 : 192. 168. 12. 254 IF #1 : 210. 116. 39. 254/25 IF #3 : 192. 168. 13. 254 Net #6 [IP Interface 1 Menu](상단 스위치 예) addr - Set IP address mask - Set subnet mask broad - Set broadcast address vlan - Set VLAN number ena - Enable IP interface dis - Disable IP interface del - Delete IP interface cur - Display current interface configuration >> IP Interface 1#add 210. 116. 39. 126/ena >> IP Interface 1#mask 255. 128 >> IP Interface 1#broad 210. 116. 39. 127 >> IP Interface 1# vlan 1 210. 116. 39. 129/25 보안이 된 Network - 위와 같은 방법으로 IF #2와 #3을 설정하고 각 각 Vlan 2/3번으로 지정한다. 그리고 하단의 스위치도 동일한 방식으로 설정한다. 16
4 -2 각 VLAN에 사용 될 물리적 포트 할당 - 명령어 : /cfg/vlan 2 Internet Net #5 IF #1 : 210. 116. 39. 126/25 VLAN #1 IF #2 : 192. 168. 10. 254 IF #3 : 192. 168. 11. 254 Net #1 Net #2 VLAN #3 Firewa ll Farm Net #3 Net #4 VLAN #2 VLAN #3 IF #2 : 192. 168. 12. 254 IF #1 : 210. 116. 39. 254/25 IF #3 : 192. 168. 13. 254 Net #6 VLAN #1 보안이 된 Network [VLAN 2 Menu] name - Assign VLAN name jumbo - Enable/disable Jumbo Frame support del - Delete VLAN ena - Enable VLAN dis - Disable VLAN add - Add port to VLAN rem - Remove port from VLAN def - Define VLAN as list of ports cur - Display current VLANs >> VLAN 2# add 1/add 2 - 각 VLAN에 사용 될 포트를 할당한다. - VLAN 3번에 대하여도 3번과 4번 포트를 할당한다. - 기본적으로 모든 포트는 VLAN 1번에 할당이 되어 있으므로 VLAN 1번에 대한 설정은 하지 않아도 된다. - 하단의 스위치도 동일한 방식으로 처리한다. - 보통 포트 불량을 대비하여 여분의 포트를 하나 더 추 가 한다. 17
4 -3 로드 발란싱을 위한 리얼 서버 설정 Internet Net #5 210. 116. 39. 0/25 IF #2 : 192. 168. 10. 254 IF #1 : 210. 116. 39. 126/25 IF #3 : 192. 168. 11. 254 Net #1 Net #2 192. 168. 10. 0 192. 168. 11. 0 Firewa ll Farm Net #3 Net #4 192. 168. 12. 0 192. 168. 13. 0 IF #2 : 192. 168. 12. 254 IF #1 : 210. 116. 39. 254/25 IF #3 : 192. 168. 13. 254 Net #6 210. 116. 39. 129/25 보안이 된 Network - 반대편 스위치의 인터페이스(화이어 월과 연결 된)를 리얼 서버로 한다. - 리얼 서버 설정 시 리얼 서버의 순서를 동일하게 하여 야 한다. 상단 스위치 하단 스위치 리얼서버 #1 : 192. 168. 12. 254 리얼서버 #1 : 192. 168. 10. 254 리얼서버 #2 : 192. 168. 13. 254 리얼서버 #2 : 192. 168. 11. 254 - 명령어 : /cfg/slb/re 1(리얼서버의 번호) [Real server 1 Menu] rip - Set IP addr of real server name weight - Set server weight … … exclude - Enable/disable exclusionary string matching ena - Enable real server : 리얼 서버를 활성화 한다. dis - Disable real server del - Delete real server cur - Display current real server configuration >> Real server 1 # rip 192. 168. 12. 254/enable - 리얼서버 2에 대하여도 설정을 하여 준다. - 하단의 스위치도 동일하게 설정을 한다. 18
4 -4 리얼서버의 그룹 설정 - 명령어 : /cfg/slb/gr 1 Internet Net #5 210. 116. 39. 0/25 IF #2 : 192. 168. 10. 254 IF #1 : 210. 116. 39. 126/25 IF #3 : 192. 168. 11. 254 Net #1 Net #2 192. 168. 10. 0 192. 168. 11. 0 Firewa ll Farm Net #3 Net #4 192. 168. 12. 0 192. 168. 13. 0 IF #2 : 192. 168. 12. 254 IF #1 : 210. 116. 39. 254/25 IF #3 : 192. 168. 13. 254 Net #6 210. 116. 39. 129/25 보안이 된 Network [Real server group 1 Menu] metric - Set metric used to select next server in group content - Set health check content health - Set health check type : backup - Set backup real server or group name - Set real server group name realthr - Set real server failure threshold add - Add real server rem - Remove real server del - Delete real server group cur - Display current group configuration >> Real server group 1# add 1/add 2 >> Real server group 1# health icmp >> Real server group 1# metric hash 4 -5 스위치 내에서 라우팅을 위한 IP Forwarding 설정 - 명령어 : /cfg/ip/frwd [IP Forwarding Menu] local - Local network definition for route caching menu dirbr - Enable/disable forwarding directed broadcasts on - Globally turn IP Forwarding ON off - Globally turn IP Forwarding OFF cur - Display current IP Forwarding configuration >> IP Forwarding# on 19
4 -6 리얼 서버의 Health Check를 위한 라우팅 설정 Internet Net #5 210. 116. 39. 0/25 IF #2 : 192. 168. 10. 254 IF #1 : 210. 116. 39. 126/25 IF #3 : 192. 168. 11. 254 Net #1 Net #2 192. 168. 10. 0 192. 168. 11. 0 IF : 10. 1 IF : 12. 1 IF : 11. 1 Firewa ll Farm IF : 13. 1 Net #3 Net #4 192. 168. 12. 0 192. 168. 13. 0 IF #2 : 192. 168. 12. 254 IF #1 : 210. 116. 39. 254/25 - 반대편 알테온 스위치의 인터페이스를 체크하기 위하 여 해당 네트웤과 연결 된 화이어 월의 인터페이스를 설정한다. 예) 192. 168. 12. 0 Net에 대한 게이트웨이를 192. 168. 10. 1을 설정 한다. - 명령어 : /cfg/ip/route IF #3 : 192. 168. 13. 254 Net #6 210. 116. 39. 129/25 보안이 된 Network [IP Static Route Menu] add - Add static route rem - Remove static route cur - Display current static route configuration >> IP Static Route#add 192. 168. 12. 0 Enter destination subnet mask: 255. 0 Enter gateway IP address: 192. 168. 10. 1 Enter interface number: (1 -256) 2 - 위와 같은 방식으로 다른 리얼 서버에 대하여도 설정 하단의 스위치도 동일한 방식으로 설정한다. 20
4 -7. 트래픽 리다이렉션 설정 (1) Internet Net #5 210. 116. 39. 0/25 IF #2 : 192. 168. 10. 254 IF #1 : 210. 116. 39. 126/25 IF #3 : 192. 168. 11. 254 Net #1 Net #2 192. 168. 10. 0 192. 168. 11. 0 IF : 10. 1 IF : 12. 1 Net #3 Firew all Farm IF : 11. 1 IF : 13. 1 Net #4 192. 168. 13. 0 192. 168. 12. 0 IF #2 : 192. 168. 12. 254 IF #1 : 210. 116. 39. 254/25 IF #3 : 192. 168. 13. 254 Net #6 210. 116. 39. 129/2 5 보안이 된 Network - 경로에 대한 로드 밸런싱은 필터를 이용하여 설정 된다. - 외부에서 내부로 들어가는 모든 트래픽은 리다이렉션 필터를 통하여 반대편의 스위치로 라우팅되며 그 과정 에서 로드 밸런싱이 이루어 진다. - 명령어 : /cfg/slb/fil 224(필터 번호) [Filter 224 Menu] adv - Filter Advanced Menu … … action - Set action group - Set real server group for redirection rport - Set real server port for redirection nat - Set which addresses are network address translated invert - Enable/disable filter inversion ena - Enable filter dis - Disable filter del - Delete filter cur - Display current filter configuration >> Filter 224 # action redir/ena - 위의 필터만으로 화이어월 로드 밸런싱이 가능하지만 일반적으로 스위치가 가지고 있는 네트웤에 대하여는 Allow하는 필터를 넣어 준다 21
4 -7. 트래픽 리다이렉션 설정 (2) Internet Net #5 210. 116. 39. 0/2 5 IF #1 : 210. 116. 39. 126/25 IF #2 : 192. 168. 10. 254 Net #1 192. 168. 10. 0 IF : 10. 1 IF : 12. 1 Net #3 IF #3 : 192. 168. 11. 254 Net #2 192. 168. 11. 0 IF : 11. 1 Firew all Farm 192. 168. 12. 0 IF #2 : 192. 168. 12. 254 IF #1 : 210. 116. 39. 254/25 IF : 13. 1 Net #4 192. 168. 13. 0 IF #3 : 192. 168. 13. 254 Net #6 210. 116. 39. 129/2 5 보안이 된 Network - 이 경우는 전번의 방식과 달리 내부에 있는 네트웤을 필터에 지정하여 리다이렉션하는 방식이다. - 이 경우 내부에 네트웤이 여러개인 경우 필터가 여러 개 들어가게 된다. - 명령어 : /cfg/slb/fil 100(필터 번호) [Filter 100 Menu] adv - Filter Advanced Menu … … dip - Set destination IP address dmask - Set destination IP mask action - Set action group - Set real server group for redirection rport - Set real server port for redirection nat - Set which addresses are network address translated invert - Enable/disable filter inversion ena - Enable filter dis - Disable filter del - Delete filter cur - Display current filter configuration >> Filter 100 # dip 210. 116. 39. 128/dmask 255. 128 >> Filter 100 # action redir/ena 22
4 -7 포트에 필터 추가 - 리다이렉션 필터는 외부와 내부에서 트래픽이 들 오는 포트에 추가한다. - 명령어 : /cfg/slb/po 8 Internet Net #5 210. 116. 39. 0/25 Port #8 IF #2 : 192. 168. 10. 254 IF #3 : 192. 168. 11. 254 Net #1 Net #2 192. 168. 10. 0 192. 168. 11. 0 IF : 10. 1 IF : 12. 1 Firewal l Farm IF : 11. 1 IF : 13. 1 Net #3 Net #4 192. 168. 12. 0 192. 168. 13. 0 IF #2 : 192. 168. 12. 254 Port #8 IF #3 : 192. 168. 13. 254 [SLB port 8 Menu] client - Enable/disable client processing server - Enable/disable server processing hotstan - Enable/disable hot-standby processing intersw - Enable/disable inter-switch processing proxy - Enable/disable use of PIP for ingress traffic pip - Set Proxy IP address for port filt - Enable/disable filtering add - Add filter to port rem - Remove filter from port cur - Display current port configuration Net #6 210. 116. 39. 129/25 보안이 된 Network >> SLB port 8# add 224/fil en - 설정 된 리다이렉션 필터와 허용필터를 모두 걸어 준다. >> SLB port 8# /ma/slb/on >> Main# apply/save 23
VRRP(Virtual Router Redundancy Protocol) 1. 기능 2. 개념 3. 구성가능 형태 4. VRRP 구성 예 - Hot-Standby - Active-Active 25
Hot-Standby Internet Active VIP #1 VIP = 205. 178. 13. 226 Active VIP #2 VIP = 205. 178. 13. 227 Active Hot Standby VIP #1 VIP = 205. 178. 13. 226 Standby VIP #2 VIP = 205. 178. 13. 227 Active VIP #3 VIP = 205. 178. 13. 228 Standby VIP #3 VIP = 205. 178. 13. 228 Link with traffic Link without traffic ……. VIP #1 VIP #2 VIP #3 27
Active-Standby Internet Active VIP #1 VIP = 205. 178. 13. 226 Standby VIP #2 VIP = 205. 178. 13. 227 Active Standby VIP #1 VIP = 205. 178. 13. 226 Active VIP #2 VIP = 205. 178. 13. 227 Active VIP #3 VIP = 205. 178. 13. 228 Standby VIP #3 VIP = 205. 178. 13. 228 Link with traffic Link without traffic ……. VIP #1 VIP #2 VIP #3 28
Active-Active Internet Active VIP #1 VIP = 205. 178. 13. 226 Active VIP #2 VIP = 205. 178. 13. 227 Active VIP #3 VIP = 205. 178. 13. 228 Link with traffic Link without traffic ……. VIP #1 VIP #2 VIP #3 29
- Slides: 29