WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.800 --> 00:00:07.700
Hello, everyone and welcome.

1
00:00:08.900 --> 00:00:11.600
Today we are going to learn about what is TCP. And

2
00:00:11.600 --> 00:00:12.500
 what is UDP?

3
00:00:14.400 --> 00:00:17.300
So first, we will discuss about versus what is

4
00:00:17.300 --> 00:00:20.400
 TCP and then we'll discuss about what is UDP.

5
00:00:21.300 --> 00:00:24.800
After that, we are going to see the difference between TCP

6
00:00:24.800 --> 00:00:25.400
 and UDP.

7
00:00:26.200 --> 00:00:29.600
And then we will do the packet breakdown of TCP and

8
00:00:29.800 --> 00:00:30.800
 UDP to understand.

9
00:00:32.400 --> 00:00:35.300
What does a packet of TCP contain and what does

10
00:00:35.300 --> 00:00:36.900
 a packet of UDP contain?

11
00:00:38.200 --> 00:00:42.100
And then lastly we are going to discuss about TCB 3-way

12
00:00:41.100 --> 00:00:42.500
 handshake.

13
00:00:44.400 --> 00:00:47.400
Yeah, so let's start with TCP.

14
00:00:48.400 --> 00:00:51.500
TCP stands for transmission control protocol

15
00:00:53.600 --> 00:00:57.300
generally TCP is connection oriented protocol,

16
00:00:56.300 --> 00:00:59.800
 which means it makes a

17
00:00:59.800 --> 00:01:00.600
 connection with the

18
00:01:01.400 --> 00:01:02.900
client and server

19
00:01:04.300 --> 00:01:07.600
TCP gives acknowledgment to the client as

20
00:01:07.600 --> 00:01:10.800
 well as the server because of this extra function

21
00:01:10.800 --> 00:01:13.500
 of giving acknowledgment. It becomes

22
00:01:13.500 --> 00:01:16.600
 slower compared to UDP.

23
00:01:19.300 --> 00:01:22.900
The example of a TCP communication is email communication

24
00:01:22.900 --> 00:01:25.100
 in which the client and the

25
00:01:25.100 --> 00:01:28.600
 sender both acknowledges each other of

26
00:01:28.600 --> 00:01:31.600
 successful transmission and receiving

27
00:01:31.600 --> 00:01:32.500
 of packets.

28
00:01:34.700 --> 00:01:36.600
So, let's see. What is UDP.

29
00:01:37.900 --> 00:01:40.700
UDP stands for user datagram protocol

30
00:01:41.800 --> 00:01:44.000
it is a connection less protocol.

31
00:01:46.500 --> 00:01:48.300
It doesn't give any acknowledgment.

32
00:01:49.800 --> 00:01:52.800
Because of this specific reason it

33
00:01:52.800 --> 00:01:55.500
 is faster than compared to TCP.

34
00:01:57.300 --> 00:02:01.100
The example of UDP is video conferencing or view

35
00:02:00.100 --> 00:02:01.900
 IP calls.

36
00:02:04.300 --> 00:02:08.000
So through this difference, we understand that UDP

37
00:02:07.100 --> 00:02:10.100
 is used in those types of

38
00:02:10.100 --> 00:02:13.600
 applications wherein speed is considered

39
00:02:13.600 --> 00:02:15.300
 as one of the primary reason.

40
00:02:17.100 --> 00:02:18.900
So whenever you try to watch.

41
00:02:20.100 --> 00:02:23.200
Live matches or anything that is

42
00:02:23.200 --> 00:02:24.100
 live streaming.

43
00:02:24.800 --> 00:02:26.100
Sometimes you may

44
00:02:27.800 --> 00:02:30.300
see that there is some type of glitch which

45
00:02:30.300 --> 00:02:32.300
 is coming on into your video feed.

46
00:02:33.100 --> 00:02:37.200
This is because there is no proper acknowledgment while

47
00:02:36.200 --> 00:02:39.200
 transferring the live video feed.

48
00:02:41.200 --> 00:02:42.800
this happens because

49
00:02:44.400 --> 00:02:47.600
the important thing is that you are able

50
00:02:47.600 --> 00:02:50.000
 to see the Live Match onto your

51
00:02:50.500 --> 00:02:52.200
 screen without delays.

52
00:02:53.300 --> 00:02:56.800
You do not want any type of delays. Thus there

53
00:02:56.800 --> 00:02:59.200
 occurs some type of glitch or

54
00:02:59.200 --> 00:02:59.600
 noise.

55
00:03:01.500 --> 00:03:04.700
Which is generally because of no acknowledgment that

56
00:03:04.700 --> 00:03:06.800
 how it is been seen onto your screen.

57
00:03:08.900 --> 00:03:09.200
Perfect.

58
00:03:10.900 --> 00:03:14.100
So, let's see the packet of TCP handshake

59
00:03:13.100 --> 00:03:15.600
 and UDP handshake.

60
00:03:16.300 --> 00:03:19.600
As you can see on the left hand side. It is a TCP handshake.

61
00:03:20.500 --> 00:03:23.200
In which the sender sends the

62
00:03:23.200 --> 00:03:26.500
 first request that is the send request which stands

63
00:03:26.500 --> 00:03:27.800
 for synchronization.

64
00:03:29.300 --> 00:03:33.300
The receiver then acknowledges the sync request

65
00:03:32.300 --> 00:03:34.800
 with synac.

66
00:03:36.300 --> 00:03:39.600
Then the center acknowledges that it

67
00:03:39.600 --> 00:03:42.600
 has received the acknowledgment and the syn packet

68
00:03:42.600 --> 00:03:43.400
 from the receiver.

69
00:03:44.300 --> 00:03:47.200
So this is how a TCP handshake works?

70
00:03:49.800 --> 00:03:52.500
Seeing onto the right side of the screen you can

71
00:03:52.500 --> 00:03:54.600
 see there is a UDP packet.

72
00:03:55.300 --> 00:03:56.800
Handshake which has been performed.

73
00:03:57.700 --> 00:03:58.200
in which

74
00:03:58.900 --> 00:04:01.900
the sender sends a request and the

75
00:04:01.900 --> 00:04:04.800
 receiver gets the response similarly

76
00:04:04.800 --> 00:04:07.500
 again response response response is

77
00:04:07.500 --> 00:04:10.100
 being sent which means the sender is

78
00:04:10.100 --> 00:04:13.300
 only sending the response to the receiver and receiver is

79
00:04:13.300 --> 00:04:16.900
 receiving it there is no type of acknowledgment. It's

80
00:04:16.900 --> 00:04:17.900
 been happening over here.

81
00:04:18.700 --> 00:04:21.800
That's why we call this as connection less

82
00:04:21.800 --> 00:04:22.500
 protocol.

83
00:04:26.200 --> 00:04:29.100
So let's move on to the TCP UDP

84
00:04:29.100 --> 00:04:29.900
 packet breakdown.

85
00:04:30.700 --> 00:04:31.300
So as you can see.

86
00:04:32.300 --> 00:04:35.400
This is the TCP segment header format and

87
00:04:35.400 --> 00:04:38.700
 at the bottom it is the UDP datagram header

88
00:04:38.700 --> 00:04:39.100
 format.

89
00:04:40.700 --> 00:04:43.600
What are the things in common is the source Port

90
00:04:43.600 --> 00:04:47.100
 is available into the TCP packet? So

91
00:04:46.100 --> 00:04:49.400
 sport is also available in into the

92
00:04:49.800 --> 00:04:50.300
 UDP packet.

93
00:04:51.600 --> 00:04:54.400
Destination Port is present in TCP as

94
00:04:54.400 --> 00:04:57.900
 well as UDP packet both header and data

95
00:04:57.900 --> 00:05:00.200
 checksum is present between both the packets.

96
00:05:01.400 --> 00:05:01.500
so

97
00:05:03.100 --> 00:05:03.500
there are

98
00:05:05.200 --> 00:05:06.000
three total

99
00:05:07.800 --> 00:05:10.200
similarities between both the packets, but as

100
00:05:10.200 --> 00:05:12.300
 you can see into the TCP

101
00:05:13.100 --> 00:05:17.100
Packet there are more number of things like sequence

102
00:05:16.100 --> 00:05:17.200
 number.

103
00:05:18.300 --> 00:05:21.500
Acknowledge acknowledgment number which is basically used for

104
00:05:21.500 --> 00:05:22.800
 sending acknowledgments.

105
00:05:25.100 --> 00:05:25.500
urgent pointer

106
00:05:26.100 --> 00:05:27.800
Flags options

107
00:05:28.900 --> 00:05:31.800
Data offset Etc, which makes

108
00:05:31.800 --> 00:05:33.900
 the size of the packet bigger.

109
00:05:39.100 --> 00:05:41.800
So, let's see the TCP 3-way handshake.

110
00:05:42.900 --> 00:05:45.400
On the left hand side. It is the client and the

111
00:05:45.400 --> 00:05:48.800
 right hand side. It is the server. So the client first

112
00:05:48.800 --> 00:05:51.400
 sends a synchronization request to

113
00:05:51.400 --> 00:05:51.900
 the server.

114
00:05:52.900 --> 00:05:55.500
Because the client wants to get connected to

115
00:05:55.500 --> 00:05:57.400
 the server and start the communication.

116
00:05:58.700 --> 00:06:01.800
So the server will be like, okay, you

117
00:06:01.800 --> 00:06:03.300
 want to start the communication with me?

118
00:06:05.100 --> 00:06:06.900
Take the acknowledgment from me.

119
00:06:09.300 --> 00:06:12.600
So the server has acknowledged the client by

120
00:06:12.600 --> 00:06:14.000
 sending acknowledgment.

121
00:06:15.600 --> 00:06:18.900
Packet now the client sends the

122
00:06:18.900 --> 00:06:21.400
 synchronization and acknowledgment to the

123
00:06:21.400 --> 00:06:24.400
 server that the client is ready to.

124
00:06:25.500 --> 00:06:28.800
Communicate with the server and finally the server

125
00:06:28.800 --> 00:06:32.200
 establishes a connection between both.

126
00:06:33.100 --> 00:06:36.200
So this is how a TCP three-way handshake is

127
00:06:36.200 --> 00:06:36.800
 performed.

128
00:06:38.600 --> 00:06:38.900
Thank you.
