gpt4 book ai didi

c++ - 在 OMNet 上实现 SDN Controller

转载 作者:行者123 更新时间:2023-11-28 04:38:53 26 4
gpt4 key购买 nike

我正在尝试在 OMNet v5.2.1 上创建 SDN 模型。但是,INET 中没有 SDN Controller 模块。这就是我使用 standartHost 模块作为 Controller 的原因。我能得到合理的结果吗?

此外,我在我的网络上使用 UDP 协议(protocol)。 因为我想发送数据包遵循这条路径:
客户端 -> 交换机 -> Controller -> 交换机 -> host2 ,

我将客户端协议(protocol)定义为 UDPBasicApp,将 Controller 协议(protocol)定义为 UDPEcho。然而 UDPEcho 协议(protocol)制定了路径:
客户端 -> 交换机 -> Controller -> 交换机 -> 客户端

总而言之,客户端收到了他发送的数据包。我该如何解决?

我附上了与 UDP 协议(protocol)相关的 .INI 文件部分


[Config Step1]
network = Test

description = "Fully automatic static routing table configuration"

*.client.numUdpApps = 1
*.client.udpApp[0].typename = "UDPBasicApp"
*.client.udpApp[0].destAddresses = "controller"
*.client.udpApp[0].destPort = 5000
*.client.udpApp[0].messageLength = 1000B
*.client.udpApp[0].sendInterval = exponential(12ms)
*.client.udpApp[0].packetName = "UDPData"


*.controller.numUdpApps = 1
*.controller.udpApp[0].typename = "UDPEchoApp"
*.controller.udpApp[0].localPort = 5000
*.controller.pingApp[*].destAddr = "host2"

最佳答案

INET 有一个 SDN 扩展,参见 this papergithub上的相应代码.

关于 UDPEchoApp:此行为是有意的。回声应用程序响应发送的任何请求;如果您将请求发送到 Controller (如在您的配置中),并在 Controller 上运行 EchoApp, Controller 将响应您的 UDP 数据包。但是,对于非 SDN 场景,您根本不需要 Controller (您只需使用 client->switch->host2)。

关于c++ - 在 OMNet 上实现 SDN Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50680109/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com