Advertisement
armaannarangs

revision tcp ip part 1

Mar 28th, 2020
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. REVISION OF TCP/IP
  2. =================
  3.  
  4. ==> IP transports datagrams (packets) from the source node to the destination node.
  5. -------------------------------------------------------------------------------------
  6.  
  7. TCP (header size= 20 bytes)
  8. ===
  9. TCP provides a connection-oriented reliable service for sending messages.
  10. - splits a message into packets
  11. - reassembles packets at the destination.
  12. - resends packets that were lost in transit.
  13. - it does error control.
  14. - everything is in an order.
  15.  
  16. eg. Whatsapp
  17. >hi
  18. >mo
  19. >sup
  20. >?
  21.  
  22. UDP (header size= 8 bytes)
  23. ===
  24. UDP is connectionless, unreliable service for sending datagrams.
  25. - message is small enough to fit into a packet.
  26. - simpler (and faster) than TCP.
  27. - never splits the data into multiple packets.
  28. - does not care about error correction.
  29. - does not maintain an order
  30. Eg. Instagram
  31.  
  32. >mo
  33. >hi
  34. >?
  35. >sup
  36. -------------------------------------------------------------------------------------
  37.  
  38.  
  39. IP layer
  40. ========
  41. ==> IP layer provides a connectionless, unreliable delivery system for the packets.
  42. - each packet is independant of another.
  43. - IP layer does not maintain any history
  44. - Each IP packet must contain the Source address and the destination address.
  45. - does not guarantee the delivery of the packets.
  46.  
  47. -------------------------------------------------------------------------------------
  48.  
  49. TCP header size - 20 bytes
  50. UDP header size - 8 bytes
  51.  
  52. IPv4 size - 20 bytes
  53. IPv6 size - 40 bytes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement