limit network traffic

U

Ulf

Hi,

is there any way to programmatically limit the network traffic received
on a network adapter in C# ?
I need to simulate different speeds over an ADSL connection and run
tests covering speed limits from 1Mbps to 8Mbps on a single machine. So
far I found a shareware (NetLimiter) that pretty much covers my needs,
but I'd rather find a programming solution I could include in my
testscripts.

Thx :)

Ulf
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

there is no direct way of doing that in the framework, your best shot is
WMI, now IIRC there is some called QoS in the NIC, this is what you have to
ckeck into.
Do a sarch in google groups , look into the windows groups ( including no
..net ) probably you will find a solution and all you would have to do is
port it to .net :)

cheers,
 
V

Vadym Stetsyak

Basically network traffic limiting is made in the LSP ( Layered Socket
Provider ). More advanced programs use device drivers for that...

So no .NET here.

AFAIK you can develop an LSP or device driver endpoint ( unmanaged ) and
control endpoint ( managed ).

If you will consider device driver solution - there are already sample
drivers that can nearly satisfy your needs...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top