1
00:00:10,000 --> 00:00:11,000
Hello, friends.

2
00:00:11,000 --> 00:00:12,000
Today.

3
00:00:14,000 --> 00:00:19,000
I will tell you about TCP protocol in my view.

4
00:00:20,000 --> 00:00:23,000
Basically, I have a client.

5
00:00:26,000 --> 00:00:27,000
Or here.

6
00:00:29,000 --> 00:00:30,000
And in this.

7
00:00:33,000 --> 00:00:40,000
This is it will send the data and I'm using 8006.

8
00:00:41,000 --> 00:00:45,000
Or number if I use 8000 for number.

9
00:00:45,000 --> 00:00:48,000
And over here also 8000 for number.

10
00:00:48,000 --> 00:00:49,000
It will.

11
00:00:51,000 --> 00:00:56,000
Creating some error because 8000 is used by my system.

12
00:00:57,000 --> 00:00:59,000
So I will tell you about the program.

13
00:01:00,000 --> 00:01:08,000
So right now in the TCP protocol over here, this is a listen block PCP.

14
00:01:08,000 --> 00:01:09,000
Listen.

15
00:01:09,000 --> 00:01:14,000
So control you as you see.

16
00:01:14,000 --> 00:01:14,000
Listen.

17
00:01:14,000 --> 00:01:16,000
Dot VI is over here.

18
00:01:16,000 --> 00:01:19,000
And this is my TCP right.

19
00:01:19,000 --> 00:01:20,000
TCP right.

20
00:01:21,000 --> 00:01:22,000
So I just label it.

21
00:01:25,000 --> 00:01:27,000
And it is TCP close.

22
00:01:28,000 --> 00:01:28,000
Okay.

23
00:01:28,000 --> 00:01:34,000
So right now I just use a number, random number, which ranges from 0 to 10.

24
00:01:35,000 --> 00:01:43,000
And over here this number is converted to Boolean error and this one goes to typeset.

25
00:01:43,000 --> 00:01:47,000
So over here I just label it typecast.

26
00:01:47,000 --> 00:01:50,000
Then it goes to it is converted to string.

27
00:01:50,000 --> 00:01:53,000
And over here this is my string to.

28
00:01:57,000 --> 00:02:01,000
So over here I got the length of my string again.

29
00:02:01,000 --> 00:02:05,000
It goes to typecast and it goes to BCP, right?

30
00:02:05,000 --> 00:02:06,000
Daytime.

31
00:02:06,000 --> 00:02:06,000
Okay.

32
00:02:07,000 --> 00:02:10,000
And over here, this is my data.

33
00:02:10,000 --> 00:02:11,000
Sending data.

34
00:02:11,000 --> 00:02:13,000
So right now.

35
00:02:15,000 --> 00:02:18,000
As I run it.

36
00:02:18,000 --> 00:02:22,000
So as you see data scanned from client to server.

37
00:02:22,000 --> 00:02:26,000
So I just stop it over here.

38
00:02:26,000 --> 00:02:32,000
So, again, I want to go to our program.

39
00:02:32,000 --> 00:02:33,000
So.

40
00:02:34,000 --> 00:02:35,000
In this case.

41
00:02:35,000 --> 00:02:38,000
And this is my sending case.

42
00:02:38,000 --> 00:02:39,000
And this is my.

43
00:02:41,000 --> 00:02:45,000
Or you can say, this is my client case and this is my receiver case.

44
00:02:45,000 --> 00:02:53,000
Or over here you have to put your IP address and you can find out your IP address from the command window.

45
00:02:53,000 --> 00:02:55,000
Just type IP config.

46
00:02:55,000 --> 00:03:00,000
And I got this is my IP address and this is my port address.

47
00:03:00,000 --> 00:03:04,000
Right now I'm using 8006 port address over here.

48
00:03:04,000 --> 00:03:08,000
This is my open TCP connection.

49
00:03:08,000 --> 00:03:10,000
This is my read connection.

50
00:03:11,000 --> 00:03:14,000
Again, read TCP.

51
00:03:16,000 --> 00:03:20,000
And this is my close control you.

52
00:03:20,000 --> 00:03:31,000
So as you see over here in this case, I'm just reading for bits, controller bytes to read naught bits

53
00:03:31,000 --> 00:03:33,000
bytes to read four bytes.

54
00:03:33,000 --> 00:03:36,000
So it will read the data.

55
00:03:36,000 --> 00:03:38,000
Again, it goes to typecast.

56
00:03:38,000 --> 00:03:41,000
So over here this is the format of typecast.

57
00:03:41,000 --> 00:03:44,000
And here I go receive the data.

58
00:03:44,000 --> 00:03:47,000
So when I hit on again run button if you want to.

59
00:03:49,000 --> 00:03:50,000
Slow it.

60
00:03:50,000 --> 00:03:53,000
So just put some delay inside.

61
00:03:56,000 --> 00:04:01,000
So let's say there is a delay of 100 seconds.

62
00:04:02,000 --> 00:04:04,000
And over here also.

63
00:04:07,000 --> 00:04:13,000
So when I hit on run button, as you see, there is a delay.

64
00:04:14,000 --> 00:04:19,000
But data loss is not there in the case of PCP and UDP.

65
00:04:19,000 --> 00:04:22,000
There is only a difference in case of PCP.

66
00:04:24,000 --> 00:04:29,000
The data loss is not possible, but in case of UDP there is a data loss.

67
00:04:29,000 --> 00:04:34,000
But UDP is much faster than TCP protocol.

68
00:04:34,000 --> 00:04:40,000
Okay, so I just stop it and I just create a new.

69
00:04:41,000 --> 00:04:41,000
Also.

70
00:04:43,000 --> 00:04:47,000
And in this new VA, I just.

71
00:04:49,000 --> 00:04:50,000
Copy this.

72
00:04:54,000 --> 00:04:56,000
Do this by.

73
00:04:58,000 --> 00:04:59,000
So.

74
00:04:59,000 --> 00:05:03,000
And I control over here.

75
00:05:04,000 --> 00:05:06,000
And this is.

76
00:05:07,000 --> 00:05:08,000
Here.

77
00:05:11,000 --> 00:05:14,000
So when I get on this.

78
00:05:17,000 --> 00:05:17,000
As you see.

79
00:05:19,000 --> 00:05:23,000
There are different viz so data sent from air received over here.

80
00:05:25,000 --> 00:05:26,000
Okay.

81
00:05:26,000 --> 00:05:30,000
There is no data loss in both the cases.

82
00:05:33,000 --> 00:05:38,000
So if you want more than four bytes in that case to stop this.

83
00:05:39,000 --> 00:05:42,000
So data is not received over here, as you see.

84
00:05:43,000 --> 00:05:43,000
Because.

85
00:05:47,000 --> 00:05:49,000
The sender is not sending anything.

86
00:05:49,000 --> 00:05:51,000
So over here.

87
00:05:51,000 --> 00:05:52,000
This is my.

88
00:05:54,000 --> 00:05:55,000
Saving part.

89
00:05:56,000 --> 00:05:59,000
So I just put my bits over here.

90
00:05:59,000 --> 00:06:04,000
Let's say in this case, I just check how many.

91
00:06:06,000 --> 00:06:07,000
We received.

92
00:06:11,000 --> 00:06:12,000
Just to go to

93
00:06:16,000 --> 00:06:18,000
the you or here?

94
00:06:19,000 --> 00:06:21,000
This is my send client.

95
00:06:21,000 --> 00:06:22,000
So when I.

96
00:06:23,000 --> 00:06:24,000
They don't run baton.

97
00:06:26,000 --> 00:06:32,000
So data is not sending when I hit on a button.

98
00:06:36,000 --> 00:06:40,000
There is a delay with delay.

99
00:06:40,000 --> 00:06:41,000
So I just.

100
00:06:41,000 --> 00:06:43,000
Again, stop it.

101
00:06:44,000 --> 00:06:45,000
That's when I stop it.

102
00:06:45,000 --> 00:06:47,000
Not received anything.

103
00:06:49,000 --> 00:06:55,000
So this is how you can use dhcp protocol in live view over here.

104
00:06:55,000 --> 00:06:58,000
This is the sending part.

105
00:07:01,000 --> 00:07:04,000
Our sending it is the receiving part and.

106
00:07:06,000 --> 00:07:08,000
This is my sending part.

107
00:07:08,000 --> 00:07:09,000
It will create.

108
00:07:11,000 --> 00:07:12,000
The data.

109
00:07:12,000 --> 00:07:12,000
Okay.

110
00:07:12,000 --> 00:07:16,000
So this is how you can use dhcp protocol in lab.

111
00:07:16,000 --> 00:07:17,000
Thank you.

