About WFP limit upload speed

Hi everybody.

I want to limit process TCP uploading speed. There are some methods:

  1. block the packet trying to send
  2. block the ACK receiving from receiver.
  3. other ?

For method 1, it is excatly right while block in MAC Layer(FWPS_LAYER_OUTBOUND_MAC_FRAME_ETHERNET, Depending on the TCP retransmission mechanism), but it is not supported in Win7. Obviously, we can not block sending packet on IPPACKET, TRANSPORT, STREAM etc layer, because TCP retransmission machanism is not effective yet.

For method 2, I try to discard the ACK packet , but it is not work correctly on IPPACKET, TRANSPORT layer etc. It seems that TCPIP.sys had get the ACK packet information before call the callout function .

Are there any other method using WFP in Win7 ?

Look forward to your help, thanks.