• 大小: 20KB
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2024-01-27
  • 语言: Matlab
  • 标签: matlab  

资源简介

Originally reactive protocols were not design for the characteristic of highly mobility during route discovery. Due to dynamically modification to the VANET this changes very often due to breakdown which causing excessive broadcasting and flooding the entire network in order for new routes to be discovered. In additional, the initial of routing need some time and this latency can easily change everything. Due to these reasons, the typical reactive protocols, in their current format, do not totally appropriate for time critical applications such as cooperative collision avoidance (CCA). The Cooperative Collision Avoidance is an important class of safety applications in VANETs, which aims at offering earlier warning to drivers using vehicle-to-vehicle (V2V) communication [13]. Ad Hoc On Demand Distance Vector (AODV) is an reactive routing protocolwhich capable of both unicast and multicast. In AODV, like all reactive protocols,topology information is only transmitted by nodes on-demand. When source hassomething to send then initially it propagates RREQ message which is forwarded byintermediate node until destination is reached. A route reply message is unicastedback to the source if the receiver is either the node using the requested address, or ithas a valid route to the requested address. This repository provides a MATLAB simulaiton of VANET enviornment and rsults comparison in terms of throughput, packet drop ratio etc. More information can be reached at https://www.youtube.com/watch?v=2QeSYOgJo9s&t=32s

资源截图

代码片段和文件信息

function varargout = anish(varargin)
% ANISH MATLAB code for anish.fig
%      ANISH by itself creates a new ANISH or raises the existing
%      singleton*.
%
%      H = ANISH returns the handle to a new ANISH or the handle to
%      the existing singleton*.
%
%      ANISH(‘CALLBACK‘hobjecteventDatahandles...) calls the local
%      function named CALLBACK in ANISH.M with the given input arguments.
%
%      ANISH(‘Property‘‘Value‘...) creates a new ANISH or raises the
%      existing singleton*.  Starting from the left property value pairs are
%      applied to the GUI before anish_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to anish_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE‘s Tools menu.  Choose “GUI allows only one
%      instance to run (singleton)“.
%
% See also: GUIDE GUIDATA GUIHANDLES

% Edit the above text to modify the response to help anish

% Last Modified by GUIDE v2.5 23-Sep-2015 14:01:15

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘       mfilename ...
                   ‘gui_Singleton‘  gui_Singleton ...
                   ‘gui_OpeningFcn‘ @anish_OpeningFcn ...
                   ‘gui_OutputFcn‘  @anish_OutputFcn ...
                   ‘gui_LayoutFcn‘  []  ...
                   ‘gui_Callback‘   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
    gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before anish is made visible.
function anish_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to anish (see VARARGIN)

% Choose default command line output for anish
handles.output = hobject;

% Update handles structure
guidata(hobject handles);

% UIWAIT makes anish wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = anish_OutputFcn(hobject eventdata handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in Simulate.
function Simulate_Callback(hobject eventdata handles)
% hobject    handle to Simulate (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (s

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\
     文件        1798  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\README.md
     文件        9870  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\UrbanCitySimu.m
     文件        5926  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\anish.fig
     文件        8191  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\anish.m
     文件         102  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\equal.m
     文件        1979  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\evaluation.m
     文件       26112  2018-07-16 04:32  VANET-Simulation-in-MATLAB-master\out.xls

评论

共有 条评论