没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Laboratory
6
RIP: Routing Information Protocol
A Routing Protocol Based on the Distance-Vector Algorithm
Objective
The objective of this lab is to configure and analyze the performance of the Routing
Information Protocol (RIP) model.
Overview
A router in the network needs to be able to look at a packet’s destination address and then
determine which of the output ports is the best choice to get the packet to that address.
The router makes this decision by consulting a forwarding table. The fundamental problem
of routing is: How do routers acquire the information in their forwarding tables?
Routing algorithms are required to build the routing tables and hence forwarding tables.
The basic problem of routing is to find the lowest-cost path between any two nodes, where
the cost of a path equals the sum of the costs of all the edges that make up the path.
Routing is achieved in most practical networks by running routing protocols among the
nodes. The protocols provide a distributed, dynamic way to solve the problem of finding
the lowest-cost path in the presence of link and node failures and changing edge costs.
One of the main classes of routing algorithms is the distance-vector algorithm. Each node
constructs a vector containing the distances (costs) to all other nodes and distributes that
vector to its immediate neighbors. RIP is the canonical example of a routing protocol built
on the distance-vector algorithm. Routers running RIP send their advertisements regularly
(e.g., every 30 seconds). A router also sends an update message whenever a triggered
update from another router causes it to change its routing table.
In this lab you will set up a network that utilizes RIP as its routing protocol. You will analyze
the routing tables generated in the routers, and you will observe how RIP is affected by
link failures.
2
Procedure
Create a New Project
1. Start OPNET IT Guru Academic Edition ⇒ Choose New from the File menu.
2. Select Project and click OK ⇒ Name the project <your initials>_RIP, and the
scenario NO_Failure ⇒ Click OK.
3. In the Startup Wizard: Initial Topology dialog box, make sure that Create Empty
Scenario is selected ⇒ Click Next ⇒ Select Campus from the Network Scale
list ⇒ Click Next three times ⇒ Click OK.
Create and Configure the Network
Initialize the Network:
1. The Object Palette dialog box should now be on top of your project workspace. If
it is not there, open it by clicking
. Make sure that the internet_toolbox is
selected from the pull-down menu on the object palette.
2. Add to the project workspace the following objects from the palette: one
ethernet4_slip8_gtwy router and two 100BaseT_LAN objects.
a. To add an object from a palette, click its icon in the object palette ⇒ Move your
mouse to the workspace ⇒ Click to place the object ⇒ Right-click to stop
creating objects of that type.
3. Use bidirectional 100BaseT links to connect the objects you just added as in the
following figure. Also, rename the objects as shown (right-click on the node ⇒ Set
Name).
4. Close the Object Palette dialog box.
5. Save your project.
The ethernet4_slip8_
gtwy node model
represents an IP-based
gateway supporting four
Ethernet hub interfaces
and eight serial line
interfaces. IP packets
arriving on any interface
are routed to the
appropriate output
interface based on their
destination IP address.
The Routing
Information Protocol
(RIP) or the Open
Shortest Path First
(OSPF) protocol may be
used to dynamically and
automatically create the
gateway's routing tables
and select routes in an
adaptive manner.
3
Configure the Router:
1. Right-click on Router1 ⇒ Edit Attributes ⇒ Expand the IP Routing
Parameters hierarchy and set the following:
i. Routing Table Export = Once at End of Simulation. This asks the router to
export its routing table at the end of the simulation to the simulation log.
2. Click OK and then save your project.
Add the Remaining LANs:
1. Highlight or select simultaneously (using shift and left-click) all five objects that
you currently have in the project workspace (one router, two LANs, and two links).
You can click-and-drag a box around the objects to do this.
2. Press Ctrl+C to copy the selected objects and then press Ctrl+V to paste them.
3. Repeat step 2 three times to generate three new copies of the objects and
arrange them in a way similar to the following figure. Rename all objects as
shown.
4. Connect routers, as shown, using PPP_DS3 links.
Choose the Statistics
To test the performance of the RIP protocol, we will collect the following statistics:
1. Right-click anywhere in the project workspace and select Choose Individual
Statistics from the pop-up menu.
2. In the Choose Results dialog box, check the following statistics:
a. Global Statistics ⇒ RIP ⇒ Traffic Sent (bits/sec).
b. Global Statistics ⇒ RIP ⇒ Traffic Received (bits/sec).
c. Nodes Statistics ⇒ Route Table ⇒ Total Number of Updates.
3. Click OK and then save your project.
RIP traffic is the total
amount of RIP update
traffic (in bits)
sent/received per
second by all the nodes
using RIP as the routing
protocol in the IP
interfaces in the node.
Total Number of
Updates is the number
of times the routing table
at this node gets updated
(e.g., due to a new route
addition, an existing
route deletion, and/or a
next hop update).
The PPP_DS3 link has
a data rate of 44.736
Mbps.
剩余10页未读,继续阅读
资源评论
-沧海横流-
- 粉丝: 5
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- mongodb数据库基本操作.pdf
- C#,布尔可满足性问题(Boolean Satisfiability Problem)算法与源代码
- C#,回文分割问题(Palindrome Partitioning Problem)算法与源代码
- C#,煎饼排序问题(Pancake Sorting Problem)算法与源代码
- C#,排列组合的堆生成法(Heap’s Algorithm for generating permutations)算法与源代码
- C#,老鼠迷宫问题的回溯法求解(Rat in a Maze)算法与源代码
- 6693eeb8d683458a07938615fba9e68f.apk
- C#,数值计算,解微分方程的龙格-库塔二阶方法与源代码
- C#,数值计算,用割线法(Secant Method)求方程根的算法与源代码
- C#,子集和问题(Subset Sum Problem)的算法与源代码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功