> For the complete documentation index, see [llms.txt](https://yeasy.gitbook.io/mininet_book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yeasy.gitbook.io/mininet_book/code_structure/logic.md).

# 整体逻辑功能

整体上来看，Mininet 作为一个基于 Python 的网络模拟工具，可以分为两大部分：Python库和运行文件。

前者提供对网络中元素进行抽象和实现，例如定义主机类来表示网络中的一台主机。后者则基于这些库来完成各种自定义的模拟过程。 一个典型的场景如下图所示。

![典型场景](/files/-M5xU5SsF1n66l5d61VK)
