In the osi seven-tier model to analyze the switch in the second layer of work, the router work on the third floor. But with the development of technology, some switches integrate some of the third layer of the routing function, known as the third layer of the switch, the following analysis of the standard switch and router differences:
1, with the simplest words, the switch to find a computer is the way to find mac address, that is, through your network card on a unique identification number to find.
2, the router to find a computer is through the ip address, is the first number of your computer, send you an ip, and then through the ip to identify you.
In other words, Ethernet switch the switch in the second layer is not designed to work with the network address (ip) allocation.
In fact, the word exchange first appeared in the telephone system, specifically to achieve the exchange of voice signals between two different telephones, the completion of the work of the equipment is the telephone exchange. Ethernet switch So from the original terms, the exchange is only a technical concept, that is, the completion of the signal from the equipment to the export of the import port. Thus, as long as all devices that conform to that definition can be referred to as switching devices. Thus, "exchange" is a broad term, when it is used to describe the second layer of the data network equipment, the actual refers to a bridge device; and when it is used to describe the third layer of the data network Device, Ethernet switch also refers to a routing device. We often talked about the Ethernet switch is actually a bridge-based multi-port second-tier network equipment, which for the data frame from one port to another port forwarding provides a low latency, low overhead path.
And the router is the packet switching device (or network layer relay device) in the network layer of the OSI protocol model. Ethernet switch The basic function of the router is to transfer the data (IP packets) to the correct network, including:
1. Forwarding of IP datagrams, including routing and routing of datagrams;
2. Subnet isolation, suppression of broadcast storms;
3. Maintain the routing table and exchange routing information with other routers. This is the basis for IP packet forwarding.
4. IP data reported error handling and simple congestion control;
5. To achieve the IP datagram filtering and accounting.