The investigations about XXX network character support

来源:互联网 发布:python 字符串连接数字 编辑:程序博客网 时间:2024/05/29 16:12
  1. the requirement
    1. simulate network packets connect & disconnect
    2. support low protocol GOOSE
    3. it’s controllable by program
  2. the  selection & comparation
    1. 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.


The conclusion: it’s a networking protocols, it cannot block GOOSE transmission.

    1. 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 receives and sends the packets independently from the host protocols,like TCP-IP. This means that it isn't able to block, filter or manipulate thetraffic generated by other programs on the same machine: it simply"sniffs" the packets that transit on the wire. Therefore, it does notprovide the appropriate support for applications like traffic shapers, QoSschedulers and personal firewalls.

    1. Switch with power supply controlled by relay.

But this selection needs more hardware to support, such as switch, relay,power supply…

    1. Enable/disable netcard: In Windows, a program can call API to enable/disable netcard directly. Therefore these operations can also block GOOSE. 
    2.  A client/server runs at VMware, and set network is disconnected/connected. Just like this:


I investigate this selection, and find that VMware SDKs have many APIsto operate Guest Operating System. But VMware SDKs cannot support operation theplayer interface.

Attention: all HOST netcard are disabled,but Guests are still connected each other.

The solution is that uses AutoIt to operatethe player interface.

The routing: link dll->get handle of player-> operate networkdisconnected/connected

  1. the architecture in the future
    1. enable/disable super PC netcard, so it dose not affect client/server.

 

 

    1. All run in one HOST and VMware

 

    1. Or the mixed mode, in section a, the Super PC has/have VMware.