Hi Noam,

The minimum speed of 8k is set in lfd_shaper.c:
> 50:     max_speed = host->spd_out / 8 * 1024;

It's primitive, but that's the number.  It could be (hacked out to a 
#define and then) tuned to a lower number, if you wanted, but it would 
be a compilation you'd have to build and support on your own.

(Oh, for this to be in a pluggable module)

Of course, what's immediately after that?

>      /* Compensation for delays, nanosleep and so on */
>      max_speed += 400;

The arbitrary padding, to account for delays in transit, would be larger 
than your custom tuning.  You should expect, even in a best case, some 
kind of jitter in that regard, even if you ripped that out completely.

You may also want to redo the timing in lfd_shaper so that it's more 
granular than per-second.

Sorry you got invited to the wrong list:  the question looked a lot like 
a config question until about the 5th or 6th re-write of my note here. 
It's most definitely a coding question, and your message was definitely 
targeted at the right list.

  - bish

> Hello,
> 
> I saw in the documentation that currently the lowest configurable
> speed for vtun is 8 Kb/s.
> Is there a good reason for that?
> I want to simulate a very low bandwidth medium - 128 bits per second.
> Is it possible for me to tweak vtun to do that?
> Would it work?
> 
> Thanks,
> 
> Noam.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
VTun-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vtun-devel

Reply via email to