Link to home
Start Free TrialLog in
Avatar of jaisonshereen
jaisonshereen

asked on

What is the use of each ports? is this the default port numbers?

PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
111/tcp  open  rpcbind
443/tcp  open  https
631/tcp  open  ipp
878/tcp  open  unknown
5432/tcp open  postgres
SOLUTION
Avatar of kanalQko
kanalQko
Flag of Slovakia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jaisonshereen
jaisonshereen

ASKER

why we are using ports ? whats the use of each?
Avatar of Kent Olsen

Hi Jaison,

Here's a posted list of all of the well-known ports.  It's a lot more than you want to read, but the first couple of dozen will be names that you may recognize.  FTP, TELNET, SMTP (mail), SNTMP (network management), SSH, and others.

  http://www.iana.org/assignments/port-numbers

It might help to think of an IP addess as a phone number.  When you call corporate headquarters, someone nice office admin answers and asks you who you want to talk with or asks you for an extension.  The phone number gets you a switchboard, the extension gets you to a particular phone.

The IP address/Port number works the same way.  The IP address gets you to a server, the port number gets you to a particular service or application on the server.


Good Luck,
Kent
ok..above all are tcp ports right? mostly we use only tcp ports ? whats the speciality of this ?

ftp - 21     -------- > this is for file transefer ..so file transfer through this port ..right?
pop - 100----------> i dont know
pop3 - 110 --------> for mails does mails comes through this? :-) whats the difference from above?
telnet - 23 ---------> for telnet sessions
ssh - 22 -----------> for ssh..secure transactions...but where we used this?
smtp - 25-----------> again for mail?
http - 80------------>  is this for website?
https - 443---------> website using secure protocol ... but what is the difference between ssh?

Please clarify my doubts!!

Thanks in advance!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks a lot of info..

is this comes in the category tcp ? why so ?

is there any other categorizes ? what is the specialty of tcp ?

Some ports will accept and communicate TCP sessions, some UDP sessions, others both.

There aren't a lot of differences between TDP and UDP, but the differences are significant.

The biggest difference is that packets sent over a TCP session are collected in the IP stack and passed to the application in the order that they were sent.  (It may be that a connection has about 15 routers between the client and server.  The packets don't all have to follow the same route, so it's possible that the can arrive out of order.  The TCP protocol requires that the packets be delivered in the correct order.)  UDP packets can arrive in any order.

TCP,  UDP, and ICMP are the 3 types of sessions that you're likely to see.  ICMP is how the network handles things like ping and traceroute.


Kent
You mean this port will work in UDP also?

ftp - 21
pop - 100
pop3 - 110
telnet - 23
ssh - 22
smtp - 25
http - 80
https - 443


if no , which will work in UDP?

Any port can use TCP or UDP.  There's no limitation there.

The key element is to know which protocol (TCP, UDP) the server on a given port will connect.  Most servers will connect ONLY to TCP.  It makes no sense to have packets arrive out of order for FTP, SSH, TELNET, MAIL, etc. since the data would be all jumbled up.

For the list that you last posted, I believe that they will respond only to TCP connection requests.

Kent
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial