日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

异构网络垂直切换算法LTE/WIMAX切换

發(fā)布時間:2025/4/5 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 异构网络垂直切换算法LTE/WIMAX切换 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1.問題描述:

?異構(gòu)網(wǎng)絡(luò)垂直切換算法LTE/WIMAX切換

2.部分程序:

?

%% ? ? ? ? the simulation of this program is for heterogeneous ? ? ? ? ?%%
%% ? ? ? ? network in vertical handoff; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? %%
%initial the parameters of network
clear
clc
global fc_LTE fc_Wimax LTE_BS_coordinate Wimax_BS_coordinate ...
? ? Wimax_BS_coordinate LTE_BS_coordinate
service_type=0; ? ? ? ? ? ? ? ?%the subscriber type of service
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?%0 refers to real time service,on the
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?% contrary,1 refers to nonreal-time service
MS_coordinate=[100,0]; ? ?
LTE_BS_coordinate=[0,0]; %the coordinate of LTE BS
Wimax_BS_coordinate=[600,0]; ? %the coordinate of wimaxE BS
MS_speed=10; ? ? ? ? ? ? ? ? ? %the speed of mobile station

fc_LTE=2000*10^6; ? ? ? ? ? ? ?%the frequency of the carrier for LTE
fc_Wimax=2500*10^6; ? ? ? ? ? ?%the frequency of the carrier for Wimax
Net_state=0; ? ? ? ? ? ? ? ? ? %0 refers to LTE;1 refers to Wimax
handoff_drop=1;
handoff_clock=0;
count_handoff_number=0;
Tc=0.5; ? ? ? ? ? ? ? ? ? ? ?%time of measure interval
record_time=0; ? ? ? ? ? ? ? ?%record the number of interval time of system
countinue_run=true;

while countinue_run
? ??
? ? %################# ?measure the receieved signal strength ?############?
? ? %if the mobile station is in the LTE network
? ? if is_in_LTE_coverage(MS_coordinate)
? ? ? ? RSS_LTE=calculate_RSS(MS_coordinate,'LTE');
? ? else
? ? ? ? RSS_LTE=-inf;
? ? end
? ??
? ? %if the mobile station is in the LTE network
? ? if is_in_Wimax_coverage(MS_coordinate)
? ? ? ? RSS_Wimax=calculate_RSS(MS_coordinate,'Wimax');
? ? else
? ? ? ? RSS_Wimax=-inf;
? ? end
? ??
? ? %############### ?decide whether to handoff according to RSS ?#########
? ? if Net_state==0&&RSS_LTE<RSS_Wimax
? ? ? ? if handoff_clock>handoff_drop
? ? ? ? ? ? if is_network_performance_meet(service_type)==1||(...
? ? ? ? ? ? ? ? ? ? ~is_in_LTE_coverage(MS_coordinate)&&...
? ? ? ? ? ? ? ? ? ? is_in_Wimax_coverage(MS_coordinate))
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?%compare the performance of?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?%new network with the past
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?%network
? ? ? ? ? ? ? ? count_handoff_number=count_handoff_number+1;
? ? ? ? ? ? ? ? Net_state=1;
? ? ? ? ? ? ? ? handoff_clock=0; ? ? ? ? ? ? %reset the counter
? ? ? ? ? ? else
? ? ? ? ? ? ? ?handoff_clock=0; ? ? ? ? ? ? ?%stay in the past network
? ? ? ? ? ? end
? ? ? ? else
? ? ? ? ? ? handoff_clock=handoff_clock+Tc;
? ? ? ? end
? ? elseif Net_state==1&&RSS_LTE>RSS_Wimax
? ? ? ? if handoff_clock>handoff_drop
? ? ? ? ? ? if is_network_performance_meet(service_type)==0||(...
? ? ? ? ? ? ? ? ? ? is_in_LTE_coverage(MS_coordinate)&&...
? ? ? ? ? ? ? ? ? ? ~is_in_Wimax_coverage(MS_coordinate))
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?%compare the performance of?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?%new network with the past
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?%network
? ? ? ? ? ? ? ? count_handoff_number=count_handoff_number+1;
? ? ? ? ? ? ? ? Net_state=0;
? ? ? ? ? ? ? ? handoff_clock=0; ? ? ? ? ? ? %reset the counter
? ? ? ? ? ? else
? ? ? ? ? ? ? ?handoff_clock=0; ? ? ? ? ? ? ?%stay in the past network
? ? ? ? ? ? end
? ? ? ? else
? ? ? ? ? ? handoff_clock=handoff_clock+Tc;
? ? ? ? end
? ? else
? ? ? ? handoff_clock=0;
? ? end
? ??
? ? %##################### ?decide whether to continue run ################
? ? if is_in_LTE_coverage(MS_coordinate)||...
? ? ? ? ? ? is_in_Wimax_coverage(MS_coordinate) ?
? ? ? ??
? ? ? ? %######################## ?record the data ########################
? ? ? ? record_time=record_time+1;
? ? ? ? record_RSS_LTE(record_time)=RSS_LTE;
? ? ? ? record_RSS_Wimax(record_time)=RSS_Wimax;
? ? ? ? record_Net_state(record_time)=Net_state;?
? ? ? ? MS_coordinate(1)=MS_coordinate(1)+MS_speed*Tc;
? ? else
? ? ? ? countinue_run=false;
? ? end?
end

%######################## plot the simulation results ?####################
t=[1:record_time]*Tc;
plot(t,record_RSS_LTE,'--ro','MarkerEdgeColor','g','MarkerFaceColor','y',...
? ? 'MarkerSize',2);
hold on
plot(t,record_RSS_Wimax,'-.ks','MarkerEdgeColor','b',...
? ? 'MarkerFaceColor','c','MarkerSize',2);
hold off
grid on
xlabel('time(s)');
ylabel('RSS(dBm)');
legend('LTE','Wimax');
title('the received signal strength about two networks');
figure
plot(t,record_Net_state,'--ro','MarkerEdgeColor','g','MarkerFaceColor','y',...
? ? 'MarkerSize',2)
grid on
xlabel('time(s)');
ylabel('mark of network');
text(0,0,'\leftarrow LTE','FontSize',10)
text(0,1,'\leftarrow Wimax','FontSize',10)
title('the state of mobile station in LTE and Wimax network')
%############################END THE PROGRAM ##############################

3.仿真結(jié)論:

?D109

總結(jié)

以上是生活随笔為你收集整理的异构网络垂直切换算法LTE/WIMAX切换的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。