垂直切换的仿真(终)
异构网垂直切换的Matlab仿真
异构网中的切换的仿真: 以下为基本的网络图:
LTE BS Wimax BS 涉及到的仿真包括:
1. 接收信号的强度的设计。
2. 大尺度衰落:路径损耗和阴影效应(ShadowGenerate.m)。 3. 小尺度衰落:利用jakes模型进行仿真。
4. 参数有:移动台的运动速度为10m/s;LTE的载波频率是2000MHz,Wimax的载波频率是2500MHz,发射功率分别是33dbm、23dbm。覆盖半径分别为1Km和0.3Km。最小距离为35m。基站的坐标分别为(0,0)和(500,0)。信号的检测间隔为0.4s,切换时延为1s(仿真情况下)。移动台从坐标为(100,0)以10m/s的速度向右运动。
1.只考虑路径衰落的时候,接收信号强度的变化:
the received signal strength about two networks-80LTEWimax-85 -90RSS(dBm)-95-100-105-110 01020304050time(s)60708090100切换的变化:
the state of mobile station in LTE and Wimax network1? Wimax0.90.80.7mark of network
0.60.50.40.30.20.10? LTE01020304050time(s)607080901002.考虑到小尺度衰落的信号接收的变化:
the received signal strength about two networks-80LTEWimax-85
RSS(dBm)-90-95-100-105 01020304050time(s)60708090100切换的变化:
the state of mobile station in LTE and Wimax network1? Wimax0.90.80.7mark of network0.60.50.40.30.20.10? LTE01020304050time(s)607080901003.同时考虑到阴影效应下的接收信号强度变化:
the received signal strength about two networks-75LTEWimax-80
-85RSS(dBm)-90-95-100-105 01020304050time(s)60708090100切换的变化:
the state of mobile station in LTE and Wimax network1? Wimax0.90.80.7mark of network
0.60.50.40.30.20.10? LTE01020304050time(s)60708090100
仿真3的源代码:
1.Main.m
%% 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 large_scale_time_interval... large_scale_LTE large_scale_wimax large_scale_time_start... large_scale_time_end N
service_type=0; %the subscriber type of service
%0 refers to real time service,on the
% contrary,1 refers to nonreal-time service large_scale_time_interval=100; N=10;
large_scale_time_start=0;
large_scale_time_end=large_scale_time_interval; large_scale_LTE=ShadowGenerate(3,0.5,N); large_scale_wimax=ShadowGenerate(3,0.5,N); 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.4; %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,MS_speed,'LTE',record_time*Tc,Tc); 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,MS_speed,'Wimax',... record_time*Tc,Tc); else
RSS_Wimax=-inf; end
%############### decide whether to handoff according to RSS #########
if Net_state==0&&RSS_LTE
count_handoff_number=count_handoff_number+1; Net_state=1;
handoff_clock=0; %reset the counter else
handoff_clock=handoff_clock+Tc; end
elseif Net_state==1&&RSS_LTE>RSS_Wimax if handoff_clock>handoff_drop
count_handoff_number=count_handoff_number+1; Net_state=0;
handoff_clock=0; %reset the counter 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)
…… 此处隐藏:2407字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [学前教育]MC9S12XS256RMV1 xs128芯片手册4
- [学前教育]安东尼语录经典语录
- [学前教育]e级gps控制测量技术设计书
- [学前教育]苏教版2022-2022学年八年级下学期期末
- [学前教育]装修公司推广 营销
- [学前教育]家政服务合同(完整版)
- [学前教育]湖北省2016届高三联考语文试题
- [学前教育]爱立信无涯学习系统LTE题库1-LTE基础知
- [学前教育]揭秘大众柴油车作弊软件原理
- [学前教育]人才流失原因及对策分析
- [学前教育]房屋建筑施工工程劳务分包合同
- [学前教育]国际贸易实务试卷A卷09.6
- [学前教育]校园废品回收活动计划方案书范文格
- [学前教育]电大成本会计试题及答案
- [学前教育]大学物理实验 华南理工出版社 绪论答案
- [学前教育]爱丁堡产后抑郁量表
- [学前教育]液压冲击的危害、产生原因与防止方法(
- [学前教育]学生工作总结高一学生期中考试总结_020
- [学前教育]人民医院医疗废物管理规章制度大全
- [学前教育]阳光维生素的巨大抗癌潜能阅读题答案.d
- 马云在云锋基金江苏论坛闭幕式的发言
- 试论小学体育教育中的心理健康教育-教
- 语文A版一年级下册《语文乐园一》教学
- 2021四川大学物理化学考研真题经验参考
- [人教A版]2015-2016学年高中数学 第二
- 终端网点销售返利协议书
- 江苏省2015年眼科学主治医师青光眼考试
- 2017年部编人教版八年级语文上册教案
- 十一中学七年级英语上册Unit7Howmuchar
- 以赛促教的创新性实验教学机制建设实践
- 平凉市崆峒区2015七年级下生物期末试题
- 琶洲(地块五)A、B塔楼1、2#塔吊基础
- 一级医院工作制度与人员岗位职责
- 2018北京西城区高三二模理科数学试题及
- 炒股密码线技术 - 图文
- 职高学生生涯发展辅导教案
- 语文人教版四年级上册8 世界地图引出的
- 最新最新人教版二年级上册全册数学教案
- 2017高考英语全国2卷精彩试题(有问题
- 普通心理学笔记




