Quick Public Links

DEGAS Member Links

People

Sponsors

DEGAS networking group

QualNet 5.0 Exercises:
Chapter 2. Application Layer

Objective

The purpose of this exercise is to develop an appreciation for the client-server network application architecture in modern network applications. Moreover, it helps to gain further experience with QualNet GUI and to start using command line based QualNet.


Overview

First, you will configure and run Web applications over a wireless network of 30 nodes under QualNet GUI. Then, you will use command-line based QualNet to simulate above network applications again with provided configuration files.


Procedure

Part 1. Using GUI based QualNet
  1. Create a new scenario named 'exp2' under the directory '[QUALNET_HOME]/scenarios/ user/' in the Scenario Designer (please refer related part in Chapter 1 exercise for details).
  2. Place 30 nodes automatically in the network.
    • From the Experiment pull down menu, select Place Nodes (If it's gray/disabled, double click the canvas/ScenarioDesigner).

      
    Place Nodes Menu

    • Within the Automatic Node Placement Wizard, input '30' as Number of Nodes.

      
    Number of Nodes

    • Click Next, choose 'Uniform' as Placement Strategy.

      
    Placement Strategy

    • Click Next, use '1' as Seed.

      
    Placement Strategy

    • Click Finish and the resulting canvas should look like the following.

      
    Placement Strategy

  3. Add a Web application with node 1 as the HTTP client and nodes 2, 5 and 11 as HTTP servers.
    • In the Inspector, expand Hierarchy(0)->Nodes->host1, right click SingleHostApplications and choose Add.

      Single Host App:add

    • Within the Single Host Application Wizard, select HTTP
      and click Finish.


    • Click Finish and there is a HTTP sign shown beside node 1 on the canvas.

      HTTP: canvas

    • In the Inspector, expand host1's SingleHostApplications to modify HTTP properties. Set Start Time as '10S', Threshold Time as '120S', and List of Servers as '2 5 11'. This means the HTTP client on node 1 chooses among HTTP servers {2, 5, 11} when requesting web pages. It begins browsing after 10 seconds of simulation time, and will "think" (remain idle) for at most 2 minutes at a time.

      HTTP:attribute

  4. Set simulation time to 15 minutes by modifying corresponding property of General after expanding ConfigSettings->General in the Inspector.

    Simulation Time

  5. Choose 'AODV' as Routing Protocol under ConfigSettings->Network Protocols->Routing Protocol->Routing Policy->Routing Protocol in the Inspector.

    AODV

  6. Run scenario in the Animator (refer related part in Chapter 1 exercise for details).

    Run 1

  7. Review Application statistics in the Analyzer (refer related part in Chapter 1 exercise for details).

    App statistics

  8. Go back Scenario Designer to add another Web application with node 15 as the HTTP client and nodes 2, 5 and 8 as HTTP servers, similarly to step 3.

    Add 2nd HTTP App

  9. Run the modified scenario.
  10. Check Application statistics in the Analyzer again.
Part 2. Using command line based QualNet
  1. Download the configuration files (exp2a.config, exp2a.app, exp2b.config, exp2b.app) here. Browse and try understanding the main idea of each file, especially the app files (for detailed description, refer corresponding default files with the same suffix under the directory '[QUALNET_HOME]/scenarios/default/'). Place the four downloaded files in the directory '[QUALNET_HOME]/bin/'.

  2. Experiment 2a: Under above directory, type 'qualnet exp2a.config' to run QualNet command line with the application file exp2a.app, which defines the same Web application with one HTTP client and three HTTP servers, as in step 3 of Part 1. The statistics file this experiment produces is exp2a.stat.

  3. Experiment 2b: Similarly, type 'qualnet exp2b.config' in command line to run QualNet with the application file exp2b.app, which simulates the same HTTP traffic with two HTTP clients and four HTTP servers, as in step 8 of Part 1. The statistics file this experiment produces is exp2b.stat.


Questions

  1. What transport layer protocol is used to support the Web application, TCP or UDP?

  2. In the application file exp2b.app, what are the HTTP clients and servers?

  3. Compare collected statistics files exp2a.stat and exp2b.stat in experiments 2a and 2b. What is the time used by each HTTP server to send data in experiments 2a and 2b?

  4. Examine statistics Connection Length(s) reported in exp2a.stat and exp2b.stat. What is the relationship between the client's and server's reported connection lengths?

References and Further Readings

  1. Section 2.1 and 2.2 of the textbook.
  2. QualNet 5.0 User's Guide.