Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Implement tcp/ip bandwidth shaping for win7, how?

Reply
Thread Tools Display Modes

Implement tcp/ip bandwidth shaping for win7, how?

 
 
Fei Zhang
Guest
Posts: n/a

 
      07-01-2010
I wanna implement a traffic shaper for win7 to limit some application's
downloading speed.If I write a ndis IM driver and limit the
receiving speed from the IM driver, the IM driver should put the
application's rx frames into a queue to limit its receiving speed, that will
use out the NIC miniport driver's rx buffer so that the NIC will send pause
frame to the partner. Then all other application's receiving performance
will decline too. This is not what I expect.
And it seems that Winsock Kernel
and Windows Filtering Platform can't be used to shape traffic, limit
receiving speed, either. I know some firewall for xp uses TDI driver to
shape
traffic, but TDI is obsolete on win7 now. What should I do?
Any suggestions or any kind of keywords will be appreciated. Thanks a lot
in advance.



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5241 (20100630) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




 
Reply With Quote
 
 
 
 
Fei Zhang
Guest
Posts: n/a

 
      07-01-2010
It seems that WFP can implement it.
First of all WFP indicates data segments to STREAM and not IP packets. And
dropping data segments from STEAM layer will have no bearing on the seq#
that TCP acks the remote peer -- it would still ack the full amount
indicated and only withheld/discard the blocked section from the receiving
application. I'm a little confused not. If my WFP callout defer these
inbound packets, but the tcp stack still ack the full amount indicated, then
the remote peer will keep sending tcp packets. Then will the WFP callout
use out the memory?
Because teh WFP callout defer these packets and it should keep these
packets in memory until the WFP callout indicate these inbound packets
finally.
Thanks a lot.
Fei Zhang



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5241 (20100630) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




 
Reply With Quote
 
Pavel A.
Guest
Posts: n/a

 
      07-01-2010
"Fei Zhang" <> wrote in message
news:...
.............
> If my WFP callout defer these inbound packets, but the tcp stack still ack
> the full amount indicated, then the remote peer will keep sending tcp
> packets. Then will the WFP callout use out the memory?
> Because teh WFP callout defer these packets and it should keep these
> packets in memory until the WFP callout indicate these inbound packets
> finally.


WFP by itself does not defer data or consume lot of RAM.
Who makes the problem, is responsible to solve it. Use your creativity.
Or, install 64 bit version with more RAM

-pa


 
Reply With Quote
 
Fei Zhang
Guest
Posts: n/a

 
      07-06-2010
Thank you Pavel very much for your greate help.
I'm a little confused about the WFP api names yet, such as
FwpsCalloutRegister( ) and FwpmCalloutAdd, what does 'Fwps' and 'Fwpm' refer
to? Why don't they use the same prefix 'WFP'?
Thanks
Fei Zhang



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5253 (20100705) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how about implement network bandwidth shaping for win7? Fei Zhang Windows Vista Drivers 5 07-02-2010 07:55 AM
Re: DC with "Windows cannot obtain the domain controller name for your computer network" Danny Sanders Active Directory 0 01-21-2010 02:26 PM
active sync issue mk3100 patrick craig ActiveSync 0 01-15-2010 05:06 AM
Re: Incorrect server name Ace Fekay [MCT] Windows Server 4 10-28-2009 02:17 PM
Syncing error in Activesync Michael Kenny ActiveSync 4 01-25-2007 07:29 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59