Hello, friends.
Today.
I will tell you about TCP protocol in my view.
Basically, I have a client.
Or here.
And in this.
This is it will send the data and I'm using 8006.
Or number if I use 8000 for number.
And over here also 8000 for number.
It will.
Creating some error because 8000 is used by my system.
So I will tell you about the program.
So right now in the TCP protocol over here, this is a listen block PCP.
Listen.
So control you as you see.
Listen.
Dot VI is over here.
And this is my TCP right.
TCP right.
So I just label it.
And it is TCP close.
Okay.
So right now I just use a number, random number, which ranges from 0 to 10.
And over here this number is converted to Boolean error and this one goes to typeset.
So over here I just label it typecast.
Then it goes to it is converted to string.
And over here this is my string to.
So over here I got the length of my string again.
It goes to typecast and it goes to BCP, right?
Daytime.
Okay.
And over here, this is my data.
Sending data.
So right now.
As I run it.
So as you see data scanned from client to server.
So I just stop it over here.
So, again, I want to go to our program.
So.
In this case.
And this is my sending case.
And this is my.
Or you can say, this is my client case and this is my receiver case.
Or over here you have to put your IP address and you can find out your IP address from the command window.
Just type IP config.
And I got this is my IP address and this is my port address.
Right now I'm using 8006 port address over here.
This is my open TCP connection.
This is my read connection.
Again, read TCP.
And this is my close control you.
So as you see over here in this case, I'm just reading for bits, controller bytes to read naught bits
bytes to read four bytes.
So it will read the data.
Again, it goes to typecast.
So over here this is the format of typecast.
And here I go receive the data.
So when I hit on again run button if you want to.
Slow it.
So just put some delay inside.
So let's say there is a delay of 100 seconds.
And over here also.
So when I hit on run button, as you see, there is a delay.
But data loss is not there in the case of PCP and UDP.
There is only a difference in case of PCP.
The data loss is not possible, but in case of UDP there is a data loss.
But UDP is much faster than TCP protocol.
Okay, so I just stop it and I just create a new.
Also.
And in this new VA, I just.
Copy this.
Do this by.
So.
And I control over here.
And this is.
Here.
So when I get on this.
As you see.
There are different viz so data sent from air received over here.
Okay.
There is no data loss in both the cases.
So if you want more than four bytes in that case to stop this.
So data is not received over here, as you see.
Because.
The sender is not sending anything.
So over here.
This is my.
Saving part.
So I just put my bits over here.
Let's say in this case, I just check how many.
We received.
Just to go to
the you or here?
This is my send client.
So when I.
They don't run baton.
So data is not sending when I hit on a button.
There is a delay with delay.
So I just.
Again, stop it.
That's when I stop it.
Not received anything.
So this is how you can use dhcp protocol in live view over here.
This is the sending part.
Our sending it is the receiving part and.
This is my sending part.
It will create.
The data.
Okay.
So this is how you can use dhcp protocol in lab.
Thank you.