802.11ac multi-凯发k8网页登录
this example shows the transmit and receive processing for a 802.11ac™ multi-user downlink transmission over a fading channel. the example uses linear precoding techniques based on a singular-value-decomposition (svd) of the channel.
introduction
802.11ac supports downlink (access-point to station) multi-user transmissions for up to four users and up to eight transmit antennas to increase the aggregate throughput of the link [ 1 ]. based on a scheduled transmission time for a user, the scheduler looks for other smaller packets ready for transmission to other users. if available, it schedules these users over the same interval, which reduces the overall time taken for multiple transmissions.
this simultaneous transmission comes at a higher complexity because successful reception of the individual user's payloads requires precoding, also known as transmit-end beamforming. precoding assumes that channel state information (csi) is known at the transmitter. a sounding packet, as described in the 802.11ac transmit beamforming example, is used to determine the csi for each user in a multi-user transmission. each of the users feed back their individual csi to the beamformer. the beamformer uses the csi from all users to set the precoding (spatial mapping) matrix for subsequent data transmission.
this example uses a channel inversion technique for a three-user transmission with a different number of spatial streams allocated per user and different rate parameters per user. the system can be characterized by the figure below.
the example generates the multi-user transmit waveform, passes it through a channel per user and decodes the received signal for each user to calculate the bits in error. prior to the data transmission, the example uses a null-data packet (ndp) transmission to sound the different channels and determines the precoding matrix under the assumption of perfect feedback.
simulation parameters and configuration
for 802.11ac, a maximum of eight spatial streams is allowed. a 6x6 mimo configuration for three users is used in this example, where the first user has three streams, second has one, and the third has two streams allocated to it. different rate parameters and payload sizes for up to four users are specified as vector parameters. these are indexed appropriately in the transmission configuration based on the number of active users.
s = rng(21); % set rng seed for repeatability % transmission parameters chanbw = 'cbw80'; % channel bandwidth numusers = 3; % number of active users numstsall = [3 1 2 2]; % number of streams for 4 users userpos = [0 1 2 3]; % user positions for maximum 4 users mcsvec = [4 6 2 2]; % mcs for maximum 4 users apepvec = [15120 8192 5400 6000]; % payload, in bytes, for 4 users chcodingvec = {'bcc', 'ldpc', 'ldpc', 'bcc'}; % channel coding for 4 users % channel and receiver parameters chanmdl = 'model-a'; % tgac fading channel model precodingtype = 'zf'; % precoding type; zf or mmse snr = 38; % snr in db eqmethod = 'zf'; % equalization method % create the multi-user vht format configuration object, appropriately % indexing into the vector values for the active users if (numusers==1) groupid = 0; else groupid = 2; end numstsvec = numstsall(1:numusers); numtx = sum(numstsvec); cfgvhtmu = wlanvhtconfig('channelbandwidth', chanbw,... 'numusers', numusers, ... 'numtransmitantennas', numtx, ... 'groupid', groupid, ... 'numspacetimestreams', numstsvec,... 'userpositions', userpos(1:numusers), ... 'mcs', mcsvec(1:numusers), ... 'apeplength', apepvec(1:numusers), ... 'channelcoding', chcodingvec(1:numusers));
the number of transmit antennas is set to be the sum total of all the used space-time streams. this implies no space-time block coding (stbc) or spatial expansion is employed for the transmission.
sounding (ndp) configuration
for precoding, channel sounding is first used to determine the channel experienced by the users (receivers). this channel state information is sent back to the transmitter, for it to be used for subsequent data transmission. it is assumed that the channel varies slowly over the two transmissions. for multi-user transmissions, the same ndp (null data packet) is transmitted to each of the scheduled users [ 2 ].
% vht sounding (ndp) configuration, for same number of streams cfgvhtndp = wlanvhtconfig('channelbandwidth', chanbw,... 'numusers', 1, ... 'numtransmitantennas', numtx, ... 'groupid', 0, ... 'numspacetimestreams', sum(numstsvec),... 'mcs', 0, ... 'apeplength', 0);
the number of streams specified is the sum total of all space-time streams used. this allows the complete channel to be sounded.
% generate the null data packet, with no data
txndpsig = wlanwaveformgenerator([], cfgvhtndp);
transmission channel
the tgac multi-user channel consists of independent single-user mimo channels between the access point and spatially separated stations [ 3 ]. in this example, the same delay profile model-a channel is applied for each of the users, even though individual users can experience different conditions. the flat-fading channel allows a simpler receiver without front-end synchronization. it is also assumed that each user's number of receive antennas are equal to the number of space-time streams allocated to them.
cell arrays are used in the example to store per-user elements which allow for a flexible number of users. here, as an example, each instance of the tgac channel per user is stored as an element of a cell array.
% create three independent channels tgac = cell(numusers, 1); chanseeds = [1111 2222 3333 4444]; % chosen for a maximum of 4 users uindex = [10 5 2 1]; % chosen for a maximum of 4 users chandelay = zeros(numusers, 1); for uidx = 1:numusers tgac{uidx} = wlantgacchannel(... 'channelbandwidth', cfgvhtmu.channelbandwidth,... 'delayprofile', chanmdl, ... 'userindex', uindex(uidx), ... 'numtransmitantennas', numtx, ... 'numreceiveantennas', numstsvec(uidx), ... 'randomstream', 'mt19937ar with seed', ... 'seed', chanseeds(uidx),... 'samplerate', wlansamplerate(cfgvhtmu), ... 'transmitreceivedistance',5); chaninfo = info(tgac{uidx}); chandelay(uidx) = chaninfo.channelfilterdelay; end
the channels for each individual user use different seeds for random number generation. a different user index is specified to allow for random angle offsets to be applied to the arrival (aoa) and departure (aod) angles for the clusters. the channel filtering delay is stored to allow for its compensation at the receiver. in practice, symbol timing estimation would be used.
% append zeroes to allow for channel filter delay txndpsig = [txndpsig; zeros(10, numtx)]; % sound the independent channels per user for all transmit streams rxndpsig = cell(numusers, 1); for uidx = 1:numusers rxndpchan = tgac{uidx}(txndpsig); % add wgn per receiver rxndpsig{uidx} = awgn(rxndpchan, snr); end
channel state information feedback
each user estimates its own channel using the received ndp signal and computes the channel state information that it can send back to the transmitter. this example uses the singular value decomposition of the channel seen by each user to compute the csi feedback.
mat = cell(numusers,1); for uidx = 1:numusers % compute the feedback matrix based on received signal per user mat{uidx} = vhtcsifeedback(rxndpsig{uidx}(chandelay(uidx) 1:end,:), cfgvhtndp); end
assuming perfect feedback, with no compression or quantization loss of the csi, the transmitter computes the steering matrix for the data transmission using either zero-forcing or minimum-mean-square-error (mmse) based precoding techniques. both methods attempt to cancel out the intra-stream interference for the user of interest and interference due to other users. the mmse-based approach avoids the noise enhancement inherent in the zero-forcing technique. as a result, it performs better at low snrs.
% pack the per user csi into a matrix numst = length(mat{1}); % number of subcarriers steeringmatrix = zeros(numst, sum(numstsvec), sum(numstsvec)); % nst-by-nt-by-nsts for uidx = 1:numusers stsidx = sum(numstsvec(1:uidx-1)) (1:numstsvec(uidx)); steeringmatrix(:,:,stsidx) = mat{uidx}; % nst-by-nt-by-nsts end % zero-forcing or mmse precoding solution if strcmp(precodingtype, 'zf') delta = 0; % zero-forcing else delta = (numtx/(10^(snr/10))) * eye(numtx); % mmse end for i = 1:numst % channel inversion precoding h = squeeze(steeringmatrix(i,:,:)); steeringmatrix(i,:,:) = h/(h'*h delta); end % set the spatial mapping based on the steering matrix cfgvhtmu.spatialmapping = 'custom'; cfgvhtmu.spatialmappingmatrix = permute(steeringmatrix,[1 3 2]);
data transmission
random bits are used as the payload for the individual users. a cell array is used to hold the data bits for each user, txdatabits
. for a multi-user transmission the individual user payloads are padded such that the transmission duration is the same for all users. this padding process is described in section 9.12.6 of [ 1 ]. in this example for simplicity the payload is padded with zeros to create a psdu for each user.
% create data sequences, one for each user txdatabits = cell(numusers, 1); psdudatabits = cell(numusers, 1); for uidx = 1:numusers % generate payload for each user txdatabits{uidx} = randi([0 1], cfgvhtmu.apeplength(uidx)*8, 1, 'int8'); % pad payload with zeros to form a psdu psdudatabits{uidx} = [txdatabits{uidx}; ... zeros((cfgvhtmu.psdulength(uidx)-cfgvhtmu.apeplength(uidx))*8, 1, 'int8')]; end
using the format configuration, cfgvhtmu
, with the steering matrix, the data is transmitted over the fading channel.
% generate the multi-user vht waveform txsig = wlanwaveformgenerator(psdudatabits, cfgvhtmu); % transmit through per-user fading channel rxsig = cell(numusers, 1); for uidx = 1:numusers % append zeroes to allow for channel filter delay rxsig{uidx} = tgac{uidx}([txsig; zeros(10, numtx)]); end
data recovery per user
the receive signals for each user are processed individually. the example assumes that there are no front-end impairments and that the transmit configuration is known by the receiver for simplicity.
a user number specifies the user of interest being decoded for the transmission. this is also used to index into the vector properties of the configuration object that are user-specific.
% get field indices from configuration, assumed known at receiver ind = wlanfieldindices(cfgvhtmu); % single-user receivers recover payload bits rxdatabits = cell(numusers, 1); scaler = zeros(numusers, 1); spaxes = gobjects(sum(numstsvec), 1); hfig = figure('name','per-stream equalized symbol constellation'); for uidx = 1:numusers % add wgn per receiver rxnsig = awgn(rxsig{uidx}, snr); rxnsig = rxnsig(chandelay(uidx) 1:end, :); % user space-time streams stsu = numstsvec(uidx); % perform channel estimation based on vht-ltf rxvhtltf = rxnsig(ind.vhtltf(1):ind.vhtltf(2),:); demodvhtltf = wlanvhtltfdemodulate(rxvhtltf, chanbw, numstsvec); [chanest, chanestsspilots] = wlanvhtltfchannelestimate(demodvhtltf, chanbw, numstsvec); % extract vht data samples from the waveform rxvhtdata = rxnsig(ind.vhtdata(1):ind.vhtdata(2),:); % estimate the noise power in vht data field nvar = vhtnoiseestimate(rxvhtdata,chanestsspilots,cfgvhtmu); % recover information bits in vht data field [rxdatabits{uidx}, ~, eqsym] = wlanvhtdatarecover(rxvhtdata, ... chanest, nvar, cfgvhtmu, uidx, 'equalizationmethod', eqmethod, ... 'pilotphasetracking', 'none', 'ldpcdecodingmethod', 'norm-min-sum'); % plot equalized symbols for all streams per user scaler(uidx) = ceil(max(abs([real(eqsym(:)); imag(eqsym(:))]))); for i = 1:stsu subplot(numusers, max(numstsvec), (uidx-1)*max(numstsvec) i); plot(reshape(eqsym(:,:,i), [], 1), '.'); axis square spaxes(sum([0 numstsvec(1:(uidx-1))]) i) = gca; % store axes handle title(['user ' num2str(uidx) ', stream ' num2str(i)]); grid on; end end % scale axes for all subplots and scale figure for i = 1:numel(spaxes) xlim(spaxes(i),[-max(scaler) max(scaler)]); ylim(spaxes(i),[-max(scaler) max(scaler)]); end pos = get(hfig, 'position'); set(hfig, 'position', [pos(1)*0.7 pos(2)*0.7 1.3*pos(3) 1.3*pos(4)]);
per-stream equalized symbol constellation plots validate the simulation parameters and convey the effectiveness of the technique. note the discernible 16qam, 64qam and qpsk constellations per user as specified on the transmit end. also observe the evm degradation over the different streams for an individual user. this is a representative characteristic of the channel inversion technique.
the recovered data bits are compared with the transmitted payload bits to determine the bit error rate.
% compare recovered bits against per-user apeplength information bits ber = inf(1, numusers); for uidx = 1:numusers idx = (1:cfgvhtmu.apeplength(uidx)*8).'; [~, ber(uidx)] = biterr(txdatabits{uidx}(idx), rxdatabits{uidx}(idx)); disp(['bit error rate for user ' num2str(uidx) ': ' num2str(ber(uidx))]); end rng(s); % restore rng state
bit error rate for user 1: 0.00013228 bit error rate for user 2: 0 bit error rate for user 3: 0
the small number of bit errors, within noise variance, indicate successful data decoding for all streams for each user, despite the variation in evms seen in individual streams.
conclusion and further exploration
the example shows multi-user transmit configuration, independent per-user channel modeling, and the individual receive processing using the channel inversion precoding techniques.
further exploration includes modifications to the transmission and channel parameters, alternate precoding techniques, more realistic receivers and feedback mechanism incorporating delays and quantization.
selected bibliography
ieee std 802.11™-2020. ieee standard for information technology - telecommunications and information exchange between systems - local and metropolitan area networks - specific requirements - part 11: wireless lan medium access control (mac) and physical layer (phy) specifications.
perahia, e., r. stacey, "next generation wireless lans: 802.11n and 802.11ac", cambridge university press, 2013.
breit, g., h. sampath, s. vermani, et al., "tgac channel model addendum", version 12. ieee 802.11-09/0308r12, march 2010.