Introduction to Content Switch.ppt
《Introduction to Content Switch.ppt》由会员分享,可在线阅读,更多相关《Introduction to Content Switch.ppt(32页珍藏版)》请在麦多课文档分享上搜索。
1、Introduction to Content Switch,C. Edward Chow Department of Computer Science University of Colorado at Colorado Springs,12/22/2000,Edward Chow ACSD Project Status 2,Outline of the Talk,What is a Content Switch? What Services it Can Provide Content Switch Example Related Technologies Content Switch A
2、rchitecture and Basic Operations TCP Delay Binding and Related Improvement Content Switch Rule and Conflict Detection Related Load Balancing Research Results,12/22/2000,Edward Chow ACSD Project Status 3,Content Switch (CS),Route packets based on high layer (Layer 5/7) headers and content. Examples:
3、Direct Web traffic based on pattern of URLs, host tags, cookies. Can Route incoming email based on email address; Connect POP/IMAP based on login Web switches and Intel XML Director/accelerator are special cases of content switch.,12/22/2000,Edward Chow ACSD Project Status 4,What Services It Can Pro
4、vide,Enabling premium services for e-commerce, ISP, and Web hosting providers Load Balancing and High Available Server Clusters: Web, E-commerce, Email, Computing, File, SAN Policy-based networking, differential/QoS services. Firewall, Strengthening DoS protection, cache/firewall load-balancing Flas
5、h-crowd management Email Spam Protection, Virus Detection/Removal Applet Authentication/Filtering,12/22/2000,Edward Chow ACSD Project Status 5,F5 VRM Solution,12/22/2000,Edward Chow ACSD Project Status 6,Intel Netstructure XML Director 7280,Example of Rule: Server1: create */order.asp & /AmountValue
6、 = 10000,12/22/2000,Edward Chow ACSD Project Status 7,Phobos In-Switch,Only load balancing switch in a PCI card form factor Plugs directly into any server PCI slot Supports up to 8,192 servers, ensuring availability and maximum performance Six different algorithms are available for optimum performan
7、ce: Round Robin, Weighted Percentage, Least Connections, Fastest Response Time, Adaptive and Fixed. Provides failover to other servers for high-availability of the web site U.S. Retail $1995.00,12/22/2000,Edward Chow ACSD Project Status 8,E-Commerce Example: 1. Client,Client submits via HTTP/Post (o
8、r SOAP) the following purchase in XML:CCL111222333309121544IBM Thinkpad T2150001050000309121538Intel wireless LAN PC Card20010200052000 ,12/22/2000,Edward Chow ACSD Project Status 9,E-Commerce Example: 2. Content Switch,Content switch receives the packet. Recognize it is a http post request from htt
9、p request line POST /purchase.cgi HTTP/1.1 Recognize it is an XML document from the meta header content-type: TEXT/XML Parsing XML content Extract values of tag sequences: 52000 purchase/totalAmount CCL purchase/customerName Rule 1 is matched and packet is routed to one of highSpeedServers. Rule 1:
10、if (xml.purchase/totalAmount 5000) routeTo(highSpeedServers); Rule 2: if (xml.purchase/customerName = CCL) routeTo(specialCustomerServers);,12/22/2000,Edward Chow ACSD Project Status 10,No Free Lunch: Penalty of Having Content Switch, Increased packet processing time. For XML Director/Accelerator, i
11、t needs to parse XML document and match tag sequences. 1-3? order of processing time,12/22/2000,Edward Chow ACSD Project Status 11,Related Technologies,Application level solution: Proxy server; Apache/Tomcat/Servlet; Microsoft NLB Kernel level layer 4 load balancing solution: http:/www.linuxvirtuals
12、erver.org/ Joseph Marks presentation LVS-NAT(Network Address Translation) web page LVS-IP Tunnel web page LVS-DR (Direct Routing) web page Hardware solution: Cisco 11000, F5 (Big IP), Alteon Web Systems, Foundry Networks (ServerIron), Good information: Foundry ServerIron Installation and Configurati
13、on Guide, May 2000.,12/22/2000,Edward Chow ACSD Project Status 12,Basic Operations of Content Switching,CS Rule Matching Algorithm,Header Content Extraction,Packet Classification,CS Rules,Packet Routing (Load Balancing),CS Rule Editor,Incoming Packets,Forward Packet To Servers,Network Path Info,Serv
14、er Load Status,CS: Content Switching,12/22/2000,Edward Chow ACSD Project Status 13,Content Switch Architecture,Apostolopoulos 2000,12/22/2000,Edward Chow ACSD Project Status 14,Efficient Software Architecture,Tasks: Million Packets with thousand of rules to match and load balancing algorithms to run
15、. How to assign tasks to the processors and threads? Packet Extraction (Understand header formats, XML parsing) Content Switching Rule Matching Packet Routing (Load Balancing, Bandwidth Control) How Much Packet Processing Should Controllers Do? What a controller can do? A Typical Parallel Processing
16、 Problem?,12/22/2000,Edward Chow ACSD Project Status 15,TCP Delay Binding,client,content switch,server,step1,step2,SYN(CSEQ),SYN(DSEQ),ACK(CSEQ+1),step4,step9,step10,step5,step6,SYN(CSEQ),SYN(SSEQ),ACK(CSEQ+1),step8,DATA(CSEQ+1),ACK(SSEQ+1),DATA(SSEQ+1),ACK(CSEQ+lenR+1),DATA(DSEQ+1),ACK(CSEQ+LenR+1)
17、,ACK(DSEQ+,lenD+1),ACK(SSEQ+lenD+1),lenR: size of http request.,lenD: size of return document,.,step7,ACK(SSEQ+1),step11,12/22/2000,Edward Chow ACSD Project Status 16,Lesson Learned in Implementing TCP Delay Binding,In our Linux 2.2 kernel-based content switch prototype, we found client sends duplic
18、ate requests after step 3. It overloads the content switch and the real server. Reason: Client TCP time-out, retransmit Content switch printk() overhead, too many debug msgs It could happens when there are many content rules, slow server response. Solution: content switch sends ack(CSEQ+LenR+1) to s
19、top retransmit.,12/22/2000,Edward Chow ACSD Project Status 17,Pre-Allocate Server Scheme,client,content switch,Pre-allocated server,.,Guess routing decision based on IP/Port#/HistoryAdvantage: Faster than TCP delay binding.Possible direct route between client and serverReduce session processing over
20、head no need to convert server sequence #,12/22/2000,Edward Chow ACSD Project Status 18,Degenerated to TCP Delay Binding If Guess Wrong,client,content switch,Pre-allocated server,step1,step2,SYN(CSEQ),SYN(SSEQ),ACK(CSEQ+1),DATA(CSEQ+1),ACK(SSEQ+1),step3a,SYN(CSEQ),SYN(SSEQ),ACK(CSEQ+1),step4,step5,D
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- INTRODUCTIONTOCONTENTSWITCHPPT
