Selasa, 14 Juli 2009

TCP and UDP Port Numbers

by Your Name 0 comments



Share this post:
Design Float
StumbleUpon
Reddit

Description TCP and UDP are both transport protocols above the IP layer, which are interfaces between IP and upper-layer processes. TCP and UDP protocol port numbers are designed to distinguish multiple applications running on a single device with one IP address from one another.

Since many network applications may be running on the same machine, computers need something to make sure the correct software application on the destination computer gets the data packets from the source machine, and to make sure replies get routed to the correct application on the source computer. This is accomplished through the use of the TCP or UDP "port numbers". In the TCP and UDP header, there are "Source Port" and "Destination Port" fields which are used to indicate the message sending process and receiving process identities defined. The combination of the IP address and the port number is called "socket".

There are three port ranges defined by IETF IANA: the Well Known Ports, the Registered Ports, and the Dynamic and/or Private Ports.

  • The Well Known Ports are in the range of 0 to 1023, which are assigned by the IANA. In most cases, they can only be used by system (or root) processes or by programs executed by privileged users.
  • The Registered Ports are in the range of 1024 to 49151, which are not controlled by IANA. They are commonly used by ordinary user processes or programs executed by ordinary users.
  • The Dynamic and/or Private Ports are in the range of 49152 to 65535, which are typically used as source port by a TCP or UDP client, to communicate with a remote TCP or UDP server, using a well-known port as destination port.

Partial TCP UDP Port Numbers (Well-Known Ports)

Port No. Protocol Service Name Aliases Comment
1 TCP tcpmux
TCP Port Service Multiplexer
2 TCP/UDP compressnet
Management Utility
3 TCP/UDP compressnet
Compression Process
7 TCP/UDP echo
Echo
13 TCP/UDP daytime
Daytime
19 TCP/UDP chargen ttytst source Character generator
20 TCP ftp-data
File Transfer
21 TCP ftp
FTP Control
22 TCP ssh
SSH remote login protocol
23 TCP telnet
Telnet
25 TCP smtp mail Simple Mail Transfer
37 TCP/UDP Time
Time
39 UDP RLP resource Resource Location Protocol
42 UDP nameserver name Host Name Server
43 TCP nicname whois Who Is
49 UDP TACACS
TACACS: Login Host Protocol
53 TCP/UDP domain DNS Domain Name Server
67 UDP bootps dhcps Bootstrap Protocol Server
68 UDP bootpc dhcpc Bootstrap Protocol Client
69 UDP TFTP
Trivial File Transfer Protocol
70 TCP gopher
Gopher
79 TCP/UDP finger
Finger
80 TCP/UDP http www,http World Wide Web
88 TCP/UDP kerberos krb5 Kerberos
101 TCP hostname hostnames NIC Host Name Server
102 TCP iso-tsap
ISO-TSAP Class 0
107 TCP rtelnet
Remote Telnet Service
110 TCP Pop3 postoffice Post Office Protocol- Version 3
111 TCP/UDP sunrpc rpcbind portmap SUN Remote Procedure Call
113 TCP Auth ident tap Authentication Sevice
117 TCP Uucppath
UUCP Path Service
118 TCP sqlserv
SQL Services
119 TCP nntp usenet Network News Transfer Protocol
123 UDP Ntp
Network Time Protocol
135 TCP/UDP epmap loc-srv DCE endpoint resolution
137 TCP/UDP netbiosns nbname NETBIOS Name Service
138 UDP netbiosdgm nbdatagram NETBIOS Datagram Service
139 TCP netbiosssn nbsession NETBIOS Session Service
143 TCP Imap imap4 Internet Message Access Protocol
158 TCP pcmailsrv repository PC Mail Server
161 UDP snmp snmp SNMP
162 UDP snmptrap snmptrap SNMP TRAP
170 TCP Printsrv
Network PostScript
194 TCP irc
Internet Relay Chat Protocol
213 UDP ipx
IPX over IP
389 TCP ldap
Lightweight Directory Access Protocol
401 TCP/UDP UPS
Uninterruptible Power Supply
443 TCP/UDP https MCom http protocol over TLS/SSL
445 TCP/UDP CIFS
Kerberos (v5)
464 TCP/UDP kpasswd
Message
500 UDP isakmp ike Internet Key Exchange (IPSec)
513 TCP login
Remote Login
513 UDP who whod Database of who's logged on, average load
514 TCP cmd shell Automatic Authentication
514 UDP syslog

515 TCP printer spooler Listens for incoming connections
517 UDP talk
Establishes TCP Connection
120 TCP efs
Extended File Name Server
520 UDP Routing router routed RIPv.1, RIPv.2
521 UDP Routing router routed RIPng
525 UDP Timed timeserver Timeserver
530 TCP/UDP Courier rpc RPC
531 TCP conference chat IRC Chat
532 TCP netnews readnews Readnews
533 UDP Netwall
For emergency broadcasts
540 TCP Uucp uucpd Uucpd
543 TCP Klogin
Kerberos login
544 TCP Kshell krcmd Kerberos remote shell
550 UDP newrwho new-who New-who
554 UDP rtsp
Real Time Stream Control Protocol
556 TCP remotefs rfs rfs_server Rfs Server
560 UDP rmonitor rmonitord Rmonitor
561 UDP monitor

636 TCP Ldaps sldap LDAP over TLS/SSL
749 TCP/UDP kerberosadm
Kerberos administration
750 UDP Kerberos-iv
Kerberos version IV
1080 TCP/UDP socks
socks
1812 TCP RADIUS
RADIUS
1813 TCP RADIUS
RADIUS accounting


Reference Links

http://www.iana.org/assignments/port-numbers
TCP and UDP port numbers

Comments 0 comments