Sedang Disiapkan

Datagrams in C -- 2

I need to enhance existing code for my server in C.

1. Take the programs I have receiver and sender both can be compiled and ran to receive a datagram and instead modify them to use sender.c and the receiver.c code as 1bit unidirectional.

2. Make a program that uses them that is bidirectional. Prepare a set of mockup randomly generated frames and save them in a file. For now a frame is just a sample set of 0s and 1s. Now test that the protocol works. Collect a bunch of screenshots to show you've tested it.

3. The frames can arrive properly or they can be corrupted during transmission. Implement an error-detection mechanism using the standard CRC algorithm. For this part, you need two programs, the generator and the verifier. The generator program reads from the standard input or from a file a line of ASCII text containing an n-bit message consisting of a string of 0s and 1s. The second line is the k-bit polynomial, also in ASCII. The generator outputs to standard output a line of ASCII test with m+k 0s and 1s representing the message to be transmitted. Then it outputs the polynomial, just as it read it in. The verifier program reads in the transmitted message and outputs a message indicating whether it is correct or not.

To check that your code-detection program works properly, write a program alter that inverts 1 bit on the first line (in the message) depending on its argument (the bit counting the leftmost bit as 1) but copies the rest of the two lines correctly.

4. When you are convinced that your CRC code is working, pick a single k-bit polynomial and use it to add

your CRC to the sample frames you generated. Incorporate the error verification in the 1-bit sliding window protocol and resend the frame if an error occurred. To simulate an error in transmission, flip a coin and for head run the alter program, for tail you do not.

5. Implement the Go-back-n and provide a testing of the implementation.


1. The 1-bit unidirectional sliding window protocol code

2. The 1-bit bidirectional sliding window protocol code

3. The testing of the bidirectional sliding window protocol code

4. The CRC algorithm implementation

5. The 1-bit bidirectional sliding window protocol code with CRC

6. (Optional) The Go-back-n and its testing

Kemahiran: Pengaturcaraan C

Lihat lagi: use of algorithm in programming, test code generator, string in c programming, string c programming, set in c, set bit in c, set a bit in c, receiver testing, programming head, or in c programming, head first programming, first 1 coin, c test generator, c# programs with output, c programming string, c programming input output, coin algorithm, code 2, argument programming, algorithm sample code, algorithm in c

Tentang Majikan:
( 1 ulasan ) Denver, United States

ID Projek: #10118447

Dianugerahkan kepada:


I have already done the same thing)

$90 USD dalam 4 hari
(0 Ulasan)

7 pekerja bebas membida secara purata $162 untuk pekerjaan ini

$155 USD dalam 3 hari
(31 Ulasan)
$200 USD dalam 4 hari
(12 Ulasan)
$222 USD dalam 3 hari
(0 Ulasan)

Experienced C/C++/Java developer. Multi threaded application, Socket Programming. SDLC. Agile development. XML. Web. Linux/Windows/Android

$194 USD dalam 5 hari
(0 Ulasan)

Hello, I'm a senior C developer. I'm familliar with Linux, socket programming, multithread ... I can finish this project. Thank you for reading my bid

$177 USD dalam 3 hari
(0 Ulasan)
$155 USD dalam 5 hari
(0 Ulasan)

Hello, I have huge experience in C programming, I'm very interested in your project, I can finish the work in maximum 5 days from now. I'm very new on this platform and I want to build my profile so I want this job a l Lagi

$166 USD dalam 5 hari
(0 Ulasan)