unix and c( computer networks
$30-250 USD
货到付款
show details 11:01 AM (8 minutes ago)
Introduction to Computer Networks
1. Goal (Measure ABET criteria (a) & (c))
Understand two data link error detection algorithms: 16-bits Internet Checksum, CRC.
2. Project Description: Data link error detection algorithms
In this lab assignment, you are going to implement two data link error detection algorithms which we studied. Two being implemented algorithms are 16-bit Internet Checksum (a.k.a UDP Checksum) and CRC (Cyclic Redundant Code). You can assume that the given size of data word is upto 256 bytes. Your program should be able to support following two services for each algorithms: UDP Checksum & CRC.
1) Generating a checksum for UDP Checksum and code word using given CRC code when a data word is entered
2) Performing error detection if the program receives a code word
2.1 16-bits Internet checksum (UDP Checksum)
1) 2)
Generating Checksum a. When your program receives a data word upto 256 bytes, it creates a
UDC checksum and displays the obtained checksum. Error Detection
a. When your program receives a code word and UDP Checksum, your program detects whether the entered code work contains (an) error(s) or not, and displays either “Error(s)” or “No Error” upon the result of its execution.
2.2 CRC (Cyclic Redundant Code)
1) 2)
Generating Checksum a. When your program receives a data word upto 256 bytes, it creates a
code word and displays the code word. Error Detection
a. When your program receives a code word and CRC generator, your program detects whether the entered code work contains (an) error(s) or not, and displays either “Error(s)” or “No Error” upon the result of its execution.
12.3 Hint
? To support two algorithms, you will develop one program, called “myed”. ? When you invoke “myed”, your “myed” should ask followings:
o Unixprompt> myed
o Unixprompt> Select either (1-UDPCheckum) or (2-CRC): ? If your program receives 1(UDPChecksum), then your program works as
follows:
o Unixprompt> Select either (1-Generating Checksum) or (2-Detecting): ? If your program receives 1, then your program works as follows:
• Unixprompt> Enter data word file name: ? If your program receives 2, then your program works as follows:
• Unixprompt> Enter received data file name: • Unixprompt> Enter Checksum:
? If your program receives 2 (CRC), then your program works as follows: o Unixprompt> Select either (1-Generating code word) or (2-Detecting): ? If your program receives 1, then your program works as follows:
• Unixprompt>Enter data word file name: • Unixprompt>Enter Generator (Hexadecimal format):
? If your program receives 2, then your program works as follows: • Unixprompt>Enter code word file name: • Unixprompt>Enter Generator (Hexadecimal format):
2.4 Programming environment
? All programs have to be written C or C++ and run on UNIX like platform. o
can pay 20$
项目ID: #1001161
关于项目
有4名威客正在参与此工作的竞标,均价$40/小时
Hey, Its quite interesting to do this.. Please check your PM for a code snippet.. Let me know if you want me to do this. Regards, njain