Question:
what is router and switch?
?
2013-12-03 09:32:23 UTC
I need detailed differences between router and switch?
Five answers:
Richard
2013-12-03 12:07:50 UTC
A router's primary function is to manage the interface between two or more different sub-nets. Home routers tend to be very specialised with a number of specific extra features, which are required for the domestic environment. These include a DHCP server, a firewall, and a Network Address Translation (NAT) function. They may also include an integrated modem, a switch function and wireless networking. For a home router, one of the sub-nets is the Internet itself.



The DHCP server provides a mechanism for attached computers, phones, tablets, games consoles, etc to be provided with the addresses they need (their own IP address, the gateway address and the DNS server address).



The firewall guards against various types of attack from the Internet.



The NAT function allows a number of computers on the private network to share a single public IP address on the Internet.



The integrated modem allows a router to connect directly to the ISP's line or cable. If the router does not contain a modem, then a connection to an ISP will require a separate external modem.



The switch function allows the router to provide connections to more than one computer at the same time. Normally this will include four Ethernet (LAN) ports and possibly a wireless network.



The wireless network extends the switch function to allow a number of wireless devices to be supported at the same time as the Ethernet connected devices.



In contrast, a simply switch rather than a router allows a number of Ethernet connected devices to be interconnected on a sub-net. A switch does not provide management between sub-nets, DHCP services, a firewall, network address translation, or a wireless network.



I hope this helps.
shaun
2016-03-20 21:28:33 UTC
A router acts as a junction between two or more networks to buffer and transfer data packets among them. A router is different from a switch and a hub: a router is working on layer 3 of OSI model, a switch on layer 2 and a hub on layer 1. This makes them work for different situations: a switch connects devices to form a Local area network (LAN) (which might, in turn, be connected to another network via a router).



One easy illustration for the different functions of routers and switches is to think of switches as neighborhood streets, and the router as the intersections with the street signs. Each house on the street has an address within a range on the block. In the same way, a switch connects various devices each with their own IP address(es) on a LAN. However, the switch knows nothing about IP addresses except its own management address. Routers connect networks together the way that on-ramps or major intersections connect streets to both highways and freeways, etc. The street signs at the intersection (routing table) show which way the packets need to flow.



So for example, a router at home connects the Internet Service Provider's (ISP) network (usually on an Internet address) together with the LAN in the home (typically using a range of private IP addresses, see network address translation) and a single broadcast domain. The switch connects devices together to form the LAN. Sometimes the switch and the router are combined together in one single package sold as a multiple port router.



In order to route packets, a router communicates with other routers using routing protocols and using this information creates and maintains a routing table. The routing table stores the best routes to certain network destinations, the "routing metrics" associated with those routes, and the path to the next hop router. See the routing article for a more detailed discussion of how this works.



Routing is most commonly associated with the Internet Protocol, although other less-popular routed protocols are in use.



For more info visit:



https://www.electrikals.com/products/rc-switch-socket-accessories/switches?cnid=1&cid=688&page=1&pagesize=20
Fester Frump
2013-12-03 10:10:49 UTC
the differences between router and switch are getting blurrier, however.



Networking uses something known as the OSI 7 layer model to describe the physical and logical elements of a network.



Generally speaking a router works at layer 3 (network layer) of OSI model. Makes decisions based on IP address.

Switch works at layer 2 (data link layer) of the OSI model. Makes decisions based on MAC address.



Router is smarter in that it can provide services like a DHCP server, firewall, network address translation (NAT) as well as simple routing.



Switch is used to connect more devices to the network. Switch doesn't provide services like DHCP, firewall and NAT.
Helpful Harry
2013-12-03 11:41:02 UTC
Sounds like homework.



A router routes traffic between networks based on IP addresses and a switch forwards traffic within a local network using MAC addresses. Other then hat, there are tons of differences.
Boris 24
2013-12-03 11:14:02 UTC
Detailed ...read more


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...