Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How switches / routers work

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The main working principles of the switch are:

1. Create a table (Mac address table)

two。 Look up the table

Written expression: after receiving the data frame, the switch first checks whether the source Mac address exists in the Mac address table, and then adds it if not; then checks whether the destination mac address exists in the mac address table and forwards it; if not, it flooding to all other ports except the source port. If the port is divided into vlan, then flooding to the vlan and all ports that have trunk links

Note: if the switch learns the host mac address corresponding to the port, and if the host corresponding to the mac address does not participate in communication for 300 seconds, delete this entry; if the host mac address corresponding to the port changes, it will be relearned.

Routing? How does a router work? How is the routing table formed?

Routing: the process of forwarding packets across an internetwork (different network segments) from the source host to the destination host

The main working principle of the router: choose the best path according to the routing table, and each router maintains a routing table, which is the key for packets to forward data. Each routing table indicates the physical port from which the subnet or host should be sent to a subnet, through which the address of the next router on that path can be reached.

Formation of routing tables:

1. Directly connected routing C: a directly connected network is formed by assigning ip to the port (or putting two ports in the same vlan) and the port status up.

two。 Non-directly connected networks: static or dynamic routes are required to add routes to the routing table

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report