1

Bridge forwards frames between PCs based on S/W.

Switch forwards frames between PCs based on H/W.

What does S/W and H/W mean?

  • 3
    Can you provide some more context; perhaps the link or reference where you read this? – Brett Lykins Sep 2 '14 at 4:27
  • 1
    I think he's referring to that bridges did forwarding in software but switches do it in hardware (ASICs). Noone has used a bridge for like 20 years though. – Daniel Dib Sep 2 '14 at 4:52
  • 1
    The underlying presumptions of this question are just plain wrong. Both bridges and switches can be hardware or software based. You may want to look at another question on this site: Is there such thing as a network bridge as the answers there may apply here as well to provide more information about bridges and switches. – YLearn Sep 2 '14 at 9:27
  • Did any answer help you? if so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Aug 9 '17 at 2:42
5

The succinct answer is "S/W" = software and "H/W" = hardware.

A bridge used to be a computer and controlled the layer 2 traffic flowing through it with a special program, hence "software."

A switch is built for purpose and the layer 2 traffic flow is controlled by special hardware (ASICs as mentioned in other answers) as it flows through the switch.

4

Matt, good question!

Bridge and switch are almost same things. Bridge, now(in 2014 ;-), is a basic function of the ever modern OS, so this is software. Lets look on bridge architecture(bridge operations are described in ieee 802.1D), bridge must have:

  1. forwarding proccess, forwards frames.
  2. learning proccess, writes incoming frames source addresses to the fitering database
  3. filtering database, holds info about what host can be found behind what interface, used by forwarding proccess.

All this operations are uses CPU, which is shared by another OS proccesses, this is an important.

So what is typical switch?

Switch, as usual, have multiple (!)different type(!) processors:

  • CPU(one or multiple on "big" enterprise\isp swithces), which is do switch OS management operations.
  • And few specialized proccessors - ASICs(one ASIC on each 4-12 ports, depends from vendor policy, switch type, ports bandwidth), which are can "only" forwards frames, but some switches(enterprise) can modify frames, build smart queues, etc.

So, when switch forwards frame, it is uses just ASIC, and in theory, CPU can be overloaded, but switching will works fine. ASICs and CPU are separated, ASICs even haves own superfast memory(CPU have typical RAM). When you are send configuration command to your switch oven ssh\telnet, CPU recieve commands from ssh\telnet process, and send them to the ASICs.

Switches architecture is very complex, and it is vendor-specific, IMHO, modern switch this is true-engineering-excellence.

3

Bridge and switches are the same things, marketing make the difference, so bridge was not fancy and switch was cool about 20 yeas ago.

IMHO Daniel is right about interpretation of s/w & .h/w

  • 1
    To quote Radia Perlmann "Switch is a marketing term for fast." (from Interconnections: Bridges, Routers, Switches, and Internetworking Protocols) – Jens Link Sep 2 '14 at 9:50
1

All operations that take place in a network device are programs.

Normally, when most people think of running a program, this is done in the system's processor (CPU), memory, and storage resources. This is software processing. It is flexible, easy to update, and can be shared by different programs easily. It can be used to run programs that weren't even thought of at the time the device was manufactured.

However, many hardware components also contain programs embedded into the silicon itself during manufacturing or using ROM or flash memory. This is specialized and often limited to running only the type of program it is designed to run. It may or may not be upgradeable, but the process is typically more involved. However, when running the program it is designed to run, it runs that program VERY fast as there is no loading the program into/out of memory, storage or the CPU.

Generally speaking, you want as much of your network traffic to be hardware processed rather than software processed. The reason being that hardware processing is fast and dedicated to the process. Software based processing is shared and may be subject to delays as other programs use the same resources.

While that should provide an answer to your question about "what does S/W and H/W mean," I will expand on that to say that technology is always advancing and changing. What was software based yesterday may be hardware based today.

Flash or solid state storage being used generally would have been unthinkable ten or fifteen years ago. It was simply too expensive to use on that scale. However, this has changed rapidly and continues to change. Who now doesn't have a USB flash drive? How many people are using SSD in computers? Yes, it is still expensive when priced per MB compared to traditional storage, but that gap is closing.

Company specific, proprietary hardware based ASICs in switching have long been the kings of performance. In the last several years, "commodity silicon" is rapidly evolving the networking landscape. At a much lower cost, it can provide equivalent (depending on who you talk to) performance as ASIC based hardware.

ASICs also always improve, adding additional functionality into the hardware itself. Ten years ago you couldn't find a switch with IPv6 functionality built into the hardware, but today you shouldn't consider an enterprise class switch that doesn't have it in hardware (RA guard, etc).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.