TCP/IP socket programming in C

Develop TCP/IP client/server programs to simulate the full-duplex stop-and-wait data link protocol:

1. Write a connection-oriented File Server (FS) program to do the following:

a. Print the FS address (hostname, port_number, server name) on the screen.

b. Accept a connection request from the client.

c. Fork/Create a child process/thread to process the client request:

Receive the file uploaded from the client in a number of data frames using the stop-and-wait protocol with Positive and Negative acknowledgment.

FRAME data structure used should be the same as your previous assignment.

2. Write a client program to do the following:

a. Connect to the FS server using the FS address printed on the server screen.

b. Upload an image file to the FS server simulating the stop-and-wait protocol with

Positive and Negative acknowledgment. Simulate the transmission errors by using random number generating function.

(Optional: To decelop a full-duplex TCP connection on the client side so that it can send data packets and read acknowledgement at the same time by two different processes/threads.)

Protocol specifications:

a. Client and FS server communication should use the TCP/IP connection-oriented service.

The FRAME data size is limited to 1024-byte and 1-bit sending window size should be used.

You should use the sleep() function to simulate the transmission delay and message rate.

b. FS server must be a multi-process/multi-thread program to be able to serve multiple clients.

c. Assume the Data frames have 20% transmission errors, but they will not be lost.

Short ACK/NACK frames will not have transmission errors.

(Therefore no timer is needed to simulate this protocol.)

d. Using a random number generator (rand(...)) to simulate the transmission errors.


a. Start the FS server on a UNIX machine and print the FS server address on the screen.

b. Start the Client on a UNIX machine (optional on a machine other than the FS server machine) and then send the request to the FS server for uploading a large (at least 1MB) image file. (Find the FS server address from the server screen)

Taidot: C-ohjelmointi

Näytä lisää: tcp socket programming, tcp protocol programming, programming tcp, tcp socket program, stop wait protocol using socket programming, stop wait protocol socket program, programming socket, simulate tcp errors, stop wait socket program, socket programming stop wait, tcp protocol program, tcp programs, tcp program, socket program stop wait protocol, socket programming stop wait protocol, full duplex tcp, program simulate tcp client, stop wait socket, tcp stop wait socket programming, full duplex socket programming, tcp client server full duplex programs, write program simulate stop wait protocol, simulate errors socket programs, tcp programming socket, socket upload image

Tietoa työnantajasta:
( 1 arvostelu ) peoria, United States

Projektin tunnus: #422183

Myönnetty käyttäjälle:


Hello, Please Check PMB

$60 USD 4 päivässä
(19 Arvostelua)

12 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hi. I'm nice to work. Thanks

$100 USD 2 päivässä
(57 arvostelua)

Dear sir, I am very interested in your project, Please see PMB for more details. Thanks. Best Regards.

$120 USD 2 päivässä
(55 arvostelua)

Please check PMB.

$100 USD 3 päivässä
(72 arvostelua)

please check your PMB

$100 USD 7 päivässä
(14 arvostelua)

Hi, i could do this.

$120 USD 11 päivässä
(1 arvostelu)

dear sir: I can do this work for you!I hope to cooperation with you sincerely.

$100 USD 5 päivässä
(1 arvostelu)

have a similar client server application ready at hand.. wont take long to customize...

$100 USD 2 päivässä
(1 arvostelu)

Hi, I'll do this task with pleasure.

$250 USD 15 päivässä
(0 arvostelua)

i have lots of such module. :) When do you need them.

$30 USD 1 päivässä
(0 arvostelua)

Currently, I'm working for company which specialize in VoIP technology. Developing SIP client and maintenance SIP server on Red Hat Linux then TCP/IP programming won't be a problem to me. I've got experiences on multit Lisää

$100 USD 15 päivässä
(0 arvostelua)

Expertise in Network based projects

$250 USD 15 päivässä
(0 arvostelua)