I have been discussing about what is a router with a friend, he says that a router that have 1 Ethernet port an 4 lan ports isn't a router, he says that is a (router with a switch)

I have been searching about what is a router but y haven't understand completely what is a router

This are the questions that I haven't resolved to identify a router

  1. ¿can a router have 1 port for Ethernet and 4 for lan?
  2. ¿can a router have 4 ports for Ethernet and 1 port for lan?
  3. ¿how can I the define is my (router is a router switch) or a router?

The defining difference between a switch and a router is this: A switch uses the destination MAC address to decide where to send the packet, a router uses the destination IP address to decide where to send the packet.

However that description is too short to cover everything a router has to do. Aspects that make the concept of a router more complicated include:

  • The answer about where to send a packet is more than just the number of a port, if the port is Ethernet it includes destination MAC and possibly a VLAN tag.
  • It cannot just compare the destination address for equality. Each routing table entry has just a prefix of the address.

The switching feature is usually implemented directly in hardware making it capable of handling traffic at wire speed. But routers are too complicated to do everything in hardware, so they will generally also be equipped with a general purpose CPU. High end routers can perform the most performance critical operations in hardware. Low end routers do everything in software limiting their performance to what speed can be achieved on the CPU.

Combining the two in a single box is certainly possible. I have seen one example of a router with just two ports where each of the two ports is then internally hooked up to a five port switch such that externally the box has eight Ethernet interfaces.

A typical CPE these days put a modem, a router, a switch, and an AP into a single box. They still are four different network components, so what do you call the box containing all four of them? In such a box the CPU used to implement the router functionality then gets another task to do, because it also has to run a configuration interface which is used to configure all of the components.

|improve this answer|||||
  • you are confusing router with switch. a router: send the packet between 2 different networks a switch: decide where to send the packet in the same nework – kimo pryvt Jun 10 '15 at 6:44
  • also the are switches that work on layer 2 or layer 3 – kimo pryvt Jun 10 '15 at 6:51
  • @kimopryvt That comment sounds like you are citing a textbook without really understanding what it is trying to say. What is your definition of whether it is two different networks or parts of the same network? – kasperd Jun 10 '15 at 6:51
  • @kimopryvt Layer 3 switch is just a fancy term for a mid-range router. – kasperd Jun 10 '15 at 6:53
  • @kimopryvt A L3 switch means that there are routing functions integrated into the switch. A switch, in the strictest sense of the term, is a purely L2 device – chriscowley Jun 10 '15 at 7:00

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.