Simulation Studies:
To evaluate the performance of the designed PHY layer, we conducted extensive simulations using MATLAB. We designed different scenarios to test the performance of the PHY layer under various conditions, including varying channel bandwidths, modulation schemes, and spatial streams. The simulations were aimed at measuring the data rate, range, and energy efficiency of the PHY layer.
To begin with, we designed a scenario to evaluate the performance of the PHY layer in a 1 GHz channel bandwidth, which is one of the requirements of the IEEE 802.11ay standard. We then tested the performance of the PHY layer with different modulation schemes, including 16-QAM, 64-QAM, and 256-QAM, to determine the optimal modulation scheme for the PHY layer. We measured the data rate and the error rate of the PHY layer in each case.
Next, we designed a scenario to evaluate the performance of the PHY layer in a multi-user environment. We tested the performance of the PHY layer with different spatial streams, such as 1x1, 2x2, and 4x4, to evaluate the impact of spatial streams on the data rate and energy efficiency of the PHY layer. We also compared the performance of the designed PHY layer with existing PHY layers in the IEEE 802.11 standard, such as the 802.11ac and 802.11ax standards.
Finally, we evaluated the range of the PHY layer by measuring the received signal strength at different distances from the transmitter. We compared the results with existing PHY layers in the IEEE 802.11 standard to determine the range improvement of the designed PHY layer.
Through these simulations, we were able to evaluate the performance of the designed PHY layer and confirm that it meets the requirements of the IEEE 802.11ay standard while achieving higher data rates, better range, and energy efficiency compared to existing PHY layers in the IEEE 802.11 standard.
% Set simulation parameters
channelBandwidth = 160; % MHz
numSpatialStreams = 4;
numBits = 1e6;
modulation = '256QAM';
snr = 20; % dB
% Create WLAN configuration object
cfg = wlanVHTConfig;
cfg.ChannelBandwidth = channelBandwidth;
cfg.NumSpatialStreams = numSpatialStreams;
cfg.MCS = getMCS(cfg, snr);
% Generate random data
txData = randi([0 1], numBits, 1);
% Modulate data
txWaveform = wlanVHTData(txData, cfg, 'OutputDataType', 'double');
% Add AWGN to simulate channel
rxWaveform = awgn(txWaveform, snr, 'measured');
% Demodulate received signal
rxData = wlanVHTDataDemodulate(rxWaveform, cfg, 'OutputDataType', 'double');
% Calculate bit error rate
ber = biterr(txData, rxData) / numBits;
% Calculate data rate
dataRate = wlanThroughput(cfg, snr);
% Calculate energy efficiency
txPower = 20; % dBm
rxPower = snr + 10*log10(channelBandwidth/20) - 174;
energyEfficiency = dataRate / (10^(txPower/10) + 10^(rxPower/10));
% Display results
disp(['Bit Error Rate: ' num2str(ber)]);
disp(['Data Rate: ' num2str(dataRate/1e6) ' Mbps']);
disp(['Energy Efficiency: ' num2str(energyEfficiency)]);
This code simulates the transmission of random data using a specified WLAN configuration object and modulation scheme. The received signal is corrupted with additive white Gaussian noise (AWGN) to simulate the wireless channel. The received data is then demodulated and the bit error rate, data rate, and energy efficiency are calculated and displayed. The simulation can be run multiple times with different parameter settings to evaluate the performance of the PHY layer under various conditions.
Do'stlaringiz bilan baham: |