Opened 8 months ago

Last modified 5 months ago

#33432 assigned enhancement

Multiple downloads for oneshot mode

Reported by: acute Owned by: phw
Priority: Medium Milestone:
Component: Metrics/Onionperf Version:
Severity: Normal Keywords: metrics-team-roadmap-2020, metrics-team-roadmap-2020-june
Cc: acute, metrics-team Actual Points:
Parent ID: #33321 Points:
Reviewer: Sponsor: Sponsor59-must

Description

Currently, oneshot mode performs a singe 5M download and then exits. We should allow users to request multiple downloads, which will aid future OP testing setups.

Child Tickets

Change History (10)

comment:1 Changed 5 months ago by karsten

Sponsor: Sponsor59

Let's consider doing this as part of Sponsor 59.

comment:2 Changed 5 months ago by karsten

Parent ID: #33321

comment:3 Changed 5 months ago by karsten

Status: newneeds_information

Now that we took out all other file sizes except for the 5 MiB download, is there anything left to do here?

What's the main purpose of the oneshot mode anyway? Is it to avoid waiting for 5 minutes for the first measurement to start? If so, should we work on adding a configurable, initial pause? Something like:

                            -------
                            |     |
                            v     |
start -> initial_pause -> pause --|
                   |        |
                   v        v
                   transfer5m

comment:4 Changed 5 months ago by acute

Hi! I developed and used his mode extensively to test out out changes to Onionperf code, but also to perform research measurements with a more limited scope (e.g for comparing different pluggable transports on different types of networks).
Oneshot mode:

  • has no pause at the start
  • terminates after one 5MB download

It can be used for:

  • testing
  • measurements in simulated networks
  • scripting and automating custom measurements with variable parameters

This was written for an academic research project where it was primarily used, but other research projects (like the scaling project) could also benefit from this. Having a configurable number of downloads before Onionperf shuts down would be very nice, and so would supporting different sizes of download.

Having an initial configurable pause is a great start. It is also important that oneshot mode shuts down after completing (and a new measurement can be started, e.g after changing some parameters, as part of a script).
Hope this helps in understanding the mode a little bit better!

comment:5 Changed 5 months ago by acute

Status: needs_informationnew

comment:6 Changed 5 months ago by karsten

I didn't reply yet, because I'd like us to find a way to make it easy to change the traffic model and yet avoid adding too many new command-line parameters. Maybe we can make this work with #29370. See my latest comment from yesterday there.

comment:7 in reply to:  6 Changed 5 months ago by acute

Replying to karsten:

I didn't reply yet, because I'd like us to find a way to make it easy to change the traffic model and yet avoid adding too many new command-line parameters. Maybe we can make this work with #29370. See my latest comment from yesterday there.

Ah - thank you for the update!
Just had a look at #29370, and investigated the latest tgen documentation: It looks like we can make use of the count option to stop the measurement once we attempt a number of downloads! Supplying a traffic model would be by far more flexible, as it covers supporting different sizes of download as well.

Maybe once #29370 is implemented, we can get rid of oneshot mode entirely.

comment:8 Changed 5 months ago by gaba

Keywords: metrics-team-roadmap-2020 metrics-team-roadmap-2020-june added
Sponsor: Sponsor59Sponsor59-must

comment:9 Changed 5 months ago by karsten

We decided against implementing #29370 and concluded that we should make the current bulk transfer model more configurable by adding parameters like initial pause, transfer count, or filesize as part of this ticket.

In theory, this could mean that we can get rid of the oneshot mode, too, if the default model can be parameterized enough to do what we wanted the oneshot mode to do as part of this ticket.

comment:10 Changed 5 months ago by phw

Cc: metrics-team added
Owner: changed from metrics-team to phw
Status: newassigned

I'm snatching this ticket.

Note: See TracTickets for help on using tickets.