- 需求分析
- 能模拟网络连接和断开
- 支持底层协议GOOSE
- 可以编程控制
- 方案选择和比较
- dummnet [http://info.iet.unipi.it/~luigi/dummynet/]: dummynet is a tool originally designed for testing networking protocols, and since then used for a variety of applications including bandwidth management. It simulates/enforces queue and bandwidth limitations, delays, packet losses, and multipath effects.
结论: dummynet是网络层协议,它不能阻止GOOSE传输.
- Winpcap [http://www.winpcap.org]: The WinPcap programming interface can be used by many types of network tools for analysis, troubleshooting, security and monitoring.
WinPcap can't do:WinPcap 能接收和发送报文。但它不能当做防火墙,仅作监视
- 程序控制继电器,然后中断交换机的电源,可以达到此目的.
但它需要很多的硬件设施,而且配置比较麻烦
- 程序调用Windows API支持disable/enable网卡,作用也可以实现。此文章在这里:disable/enable 程序控制网卡
- 客户端或服务器运行在WMware里,然后控制网络设置
基于我有限的认识,VMware SDKs 好像并不支持操作player的界面。
另外注意的是,即使disable主机的所有网卡,客户虚机之间仍可以通信。
可以用AutoIT操作player的界面.
先link dll->获取handle->再操作player的网络设置
- 架构选择
- enable/disable Super PC 的网卡.
- 所有都运行的VMware虚机里
- 混合模式,在第一方案的Super PC里运行虚机。