You are on page 1of 15

Tài liệu này được dịch sang tiếng việt bởi:

Xem thêm các tài liệu đã dịch sang tiếng Việt của chúng tôi tại:

http://mientayvn.com/Tai_lieu_da_dich.html

Dịch tài liệu của bạn:

http://mientayvn.com/Tim_hieu_ve_dich_vu_bang_cach_doc.html

Tìm kiếm bản gốc tại đây:

https://drive.google.com/drive/folders/1Zjz7DM7W4iV1qojox5kc_UUiNpx2qSH
R?usp=sharing

Performance Analysis of AODV, CBRP, DSDV and DSR MANET Routing


Protocol using NS2 Simulation
INTRODUCTION GIỚI THIỆU
Over the last decade, researchers Trong thập kỷ qua, các nhà nghiên
have made various researches in the cứu đã tiến hành nhiều nghiên cứu
field of mobile computing khác nhau trong lĩnh vực điện toán
especially MANETs. A Mobile ad- do động đặc biệt là MANET.
hoc network (MANETs) is a self- Mạng tùy biến di động (MANET)
organized, arbitrarily developed là một mạng tự tổ chức, phát triển
network and can easily adopt in tùy ý và có thể dễ dàng áp dụng
working environment. Basically, trong môi trường làm việc. Về cơ
MANET is the collection of bản, MANET mà một tập hợp các
wireless mobile nodes that can nút di động không dây có thể
interact and communicate with each tương tác và giao tieeso với nhau
other, without having the mà không cần cơ sở hạ tầng mạng
centralized and established tập trung và được thiết lập. Các
infrastructure. MANETs have MANET có thể chuyển giấc mơ
converted the dream of getting kết nối mạng “bất cứ nơi đâu và
connected “anywhere and at any bất kỳ lúc nào” thành hiện thực.
time” in to the reality. MANETs are Các MANET có thể áp dụng trong
useful in various application areas các lĩnh vực ứng dụng khác nhau
such as: communication in the chẳng hạn như: liên lạc ở chiến
battlefields, institutions and trường, các tổ chức và trường đại
colleges, military areas, disaster học, các khu vực quân sự, khu vực
recovery areas, law and order phục hồi thảm họa, duy trì phát
maintenance, traffic control areas, luật và trật tự, khu vực điều khiển
medical field, conferences and giao thông, lĩnh vực y tế, hội nghị
convocations etc. In MANET, all và họp hội, v.v…Trong MANET,
the nodes are mobile nodes and tất cả các nút là các nút di động và
their topology changes rapidly. The tô pô của chúng thay đổi nhanh.
Internet Engineering Task Force Nhóm Đặc Trách Về Kỹ Thuật
(IETF) created a MANET working Liên Mạng (IETF) tạo ra một
group to deal with the challenges nhóm MANET để giải quyết
faced during the construction of the những khó khăn phát sinh trong
MANET routing protocols. These quá trình xây dựng các giao thức
protocols are basically classified in định tuyến MANET. Về cơ bản,
to three basic types such as: reactive những giao thức này được chia
(on demand), proactive (table- thành ba loại cơ bản là: đáp ứng
driven) and hybrid. One of the basic (theo yêu cầu), chủ động (định
goals of the mobile ad-hoc network tuyến theo bảng ghi) và lai hóa.
is to establish correct and efficient Một trong những mục tiêu chính
route between the mobile nodes so của mạng tùy biến di động là thiết
that communication between the lập tuyến hoạt động chính xác và
sender and receiver is effective. hiệu quả giữa các nút di động để
quá trình truyền thông giữa đối
tượng gửi và đối tượng nhận đạt
hiệu quả cao.
In reactive (on demand) routing Trong giao thức định tuyến đáp
protocol, creation of routes is done ứng (theo yêu cầu), quá trình tạo
when it is required. When some các tuyến được tiến hành khi có
packets are to be send from source yêu cầu. Khi một số gói tin được
to destination, it may invoke the gửi từ nguồn tới đích, nó có thể
route discovery mechanism to find gọi cơ chế tìm kiếm tuyến để tìm
the path to the destination. The đường đến đích. Các tuyến có hiệu
route is valid, till the destination is lực cho đến khi đạt đến đích hoặc
reached or it is no longer be nó không còn cần trong tương lai
required in the future. Some of the nữa. Một số giao thúc định tuyến
reactive routing protocols are: DSR đáp ứng là DSR [1] [3], AODV
[1] [3], AODV [8] [6] and TORA [8] [6] và TORA [2].
[2].
In hybrid protocol routing, we Trong giao thức định tuyến lai
combine the benefits of both the hóa, người ta kết hợp những ưu
reactive as well as proactive. Hybrid điểm của định tuyến đáp ứng và
protocols are basically dependent on định tuyến chủ động. Về cơ bản,
the network size for their các giao thức lai hóa phụ thuộc
functionality. The remaining portion vào kích thước mạng đối với các
of this paper is categorized as chức năng của chúng. Phần còn lại
follows. In section 2, we will của bài báo được sắp xếp như sau.
discuss the various issues and Trong phần 2, chúng tôi sẽ trình
challenges faced by the MANET. In bày các vấn đề và thách thức trong
section 3, we will focus on the MANET. Trong phần 3, chúng tôi
routing protocols such as AODV, sẽ tập trung vào các giao thức định
DSR, DSDV, and CBRP. We will tuyến chẳng hạn như AODV,
compare the reactive routing DSR, DSDV và CBRP. Chúng tôi
protocols with proactive routing sẽ so sánh các giao thức định
protocols and understands the tuyến đáp ứng với các giao thức
difference between them that affect định tuyến tích cực và thấy được
the performance of these routing sự khác nhau của chúng ảnh
protocols. In section 4, we present hưởng đến hiệu quả hoạt động của
the simulation of these routing nhữn giao thức định tuyến này.
protocols and compare their Trong phần 4, chúng tôi trình bày
performance. In section 5, we kết quả mô phỏng những giao thức
analyze various results that are định tiến này và so sánh hiệu quả
obtained from the simulations. hoạt động của chúng. Trong phần
Finally, we conclude the paper in 5, chúng tôi phân tích các kết quả
section 6. mô phỏng. Cuối cùng phần 6 sẽ
đưa ra kết luận chung.
II. CHALLENGES FACED BY II.NHỮNG VẤN ĐỀ KHÓ
THE MANETS checked KHĂN TRONG CÁC MANET
MANETs are very much different MANET khác rất nhiều so với
from the wireless network kiến trúc cơ hạ tầng mạng không
infrastructures. MANETs has to dây. MANET phải đối mặt với
face various challenges in order to nhiều khó khăn khác nhau để đảm
achieve best Quality of Service for bảo chất lượng dịch vụ cho mạng
the underlying network. Some of cơ bản. Một số khó khăn đó như
these challenges are as follows: sau:
1. Unicast and multicast routing. 1.Định tuyến unicast và multicast.
2. Topology changes 2.Thay đổi tô pô động.
dynamically.
3. Speed and network overhead. 3.Tốc độ và phí tổn mạng
4. Limited power supply and 4.Nguồn năng lượng và băng
bandwidth. thông hạn chế.
5. Quality of service and secure 5.Chất lượng dịch vụ và định
routing. tuyến an toàn.
6. Scalable and energy efficient 6.Có thể mở rộng và định tuyến có
routing. hiệu quả về năng lượng.
These challenges are faced at the Những khó khăn này xuất hiện ở
different layers of MANETs shown các lớp khác nhau của MANET
in the figure 2. It represents the (hình 2). Nó biểu diễn kiến trúc
layered architecture of the OSI lớp của mô hình OSI và những
model and entitled the challenges of thách thức của MANET ở những
MANETs regarding these layers. lớp này.
Figure 2. Challenges are faced at the Hình 2.Những khó khăn ở các lớp
different layers of MANETs khác nhau của MANET.
III. ROUTING PROTOCOLS III.CÁC GIAO THỨC ĐỊNH
TUYẾN
A. Ad Hoc On Demand Distance A.Vector Khoảng Cách Theo Yêu
Vector (AODV) Basically AODV is Cầu Tùy Biến (AODV) Về cơ bản,
the improvement of DSDV routing AODV là sự cải thiện thuật toán
algorithm It is collectively based on định tuyến DSDV. Nó dựa trên sự
the combination of both DSDV and kết hợp của DSDV và DSR. Mục
DSR. The main aim of AODV tiêu chính của thuật toán định
routing algorithm is to provide tuyến AODV là cung cấp quá trình
reliable and secure data truyền tải đáng tin cậy và an toàn
transmission over the MANETs. In trên các MANET. Trong giao thức
this routing protocol, route định tuyến này, cơ chế duy trì
maintenance from one node to every tuyến từ một nút đến mọi nút khác
other node is not considered in the không được xét đến trong mạng.
network. Whereas in AODV, route Trong khi đó trong AODV, tuyến
are discovered only when they are chỉ được khám phá chỉ khi cần
needed as well as they are thiết cũng như duy trì khi có yêu
maintained only as long as they are cầu. Những bước quan trọng trong
required. The key steps used in the thuật toán AODV được định nghĩa
AODV algorithm are defined bên dưới:
below:
1. Route creation- 1.Quá trình tạo tuyến
Route creation process is initiated Quá trình tạo tuyến được khởi tạo
when the node wants to send the khi nút cần gửi gói tin dữ liệu đến
data packet to the destination node nút đích nhưng không tìm được
but does not find the valid route to tuyến hợp lệ để gửi gói tin. Quá
send the packet. This process is trình này được khởi tạo như thế
initiated as such: when a particular này: Khi một nút nào đó muốn
node want to send the data packet to gửi gói tin dữ liệu đến nút đích thì,
the destination node then, the các mục trong bảng định tuyến
routing table entries are checked in được kiểm tra để xác nhận xem có
order to verify whether there exists sự tồn tại một tuyến giữa nguồn và
a route between the source and đích hay không. Nếu tuyến tồn tại,
destination or not. If the route thì gói tin được chuyển tiếp đến
exists, then the packet is forwarded hop tiếp theo hướng về đích. Khi
to the next hop towards the tuyến không tồn tại, và thế thì quá
destination. When the route does trình khám phá tuyến được khởi
not exists, and then the route tạo. AODV bắt đầu quá trình
discovery process is initiated. khám phá tuyến bằng tin nhắn yêu
AODV starts the route discovery cầu tuyến (RREQ) và tin nhắn hồi
process using the route request đáp tuyến (RREP). Nút nguồn sẽ
(RREQ) and route reply (RREP). tạo ra gói tin yêu cầu tuyến
The source node will create the (RREQ) chứa số thứ tự của nó, địa
route request packet(RREQ) chỉ IP của nó, số thứ tự nút đích,
containing its sequence number, its địa chỉ IP đích và ID broadcast.
IP address , destination node Bất kỳ lúc nào nút nguồn khởi tạo
sequence number, destination IP RREQ, ID broadcast tăng lên tuần
address and broadcasting ID. tự. Do đó, người ta dùng số thứ tự
Whenever the source node initiates để xác định tính kịp thời của mỗi
the RREQ, the broadcast ID is gói tin dữ liệu và ID broadcast và
incremented each time. As the địa chỉ IP xác định số định danh
sequence number is used to identify duy nhất cho mỗi yêu cầu tuyến
the timeliness of each data packet sao cho chúng có thể xác định duy
and broadcast ID and the IP address nhất mỗi yêu cầu. Gói tin dữ liệu
identify the unique identifier for gửi yêu cầu thông qua tin nhắn
route request so that they can RREQ và nhận phản hồi dưới
uniquely identify each of the dạng tin nhắn RREP nếu tuyến
request. The data packet sends the được khám phá giữa các nút. Nút
request using the RREQ message nguồn gửi gói tin RREQ đến các
and gets back the reply in the form lân cận của nó cũng như thiết lập
of RREP message if the route is bộ định thời để chờ tin nhắn
discovered between the nodes. The RREP. Để mô tả RREQ, cổng vào
source node sends the RREQ packet tuyến ngược được thiết lập bằng
to its neighbors as well as set the nút trong bảng định truyến của nó.
timer in order to wait for the RREP Điều này giúp chúng ta biết cách
message. In order to describe chuyển tiếp tin nhắn hồi đáp tuyến
RREQ, reverse route entry is set up (RREP) đến nguồn. Hơn nữa, một
by the node in its routing table. This khoảng thời gian ứng với tuyến
enables us to know how we can ngược và nếu tuyến này không
forward the route reply (RREP) to được sử dụng trong một khoảng
the source. Moreover, a time period thời gian nhất định thì chỉ có
is associated with the reverse route thông tin về tuyến bị xóa. Nếu
entry and if this route entry is not trong bất kỳ trường hợp nào
used within the given time period RREQ bị mất trong quá trình
then only the route information is truyền tải gói tin thì một lần nữa
deleted. If in any case RREQ is lost nút nguồn khởi tạo cơ chế phục
during the transfer of packet then hồi tuyến.
the source node again initiates route
discovery mechanism.
2. Route maintenance- 2.Duy trì tuyến
Route that has been created by the Tuyến được tạo ra bởi nút nguồn
source node and destination node is và nút đích được duy trì miễn là
being maintained as long as it is nút nguồn cần nó. Bởi vì các nút
needed by the source node. Since trong MANET di động và nếu nút
nodes in the MANETs are mobile nguồn ở trạng thái di động trong
and if the source node is in the phiên hojatr động, nó lại khởi tạo
mobile state during the active cơ chế khám phá tuyến để thiết lập
session, it again restarts the route tuyến mới từ nguồn tới đích.
discovery mechanism in order to
establish new routes from source to
destination.
Otherwise, if some of the Ngược lại, nếu một số nút trong
intermediate node or the destination gian hoặc nút đích ở trạng thái di
node is in the mobile state during động trong phiên hoạt động, thì
the active session, then the nodes các nút khởi tạo tin nhắn RERR
initiates the RERR message that tác động đến các lân cận ở trên và
affects the above neighbors and the các nút. Vì thế, những nút này
nodes. As a result of which these chuyển tiếp tin nhắn RERR đến
nodes forward the RERR message các nút trước đó và có thể tiếp
to the predecessor nodes and can be diễn cho đến khi đạt tới nút nguồn.
continued until the source node is Khi nút nguồn nhận được RERR
reached. When RERR is received thì nút dừng gửi dữ liệu hoặc nó
by the source node, then the node khởi động lại cơ chế khám phá
stop sending the data or it can again tuyến bằng cách gửi tin nhắn
start the route discovery mechanism RREQ. Một số ưu điểm
by sending the RREQ message.
Advantages-
• Loop free routing. Định tuyến không lặp
• Optional multicast. Multicast tùy chọn
• Reduced control overhead. Chi phí kiểm soát giảm
Disadvantages- Nhược điểm
• Bi-directional connection Cần kết nối hai chiều để phát hiện
needed in order to detect a liên kết một chiều.
unidirectional link.
• Delay caused by the route Thời gian trễ do quá trình khám
discovery process. phá tuyến
B. Dynamic Source Routing B. Định Tuyến Nguồn Động
(DSR)- (DSR)
DSR is the reactive routing protocol DSR là một giao thức định tuyến
which is able to manage MANETs đáp ứng có thể quản lý các
without using the periodic table MANET mà không dùng các tin
update messages like proactive nhắn cập nhật bảng định kỳ giống
routing protocols does. Specially, như các giao thức định tuyến chủ
DSR are designed to make use in động. Đặc biệt, DSR được thiết kế
multi-hop wireless ad-hoc networks. để sử dụng trong các mạng tùy
Ad-hoc network enables the biến không dây đa hop. Mạng tùy
network to be self-organizing and biến là mạng tự tổ chức và tự cấu
selfconfiguring which means that hình tức là không cần cơ sở hạ
there is no need of existing network tầng mạng hiện tại. Về cơ bản,
infrastructure. This protocol giao thức này tập trung vào hai
basically focuses on the two giai đoạn khác nhau, tức là khám
different phases i.e. route discovery phá tuyến và duy trì tuyến. Trong
and route maintenance. In route giai đoạn khám phá tuyến, nút
discovery phase, source node sends nguồn gửi gói tin đến nút đích.
the packet to the destination node. Trong quá trình duy trì tuyến, giao
In route maintenance phase, thức phát hiện thời điểm tô pô
protocol detects when the topology mạng thay đổi và quyết định xem
of the network has changed and có thể dùng tuyến khác hay không
decides if an alternative route has hoặc khởi động lại quá trình khám
been used or the route discovery phá tuyến để tìm đường mới. Giai
protocol must be started to find the đoạn khám phá tuyến và duy trì
new path. Route discovery and tuyến chỉ cho hồi đáp khi chúng
route maintenance phase only give nhận được yêu cầu.
responses when they receive the
request.
Advantages- Ưu điểm
• DSR does not need the DSR không cần bảng định tuyến
routing table for making the để tạo các cập nhật định kỳ.
periodic updates.
• Intermediate nodes are able to Các nút trung gian có thể sử dụng
utilize the route cache information thông tin bộ đệm tuyến hiệu quả
efficiently to reduce the control để giảm phí tổn điều khiển.
overhead.
• Bandwidth saving because it Tiết kiệm băng thông bởi vì nó
does not require any HELLO không cần tin nhắn HELLO.
messages.
Disadvantages- Nhược điểm
• Route maintenance protocol Giao thức duy trì tuyến không sửa
does not locally repair the broken chữa liên kết bị hỏng.
link.

• This protocol is only been Giao thức này chỉ hiệu quả khi
efficient for less than 200 nodes in MANET ít hơn 200 nút.
MANET s.
• There is small time delay if Có thời gian trễ nhỏ nếu quá trình
the beginning of the new connection khởi tạo kết nối mới diễn ra.
takes place.
C. Destination- Sequenced C.Định Tuyến Vector Khoảng
Distance Vector Routing- Cách Tuần Tự Đích
The DSDV algorithm is basically Về cơ bản, thuật toán DSDV là sự
the amendments made in distributed hiệu chỉnh của thuật toán bellman
bellman ford algorithm, which ford phân tán, cung cấp tuyến
provides loop free routes. It gives us không lặp. Nó cung cấp cho chúng
the single path from source to ta tuyến duy nhất từ nguồn đến
destination using distance vector đích dùng giao thức định tuyến
routing protocol. In order to reduce vector khoảng cách. Để giảm phí
the amount of overhead in a tổn trong mạng, hai loại gói tin
network two types of updates cập nhật được truyền tải, bao gồm
packets are transferred i.e. full cập nhật đầy đủ và gia tăng gói
dump and incremental packet. Full tin. Cơ chế quảng bá cập nhật đầy
dump broadcasting carry all the đủ mang tất cả thông tin định
routing information while the tuyến trong khi cơ chế quảng bá
incremental dump broadcasting will gia tăng gói tin sẽ mang những
carry information that has changed thông tin đã thay đổi kể từ lần cập
since last full dump irrespective of nhật cuối cùng, bất kể là loại nào,
the two types, broadcasting is done quá trình quảng bá được tiến hành
in the network protocol data trong đơn vị dữ liệu giao thức
unit(NPDU). Full dump requires mạng (NPDU). Cập nhật đầy đủ
multiple NPDU’s whereas cần nhiều NPDU trong khi đó cập
incremental dump requires one nhật tuần tự cần một NPDU để
NPDU’s to fit in all the information. khớp trong tất cả thông tin. Các
Incremental update packets are sent gói tin cập nhật tăng dần được gửi
more easily and frequently than the dễ dàng hơn và thường xuyên hơn
full dump packets. DSDV các gói tin cập nhật đầy đủ. DSDV
introduces the large amount of làm cho phí tổn mạng lớn do cần
overhead to the network due to the các tin nhắn cập nhật định kỳ. Vì
requirement of periodic update thế, giao thức này không thích hợp
messages. Hence, this protocol is các mạng lớn bởi vì một phần lớn
not suitable for the large network băng thông mạng được sử dụng để
because large portion of the network cập nhật các tin nhắn
bandwidth is used for the updating
of messages.
1. Management of the routing 1.Quản lý bảng định tuyến
table-
The routing table for each and every Bảng định tuyến đối với mỗi và
node consists of a list of all mọi nút bao gồm một danh sách
available nodes, their next hop to các nút có sẵn, hop tiếp theo của
the destination, their metric and a chúng đến đích, chỉ số chất lượng
sequence number generated by the và số thứ tự do nút đích tạo ra.
destination node. With the help of Nhờ MANET, bảng định tuyến
the MANETs, routing table is used được sủ dụng để gửi các gói tin dữ
to send the data packets. Routing liệu. Bảng định tuyến có thể được
table can be kept consistent with the giữ cho nhất quán với sự thay đổi
dynamically changing topology of tô pô động của mạng tùy biến
ad-hoc network by periodically bằng cách cập nhật thường xuyên
updating the routing table with bảng định tuyến với một số thay
some small changes in the network. đổi nhỏ trong mạng. Vì thế, các
Hence, mobile nodes provide their nút di động cung cấp thông tin
routing information by broadcasting định tuyến của chúng bằng cách
the routing table update packet. The phát gói tin cập nhật bảng định
metric of the update packet starts tuyến. số liệu của gói cập nhật bắt
with the initial value of one for one đầu với giá trị ban đầu bằng một
hop neighbors and goes on đối với các lân cận của một hop và
incremented with each forwarding tiếp tục tăng với mỗi nút chuyển
node. The receiving node updates tiếp. Nút nhận cập nhật các bảng
their routing tables if the sequence định tuyến của chúng nếu số thứ
number of the update is greater than tự của cập nhất lơn hơn nút hiện
the current node or equal to the tại hoặc bằng nút hiện tại. Những
current node. Fluctuations in the thay đôi trong bảng định tuyến
routing table are minimized by được giảm thiểu bằng cách làm trễ
delaying the advertisement of routes thông điệp thông báo tuyến cho
until we find the best route. đến khi chúng ta tìm được tuyến
tốt nhất.
2. Changes in the topology- 2.Những thay đổi trong tô pô

DSDV responds to the broken links DSDV đáp ứng với các liên kết bị
by authorizing all the routes that hỏng bằng cách cấp quyền cho tất
contain this link. The routes are cả các tuyến chứa liên kết này.
immediately assigned a metric as Các tuyến được ấn định ngay tham
well as the incremented sequence số cũng như số thứ tự tăng
number. Physical and data link layer dần.Các thành phần lớp liên kết
components are used to detect the vật lý và dữ liệu được sử dụng để
broken links or if the node does not phát hiện các liên kết bị hỏng hoặc
receive broadcast packets from its nếu nút không nhận được các gói
neighbors node. Then, immediately tin thông báo từ nút lân cận của
the detecting node will broadcast an nó. Ngay sau đó nút phát hiện sẽ
update packet and inform all the phát một gói tin cập nhất và xác
other nodes about the broadcasting nhận với tất cả các nút về cơ chế
mechanism Route will again be thông báo Một lần nữa tuyến sẽ tái
reestablished when the routing table thiết lập khi bảng định tuyến
is broadcasted by the node. đưpợc nút phát.
Advantages- Các ưu điểm
• Guarantees loop free path. Đảm bảo đường không lặp
• Count to infinity problem is Giảm thiểu vấn đề đếm đến vô
reduced in DSDV. vùng trong DSDV.
• With incremental updates, we Với các cập nhật tăng dần, chúng
can avoid extra traffic. ta có thể tránh được lưu lượng
tăng thêm.
• DSDV maintain the best DSDV duy trì đường khả dĩ tốt
possible path instead of maintaining nhất thay vì duy trì nhiều đường
the multiple paths to the destination đến đích điều này giúp giảm
this reduces the amount of space in không gian trong bảng định tuyến.
the routing table.
Disadvantages- Nhược điểm
• It does not support the Không hỗ trợ định tuyến đa đường
multipath routing.
• Difficult to determine the Khó xác định độ trễ tông điệp
delay for the advertisement of thông báo của tuyến.
routes.
• Unnecessary advertising of Không cần phát thông tin định
routing information can result in the tuyến dẫn đến lãng phí băng
wastage of bandwidth. thông.
D. Cluster Based Routing D.Giao Thức Định Tuyến Theo
Protocol (CBRP)- Cụm (CBRP)
It is a reactive and on demand Đây là giao thức định tuyến đáp
routing protocol in which nodes are ứng và theo yêu cầu trong đó các
divided in to the clusters. This nút được chia thành các cụm.
protocol uses the clustering Giao thức này sử dụng cấu trúc
structure for the routing procedures. cụm cho các quá trình định tuyến.
Clustering is defined as the Phân cụm được định nghĩa là một
phenomenon that divides the hiện tượng chia mạng thành các
network in to the interconnected sub mạng con có liên kết với nhau.
networks. Each cluster has the Mỗi cụm có nút chủ cụm đóng vai
cluster head which acts as the trò điều phối trong các mạng con.
coordinator in sub networks. Each Mỗi nút chủ cụm có trạm cơ bản
cluster head has the base station trong cụm của nó để nó có thể
within its cluster so that it can tuyền thông với các nút chủ cụm
communicate with other cluster khác. Đây là giao thức định tuyến
heads. This is the reactive routing đáp ứng có thể triển khai trong
protocol which is to be used in MANET.Giao thức chia các nút
MANETs. The protocol divides the thành một số cụm theo kiểu phân
nodes in to the number of clusters in tán. Mỗi cụm chứa nút chủ cụm
a distributed manner. Each cluster chứa thông tin cụm. Bốn trạng thái
contains the cluster head which khả dĩ đối với các nút như sau:
contain the cluster information. NÚT CHỦ CỤM, CỔNG, BÌNH
Four possible states for the nodes THƯỜNG VÀ CỔNG. Ban đầu
are as follows: CLUSTERHEAD, tất cả các nút đều ở trạng thái cô
GATEWAY, NORMAL and lập. Mỗi nút duy trì bảng LÂN
GATEWAY. Initially all the nodes CẬN trong đó thông tin về các nút
are in the isolated state. Each node lân cận khác được lưu trữ trong
maintain the NEIGHBOR table, khi đó các nút chủ cụm duy trì
wherein the information about the bảng khác trong đó thông tin về
other neighbor nodes are stored nút chủ cụm khác được lưu trữ
whereas, cluster heads maintain [13].
another table wherein the
information about the other
neighbor cluster head is stored [13].
IV. SIMULATION IV.MÔ PHỎNG
The main goal of the simulation is Mục tiêu chính của mô phỏng là
to analyze the performance of phân tích hiệu suất của các giao
different MANETs routing protocol. thức định tuyến MANET khác
The simulation is being performed nhau. Mô phỏng được tiến hành
by the NS2 simulator. It is the bằng trình mô phỏng NS2. Đây là
software that provides the phần mềm giúp mô phỏng các
simulations of wireless networks mạng không dây và mã nguồn mở.
and open source software. In our Trong mô phỏng của chúng tôi,
simulation, we consider a network chúng tôi xét mạng 5 nút được đặt
of 5 nodes that are placed randomly ngẫu nhiên trrong diện tích
within a 360000m2 areas and 360000m2 và hoạt động trên 300
operating over 300 seconds. In this, giây. Trong mô phỏng này, chúng
multiple run with different node tôi tiến hành nhiều lần chạy với
speed and number of nodes are tốc độ nút khác nhau và số nút
calculated for each scenarios and được tính toán cho mỗi trường hợp
collected data is averaged further in và dữ liệu thu thập được sẽ được
order to understand the performance tính trung bình thêm nữa để phân
of different routing protocols. For tích hiệu suất của các giao thức
calculating the performance of định tuyến khác nhau. Để tính hiệ
different routing protocol, we suất của các giao thức định tuyến
require both qualitative as well as khác nhau, chúng ta cần các số
quantitative metrics. Some of the liệu định tính cũng như định
quantitative metrics are used to lượng. Những tham số định lượng
compare the performance of được sử dụng để so sánh hiệu suất
different routing protocols which của các giao thức định tuyến khác
are as follows: nhau như sau:
A. Throughput- It basically A.Thông lượng-Về cơ bản, đây là
defines as ratio of the number of tỷ số giữa tổng số gói tin phân
packets delivered to the total phát với tổng số gói tin đã gửi.
number of packets sent.
B. Packet delivery ratio- It is the B.Tỷ lệ phân phối gói tin-Đó là tỷ
ratio of total number of packets số của tổng số gói tin được phân
successfully delivered to the phối thành công đến các nút đích
destination nodes to the total với tổng số gói tin do nút nguồn
number of packets send by the gửi. Về cơ bản, đại lượng này đặc
source nodes. It basically describes trưng cho tỷ lệ gói tin đến đích.
the percentage of packets that reach
the destination.
C. Minimum and maximum C.Độ trễ tối thiểu và tối đa-Độ trễ
delay- Minimum delay is the tối thiểu là thời gian cực tiểu mà
minimum time taken by the packets gói tin đến nút tiếp theo và độ trễ
to reach the next node and cực đại là thời gian cực đại mà gói
maximum delay is maximum time tin đến nút tiếp theo.
taken by the packets to reach the
next node.
D. Average End to End delay- It D.Độ trễ đầu cuối trung bình-Đó
is the total time taken by all the là tổng thời gian tất cả các gói tin
packets to reach the destination. đến đích.
E. Network parameters- In this, E.Các tham số mạng-Trong phần
simulation time is the time taken này, thời gian mô phỏng là thời
during the simulation run that is gian chạy mô phỏng chính là thời
time between the starting of gian từ lúc bắt đầu đến kết thúc
simulation and end mô phỏng.
Figure 3. Average Throughput vs Hình 3.Thông lượng và tốc độ
Speed trung bình
In figure-4 if node speed increases, Trong hình 4, nếu tốc độ nút tăng,
average delay of AODV decreases thời gian trễ trung bình của
while in DSDV, DSR and CBRP AODV giảm trong khi đó trong
average delay increases with the DSDV, DSR và CBRP thời gian
increase in the node speed. It means trễ trung bình tăng theo tốc độ nút.
packet delivery takes the less time Tức là quá trình phân phát gói tin
as the node speed increases in sẽ mất ít thời gian hơn khi tốc độ
AODV. nút trong AODV tăng.
Figure 4. Average Delay vs Speed Hình 4.Độ trễ và tốc độ trung bình
In figure-5, as the mobility Trong hình 5, vì độ linh động
increases, the packet delivery ratio tăng, tỷ lệ phân phát gói tin của
of AODV and DSDV decreases AODV và DSDV giảm trong khi
while it increases in DSR and đại lượng này tăng trong DSR và
CBRP. Hence in terms of packet CBRP. Vì thế theo tỷ lệ phân phối
delivery ratio, CBRP is better gói tin, CBRP tốt hơn so với các
among all the four routing giao thức định tuyến khác.
protocols.
VI. CONCLUSIONS VI.KẾT LUẬN
This paper provides the detailed Bài báo này đưa ra thông tin chi
study of various routing protocols tiết về kết quả nghiên cứu các giao
which are proposed for the mobile thức định tuyến khác nhau được
ad- hoc networks and also provide đề xuất cho các mạng tùy biến di
the classification of these routing động và cũng phân loại các giao
protocols on the basis of their thức định tuyến này thông qua
routing strategy. In this paper we chiến lược định tuyến của chúng.
have presented AODV, CBRP, DSR Trong bài báo nà, chúng tôi đã
and DSDV and study their features, trình bày các giao thức định tuyến
differences and characteristics. The AODV, CBRP, DSR và DSDV và
performance of these routing nghiên cứu các đặc trưng, sự khác
protocols is analyzed with NS2 biệt và đặc điểm của chúng. Hiệu
simulator with scenario of 5 nodes. suất của những giao thức định
The observations are made with tuyến này được phân tích bằng
variation in network mobility. After trình mô phỏng NS2 trong trường
various analysis of network in hợp 5 nút. Thí nghiệm được tiến
different situations, we comes at the hành trong điều kiện thay đổi độ
conclusion that AODV performs linh động mạng. Sau khi phân tích
better than DSR, DSDV, and CBRP mạng trong các trường hợp khác
in terms of throughput and average nhau, chúng tôi kết luận rằng
delay while CBRP is proved to be AODV hoạt động tốt hơn DSR,
better in terms of packet delivery DSDV và CBRP xét theo thông
ratio. All in all, by analyzing all the lượng và độ trễ trung bình trong
parameters, we come at the khi CBRP tốt hơn xét về tỷ lệ
conclusion that the AODV routing phân phối gói tin. Nói chung, bằng
protocol is better. cách phân tích tất cả các tham
số,chúng tôi kết luận rằng giao
thức định tuyến AODV tốt hơn.

You might also like