TCP/IP

From TRCCompSci - AQA Computer Science
Revision as of 17:39, 21 May 2017 by Admin (talk | contribs) (Well known port numbers)
Jump to: navigation, search

What is a protocol

A protocol is a set of rules, using protocols will allow 2 devices using the same protocol to communicate effectively. Many protocols are used, but they all perform a specific task.

TCPIP Stack

Application layer

Transport layer

Network layer

Link layer

Ports

Why we need them

Well known port numbers

Well Known port numbers are important because if everyone sticks to the numbers you can connect without any issues. If you change the port number of your webserver to 85 for example, nobody would be able to connect unless they knew to use 85 instead of 80.

The common port numbers are:

  • 21 FTP
  • 22 SSH
  • 23 Telnet
  • 25 SMTP
  • 80 HTTP
  • 110 POP3
  • 443 HTTPS

Socket

A socket is an endpoint in a communication, it identifies an application and device. It is the IP address with a Port number, so:

192.168.1.150 : 80

Protocols

The most common are:

HTTP

Hyper Text Transfer Protocol, most often found at the beginning of URLs, is used to transfer an user to a web address that is specified via the domain. This uses port 80,

HTTPS

A verified, secure version of HTTP. This ensures the user that the website they are on is safe and well protected. This uses port 443.

FTP

File Transfer Protocol. This allows you to download / upload files to a server, for example you would upload your websites pages to your webserver using FTP. FTP uses port 21.

SSH

Secure Shell protocol. This protocol allows remote access to a computer, this could be used to perform admin tasks on a server. You will only have command line access to the computer. SSH is also designed for operating securely over an unsecure network. SSH uses port 22, this was deliberately chosen because it was created to potentially use instead of Telnet or FTP.

TELNET

Allows a user to log into a remote computer over the interlinking network. Similar to but predates SSH. Telnet uses port 23.

POP3

Post Office Protocol, version 3. Used to receive incoming emails from an email server. This uses port 110.

SMTP

Simple Mail Transfer Protocol. This is used to send emails, it uses port 25.