当前位置:网站首页>What is the difference between hubs, switches and routers?
What is the difference between hubs, switches and routers?
2022-06-11 00:52:00 【Wenxiaowu】

notes : The purpose of this article is to briefly describe the hub 、 The difference between a switch and a router , So many details are ignored . The actual development process and working principle of the three are not as simple as what is written in the article . If you read this article, you can probably understand the similarities and differences between the three , The purpose of this paper is to achieve . As for more specific technical issues , Welcome to discuss in the message .
Here is the main body :
I believe we all played a special fire game : Age of Empires . When I was a child, I wanted to play the age of Empire , You need to go to the software city to buy pirated CDs to install ( Probably 3 It looks like a piece of money , At that time, I thought it was very cheap , Who would have thought that the Internet would be free ). After downloading, you can only perform stand-alone mode .
Small A Is a great God of the imperial era , He got through all the levels of the game , You can fight alone 8 A crazy computer . Gradually he felt bored , Want to find a little partner PK.
But how to realize the interconnection of two devices ? Small A Very clever , He invented a device similar to USB The same port that can transmit data , He named it Wangkou . Small A Connect your computer to a small computer through a network cable B Connected to the network port of , Realize the interconnection between the two computers .

The two little friends are very happy , Play online , At this time, a passing little C I saw it , Small C Join in . But we know that , Each computer has only one network port , The interconnection of three computers cannot be realized , What should I do ?

It's small at this time B Came up with an idea : Let's find another computer , Design a few more ports for him , Each of us is connected to the Internet port of this computer , Haven't we realized the interconnection between our brothers .
Do as you say , So they designed a Microcomputer , He has multiple network ports , Specially realize the interconnection of multiple computers , This microcomputer is the hub (HUB). seeing the name of a thing one thinks of its function , The hub plays a role in assembling network cables , Realize the most elementary network interworking . The hub transmits data directly through the network cable , We say he works in The physical layer .

With a hub , More and more small partners join the game , Small D、 Small E People are attracted by the name . However, the hub has a problem , Because it is connected to each device , He couldn't tell who the specific information was sent to , It can only be broadcast widely .
Such as small A I wanted to ask Xiao C: Have you eaten? ? The result is small B, Small D And small E When all users connected to the hub receive this message , And because they are on the same network , Small A No one else can speak while talking , Otherwise, there will be collision between messages , Cause errors , We call each device in the same conflict domain .


Such devices have a very poor user experience , So the partners discussed improvement measures together . At this time, the clever little D I spoke. : Let's add an instruction to this device , So that it can automatically address and transmit data according to the network port name .
For example, I put the little A The network port is named macA, Will be small C The named macC, At this time, if you are small A Want to transfer data to small C, Then, the device will be based on the network port name macA and macC Automatically transfer data from A Send your computer to C In my computer , And don't let the little B、 Small D And small E received .
in other words , This device solves the problem of conflict , Realize the interconnection between any two computers , It greatly improves the transmission speed between networks , We call it a switch . Because the switch transmits information according to the network port address , It is one more step than the direct transmission of network cable , We also say that the switch works in Data link layer .


This time, my friends are happy , They played happily . Little by little , They became famous locally , Attracted more and more small partners to join their team . Until one day , A guy from an outside village suddenly came to the door , Hope to connect with them , Realize Cross Village network war .
Small A Say yes , So they found a super long network cable to connect the switches of the two villages . I found a strange thing : The two villages can't communicate with each other . What's going on , It turns out that the computers over there and they don't use the same operating system , This leads to a mismatch in the form of transmission between messages . in the meantime , There are people from other villages who have also come to Xiao A, But small A Find out , The operating system used in each village is different .
What can I do ? Can we only play in our own villages in the future ? To solve this problem , The village partners sat together and organized a meeting , Finally, a set of solutions : Use the same form of information transmission ( Like Qin Shihuang unified weights and measures ).
How to achieve it ? The partners stipulate , Between different villages First, add a set of the same protocol to their respective operating systems . When communicating in different villages , The information is processed into a unified form by agreement , Then it is transmitted through a special device . This device is called a router . The router goes through IP Address addressing , We say it works on the computer The network layer .
such , Through such a series of modifications , Small A Finally led the villagers to realize the communication of the whole Township . As more and more city people join the small A The agreement , Small A Led the villagers to gradually realize the 、 Communications across the country and around the world . This set of agreements is TCP/IP Protocol cluster , The Internet was formed in this way .

However , Even now the whole network has spread all over the world , In small A When I fought with my little friends in the village in the era of Empire , Still using switches . Routers are only used when communicating with the outside world .
summary : The switch is suitable for LAN interconnection , The router realizes the interconnection of the whole network segment .
边栏推荐
- Dual wing layout
- 亿级搜索系统(优酷视频搜索)的基石,如何保障实时数据质量?v2020
- Volatile keyword for concurrent programming
- 循环结构语句
- 浅谈有赞搜索质量保障体系 v2021
- 集线器、交换机与路由器有什么区别?
- How about the CSC account of qiniu business school? Is it safe?
- The JVM determines whether an object can be recycled
- Lucene mind map makes search engines no longer difficult to understand
- C语言实现设置桌面壁纸
猜你喜欢

系统应用安装时,签名校验失败问题

Dictionary sort of array
![[network planning] 2.5 brief introduction to P2P architecture](/img/a8/74a1b44ce4d8b0b1a85043a091a91d.jpg)
[network planning] 2.5 brief introduction to P2P architecture

飞利浦 COO 人事变动,将临危受命解决“供应链和产品召回”双重危机

Complete uninstallation of MySQL under Linux

Loop structure statement
![[network planning] 2.2.4 Web cache / proxy server](/img/a8/74a1b44ce4d8b0b1a85043a091a91d.jpg)
[network planning] 2.2.4 Web cache / proxy server

MySQL

The driver has not received any packets from the server

Wechat applet to realize OCR scanning recognition
随机推荐
【无标题】4555
What is thread in concurrent programming
BGP基础概念及IBGP基本配置
大厂是面对深度分页问题是如何解决的(通俗易懂)
Is it safe to open an account for stock speculation in Shanghai?
Qt线程与界面
How to install mathtype6.9 and related problem solutions in office2016 (word2016)
Why web development with golang
项目连接不到远程虚拟机The driver has not received any packets from the server.
f‘s‘f‘s‘f‘s‘d
BGP basic concept and iBGP basic configuration
双飞翼布局
启牛商学院中信建投账户怎么样?安全吗
圖的最短路徑問題 詳細分解版
Kubernetes入门介绍与基础搭建
Lucene mind map makes search engines no longer difficult to understand
阻塞隊列 — DelayedWorkQueue源碼分析
WIN11卸载小组件
Using solrj to add, delete, modify, and query Solr is too simple
day01