TCP Ip
TCP Ip
TCP/IP Applications
or UDP based on the applications requirements. TCP provides error recovery, but it consumes bandwidth and uses more processing cycles. TCP relies on IP for end-to-end delivery of the data. Regardless of whether two computers are on the same Ethernet, or are separated by the entire Internet, TCP performs its functions the same way.
Multiplexing using port numbers. Error recovery Flow control Connection establishment and termination End-to-end ordered data transfer Segmentation
The computer might be running many applications, such as a web browser, an e-mail package, or an FTP client. TCP and UDP both have a feature called multiplexing. TCP and UDP multiplexing enables the receiving computer to know which application to give the data to.
To accomplish error recovery, TCP numbers data bytes using Sequence and Acknowledgment fields in the TCP header.
The Sequence number reflects the number of the first byte in the segment.
The Acknowledgment number implies the next byte to be received; this is called forward acknowledgment.
If the second TCP segment is lost, the web client replies an ACK field equal to 2000, implying that the web client is expecting byte number 2000 next.
The TCP function at the web server then could recover lost data by resending the second TCP segment.
The TCP protocol allows for resending just that segment and then waiting, hoping that the web client will reply with an ack 4000.
Positive ACK
With positive acknowledgment and retransmission (PAR), the source sends a packet, starts a timer, and waits for an acknowledgment before sending the next packet. If the timer expires before the source receives an acknowledgment, the source retransmits the packet and starts the timer over again.
Connection Establishment
SYN: Synchronize
ACK: Acknowledgment
TCP three-way connection establishment occurs before any of the other TCP features can begin their work. The connection exists between the two sockets. TCP initialises the Sequence Number and Acknowledgment Number fields to any number that fits into the 4-byte fields.
Connection Termination
FIN: Finish
Before the device on the right sends the third TCP segment in the sequence, it notifies the application that the connection is coming down. It then waits on an akcnowledgment from the application before sending the third segment.
UDP is connectionless and provides no reliability, no windowing, and no reoredering of the received data. However, UDP provides data transfer, segmentation, and multiplexing using port numbers. The most advantage of UDP over TCP is that there are fewer bytes of overhead and it transfers data faster than TCP. UDP does not require waiting on acknowledgments or holding the data in memory until it is acknowledged.
The
IP Protocol is responsible for: defining packet format and addressing scheme routing packets to remote hosts transferring data between the internet layer and the network access layer
packets.
IP:150.151.10.5
Reverse ARP
RARP request MAC:00:F2:C3:43 What's my IP?
MAC:00F2:C3:43
The Network Access Layer is the host-to-network layer of the TCP/IP model.
Encapsulation of IP packets into frames Interface to the physical medium