Shotgunning Ethernet Connections? 40
Jon Bardin asks: "I am currently living in a dorm at the University of South Florida. The dorms come wired straight to the Internet and my connection is pretty zippy, because I have seen 2 megabytes per second download speed. I was wondering if there was a way, with the new fancy 2.4 Linux kernel, that I could shotgun at least two of the eight ethernet ports in my suite together, as to effectively double or quadruple my download speed. It doesnt have to be a Linux solution either its just all this talk about the fancy TCP/IP stack and firewalling has me thinking about things. The ethernet ports are configured by DHCP and are reasonably static... I got a new IP when I got back from winter break. so any help would be greatly appreciated." This question gets asked a lot. I wasn't quite sure if this was possible for the 2.2.x kernels, but I figure it might be time to ask this now that 2.4 has been released.
Re:No, you probably can't do that. (Score:1)
Re:2MB per second? (Score:1)
"Anyone with this kind of bandwidth has to keep it pretty saturated to pay for it. I'm a heavy downloader, but I *never* *never* *never* max out the 330k/s theoretical limit on my cablemodem. "
First of all. Thats not alot of bandwith, thats about 1/3rd of a T3, a T3 is nothing now days. My local ISP has a OC12. OC48s are not uncommon, particular at universities and datacenters. Even OC192s. OC48 is only around 150K a month, affordable for places that need the bandwith like Yahoo or whatever. T3 is around 20-30K now days. T1 you can even get below 1K a month. And obviously you are not a heavy downloader, I get way more than that all the time. I get 500K from fast sites like Real.com, Mp3.com, Adobe.com, Microsoft.com,etc..
Re:2 Cable +1 DSL = Super fat pipe??? (Score:1)
Re:2MB per second? (Score:1)
Uh two or three T1's ain't jack anymore, especially those on Internet2 where connections can and do range from OC3 to OC48. Even for those not on Internet2, ds3's and OC3's are commonplace.
To answer the original poster, yes it is indeed possible. Routers routinely utilize multiple equal cost paths on a per-packet, per-flow, or per-destination (there are more too) basis depending on the switching method chosen. I don't see why hosts can't do this either. In fact some probably already do with the proper configuration.
-BRe:2MB per second? (Score:1)
Etherchannel will also work, if it is supported on your network.
-B
* This depends on your software. Some hosts will fill in the source address of the outbound interface (such as Cisco routers), and some will always use the same one.
Re:Yes you can. (Score:1)
Last century, when I was in school (1997), our only choice for a constant connection to the university network was a 19.2kbps connection that came in over the phone line. A single room could only have a single connection. You ran standard phone line into a Gandalf brand 'modem' device that the dorms provided and then ran a serial cable into your machine. You configured the corresponding com port on the box as a modem, and you were done. The big problem was that it was a hardwired connection to the dialup servers (e.g. telnet connection), not an IP connection, so you had to run a SLIP client on the box you were connecting to to get an IP stack on your machine.
So, 4 rooms (8 folks) ran phone line through the hall and put all 4 connections into one linux box, and then ran 10baseT to all 4 rooms. They would get anywhere from 50-70kbps throughput, which was pretty good for an 'always-on' connection at the time.
Out of the 6 folks in the 4 rooms, 3 of them played doom/quake amongst themselves all the time (not using the uplink), the other two didn't use the connections, so the 6th guy (who put it all together) had the entire downstream bandwidth to himself.
Something perhaps noone has considered (Score:1)
EtherChannel (Score:1)
One caveat about bonding multiple connections -- unless you're doing something like MultilinkPPP that "sprays" packets out you're not going to see a bandwidth increase on a single connection just by adding multiple pipes. In other words, if you have 2 T1's to the internet you're not going to see 2x1.5Mb/s on a single connection. By default a cisco router will load balance on a srcdst ip basis over each link.
Re:No, you probably can't do that. (Score:1)
Re:2MB per second? (Score:1)
------------------------------------
Re:Where's the BottleNeck? (Score:1)
Couldnt that give him a true 2MByte/s (20Mbit) connection?
In that case it is resonable for him to increase that lousy
In summary, then... (Score:1)
Re:2MB per second? (Score:1)
Im cable subscriber to finnish cable co called HTV which is no doupt suckiest ever even compared to @home in us. (=)) but still ive seen download speeds like >600kb/s. Well most of the time im happy if i even get 30-50kb/s but for example, if i happen to download new linux iso from funet i expect to see that 600kb/s. The top score ive got was from Edome (finnish game server/community website) and speed was 760kb/s !!! Thats double of your theoretical speed.
And you know what. My isp has said that theoretical speed of our cable modems is 30MB/s. Thats like 3000kb/s (ofcourse its slower than that but lets stick in theory) but 10MB ethernet cards and the fact that line is shared with others in the same segment restricts that quite much..
--
Re:2MB per second? (Score:1)
--
Re:2MB per second? (Score:1)
basically it can check the bandwidth of a connection.. Due to overhead, I was only able to pull something like 6.5MB over a 10MB (I think.. bit and byte has me confused when I'm talking about communications) ethernet connection.
-since when did 'MTV' stand for Real World Television instead of MUSIC television?
Re:2MB per second? (Score:1)
Yes, bandwidth is a drug. I miss it horribly when I go home to a cable modem.
I want my, I want my, I want my gig-base-T...
-dave
Re:2 Cable +1 DSL = Super fat pipe??? (Score:1)
When I want to play games, I add a route entry for the server I connect to, specifying to use my DSL, since it has lower latency and packetloss. My default route is over the cablemodem, so if I want a fast download, I don't have to specify anything.
I doubt it would work the same way on the university LAN question due to their setup, but it works great for my purposes.
It could probably be used in the multiple cablemodem/DSL question above, although I don't think the bultin Internet Connection Sharing could utilize the same thing and provide it to your LAN. Probably a third party app could do it, though. It would certainly work for the one computer, though, since it's basically what I'm doing.
Re:2 Cable +1 DSL = Super fat pipe??? (Score:1)
Re:This kid IS the BottleNeck? (Score:1)
Re:This kid IS the BottleNeck? (Score:1)
Re:This kid IS the BottleNeck? (Score:1)
Re:2 Cable +1 DSL = Super fat pipe??? (Score:1)
Aaron Plattner
Re:Where's the Jackbooted Neck? (Score:1)
Um, no. The man will just have his jackboots at both of your necks.
Of course, if your college's network is like the network I manage, not all of those 8 network ports at the faceplate in your dorm room are patched into the switch at the other end. I mean, if you and your roommate are the average case (only using 2 of the 8 ports), why should Network Services pay for 4 times as many hubs/switches just to have a bunch of live outlets gathering dust behind cheap dorm furniture?
You'll need to make friends with someone who can get to the patch panel and make sure those outlets are active before you can find out that they aren't any use because the bottleneck is that your school only has a single T1 line.
2 megabits (Score:1)
Re:2 Cable +1 DSL = Super fat pipe??? (Score:1)
2 Cable +1 DSL = Super fat pipe??? (Score:1)
No, you probably can't do that. (Score:2)
Now, if you're on switches (probably) and you were downloading from different places on different ports, you could probably get an improvement. However, I don't think it would improve things using all ports to download from the same port on the hub, because they still have to share the bandwidth incoming. This would depend on what the switch is using for uplink.
So, while it might be possible, I don't think it would do any good.
Re:Where's the BottleNeck? (Score:2)
Re:2MB per second? (Score:2)
It's possible to do Etherchannel, wher statistically you get more throughput, but only when dealing with a mmultitude of hosts... most etherchannel devices/configurations use the last 4 byhtes of the mac address to determine which port to use.
If you are hooknig a computer up to a plain old pair of network connections, you could balance out bound traffic over them.. but there's nothing you could do about incoming, and both ports would still require separate IP addresses.
Re:2MB per second? (Score:2)
10Mbps ethernet isn't just capped because it's shared; the 10Mbps is the signalling rate of the medium... when bits are clocked onto the wire, tehy are clocked on at exactly 10Mbps... but there are rules governing frame sizes, minimum inter-frame gaps, etc.....so it's impossible for 2 hosts (like you and a router) on 10Mbps ethernet to use the full 10Mbps, no matter what.
Re:Doesn't anyone answer questions around here? (Score:2)
It doesn't increas bandwidth to one place, only across multiple hosts, as it uses the last 4 digits of a mac address to balance traffic over the ports.
it's good for a server on a lan.. if there's a router in front of it before anything else, you'll only end up using one port anyway.
Similar to EQL, but not the same. in EQL, you actually get double the throughput.
Re:This kid IS the BottleNeck? (Score:2)
You think this is a bad example? The bandwidth the uni/dorms have isn't HIS to monopolise. He is actively taking resources away from other students who have an EQUAL right to the bandwidth as he does (it's not a matter of him being 'enterprising' to get around limitations).
Ethernet isn't the problem... (Score:2)
In other words, either open two TCP connections (remember back when Netscape used to open four connections at once to speed stuff up?) or hack your TCP implementation to be more aggressive.
And no, I'm not going to tell you how to do that.
USF (Score:2)
Bastard. When I was there we fought over the few dialup lines that had 14.4.
But to answer the question, I doubt the bottleneck is the 10BaseT between your machine and wherever the main line comes in. If you really are getting 2 megabytes per second, it's possible. Maybe you're better off begging for a 100BaseT connection. Or go get a job with Academic Computing, Engineering Computing, or some other place on campus with better bandwidth.
2MB per second? (Score:2)
Yes you can. (Score:3)
In 2.2 and later, using the iproute2 [freedom.org] interface, you can route traffic through multiple interfaces and connections will go through in a semi-equalized fasion. "ip route add default nexthop via <addr> dev <device>", and repeat for as many interfaces as you have.
This causes new connections to choose one or the other interfaces, a single connection's traffic goes through one or the other but not both. This is in 2.2 without the DiffServ [icawww1.epfl.ch] patches; patched 2.2 and stock 2.4 can make both interfaces be used equally instead of on a per connection basis with the equalize keyword on the ip command.
This kid IS the BottleNeck? (Score:3)
You asked, "Where is the BottleNeck?" Clearly this kid is trying to be the bottleneck. What antisocial technohuckstering! Gobbling up all the available bandwidth is just plain irresponsible. Why should other people suffer because this kid wants to download his pr0n/mp3s/vcds a little faster.
Its clear that this kid can't figure out how to load balance network devices on his own, can't understand why it doesn't make any difference when done on ethernet, and doesn't care to consider the impact he'll have on those who share his bandwidth if he is succesful. I believe the correct answer to a question of the type the kid posed is, "Sorry, can't help you. Maybe you should think a little more before go ahead with that."
Where's the BottleNeck? (Score:3)
I can't believe that your bottleneck is the ethernet connection itself. You say that you've topped out at two megabytes per second but I think you probably meant two megabits per second. That's a big difference.
For just a moment, let's assume you were right and the NIC in your box or your port is slowing you down. I agree with ATS [slashdot.org] that chances are you won't see a speed increase by adding a port since you're probably going to be hitting the same hub/switch. If you've got a 100mbps NIC and connection and are just hitting 2Mbps (or even 2MBps for that matter), your connection is the the bottleneck. The problem is further up stream.
Chances are, the university's internet connection is your bottleneck. Ask your college how phat a pipe they've got and work the math back from there.
The only other situation I can see where adding another port would help you is if the dorm ports are bandwidth limited at the switch. If that's the case, The Man might have his jackboot on your neck. If that's the case, adding a second line will free you.
The technical details of this quest are best left to the student.
InitZero
Doesn't anyone answer questions around here? (Score:3)
From the linux 2.4.0 configuration options:
Bonding driver support
CONFIG_BONDING
Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet Channels together. This is called 'Etherchannel' by Cisco, 'Trunking' by Sun, and 'Bonding' in Linux.
If you have two ethernet connections to some other computer, you can make them behave like one double speed connection using this driver. Naturally, this has to be supported at the other end as well, either with a similar Bonding Linux driver, a Cisco 5500 switch or a SunTrunking SunSoft driver.
This is similar to the EQL driver, but it merges Ethernet segments instead of serial lines.
If you want to compile this as a module ( = code which can be inserted in and removed from the running kernel whenever you want), say M here and read Documentation/modules.txt. The module will be called bonding.o.
There, at least one answer. I feel better now. Too bad I don't "reload" early in the day and post right away (meaning this will never get moderated up). Such is the way of slashdot.
Also, I should mention that I recently installed a HP2512 ethernet switch (you can find it on HP's web site....), and it had an option to connect up to four lines in parallel to another switch, for 400 Mbit/sec between the two. They have their manuals and even instructional training course material on-line, so you can learn quite a bit about it if you want.
Wait a minute.... (Score:5)
This is yet another demonstration of how broadband is like a drug. The more of it you get, the more of it you want. For instance, all of those slow AOL users don't want any more. But give them one hit of cable modem, and they go nuts.
You get 2 MEGABYTES/sec!!!!!! AND you want more!!!! My suggestion: stop now while you still can, broadband almost has you in its clutches. Once it gets hold, it never lets go. Run, run for your life, run while you still can.
</TONGUE IN CHEEK>