Method for realizing data communication utilizing virtual network adapting card in network environment simulating
A virtual network card and network environment technology, which is applied in the field of underlying data forwarding simulation and network environment simulation, can solve the problems of inability to simulate network environment, rely on hardware equipment, poor scalability, etc., and achieve good social benefits and application prospects, process and The method is simple and reasonable, and the effect is good
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2008-02-20
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of computer network environment simulation, in particular to a method for realizing data communication by using a virtual network card in the network environment simulation, which can be applied to the underlying data forwarding simulation simulation and network environment simulation in the field of computer network and network security simulation. Background technique
[0002] An existing physical network interface card (NIC for short), also called a network adapter, is an interface through which a host computer and a network are connected to each other. Whether it is an ordinary host or a server, as long as it is connected to a LAN, a network card needs to be installed. If necessary, one device can also be configured with multiple network cards at the same time. When hosts or network devices communicate with each other, they are transmitted in the form of frames at the bottom layer. There are two main ...
Examples
Embodiment Construction
[0037] Referring to FIG. 1 , it is a schematic diagram of the logical structure of the virtual network card of the present invention, and the virtual network card includes a first group of data records and a first group of function calling interfaces. The first group of data records mainly records the basic information of the virtual network card, including virtual network card name, MAC address, IP address, subnet mask, gateway, promiscuous mode flag, receiving data buffer, sending data buffer, receiving status flag, sending status flags. The first group of function call interfaces is provided to the outside world, and is responsible for operating and modifying the basic data records of the virtual network card. The first group of function call interfaces are: get network card name, get and set MAC address, get and set IP address, get and set gateway, get and set network card promiscuous mode, get and set subnet mask. The receiving data buffer stores the data received by the...