Network interface bandwidth setting

This is a discussion on Network interface bandwidth setting within the Linux Networking forums, part of the Linux Forums category; Does anyone know how to change the network interface setting in Linux? <---------100Mbps------------> PC1 <------->Switched Hub&...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-29-2003
Ben B
 
Posts: n/a
Default Network interface bandwidth setting

Does anyone know how to change the network interface setting in Linux?
<---------100Mbps------------>
PC1 <------->Switched Hub<------->PC2

For instance, I would like to change the link (PC1 to PC2) from 100Mbps
downto 1Mbps.

Thanks,
Ben B


Reply With Quote
  #2 (permalink)  
Old 12-31-2003
Yves Cognet
 
Posts: n/a
Default Re: Network interface bandwidth setting

change tcp buffer size on both machine and this will lower the bandwidth
(bandwith=RTT*buffer_size)
"Ben B" <benjamin.bappu@bt.com> a écrit dans le message de
news:bspnfs$kld$1@visp.bt.co.uk...
> Does anyone know how to change the network interface setting in Linux?
> <---------100Mbps------------>
> PC1 <------->Switched Hub<------->PC2
>
> For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> downto 1Mbps.
>
> Thanks,
> Ben B
>
>



Reply With Quote
  #3 (permalink)  
Old 12-31-2003
Ben B
 
Posts: n/a
Default Re: Network interface bandwidth setting

I got it working with this:
tc qdisc add dev eth0 root tbf rate 1Mbit buffer 200kB limit 100kB

Cheers,
Ben B

"Yves Cognet" <yves_cognet@imedia-tech.com> wrote in message
news:bsu7e9$vjr$1@news-reader4.wanadoo.fr...
> change tcp buffer size on both machine and this will lower the bandwidth
> (bandwith=RTT*buffer_size)
> "Ben B" <benjamin.bappu@bt.com> a écrit dans le message de
> news:bspnfs$kld$1@visp.bt.co.uk...
> > Does anyone know how to change the network interface setting in Linux?
> > <---------100Mbps------------>
> > PC1 <------->Switched Hub<------->PC2
> >
> > For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> > downto 1Mbps.
> >
> > Thanks,
> > Ben B
> >
> >

>
>



Reply With Quote
  #4 (permalink)  
Old 01-02-2004
Jeroen Geilman
 
Posts: n/a
Default Re: Network interface bandwidth setting

Ben B wrote:
> Does anyone know how to change the network interface setting in Linux?
> <---------100Mbps------------>
> PC1 <------->Switched Hub<------->PC2
>
> For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> downto 1Mbps.


You can't.
Fast Ethernet has two link speeds, normal (10mbit) and fast (100mbit).

You can easily force the segment to run on 10mbit by forcing one
interface to 10mbit and setting the other to auto (default), but to slow
it down any more you'll have to apply bandwidth throttling.

No, I'm not contradicting myself - your question was "I want to change
the *link* speed" - which you can't.

Limiting the bandwidth is certainly possible, see Ben's reply.

I'm none too sure about the advisability of lowering the tcp buffer
size, since this may well have adverse side-effects.
Reply With Quote
  #5 (permalink)  
Old 01-02-2004
Kerry Cox
 
Posts: n/a
Default Re: Network interface bandwidth setting

Why not simply use "mii-tool"?
# /sbin/mii-tool eth0 -F 10baseTx-HD
If he wants to set it for full duplex, then change the HD to FD.
Likewise, "ethtool" will do the same for more recent versions.
Hope that helps.
KJ


Jeroen Geilman <jeroen@nospam.net> wrote in message news:<3ff4dee3$0$325$e4fe514c@news.xs4all.nl>...
> Ben B wrote:
> > Does anyone know how to change the network interface setting in Linux?
> > <---------100Mbps------------>
> > PC1 <------->Switched Hub<------->PC2
> >
> > For instance, I would like to change the link (PC1 to PC2) from 100Mbps
> > downto 1Mbps.

>
> You can't.
> Fast Ethernet has two link speeds, normal (10mbit) and fast (100mbit).
>
> You can easily force the segment to run on 10mbit by forcing one
> interface to 10mbit and setting the other to auto (default), but to slow
> it down any more you'll have to apply bandwidth throttling.
>
> No, I'm not contradicting myself - your question was "I want to change
> the *link* speed" - which you can't.
>
> Limiting the bandwidth is certainly possible, see Ben's reply.
>
> I'm none too sure about the advisability of lowering the tcp buffer
> size, since this may well have adverse side-effects.

Reply With Quote
  #6 (permalink)  
Old 01-05-2004
Ben B
 
Posts: n/a
Default Re: Network interface bandwidth setting

This is excatly what I was looking for!!!

Cheers,
Ben B

"Kerry Cox" <kerry.cox@ksl.com> wrote in message
news:4b080d14.0401021025.2dbf3b43@posting.google.c om...
> Why not simply use "mii-tool"?
> # /sbin/mii-tool eth0 -F 10baseTx-HD
> If he wants to set it for full duplex, then change the HD to FD.
> Likewise, "ethtool" will do the same for more recent versions.
> Hope that helps.
> KJ
>
>
> Jeroen Geilman <jeroen@nospam.net> wrote in message

news:<3ff4dee3$0$325$e4fe514c@news.xs4all.nl>...
> > Ben B wrote:
> > > Does anyone know how to change the network interface setting in Linux?
> > > <---------100Mbps------------>
> > > PC1 <------->Switched Hub<------->PC2
> > >
> > > For instance, I would like to change the link (PC1 to PC2) from

100Mbps
> > > downto 1Mbps.

> >
> > You can't.
> > Fast Ethernet has two link speeds, normal (10mbit) and fast (100mbit).
> >
> > You can easily force the segment to run on 10mbit by forcing one
> > interface to 10mbit and setting the other to auto (default), but to slow
> > it down any more you'll have to apply bandwidth throttling.
> >
> > No, I'm not contradicting myself - your question was "I want to change
> > the *link* speed" - which you can't.
> >
> > Limiting the bandwidth is certainly possible, see Ben's reply.
> >
> > I'm none too sure about the advisability of lowering the tcp buffer
> > size, since this may well have adverse side-effects.



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0