Three Way Handshake: Networking & TCP/IP Tutorial. TCP/IP Explained . HD
3 way handshake. Networking & TCP/IP Tutorial. TCP/IP Explained TRANSCRIPT: We dive into the TCP three-way handshake. Most folks can tell you that the three-way handshake is Syn, Syn-Ack, Ack. What does that mean? In this video I’give you all the nitty-gritty details so that you will understand everything you need to know about three-way handshake. Why is it important to understand the three-way handshake? Because it’s really the basis of understanding TCP itself. At the most basic level what is it the three-way handshake does? It establishes a connection between a client & a server. So when they say that TCP is connection oriented, it is the three-way handshake that creates the connection in the first place. Remember that UDP is not connection oriented so therefore it does not use the three-way handshake Three-way handshake actually performs 4 specific functions for the TCP. These functions, in no particular order, are: • is the destination port listening? • Advertisement of ephemeral ports • advertisement of ISN’s • advertisement of window sizes So in this video is go over in detail each of the 4 functions above and then I’ll do a live demonstration of the three-way handshake in Wireshark. Let’s start with 1st function of the three-way handshake: • Is the destination port listening? In TCP, we have a client host that tries to connect to a server host. The client always sends the first packet, which is a SYN. If the server is listening on the destination port of the SYN packet, then it will respond with the SYN ACK packet. If the server is not listening, i.e. the server port is closed, then then it will not respond with SYN ACK and the connection process terminates here. We go to the next function of the three-way handshake which is: • Advertisement of ephemeral ports While IP address tells TCP/IP what host to go to, the port number says where on the host to go to, specifically what application to go to. There are 2 different types of ports: well-known ports and ephemeral ports. Examples of well-known ports: port 80 for HTTP, port 443 for HTTPs, & port 23 for Telnet. If the client wants to connect to a specific Web server, the first packet of the three-way handshake will show a destination port of port 80 & a source port of some random number greater than 1023, such as 12345. 12345 is chosen at random by the client and is called an ephemeral port. The server must be aware of this ephemeral port number to allow it to communicate back to the correct application process on the client We go to the next function of the three-way handshake which is: • Advertisement of ISN’s ISN stands for Initial Sequence Number. But before we can understand what an initial sequence number is, we need to understand concept of sequence numbers in general. TCP numbers all data bytes that are transmitted during a connection, and TCP keeps track of the sequence number to maintains its reliability. However the first sequence num
Похожие видео
Показать еще