Introduction to the basics of the switch.

CCNA 200-301

CCNA 200-301

CCNP Enterprise

CCNP Enterprise

CCNP Security

CCNP Security

CCIE Enterprise Lab

CCIE Enterprise Lab

CCIE Security Lab

CCIE Security Lab

CCNP Service Provider

CCNP Service Provider

CCNP Data Center

CCNP Data Center

CCNP Collaboration

CCNP Collaboration

CCIE DC Lab

CCIE DC Lab

ic_r
ic_l
Introduction to the basics of the switch.
images

SPOTO concentrates on IT Certification training, included Cisco certification, AWS certification, CISSP certification, RedHat Linux certification and other popular certifications.  Subscribe us and get the more news.

Switching is a general term for the technology of sending information to be transmitted to a corresponding route that meets the requirements by means of manual or automatic completion of the information in accordance with the need to transmit information at both ends of the communication. A generalized switch is a device that performs information exchange functions in a communication system.

In the computer network system, the concept of exchange improves the shared working mode. The HUB hub we introduced earlier is a shared device. The HUB itself cannot identify the destination address. When the A host in the same LAN transmits data to the B host, the data packet is broadcasted on the HUB-based network. , by each terminal by verifying the address information of the packet header to determine whether to receive. That is to say, in this mode of operation, only one group of data frames can be transmitted on the network at the same time, and if there is a collision, it has to be retried. This way is to share network bandwidth.

How the switch works

Work at the data link layer. The switch has a very high bandwidth back bus and internal switching matrix. All the ports of the switch are connected to the back bus. After the control circuit receives the data packet, the processing port searches the address comparison table in the memory to determine the NIC (network card) of the destination MAC (the hardware address of the network card). On which port, the packet is quickly transmitted to the destination port through the internal switch fabric. If the destination MAC does not exist, it will be broadcast to all ports. After receiving the port response, the switch will "learn" the new address and add it to the internal MAC. In the address table.

The switch can also be used to "segment" the network. By comparing the MAC address table, the switch only allows the necessary network traffic to pass through the switch. Through the filtering and forwarding of the switch, the collision domain can be effectively reduced, but it cannot divide the network layer broadcast, that is, the broadcast domain.

The switch can perform data transmission between multiple port pairs at the same time. Each port can be regarded as a separate network segment, and the network devices connected to it can enjoy the full bandwidth by itself, without competing with other devices. When node A sends data to node D, node B can send data to node C at the same time, and both of these transmissions enjoy the full bandwidth of the network and have their own virtual connections. If a 10Mbps Ethernet switch is used here, the total throughput of the switch at this time is equal to 2×10Mbps=20Mbps, and when using a shared HUB of 10Mbps, the total throughput of one HUB will not exceed 10Mbps. In short, the switch is a network device that can perform packet encapsulation and forwarding of data packets based on MAC address identification. The switch can "learn" the MAC address and store it in the internal address table. By establishing a temporary switching path between the originator and the target receiver of the data frame, the data frame can be directly sent from the source address to the destination address.

Switch classification

The transmission mode of the switch is full-duplex, half-duplex, full-duplex/half-duplex adaptive.

The full duplex of the switch means that the switch can receive data while transmitting data. The two are synchronized. It is as if we usually make a call, and we can hear the other party's voice while talking. Current switches support full duplex. The advantage of full duplex is that the delay is small and the speed is fast.

When it comes to full-duplex, you can't help but mention another concept that closely corresponds to it, that is, "half-duplex". The so-called half-duplex means that only one action occurs in a time period. For a simple example, a narrow At the same time, only one car can pass at the same time. When there are two cars facing each other, in this case, only one can pass first. When the other car is opened again after the first time, this example shows the half. The principle of duplex. Early walkie-talkies, as well as early hubs, were half-duplex products. With the continuous advancement of technology, half-double unions have gradually withdrawn from the historical arena.

Broadly speaking, there are two types of network switches: WAN switches and LAN switches. WAN switches are mainly used in the telecommunications field to provide a basic platform for communication. LAN switches are used in local area networks to connect terminal devices such as PCs and network printers. From the transmission medium and transmission speed, it can be divided into Ethernet switches, Fast Ethernet switches, Gigabit Ethernet switches, FDDI switches, ATM switches and Token Ring switches.

From the scale application, it can be divided into enterprise-level switches, department-level switches and workgroup switches. The scale of each vendor is not completely consistent. Generally speaking, enterprise switches are rack-mounted, and department-level switches can be rack-mounted (small number of slots) or fixed configuration, and working groups. The level switch is a fixed configuration (simplified function). On the other hand, from the perspective of the scale of the application, when it is a backbone switch, the switch supporting large enterprise applications with more than 500 information points is an enterprise-class switch, and the switch supporting medium-sized enterprises with 300 information points or less is a department-level switch, and supports 100. The switches within the information points are workgroup switches. The switch described in this document refers to a LAN switch.