Port and Protocol
Port and Protocol
All services in network known with a number this number is called Port numbers
All services in application layer have a specific port number for example:
HTTPS 443
HTTP 80
SMTP 25
TFTP 69
DNS 53
SNMP 161
DHCP 67 , 68
And this port number will Tagged in transport layer
What about usage of port number:
2. By using port number transport layer specify a transport protocol to carry packets ( TCP , UDP )
Transport list by default programmed in our PC : ( C:\Windows\System32\drivers\etc )
Example of list:
Protocol with port# Responsible Transport protocol
1. For port number 80 ( HTTP ) TCP is responsible
2. For port number 67 ( DHCP ) UDP is responsible
3. For port number 53 ( DNS ) UDP is responsible
4. For number 23 ( Telnet ) TCP is responsible
Now transport layer by using port number of service, will specify a transport protocol ( TCP or UDP )
Protocols
Command Discription
LS Lists the files in the current directory on the remote system
CD Changes the working directory on the remote host
LCD Changes the working directory on the local host
PUT Uploads a single file to the remote host
GET Downloads a single file from the remote host
MPUT Uploads multiple files to the remote host
MGET Downloads multiple files from the remote host
BINARY Switches transfers into binary mode
ASCII Switches transfers into ASCII mode (the default)
Protocols
Name RFC Port # Functionality
SFTP 913 22 Secure File Transfer Protocol
TFTP 1350 60 Trivial File Transfer Protocol
SMTP 821 25 Simple Mail Transfer Protocol
HTTP 2068 80 Hypertext Transfer Protocol
HTTPS 7230 443 Hypertext Transfer Protocol Secure
POP3/IMAP4 1939 / 1731 110 /143 Post Office Protocol Version 3/Internet Message
Access Protocol Version 4
TELNET 854 32 Virtual Terminal Protocol
SSHv1/SSHv2 4253 22 Secure Shell
Icmp 792 Internet Control Message Protocol
Protocols
Name RFC Port # Functionality
NTP 958 123 Network Time Protocol
LDAP/LDAPS 5410/5411 389/636 Lightweight Directory Access Protocol
H.323 1720 Standard that addresses call, multimedia, and
Bandwidth control for voice and videoconferencing.
SNMP 1157/3413/3418 Simple Network Management Protocol
SIP 5060/5061 Session Initiation Protocol (VoIP)
RDP 3389 Remote Desktop Protocol
SMB 445 Server Message Block (File sharing)
ARP and RARP
ARP
Switch Description
-a Displays the entries in the ARP cache
-s Manually adds a permanent entry to the ARP cache
-d Deletes an entry from the ARP cache