TCP VS UDP

TCP(transmission control protocol )
  1. Process ---> Application Layer
  2. Host-to-Host ---->Transport Layer
  3. Internet Layer
  4. Network Access/Link Layer
  • It needs connection before transmit data, and close after transmitting data.
  • It has listen(), connect(), 
  • It is reliable, 
  • The data is transmitted in-order.
  • If some package lost,  it will re-transmit it again.
  • The header is much longer than UDP.
  • It can only support one-to-one transmission.


Includes Telnet(remote login), FTP(file transfer protocol), SMTP(Simple Mail Transfer Protocol). TCP is used in applications with large amount of data transmission and high reliability requirements. The POP3 mail Retrieve protocol.


UDP
  1. It don’t need the connection before transmit data.
  2. Some data maybe lost in the transmition.
  3. The header is only 8 bytes.
  4. It support one-to-multiple, multiple-to-multiple, multiple-to-one.
  5. UDP is used by DNS, DHCP, TFTP, SNMP, RIP, and VoIP.
  6. UDP is efficient for broadcast and multicast type of network transmission.
  7. UDP has only the basic error checking mechanism using checksum.
  8. UDP is faster, simpler and more efficient than TCP.

Popular posts from this blog

Phonebook - Hack the box Write up -- Web LDAP injection

wafwaf -- Hack The Box -- Web SQL injection

Cheat sheet for security+