当前位置:网站首页>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
边栏推荐
- SAP UI5 DynamicPage 控件介紹
- Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
- [深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
- 时钟周期
- Get you started with Apache pseudo static configuration
- Write API documents first or code first?
- Get to know linkerd project for the first time
- APICloud Studio3 API管理与调试使用教程
- mysql econnreset_Nodejs 套接字报错处理 Error: read ECONNRESET
- Notion 类笔记软件如何选择?Notion 、FlowUs 、Wolai 对比评测
猜你喜欢

946. Verify stack sequence

Alibaba cloud SLB load balancing product basic concept and purchase process

Detailed explanation of navigation component of openharmony application development

Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications

Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function

蜀天梦图×微言科技丨达梦图数据库朋友圈+1

爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测

阿里云SLB负载均衡产品基本概念与购买流程

MSTP and eth trunk

The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
随机推荐
Rocky基础命令3
关于 Notion-Like 工具的反思和畅想
无密码身份验证如何保障用户隐私安全?
mysql econnreset_Nodejs 套接字报错处理 Error: read ECONNRESET
Word document injection (tracking word documents) incomplete
Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function
Go pointer
#从源头解决# 自定义头文件在VS上出现“无法打开源文件“XX.h“的问题
Binder通信过程及ServiceManager创建过程
Developers, is cloud native database the future?
##无监控,不运维,以下是监控里常用的脚本监控
Go string operation
[深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
APICloud Studio3 WiFi真机同步和WiFi真机预览使用说明
国际自动机工程师学会(SAE International)战略投资几何伙伴
LeetCode20.有效的括号
ASEMI整流桥HD06参数,HD06图片,HD06应用
一文详解ASCII码,Unicode与utf-8
Rocky基础知识1