Important port number used by different protocols

HTTP ———- 80
FTP ———— 20,21
TelNet ———- 23
SMTP ———- 25
DNS ———– 53
TFTP ———– 69
SNMP ———- 161
RIP ————- 520
IMAP 4——— 143
IMAP 3 ——— 220
RPC ———— 135
LDAP ———- 389
Net Stat ——– 15
WINS ———- 42
BootP ———- 67
DHCP ———- 68
POP2 ———- 109
POP3 ———- 110
Net BIOS —— 139
SSL(HTTPS) — 443
SQL Server —- 1433
NFS ———— 2049
SSH ———— 22
RAP ———– 38
BGP ———– 179



DNS 53
DHCP client 546
DHCP server 547
FTP 21
POP3 110
SMTP 25
Telnet 23
HTTP 80

1. Which protocol DNS is using TCP or UDP?
ANS: UDP
2. Difference between TCP and UDP protocol?

Comments

  1. Difference between TCP and UDP
    TCP
    Reliability: TCP is connection-oriented protocol. When a file or message send it will get delivered unless connections fails. If connection lost, the server will request the lost part. There is no corruption while transferring a message.

    Ordered: If you send two messages along a connection, one after the other, you know the first message will get there first. You don't have to worry about data arriving in the wrong order.

    Heavyweight: - when the low level parts of the TCP "stream" arrive in the wrong order, resend requests have to be sent, and all the out of sequence parts have to be put back together, so requires a bit of work to piece together.

    Streaming: Data is read as a "stream," with nothing distinguishing where one packet ends and another begins. There may be multiple packets per read call.

    Examples: World Wide Web (Apache TCP port 80), e-mail (SMTP TCP port 25 Postfix MTA), File Transfer Protocol (FTP port 21) and Secure Shell (OpenSSH port 22) etc.

    UDP

    Reliability: UDP is connectionless protocol. When you a send a data or message, you don't know if it'll get there, it could get lost on the way. There may be corruption while transferring a message.

    Ordered: If you send two messages out, you don't know what order they'll arrive in i.e. no ordered

    Lightweight: No ordering of messages, no tracking connections, etc. It's just fire and forget! This means it's a lot quicker, and the network card / OS have to do very little work to translate the data back from the packets.

    Datagrams: Packets are sent individually and are guaranteed to be whole if they arrive. One packet per one read call.

    Examples: Domain Name System (DNS UDP port 53), streaming media applications such as IPTV or movies, Voice over IP (VoIP), Trivial File Transfer Protocol (TFTP) and online multiplayer games etc

    ReplyDelete
  2. TCP (Transmission Control Protocol) is the most commonly used protocol on the Internet. The reason for this is because TCP offers error correction. When the TCP protocol is used there is a "guaranteed delivery." This is due largely in part to a method called "flow control." Flow control determines when data needs to be re-sent, and stops the flow of data until previous packets are successfully transferred. This works because if a packet of data is sent, a collision may occur. When this happens, the client re-requests the packet from the server until the whole packet is complete and is identical to its original.

    UDP (User Datagram Protocol) is anther commonly used protocol on the Internet. However, UDP is never used to send important data such as webpages, database information, etc; UDP is commonly used for streaming audio and video. Streaming media such as Windows Media audio files (.WMA) , Real Player (.RM), and others use UDP because it offers speed! The reason UDP is faster than TCP is because there is no form of flow control or error correction. The data sent over the Internet is affected by collisions, and errors will be present. Remember that UDP is only concerned with speed. This is the main reason why streaming media is not high quality.

    ReplyDelete

Post a Comment

Popular posts from this blog

Boot configuration Data Store --BCDEdit /set

ADSI Edit

Userenv logging (User Environment logging)