Question
1. Given that Shannon's Law is Cap = BW * log2(1+Signal/Noise) Write a C language program with a function that takes bandwidth (BW),
1. Given that Shannon's Law is
Cap = BW * log2(1+Signal/Noise)
Write a C language program with a function that takes bandwidth (BW), Signal and Noise as arguments and returns the capacity.
2. The Nyquist formula gives the upper bound for the data rate of a transmission system by calculating the bit rate directly from the number of signal levels and the bandwidth of the system.
Specifically, in a noise-free channel, Nyquist tells us that we can transmit data at a rate of up to bits per second, where B is the bandwidth (in Hz) and M is the number of signal levels.
Cap= 2B log2(M)
Write another version of your program to calculate capacity according to the Nyquist formula.
3. The fields in a PPP header are as follows (source: Point to Point Protocol Structure) (Alternate source: TCPI Guide.com)
Name | Number of bytes | Description |
Flag | 1 | 0x7E, the beginning of a PPP frame |
Address | 1 | 0xFF, standard broadcast address |
Control | 1 | 0x03, unnumbered data |
Protocol | 2 | PPP ID of embedded data |
Information | variable (0 or more) | datagram |
Padding | variable (0 or more) | optional padding |
Frame Check Sequence | 2 | frame checksum |
Flag | 1 | 0x7E, omitted for successive PPP packets |
Using the correct data types (this is essential to the assignment), design a data structure in C language that would represent this frame. Please use 10 bytes for the information and 5 bytes for the padding.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Heres a C program that addresses your requests include include Function to calculate capacity using ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started