TCP Model


Published on

All about TCP.

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

TCP Model

  1. 1. TCP/IP MODEL Avinash Rai
  2. 2. <ul><li>The TCP/IP model, also known as the Department of Defense (DoD) model, was created by </li></ul><ul><li>the DoD when they developed the TCP/IP protocol suite. Their goal was to provide reliable </li></ul><ul><li>networking and data integrity in the event of a disaster. This model is prevalent in the current networking community. Although the OSI model is rarely used (except for the terminology), </li></ul><ul><li>TCP/IP communications are ingrained in today’s networking fabric and are a focal point on the CCNA exam. </li></ul>
  3. 3. Layers of the OSI and TCP/IP Models <ul><li>Application Application </li></ul><ul><li>Presentation </li></ul><ul><li>Session </li></ul><ul><li>Transport Transport </li></ul><ul><li>Network Internet </li></ul><ul><li>Data Link Network Access </li></ul><ul><li>Physical </li></ul>
  4. 4. Application Layer <ul><li>This layer combines functionalities of the three top layers of the OSI model and may also be called Process/Application layer. Some of the most popular applications (email, file transport, and so on) interface with this layer to communicate with other applications on the network. If you’ll remember, the description of the Application layer of the OSI model included a list of application protocols and their primary functions. (Refer to Table 1.3.) These applications are also relative to the Application layer of the TCP/IP model. Table 1.9 provides a quick list of the protocols at their respective layers of the TCP/IP model. </li></ul>
  5. 5. Protocols for Each Layer of the TCP/IP Model <ul><li>Application Telnet HTTP/HTTPS </li></ul><ul><li>FTP TFTP </li></ul><ul><li>DNS SMTP POP3 NFS </li></ul><ul><li>NNTP SNMP NTP DHCP </li></ul><ul><li>Transport TCP UDP </li></ul><ul><li>Internet ICMP ARP RARP IP </li></ul><ul><li>Network Interface Ethernet </li></ul><ul><li>Fast Ethernet Token Ring FDDI </li></ul>
  6. 6. Transport Layer <ul><li>The Transport layer corresponds with the Transport layer of the OSI model and is also known as the Host-to-Host layer. Not only is this layer responsible for reliable data delivery, but it can also make certain that data arrives in the proper order. You will see two transport layer protocols on the CCNA exam. These protocols are TCP and UDP. The following sections cover each protocol and its related applications. </li></ul>
  7. 7. Applications Using TCP <ul><li>Application Port Numbers </li></ul><ul><li>FTP 20,21 </li></ul><ul><li>Telnet 23 </li></ul><ul><li>SMTP 25 </li></ul><ul><li>DNS (zone transfers) 53 </li></ul><ul><li>HTTP 80 </li></ul><ul><li>POP3 110 </li></ul><ul><li>NNTP 119 </li></ul><ul><li>HTTPS 443 </li></ul>
  8. 8. TCP <ul><li>TCP is a reliable connection-oriented protocol. TCP uses acknowledgments, sequencing, and flow control to ensure reliability (please refer back to the “Transport Layer” section of the OSI model for definitions of these terms). A TCP segment contains fields for the Sequence, Acknowledgment, and Windowing numbers. These fields help make sure that datagrams arrive undamaged. This is considered to be reliable delivery. </li></ul>
  9. 9. TCP uses Positive Acknowledgment and Retransmission (PAR): <ul><li>The source device begins a timer when a segment is sent and retransmits if the timer runs out before an acknowledgment is received. The source device keeps track of segments that are sent and requires an acknowledgment for each segment. The destination device acknowledges when a segment is received by sending a packet to the source that iterates the next sequence number it is looking for from the source. </li></ul>
  10. 10. TCP segment header format. <ul><li>Source Port Destination Port </li></ul><ul><li>Sequence Number </li></ul><ul><li>Acknowledgement Number </li></ul><ul><li>Miscellaneous Flags Window (Flow Control) </li></ul><ul><li>Checksum Urgent </li></ul><ul><li>Option </li></ul>
  11. 11. UDP <ul><li>UDP is much simpler than TCP because it is aconnectionless protocol. UDP headers contain </li></ul><ul><li>only the source and destination ports, a length field, and a checksum. Because of the lack of a sequence, acknowledgment, and windowing field, UDP cannot guarantee delivery.Because there are no delivery guarantees, UDP is considered unreliable. With this protocol,it is up to the application to provide reliability. </li></ul>
  12. 12. UDP segment header. <ul><li>Source Port Destination Port </li></ul><ul><li>Length Checksum </li></ul><ul><li>On the plus side, UDP is considerably cheaper to implement and has faster transfer rates. </li></ul>
  13. 13. Applications Using UDP <ul><li>Application Port Number </li></ul><ul><li>DHCP 67,68 </li></ul><ul><li>DNS (name resolution) 53 </li></ul><ul><li>TFTP 69 </li></ul><ul><li>NTP 123 </li></ul><ul><li>SNMP 161 </li></ul>
  14. 14. Internet Layer <ul><li>The Internet layer corresponds with the Network layer of the OSI model. </li></ul><ul><li>The following protocols relate to the logical transmission of packets: </li></ul><ul><li>. IP </li></ul><ul><li>. ICMP </li></ul><ul><li>. ARP, RARP, and Proxy ARP </li></ul>
  15. 15. IP <ul><li>IP uses logical or virtual addressing to get a packet from a source to its destination. IP addresses </li></ul><ul><li>are used by routers to make forwarding decisions. </li></ul><ul><li>Some key characteristics of IP addresses include the following: </li></ul><ul><li>. Addresses are allocated by the Internet Assigned Numbers Authority (IANA). </li></ul><ul><li>. IPv4 IP addresses are 32 bits, divided into four octets (8 bits each). An example of an </li></ul><ul><li>IP address in dotted decimal format would be </li></ul><ul><li>. The minimum value (per octet) is 0 and the maximum value is 255. </li></ul><ul><li>IPv6, which is the future of IP addresses, is 128 bits. </li></ul>
  16. 16. data fields that make up an IP datagram. <ul><li>Version Length </li></ul><ul><li>Source IP Address </li></ul><ul><li>Destination IP Address </li></ul><ul><li>Protocol </li></ul><ul><li>Identification </li></ul><ul><li>IP Options (optional) Padding </li></ul><ul><li>Flags Fragment Offset </li></ul><ul><li>Service Type Total Length </li></ul><ul><li>Time to Live Header Checksum </li></ul><ul><li>Data </li></ul>
  17. 17. ICMP <ul><li>Internet Control Messaging Protocol is used by ping and traceroute utilities. </li></ul><ul><li>Ping (Packet Internet Groper) enables you to validate that an IP address exists and can accept requests. The following transmissions are used by the Ping utility: </li></ul><ul><li>Ping sends an echo request packet to receive the echo response. </li></ul><ul><li>Routers send Destination Unreachable messages when they can’t reach the destination network and they are forced to drop the packet. The router that drops the packet sends the ICMP DU message. Traceroute traces the route or path taken from a client to a remote host. Traceroute also reports the IP addresses of the routers at each next hop on the way to the destination. This is especially useful when you suspect that a router on the route to an unreachable network is responsible for dropping the packet. </li></ul>
  18. 18. ARP, RARP, and Proxy ARP <ul><li>The Address Resolution Protocol (ARP), Reverse Address Resolution Protocol (RARP), and Proxy Address Resolution Protocol (Proxy ARP) are all protocols used at the TCP/IP model’s Internet layer. </li></ul><ul><li>ARP maps a known IP address to a MAC address by sending a broadcast ARP. When the destination IP address is on another subnet, the sender broadcasts ARP for the router’s ethernet port or default gateway, so the MAC address sent back is that of the router’s ethernet port. </li></ul><ul><li>RARP maps a known MAC address to an IP address. Proxy ARP enables a router to respond to an ARP request that has been sent to a remote host. Some Unix machines (especially Solaris) rely on Proxy ARP versus default gateways. </li></ul>
  19. 19. Network Interface Layer <ul><li>This layer corresponds with the Data Link and Physical layers of the OSI model. As mentioned </li></ul><ul><li>earlier in the chapter, this layer manages hardware addressing and physical data transfer. </li></ul>
  20. 20. Thanks <ul><li>Avinash Rai </li></ul>