CN113055228B - Non-perception network bridging method and device based on wireless network card - Google Patents

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

Info

Publication number
CN113055228B
CN113055228B CN202110246964.4A CN202110246964A CN113055228B CN 113055228 B CN113055228 B CN 113055228B CN 202110246964 A CN202110246964 A CN 202110246964A CN 113055228 B CN113055228 B CN 113055228B
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.)
Active
Application number
CN202110246964.4A
Other languages
Chinese (zh)
Other versions
CN113055228A (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

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 wireless network card-based non-perception network bridging method, which comprises the following steps: installing a driving network protocol 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 drive, or whether the wireless network card terminal receives the data to be sent to the virtual machine or not; if the virtual machine or the wireless network card is monitored to have data to be sent through the drive, after the source address and the network protocol of the sender are converted according to the set conditions, the data are sent to the receiver, the non-perception network bridging is established through the protocol drive based on the wireless network card in the windows kernel, and when the virtual machine carries out network transmission through the wireless network card of the host machine, the normal internet surfing function of the host machine is not affected, and the non-perception network data connection of the virtual machine is realized.

Description

Non-perception network bridging method and device based on wireless network card
Technical Field
The invention relates to the technical field of wireless communication, in particular to a non-perception network bridging method and device based on a wireless network card.
Background
Virtual machines refer to complete computer systems that run in a completely isolated environment with complete hardware system functionality through software emulation. Work that can be done in a physical computer can be done in a virtual machine. When creating a virtual machine in a computer, a part of hard disk and memory capacity of the physical machine are required to be used as the hard disk and memory capacity of the virtual machine. Each virtual machine has a separate CMOS, hard disk and operating system, and can operate as if it were a physical machine.
In a virtual machine based on windows qemu, there are two modes, namely a NAT (network address translation) mode, but the network access is realized by using the NAT mode, so that the unified planning of the IP addresses of a virtual network and a local area network is required, the method is realized by pure software, and the functions are not complete (for example, the icmp protocol is not supported and cannot be ping), so that most people can choose to use a bridging mode to realize the network access function of the virtual machine.
In the prior art, network bridging is generally performed by means of a TAP virtual network card and then by means of a method of creating a network bridge by windows so as to realize the surfing of a window qemu virtual machine, but the method often causes a break in the network or is unrecoverable after the break in practice, and is very risky to apply to products.
Disclosure of Invention
The application provides a non-perception network bridging method and device based on a wireless network card.
In order to solve the technical problem, a technical scheme adopted by the application is to provide a wireless network card-based sensorless network bridging method, which comprises the following steps: installing a driving network protocol 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 utilizing the drive, or whether the wireless network card terminal receives the data to be sent to the virtual machine or not; if the virtual machine or the wireless network card monitors data to be sent through the driver, the source address and the network protocol of the sender are converted according to set conditions, and then the data are sent to the receiver.
In an embodiment, if the driver monitors that the virtual machine or the wireless network card has data to be sent, the step of sending the data to the receiver after converting the source address and the network protocol of the sender 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 driver modifies the source mac address of the virtual machine into the source mac address of the wireless network card; and if the driver monitors that the wireless network card receives the data to be sent to the virtual machine, the driver modifies the source mac address of the wireless network card into the source mac address of the virtual machine.
In an embodiment, if the driver monitors that the virtual machine or the wireless network card has data to be sent, the step of sending the data to the receiver after converting the source address of the sender and the network protocol installation setting condition includes: and if the virtual machine or the wireless network card monitors data to be sent through the driver, modifying a network protocol of a sender through a nwifi.sys driver file of the windows system.
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, converting an 802.3 network protocol into an 802.11 network protocol through the nwifi.sys driver file, and sending the data to the wireless network card by utilizing the 802.11 network protocol; and if the wireless network card is monitored through the driver, receiving data to be sent to the virtual machine, converting an 802.11 network protocol into an 802.3 network protocol through the nwifi.sys driver file, and sending the data to the virtual machine by utilizing the 802.3 network protocol.
In an embodiment, the step of transmitting the data to the virtual machine using the 802.3 network protocol includes: and converting the source address of the wireless network card into the source address of the virtual machine through the driver so that the virtual machine receives the data.
In an embodiment, the step of installing the network protocol of the driver corresponding to the promiscuous mode on the wireless network card of the 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 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 the network protocol of the driver corresponding to the promiscuous mode on the wireless network card of the windows system where the virtual machine is located includes: and installing drivers of network protocols corresponding to the promiscuous mode on the virtual network cards of the same network segment of the virtual machine so as to install the network protocols on all the wireless network cards.
In order to solve the above technical problem, another technical solution adopted in the present application is to provide a wireless network card-based non-aware network bridging device, including: a virtual machine; the protocol driving unit is connected with the virtual machine and is used for installing a driving of a network protocol corresponding to the hybrid mode on the wireless network card and monitoring whether the virtual machine and the wireless network card have data to be transmitted or not by utilizing the driving; 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 receiving and transmitting unit is connected with the protocol driving unit and is used for identifying data received or transmitted through the interface.
In an embodiment, the protocol driving unit is further configured to install a protocol corresponding to the promiscuous mode on all systems in the same network segment as the virtual machine.
In an embodiment, the protocol conversion unit is configured to convert a source mac address of a sender into a source mac address of a receiver and control interconversion between the 802.3 network protocol and the 802.11 network protocol.
The beneficial effects of this application are: installing a driving network protocol 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 drive, or whether the wireless network card terminal receives the data to be sent to the virtual machine or not; if the virtual machine or the wireless network card is monitored to have data to be sent through the drive, after the source address and the network protocol of the sender are converted according to the set conditions, the data are sent to the receiver, the non-perception network bridging is established through the protocol drive based on the wireless network card in the windows kernel, and when the virtual machine carries out network transmission through the network card of the host machine, the normal internet surfing function of the host machine is not influenced, and the non-perception network bridging of the virtual machine is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an embodiment of a wireless network card-based non-aware network system of the present application;
FIG. 2 is a flow chart of an embodiment of a wireless network card-based network bridging method of the present application;
fig. 3 is a schematic structural diagram of an embodiment of a wireless network card-based network bridging device of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in 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 "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that the terms "comprises," "comprising," or any other variation thereof, 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 like 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. Since it has a mac address, it belongs to layer 2 of the OSI model. It enables users to connect important physical hardware to each other through cables or wirelessly. The computer hardware can be divided into a plurality of physical hardware in a computer so as to realize that the computer simultaneously comprises a plurality of internet physical hardware such as a wired network card, a wireless network card and the like. The network card 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.
The general non-perception authentication refers to that when a user uses a device to surf the internet, the user only needs to log in for the first time and needs to perform Web authentication, and when the user uses the device again, the user name password is not needed to be input, even if the user abnormally drops, for example: the terminal can automatically authenticate when the terminal is connected with the wired network again or enters the wireless network coverage area, so that the user can always be online. This process is done automatically by the system, without "perception" of the user. The non-perception network bridging in the application refers to 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 affected, so that the non-perception surfing of the host machine is realized.
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 workgroup, which defines the physical layer of wired ethernet and the medium access control (mac) of the data link layer. IEEE802.11 is a standard common to wireless local area networks today, which 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 local area networks can be connected through a network bridge, and the device is a store-and-forward device for realizing local area network interconnection at a link layer. Specifically, the bridge receives the mac frame from one lan, unpacks, collates, and verifies, reassembles it according to the format of the other lan, and sends it to its physical layer, namely, a connection formed by stringing several networks together by one device (possibly more than one), in this application, by the virtual network card, to bridge the network of the virtual machine with the network of the wireless network card.
The application provides a wireless network card-based non-perception network access system of a virtual machine, as shown in fig. 1, fig. 1 is a wireless network card-based non-perception network bridging method of the application, and the non-perception 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 promiscuous mode on a virtual network card of the windows system, and installing the driver of the network protocol corresponding to the promiscuous mode on the wireless network card through the data connection relation between the virtual network card and the wireless network card. In this step, the installation of the protocol driver may be automatically installed by the driver layer of the windows system. The method also comprises the following steps before the step: a virtualization scheme is established at an application layer of the windows system to form a virtual machine independent of the windows system.
In this step, the method further includes installing a driver of a network protocol corresponding to the promiscuous mode into a system of the same network segment, so that a virtual machine or an application program of the same network segment establishes connection with the wireless network card through the driver of the protocol, and the functions of receiving the data packet and transmitting the data packet are realized.
In this embodiment, a protocol connection is established between the virtual machine and the wireless network card by installing a network protocol of a driver corresponding to the promiscuous mode on the wireless network card, so as to realize network connection between the virtual machine and the internet.
Specifically, when a network protocol of a 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 the received data is sent to the virtual machine. It should be noted that, the promiscuous mode refers to that one machine can receive all data streams passing through it. In general, the network card only accepts the data from the network port with the destination address pointing to itself; when the network card works in the promiscuous mode, the network card captures all data from the interface and gives 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 drive, or whether the wireless network card terminal 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 by using the driver, and the data flow condition includes the size of the monitoring data packet and the information of the data frame. 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 terminal receives the data to be sent to the virtual machine. If the driver monitors the data flow, step S13 is performed.
Step S13: if the virtual machine or the wireless network card is monitored to have data to be sent through the drive, the data is sent to the receiving party after the source address of the sending party and the network protocol are converted according to the set condition.
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.
The 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; if the driver monitors that the wireless network card receives the data to be sent to the virtual machine, the driver modifies the source mac address of the wireless network card into the source mac address of the virtual machine.
The method further comprises the following steps: and if the virtual machine or the wireless network card is monitored to have data to be sent through the driver, modifying the network protocol of the sender through a nwifi.sys driver file of the windows system. 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 802.11 network protocol is utilized to send the data to the wireless network card; if the driver monitors that the wireless network card receives the data to be sent to the virtual machine, the 802.11 network protocol is converted into the 802.3 network protocol through the nwifi.sys driver file, and the 802.3 network protocol is utilized to send the data to the virtual machine.
In order to specifically illustrate the implementation process of the above embodiment, referring to fig. 2 specifically, fig. 2 is a schematic signal flow diagram of an embodiment of a wireless network card-based non-aware network system according to the present application; comprising the following steps: virtual machine 100, drive unit 200, protocol conversion unit 300, wireless network card 400, and external network card 500.
The virtual machine 100 transmits a 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 driving 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 wireless network card 400 is successfully installed, the method further comprises the step of sending the information of the successful installation to the virtual machine 100 through the driving unit 300. The virtual machine 100 listens for the data situation received or transmitted by the wireless network card 400 through the driving unit 200.
Specifically, if the driving unit 200 monitors that the virtual machine has data to be sent to the wireless network card, the driving unit 200 sends a packet of the virtual machine 100, the driving unit 200 modifies the source mac address of the virtual machine to the source mac address of the wireless network card, the protocol conversion unit 300 sends the source mac address of the modified data packet, the protocol conversion unit 300 converts the internet protocol standard of the data packet from 802.3 to 802.11, the wireless network card 400 sends the data packet with the source mac address and the internet protocol standard converted 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 the nwifi.sys driving 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 network data of the external network 500 or transmits network data to the external network 500. If the driver monitors that the wireless network card receives data to be sent to the virtual machine, 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 transmits 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, the converted data packet is transmitted 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 the converted data is transmitted to the virtual machine 100, so that the virtual machine 100 can receive the data transmitted by the wireless network card 400, the occurrence of packet loss is avoided, and no-sense bridging between the virtual machine 100 and the data transmission and reception of the wireless network card 400 is realized.
It should be noted that, in the present embodiment, the driving of the driving unit 200 and the protocol conversion operation of the protocol conversion unit 300 are automatically completed by software, and the driving of the driving unit 200 and the protocol conversion operation of the protocol conversion unit 300 may be completed on the virtual network card.
The system in this embodiment is a windows system. Before the wireless network card in the windows system is not in the perception bridging, a virtualization scheme is established in the windows system, wherein the virtualization scheme can be an application software interface and the like, in the embodiment, the virtualization scheme is a virtual machine 100, and the windows system is a host.
In another embodiment, the network protocol of the driver corresponding to the promiscuous mode is installed on the virtual network card of 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 of the same network segment can perform information interaction, and in the process of transmitting data, data transmission can be performed on other devices of 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 the present application is a network protocol corresponding to the promiscuous mode, and all data flowing through the network card installed with the network protocol will be acquired by the network card under the driving of the network protocol. In addition, the virtual machine 100 is a "computer" independent of the host machine, and is a virtual computer, which can implement all the functions of the physical computer, and the virtual machine 100 can also enable an application software.
The network bridging method in the application comprises an application layer, a driving 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 comprise the steps of 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 at the application layer, and the virtual machine itself may be an application software. The driving layer and the protocol layer are respectively corresponding 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 at the application layer, and are not specifically divided, but are finely divided into the driving layer and the protocol layer for specifically explaining the installation process of the virtual protocol in this embodiment, which is not limited herein.
In this embodiment, the internet protocol of the virtual machine 100 is installed on the wireless network card 400 through the driver, the network data of the wireless network card 400 is monitored through the driver, and the information interaction between the virtual machine 100 and the wireless network card 400 is realized through the driver, so as to realize the internet function of the virtual machine. Once the protocol is successfully installed, the virtual machine 100 monitors the network data on the wireless network card 400 through the driver, and obtains 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, converting the information of the data packet by driving to transmit the information to the virtual machine 100; if the virtual machine monitors that the data is to be sent out, the information of the data packet is converted into data which can be received by the wireless network card through driving, so as to be transmitted to the wireless network card 400. Data transmission is performed with the external network 500 through the wireless network card 400.
The beneficial effects of this embodiment are: installing a driving network protocol 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 drive, or whether the wireless network card terminal receives the data to be sent to the virtual machine or not; if the virtual machine or the wireless network card is monitored to have data to be sent through the drive, after the source address and the network protocol of the sender are converted according to the set conditions, the data are sent to the receiver, the data of the virtual machine can be sent to the wireless network card through the mode, the data of the wireless network card can also be received, the phenomenon of packet loss can not occur, the barrier-free network connection of the virtual machine and the wireless network card is realized, and on the other hand, the original internet function of the host machine can not be influenced through the network protocol of the drive corresponding to the hybrid mode is installed on the wireless network card of the host machine, so that the perception-free internet is realized.
The application further provides a wireless network card-based non-aware network bridging device, and referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of the wireless network card-based non-aware network bridging device. As shown in fig. 3, the wireless network card based non-aware network bridging device 30 includes: a virtual machine 31; the protocol driving unit 32 is connected with the virtual machine, and is used for installing a network protocol of a driver corresponding to the 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; 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 set conditions; a wireless interface transceiver unit 34, coupled to the protocol conversion unit, is used to identify data received or transmitted over the wireless interface. Specifically, in this embodiment, the specific process of the protocol driving unit 32 monitoring whether the virtual network card and the wireless network card have data to be sent by using the driving 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 terminal receives the data to be sent to the virtual machine; if the virtual machine is monitored to have data to be sent to the wireless network card, the source mac address of the virtual machine is modified to be 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 by utilizing the 802.11 network protocol; if 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 to be the source mac address of the virtual machine, the 802.11 network protocol is converted to the 802.3 network protocol through the protocol conversion unit 33, and the 802.3 network protocol is used for sending the network protocol of the wireless network card to the virtual machine. The protocol conversion unit 33 is configured to control the mutual conversion between the 802.3 network protocol and the 802.11 network protocol, and control the network transmission standard of the data packet to be changed to 802.11 when the virtual machine transmits data to the wireless network card, and control the network transmission standard of the data packet to be changed to 802.3 when the wireless network card transmits data to the virtual machine.
In another embodiment, the protocol driving unit 32 is configured to install the protocol corresponding to the promiscuous mode on all systems in the same network segment as the virtual machine. By the mode, the system in the same network segment with the virtual machine can also use the wireless network card to transmit data. Specifically, the same network segment means that the internet access IP address is in the same network segment.
In this embodiment, the wireless interface transceiver 34 is further connected to a wireless network card, and is configured to receive or transmit data or data packets circulated through the wireless network card. The method specifically comprises the following steps: and receiving the data request sent by the virtual machine, sending the data request to the Internet, receiving the data sent by the Internet and sending the data to the virtual machine. The wireless interface transceiver unit further stores the received data on the physical network card to form an internet record, which is not limited herein.
It should be noted that, in this embodiment, the virtual machine 31, the protocol driving unit 32, the protocol conversion unit 33, and the wireless interface receiving/transmitting unit 34 are virtual modules, which are implemented by a software application layer of the computer, and the above connection relationships are all signal coupling. The virtual machine 31, the protocol driving unit 32, the protocol conversion unit 33, and the wireless interface transmitting/receiving unit 34 in the present embodiment may be the same as or different from the virtual machine 100, the driving unit 200, and the protocol conversion unit 300 in the second embodiment, and are not limited herein.
The beneficial effects of this embodiment are: 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 terminal receives the data to be sent to the virtual machine; if the virtual machine is monitored to have data to be sent to the wireless network card, the source mac address of the virtual machine is modified to be 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 by utilizing the 802.11 network protocol; if 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 to be the source mac address of the virtual machine, the 802.11 network protocol is converted to the 802.3 network protocol through the protocol conversion unit 33, and the 802.3 network protocol is utilized to send the network protocol of the wireless network card to the virtual machine, so that the virtual machine and the wireless network card are connected in a bridging manner without perception, and the virtual machine can be connected to the Internet.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.

Claims (7)

1. The non-perception network bridging method based on the wireless network card is characterized by comprising the following steps of:
installing a driving network protocol 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 utilizing the drive, or whether the wireless network card terminal receives the data to be sent to the virtual machine or not;
if the virtual machine or the wireless network card is monitored to have data to be sent through the driver, the source address of a sender and a network protocol of the sender are converted according to a set condition through a nwifi.sys driver file of the windows system, and then the data are sent to a receiver; the method specifically comprises the following steps: if the driver monitors that the virtual machine has data to be sent to the wireless network card, converting an 802.3 network protocol into an 802.11 network protocol through the nwifi.sys driver file, and sending the data to the wireless network card by utilizing the 802.11 network protocol; and if the wireless network card is monitored through the driver, receiving data to be sent to the virtual machine, converting an 802.11 network protocol into an 802.3 network protocol through the nwifi.sys driver file, and sending the data to the virtual machine by utilizing the 802.3 network protocol.
2. The method of claim 1, wherein if the driver monitors that the virtual machine or the wireless network card has data to be transmitted, the step of transmitting the data to the receiver after converting the source address and the network protocol of the sender 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 driver modifies the source mac address of the virtual machine into the source mac address of the wireless network card;
and if the driver monitors that the wireless network card receives the data to be sent to the virtual machine, the driver modifies the source mac address of the wireless network card into the source mac address of the virtual machine.
3. The method of imperceptible network bridging according to claim 1, 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 that the virtual machine receives the data.
4. The method for bridging a non-aware network according to claim 1, wherein the step of installing the network protocol of the driver corresponding to the promiscuous mode on the wireless network card of the windows system where the virtual machine is located comprises:
and installing a driver of a network protocol corresponding to the 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.
5. The method for bridging a non-aware network according to claim 1, wherein the step of installing the network protocol of the driver corresponding to the promiscuous mode on the wireless network card of the windows system where the virtual machine is located comprises:
and installing the network protocol of the drive corresponding to the promiscuous mode on the 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.
6. A wireless network card-based non-aware network bridging device, the non-aware network bridging device comprising:
a virtual machine;
the protocol driving unit is connected with the virtual machine and is used for installing a driving network protocol corresponding to the hybrid mode on the wireless network card and monitoring whether the virtual machine and the wireless network card have data to be transmitted or not by utilizing the driving;
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; the method is particularly used for converting the source mac address of a sender into the source mac address of a receiver and controlling the mutual conversion of an 802.3 network protocol and an 802.11 network protocol;
and the wireless interface receiving/transmitting unit is used for identifying the data received or transmitted through the interface.
7. The wireless network card based non-aware network bridging device of claim 6, wherein 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.
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 CN113055228A (en) 2021-06-29
CN113055228B true 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)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9203750B2 (en) * 2013-02-13 2015-12-01 Red Hat Israel, Ltd. 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
CN103595826B (en) * 2013-11-01 2016-11-02 国云科技股份有限公司 A kind of method preventing virtual machine IP and MAC from forging
CN108964959B (en) * 2017-05-27 2022-02-25 阿里巴巴集团控股有限公司 Network card direct connection system for virtualization platform and data packet supervision method

Also Published As

Publication number Publication date
CN113055228A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
US8856290B2 (en) Method and apparatus for exchanging configuration information in a wireless local area network
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
US7768980B1 (en) Layer-2 IP networking method and apparatus for mobile hosts
US8665871B2 (en) Dynamic VLAN IP network entry
JP4038221B2 (en) Relay device and connection method between client device and server
US20110280175A1 (en) Wireless relay device
JP2007104440A (en) Packet transmission system, its method, and tunneling device
US20050083883A1 (en) Mobile network agent
CN113055228B (en) Non-perception network bridging method and device based on wireless network card
EP1633087B1 (en) Repeater apparatus for supporting a plurality of protocols, and a method for controlling proctocol conversion in the repeater apparatus
US20040172473A1 (en) Wireless modem simulation of a LAN card
CN112905303B (en) Non-perception network bridging method and device based on wired network card
CN107566476B (en) Access method, SDN controller, forwarding equipment and user access system
Cisco IBM Network Media Translation Commands
Cisco Virtual Templates for Protocol Translation
Cisco Virtual Templates for Protocol Translation
Cisco Virtual Templates for Protocol Translation
Cisco Virtual Templates for Protocol Translation
Cisco Virtual Templates for Protocol Translation
Cisco Virtual Templates for Protocol Translation
TWI511496B (en) System of wireless communication, and method of management
JPH09326810A (en) Connection changeover method on occurrence of fault
JP5162641B2 (en) Automatic configuration system for media adapter device and router device
US20060120402A1 (en) Method for running an X.25-based application on a second protocol-based network

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