473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

limit network traffic

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

Nov 17 '05 #1
2 3705
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Ulf" <wa******@aol.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 17 '05 #2
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...
--
Vadym Stetsyak aka Vadmyst

"Ulf" <wa******@aol.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hannu | last post by:
Hi. In the ldb file you can see the users of the mdb-file. If you open the mdb-file your machine and username will be written in the lbd- file. Allthough you close the mdb-file your name won't...
4
by: jayderk | last post by:
Hello all, I am having a problem with one of my desktop applications and was wondering if any of you know of a good tool I can use to monitor traffic in and out of my network card? this is a...
3
by: Omega | last post by:
Hi In serveral firewall softwares you can block network traffic quickly with one click, can I do the same in c# ? Thanks
0
by: Ulf | last post by:
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...
16
by: google | last post by:
Hello, I am working on an Acc2003 app for my company. In the interest of reducing chances of corruption due to unstable network connectivity, I would like to either prevent users from running it...
3
by: LucaBrasi | last post by:
I am curious about how Access 2000 handles network requests for data. I have the data on a back-end server, and the front-end is installed on the local machine. Now, lets say I have a select query...
0
by: akhtar | last post by:
How to secure your network Check this article to know how a network analyzer continuously monitors traffic on network and provides detailed information about critical problems, virus attacks and...
7
by: Marc Bartsch | last post by:
Hi, I have a background worker in my C# app that makes a synchronous HttpWebRequest.GetResponse() call. The idea is to POST a file to a server on the internet. When I call HttpWebRequest.Abort()...
1
by: maverickman4 | last post by:
background/setup info: so we have a network set up of about 23 computers including our server which is running windows 2003 standard. we have an incredible amount of traffic going to that server due...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.