Routers and hubs
Users questions: Does any expert can explain the similarities and differences between routers and hubs, thank you!!!
Experts answer: recently seen many people asking switches, hubs, routers, what is the function of how, what difference, the author simply on these issues do answer. First of all, that HUB, is the hub. Its role can be A simple understanding of some of the machines connected to form a local area network. The switch (also known as switching hubs) and hubs much the same effect. But there are differences in performance between the two: the hub share the bandwidth used by work type, and bandwidth of the switch is exclusive. This amount of data in the machine or the very many Large, the two will be obvious. The router with more significant differences between the two, it is the role of the segment connecting different networks, data transmission and find the most suitable path can be said that under normal circumstances not individual users needs. After the router is to generate the switch as the switch assembly line produced in Devices, the routers and switches, so there is a certain link is not completely independent of the two devices. Routers, switches can not be the main route to overcome the shortage of data packets transmitted. In general, routers and switches, the main difference in the following areas: (1) different levels of work the first switch Is working in the OSI / RM open architecture data link layer, which is the second layer, while routers start design work for the network layer in the OSI model. As the switch work in the second OSI layer (data link layer), so it works is simple, and the router work in OSI's The third layer (network layer), can be more protocol information, router forwarding can make more intelligent decisions. (2) data forwarding based on the object is to use different switches, physical address or MAC address to forward the data to determine the destination address. The router is using the ID number of different networks (Ie IP address) to determine the data forwarding address. IP addresses are implemented in software, describes where the network equipment, sometimes also known as the address of the third layer protocol address or network address. MAC address is usually the hardware that comes from the card manufacturer to distribution and has been solidified to the Card and going, generally is not changed. The IP address is usually automatically by the network administrator or system distribution. (3) the traditional switch can split the domain of conflict can not be split broadcast domains; and routers separate broadcast domains can be connected by the switch segment is still in the same broadcast domain, broadcast packets will be Switch connected to the transmission of all segments, in some cases lead to traffic congestion and security vulnerabilities. Connected to the router on the segment will be assigned to a different broadcast domain, broadcast data will not pass through the router. Although the third floor above the switch with VLAN capabilities can also be split broadcast domains, but the sub-Canton Broadcast domain is not communication between the exchange, the exchange between them still need a router. (4) router provides a firewall service to a specific address, the router is only forwarding data packets, do not send does not support the routing protocol packets and unknown target network packet transmission, which can prevent broadcast storms. Switches are generally used for LAN-WAN connection, switch attributed to the bridge, is the data link layer device, and some switches can also be the third-level exchange. Router for the WAN-WAN connection between the opposite sex can be solved forward packets between networks, the role of the network layer. They only from a line Way to accept input packet, and then forwarded to another line. These two lines may belong to different networks and different protocols. In comparison, the functions of the router switch to a more powerful, but the speed is also relatively slow, expensive, third layer switch both packet switches, wire-speed forwarding capability, another way Good control from the device, it can be widely used. At present more personal way to broadband access, ADSL, ADSL access, therefore I will explain to the simple. Now cats are generally purchased ADSL routing function (when many manufacturers in the factory function blocked the route, because When the telecommunications Anzhuang Daduo yes Bu enabled routing Gongneng De, enable DHCP, the routing Dakai ADSL), if the individual Internet via ADSL or Shaoshu several Taiwan itself, be it, you Zhi Xu Ru Guo Diannaobijiao Duo again Goumai a Huoduogeji line device or switch. Considering now the hub and exchange Replacement of the price difference is very small, not a special reason, please buy a switch. Not to pursue high-value, because the product homogeneity is very serious now, I switch the cheapest there is no problem now. Give you a reference, I suggest you buy an 8-port, to meet the expanding needs of the general price of 10 0 yuan or so. Connected to the switch, all computers and then switch on the line received. The remaining things to do all the machines only to network cable into the switch interface, the cat's network cable into uplink interfaces. Then set the routing function, DHCP, etc., can be shared online. Readers should read the explanation above on switches, hubs, routers have some understanding of the current use primarily to switches, routers use a combination of mainly concrete composition according to the specific circumstances and needs of the network to determine.