Difference Between a Switch and a Router ?

Points: 4810 views Comments: 6 Comments Tag:

I applied at Google for a security position, however someone from their Networking team called me and he had no idea on (application level) security. So he asked me a few networking questions, and the first one was :

  • Difference Between a Switch and a Router ?

I know this one is really basic and easy, but still they ask this question very frequently during interviews.

Let see if any viewer can answer this first. Feel free to give it a shot ;)

Difference Between a Switch and a Router ?

Switch as name it will switch your network... computers in the same subnet will communicate using switch..

router is a device by which computers in a diffrent network used to communicate. it wont allow to pass broadcast messages.where as switch will allow broadcast messages.

Router Vs. Switch

I would answer this question by taking reference from OSI Model.

  • Hub - A hub is the least complicated device in networking. Hub can be considered a Layer 1 ( Physical ) device as its job is to transfer anything that comes in one port is sent out to the others. Therefore, every computer connected to the hub can sniff data to/from every other computer. Hub has no knowledge of data being transferred, its just an electrical signal.
  • Switch - A switch works in a same way as Hub but little bit more efficient as it pays attention to the traffic that comes across it. It learns where where particular MAC addresses are. In a way switch works on Layer 2 (Data Link). Benefit of using a switch over a hub is that most of the network traffic only goes where it needs to rather than to every port (aka less packet congestion)
  • Router - A router is the smartest and most complicated of the bunch. Router typically works on layer 3 (Network). Router can be programmed (like typical computers) to understand, manipulate, and route the packets. Moreover, these routers work are IP-Address aware as compared to switches which worked on MAC Addresses (easily spoofable)

HTH

Very well Answered

You answered the question very well :)

Thanks.

Basically correct, but...

This is further than most candidates get when asked this question, but there's more. For example, the Cisco Catalyst 6513 switch not only performs at layer 2, but it is also capable of operating at layer 3.

It's also important to understand about VLANs and VACLs as they relate to enterprise switches.

A repeater vs an amplifier

Can u tell me the difference between a repeater and an amplifier? The net tech at work told me that a repeater doubles the distance between two network devices while the amplifier doubles the signal used by the repeater.Is this the correct definition? Explain, please.

A repeater vs an amplifier

A repeater is a device that takes all of the data packets it recieves on one Ethernet segment and re-creates them on another Ethernet segment.Using a repeater allows for longer cables or more computers on a segment. Repeaters operate at Level1 or Physical layer of the OSI seven-layer model.The amplifier, on the hand,does not re-create the signal,instead it strengthens the electrical signal,enabling them to travel farther.The net tech is not far from the correct definitions of the repeater and the amplifier--he was correct to describe a repeater as being able to double the distance between two network segments and the amplifier strengthening the signals conducted or carried by the repeater.

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <quote> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.