Training / Certifications / CompTIA Network+ / Common Ports and Protocols, Part 2

CompTIA Network+ (N10-009) · Lesson 7

Common Ports and Protocols, Part 2

Identify the ports and transport protocols used by SNMP, LDAP, HTTPS, SMB, Syslog, SMTPS, LDAPS, SQL Server, RDP and SIP, explain what each service does, and tell the cleartext protocols from their TLS-secured versions.

Domain 1.0: Networking Concepts (23%)Objective 1.4About 6:03CaptionsStatic view for reduced motion
Lesson 7: Common ports and protocols, part 2 Illustrative example: names and values are samples Admin PC198.51.100.7Store server 203.0.113.20: ten more ports (green = TLS version)SNMP161162UDPLDAP389TCPHTTPS443TCPSMB445TCPSyslog514UDPSMTPS587TCPLDAPS636TCPSQL1433TCPRDP3389TCPSIP50605061BothToday: 10 moreSNMP 161/162 up toSIP 5060/5061Watch for the SHTTPS, SMTPS, LDAPS:versions secured by TLSComing nextLesson 8: TCP, UDP, ICMPand traffic typesObjective 1.4: know each port, its transport, and which ones are encryptedMonitoring system(SNMP manager)listens on UDP 162Store switch(SNMP agent)listens on UDP 1611. Get: “how busy is port 7?” to UDP 1612. Response: “82% utilized”3. Trap to UDP 162: “link down!” (unasked)v1 and v2c: community string in cleartextSNMPv3: authentication and encryptionFirewallSwitchWeb serverSyslog serverUDP 514Central copy of every device's logsSeverity 0 (emergency) to 7 (debug)UDP 514: not encryptedUDP: no delivery guaranteeSyslog over TLS: TCP 6514HTTPS on TCP 443, as captured17 03 03 00 4a 8e 2f c1b3 06 9d 71 e4 58 0a 3c62 f9 1b a7 d0 45 93 ee✓ Encrypted with TLSHTTP inside a TLS sessionCertificate proves it's the real storeCheckout and logins run herePort 80 just redirects to 443HTTP/3 runs over QUIC: UDP 443Sending mail securely: SMTPS, TCP 587Staff mail app(sends a message)Store's mail server(submission)Recipient's server(by MX record)TCP 587login + STARTTLSTCP 25server to serverApp logs in, then upgrades to TLSCompTIA lists 587 as SMTPSPort 465: TLS from the startPort 25 (lesson 6): relayLDAP, TCP 389: what a capture showsbind: cn=web-app,dc=shoppassword: Shop#Dir26search: uid=jsmith✗ Cleartext (unless upgraded with StartTLS)LDAPS, TCP 636: what a capture shows16 03 03 01 2c 5d 9e 048a c2 71 3f e0 b6 19 d44e 07 a8 92 cb 31 6f 5a✓ TLS from the first byteBoth look up users and groups in a directory, such as Active Directory.Windows file sharing: SMBSMB: TCP 445Windows file and printer sharingPC opens \\files\ordersSMB 3 can encrypt (optional)A long-time target for wormsKeep it insideEdge firewall rulesOffice LAN → TCP 445✓ AllowInternet → TCP 445✗ DenyTwo ports to keep off the internetSQL Server: TCP 1433Microsoft SQL Server's defaultStore's web app reads ordersAllow only from app serversNever open to the internetRDP: TCP 3389Full graphical Windows desktopSSH gives a command line insteadEncrypted, but a password-guessing targetReach it through a VPNStore desk phoneSIP clientCall server(SIP proxy / PBX)Supplier's phoneSIP client5060 / 50615060 / 5061The voice itself: RTP, on other portsSets up, changes, ends calls5060: UDP or TCP, unencrypted5061: SIP over TLSUsed for VoIP and video callsAll ten at a glanceProtocolPortTransportEncrypted?SNMP161, 162UDPv3 onlyLDAP389TCPNo (unless StartTLS)HTTPS443TCPYes (TLS)SMB445TCPOptional (SMB 3)Syslog514UDPNo (TLS version: 6514)SMTPS587TCPYes (STARTTLS)LDAPS636TCPYes (TLS)SQL Server1433TCPOptional (TLS)RDP3389TCPYesSIP5060, 5061UDP or TCP5061 only (TLS)Secure twins: LDAP 389 → LDAPS 636, HTTP 80 → HTTPS 443, SIP 5060 → 5061. UDP: SNMP, Syslog.If the question says……think“Encrypt the store's checkout traffic”HTTPS, TCP 443“Mail client sends with login and TLS”SMTPS, TCP 587“Encrypted directory queries”LDAPS, TCP 636“Switch alerts the monitoring system”SNMP trap, UDP 162“Collect all device logs centrally”Syslog, UDP 514“Windows file shares”SMB, TCP 445“Graphical remote access to Windows”RDP, TCP 3389“Set up VoIP calls”SIP, 5060 / 5061Monitor and manageSNMP 161 polls, 162 trapsSyslog 514: central logsRDP 3389: remote desktopThe TLS versionsHTTPS 443: webSMTPS 587: sending mailLDAPS 636: directorySIP 5061: secure callsInside the networkLDAP 389: directorySMB 445: file sharesSQL Server 1433SIP 5060: callsUDP: SNMP and Syslog. SIP: UDP or TCP. The rest here use TCP.

Tip: turn your phone sideways or use full screen for larger labels.

Captions match the narration word for word. Press Space to play or pause and the arrow keys to change scenes.

Learning objective

Identify the ports and transport protocols used by SNMP, LDAP, HTTPS, SMB, Syslog, SMTPS, LDAPS, SQL Server, RDP and SIP, explain what each service does, and tell the cleartext protocols from their TLS-secured versions.

Exam mapping

Domain 1.0: Networking Concepts (23%). Objective 1.4 in the official N10-009 exam objectives.

Key takeaways

  • SNMP uses UDP 161 for the manager's polls to agents and UDP 162 for traps the agents send unasked; v1 and v2c use cleartext community strings, and SNMPv3 adds authentication and encryption.
  • Syslog sends log messages to a central server on UDP 514 with severities 0 (emergency) to 7 (debug); it's unencrypted, and syslog over TLS uses TCP 6514.
  • HTTPS is HTTP inside TLS on TCP 443; SMTPS on TCP 587 is mail submission from clients with a login and STARTTLS; server-to-server relay stays on SMTP 25.
  • LDAP (TCP 389) queries directories such as Active Directory in cleartext unless upgraded with StartTLS; LDAPS (TCP 636) uses TLS from the start.
  • SMB (TCP 445) is Windows file and printer sharing, and Microsoft SQL Server's default is TCP 1433: keep both inside the network.
  • RDP (TCP 3389) gives a graphical Windows desktop and belongs behind a VPN; SIP sets up VoIP calls on 5060 (UDP or TCP, cleartext) and 5061 (TLS), while the voice travels separately.

Exam tips

How the exam asks about this

Questions describe a situation and expect you to recognize the concept behind it.

If the question mentions…Think
Device sends an unsolicited alert to the monitoring systemSNMP trap, UDP 162
Monitoring system polls a switch's countersSNMP, UDP 161
Send all device logs to one collectorSyslog, UDP 514
Encrypted directory lookups from the startLDAPS, TCP 636
Mail client submits with authentication and TLSSMTPS, TCP 587
Windows file and printer sharingSMB, TCP 445
Database traffic from the web app to Microsoft SQL ServerTCP 1433
Graphical remote desktop to a Windows serverRDP, TCP 3389
VoIP call setup secured with TLSSIP, 5061

Common traps

  • SNMP 161 and 162 are not interchangeable: agents listen on 161 for polls, and the manager listens on 162 for traps.
  • Port 587 is for mail clients submitting messages (CompTIA calls it SMTPS); port 25 is server-to-server relay.
  • LDAP 389 isn't the secure one. LDAPS is 636; 389 is only protected if StartTLS upgrades the connection.
  • SIP sets up the call but doesn't carry the voice. The audio travels separately, usually with RTP.

Practice

Exam-style questions

Answer each one before you open the explanation.

Question 1. A network monitoring system must receive unsolicited alerts when a switch's link goes down. Which port must be allowed to reach the monitoring system?

  1. UDP 161
  2. UDP 162
  3. UDP 514
  4. TCP 389
Show answer

B. UDP 162. SNMP agents send traps to the manager on UDP 162. UDP 161 is tempting, but that's where agents listen for the manager's polls. UDP 514 is syslog and TCP 389 is LDAP.

Question 2. A web application looks up user accounts in Active Directory. The security team requires the queries to be encrypted with TLS from the start of the connection. Which port should the application use?

  1. TCP 389
  2. TCP 445
  3. TCP 3389
  4. TCP 636
  5. TCP 1433
Show answer

D. TCP 636. LDAPS uses TCP 636 with TLS from the first byte. TCP 389 is plain LDAP, which is cleartext unless StartTLS upgrades it later. 445 is SMB, 3389 is RDP and 1433 is SQL Server.

Question 3. Which TWO protocols use UDP by default? (Select TWO.)

  1. SNMP
  2. LDAPS
  3. Syslog
  4. SMB
  5. SQL Server
Show answer

A. SNMP and C. Syslog. SNMP uses UDP 161 and 162, and classic syslog uses UDP 514. LDAPS (636), SMB (445) and SQL Server (1433) use TCP.

Question 4. A technician needs to work in the full graphical desktop of a remote Windows server. Which protocol and port will the connection use by default?

  1. SSH, TCP 22
  2. Telnet, TCP 23
  3. RDP, TCP 3389
  4. SMB, TCP 445
Show answer

C. RDP, TCP 3389. RDP on TCP 3389 provides a remote graphical desktop. SSH is tempting because it's secure remote access, but it gives a command line, not a desktop. Telnet is a cleartext command line and SMB shares files.

Question 5. After a firewall change, staff mail apps can't send messages, although the mail servers still exchange mail on TCP 25. Which port should be allowed from staff devices to the company mail server?

  1. TCP 587
  2. TCP 443
  3. UDP 514
  4. TCP 5061
Show answer

A. TCP 587. Mail clients submit messages on TCP 587, logging in and using STARTTLS; CompTIA lists it as SMTPS. Port 25 is for server-to-server relay, 443 is HTTPS, 514 is syslog and 5061 is SIP over TLS.

Transcript

Lesson transcript

The full narration, scene by scene. The captions file contains the same text with timings.

Scene 1 · 0:00

Lesson 7: Ports and protocols, part 2. Welcome to lesson seven, where we finish the port list from objective 1.4. Our online store's server is back, with ten more services, from SNMP on ports 161 and 162 up to SIP on 5060 and 5061. Watch for one pattern as we go: several of these are secure versions of older protocols, and an S at the end of the name usually means the traffic is protected by TLS.

Scene 2 · 0:30

SNMP: polls and traps. SNMP, the Simple Network Management Protocol, lets a monitoring system watch the store's switches and routers. The manager polls each device's agent on UDP port 161, asking for values like interface traffic. When something goes wrong, the agent doesn't wait to be asked: it sends a trap to the manager on UDP port 162. Versions 1 and 2c rely on a community string sent in cleartext. SNMPv3 adds authentication and encryption.

Scene 3 · 1:01

Syslog: central logging. Syslog collects log messages in one place. Instead of checking each device, the store's firewall, switches and web servers all send their logs to a syslog server on UDP port 514. Every message carries a severity, from zero, emergency, down to seven, debug. Plain syslog isn't encrypted, and UDP doesn't guarantee delivery, so syslog over TLS uses TCP port 6514. Pair it with NTP from lesson six, so the timestamps line up.

Scene 4 · 1:33

HTTPS: the web on port 443. HTTPS is HTTP inside a TLS session, on TCP port 443. The server presents a certificate that proves it really is shop.example.com, and then everything, including pages, passwords and card details, is encrypted. That's why the store's checkout only runs on 443, and port 80 just redirects there. One modern detail: HTTP/3 runs over QUIC, which uses UDP port 443. On the exam, HTTPS means port 443.

Scene 5 · 2:02

SMTPS: sending mail on 587. In lesson six, mail servers relayed messages to each other with SMTP on port 25. When a staff member's mail app sends a message, it uses TCP port 587 instead, the submission port. The app logs in and upgrades the connection to TLS with STARTTLS, which is why CompTIA lists 587 as SMTPS. Port 465 is another secure submission port, encrypted from the start. On the exam, secure mail sending means 587.

Scene 6 · 2:33

LDAP vs. LDAPS. LDAP, the Lightweight Directory Access Protocol, uses TCP port 389 to query a directory, such as Active Directory, for users and groups, or to check a login. Plain LDAP is cleartext, so a capture can reveal the password of the account doing the lookup. It can be upgraded with StartTLS on the same port. LDAPS, LDAP over SSL, uses port 636 and is encrypted with TLS from the very first byte.

Scene 7 · 3:04

SMB: Windows file sharing. SMB, Server Message Block, is how Windows shares files and printers. When an office PC opens the orders folder on the store's file server, it connects to TCP port 445. SMB 3 can encrypt that traffic, but it's optional. Worms and ransomware have used SMB to spread for years, so the rule is simple: allow port 445 inside the network, and block it at the internet edge, in both directions.

Scene 8 · 3:35

SQL Server and RDP. Two more ports belong inside the network. Microsoft SQL Server listens on TCP port 1433 by default. The store's web application reads orders from it, so only the app servers should reach 1433. RDP, the Remote Desktop Protocol, on port 3389, gives an admin a full graphical Windows desktop, unlike SSH's command line. RDP is encrypted, but it's a favorite target for password guessing, so reach it through a VPN.

Scene 9 · 4:05

SIP: setting up calls. Last, SIP, the Session Initiation Protocol, runs the store's phone system. SIP sets up, changes and ends voice and video calls. It uses port 5060, over UDP or TCP, without encryption, and port 5061 for SIP over TLS. Notice what SIP doesn't carry: the voice itself. Once the call is set up, the audio flows separately, usually with RTP on other ports.

Scene 10 · 4:32

All ten at a glance. Here are all ten together, with three patterns to remember. First, the secure twins: LDAP 389 becomes LDAPS 636, HTTP 80 becomes HTTPS 443, SIP 5060 becomes 5061, and mail apps send on 587 rather than 25. Second, SNMP and syslog use UDP, SIP can use either, and the rest use TCP. Third, SNMP splits its pair by direction: 161 for polls, 162 for traps.

Scene 11 · 5:01

How the exam asks about this. Exam questions usually describe a need. Encrypting the checkout is HTTPS, 443. A mail client sending with a login and TLS is SMTPS, 587. Encrypted directory queries mean LDAPS, 636. A switch alerting the monitoring system sends an SNMP trap to 162. Central log collection is syslog, 514. Windows file shares are SMB, 445. Graphical remote access is RDP, 3389. And setting up VoIP calls is SIP.

Scene 12 · 5:30

Recap: ports and protocols, part 2. To recap: SNMP polls on 161 and traps on 162, and only version 3 is secure. Syslog collects logs on 514. HTTPS, SMTPS and LDAPS are the TLS versions, on 443, 587 and 636. LDAP on 389, SMB on 445 and SQL Server on 1433 stay inside the network, RDP on 3389 goes behind a VPN, and SIP sets up calls on 5060 and 5061. Next: IP protocol types and traffic types, from ICMP to anycast.

Download captions (WebVTT)

Sources and accuracy

Checked against the official CompTIA N10-009 exam objectives and the standards below on October 24, 2026. Diagrams and addresses in the animation are illustrative.

This free course is independent and isn't affiliated with or endorsed by CompTIA. CompTIA and Network+ are trademarks of CompTIA, Inc.

Preparing a team for Network+?

I run hands-on networking and cloud training for teams, built around your own environment and goals.