Slashdot Mirror


Can You Purchase Switch Hardware Without an OS?

dhahn asks: "I have a project where I'm building a large Linux router (about 40 ports or so). At this point, my only hardware solution is to purchase a box with lots of PCI-ish slots and fill them multi-port ethernet cards. I've looked into currently available solutions and haven't found anything that gives me the control I want. Does anyone know of where I could purchase a 'naked switch?' I just want the switch hardware with enough guts to allow me to customize a Linux OS and load it up." If anyone else has been in this situation, what did you do?

70 comments

  1. VLAN by bartjan · · Score: 4, Interesting

    Why not use any managable switch, configure each port into its own vlan, hook up the Linux box to a trunk port and use Linux's vlan support, like anyone else does?

    1. Re:VLAN by Archeopteryx · · Score: 1

      That is an excellent suggestion!

      --
      Dog is my co-pilot.
    2. Re:VLAN by lukas84 · · Score: 1

      There's the obvious downside to this that you will not get enough bandwidth out of this.

      The real question is, what speaks against a Level 3 Switch from a reputable vendor?

      Or if a L3 switch doesn't offer enough options, a rather expensive and huge real router?

    3. Re:VLAN by Cecil · · Score: 2, Insightful

      That doesn't seem like a great solution. It's possible I don't understand what you're suggesting, my experience with high end switches is limited, but from what I understand, if I've got Port A transferring to Port B at 100Mbps, and port C transferring to port D at 100Mbps, it would all have to go over the the same trunk (twice!) to be switched by the Linux box, no? Even if the trunk was gigabit and the ports only 100mbps, you can still only have at most 8 ports transferring before you've saturated your switch. If the ports are all gigabit, then you've just hamstrung yourself completely, no?

      If you want to correct me, go ahead, I am a networking newbie, but that just doesn't seem efficient to me compared to actually running Linux at the switch's hardware level.

    4. Re:VLAN by otacon · · Score: 1

      I'd have to agree with you, I don't see what advantage using linux over say Cisco IOS would be. Unless he is trying to run linux for the sake of running linux. However this company http://www.synergymicro.com/ Produces a variety of single board computers that address a diverse range of high-end computing needs. Their PowerPC-based multiprocessor boards run embedded Linux. If you are dead set on Linux switching

      --
      In a world of acronyms, the words are the real victims.
    5. Re:VLAN by TheSHAD0W · · Score: 1

      He's going to have bottlenecks trying to gate 40 ports to each other anyway, even if they're on PCI or PCI Express.

    6. Re:VLAN by silas_moeckel · · Score: 2, Informative

      Your numbers are fairly correct, the biggest interface that you can buy for a PC is 10ge assuming multiple cards per server you can get some decent bandwidth. Now PC's are not designed to do this they have high latency's and comparatively slow bus speeds as compared to say a cisco 6509 (very common managed switch) I would assume that they are looking to something more complex than just switching.

      --
      No sir I dont like it.
    7. Re:VLAN by ckdake · · Score: 1

      Performance is definitely going to be an issue. Switches and Routers are _much_ different than ethernet cards in a box. If you wanted to do non-blocking wire speed transfers through your 40 port router, your PCI bus would need to be able to handle a _lot_ of traffic. Not only would it need to be atleast 40x the speed of your interfaces to prevent queuing delays on ports, but it would need to be twice again as fast because all the data would have to go nic->cpu->nic (real switches do most processing on the line cards that the interfaces are on "fast path", only thing that require extra processing like source routed packets need to take the "slow path" and hit the CPU) Perhaps if you explained more about the goals of your project, someone might be able to give feedback on a better way to do things?

    8. Re:VLAN by bartjan · · Score: 1

      You can put more than 1 port into the trunk. This way, switch and link are not the bottle neck. PCI is.

    9. Re:VLAN by Anonymous Coward · · Score: 0
      That doesn't seem like a great solution. It's possible I don't understand what you're suggesting, my experience with high end switches is limited, but from what I understand, if I've got Port A transferring to Port B at 100Mbps, and port C transferring to port D at 100Mbps, it would all have to go over the the same trunk (twice!) to be switched by the Linux box, no? Even if the trunk was gigabit and the ports only 100mbps, you can still only have at most 8 ports transferring before you've saturated your switch. If the ports are all gigabit, then you've just hamstrung yourself completely, no?

      No Linux server has enough processing power to route 40 gigabits of traffic across 40 interfaces in the first place. You are out of your depth here.

    10. Re:VLAN by Leroy+Brown · · Score: 1

      So use a layer 3 switch, and if you'd like, bond multiple ports to your Linux-based router using LACP.

    11. Re:VLAN by Short+Circuit · · Score: 1

      Putting multiport NICs on a PCI bus doesn't do well for bandwidth, either. His PCI bus runs at 32bits x 33MHz...that's only a gigabit of shared bandwidth. He should also remember that each packet is going to cross that bus twice...once on the way to the CPU, then again on the way back to the destination NIC.

      I might want to add that if he goes the multiport NIC route, he's going to need a minimum of Gigabit Ethernet, for the autocrossover functionality. Otherwise, he'll have to wire up special patch cables.

      BTW...anyone know where I can get old (10Mb/s is fine) multiport NICs for cheap? I'm actually working on a similar project. The reason I'm not looking for level 3 switch is because the thing needs to be maintainable by folks who don't know a whole lot about networking.

    12. Re:VLAN by Lehk228 · · Score: 1

      cisco IOS is proprietary and doesn't have a great track record with security

      --
      Snowden and Manning are heroes.
    13. Re:VLAN by Pii · · Score: 1

      That's your big dig on Cisco? An article from 2005?

      Cisco's IOS is proprietary, and designed from the ground up for this type of task. If you're anti-Cisco for some reason, there are plenty of other vendors that make similar equipment. If the original poster's project is anything but an interesting experiment, it's worth using the right equipment.

      --
      For those that would die defending it, Freedom
      has a sweet taste that the protected will never know.
    14. Re:VLAN by operagost · · Score: 3, Informative
      You do realize that 64-bit, 66 MHz PCI cards are readily available and nearly universally supported in enterprise hardware? And that PCI-X cards running at 133 MHz are not exotic? Oh yeah... and there's PCI-Express.

      You're not even correct about the crossover. Automatic crossover is supported on all kinds of 100baseT gear, although it is not required as it is in the 1000baseT standard (because the Fast Ethernet standard predates the tech).

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    15. Re:VLAN by Lehk228 · · Score: 1

      i'm against cisco because they went a year knowing about that vulnerability AND used legal threats to go after whistle blowers.

      --
      Snowden and Manning are heroes.
    16. Re:VLAN by Short+Circuit · · Score: 2, Informative

      Thanks for the info. And the civil tone.

  2. if you would like by Amouth · · Score: 4, Funny

    if you would like i can buy a switch and flash it with nothing and sell it to you.. but money frist and no returns.

    --
    '...if only "Jumping to a Conclusion" was an event in the Olympics.'
  3. PCI-ish? by gEvil+(beta) · · Score: 3, Funny

    I'm not sure if I'm familiar with the 'ish' variant of the PCI slot. Could you please elaborate?

    --
    This guy's the limit!
    1. Re:PCI-ish? by Anonymous Coward · · Score: 0

      PCI-e, 64-bit pci...

  4. Buy Used by Daniel_Staal · · Score: 1

    Take a look at the local computer stores, see if any resell used computers. A router doesn't need much power usually, so you might be able to find a bare bones system that fits your needs. Sometimes you can find old server hardware for sale: lots of space for memory/drives/cards.

    --
    'Sensible' is a curse word.
    1. Re:Buy Used by spun · · Score: 1

      A 40 port router needs A LOT of processing power and internal bus bandwidth. If it's Gigabit Ethernet, that's potentially 40 Gigabits per second.

      --
      - None can love freedom heartily, but good men; the rest love not freedom, but license. -- John Milton
    2. Re:Buy Used by KingDaveRa · · Score: 0, Redundant

      Depends how you define 'router'. These little things we can pick up for next to nothing aren't 'routers' in the truest sense of the word, i.e. those big things full of fans and PSUs that the likes of Cisco/Extreme/3Com/etc produce.

      To be honest, unless I had some incredibly weird requirement, or a strange fetish for building my own kit, I'd go look for a proper router solution. My experience of using a *nix box as a proper, layer-3 LAN router isn't that great. There's something to be said for the custom-designed kit in these routers you can buy.

    3. Re:Buy Used by hattmoward · · Score: 1

      Really, is the OP trying to build a switch, a router, or a little from column A and a little from column B?

    4. Re:Buy Used by GiMP · · Score: 1

      Actually, if its gigabit ethernet with full-duplex switching, it is a lot more than 40gbps. Each port can do a maximum of 2gbps (1gbps TX, 1gpbs RX). Gigabit switches can push 10's of terabits per second over their backplanes.

    5. Re:Buy Used by the+eric+conspiracy · · Score: 1

      Huh? Throughput on any full duplex switch is simply N*port bandwidth. For a 1 GB switch you would need 1000 ports to get 1 TB/sec.

    6. Re:Buy Used by spun · · Score: 1

      You are right of course. I wasn't really trying for accuracy, just a quick ballpark of "Is this remotely feasible?" To which the answer is, "No, not really." Linux is great, and for running a nifty home firewall/router, or even doing high end routing over a few interfaces it's great. But if you want to do high end stuff over dozens of ports, you need high end hardware and software to handle the throughput.

      --
      - None can love freedom heartily, but good men; the rest love not freedom, but license. -- John Milton
    7. Re:Buy Used by GiMP · · Score: 1

      I am incorrect about being tbps... but you're also not correct. It would be 500 ports for 1tbps, because each port of a '1000mbps port' actually does 2000mbps, combining total RX and TX. The maximum switching fabric speed of a 40 port gigabit switch would then be 80gbps.

      Interestingly, from a pure processing angle, to process 9320675.55 PPS, the corresponding number of packets for 80gbps with 9k frames, a system will need 932 MIPS... well within the range of a low-end Athlon or Pentium III processor. To process 1500mtu frames, though, a much more modern processor, like an AMD XP 2400+ would be required. Less would be required with a TCP Offload Engine (TOE).

      Regardless, this isn't even possible over PCIe -- heck, from what I can tell, it isn't even possible over infiniband with any commercially available products. One is either building their own hardware (at which point, they might as well just build a real switch), or building a cluster (at which point, interconnects and cost again become an issue).

      References:
      How slow is gigabit ethernet?
      PCI Express Technology

  5. bandwidth limitations, and large PCI backplanes by Robbat2 · · Score: 5, Informative

    Limitations:
    - PCI bus bandwidth is going to hurt you hard. 32-bit PCI @ 33Mhz = 127Mbyte/sec. 64-bit PCI-X @ 66Mhz = 508Mbyte/sec.
    - 100Mbit ethernet = ~10Mbyte/sec (assume 10b8 encoding, easier numbers).
    - 127Mbyte/sec / ~10Mbyte/sec = 12 100Mbit ports only.

    If you aren't deterred by this:
    1. Get a motherboard.
    2. Get a decent PCI backplane. A quick Google search brings this company:
    http://www.commell.com.tw/Product/Peripheral/Backp lane/backplane.HTM
    and they have a backplane with 17 PCI slots.
    3. Buy 4-port PCI 100mbit network cards (http://www.americanpredator.com they don't list it on their site, but I'm certain they do custom quad port cards, or can point you to somebody that can, $500/card for industrial grade hardware).
    4. 17*4 = 68x 100Mbit ethernet ports.

    --
    ICQ# : 30269588
    "I used to be an idealist, but I got mugged by reality."
    1. Re:bandwidth limitations, and large PCI backplanes by ratboy666 · · Score: 1

      FYI

      A lot of "server" grade hardware supports multiple PCI busses to eliminate this problem.

      --
      Just another "Cubible(sic) Joe" 2 17 3061
    2. Re:bandwidth limitations, and large PCI backplanes by kneecap · · Score: 5, Informative

      Use PCI Express instead, it has dedicated serial bandwidth to each slot instead of shared bandwidth for all PCI or PCI-X slots connected to a PCI controler.

      From http://en.wikipedia.org/wiki/List_of_device_bandwi dths
      PCI 32-bit/33 MHz 1066.66 Mbit/s 133.33 MB/s
      PCI Express (x1 link) 2500 Mbit/s 250 MB/s
      PCI 64-bit/33 MHz 2133.33 Mbit/s 266.66 MB/s
      PCI 32-bit/66 MHz 2133.33 Mbit/s 266.66 MB/s
      PCI 64-bit/66 MHz 4266.66 Mbit/s 533.33 MB/s
      PCI-X 133 8533.33 Mbit/s 1066.66 MB/s
      PCI Express (x4 link) 10000 Mbit/s 1000 MB/s
      PCI Express (x8 link) 20.00 Gbit/s 2 GB/s
      PCI Express (x16 link) 40.0 Gbit/s 4 GB/s

      The big routers and switches use PCI/PCI-X on their backplanes and when some of them started doing 10Gig ethernet ports the ran into the PCI-X bandwidth limit of abouth 8.5 Gbit. So do like Cisco & the others did and start using PCI-E. I saw another post here mentioning multiport gigabit ethernet cards for PCI-E slots made by Silicom: http://www.silicom-usa.com/

    3. Re:bandwidth limitations, and large PCI backplanes by Robbat2 · · Score: 1

      That 6-port on PCI-e x4 is a good card, I had only seen a 4-port previously, thanks for pointing it out.

      However to reach the OP's goal of 40 ports, he needs 7 x4 slots available using those 6-port cards. I'm not aware of any system that provides that many lanes in such a configuration (Not that you couldn't build one, there are definetly 32-lane and 48-lane chips out there). It might be possible to get a pair of x16 -> (4)x4 convertors in an external box (still in the engineering sample state, but definetly in the pipeline from at least one company).

      --
      ICQ# : 30269588
      "I used to be an idealist, but I got mugged by reality."
  6. OS-Less-Switch won't help by Anonymous Coward · · Score: 5, Insightful

    Even if you could buy just an "OS-less" switch, I don't think it would do you any good. Most switches have hardware fast-paths for switching packets. You'd have to completely disable the switching logic, and redirect all frames through the host CPU.

    Some of the switch ASICs I'm familiar with [medium range broadcom, vitesse] are in fact slower at sending a packet through the host control interface, than at simply switching it to a port on which a host cpu might be connected. [Reference designs from the above have the host CPU connected to the host interface, and control packets, ssh, telnet, http, depending on the design captured and sent through it]. In that case, you'd need your host CPU to be connected to one of the ports of the switch, and then of course your routing speed is limited to the maximum speed that can be sent through a single port.

    One of the posters above me mentioned buying a managed switch and using VLAN's, thats what I woulda suggested had he not beat me to it.

    Good Luck!

  7. Get a Cisco by grub · · Score: 2, Insightful

    Forget your hackish idea. Get a Cisco 3750-48 style switch and all will be well.

    --
    Trolling is a art,
    1. Re:Get a Cisco by sirket · · Score: 0, Troll

      Or he could get a real switch from Foundry :)

      Seriously though- Cisco makes terrible switches. Oversubscribed ports, slow backplanes, etc. Add to this the fact that their TAC has gone to pot (ask just about anyone on NANOG) and they're not a sound choice right now.

      -sirket

    2. Re:Get a Cisco by Anonymous Coward · · Score: 0

      Used Foundry for 2 years, I reccomend Cicso. Foundry promises a lot but rarely delivers.

    3. Re:Get a Cisco by Anonymous Coward · · Score: 0

      Now all Foundry needs to do is make their OS decent. For the love of god, why do they have a global priority list for ACLs?!

  8. 6-port ethernet cards + 7 slot motherboard = 42 by Anonymous Coward · · Score: 0

    Silicom http://www.silicom-usa.com/ has 6 port gigabit cards in PCI-E (PCI Express) and PCI-X variants. Try to find a motherboard with as many PCI-X slots and PCI-E slots that are x4 or greater; the cards do not fit in PCI-E x1 slots. You may not find a motherboard with enough slots, or enough fast slots. Most motherboards now come with 2 on-board ethernet ports which will help. And if you find you need more cards in your 'switch' then try this PCI expansion System I found online: http://www.mobl.com/expansion/products/pcie_expans ion/6slot/index.html it only needs one PCI-E x4 slot on your motherboard and it gives you 6 PCI-X slots

  9. Is this even a good idea? by ErikTheRed · · Score: 5, Insightful

    The poster leaves a lot of stuff out - like what's the bandwidth per port? Are they routing analog dial-up lines or gigabit ethernet? What protocols are they routing? Do they need ACLs? How many? Other filtering? Proxying? And if the installation is really that big, just lay out the $jack for a layer-3 or higher switch or router or firewall or whatever.

    Not to be a dick, but if the poster has to Ask Slashdot about this sort of configuration, he or she has no business messing with this and should leave the design and configuration to grown ups (unless it's a lab experiment or something).

    --

    Help save the critically endangered Blue Iguana
    1. Re:Is this even a good idea? by grub · · Score: 3, Funny


      Not to be a dick, but if the poster has to Ask Slashdot about this sort of configuration, he or she has no business messing with this and should leave the design and configuration to grown ups (unless it's a lab experiment or something).

      You're being a dick, but the truth can be dicky. :)

      --
      Trolling is a art,
  10. What are you looking for? by mnmn · · Score: 5, Interesting

    You want to build a router, but you are looking for switch hardware.

    You are asking for independent ports. If you need to route through each port seperately and not 'switch' data between ports but 'route' it among them then you need router hardware not switch.

    See the thing with switches is that chips are available with 4 ports or 8 ports and it automatically switches data in ASIC between ports. Usually these chips cannot be interfaced to a microcontroller and almost never have PCI interfaces.

    You do need individual ports, not a switched collection of ports. So you need something with 7 PCI ports (7x4=28). There are plenty of 4-port PCI cards out there, but there must be 8-port cards too. I have seen plenty of 6-port motherboards. You will have to use PCI extension devices to get to 7 or 8 ports unless you find those 4+ port ethernet cards. Do keep in mind you cannot switch between all ports at wire speed. You'll need faster busses and powerful processors. At this point you're looking at highly specialized hardware like cisco juniper etc.

    It is inefficient to route between that many ports on a single CPU. Its better to cascade entire routers if your design allows it or add switches to routers with fewer ports. Unless you are a telco providing high speed connections to ISPs or a central location breaking the bandwidth for many branches, I dont see why anyone will need a router with 30 ports. In any application when you need more processing power, you'd divide the algorithm and use multiple CPUs or multiple computers. In this case you can almost definitely use cascaded routers if you need that many ports in the first place.

    I have a Cisco 4700M router with 12 10-mbit ethernet ports. Never needed more than 3.

    --
    "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
    1. Re:What are you looking for? by ivan256 · · Score: 1

      There are chips available that do on-chip processing for fast-path switching and basic routing, and give control the host processor for more complex "control-path" processing. I don't know of anybody who sells such things in a ready-built configuration for ethernet, but you can get exactly that for fibre-channel from Qlogic. Presumably, if you reprogrammed the chips every reconfiguration you could get almost all your work done in the fast-path.

      This isn't really a do-it-yourself kind of project though, as you're almost certainly going to spend more on a single unit without software (assuming that you don't have to build the box yourself, including board design, etc...) than you would pay for a commercial product with the software included. If you're planning on doing it in bulk for resale, you'll still get killed unless you have some really novel killer feature you're going to include as a value add. If he does, he should contact a venture capitalist ASAP.

    2. Re:What are you looking for? by h2odragon · · Score: 1

      The linux tulip NIC drivers had some fast switching support, at least as of a couple versions ago. I never looked into it too deep; because 128port+ Xylan omniswitch boxes are $100 or less on ebay; and even with my budget constraints that just blows anything pc based right out of consideration.

    3. Re:What are you looking for? by ivan256 · · Score: 1

      It does, but the data still crosses the PCI bus... It has to, since the ports are on separate chips. The chips I'm talking about have multiple ports on the chip, and can communicate with other chips directly via a SPI bus.

  11. more data needed by clydemaxwell · · Score: 2

    Are you routing or switching? What purpose do you have that requires linux specifically? Are you just anti-Cisco, anti-brand name?

    You specify that you are building a router then request a switch hardware. What level are you managing your network at? What kind of throughput are you trying to get (10/100, 100 full, gigabit?) Are you managing at the port level or at the IP level (switching vs routing)?

    Elaborate and maybe then we can get you some answers :)

    --
    Browsing with classic discussion, noscript, at -1 and nested
    no hidden comments and I only mod UP
  12. Hmmm by Anonymous Coward · · Score: 0

    If anyone else has been in this situation, what did you do?

    It is hard to understand exactly what the poster needs since he is leaving a lot of crucial information out of his setup, but in most cases it would be prudent to buy a product that is designed for that job, such as a layer 3 switch. If he wants to run Linux just for the sake of running Linux, he is going to have problems, and needs to find a product to get the job done. I would suggest investing time looking into something such as Cisco 3750 series switches.

    1. Re:Hmmm by amorsen · · Score: 3, Interesting

      I would suggest investing time looking into something such as Cisco 3750 series switches.

      I can't speak for the original poster, but in our case we needed VLAN's to be unique per port. That is, VLAN 100 on port 1 should be switched to VLAN 105 on port 2, and VLAN 100 on port 2 should be switched to VLAN 200 on port 3 and 4, and so on. Trivially easy to do in Linux, not so with a 3750. You can do it with VLAN mapping, but you can also buy quite a server for the price of a 3750 and the Advanced IP Services image. Oh and the 3750 supports only 24 VRF-lites, whereas you can run quite a few more OpenVZ instances with routing on a Linux box.

      --
      Finally! A year of moderation! Ready for 2019?
    2. Re:Hmmm by forq · · Score: 1

      Or pick up a older used L3 switch... Cisco 2948-GL3 @ Ebay The 3750's are nice, but they're priced out of reach for someone who is struggling trying to cobble together a router out of a PC. If you're going to spend the money on a decent L3 switch, check out the Force10 S50, they are a smaller vendor, but the quality is tops.

    3. Re:Hmmm by pyite · · Score: 1

      I'm *really* confused.

      That is, VLAN 100 on port 1 should be switched to VLAN 105 on port 2

      What does this mean? You want traffic switched between the two ports? What's connected on the other end, hosts? switches?

      Like I said... I'm confused.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    4. Re:Hmmm by amorsen · · Score: 1

      What does this mean? You want traffic switched between the two ports?

      I want traffic switched between VLAN 100 on port 1 and VLAN 105 on port 2.

      What's connected on the other end, hosts? switches?

      Switches, I presume, MPLS routers perhaps. They are at other service providers.

      --
      Finally! A year of moderation! Ready for 2019?
  13. ummm why? by Lumpy · · Score: 1

    Build the router on a nice 1u dev platform with maybe 8 ports on it and then use cisco gear for the switches. (you can find several in Linux Journal pages for cheap.

    Why in the world would you want a router + 48 port switch all in one? so when you take the router offline the whole network crashes?

    --
    Do not look at laser with remaining good eye.
    1. Re:ummm why? by pyite · · Score: 1

      Why in the world would you want a router + 48 port switch all in one? so when you take the router offline the whole network crashes?

      Not to be rude, but this is how it's done in the real world. The fact that a switch "routes" is merely part of its feature set. Routing is switching. It's just that canonically, it's typically associated with layer 3 switching. Some switches even switch above layer 3.

      Also, these devices don't go down. It's not really acceptable. As such they are configured with multiple, redundant supervisor engines. If one dies, the other takes over. You can upgrade them separately so that the other is running during the upgrade. See here. See the box all the way to the right? The two middle most cards are the redundant supervisors. You can see similar configurations in the rest.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

  14. It doesn't exist by amorsen · · Score: 1

    I am in about the same situation. We ended up going with the RPI-1245 for 12 ports in 1U (by adding a 4-port PCI ethernet card). The solution isn't ideal because only the 4 ports on PCI Express are actually provided with enough bus bandwidth, but it's close enough for us. More ports would be nice, of course. The remote management and the BIOS in general isn't as polished as the HP DL140GL2 we use for everything else.

    For our next deployment we will likely go with a 1U switch combined with a 1U HP server, and use VLAN's. The problem is that VLAN's then have to be unique across all ports. If someone decides to make a PC in at most 2U with 24 ethernet ports all on PCI Express, we would certainly go for that. At 4U or bigger you can fit more cards in the machines, but bus bandwidth is a problem if you stick with PCI. PC's with 6 PCI-Express x 4 or 6 PCI-X busses are kind of rare.

    --
    Finally! A year of moderation! Ready for 2019?
  15. Mod up by spun · · Score: 1

    Informative. Just a back of the napkin calculation and a few seconds thought says this will not be nearly as easy as just throwing a bunch of multi port ethernet cards into a PCI bus, nor just naively running linux on some random switch hardware. When you are dealing with that much data, you need tight integration of the hardware and OS. A managed switch with VLANs is definitely the way to go.

    --
    - None can love freedom heartily, but good men; the rest love not freedom, but license. -- John Milton
    1. Re:Mod up by dpilot · · Score: 1

      As a matter of fact, I have a managed switch with VLANs. I picked it up for a song at a second-hand shop, no idea how it got there.

      Right now it's just a dumb switch with a management port, but I'd like to play with VLANs and SNMP management, and perhaps more. So a few specific questions:
      1 - I've done some reading, and it indicates that DHCP just doesn't play well with VLANs, and it causes extra CPU overhead. How bad is this, really? I use DHCP primarily to ease adminstration, so IPs are managed in my DHCP and DNS servers.
      2 - How do you start getting your head around SNMP? I haven't had much luck finding "getting started" guides, and anything I have found seems to assume more knowledge than the basically none that I have. I get the impression that though my switch doesn't support it, if I had SNMP traps working, I could segregate PCs on VLANS based on their MACs, etc.

      --
      The living have better things to do than to continue hating the dead.
    2. Re:Mod up by grimwell · · Score: 1
      1 - I've done some reading, and it indicates that DHCP just doesn't play well with VLANs, and it causes extra CPU overhead. How bad is this, really? I use DHCP primarily to ease adminstration, so IPs are managed in my DHCP and DNS servers.


      I haven't experienced any oddities with DHCP and VLANs(both layer-2 & 3). Extra CPU overhead is just the broadcast traffic involved. The ease of adminstration vastly out-weighs any minor extra cpu load.

      How do you start getting your head around SNMP? I haven't had much luck finding "getting started" guides, and anything I have found seems to assume more knowledge than the basically none that I have. I get the impression that though my switch doesn't support it, if I had SNMP traps working, I could segregate PCs on VLANS based on their MACs, etc.


      net-snmp & mrtg are a good way of getting your feet wet. snmpwalk(part of net-snmp) is a useful tool for exploring the device.

      good luck
      --
      If the govt becomes a lawbreaker, it breeds contempt for law, it invites man to become his own law, it invites anarchy
  16. VLANs work great for this. by jafo · · Score: 2, Insightful

    Get a normal Linux box with 1 or maybe a few ethernet ports (you can bond them together, if you like), and then connect a 48-port switch that supports VLANing. Set up the ports to the Linux box to pass all 40+ VLANs tagged, and then set the ports that are not connected to the Linux box as untagged ports. You now have each of the switch ports effectively as an interface on the Linux machine.

    I've done this for cases where I needed a small machine to run with more ethernet ports than it's actually got. Works great.

    Sean

  17. Used cisco or foundry by anticypher · · Score: 3, Interesting

    Depending on how adventurous you feel about getting linux running on strange hardware, you could buy a used cisco or foundry L2/L3 box for cheap. I know there are a lot of linux projects at cisco, there must be something you can google about how they went about compiling for the platform. The CPUs inside will be something non-mainstream, i.e. not a pentium, but chances are there is a linux distro for it. It shouldn't be that hard to find some archived info on how to bootstrap a linux distro onto one of those boxes.

    Used cisco 3500s or 2950s with 24 or 48 ports are on the market for a few hundred (dollars or euros) each. Foundry workgroup switches are less than 100 euros right now. Cisco 7200s are just PCs inside, but their PCI buses are a different layout to allow hot swapping. Cisco Pix 515s are just commodity 1U intel pc motherboards, cisco didn't even bother doing a redesign to remove the superfluous connectors.

    If you have enough money for a PCI-ish box and many quad ethernet NICs, then you probably could afford a used Juniper M5. It already runs BSD, and pretty much looks like standard PC hardware inside. A used M5 without any interface cards should be had for less than a new PC, its the interface cards that will cost you dearly.

    If you follow my advice, then with any luck you will document everything you did along the way, and release a linux distro for some otherwise proprietary hardware. I'd like to see a cisco 2950 turned into a linux box with all kinds of extra linuxey features. What I'd love to see is openBSD's pf on a switch, so I could set per port ACLs and bandwidth shaping.

    the AC

    --
    Hemos is like...sci-fi fans;he thinks technology is cool, but he hasn't bothered to understand the science it's based on
  18. Router Hardware != Switch Hardware & Suggestio by grondak · · Score: 5, Insightful

    Hardware switches can look straight at layer 2 encapsulation and shuffle packets based on that information. The switch's main CPU never sees the packet. The "naked" version of the switch still has enough main CPU in it to program the switch controller chip(s). More "clothed" switches have the spanning tree protocol, SNMP bits, and any other cool features you might have.

    Routers have to look at layer 3. Back when I was writing code for a major switch/router manufacturer, most switch chips didn't pass the (de-encapsulated) packet up to the main CPU (or back down). The chip only gave notification that a packet arrived (etc) in the form of an incremented register. This meant the chips were unsuitable for routing because the main CPU had no visibility into the packet whatsoever.

    Either of these designs generally require a separate Ethernet NIC for the main CPU, as the switch ports are too busy with external connections. That NIC might be connected to the switch chip on the switch's main board, or it might appear externally as a "management interface port." You'll be programming this NIC, too-- but hopefully, just with ifconfig(1M)

    Suggestion: Look for commercial switch chips that can pass the packet to and from the main CPU. Find a company which has a COTS switch with the combination of your favorite switch chip and a CPU that will run your Linux version (or uCLinux). Make sure the implementation hardware is wired properly to be able to get the packets to and from the main CPU-- your favorite chip might have a separate HW interface for communicating with the main CPU that could be unconnected in the implementation hardware. At this point, you essentially have the naked switch that can route. Learn how to boot Linux on the implementation hardware and build a flash filesystem that the switch's bootloader will read. Then start writing code to add the capability you require (to routed?).

    Suggestion: Once it works, sell the thing. Or open the source up for others. You went through a lot of trouble to get that capability in the system, and it's got to be so cool because it isn't already in a commercial router. You might consider selling it on the open market yourself, or finding someone to sell it to. Or drop it on Sourceforge for others to upgrade.

    Suggestion: Or, you can get your cool feature embodied as an RFC and get the main router vendors to build it in. Or contribute the code to routed(or whatever). You can probably skip the effort of building this one-off switch/router.

    --
    [Error 407: No signature found]
  19. Try ImageStream by mossmann · · Score: 2

    Many people have pointed out reasons why this kind of thing is probably a bad idea, but if you still want to do it, ImageStream sells hardware platforms that can include several multi-port ethernet boards. There are reasons why they are marketed as routers and not switches, but they might be useful as switches for some unusual purpose.

  20. Reference kits by mutterc · · Score: 1

    You could buy a reference platform kit from network ASIC manufacturers. I know of the Broadcom XGS ones (chips that do L3 routing, L2 switching and ACLs in hardware), as my day job is at a company that uses these to do switch/router application software. The software's proprietary, of course, but Linux does run on those boxes.

    That's probably many kilobucks, though, and you'd face the task of dealing with the awfully complex chip to get it to do what you'd want.

    Another option would be to buy/license LVL7's software, of course :-), then build on top of that whatever custom application you'd need, to run alongside the software doing the switch/router stuff. Also many kilobucks, so not the sort of thing you'd do to save money, but the sort of thing you'd do to start a company selling boxes that do whatever it is you need to do that commercial router boxes don't.

  21. "Switch" by CmdrPorno · · Score: 3, Funny

    AFAIK Apple only sells their hardware with OS X. And if you bought it without an OS, you probably wouldn't be switching. Also, the "Switch" ad campaign has been replaced with the "Get a Mac" ad campaign:

    http://www.apple.com/getamac/

    --
    Sent from my iPhone
  22. linuxdevices by marros · · Score: 2, Informative

    If you go to www.linuxdevices.com and look around, there are several vendors who sell sbc's that have ethernet switches as backplanes, you can add as many as you want. The underlying cpu is either a strong arm, or x86 compat cpu, some have mini-pci slots, etc. And they all run linux!

  23. Zorch depends on your needs by davidwr · · Score: 2, Insightful

    A 40-port router or switch that has typical office workstations with typical "office" use doesn't require a HUGE amount of power. Most users will drive minimal traffic during office hours except when accessing network resources, which will probably be bursty and random in nature. Realisticly, an office like this would probably have a 48- or two 24-port switches costing a few hundred dollars each, with a router to manage external traffic.

    Now, throw half a dozen servers on there along with a few machines that are accessing the outside world 24x7, and now you need some beef and the corresponding dollars.

    If it's 40 servers in a server farm, then you are absolutely correct, the user should be prepared to spend big because a cheap router or switch or PC-based solution just won't do the job.

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
    1. Re:Zorch depends on your needs by sirsnork · · Score: 1

      Router != Switch. No typical "office" needs a 40 port router Poster specifically says router. Even a 40 port switch on a linux box would be an interesting experiment to behold. Assuming you were using PCI-E (which is the only way you'd get even remotely decent speed) I still don't think you could get 40 ports into a box You'd have to find a board with exactly the right PCI-E bus layout. As everyone else has mentioned. You just can't make a router that would have enough bus bandwidth or processing power to do this

      --

      Normal people worry me!
  24. Do like every other switch vendor does by MerlynEmrys67 · · Score: 1
    Get a hold of a switch silicon vendor (broadcom, Marvell?, Intel?, switchcore - etc.) and ask them for their development board. Most of them are capable of running a customized linux distribution of your choice. Expect to pay in the serious 5 figures - if not 6.

    Yeah, unless you really have a need to - customizing hardware is expensive, difficult, and prone to failure. Usually when I see questions like this, I assume they are from someone that really doesn't understand a problem and has decided to go down a path. Once you look inside and realize what the REAL problem that they are trying to solve these are pointless excersizes (why do you have to run Linux on a switch - many of them all ready run Linux). What are you really trying to do - why, and what are your limitations

    --
    I have mod points and I am not afraid to use them
  25. 9 ethernet ports on a Sun by gnu-sucks · · Score: 1

    This is vastly different than what you need/want, but you might find it interesting, I got nine 10/100 ports on a Sun Ultra 1, and the bandwidth is very nice:

    http://lfnet.net/blog/?p=41

  26. Extreme X450a/e series gigE switches by Anonymous Coward · · Score: 0

    I've been using these for a couple months(released in july), they are pretty neat. Runs linux(though you can't get to it. .), 1U formfactor, line rate all ports, but the best part is it offers "core" features like BGP, OSPF, hardware IPv6, VRRP etc in the 1U formfactor, it's nice that I can finally use identical hardware for both the 'edge' and the 'core'. I haven't seen/heard/read of any other product on the market that comes close(performance, features, formfactor, price). my own network designs utilize their ESRP redudancy protocol, while extreme specific it works great with other products as well(have several cisco 10/100 switches and some F5 layer7 switches, failover within a couple seconds, both layer 2 and layer 3).

    they list for about $9k(48-ports, 256Gbs switching fabric), though even in small quantities you should be able to chop 30% off that from a reseller. the price is the same as extreme's more mainline basic layer 3 switch the summit 400(which is comparable to some cisco, foundry and force10 products). redundant power will set you back another ~$900(list).

    you don't give a clear indication of what your end goal is, but I really refuse to buy any network equipment unless it heavily utilizes ASICs. The leaders in this space to my knowledge are extreme, foundry, and force10. with foundry having the fastest 'raw speed'(on paper anyways), force10 having the highest density per chassis, and extreme having the best feature set(IMO of course, in the high end - layer 3 virtual routers, clearflow, ease of management).

    these switches do draw a fair amount of power though I was kind of suprised, more than 3x the power of the more basic Summit 400. Probably more power than any other 1U switch on the market (~400 watts). But it's worth it for me anyways.
    They basically took a 'blade' from their blackdiamond 8800 series chassis and slapped some management chips on it and put it in a 1U chassis.

    (posting as AC since I don't have an account, I read slashdot daily but post maybe once every 2 years - aphro ^at^ aphroland ^dot^ org if you want more info)

  27. Mod parent up by zeropointburn · · Score: 1

    (offtopic) Yeah, it's AC, but this is good info.
    Dude, get an account... you've got nothing to lose, and it's free. Plus, if you read often and meta-moderate, you can get mod points and mod up those useful posts :)

    --
    -1 raving lunatic; +6 subGenius... Things even out...