Implement a client server design using a UDP socket and feat

Implement a client server design using a UDP socket and features of TCP in Python.

How do you make a TCP header and parse packets that your receive?

Use SYNbit, FINbit and ACKbit to represent connection establishment and termination aftr 32 packets.

Solution

We can use Socket Module in Python

Create a TCP_IP, TCP_PORT , Create a RAW socket and construct the ip packet where we can add tcp_flags , tcp_syn, tcp_ack , tcp_fin etc.

Server
1. Create a socket bind the socket to some port
2. Listen and wait for some incoming connection
3. Accept the incoming connection, Read the message and appropriatly respond is send and accordingly SYN, ACK an FIN bits are updated

Client
1. Create Socket and establish connection using SYN and ACK bits
2. Send data to server
3. Receive data from server

Implement a client server design using a UDP socket and features of TCP in Python. How do you make a TCP header and parse packets that your receive? Use SYNbit,

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site