将前 K 个数据包发送到 SDN 控制器

发布于 2025-01-11 05:47:02 字数 180 浏览 0 评论 0原文

我正在尝试将每个新到达流的前 K 个数据包发送到 SDN 控制器,例如 pox 或 ryu。目前,packet-in 方法似乎在新流到达 OpenFlow 交换机时触发,但它只能将第一个数据包发送到控制器。

是否有任何解决方案使数据包输入能够将每个新流中的前 K 个数据包发送到网络控制器?

任何建议都将受到高度赞赏。

I'm trying to send the first K packets of each newly arrival flow to the SDN controller, e.g. pox or ryu. Currently, the packet-in method seems to be triggered at the moment of a new flow arrives to an OpenFlow switch, however, it can only send the first packet to the controller.

Is there any solution that makes the packet-in able to send the first K packets from each new flow to the network controller?

Any suggestion will be highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

杀手六號 2025-01-18 05:47:02

我忽略是否有任何方法可以将其编程到交换机中。但是,如果您愿意为控制器编写应用程序,您可以执行以下操作。

  1. 像往常一样启动网络
  2. 让第一个数据包发送到控制器
  3. 在 SDN 控制器上存储:L3 Src/DSt Ips、L3 协议和 L4 Src/Dst 端口
  4. 安装一条规则,定义具有这 5 个功能的数据包必须发送到控制器并在数据包发送时进行计数。
  5. 在 n 个数据包之后,安装一条规则,其余数据包必须按预期发送到 X 端口。
  6. 在您确定已将足够的数据包发送到 SDN 控制器、删除规则并安装新规则的那一刻之间,有可能会向控制器发送更多数据包。

我可以想象这可以做得更好,但这是我想到的第一个想法。

干杯,

I ignore if there is any way of programming this into the switch. However, if you are willing to program applications for the controller you could do the following thing.

  1. Start your network as usual
  2. Let the first packet be sent to the controller
  3. Store at the SDN controller: L3 Src/DSt Ips, L3 Protocol and L4 Src/Dst Ports
  4. Install a rule that defines that a packet with these 5 features must eb sent to the controller and count anytime a packet is sent.
  5. After n packets, install a rule that the rest of the packets must be sent to an X port as expected.
  6. There is a chance that between the moment you decide that enough packets have been sent to the SDN controller, remove the rule and install a new one, more packets might be sent to the controller.

I can imagine that this can be done better but this is the first idea that comes to mind.

Cheers,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文