常见网络协议及其默认通信端口

103 阅读1分钟

应用层协议

  • HTTP (Hypertext Transfer Protocol) : 80

  • HTTPS (HTTP Secure) : 443

  • FTP (File Transfer Protocol) :

    • 控制连接: 21
    • 数据连接: 20
  • SMTP (Simple Mail Transfer Protocol) : 25

  • POP3 (Post Office Protocol 3) : 110

  • IMAP (Internet Message Access Protocol) : 143

  • DNS (Domain Name System) : 53

  • Telnet: 23

  • SSH (Secure Shell) : 22

  • LDAP (Lightweight Directory Access Protocol) : 389

  • RDP (Remote Desktop Protocol) : 3389

  • SFTP (SSH File Transfer Protocol) : 22 (使用SSH的端口)

传输层协议

  • TCP (Transmission Control Protocol) : 无固定端口,取决于应用协议
  • UDP (User Datagram Protocol) : 无固定端口,取决于应用协议

网络层协议

  • ICMP (Internet Control Message Protocol) : 不使用端口,而是通过IP协议处理

数据链路层协议

  • ARP (Address Resolution Protocol) : 不使用端口,基于MAC地址进行通信

其他常见协议

  • MySQL: 3306
  • PostgreSQL: 5432
  • MongoDB: 27017
  • Redis: 6379
  • Kafka: 9092
  • Elasticsearch: 9200 (HTTP), 9300 (Transport)
  • Zookeeper: 2181
  • NTP (Network Time Protocol) : 123
  • SNMP (Simple Network Management Protocol) : 161