YouTube2Text

Common Ports - CompTIA Network+ N10-009 - 1.4 — Transcript

by Professor Messer · 3,161 words · 484 segments · language en · Watch on YouTube

Full transcript

  1. 0:02as a networking professional you may be
  2. 0:04asked to configure port numbers
  3. 0:05associated with a particular application
  4. 0:08so in this video we'll look at the
  5. 0:10well-known port numbers associated with
  6. 0:12those apps we'll start with a generic
  7. 0:15form of file transfer that's used across
  8. 0:17many different operating systems this is
  9. 0:20FTP or the file transfer protocol this
  10. 0:23is a very common and generic form of
  11. 0:25file transfer that can be used on Linux
  12. 0:28Windows Mac OS and practic Ally any
  13. 0:30other operating system unlike many
  14. 0:33applications that use a single port
  15. 0:35number to communicate FTP is configured
  16. 0:37to use one or two different port numbers
  17. 0:40specifically TCP Port 20 and TCP Port 21
  18. 0:44TCP Port 20 is commonly associated with
  19. 0:47the file transfer process itself and
  20. 0:49Port 21 is commonly sent to send control
  21. 0:52information between one device and
  22. 0:54another FTP has an authentication method
  23. 0:57so you can use usernames and passwords
  24. 0:59and when transferring information you
  25. 1:01can choose to not only transfer the file
  26. 1:03you can List information in a particular
  27. 1:05directory add different files delete
  28. 1:08rename and perform other types of file
  29. 1:11maintenance TCP Port 22 is commonly
  30. 1:14associated with SSH or secure shell this
  31. 1:18is a way to communicate to a Remote
  32. 1:20device from a console so you have this
  33. 1:22textbase front end and you're able to
  34. 1:24configure and manage this device over
  35. 1:26this text based command line interface
  36. 1:29and important characteristic of SSH is
  37. 1:32the secure part of SSH because all of
  38. 1:35the communication between your device
  39. 1:37and that Remote device is all sent
  40. 1:39across the network in encrypted form
  41. 1:43well if there's encryption being used
  42. 1:45with secure shell it would be great if
  43. 1:47we could use encryption with our file
  44. 1:49transfer protocol so of course there is
  45. 1:51a version of the FTP called secure FTP
  46. 1:55or
  47. 1:56SFTP this allows us to transfer files
  48. 1:59from one device to another and that
  49. 2:01entire communication across the network
  50. 2:03is all encrypted by default
  51. 2:05interestingly enough secure FTP is
  52. 2:08really using the SSH protocol to be able
  53. 2:11to perform this encryption so SSH and
  54. 2:14SFTP use the same port number of TCP
  55. 2:17Port 22 and just like our FTP protocol
  56. 2:21that allows us to perform file
  57. 2:22management of that device we can also
  58. 2:25perform the same file management using
  59. 2:27the secure version of FTP so you can
  60. 2:30view the directories you can make
  61. 2:31changes to the directory names you can
  62. 2:33modify files delete information and
  63. 2:36perform all of the normal file
  64. 2:38management from the secure FTP
  65. 2:40application both secure shell and secure
  66. 2:43FTP have that Foundation of SSH as the
  67. 2:46underlying protocol so not only does
  68. 2:48secure shell allow you that remote
  69. 2:51terminal communication you can also have
  70. 2:53remote file transfer communication and
  71. 2:56all of that communication will be
  72. 2:58encrypted using the s SSH protocol over
  73. 3:01TCP Port
  74. 3:0322 before we had encryption over SSH or
  75. 3:07secure shell we used a non-encrypted
  76. 3:09form of terminal communication referred
  77. 3:12to as telnet this stands for
  78. 3:14telecommunication Network and it
  79. 3:16commonly uses TCP Port 23 visually this
  80. 3:20looks almost identical to what we use
  81. 3:22with secure shell the difference however
  82. 3:25is the communication that we're sending
  83. 3:27between our device and the remote
  84. 3:29station is all being sent in the clear
  85. 3:31there's no encryption that's taking
  86. 3:33place across the network this means that
  87. 3:35someone could potentially capture those
  88. 3:38packets and view everything that's being
  89. 3:40sent back and forth over the network
  90. 3:42including your login credentials it's
  91. 3:44for this reason that you don't commonly
  92. 3:46see telnet being used on our Network and
  93. 3:49instead we'll use SSH to ensure that all
  94. 3:51of this communication will always be
  95. 3:54encrypted another important application
  96. 3:56on our network is the use of email and
  97. 3:59of course we need protocols to be able
  98. 4:01to transfer these emails from one email
  99. 4:03server to another to be able to do that
  100. 4:05we use SMTP or the simple mail transfer
  101. 4:09protocol SMTP is commonly associated
  102. 4:12with server to Server email transfers
  103. 4:14using TCP Port 25 all of this traffic
  104. 4:17sent over TCP Port 25 is sent in the
  105. 4:21clear or in plain text there's no
  106. 4:23encryption that's automatically
  107. 4:25configured when using TCP Port 25 that's
  108. 4:28why many SM TP servers will use TCP Port
  109. 4:32587 which is SMTP using TLS encryption
  110. 4:36or the transport layer security SMTP is
  111. 4:40also used from client devices that are
  112. 4:43sending email messages and it's often
  113. 4:46sending those to a mail server using
  114. 4:48this SMTP protocol for receiving email
  115. 4:52messages and being able to manage your
  116. 4:54email inbox we often use other protocols
  117. 4:56such as IMAP or pop 3 so any time that
  118. 5:00you are sending email or you're
  119. 5:02transferring email between email servers
  120. 5:04you're probably using SMTP or the simple
  121. 5:07mail transfer
  122. 5:09protocol we don't often memorize the IP
  123. 5:12address of devices that we communicate
  124. 5:14with instead we use the fully qualified
  125. 5:17domain name or fqdn and the way that we
  126. 5:20translate between the fully qualified
  127. 5:23domain name and the IP address is we use
  128. 5:26a DNS server and that stands for domain
  129. 5:28name system DNS commonly uses UDP Port
  130. 5:3253 to be able to perform this name query
  131. 5:35so we'll ask a DNS server what the IP
  132. 5:38address of www.professormesser.com might
  133. 5:41be and it will respond back with the IP
  134. 5:44address that your device can use to
  135. 5:46communicate to that server for those
  136. 5:48small queries we commonly use UDP Port
  137. 5:5153 but if there's a large transfer of
  138. 5:53data from one DNS server to another we
  139. 5:56commonly would use TCP Port 53 these DNS
  140. 6:00servers are obviously very critical
  141. 6:02resources because without them we
  142. 6:04wouldn't be able to communicate to
  143. 6:05servers such as professormesser.com this
  144. 6:08is also a very common protocol to find
  145. 6:10on the network and if you take a packet
  146. 6:12capture you're almost guaranteed to
  147. 6:14capture some type of DNS
  148. 6:16traffic we become very accustomed to
  149. 6:19Simply plugging into a network or
  150. 6:21connecting to a wireless network and
  151. 6:24automatically being able to communicate
  152. 6:26across that network but behind the
  153. 6:28scenes there is an automat IP
  154. 6:30configuration process using DHCP or the
  155. 6:33dynamic host configuration protocol this
  156. 6:36is the protocol that allows us to
  157. 6:38automatically configure IP address
  158. 6:40settings for anyone that connects to the
  159. 6:42network by default DHCP uses UDP Port 67
  160. 6:46and UDP Port 68 to be able to use DHCP
  161. 6:50we need a DHCP server at home we
  162. 6:53commonly use a DHCP server that's
  163. 6:56integrated into an existing wireless
  164. 6:58router but in an Enterprise Network
  165. 7:00there are often Standalone DHCP servers
  166. 7:03we usually configure a pool of IP
  167. 7:06addresses on DHCP and anyone who
  168. 7:08connects to the network will be
  169. 7:10automatically assigned an IP address
  170. 7:12from this available pool of addresses
  171. 7:14there's also a lease time associated
  172. 7:17with this IP address so you're only able
  173. 7:19to use that IP address for a certain
  174. 7:21amount of time and if you are still
  175. 7:23using that address at the end of the
  176. 7:25leasing period you can choose to renew
  177. 7:27that lease with the DHCP server
  178. 7:30we can also configure certain devices to
  179. 7:32always receive the same IP address every
  180. 7:35time they connect to the network and we
  181. 7:37associate that IP address with the MAC
  182. 7:39address of that device we configure that
  183. 7:42in the DHCP server that's often referred
  184. 7:44to as a DHCP reservation all of this
  185. 7:47communication that occurs across the
  186. 7:49network for DHCP will almost always use
  187. 7:52UDP Port 67 and UDP Port
  188. 7:5568 we talked earlier about the FTP or
  189. 7:59file transfer protocol that we use to
  190. 8:01send files from one device to another
  191. 8:03and we describe the process of
  192. 8:06authentication and the many different
  193. 8:08management functions associated with FTP
  194. 8:11but what if you just needed to transfer
  195. 8:13a small bit of configuration information
  196. 8:15from one device to another you don't
  197. 8:17need to view the name of a directory or
  198. 8:20change any of the file names you simply
  199. 8:22need to transfer a small amount of
  200. 8:24information very very quickly to be able
  201. 8:27to do that you might use tftp or the
  202. 8:30trivial file transfer protocol and by
  203. 8:32default it uses UDP Port 69 you'll often
  204. 8:36see tftp used for very simple file
  205. 8:38transfers usually this is something that
  206. 8:40doesn't require any type of
  207. 8:42authentication or login process so it
  208. 8:44may be something like a Voiceover IP
  209. 8:47device that has no IP address and no
  210. 8:49configuration and when you plug it into
  211. 8:51the network it is powered on using power
  212. 8:53over ethernet it uses DHCP to get an IP
  213. 8:57address and then it uses TFT TP to be
  214. 9:00able to download the latest
  215. 9:01configuration file from the server this
  216. 9:04is a quick and easy process it transfers
  217. 9:06data without any extra overhead it's
  218. 9:09able to do that very efficiently and
  219. 9:11very quickly using UDP Port
  220. 9:1469 if you're communicating to a web
  221. 9:17server you're probably using one of two
  222. 9:19different port numbers this is using
  223. 9:21HTTP or
  224. 9:23https this stands for hypertext transfer
  225. 9:26protocol and it's a communication that
  226. 9:28is commonly associated with
  227. 9:30browser-based communication if the
  228. 9:32information between your browser and the
  229. 9:34web server is being sent in the clear
  230. 9:36without any type of encryption it's
  231. 9:38commonly using TCP Port 80 if you need
  232. 9:41to perform encryption of that data and
  233. 9:44that is probably the default for most
  234. 9:46websites that you'll visit these days it
  235. 9:48is using SSL that stands for secure
  236. 9:51sockets layer or newer version of SSL
  237. 9:54referred to as TLS or transport layer
  238. 9:56security if this is encrypted data then
  239. 9:59it's probably using TCP Port 443 which
  240. 10:02is sending
  241. 10:04https for
  242. 10:05secure another thing you may notice with
  243. 10:08the devices that are connected to the
  244. 10:09network is they all tend to have the
  245. 10:12correct time and date down to the second
  246. 10:15level we're able to do that through an
  247. 10:17automated process called ntp or the
  248. 10:20network time protocol every device on
  249. 10:23the network operating systems routers
  250. 10:25switches and any other device can use
  251. 10:28ntp to stay synchronized with their
  252. 10:30clock across all of those different
  253. 10:32devices by default ntp uses UDP Port 123
  254. 10:37being able to synchronize these clocks
  255. 10:39is more than simply a convenience in
  256. 10:42fact it can be a very critical part of
  257. 10:44synchronizing log files between very
  258. 10:46diverse devices this allows us to go
  259. 10:49back in time and piece together
  260. 10:51Communications even though that
  261. 10:53communication occurred on many different
  262. 10:55devices this is a process that usually
  263. 10:57occurs automatically behind the scenes
  264. 11:00and many devices will synchronize their
  265. 11:02clock multiple times during the day
  266. 11:04using the ntp protocol you might also be
  267. 11:07able to configure this process maybe
  268. 11:09you'd like a device to update its clock
  269. 11:11every hour or maybe simply updating once
  270. 11:13a day is sufficient this is also a very
  271. 11:16accurate way to keep these clocks in
  272. 11:19synchronization and usually we get about
  273. 11:21a 1 millisecond difference between
  274. 11:24devices that are all on the same network
  275. 11:26this provides a level of granularity
  276. 11:28that's sufficient for most applications
  277. 11:31and it's something that occurs
  278. 11:32automatically using UDP Port 123 and the
  279. 11:35network time
  280. 11:37protocol as a network professional
  281. 11:39you'll be responsible for the uptime and
  282. 11:41availability of routers switches
  283. 11:44firewalls and many other devices on the
  284. 11:46network one way to manage those devices
  285. 11:49is through a protocol named SNMP or the
  286. 11:52simple Network management protocol by
  287. 11:55default SNMP uses UDP Port 161 to query
  288. 12:00devices and receive information about
  289. 12:02how that device may be performing for
  290. 12:05example we might have a management
  291. 12:06station and we might be querying a
  292. 12:08device to determine how much traffic has
  293. 12:11traversed that particular device over a
  294. 12:13certain amount of time and then it can
  295. 12:15provide us with a summary of how much
  296. 12:17data has been transferred over that time
  297. 12:20frame we can then store that data create
  298. 12:23graphs reports and other information
  299. 12:25that allows us to manage that device you
  300. 12:28might also find that different versions
  301. 12:30of SNMP may be used on your network
  302. 12:33version one of SNMP is the original
  303. 12:35version this allows your management
  304. 12:37station to perform a single query to
  305. 12:39this device and receive a single
  306. 12:41response and all of this is sent over
  307. 12:43the network in the clear with no
  308. 12:45encryption version two of SNMP allowed
  309. 12:48for bulk transfers so we can ask for
  310. 12:51many different variables from this
  311. 12:52device and receive a large group of data
  312. 12:55from that device which simplified the
  313. 12:57network communication and made it much
  314. 13:00more efficient but it didn't provide any
  315. 13:02type of encryption all of this
  316. 13:04information is still being sent across
  317. 13:05the network in the clear a more modern
  318. 13:08version of SNMP is what you may commonly
  319. 13:10find on your network today which is
  320. 13:12version three this is a more secure
  321. 13:15standard for SNMP which allows message
  322. 13:18Integrity authentication and encryption
  323. 13:20of the SNMP data one of the things
  324. 13:23you'll find with this default use of
  325. 13:25SNMP is the management station is
  326. 13:28interacting actively making a query and
  327. 13:31then receiving a response for that query
  328. 13:33so it's up to the management station to
  329. 13:36initiate that communication but it would
  330. 13:38be nice if these devices could identify
  331. 13:41problems and proactively send that
  332. 13:43information down to the management
  333. 13:45station we can do that by using a
  334. 13:47feature of SNMP called an SNMP trap this
  335. 13:51allows these notifications to be sent
  336. 13:53directly from these devices using UDP
  337. 13:56Port
  338. 13:58162 many organizations may have hundreds
  339. 14:01or thousands of devices on their Network
  340. 14:03and it may be a challenge to be able to
  341. 14:05keep track of what devices are on the
  342. 14:07network what users are connecting to
  343. 14:09those devices and how the relationship
  344. 14:11might be between the user and the device
  345. 14:14we're able to maintain a database of all
  346. 14:17of these devices and all of these users
  347. 14:19through a protocol named ldap ldap
  348. 14:22stands for lightweight directory access
  349. 14:24protocol and it commonly uses TCP port
  350. 14:27389
  351. 14:29ldap allows us to very easily query
  352. 14:31these databases and retrieve information
  353. 14:34that we may have stored there's also a
  354. 14:36secure version of ldap called ldap
  355. 14:38secure it uses TCP Port
  356. 14:42636 ldap uses a hierarchical structure
  357. 14:45to be able to layout the network and the
  358. 14:48devices this is a graphical view of an
  359. 14:51ldap database it starts with the root of
  360. 14:53the database which is an organization in
  361. 14:56this case the organization is Messer
  362. 14:58Studios we've also grouped together like
  363. 15:01devices into organizational units there
  364. 15:03is a production OU a support OU and an
  365. 15:07engineering OU within those
  366. 15:09organizational units there may be common
  367. 15:12name devices for example there may be
  368. 15:14users such as Jack and Daniel or there
  369. 15:17may be a database or storage device
  370. 15:19named Tech docs we're able to organize
  371. 15:22and access these devices through this
  372. 15:24structure making it a very common and
  373. 15:27simplified way of gaining access access
  374. 15:29to this
  375. 15:30data Microsoft Windows has some very
  376. 15:33unique features when it comes to data
  377. 15:35transfer Microsoft stores information on
  378. 15:38the network in a file share you can also
  379. 15:40share printers through Microsoft's
  380. 15:42operating systems and there's also
  381. 15:44authentication built into this entire
  382. 15:47process to be able to provide all of
  383. 15:49this functionality there is a
  384. 15:51specialized protocol named SMB or server
  385. 15:54message block to be able to share files
  386. 15:57share printers or authenticate to the
  387. 15:59network you might also see this referred
  388. 16:01to as cifs or the common internet file
  389. 16:05system SMB is integrated into Windows
  390. 16:08itself you don't need to add additional
  391. 16:10software there's no additional FTP or
  392. 16:13SFTP process instead built into the
  393. 16:16Windows Explorer or the file explorer
  394. 16:18within Microsoft Windows is the SMB
  395. 16:21functionality that allows us to access
  396. 16:23file shares print to remote printers
  397. 16:26lock different files on the network and
  398. 16:28provide processes for authentication and
  399. 16:31permissions for all of that data early
  400. 16:34versions of Microsoft Windows used the
  401. 16:36net bios protocol to be able to
  402. 16:39facilitate this communication but most
  403. 16:41modern versions of Microsoft Windows
  404. 16:43communicate directly across the network
  405. 16:45using IP and TCP Port 445 is the one
  406. 16:49that is usually associated with server
  407. 16:52message block or
  408. 16:54SMB as a network professional you'll
  409. 16:57find that you are constantly referring
  410. 16:59to logs that are being kept on your
  411. 17:01routers your switches your firewalls
  412. 17:03your servers and almost any other device
  413. 17:06that's connected to the network One
  414. 17:08Challenge is being able to consolidate
  415. 17:10all of these different log files to one
  416. 17:12single location and there is a
  417. 17:14standardized protocol for transferring
  418. 17:16these log files called CIS log CIS log
  419. 17:19commonly uses UDP Port 514 to be able to
  420. 17:23transfer this log data across the
  421. 17:25network you'll often use CIS log in
  422. 17:28conjunction with a security information
  423. 17:30and event manager or a Sim this is a
  424. 17:34consolidation point where you can have
  425. 17:36all of your log files transferred into
  426. 17:38one single Consolidated database so if
  427. 17:41you're using CIS log and transferring
  428. 17:43that over UDP Port 514 then you're
  429. 17:46probably transferring it to a very large
  430. 17:48Drive array or some other device where
  431. 17:51you can collect that log information
  432. 17:53over an extended period of
  433. 17:55time we store a lot of very diverse
  434. 17:58information on our databases but
  435. 18:00fortunately there is a very common form
  436. 18:03of storage and retrieval for those
  437. 18:06databases referred to as a structured
  438. 18:08query language or SQL some people refer
  439. 18:11to this as SQL this SQL database uses a
  440. 18:15standard language that you can use to be
  441. 18:17able to query and retrieve information
  442. 18:20from that database Microsoft has its own
  443. 18:23form of SQL database called the
  444. 18:25Microsoft SQL server or mssql
  445. 18:28stands for Microsoft structured query
  446. 18:31language and it very commonly uses TCP
  447. 18:33Port
  448. 18:341433 there are other types of SQL
  449. 18:37databases you might find on your network
  450. 18:39and they usually use different port
  451. 18:41numbers so if you see TCP Port 1433 then
  452. 18:45you're probably using a Microsoft SQL
  453. 18:48Server many of us start on the help desk
  454. 18:51to be able to provide support for our in
  455. 18:53users and one way that we're able to
  456. 18:55view the remote desktop of those devices
  457. 18:58is through the use of RDP or the remote
  458. 19:01desktop protocol RDP uses by default TCP
  459. 19:04port
  460. 19:053389 to be able to view that remote
  461. 19:08desktop the remote desktop protocol is
  462. 19:11commonly associated with a service
  463. 19:13that's running on a Windows device but
  464. 19:15fortunately there are many clients that
  465. 19:17can use RDP to connect to those windows
  466. 19:20devices so it's not unusual to find RDP
  467. 19:23clients for Windows Mac OS Linux iPhone
  468. 19:27Android and many other op operating
  469. 19:29systems there are many different
  470. 19:31protocols used for voice over IP one of
  471. 19:34the most popular is sip this is the
  472. 19:37session initiation protocol and it
  473. 19:39commonly uses TCP Port 5060 and TCP Port
  474. 19:435061 sip is commonly used as the control
  475. 19:47protocol that we use when we pick up the
  476. 19:49phone we dial the number it initiates
  477. 19:51the phone call and then when the phone
  478. 19:53call is over it disconnects the session
  479. 19:56you might also see sip being used for
  480. 19:58extend iions of Voiceover IP that
  481. 20:00provide video conferencing instant
  482. 20:02messaging and even file transfers all of
  483. 20:05this takes place using sip over TCP Port
  484. 20:085060 and TCP Port 5061

About this transcript

This page contains the full transcript of Common Ports - CompTIA Network+ N10-009 - 1.4 by Professor Messer, generated from the public captions YouTube serves with the video. The transcript has 3,161 words across 484 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.