Search /
Docfinder:
Advanced search  |  Help  |  Site map
RESEARCH CENTERS
SITE RESOURCES
Click for Layer 8! No, really, click NOW!
Networking for Small Business
TODAY'S NEWS
Parts of San Francisco network still locked out
Report: Head of Microsoft's online group leaves for Juniper
Attack code released for new DNS attack
IBM, Oracle and SAP sued over server software technology patents
Cisco to buy home-network software vendor
More outages hit Amazon's S3 storage service
VPNs: Six burning questions
Micro-grids for power could stave off telco outages in disasters
No excuses -- encrypt all laptops
IBM/Lotus sharpens weapon for unified communications battle
Watch out Cisco: Here comes Brocade/Foundry
Brocade's Foundry buy will boost Fibre Channel over Ethernet market
IT project management yields savings for energy company
Oracle unveils access management suite
Experts debate NAC: usefulness versus cost


Web/E-business /
Send to a friend Feedback

Web optimization options

From load balancers to client caching, pick the proper product to fix specific performance problems.

By Thomas A. Powell

When Web site delivery is no longer fast and furious, but more slow and spurious, visitors might quickly click to the competition. The challenge for Web managers is to provide speedy, robust Web services to a growing audience, often using fewer resources.

We surveyed the range of current Web acceleration approaches from first look-up to last mile, looking for real network speed without the hype. What follows is a guide to some of the products you should consider for solving specific performance problems.

Starting strong

Advertisement:

The race is on from the first DNS query. Does your name server reverse the address quickly? Fail here and it's all over, so stop putting DNS on the oldest server in the farm and treat it as the critical service it is. To address volume look-up concerns and geographical diversity, and improve overall name service reliability, consider outsourcing at least your back-up DNS to a vendor such as UltraDNS or Nominum. Finally, you also can use DNS for global load balancing by directing initial requests to the closest server or farm.

Stop a slowdown

Once the request is on its way to a server, the real slowdown begins. The causes run the gamut from connections being held open by slow dial-up visitors to sudden flash crowds to excessive page-generation time or underpowered Web farms. These problems fall into two broad areas: page compute-related issues, and network and protocol effects.

Computewise, page-generation time can be excessive. When using any Web technology from Active Server Pages to Zope, build it only when necessary. Executing scripts or running database queries to fetch page components for each visitor makes no sense unless there is variation in what each sees. Software caches such as SpiderCache can be used to hold pregenerated pages. Hardware caches such as those from CacheFlow can even help off-load the server from the request.

Yet neither acceleration approach works well for truly dynamic content. So-called dynamic caches such as Chutney Technologies' PreLoader can be used to hold portions of pages. But performance gains for dynamic sites are often hard won, so you're better served trying other Web site acceleration techniques first.

When you get to the network, speed problems run deep. It's well known that HTTP and TCP congestion-avoidance algorithms don't work well together. Moreover, Web servers are busy serving numerous small requests and often become network I/O bound, holding connections open for slow downloads.

A simple remedy is to avoid wasteful connections to a server. Don't bother to force your server to hand out needless "304 responses" indicating items haven't changed. Make your site cache-friendly and set expiration dates far in the future for elements that don't change, such as navigation graphics.

Another possibility is to off-load your server by having another device -- often dubbed an accelerator -- receive connections. Effectively a connection multiplexer, such devices manage and maintain all TCP connections with clients, minimizing the number of requests a server receives. Several vendors employ such connection pooling ideas in their accelerators, the most impressive being Redline Networks.

Lighten the load

The amount of content being delivered can also reduce speed. Deliver a smaller payload and you not only save bandwidth, but also you free up your servers to accommodate more users. Binary data such as images and flash content can hog a lot of space, so question the value of every image, rollover effect or multimedia element before including it. You'll find many popular sites adopting extremely lightweight designs.

With the system pared down to the essentials, the site administrator is now faced with how to deliver what's left. The first task is to consider compression. Web image-compression techniques such as color reduction, thought to be out of vogue given the lack of low-resolution users, still make sense. Further text reduction comes from removing white space in HTML, JavaScript and CSS files.

Many servers such as Internet Information Server support HTTP compression natively, although server add-ons such as BPVN Technologies' PipeBoost improve on basic compression offerings. High-traffic sites such as Google selectively compress HTML content, depending on the type of browser the user has, for huge aggregate savings in bandwidth. But be careful before rushing to simple HTTP compression, as bugs exist even in popular browsers such as Internet Explorer.

Diminish distance

The issue of latency arises when content is sent to end users. Serving content as close to the edge of the Internet as possible using a content delivery network (CDN) such as Akamai makes sense. But CDNs tend to be expensive and suffer from the same problems as caches when it comes to dynamic content. The Edge Side Includes markup language aims to make it easier to develop Web content that can be dynamically assembled at the edge of the network.

For truly exotic acceleration, you must use acceleration that works not only on the server or network, but also on the client side. For example, FineGround's Condenser takes advantage of the fact that many Web pages are very similar. Condenser tries to deliver only the "deltas," or differences between pages, and reassemble them client-side using JavaScript. It may sound unusual, but it actually works pretty well. And FireClick's NetFlame2 takes a unique approach by using JavaScript object prefetching combined with site-usage analytics to predictively precache the most likely next-requested content during the time a user is looking at a page.

Many products attempt to combine Web acceleration approaches and address caching, compression and connection multiplexing with Secure Sockets Layer acceleration or CDN integration thrown in. Vendors such as Netscaler, Packeteer and Redline offer popular acceleration gear that pays for itself with simple bandwidth reduction and hardware savings.

Yet before speeding up your site, make sure it's built properly and that it strikes a balance between delivery demands and customer experience. Otherwise, you'll go nowhere very fast.


As site traffic increases and your server becomes overwhelmed, add a load balancer and build out a server farm.
To keep servers from working too hard, try one or all of these methods:
a. Pregenerate your frequently accessed pages if they are built from a database.
b. Add a reverse proxy cache or cache appliance to serve content.
c. Add hardware accelerators to free up servers from handling inbound requests.
When addressing a large load across a widespread geographical area:
a. Build a few server farms and globally load balance between them.
b. Use a content-delivery network source.
To reduce bandwidth requirements:
a. Compress your responses.
b. Author Web pages to be cache-aware and take particular advantage of local browser caches.
When dealing with delivery-sensitive data such as video, move close to the user and deliver from the edge of the network.

Related Links

Powell is president of PINT (www.pint.com), a Web services firm, and the author of numerous books on Web development practices. He can be reached at tpowell@pint.com.


NW Test Alliance

Global Test Alliance

Powell is also a member of the Network World Global Test Alliance, a cooperative of the premier reviewers in the network industry, each bringing to bear years of practical experience on every review. For more Test Alliance information, including what it takes to become a member, go to www.nwfusion.com/alliance.

Caching vendors take on last mile
As caching vendors and content delivery networks have focused on improving the Internet's performance by pushing content to the network's edge, a group of smaller start-ups has been quietly rolling out technologies designed to boost speed all the way up to the user's desktop. Network World, 03/04/02.

CDN switching adds flexibility
Wide-area load balancers with content-delivery network switching technology let companies use public CDN services to extend global availability and content distribution. Network World, 01/14/02.

CDNs are not just for content anymore
hit the scene about two and half years ago with much fanfare, offering a revolutionary way to move content across the Internet. But since then, these vendors - including market leader Akamai - have traveled a bumpy road as they watched their dot-com customer base erode. Network World, 01/14/02.

Apply for your free subscription to Network World. Click here. Or get Network World delivered in PDF each week.

Get Copyright Clearance
Request a reprint or permission to use this article.


NWFusion offers more than 40 FREE technology-specific email newsletters in key network technology areas such as NSM, VPNs, Convergence, Security and more.
Click here to sign up!
New Event - WANs: Optimizing Your Network Now.
Hear from the experts about the innovations that are already starting to shake up the WAN world. Free Network World Technology Tour and Expo in Dallas, San Francisco, Washington DC, and New York.
Attend FREE
Your FREE Network World subscription will also include breaking news and information on wireless, storage, infrastructure, carriers and SPs, enterprise applications, videoconferencing, plus product reviews, technology insiders, management surveys and technology updates - GET IT NOW.