Beruflich Dokumente
Kultur Dokumente
OBJECTIVES
The objective of this lab is to study the effect of Web caching and data compression on the
response time involved in accessing Web pages and on the load on the Web server.
OVERVIEW 159
Generally, compressing your data before sending it over the network is a good idea because
the network would be able to deliver compressed data in less time than uncompressed
data. However, compression/decompression algorithms often involve time-consuming
computations. The question you have to ask is whether or not the time it takes to compress/
decompress the data is worthwhile given such factors as the host's processor speed and the
network bandwidth.
OPNET IT Guru Academic Edition provides two methods of compression: Per-Virtual
Circuit (payload) Compression and Per-Interface (entire packet) Compression. In Per-
Virtual Circuit Compression, the compression and decompression of the packet payload
take place only at the end nodes. With Per-Interface Compression, the whole packet is
decompressed and compressed at each hop on the route. Therefore, Per-Virtual Circuit
Compression entails fewer additional delays, and Per-Interface Compression results in
smaller packets.
Web caching has many benefits. From the client's perspective, a page that can be retrieved
from a nearby cache can be displayed much more quickly than if it has to be fetched from
across the Internet. From the server's perspective, having a cache intercept and satisfy a
request reduces the load on the server. Caching can be implemented in many different
places. For example, a user's browser can cache recently accessed pages and simply displays
the cached copy if the user visits the same page again. As another example, ISPs can con-
figure a node in the network to cache Web pages for their users. This is sometimes called a
proxy.
In this lab, we will build three scenarios of a network with main clients accessing a Web
server across the Atlantic Ocean. We will study the effect of compressing and Web caching on
decreasing the response time of accessing Web pages as well as on decreasing the load on the
Web server.
Network Simulation Experiments Manual
PRE-LAB ACTIVITIES
& Read Sections 7.2.1 and 9.1.2 from Computer Networks: A Systems Approach, 5th Edition.
PROCEDURE
Create a New Project
1. Start OPNET IT Guru Academic Edition Choose New from the File menu.
2. Select Project and click OK Name the project <your initials>_CachingComp, and the
scenario NoCache_NoComp Click OK.
3. In the Startup Wizard: Initial Topology dialog box, make sure that Create Empty Scenario
is selected Click Next Choose World from the Network Scale list Click Next three
times Click OK.
Pacific Ocean
UN_Servers
Atlantic Ocean
160
Africa_Office
Indian Ocean
Applications Profiles
3. Select both subnets simultaneously Right-click on one of them and select Advanced
Edit Attributes Check Apply Changes to Selected Objects Assign to both x span
and y span the value 0.001 as shown Click OK.
LAB 15
Web Caching and Data Compression
4. Right-click on the Applications object Select Edit Attributes Modify the Attributes
as shown Click OK Save your project.
5. Right-click on the Profiles object Select Edit Attributes Modify the Attributes as
shown Click OK.
161
162
4. Click on the value of the Application: Destination Preferences attribute Select Edit
Modify the Attributes as shown.
163
Make sure to select the routers in both subnets to represent node a and node b of the
link Click OK.
Pacific Ocean
UN_Servers
Atlantic Ocean
PPP DS1
name = UN_Servers <-> Africa_Office
port a = UN_Servers.UN_Router.PPP (IF10 P0)
port b = Africa_Office.Office_Router.PPP (IF10 P0)
Africa_Office
data rate = DS1 Indian Ocean
Applications Profiles
164
2. Right-click on the Office_Clients LAN (inside the Africa_Office subnet) Select Choose
Individual Statistics from the pop-up menu Check the Page Response Time (seconds)
statistics under the Client Http hierarchy as shown Click OK.
165
Cache Hit Rate deter- 3. Right-click on the Cache_Server Select Edit Attributes Assign the value:
mines how often objects Cache_Server to the Server Address Assign 75% to the Cache Hit Rate attribute.
are returned from the 4. Click on the value of the Application: Supported Services attribute Select Edit
cache server directly Modify the attributes as shown in the following figure Click OK twice.
to the client. However,
if there is a miss, the
cache server will open
an HTTP session to the
destination server, fetch
the object from there,
and then forward it to the
client.
5. Right-click on the Layer4_Switch Select Edit Attributes Assign the values of the
Layer 4 Redirection Information hierarchy as shown next Click OK.
166
3. Click OK to run the three simulations. Depending on the speed of your processor, this
task may take several minutes to complete.
4. After the three simulation runs complete, one for each scenario, click Close.
FURTHER READINGS
RFC 3173: IP Payload Compression Protocol (IPComp). http://tools.ietf.org/html/rfc3173.
G. Barich and K. Obraczka: World Wide Web caching: trends and techniques, IEEE
Communications Magazine, Vol. 38, No. 5, pp. 178184, May 2000.
Network Simulation Experiments Manual
EXERCISES
1. In the graphs showing the Page Response Time (seconds) and Load (requests/sec),
explain the difference between these statistics for the implemented simulation scenarios.
2. Create a third scenario called Cache_Comp, where both cache server and compression
are used. Collect the same statistics, and compare the results to the current ones.
LAB REPORT
Prepare a report that follows the guidelines explained in the Introduction Lab. The report
should include the answers to the preceding exercises as well as the graphs you generated
from the simulation scenarios. Discuss the results you obtained, and compare these results
with your expectations. Mention any anomalies or unexplained behaviors.
168