⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 overhead.m

📁 本源码是在DAB系统中MPE封装开销的源代码。希望对大家有用。
💻 M
字号:
close all; clear all;
overheadm=[];
overheadg=[];
overheadgc=[];
for i=1:100
l=100+100*(i-1);%PDU

ml=l+16;
n_ts=floor(ml/184)+1;
l_ts_head=n_ts*4;
padding=184*n_ts-ml;
overhead_mpe=(16+l_ts_head+padding)./(ml+l_ts_head+padding);

overheadm=[overheadm overhead_mpe];

   
if l<=1500
    overhead_gse=10/(10+l);
    overhead_gsec=14/(14+l);
else
    n_gse=ceil(l/1500)
    overhead_gse=(13+3*(n_gse-1)+4)/(13+3*(n_gse-1)+4+l); %13是包头,GSE3Bytes,l是pdu长度,4bytesCRC
    overhead_gsec=(13+3*(n_gse-1)+4*n_gse)/(13+3*(n_gse-1)+4*n_gse+l);
end

overheadg=[overheadg overhead_gse];
overheadgc=[overheadgc overhead_gsec];

end
 
l=100:100:10000
plot(l,overheadm,'-b',l,overheadg,'-r',l,overheadgc,'-g') 
xlabel('length');
ylabel('overhead')
legend('MPE','GSE','GSE+CRC')
figure;
plot(l,overheadg,'-r',l,overheadgc,'-g')
legend('GSE','GSE+CRC')
xlabel('length');
ylabel('overhead')
axis([100 10000 0 0.15])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -