Käynnissä

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.

Testing

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, programming socket, simulate tcp errors, stop wait socket program, socket programming stop wait, tcp protocol program, tcp programs, tcp program, full duplex tcp, program simulate tcp client, stop wait socket, full duplex socket programming, simulate errors socket programs, tcp programming socket, socket upload image, programming tcp threads, simulate tcp delay, upload file tcp socket, data rate socket programming, socket programming program tcp, socket tcp simulate, tcp file server

About the Employer:
( 1 review ) peoria, United States

Projektin tunnus: #422183

Myönnetty käyttäjälle:

Wadjet

Hello, Please Check PMB

60 $ USD 4 päivässä
(19 arvostelua)
4.4

12 freelanceria on tarjonnut keskimäärin 119 $ tähän työhön

minyun

Hi. I'm nice to work. Thanks

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

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)
5.6
MuktoSoftware

Please check PMB.

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

please check your PMB

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

Hi, i could do this.

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

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

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

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

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

Hi, I'll do this task with pleasure.

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

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

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

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)
0.0
Girish601

Expertise in Network based projects

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