【发布时间】:2019-01-01 07:31:32
【问题描述】:
我想创建一个 FTP 连接并通过它发送一个大文件并查看它在我的网络中的效果。为了做到这一点,我在 OMNet++ 场景文件中编写了以下几行。我不确定这是否是创建 FTP 连接的正确方法。我将“thinkTime”和“IdleInterval”参数设置为零,以便在一个会话中立即发送 FTP 数据。由于文件大小对于我当前的模拟来说太大了,我想我在整个模拟时间内只有一个会话。但是我的 FTP 连接的吞吐量太低,我不确定。有人能帮我吗?欢迎所有建议或 FTP 示例。
# FTPclusterMember FTP
**.clusterMember[0].tcpApp[1].typename = "TCPBasicClientApp"
**.clusterMember[0].tcpApp[1].connectAddress = "FTPserver"
**.clusterMember[0].tcpApp[1].connectPort = 21
# Download Scenario requestLength < replyLength
**.clusterMember[0].tcpApp[1].requestLength = 100B
**.clusterMember[0].tcpApp[1].replyLength = 1500MB
**.clusterMember[0].tcpApp[1].thinkTime = 0s
**.clusterMember[0].tcpApp[1].idleInterval = 0s
# FTPserver Settings
**.FTPserver.numTcpApps = 1
**.FTPserver.tcpApp[0].typename = "TCPSinkApp"
**.FTPserver.tcpApp[0].localAddress = "FTPserver"
**.FTPserver.tcpApp[0].localPort = 21
【问题讨论】:
-
我应该使用 TCPSessionApp 而不是 TCPBasicClientApp 进行 FTP 连接吗?
标签: ftp simulation omnet++ inet