CN113055228A - Non-sensing network bridging method and device based on wireless network card - Google Patents

Non-sensing network bridging method and device based on wireless network card Download PDF

Info

Publication number
CN113055228A
CN113055228A CN202110246964.4A CN202110246964A CN113055228A CN 113055228 A CN113055228 A CN 113055228A CN 202110246964 A CN202110246964 A CN 202110246964A CN 113055228 A CN113055228 A CN 113055228A
Authority
CN
China
Prior art keywords
virtual machine
wireless network
network card
data
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110246964.4A
Other languages
Chinese (zh)
Other versions
CN113055228B (en
Inventor
杜琛
熊第彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN202110246964.4A priority Critical patent/CN113055228B/en
Publication of CN113055228A publication Critical patent/CN113055228A/en
Application granted granted Critical
Publication of CN113055228B publication Critical patent/CN113055228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/20Network management software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a non-sensing network bridging method based on a wireless network card, which comprises the following steps: installing a network protocol of a drive corresponding to the hybrid mode on a wireless network card of a windows system where the virtual machine is located; monitoring whether the virtual machine has data to be sent to the wireless network card or not by using the driver, or whether the wireless network card end receives the data to be sent to the virtual machine or not; if a virtual machine or a wireless network card is monitored to have data to be sent through a driver, the source address of a sender and a network protocol are converted according to set conditions, and then the data are sent to a receiver.

Description

Non-sensing network bridging method and device based on wireless network card
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for sensorless network bridging based on a wireless network card.
Background
A virtual machine refers to a complete computer system with complete hardware system functionality, which is emulated by software and runs in a completely isolated environment. The work that can be done in a physical computer can be implemented in a virtual machine. When creating a virtual machine in a computer, it is necessary to use a part of the hard disk and the memory capacity of the physical machine as the hard disk and the memory capacity of the virtual machine. Each virtual machine has an independent CMOS, hard disk and operating system, and can be operated like a physical machine.
In a windows qemu-based virtual machine, two ways are available for a virtual machine to surf the internet, one way is an NAT (network address translation) way, but the use of the NAT way to surf the internet requires uniform planning of IP addresses of a virtual network and a local area network.
In the prior art, usually, a TAP virtual network card is used, and then a method of creating a bridge by windows is used for network bridging, so as to realize the surfing of a windows qemu virtual machine, but in practice, the method often causes that the network is disconnected for a while or is not recoverable after the network is disconnected, and the method has a great risk when applied to products.
Disclosure of Invention
The application provides a non-perception network bridging method and a device based on a wireless network card, which are researched based on a protocol driver of the network card in a windows kernel, and realize a set of non-perception bridging scheme so as to overcome the phenomenon of network disconnection in the process of establishing a bridging network in the prior art.
In order to solve the above technical problem, one technical solution adopted by the present application is to provide a method for sensorless network bridging based on a wireless network card, where the method for sensorless network bridging includes: installing a network protocol of a drive corresponding to the hybrid mode on a wireless network card of a windows system where the virtual machine is located; monitoring whether the virtual machine has data to be sent to the wireless network card or not by using the driver, or whether the wireless network card end receives the data to be sent to the virtual machine or not; and if the virtual machine or the wireless network card is monitored to have data to be sent through the driver, the data is sent to a receiver after a source address of a sender and a network protocol are converted according to set conditions.
In one embodiment, if the driver monitors that the virtual machine or the wireless network card has data to send, the step of sending the data to the receiver after converting the source address of the sender and the network protocol according to the set conditions includes: if the driver monitors that the virtual machine has data to be sent to the wireless network card, the source mac address of the virtual machine is modified into the source mac address of the wireless network card through the driver; and if the wireless network card end receives the data to be sent to the virtual machine through the drive monitoring, modifying the source mac address of the wireless network card into the source mac address of the virtual machine through the drive.
In an embodiment, the step of sending the data to the receiver after converting the source address of the sender and the network protocol installation setting condition if the virtual machine or the wireless network card is monitored to have the data to be sent by the driver includes: and if the drive monitors that the virtual machine or the wireless network card has data to be sent, modifying the network protocol of a sender through an nwifi.
In an embodiment, the step of modifying the network protocol of the sender through the nwifi.sys driver file of the windows system includes: if the driver monitors that the virtual machine has data to be sent to the wireless network card, the driver converts an 802.3 network protocol into an 802.11 network protocol through the nfi.sys driver file, and the 802.11 network protocol is used for sending the data to the wireless network card; and if the wireless network card end receives the data to be sent to the virtual machine through the drive monitoring, converting the 802.11 network protocol into the 802.3 network protocol through the nwifi.sys drive file, and sending the data to the virtual machine by utilizing the 802.3 network protocol.
In one embodiment, the step of sending the data to the virtual machine using the 802.3 network protocol is followed by: and converting the source address of the wireless network card into the source address of the virtual machine through the driver so as to enable the virtual machine to receive the data.
In an embodiment, the step of installing a driven network protocol corresponding to the promiscuous mode on a wireless network card of a windows system where the virtual machine is located includes: and installing a driver of a network protocol corresponding to a hybrid mode on a virtual network card of the windows system where the virtual machine is located, so as to install the network protocol on a wireless network card of the windows system.
In an embodiment, the step of installing a driven network protocol corresponding to the promiscuous mode on a wireless network card of a windows system where the virtual machine is located includes: and installing a driver of a network protocol corresponding to the hybrid mode on a virtual network card of the same network segment of the virtual machine so as to install the network protocol on all the wireless network cards.
In order to solve the above technical problem, another technical solution adopted by the present application is to provide a non-inductive network bridging device based on a wireless network card, including: a virtual machine; the protocol driving unit is connected with the virtual machine and used for installing a driver of a network protocol corresponding to a hybrid mode on the wireless network card and monitoring whether the virtual machine and the wireless network card have data to be sent or not by using the driver; the protocol conversion unit is connected with the protocol driving unit and is used for converting the source address of the sender and the network protocol according to set conditions; and the wireless interface transceiving unit is connected with the protocol driving unit and is used for identifying the data received or sent through the interface.
In one embodiment, the protocol driver unit is further configured to install the protocol corresponding to the promiscuous mode on all systems in the same network segment as the virtual machine.
In one embodiment, the protocol conversion unit is configured to convert the source mac address of the sender into the source mac address of the receiver and to control the inter-conversion between the 802.3 network protocol and the 802.11 network protocol.
The beneficial effect of this application is: installing a network protocol of a drive corresponding to the hybrid mode on a wireless network card of a windows system where the virtual machine is located; monitoring whether the virtual machine has data to be sent to the wireless network card or not by using the driver, or whether the wireless network card end receives the data to be sent to the virtual machine or not; if a virtual machine or a wireless network card is monitored to have data to be sent through a driver, the source address of a sender and a network protocol are converted according to set conditions, and then the data are sent to a receiver.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an embodiment of an unaware network system based on a wireless network card according to the present application;
fig. 2 is a schematic flowchart illustrating an embodiment of an unaware network bridging method based on a wireless network card according to the present application;
fig. 3 is a schematic structural diagram of an embodiment of the non-aware network bridging device based on the wireless network card according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plural" includes at least two in general, but does not exclude the presence of at least one.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that the terms "comprises," "comprising," or any other variation thereof, as used herein, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It should be noted that a network card in the conventional sense is a piece of computer hardware designed to allow a computer to communicate over a computer network. It belongs to layer 2 of the OSI model because it possesses the mac address. It allows the users to connect to each other through cables or wirelessly. In one computer, the computer hardware can be divided into a plurality of physical hardware, so that the computer simultaneously comprises a plurality of networking physical hardware such as a wired network card and a wireless network card. The network card of the application at least comprises a wired network card, a wireless network card, a plurality of virtual network cards and the like. In the present application, the wireless network card refers to hardware used for a computer to surf the internet through a wireless connection network.
Generally, the non-perceptual authentication means that when a user uses one device to surf the internet, only the first login needs Web authentication, and when the user uses the device again, the user does not need to input a user name and a password, even if the user is abnormally disconnected, for example: the terminal can automatically authenticate when the terminal is connected with a wire network again or enters a wireless network coverage area, so that the user can be online forever. This process is done automatically by the system, and is "unaware" of the user. The non-perception network bridging in the application means that when the virtual machine uses the network card of the host machine to surf the internet, the original network card surfing condition of the host machine is not influenced, and therefore the non-perception internet surfing of the host machine is achieved.
802.3 is a technology supporting IEEE802.3 network architecture. IEEE802.3 is a collection of Institute of Electrical and Electronics Engineers (IEEE) standards established by the working group, which defines the medium access control (mac) of the physical and data link layers of wired ethernet networks. IEEE802.11 is a standard common to wireless local area networks today, and is a standard for wireless network communications defined by the Institute of Electrical and Electronics Engineers (IEEE).
Network Bridging (Bridging) refers to the process of forwarding network packets according to the address of the link layer of the OSI network model. Two different physical LANs can be connected by a bridge, which is a store-and-forward device for realizing interconnection of LANs at a link layer. Specifically, the bridge receives a mac frame from one lan, unpacks, collates, and checks the mac frame, reassembles the mac frame according to the format of another lan, and sends the mac frame to its physical layer, in general, a connection formed by concatenating several networks through one device (possibly more than one), and in this application, the network of the virtual machine is bridged with the network of the wireless network card through the virtual network card.
The application provides a virtual machine non-sensing network-accessing system based on a wireless network card, as shown in fig. 1, fig. 1 is a non-sensing network bridging method based on a wireless network card, and the non-sensing network bridging method comprises the following steps:
step S11: and installing a network protocol of a driver corresponding to the hybrid mode on a wireless network card of a windows system where the virtual machine is located.
The method specifically comprises the following steps: and installing the driver of the network protocol corresponding to the hybrid mode on a virtual network card of the windows system, and installing the driver of the network protocol corresponding to the hybrid mode on the wireless network card through the data connection relationship between the virtual network card and the wireless network card. In this step, the protocol driver can be automatically installed by the driver layer of the windows system. The method also comprises the following steps: and establishing a virtualization scheme at an application layer of the windows system to form a virtual machine independent of the windows system.
In this step, the driver of the network protocol corresponding to the hybrid mode is installed in the system in the same network segment, so that the virtual machine or the application program in the same network segment establishes connection with the wireless network card through the protocol driver, and the functions of receiving and sending the data packet are realized.
In this embodiment, the protocol connection between the virtual machine and the internet is implemented by installing a driven network protocol corresponding to the hybrid mode on the wireless network card to establish protocol connection between the virtual machine and the wireless network card.
Specifically, when the network protocol of the driver corresponding to the promiscuous mode is installed, the driver of the network protocol is set to the promiscuous mode so as to receive all data passing through the wireless network card interface and send the received data to the virtual machine. It should be noted that the promiscuous mode refers to a machine being able to receive all data streams passing through it. Under normal conditions, the network card only receives data from a network port and the destination address of the network card points to the network card; and when the network card works in the hybrid mode, the network card captures all data from the interface and delivers the data to the corresponding driver.
After the step, the wireless network card sends the information of successful installation of the network protocol corresponding to the promiscuous mode to the virtual machine through the driver.
Step S12: and monitoring whether the virtual machine has data to be sent to the wireless network card or not by using the driver, or whether the wireless network card end receives the data to be sent to the virtual machine or not.
In this step, the virtual machine monitors whether there is data flow on the wireless network card and data flow conditions, including the size of the monitored data packet and information of the data frame, by using the driver. The specific implementation mode is to monitor whether the virtual machine has data to be sent to the wireless network card or whether the wireless network card receives the data to be sent to the virtual machine. If the driver listens that there is data flowing, step S13 is executed.
Step S13: if the virtual machine or the wireless network card is monitored to have data to be sent through driving, the data is sent to a receiver after being converted through a source address of a sender and a network protocol according to set conditions.
In this embodiment, the sender and the receiver are a virtual machine and a wireless network card, and when the virtual machine sends a data packet to the wireless network card, the sender is the virtual machine and the receiver is the wireless network card; when the wireless network card sends a data packet to the virtual machine, the sender is the wireless network card, and the receiver is the virtual machine.
Step S13 specifically includes: if the driver monitors that the virtual machine has data to be sent to the wireless network card, the driver modifies the source mac address of the virtual machine to the source mac address of the external wireless network card; and if the driver monitors that the wireless network card receives the data to be sent to the virtual machine, the source mac address of the wireless network card is modified into the source mac address of the virtual machine through the driver.
The method also comprises the following steps: and if the virtual machine or the wireless network card has data to be sent through the drive monitoring, modifying the network protocol of the sender through an nwifi. Specifically, if the driver monitors that the virtual machine has data to be sent to the wireless network card, the 802.3 network protocol is converted into the 802.11 network protocol through the nwifi.sys driver file, and the data is sent to the wireless network card by using the 802.11 network protocol; if the driver monitors that the wireless network card receives data to be sent to the virtual machine, the 802.11 network protocol is converted into an 802.3 network protocol through the nwifii.sys driver file, and the data is sent to the virtual machine by utilizing the 802.3 network protocol.
To specifically describe the implementation process of the above embodiment, please refer to fig. 2 specifically, fig. 2 is a schematic signal flow diagram of an embodiment of the present application of the non-sensor network system based on the wireless network card; the method comprises the following steps: the virtual machine 100, the driving unit 200, the protocol conversion unit 300, the wireless network card 400, and the external network card 500.
The virtual machine 100 sends the network protocol to the wireless network card 400 through the driving unit 200, and installs the network protocol on the wireless network card 400 through the driving unit 200. In this embodiment, the network protocol is a network protocol corresponding to the promiscuous mode, and the specific implementation manner is to set the driver of the network protocol to the promiscuous mode in the protocol installation process, so that the wireless network card can receive all data flowing through the interface. After the successful installation on the wireless network card 400, the method further comprises the step of sending the information of successful installation to the virtual machine 100 through the driving unit 300. The virtual machine 100 listens to the data received or transmitted by the wireless network card 400 through the driving unit 200.
Specifically, if it is monitored through the driving unit 200 that the virtual machine has data to be sent to the wireless network card, the packet sent by the virtual machine 100 is sent to the driving unit 200, the source mac address of the virtual machine is modified into the source mac address of the wireless network card through the driving unit 200, the source mac address of the modified data packet is sent to the protocol conversion unit 300, the internet protocol standard of the data packet is converted from 802.3 to 802.11 through the protocol conversion unit 300, the data packet obtained by converting the source mac address and the internet protocol standard is sent to the wireless network card 400, and the wireless network card 400 is in communication connection with the external network 500, wherein the function of the protocol conversion unit 300 is completed by an nwifi.sys driver file in the windows system. In this embodiment, the external network 500 refers to the internet or a data network independent of a host, and the wireless network card 400 receives the network data of the external network 500 or sends the network data to the external network 500. If the wireless network card end receives the data to be sent to the virtual machine through the drive monitoring, wherein the data comprises a receiving and sending packet sent to the wireless network card 400 by the external network card 500; the wireless network card 400 sends the received data to the protocol conversion unit 300, the protocol conversion unit 300 converts the 802.11 network protocol of the data into the 802.3 network protocol, and sends the converted data packet to the driving unit 200, the driving unit 200 converts the source mac address of the wireless network card in the data packet into the source mac address of the virtual network card, and sends the converted data to the virtual machine 100 so that the virtual machine 100 can receive the data sent by the wireless network card 400, and the phenomenon of packet loss is avoided, thereby realizing the non-perception bridge connection of the data sending and receiving of the virtual machine 100 and the wireless network card 400.
It should be noted that, in this embodiment, the driving of the driving unit 200 and the protocol conversion operation of the protocol conversion unit 300 are both automatically completed by software, and the driving of the driving unit 200 and the protocol conversion operation of the protocol conversion unit 300 can be completed on a virtual network card.
The system in this embodiment is a windows system. Before implementing wireless network card unaware bridging in the windows system, a virtualization scheme is established in the windows system, where the virtualization scheme may be an application software interface, and in this embodiment, the virtualization scheme is a virtual machine 100, and the windows system is a host machine.
In another embodiment, the network protocol of the driver corresponding to the hybrid mode is installed on the virtual network card in the same network segment of the virtual machine, so that the network protocol is installed on all the wireless network cards. Specifically, the virtual network cards in the same network segment can perform information interaction, and in the process of data transmission, data transmission can be performed on other devices in the same network segment by modifying the mac address and the network protocol of the data.
It should be noted that the network protocol in this application is a network protocol corresponding to the promiscuous mode, and all data flowing through the network card equipped with the network protocol are acquired by the network card under the drive of the network protocol. In addition, the virtual machine 100 is a "computer" independent from the host, and is a virtual computer, which can implement all the functions that can be implemented by the physical computer, and the virtual machine 100 can also be an application software.
The network bridging method in the application comprises an application layer, a driver layer, a protocol layer and a hardware layer of the network, wherein the functions of the wireless network card are realized in the hardware layer, and specifically comprises receiving/sending data packets of an external network and receiving/sending data requests of a virtual machine and a host machine. The virtual machine is implemented in the application layer, and the virtual machine itself may be an application software. The driving layer and the protocol layer respectively correspond to the driving unit and the protocol conversion unit and are used for driving the installation of the network protocol and the conversion of the network protocol. It should be noted that, in this embodiment, the driving unit and the protocol conversion unit may be implemented in an application layer, and are not specifically divided, but are only subdivided into the driving layer and the protocol layer for specifically explaining the installation process of the virtual protocol in this embodiment, and this is not limited herein.
In this embodiment, the drive installation of the network protocol corresponding to the promiscuous mode does not change the original internet protocol and protocol drive of the host, thereby implementing the non-aware internet access of the virtual machine and the host, which is specifically equivalent to adding a new network protocol on the wireless network card. Once the protocol is installed successfully, the virtual machine 100 monitors the network data on the wireless network card 400 through the driver, and acquires the data circulated on the wireless network card 400, which specifically includes: if the wireless network card 400 is monitored to have data to be sent, the information of the data packet is converted by the driver to be transmitted to the virtual machine 100; if the virtual machine is monitored to have data to be sent out, the information of the data packet is converted into data which can be received by the wireless network card through the drive so as to be transmitted to the wireless network card 400. And performs data transmission with the external network 500 through the wireless network card 400.
The beneficial effect of this embodiment is: installing a network protocol of a drive corresponding to the hybrid mode on a wireless network card of a windows system where the virtual machine is located; monitoring whether the virtual machine has data to be sent to the wireless network card or not by using the driver, or whether the wireless network card end receives the data to be sent to the virtual machine or not; if a virtual machine or a wireless network card is monitored to have data to be sent through a driver, the source address and the network protocol of a sender are converted according to set conditions, and then the data are sent to a receiver, the data of the virtual machine can be sent to the wireless network card through the method, the data of the wireless network card can also be received, the phenomenon of packet loss can not occur, barrier-free network connection between the virtual machine and the wireless network card is achieved, and on the other hand, the original internet surfing function of a host machine can not be influenced by installing the driven network protocol corresponding to the hybrid mode on the wireless network card of the host machine, so that non-perception internet surfing is achieved.
The present application further provides a non-inductive network bridging device based on a wireless network card, and please refer to fig. 3 specifically, fig. 3 is a schematic structural diagram of an embodiment of the non-inductive network bridging device based on the wireless network card according to the present application. As shown in fig. 3, the wireless network card-based unaware network bridge device 30 includes: a virtual machine 31; the protocol driving unit 32 is connected with the virtual machine, and is used for installing a driven network protocol corresponding to the hybrid mode on the wireless network card and monitoring whether data to be sent exists between the virtual machine and the wireless network card by using the driver; a protocol conversion unit 33 connected to the protocol driving unit, for converting the source address of the sender and the network protocol according to the setting conditions; a wireless interface receiving/transmitting unit 34 coupled to the protocol conversion unit for identifying data received or transmitted over the wireless interface. Specifically, in this embodiment, the specific process of the protocol driver unit 32 monitoring whether the virtual and wireless network cards have data to be sent by using the driver corresponding to the promiscuous mode includes: monitoring whether the virtual machine has data to be sent to the wireless network card or whether the wireless network card end receives the data to be sent to the virtual machine; if the fact that the virtual machine has data to be sent to the wireless network card is monitored, the source mac address of the virtual machine is modified into the source mac address of the wireless network card, the 802.3 network protocol is converted into the 802.11 network protocol through the protocol conversion unit 33, and the data of the virtual machine is sent to the wireless network card through the 802.11 network protocol; if the wireless network card end receives the data to be sent to the virtual machine, the source mac address of the wireless network card is modified into the source mac address of the virtual machine, the 802.11 network protocol is converted into the 802.3 network protocol through the protocol conversion unit 33, and the network protocol of the wireless network card is sent to the virtual machine by using the 802.3 network protocol. The protocol conversion unit 33 is configured to control interconversion between an 802.3 network protocol and an 802.11 network protocol, change the network transmission standard of the data packet to 802.11 when the virtual machine sends data to the wireless network card, and change the network transmission standard of the data packet to 802.3 when the wireless network card sends data to the virtual machine.
In another embodiment, the protocol driver unit 32 is configured to install the protocol corresponding to promiscuous mode on all systems on the same network segment as the virtual machine. Through the method, a system in the same network segment with the virtual machine can also use the wireless network card to carry out data transmission. Specifically, the same network segment means that the internet IP addresses are in the same network segment.
In this embodiment, the wireless interface transceiver unit 34 is also connected to a wireless network card for receiving or transmitting data or data packets flowing through the wireless network card. The method specifically comprises the following steps: and receiving a data request sent by the virtual machine and sending the data request to the Internet, and receiving data sent by the Internet and sending the data to the virtual machine. The wireless interface transceiver unit further stores the received data in a physical network card to form an internet access record, which is not limited herein.
It should be noted that the virtual machine 31, the protocol driving unit 32, the protocol conversion unit 33, and the wireless interface transmitting/receiving unit 34 in this embodiment are virtual modules, and are implemented by a software application layer of a computer, and the connection relationships are signal couplings. The virtual machine 31, the protocol driver unit 32, the protocol conversion unit 33, and the wireless interface transceiver unit 34 in this embodiment may be the same as or different from the virtual machine 100, the driver unit 200, and the protocol conversion unit 300 in the second embodiment, and are not limited herein.
The beneficial effect of this embodiment is: installing a driver of a network protocol corresponding to the hybrid mode on the wireless network card through the protocol driving unit 32, and monitoring whether the virtual machine has data to be sent to the wireless network card or whether the wireless network card end receives the data to be sent to the virtual machine; if the fact that the virtual machine has data to be sent to the wireless network card is monitored, the source mac address of the virtual machine is modified into the source mac address of the wireless network card, the 802.3 network protocol is converted into the 802.11 network protocol through the protocol conversion unit 33, and the data of the virtual machine is sent to the wireless network card through the 802.11 network protocol; if the wireless network card end receives the data to be sent to the virtual machine, the source mac address of the wireless network card is modified into the source mac address of the virtual machine, the 802.11 network protocol is converted into the 802.3 network protocol through the protocol conversion unit 33, and the network protocol of the wireless network card is sent to the virtual machine by utilizing the 802.3 network protocol, so that the non-perception bridging of the virtual machine and the wireless network card is realized, and the virtual machine can surf the internet.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A non-perception network bridging method based on a wireless network card is characterized by comprising the following steps:
installing a network protocol of a drive corresponding to the hybrid mode on a wireless network card of a windows system where the virtual machine is located;
monitoring whether the virtual machine has data to be sent to the wireless network card or not by using the driver, or whether the wireless network card end receives the data to be sent to the virtual machine or not;
and if the virtual machine or the wireless network card is monitored to have data to be sent through the driver, the data is sent to a receiver after a source address of a sender and a network protocol are converted according to set conditions.
2. The method of claim 1, wherein if the driver monitors that the virtual machine or the wireless network card has data to send, the driver converts a source address and a network protocol of a sender according to a set condition, and then sends the data to a receiver, the method comprises:
if the driver monitors that the virtual machine has data to be sent to the wireless network card, the source mac address of the virtual machine is modified into the source mac address of the wireless network card through the driver;
and if the wireless network card end receives the data to be sent to the virtual machine through the drive monitoring, modifying the source mac address of the wireless network card into the source mac address of the virtual machine through the drive.
3. The method for bridging a non-aware network according to claim 1 or 2, wherein if the driver monitors that the virtual machine or the wireless network card has data to send, the driver converts a source address of a sender and a network protocol installation setting condition and then sends the data to a receiver, and the method comprises the steps of:
and if the drive monitors that the virtual machine or the wireless network card has data to be sent, modifying the network protocol of a sender through an nwifi.
4. The unaware network bridging method of claim 3, wherein the step of modifying the network protocol of the sender through the nwifi.sys driver file of the windows system comprises:
if the driver monitors that the virtual machine has data to be sent to the wireless network card, the driver converts an 802.3 network protocol into an 802.11 network protocol through the nfi.sys driver file, and the 802.11 network protocol is used for sending the data to the wireless network card;
and if the wireless network card end receives the data to be sent to the virtual machine through the drive monitoring, converting the 802.11 network protocol into the 802.3 network protocol through the nwifi.sys drive file, and sending the data to the virtual machine by utilizing the 802.3 network protocol.
5. The unaware network bridging method of claim 4, wherein the step of sending the data to the virtual machine using the 802.3 network protocol is followed by:
and converting the source address of the wireless network card into the source address of the virtual machine through the driver so as to enable the virtual machine to receive the data.
6. The method according to claim 1, wherein the step of installing a driven network protocol corresponding to the promiscuous mode on a wireless network card of a windows system where the virtual machine is located comprises:
and installing a driver of a network protocol corresponding to a hybrid mode on a virtual network card of the windows system where the virtual machine is located, so as to install the network protocol on a wireless network card of the windows system.
7. The method according to claim 1, wherein the step of installing a driven network protocol corresponding to the promiscuous mode on a wireless network card of a windows system where the virtual machine is located comprises:
and installing a driving network protocol corresponding to the hybrid mode on a virtual network card of the same network segment of the virtual machine so as to install the network protocol on all the wireless network cards.
8. An unaware network bridging device based on wireless network card, wherein the unaware network bridging device comprises:
a virtual machine;
the protocol driving unit is connected with the virtual machine and used for installing a driven network protocol corresponding to a hybrid mode on the wireless network card and monitoring whether the virtual machine and the wireless network card have data to be sent or not by utilizing the driver;
the protocol conversion unit is connected with the protocol driving unit and is used for converting the source address of the sender and the network protocol according to set conditions;
a wireless interface receiving/transmitting unit for identifying data received or transmitted through the interface.
9. The wireless network card-based unaware network bridging device of claim 8, wherein said protocol driver unit is further configured to install the protocol corresponding to said promiscuous mode on all systems in the same network segment as said virtual machine.
10. The device of claim 8, wherein the protocol conversion unit is configured to convert a source mac address of the sender into a source mac address of the receiver and to control the inter-conversion between the 802.3 network protocol and the 802.11 network protocol.
CN202110246964.4A 2021-03-05 2021-03-05 Non-perception network bridging method and device based on wireless network card Active CN113055228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110246964.4A CN113055228B (en) 2021-03-05 2021-03-05 Non-perception network bridging method and device based on wireless network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110246964.4A CN113055228B (en) 2021-03-05 2021-03-05 Non-perception network bridging method and device based on wireless network card

Publications (2)

Publication Number Publication Date
CN113055228A true CN113055228A (en) 2021-06-29
CN113055228B CN113055228B (en) 2023-07-21

Family

ID=76510212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110246964.4A Active CN113055228B (en) 2021-03-05 2021-03-05 Non-perception network bridging method and device based on wireless network card

Country Status (1)

Country Link
CN (1) CN113055228B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595826A (en) * 2013-11-01 2014-02-19 国云科技股份有限公司 Method for preventing IP and MAC of virtual machine from being faked
US20140226659A1 (en) * 2013-02-13 2014-08-14 Red Hat Israel, Ltd. Systems and Methods for Ethernet Frame Translation to Internet Protocol over Infiniband
US20150055562A1 (en) * 2013-08-20 2015-02-26 Wilocity Ltd. Network device interface for supporting a plurality of network interface cards
CN108964959A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of network interface card direct communication system and data packet monitoring and managing method for virtual platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140226659A1 (en) * 2013-02-13 2014-08-14 Red Hat Israel, Ltd. Systems and Methods for Ethernet Frame Translation to Internet Protocol over Infiniband
US20150055562A1 (en) * 2013-08-20 2015-02-26 Wilocity Ltd. Network device interface for supporting a plurality of network interface cards
CN103595826A (en) * 2013-11-01 2014-02-19 国云科技股份有限公司 Method for preventing IP and MAC of virtual machine from being faked
CN108964959A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of network interface card direct communication system and data packet monitoring and managing method for virtual platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邹芳强等: "Linux下虚拟多网卡测试平台的实现", 《电脑知识与技术》, no. 25, 5 September 2009 (2009-09-05), pages 7284 - 7286 *

Also Published As

Publication number Publication date
CN113055228B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
US8769117B2 (en) Switching between connectivity types to maintain connectivity
EP1844402B1 (en) Techniques for migrating a point to point protocol to a protocol for an access network
US8856290B2 (en) Method and apparatus for exchanging configuration information in a wireless local area network
US8774183B2 (en) Relay device and method for connecting client apparatus with server
US20100290391A1 (en) Apparatus and method for accessing multiple wireless networks
CA2426240A1 (en) Method and system for simulating multiple independent client devices in a wired or wireless network
JP2007104440A (en) Packet transmission system, its method, and tunneling device
US6618386B1 (en) Hosting a cable modem in a computer using a virtual bridge
US20050083883A1 (en) Mobile network agent
CN113055228B (en) Non-perception network bridging method and device based on wireless network card
CN107566476B (en) Access method, SDN controller, forwarding equipment and user access system
TWI511496B (en) System of wireless communication, and method of management
EP2398192B1 (en) Home gateway virtual system and corresponding method
CN112905303B (en) Non-perception network bridging method and device based on wired network card
KR100778799B1 (en) Internet access method and system
JPS63146536A (en) Data communication system
KR100732970B1 (en) A method and apparatus of Mobile station connects with PC for wireless contents service
JP2004007375A (en) Communication repeater
CN115996234A (en) Control system, control method, and non-transitory computer-readable storage medium
JP2007104441A (en) Packet transmission system and its method
JPWO2003071748A1 (en) Device information notification system
KR19990086074A (en) Method and apparatus for converting communication protocol between host computer and branch processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant