当前位置:网站首页>What is a network port
What is a network port
2022-07-05 13:17:00 【Jinling shopkeeper】
As an operation and Maintenance Engineer , Even if it's not specialized in the Internet , I should have heard the concept of port , Then ask you a few small questions , See if you can answer ???
- What is a network port ?
- What is the port number ?
- Port number classification
- The role of the port number ?
- How to view the local port number
Windows
Linux
- IT The port number that personnel must know
In view of these problems mentioned above , Do a science popularization for friends who need to know . Everyone has Internet ports on their computers ( Mostly replaced by wireless modules )、USB Interface , These are actually ports , It is used for external connection , It is called hardware port here ; On the contrary, the network interface we usually mention is naturally the software port , Why software port ? Because it is originally used for “ Logical connection ”, Simply put, it is a port dedicated to the communication between programs , The communication links between programs are not visible to the naked eye , So it's logical connection . A port is the endpoint of a logical link , Therefore, a program will use the port when sending information . Ports are mainly used in the transport layer , to TCP 、UDP Agreement to use .
Port number Is a number assigned to the port , Range is from 0 To 65535. Always distinguish between them , It's like whether people have names .
port It can be divided into three categories , System ports 、 Register port and private port . System port (Well Known Ports): from 0 To 1023, They are tightly bound to some services . Usually, the communication of these ports clearly indicates a certain service The agreement of service . for example :80 Ports are actually always HTTP Communications ,443 Ports, etc . Registered port (Registered Ports): from 1024 To 49151. They are loosely bound to some services . That is to say, there are many services bound to these ports , These ports are also used for many other purposes . for example : Many systems handle dynamic ports from 1024 Start around , for example mysql Of 3306 port . Dynamic and / Or private port (Dynamic and/or Private Ports): from 49152 To 65535. Theoretically , These ports should not be assigned to services . actually , Machines usually come from 1024 Start allocating dynamic ports . But there are exceptions :SUN Of RPC Port from 32768 Start
The role of the port number It is used for communication between programs , The service functions of each network are different , Therefore, it is necessary to send different packets to different services for processing , When your host is turned on at the same time FTP And WWW The service , Data packets sent by others , According to TCP above port Give me the number FTP This service or WWW This service deals with . A simple example , Tom's house has 5 A door , Entering from different doors can have different results , For instance from 1 Enter through the door , You can sleep in the master bedroom , from 2 Enter through the door , You can enter the kitchen to cook , from 3 You can go to the bathroom when you enter through the door …… The door here can be understood as a port , Entering from different doors and doing different things is similar to what we call programs or services with different functions . As for this house, it is equivalent to IP Address , Therefore, we can also see a IP An address can have multiple port numbers . Like your computer IP The address is 192.168.1.3, But the various services on your computer have many port numbers .
View port number have access to netstat command , The following figure shows that windows and linux How to view the port number .
windows
LINUX
Common port number
20: File transfer protocol (FTP) The data transfer
21: File transfer protocol (FTP) Command control
22:SSH
23:Telnet
25:SMTP, Simple mail transfer protocol
53:DNS
80:HTTP
123:NTP, Network time protocol
161:SNMP, Simple network management protocol
443:HTTPS
边栏推荐
- 无密码身份验证如何保障用户隐私安全?
- Yyds dry inventory JS intercept file suffix
- Changing JS code has no effect
- go map
- Apicloud studio3 API management and debugging tutorial
- 程序员成长第八篇:做好测试工作
- SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
- MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
- [daily question] 1200 Minimum absolute difference
- [深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
猜你喜欢
leetcode:221. 最大正方形【dp状态转移的精髓】
Alibaba cloud SLB load balancing product basic concept and purchase process
MySQL --- 数据库查询 - 排序查询、分页查询
Cf:a. the third three number problem
Le rapport de recherche sur l'analyse matricielle de la Force des fournisseurs de RPA dans le secteur bancaire chinois en 2022 a été officiellement lancé.
“百度杯”CTF比赛 九月场,Web:SQL
A specific example of ABAP type and EDM type mapping in SAP segw transaction code
Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function
Lb10s-asemi rectifier bridge lb10s
RHCSA10
随机推荐
Rocky基础知识1
Yyds dry inventory JS intercept file suffix
Hiengine: comparable to the local cloud native memory database engine
155. Minimum stack
LeetCode20.有效的括号
Laravel document reading notes -mews/captcha use (verification code function)
mysql econnreset_ Nodejs socket error handling error: read econnreset
Run, open circuit
MySQL splits strings for conditional queries
Actual combat simulation │ JWT login authentication
STM32 and motor development (from architecture diagram to documentation)
Go string operation
Notion 类笔记软件如何选择?Notion 、FlowUs 、Wolai 对比评测
#yyds干货盘点# 解决名企真题:搬圆桌
RHCSA8
PyCharm安装第三方库图解
Flutter InkWell & Ink组件
ASEMI整流桥HD06参数,HD06图片,HD06应用
简单上手的页面请求和解析案例
Reflection and imagination on the notation like tool