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.
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 system | SNMP trap, UDP 162 |
| Monitoring system polls a switch's counters | SNMP, UDP 161 |
| Send all device logs to one collector | Syslog, UDP 514 |
| Encrypted directory lookups from the start | LDAPS, TCP 636 |
| Mail client submits with authentication and TLS | SMTPS, TCP 587 |
| Windows file and printer sharing | SMB, TCP 445 |
| Database traffic from the web app to Microsoft SQL Server | TCP 1433 |
| Graphical remote desktop to a Windows server | RDP, TCP 3389 |
| VoIP call setup secured with TLS | SIP, 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?
- UDP 161
- UDP 162
- UDP 514
- 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?
- TCP 389
- TCP 445
- TCP 3389
- TCP 636
- 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.)
- SNMP
- LDAPS
- Syslog
- SMB
- 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?
- SSH, TCP 22
- Telnet, TCP 23
- RDP, TCP 3389
- 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?
- TCP 587
- TCP 443
- UDP 514
- 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.
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.
- CompTIA Network+ N10-009 exam objectives (objective 1.4)
- IANA Service Name and Transport Protocol Port Number Registry
- RFC 3417: Transport Mappings for SNMP (UDP 161 and 162)
- RFC 8314: Cleartext Considered Obsolete: TLS for Email Submission (587 and 465)
- RFC 3261: SIP: Session Initiation Protocol (ports 5060 and 5061)
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.