Download presentation
Presentation is loading. Please wait.
Published byClarence Daniel Modified over 9 years ago
1
Transmission Control Protocol Internet Protocol TCP/IP
2
TCP consists of a set of rules: – for the protocol, that are used with the Internet Protocol, and for the IP, to send data "in a form of message units" between computers over the Internet. – At the same time that IP takes care of handling the actual delivery of the data, TCP takes care of keeping track of the individual units of data transmission, called segments, that a message is divided into for efficient routing through the network.
3
TCP/IP Example In Action For example: When a HTML file is sent from a Web server, the TCP software layer of that server divides the sequence of octets of the file into segments and forwards them individually to the IP software layer (Internet Layer).Internet Layer The Internet Layer encapsulates each TCP segment into an IP packet by adding a header that includes (among other data) the destination IP address.IP address Even though every packet has the same destination address, they can be routed on different paths through the network. When the client program on the destination computer receives them, the TCP layer (Transport Layer) reassembles the individual segments and ensures they are correctly ordered and error free as it streams them to an application.Transport Layer
4
TCP Header (16 bit Address) TCP Header Bit off set 0 1 2 3 4 5 6 7 8 910111213141516171819202122232425262728293031 0 Source portDestination port 32 Sequence number 64 Acknowledgment number 96 Data offset Reserved CWRCWR ECEECE URGURG ACKACK PSHPSH RSTRST SYNSYN FINFIN Window Size 128 ChecksumUrgent pointer 160... Options (if Data Offset > 5)...
5
IPv4 Bit offset0–34–78–1516–31 0Source address 32Destination address 64ZerosProtocolTCP length 96Source portDestination port 128Sequence number 160Acknowledgement number 192Data offsetReservedFlagsWindow 224ChecksumUrgent pointer 256Options (optional) 256/288+ Data
6
Error Checking of Packets Cyclic Redundancy Check (CRC) – takes the sum of all the 1s in the packet's data and adds them together. – The result is stored as a hexadecimal value in the packet. – The receiving device adds up the 1s in the payload and compares the result to the value stored in the trailer. If the values match, the packet is good. – But if the values do not match, the receiving device sends a request to the originating device to resend the packet.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.