أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
There is much difference between the two, but i think in general:
Switch connect devices on the same Network, and works on layer2 of the OSI Module (Make Decisions based on MAC or L2 Addresses)
Routers connect between different Networks, and works on layer3 of the OSI Module (Make Decisions based on IPs)
Hi, the main difference between Switch and router is switch used to connect same network, whereas Router can connect different networks...Also Switch can connect more devices on the network than the router.
A “hub” is nothing more than a repeater with multiple ports. Any voltage change it detects on one port gets sent to all the others. This piece of hardware has no intelligence, no CPU, no memory, or anything of the sort. It is a very simple, physical device. A “switch” can be thought of as a smart hub. It is able to send information directly to the computer that needs it, rather than broadcasting everything out every port. It does this by reading the destination and source “MAC” or “Media Access Control” addresses on messages that it receives, and building a database linking its physical ports to the MAC addresses that are sending information on those ports. A “router” doesn't just read destination and source MAC addresses, but in an IP network it can also read IP addresses, and forward traffic based on that information. While switches can connect computers within a network, routers can connect multiple networks together. They can also run “routing protocols”, or mechanisms for routers to learn about each other, and decide as a group how to best send traffic from source to destination.
Router is a device to connect to differenct network.
Switch and hub are devices used to connect many devices together on a computer network.
Difference between Switch and Hub
Switch first broad caste and store all the mac id's of that network devices and then unicaste.
Hub
When a packet arrives at one port, it is copied to the other ports so that all segments of the LAN can see all packets.
A switch is is a virtual circut model, which know the destination where this data communicate with in LAN or network. but router is a device, which forward data with networks. Switch working only with one network (LAN) and router working with two networks commonly LAN and WAN. Switch work on TCP/IP protocol but router use protocol ICMP to communicate eact other.
hub is a device which broadcast the message to every system on a network ,
switch is layer two device and send the message to perticular system by mentainning the cam table . when the system connect on network switch takes the mac address of the system and when the data send to the system by following their mac address to perticular system only .
router : is layer3 device and it is ainternetworking device which help us to communicate the two different network . it also following the routing table to get best path from the available route , and send the data with that route. it comes under the wan .
Router act as interpreter but switch is not a interpreter it just only act as a copy machine.
Router has a burst of memory where switch has negligible memory size.
switch ahd Hub has difference that Hub does not have memory but switch has
Router can route and forward the packet or information but switch or Hub cannot route.
switch can establish the link only nothing else but router can be done the link,routing and maintain security of the network.
Router is used for communication between Networks, Switch is used in Network and Hub is used for only one Network but without dicisions...
Router is used to establisted a network to connect two or more deffirent type of network.
Hub is a device which is used to connect each computer enter in network
Swicth is also worked same as Hub but Swicth containt Mac Address of those computer which are used in nework.