CNET network simulator - PowerPoint PPT Presentation

1 / 34
About This Presentation
Title:

CNET network simulator

Description:

CNET network simulator. Comp 211 practical. Omar Baqueiro Espinosa ... Java front-end for CNET. Allows you to choose protocols and options. Gives statistics ... – PowerPoint PPT presentation

Number of Views:363
Avg rating:3.0/5.0
Slides: 35
Provided by: cscL6
Category:
Tags: cnet | cnet | network | simulator

less

Transcript and Presenter's Notes

Title: CNET network simulator


1
CNET network simulator
  • Comp 211 practical

2
Omar Baqueiro Espinosa
  • Thursday practical session
  • Email omar_at_csc.liv.ac.uk
  • Office 211 email first
  • Web page
  • www.csc.liv.ac.uk/omar

3
This Lecture
  • How to use CNET
  • How it works
  • Built-in protocols
  • What questions to answer

4
Part 1 CNET intro
  • What is CNET
  • What is Jnet

5
Simulation
  • Finding errors
  • Visualizing algorithms
  • Estimating performance
  • Complements proving and real testing

6
Experiments
  • Simulations are the CS equivalent of experiments
  • Must be repeated!
  • Averages and standard deviation
  • Use plots and graphs (gnuplot, excel)

7
CNET
  • Educational simulator
  • Everything on one computer
  • Simulates application and physical layer
  • You (we) supply the in-between

8
CNET screenshot
9
CNET
Application
Messages
Protocol
Protocol
Frames
Physical Layer
10
Jnet
  • Java front-end for CNET
  • Allows you to choose protocols and options
  • Gives statistics

11
Protocol Selection
Show CNET interface?
Enable FL in simulation?
Enable FC in simulation?
Set Link delay time
12
Protocol Selection
Show CNET interface?
Enable FL in simulation?
Enable FC in simulation?
Set Link delay time
CNET output window (also saved in logfile.txt
13
Jnet and CNET
Jnet.class
logfile.txt
Jnet. java
MYPROTOCOL
CNET
Proto col
Proto col
Proto col
14
Summary
  • Use jnet to start CNET
  • Can test different protocols
  • See them working
  • Collect statistics

15
Part 2 Protocols
  • 5 different protocols

16
Protocol1
  • Simplest protocol possible
  • Assumes perfect network
  • No checksum
  • No acknowledgements

17
Stop and Wait
  • Checksum
  • Positive acknowledgements
  • One packet at a time

18
Adaptive
  • Measures round-trip time
  • And sets time-outs accordingly
  • Good time-out times

19
Piggyback
  • Sends acknowledgments with data
  • More efficient

20
Selective Repeat
  • Uses sliding window
  • Positive and negative acknowledgements
  • Repeats only what is needed

21
Summary
  • Simple to advanced protocols
  • Source in C files
  • Test them under different circumstances

22
Part 3 the practical
  • What you are going to do

23
Planning
  • 28th Sept. Simple questions
  • 5th Oct Start on your own question
  • 12th, 19th Oct Run simulations, collect data
  • 26th Oct Finish simulations, write report

24
28th Sept Simple questions
  • Get familiar with the Jnet interface
  • Run some test simulations and understand the
    results obtained.
  • Ask simple questions
  • Which protocols cannot deal with frame
    corruption?
  • Which ones cannot deal with frame loss?
  • Ask me LOTS of questions!!!!!!

25
5th Oct Start on your own question
  • Think of a research question (hyptothesis) to
    test.
  • It must be possible to answer it with information
    given by the simulator
  • Ask me more questions
  • Is my research question adequate? ?
  • Can my question be X with Y and Z? ?
  • Can you give me a research question? ?

26
12th, 19th Oct Run simulations, collect data
  • Run simulations with different parameters to
    collect data for your question.
  • Save this data (see my comp211 page)
  • Make sure the data does answer your question.
  • Oh yeah, ASK.

27
26th Oct Finish simulations, write report
  • Did something go wrong? Repeat simulations.
  • Write your report. Use graphics and tables to
    illustrate your answer.

28
Log files
  • Write down your experiments
  • Life sciences use log books
  • Do not delay processing
  • Jnet supplies logfile.txt

29
Questions (week 1)
  • Which protocols cannot deal with frame
    corruption?
  • Which ones cannot deal with frame loss?

30
More Simple Questions
  • Does piggyback use negative acks? (read source)
  • Which node sends more messages? (simulate, then
    check topology file)
  • How often did/should you repeat the simulation?

31
Research sample Question
  • Adaptive should get better over time. Can you
    show this in a graph? (you must use a extra
    option)

32
Sample question 2
  • You can change the propagation delay of a network
    link.
  • How does this influence the relative performance
    of each protocol?
  • Can you estimate the real delay between Liverpool
    and Manchester

33
Summary
  • Think of a short question, give a long answer
  • Think, guess, inspect, run experiments
  • Be creative
  • Keep it Simple

34
Important urls
  • CNET page
  • www.csse.uwa.edu.au/pls/cnet/
  • By Chris McDonald
  • Internet principles page
  • www.csc.liv.ac.uk/omar/teaching/comp211.htm
  • By Omar Baqueiro
  • Warriors of the net video (just 13 minutes
    long)
  • www.csc.liv.ac.uk/omar/teaching/warriors-700-VBR.
    mpg
  • By Gunilla Elam, Tomas Stephanson, Niklas
    Hanberger
  • http//www.warriorsofthe.net/
Write a Comment
User Comments (0)
About PowerShow.com