没有合适的资源?快使用搜索试试~ 我知道了~
opnet12个经典的例子-Lab08-TCP.pdf
需积分: 37 19 下载量 192 浏览量
2019-07-03
09:42:18
上传
评论
收藏 2.02MB PDF 举报
温馨提示
只有8到12了,前面的找不到了。 OPNET就是一个网络仿真技术软件包,它能够准确的分析复杂网络的性能和行为,在网络模型中的任意位置都可以插入标准的或用户指定的探头,以采集数据和进行统计。通过探头得到的仿真输出可以以图形化显示、数字方式观察、或者输出到第三方的软件包去。其产品结构有三个模块组成,能为用户提供一系列的仿真模型库,在电信、军事、航天航空、系统集成、咨询服务、大学、行政机关等方面被广泛应用。
资源推荐
资源详情
资源评论
Laboratory
8
TCP: Transmission Control Protocol
A Reliable, Connection-Oriented, Byte-Stream Service
Objective
This lab is designed to demonstrate the congestion control algorithms implemented by the
Transmission Control Protocol (TCP). The lab provides a number of scenarios to simulate
these algorithms. You will compare the performance of the algorithms through the analysis
of the simulation results.
Overview
The Internet’s TCP guarantees the reliable, in-order delivery of a stream of bytes. It
includes a flow-control mechanism for the byte streams that allows the receiver to limit
how much data the sender can transmit at a given time. In addition, TCP implements a
highly tuned congestion-control mechanism. The idea of this mechanism is to throttle how
fast TCP sends data to keep the sender from overloading the network.
The idea of TCP congestion control is for each source to determine how much capacity is
available in the network, so that it knows how many packets it can safely have in transit. It
maintains a state variable for each connection, called the congestion window, which is
used by the source to limit how much data it is allowed to have in transit at a given time.
TCP uses a mechanism, called additive increase/multiplicative decrease, that decreases
the congestion window when the level of congestion goes up and increases the
congestion window when the level of congestion goes down. TCP interprets timeouts as a
sign of congestion. Each time a timeout occurs, the source sets the congestion window to
half of its previous value. This halving corresponds to the multiplicative decrease part of
the mechanism. The congestion window is not allowed to fall below the size of a single
packet (the TCP maximum segment size, or MSS). Every time the source successfully
sends a congestion window’s worth of packets, it adds the equivalent of one packet to the
congestion window; this is the additive increase part of the mechanism.
TCP uses a mechanism called slow start to increase the congestion window “rapidly” from
a cold start in TCP connections. It increases the congestion window exponentially, rather
than linearly. Finally, TCP utilizes a mechanism called fast retransmit and fast recovery.
Fast retransmit is a heuristic that sometimes triggers the retransmission of a dropped
packet sooner than the regular timeout mechanism
In this lab you will set up a network that utilizes TCP as its end-to-end transmission
protocol and analyze the size of the congestion window with different mechanisms.
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>_TCP, and the
scenario No_Drop ⇒ Click OK.
3. In the Startup Wizard: Initial Topology dialog box, make sure that Create Empty
Scenario is selected ⇒ Click Next ⇒ Select Choose From Maps from the
Network Scale list ⇒ Click Next ⇒ Choose USA from the Map List ⇒ Click Next
twice ⇒ Click OK.
Create and Configure the Network
Initialize the Network:
1. The Object Palette dialog box should now be on the top of your project space. If it
is not there, open it by clicking
. Make sure that the internet_toolbox item is
selected from the pull-down menu on the object palette.
2. Add to the project workspace the following objects from the palette: Application
Config, Profile Config, an ip32_Cloud, and two subnets.
a. To add an object from a palette, click its icon in the object palette ⇒ Move your
mouse to the workspace ⇒ Click to drop the object in the desired location ⇒
Right-click to finish creating objects of that type.
3. Close the palette.
4. Rename the objects you added as shown and then save your project:
The ip32_cloud node
model represents an IP
cloud supporting up to
32 serial line interfaces at
a selectable data rate
through which IP traffic
can be modeled. IP
packets arriving on any
cloud interface are
routed to the appropriate
output interface based
on their destination IP
address. The RIP or
OSPF protocol may be
used to automatically
and dynamically create
the cloud's routing tables
and select routes in an
adaptive manner. This
cloud requires a fixed
amount of time to route
each packet, as
determined by the
Packet Latency
attribute of the node.
3
Configure the Applications:
1. Right-click on the Applications node ⇒ Edit Attributes ⇒ Expand the
Application Definitions attribute and set rows to 1 ⇒ Expand the new row ⇒
Name the row FTP_Application.
i. Expand the Description hierarchy ⇒ Edit the FTP row as shown (you will
need to set the Special Value to Not Used while editing the shown
attributes):
2. Click OK twice and then save your project.
4
Configure the Profiles:
1. Right-click on the Profiles node ⇒ Edit Attributes ⇒ Expand the Profile
Configuration attribute and set rows to 1.
i. Name and set the attributes of row 0 as shown ⇒ Click OK.
5
Configure the West Subnet:
1. Double-click on the West subnet node. You get an empty workspace, indicating
that the subnet contains no objects.
2. Open the object palette
and make sure that the internet_toolbox item is
selected from the pull-down menu.
3. Add the following items to the subnet workspace: one ethernet_server, one
ethernet4_slip8_gtwy router, and connect them with a bidirectional 100_BaseT
link ⇒ Close the palette ⇒ Rename the objects as shown.
4. Right-click on the Server_West node ⇒ Edit Attributes:
i. Edit Application: Supported Services ⇒ Set rows to 1 ⇒ Set Name to
FTP_Application ⇒ Click OK.
ii. Edit the value of the Server Address attribute and write down Server_West.
iii. Expand the TCP Parameters hierarchy ⇒ Set both Fast Retransmit and
Fast Recovery to Disabled.
5. Click OK and then save your project.
Now, you have completed the configuration of the West subnet. To go back to the top
level of the project, click the Go to next higher level
button.
Configure the East Subnet:
1. Double-click on the East subnet node. You get an empty workspace, indicating
that the subnet contains no objects.
2. Open the object palette
and make sure that the internet_toolbox item is
selected from the pull-down menu.
3. Add the following items to the subnet workspace: one ethernet_wkstn, one
ethernet4_slip8_gtwy router, and connect them with a bidirectional 100_BaseT
link ⇒ Close the palette ⇒ Rename the objects as shown.
The ethernet4_slip8_
gtwy node model
represents an IP-based
gateway supporting four
Ethernet hub interfaces
and eight serial line
interfaces.
剩余66页未读,继续阅读
资源评论
ziggy7
- 粉丝: 41
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 智能能源管理系统市场报告:未来几年年复合增长率CAGR为7.1%
- SDL2-2.30.1.tar.gz
- 实验六、Linux RPM与YUM软件包管理实验.doc
- 新冠病毒图像分类数据集【已标注,约19,000张数据】
- 电气数据137节点配电网数据
- Ubuntu环境下编译与安装fswebcam-图像捕捉工具详解
- simplorer与Maxwell电机联合仿真,包含搭建好的Simplorer电机场路耦合主电路与控制算法(矢量控制SVPWM),包含电路与算法搭建的详细教程视频 仿真文件可复制,可将教程中的电机模
- NC Cloud-环境-NCC常用数据表
- fswebcam-20140113.orig.tar.xz
- 电气数据85节点配电网数据
- BLDC无刷直流电机仿真 双闭环 PWM PI控制 无刷直流电机仿真 sinulink 双闭环调速系统 整理好的文档,资料很详细 有详细的参数说明
- deeplabv3+街景图片语义分割,无需训练模型,看不懂也没有影响,直接使用,cityscapes数据集
- Thinkphp响应式电器使用说明书网站模板+前后端源码
- 实验七、Linux gcc源码编译实验.doc
- 一个使用 HTML 构建界面,JavaScript 实现逻辑的简易计算器源码
- NC Cloud-档案-单表开发
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功