TCP and UDP
TCP confirms every piece. UDP just sends
TCP is connection-oriented and reliable. UDP is connectionless and fast.
Almost everything on a network travels by one of two protocols. T C P begins with a handshake. The client asks to connect, the server agrees, the client confirms. Three messages, before any data moves. Then every piece of data is acknowledged. If an acknowledgement does not come back, T C P sends that piece again. U D P does none of this. It simply sends. If a packet is lost, nobody is told. That sounds worse, but for a voice call, speed matters more.
TCP and UDP · Going deeper
TCP against UDP
Connection-oriented against connectionless.
Port numbers
Fifteen ports, easier to learn by the job they do
Web 80, 443. Mail 25, 110, 143. Files 20, 21, 445. Remote 22, 23, 3389.
A port number says which service on a computer a message is for. The exam expects you to know fifteen of them. Learn them in groups. The web: eighty for H T T P, four four three for H T T P S. Mail: twenty five to send, one ten and one four three to read. Files: twenty and twenty one for F T P, four four five for Windows sharing. Remote control: twenty two, twenty three, and three three eight nine. And five that run the network itself, led by D N S on fifty three.
Port numbers · Going deeper · 1 of 2
The port list: 20 to 110
FTP, SSH, Telnet, SMTP, DNS, DHCP, HTTP, POP3.
Port numbers · Going deeper · 2 of 2
The port list: 137 to 3389
NetBIOS, IMAP, SNMP, LDAP, HTTPS, SMB, RDP.
Check yourself
Which service is this traffic for?
Secure protocols
Every clear-text protocol has an encrypted replacement
Telnet gives way to SSH, HTTP to HTTPS, and FTP to SFTP.
Some of those fifteen protocols are old, and send everything as readable text. Telnet gives you a remote command line, but your password crosses the network in the clear. S S H does the same job, encrypted, on port twenty two. H T T P shows web pages in the clear. H T T P S wraps the same pages in encryption, on four four three. And F T P moves files in the clear. S F T P moves them inside S S H. When the exam says secure, choose the replacement.
Secure protocols · Going deeper
Clear and encrypted, job by job
993, 995 and 587 for mail. 636 for LDAPS.
Server roles
Four servers answer before the first file opens
DHCP addresses, NTP time, AAA sign-in, DNS names, then the work.
A network is a set of servers, each with one job. Follow a laptop as it joins. First, a D H C P server gives it an address. An N T P server sets its clock. An authentication server checks who the user is. A D N S server turns the names the user types into addresses. Only then does the laptop reach the servers people think about: file shares, printers, mail and the web.
Server roles · Going deeper
Server roles
Syslog collects logs. AAA is who, what, and a record.
Check yourself
Which server answered?
Internet appliances
Boxes with one job, placed where traffic passes
A UTM guards the edge. Spam gateway, load balancer and proxy each do one job.
Between the internet and a company's servers sit a few specialised boxes. At the edge, a U T M: unified threat management. It is a firewall, antivirus and content filter in one device. Mail goes through a spam gateway, which removes junk before it reaches the mail server. Visitors to the website meet a load balancer, which shares them out across several web servers. And when users browse the web, a proxy server fetches the pages for them, so it can filter and cache.
Internet appliances · Going deeper · 1 of 2
Legacy, embedded and IoT systems
SCADA and IoT: change defaults and separate them.
Internet appliances · Going deeper · 2 of 2
Clue words for ports and services
TCP, UDP, the ports, and the appliances.
Check yourself
Which appliance is this?
Lesson complete
You finished “Ports, protocols and network services”
Answer the questions along the way to see your score here.