Hello,
I want to know if there is any way that I can control the speed of the net
card. For example, I am using a 100M netcard, and I want to it to run at
10M.
Any hints?
Anthony
Hello,
I want to know if there is any way that I can control the speed of the net
card. For example, I am using a 100M netcard, and I want to it to run at
10M.
Any hints?
Anthony
Anthony,
If you card is a 10/100MB card, your card detects the speed of
your network and uses the optimum speed. If you want to manually set the
speed in case of 10/100MB environment you need to use the configuration
utility provided by the net card manufacturer to do it.
-Srin.
-----Original Message-----
From: Anthony [mailto:xxxxx@hotmail.com]
Sent: Monday, July 21, 2003 9:16 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] How to control net card’s speed?Hello,
I want to know if there is any way that I can control the speed of
the
net
card. For example, I am using a 100M netcard, and I want to it to run
at
10M.Any hints?
Anthony
You are currently subscribed to ntdev as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Hello Srin
Thanks for your comments.
Your words are pretty right. But what I intend is to control it in my NDIS
driver.
Any sense?
Anthony
??? news:xxxxx@ntdev…
Anthony,
If you card is a 10/100MB card, your card detects the speed of
your network and uses the optimum speed. If you want to manually set the
speed in case of 10/100MB environment you need to use the configuration
utility provided by the net card manufacturer to do it.
-Srin.
> -----Original Message-----
> From: Anthony [mailto:xxxxx@hotmail.com]
> Sent: Monday, July 21, 2003 9:16 PM
> To: Windows System Software Developers Interest List
> Subject: [ntdev] How to control net card’s speed?
>
> Hello,
>
> I want to know if there is any way that I can control the speed of
the
> net
> card. For example, I am using a 100M netcard, and I want to it to run
at
> 10M.
>
> Any hints?
>
> Anthony
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
You mean miniport driver or IM driver?
-Srin.
-----Original Message-----
From: Anthony [mailto:xxxxx@hotmail.com]
Sent: Monday, July 21, 2003 10:02 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: How to control net card’s speed?Hello Srin
Thanks for your comments.
Your words are pretty right. But what I intend is to control it in
my
NDIS
driver.Any sense?
Anthony
??? news:xxxxx@ntdev…
>
> Anthony,
> If you card is a 10/100MB card, your card detects the speed of
> your network and uses the optimum speed. If you want to manually set
the
> speed in case of 10/100MB environment you need to use the
configuration
> utility provided by the net card manufacturer to do it.
>
> -Srin.
>
> > -----Original Message-----
> > From: Anthony [mailto:xxxxx@hotmail.com]
> > Sent: Monday, July 21, 2003 9:16 PM
> > To: Windows System Software Developers Interest List
> > Subject: [ntdev] How to control net card’s speed?
> >
> > Hello,
> >
> > I want to know if there is any way that I can control the speed of
> the
> > net
> > card. For example, I am using a 100M netcard, and I want to it to
run
> at
> > 10M.
> >
> > Any hints?
> >
> > Anthony
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
IM driver. (BTW, I aming programming based on PASSTHRU.)
So any more hints?
Anthony
??? news:xxxxx@ntdev…
You mean miniport driver or IM driver?
-Srin.
> -----Original Message-----
> From: Anthony [mailto:xxxxx@hotmail.com]
> Sent: Monday, July 21, 2003 10:02 PM
> To: Windows System Software Developers Interest List
> Subject: [ntdev] Re: How to control net card’s speed?
>
> Hello Srin
>
> Thanks for your comments.
>
> Your words are pretty right. But what I intend is to control it in
my
> NDIS
> driver.
>
> Any sense?
>
> Anthony
>
> ??? news:xxxxx@ntdev…
>
> Anthony,
> If you card is a 10/100MB card, your card detects the speed of
> your network and uses the optimum speed. If you want to manually set
the
> speed in case of 10/100MB environment you need to use the
configuration
> utility provided by the net card manufacturer to do it.
>
> -Srin.
>
> > -----Original Message-----
> > From: Anthony [mailto:xxxxx@hotmail.com]
> > Sent: Monday, July 21, 2003 9:16 PM
> > To: Windows System Software Developers Interest List
> > Subject: [ntdev] How to control net card’s speed?
> >
> > Hello,
> >
> > I want to know if there is any way that I can control the speed of
> the
> > net
> > card. For example, I am using a 100M netcard, and I want to it to
run
> at
> > 10M.
> >
> > Any hints?
> >
> > Anthony
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
Anthony,
Can you explain what you are trying to do? Are you trying to do
some sort of throttling of network traffic? Are you trying to make 10
MBbps only card work on 100MBbps network, or the other way?
If it is throttling there is no magic method, you can find the current
speed of the card using OID_GEN_LINK_SPEED and then do throttling. If
you are trying to do the latter I believe it is not possible.
-Srin.
-----Original Message-----
From: Anthony [mailto:xxxxx@hotmail.com]
Sent: Monday, July 21, 2003 10:27 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: How to control net card’s speed?IM driver. (BTW, I aming programming based on PASSTHRU.)
So any more hints?
Anthony
??? news:xxxxx@ntdev…
>
> You mean miniport driver or IM driver?
>
> -Srin.
>
> > -----Original Message-----
> > From: Anthony [mailto:xxxxx@hotmail.com]
> > Sent: Monday, July 21, 2003 10:02 PM
> > To: Windows System Software Developers Interest List
> > Subject: [ntdev] Re: How to control net card’s speed?
> >
> > Hello Srin
> >
> > Thanks for your comments.
> >
> > Your words are pretty right. But what I intend is to control it in
> my
> > NDIS
> > driver.
> >
> > Any sense?
> >
> > Anthony
> >
> > ??? news:xxxxx@ntdev…
> >
> > Anthony,
> > If you card is a 10/100MB card, your card detects the speed of
> > your network and uses the optimum speed. If you want to manually set
> the
> > speed in case of 10/100MB environment you need to use the
> configuration
> > utility provided by the net card manufacturer to do it.
> >
> > -Srin.
> >
> > > -----Original Message-----
> > > From: Anthony [mailto:xxxxx@hotmail.com]
> > > Sent: Monday, July 21, 2003 9:16 PM
> > > To: Windows System Software Developers Interest List
> > > Subject: [ntdev] How to control net card’s speed?
> > >
> > > Hello,
> > >
> > > I want to know if there is any way that I can control the speed
of
> > the
> > > net
> > > card. For example, I am using a 100M netcard, and I want to it to
> run
> > at
> > > 10M.
> > >
> > > Any hints?
> > >
> > > Anthony
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@nai.com
> > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> >
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
Hello Srin,
I want to do a IM driver which can filter the packet and control the
netcard speed. In another word, I want my 100M card to run at 10M.
As you said, I can filter OID, then set OID_GEN_LINK_SPEED to my value.
Then I check the OID_GEN_LINK_SPEED, I find it has been successfully
revised.
But unfortunately, the real speed remail the same. The download speed(from
a computer in the same localnet) is the same as ever.
Following your advice, I use the netcard utility to revise the speed, it
works well.
So there are two questions:
I have revised OID_GEN_LINK_SPEED value in my IM driver successfully, but
it seems that the physical card ingore it?
I can use the card utility to revise the netcard speed successfully. Is
it the only way?
Anthony
??? news:xxxxx@ntdev…
Anthony,
Can you explain what you are trying to do? Are you trying to do
some sort of throttling of network traffic? Are you trying to make 10
MBbps only card work on 100MBbps network, or the other way?
If it is throttling there is no magic method, you can find the current
speed of the card using OID_GEN_LINK_SPEED and then do throttling. If
you are trying to do the latter I believe it is not possible.
-Srin.
> -----Original Message-----
> From: Anthony [mailto:xxxxx@hotmail.com]
> Sent: Monday, July 21, 2003 10:27 PM
> To: Windows System Software Developers Interest List
> Subject: [ntdev] Re: How to control net card’s speed?
>
> IM driver. (BTW, I aming programming based on PASSTHRU.)
>
> So any more hints?
>
> Anthony
> ??? news:xxxxx@ntdev…
>
> You mean miniport driver or IM driver?
>
> -Srin.
>
> > -----Original Message-----
> > From: Anthony [mailto:xxxxx@hotmail.com]
> > Sent: Monday, July 21, 2003 10:02 PM
> > To: Windows System Software Developers Interest List
> > Subject: [ntdev] Re: How to control net card’s speed?
> >
> > Hello Srin
> >
> > Thanks for your comments.
> >
> > Your words are pretty right. But what I intend is to control it in
> my
> > NDIS
> > driver.
> >
> > Any sense?
> >
> > Anthony
> >
> > ??? news:xxxxx@ntdev…
> >
> > Anthony,
> > If you card is a 10/100MB card, your card detects the speed of
> > your network and uses the optimum speed. If you want to manually set
> the
> > speed in case of 10/100MB environment you need to use the
> configuration
> > utility provided by the net card manufacturer to do it.
> >
> > -Srin.
> >
> > > -----Original Message-----
> > > From: Anthony [mailto:xxxxx@hotmail.com]
> > > Sent: Monday, July 21, 2003 9:16 PM
> > > To: Windows System Software Developers Interest List
> > > Subject: [ntdev] How to control net card’s speed?
> > >
> > > Hello,
> > >
> > > I want to know if there is any way that I can control the speed
of
> > the
> > > net
> > > card. For example, I am using a 100M netcard, and I want to it to
> run
> > at
> > > 10M.
> > >
> > > Any hints?
> > >
> > > Anthony
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@nai.com
> > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> >
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
On Tue, 2003-07-22 at 01:03, Anthony wrote:
I want to do a IM driver which can filter the packet and control the
netcard speed. In another word, I want my 100M card to run at 10M.
Build a packet queue in the IM driver and time your writes to the wire
so it winds up at 10Mbps. This is bound to be more reliable than
hard-setting the NIC, unless you know exactly which NIC will always be
used with your IM.
Anthony,
See the inline comments.
I want to do a IM driver which can filter the packet and control the
netcard speed. In another word, I want my 100M card to run at 10M.
[Kumar, Srin] This is possible by code which controls the rate at which
you are sending packets to net card.As you said, I can filter OID, then set OID_GEN_LINK_SPEED to my
value.
Then I check the OID_GEN_LINK_SPEED, I find it has been successfully
revised.
[Kumar, Srin] Sorry, if I did not communicate properly.
OID_GEN_LINK_SPEED is used to query. After the query you know what the
current net card speed is so when you are throttling the traffic you do
not set the value above this.
I am surprised set of OID_GEN_LINK_SPEED actually succeeded.
Developers of miniport driver of nic card could have made effort to make
the set command work, But I believe that would be too much of effort for
nothing. If you see the DDK docs OID_GEN_LINK_SPEED for query is
mandatory for set it is not even optional (not specified, so dev need
not implement)Following your advice, I use the netcard utility to revise the speed,
it
works well.So there are two questions:
I have revised OID_GEN_LINK_SPEED value in my IM driver
successfully,
but
it seems that the physical card ingore it?
[Kumar, Srin] I am not surprised. If I were the developer of miniport
driver I would return you an error for set command of
OID_GEN_LINK_SPEED.I can use the card utility to revise the netcard speed
successfully. Is
it the only way?
[Kumar, Srin] Yes, it is the only if you have to change the speed
without doing throttling. The mechanism used by the utility is card
dependent. Even for the same vendor it is not same.Anthony
??? news:xxxxx@ntdev…
>
> Anthony,
> Can you explain what you are trying to do? Are you trying to do
> some sort of throttling of network traffic? Are you trying to make 10
> MBbps only card work on 100MBbps network, or the other way?
>
> If it is throttling there is no magic method, you can find the current
> speed of the card using OID_GEN_LINK_SPEED and then do throttling. If
> you are trying to do the latter I believe it is not possible.
>
> -Srin.
>
> > -----Original Message-----
> > From: Anthony [mailto:xxxxx@hotmail.com]
> > Sent: Monday, July 21, 2003 10:27 PM
> > To: Windows System Software Developers Interest List
> > Subject: [ntdev] Re: How to control net card’s speed?
> >
> > IM driver. (BTW, I aming programming based on PASSTHRU.)
> >
> > So any more hints?
> >
> > Anthony
> > ??? news:xxxxx@ntdev…
> >
> > You mean miniport driver or IM driver?
> >
> > -Srin.
> >
> > > -----Original Message-----
> > > From: Anthony [mailto:xxxxx@hotmail.com]
> > > Sent: Monday, July 21, 2003 10:02 PM
> > > To: Windows System Software Developers Interest List
> > > Subject: [ntdev] Re: How to control net card’s speed?
> > >
> > > Hello Srin
> > >
> > > Thanks for your comments.
> > >
> > > Your words are pretty right. But what I intend is to control it
in
> > my
> > > NDIS
> > > driver.
> > >
> > > Any sense?
> > >
> > > Anthony
> > >
> > > ??? news:xxxxx@ntdev…
> > >
> > > Anthony,
> > > If you card is a 10/100MB card, your card detects the speed of
> > > your network and uses the optimum speed. If you want to manually
set
> > the
> > > speed in case of 10/100MB environment you need to use the
> > configuration
> > > utility provided by the net card manufacturer to do it.
> > >
> > > -Srin.
> > >
> > > > -----Original Message-----
> > > > From: Anthony [mailto:xxxxx@hotmail.com]
> > > > Sent: Monday, July 21, 2003 9:16 PM
> > > > To: Windows System Software Developers Interest List
> > > > Subject: [ntdev] How to control net card’s speed?
> > > >
> > > > Hello,
> > > >
> > > > I want to know if there is any way that I can control the
speed
> of
> > > the
> > > > net
> > > > card. For example, I am using a 100M netcard, and I want to it
to
> > run
> > > at
> > > > 10M.
> > > >
> > > > Any hints?
> > > >
> > > > Anthony
> > > >
> > > >
> > > >
> > > > —
> > > > You are currently subscribed to ntdev as: xxxxx@nai.com
> > > > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> > >
> > >
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@nai.com
> > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> >
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@nai.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nai.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
> As you said, I can filter OID, then set OID_GEN_LINK_SPEED to my value.
Then I check the OID_GEN_LINK_SPEED, I find it has been successfully
OID_GEN_LINK_SPEED is read-only.
The PHY speed is auto-chosen based on hub-to-card low-level negotiation. Looks
like the only way of controlling it is “Transceiver Type” combo present for
some network drivers, and this is extremely hardware-specific. I don’t think
there is a card-independent way of doing this.
Max
In an NDIS IM driver, on WinXX, is it really likely to work to “time”
packet writes? That is, there is all the real-time mushiness of the OS
itself, and there is the fact that the IM driver merely hands down
packets to somebody, who will send them down (perhaps to another driver)
at some point or other. And, so far as I can imagine, the concerned IM
driver has no way of measuring the actual timing of the packets reaching
the card itself.
–
If replying by e-mail, please remove “nospam.” from the address.
James Antognini
Windows DDK MVP
James,
But you can always drop the packets when you find the number of packets/data passed in past x minutes has surpassed the threshold value.
-Srin.
-----Original Message-----
From: James Antognini [mailto:xxxxx@mindspring.nospam.com]
Sent: Tuesday, July 22, 2003 12:06 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: How to control net card’s speed?
In an NDIS IM driver, on WinXX, is it really likely to work to “time”
packet writes? That is, there is all the real-time mushiness of the OS
itself, and there is the fact that the IM driver merely hands down
packets to somebody, who will send them down (perhaps to another driver)
at some point or other. And, so far as I can imagine, the concerned IM
driver has no way of measuring the actual timing of the packets reaching
the card itself.
–
If replying by e-mail, please remove “nospam.” from the address.
James Antognini
Windows DDK MVP
You are currently subscribed to ntdev as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
On Tue, 2003-07-22 at 14:06, James Antognini wrote:
In an NDIS IM driver, on WinXX, is it really likely to work to “time”
packet writes?
Well, you can definately get in the right neighborhood. If you set,
e.g., a 1 second timer, you know that it’ll take at least 1 second
(within reason). The extra overhead might slow down his 10Mbps data
rate a bit, but it’d be close.
> But you can always drop the packets when you find the number of packets/data
passed in
past x minutes has surpassed the threshold value.
This can drive TCP’s slow start/congestion avoidance really mad.
Max
That’s what concerned me: An IM driver, by delaying, can ensure only a
ceiling on throughput.
–
If replying by e-mail, please remove “nospam.” from the address.
James Antognini
Windows DDK MVP
I suggest doing this in an NDIS hooking filter. You would want to delay
everything by a timer as said earlier.
Of course you would need to create a worker thread for receives and sends.
Receives are a special case where you are going to need to copy the entire
packet into your own packet, them put into your worker queue for the worker
thread, since receives are done at dispatch level.
Sends are easy since they are below dispatch level, you can queue to your
worker thread and then just return status pending.
Also, so as to not freak out TCP as much you may wish to hook the
OID_GEN_LINK_SPEED call and return the speed you want to TCP.
Of course there are drawbacks to this approach, as I’m sure several people
on this list will tell you.
-Jeff
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Tuesday, July 22, 2003 5:51 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] Re: How to control net card’s speed?
But you can always drop the packets when you find the number of
packets/data
passed in
past x minutes has surpassed the threshold value.
This can drive TCP’s slow start/congestion avoidance really mad.
Max
You are currently subscribed to ntdev as: xxxxx@concord.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
the latest virus scan software available for the presence of computer
viruses.
**********************************************************************
On Tue, 2003-07-22 at 17:43, James Antognini wrote:
That’s what concerned me: An IM driver, by delaying, can ensure only a
ceiling on throughput.
That was the OP’s goal, wasn’t it? If not, my apologies for leading you
around in a circle. ![]()
btw- please quote some of the previous post.
-sd
Hello all tops,
Now I know it is useless to control the netcard’s speed by revising
OID_GEN_LINK_SPEED.
But to my surprise, I can configure the speed value in windows interface
by revising the netcard properties.( I think all of you know this way :)) I
believe there must be a related way to control the speed in kernel model.
As you said, I can query the send/receive packets for a certain second.
But I am lazy though I think it is an efficient way.
Now I just delay 1/10000 second to handle the send/receive procedures,
then my 100M netcard runs at 10M. :>
Anthony
Reading the original question, I had the idea the goal was the speed of
a 10M card, not something unpredictably less than 10M.
I do quote when I think the reference is uncertain.
–
If replying by e-mail, please remove “nospam.” from the address.
James Antognini
Windows DDK MVP
Hello Jamesn,
I am puzzled about your comments. What do you mean?
In fact, no matter the default speed of a certain netcard, I only want to
find a way to control it.
Anthony
“James Antognini” ??? news:xxxxx@ntdev…
>
> Reading the original question, I had the idea the goal was the speed of
> a 10M card, not something unpredictably less than 10M.
>
> I do quote when I think the reference is uncertain.
>
> –
> If replying by e-mail, please remove “nospam.” from the address.
>
> James Antognini
> Windows DDK MVP
>
>
>
>