WO2023185130A1 - 数据转发装置、方法、电子设备及存储介质 - Google Patents

数据转发装置、方法、电子设备及存储介质 Download PDF

Info

Publication number
WO2023185130A1
WO2023185130A1 PCT/CN2022/141434 CN2022141434W WO2023185130A1 WO 2023185130 A1 WO2023185130 A1 WO 2023185130A1 CN 2022141434 W CN2022141434 W CN 2022141434W WO 2023185130 A1 WO2023185130 A1 WO 2023185130A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
network
communication module
virtual network
network interface
Prior art date
Application number
PCT/CN2022/141434
Other languages
English (en)
French (fr)
Inventor
苟文君
Original Assignee
西安广和通无线软件有限公司
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 西安广和通无线软件有限公司 filed Critical 西安广和通无线软件有限公司
Publication of WO2023185130A1 publication Critical patent/WO2023185130A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access

Definitions

  • the present application relates to the field of computer technology, and in particular, to a data forwarding device, method, electronic equipment and storage medium.
  • the router can connect to the communication module (modem) through the universal serial bus (USB), and obtain the WAN network protocol (IP) address through dial-up to access the Internet.
  • the router can also be used as a gateway device to share the network with terminal devices through IP forwarding.
  • the terminal device can send data packets to the local area network (LAN) port of the router through a network cable or wireless network communication technology (such as WIFI). After receiving the data packet through the LAN port, the router processes and forwards the data packet, and forwards the data packet to the communication module through the wide area network (WAN) port.
  • LAN local area network
  • WIFI wireless network communication technology
  • a router can connect to multiple terminal devices. When multiple terminal devices require data transmission, the data transmission rate will be low.
  • a data forwarding device, method, electronic device and storage medium are provided.
  • embodiments of the present application provide a data forwarding device, including a communication module and a router.
  • the communication module supports multi-channel dialing.
  • the router includes a virtual network card and a network interface; the virtual network card and the network interface The interface is connected through a network bridge; the network interface is connected to the terminal device, and the virtual network card is connected to the communication module;
  • the network interface is used to receive the first data packet sent by the terminal device, and transmit the first data packet to the virtual network card through the network bridge;
  • the virtual network card is used to forward the first data packet to the communication module
  • the communication module is configured to forward the first data packet to a network device through a dial-up link corresponding to the virtual network card.
  • inventions of the present application provide a data forwarding method applied to a data forwarding device.
  • the data forwarding device includes a communication module and a router.
  • the communication module supports multi-channel dialing.
  • the router includes a virtual network card and a router.
  • a network interface, the virtual network card and the network interface are connected through a network bridge, the virtual network card is connected to the communication module, and the method includes:
  • the virtual network card forwards the first data packet to the communication module
  • the communication module forwards the first data packet to the network device through the dial-up link corresponding to the virtual network card.
  • embodiments of the present application provide a data forwarding method.
  • the method is applied to a router.
  • the router includes a virtual network card and a network interface.
  • the virtual network card and the network interface are connected through a network bridge; the method includes :
  • the virtual network card forwards the first data packet to the communication module.
  • the present application provides an electronic device.
  • the electronic device includes a processor.
  • the processor can be used to execute computer execution instructions stored in a memory, so as to implement the above second aspect or any possible implementation of the second aspect.
  • the method shown is executed, or the method shown is executed in such a way that the above third aspect or any possible implementation of the third aspect is executed.
  • the process of sending information in the above method can be understood as a process of outputting information based on instructions of the processor.
  • the processor In outputting information, the processor outputs the information to the transceiver for transmission by the transceiver. After the information is output by the processor, it may also undergo other processing before reaching the transceiver.
  • the processor receives incoming information
  • the transceiver receives the information and feeds it into the processor. Furthermore, after the transceiver receives the information, the information may need to undergo other processing before being input to the processor.
  • the above-mentioned processor may be a processor specifically designed to perform these methods, or may be a processor that executes computer instructions in a memory to perform these methods, such as a general-purpose processor.
  • the processor may also be used to execute a program stored in the memory.
  • the electronic device When the program is executed, the electronic device performs the method shown in the above second aspect or any possible implementation of the second aspect, or causes the The electronic device performs the method shown in the above third aspect or any possible implementation of the third aspect.
  • the memory is located outside the above-mentioned electronic device.
  • the memory is located within the above-mentioned electronic device.
  • the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.
  • the electronic device further includes a transceiver, and the transceiver is used to receive messages or send messages, etc.
  • the present application provides a computer-readable storage medium, which is used to store a computer program.
  • the computer-readable storage medium When run on a computer, the computer-readable storage medium enables the above-mentioned second aspect or any possible implementation of the second aspect.
  • the method shown is executed, or the method shown in the third aspect or any possible implementation of the third aspect is caused to be executed.
  • the present application provides a computer program product.
  • the computer program product includes a computer program or computer code.
  • the computer program product When run on a computer, the computer program product enables the above second aspect or any possible implementation of the second aspect.
  • the method is executed, or the method shown in the above third aspect or any possible implementation of the third aspect is executed.
  • this application provides a communication system.
  • the communication system includes a terminal device, a data forwarding device, and a network device.
  • the data forwarding device is configured to perform the above second aspect or any possible implementation manner of the second aspect.
  • Figure 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • Figure 2 is a schematic structural diagram of a data forwarding device provided by an embodiment of the present application.
  • Figure 3 is a schematic flow chart of a data forwarding method provided by an embodiment of the present application.
  • Figure 4 is a schematic flow chart of another data forwarding method provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of another communication system provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the terminal equipment in the embodiment of this application may refer to user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless Communication equipment, user agent or user device.
  • the terminal device can also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (personal digital assistant, PDA), or a device with wireless communication capabilities Handheld devices, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in future 5G networks or terminals in future evolved public land mobile communications networks (PLMN) Equipment, etc., the embodiments of this application are not limited to this.
  • PLMN public land mobile communications networks
  • the network device in the embodiment of this application may be a device used to communicate with a terminal device.
  • the network device may be an evolutionary base station (eNB or eNodeB) in the LTE system, or it may be a cloud wireless access network (cloud Radio access network (CRAN) scenario, or the network device can be a relay station, access point, vehicle-mounted device, wearable device, network device in the future 5G network or network device in the future evolved PLMN network, etc.
  • eNB evolutionary base station
  • CRAN cloud Radio access network
  • the embodiments of this application are not limiting.
  • Figure 1 is an example of a communication system.
  • the communication system includes a terminal device, a router and a communication module.
  • a router includes a LAN port, a central processing unit (CPU), and a WAN port.
  • the terminal device is connected to the LAN port, and the communication module is connected to the WAN port.
  • the terminal device can be connected to the LAN port through a network cable or WIFI, and the communication module can be connected to the WAN port through USB.
  • the terminal device sends the data packet to the LAN port of the router through the network cable or WIFI.
  • the router After the router receives the data packet sent by the terminal device through the LAN port, it can process and forward the data packet through the CPU, and forward the processed data packet to the communication module through the WAN port.
  • the LAN port After the LAN port receives a data packet, it transmits the data packet to the router's CPU.
  • the router's CPU processes the data packet.
  • the CPU transmits the processed data packet to the WAN port, and the WAN port transmits the data.
  • the packet is sent to the communication module.
  • the communication module After receiving the processed data packet, the communication module sends the processed data packet to the Internet.
  • the router is configured with a WAN protocol (Internet Protocol, IP) address.
  • IP Internet Protocol
  • the terminal device When the terminal device connects to the router, it can obtain the LAN IP address assigned by the router.
  • the terminal device encapsulates the data packet based on the LAN IP address, and the data packet sent by the terminal device to the router includes the LAN IP address.
  • the router After receiving the data packet sent by the terminal device, the router needs to unpack the data packet so that the router can obtain the destination IP address of the data packet.
  • the router uses the router's WAN IP address to encapsulate the data packet so that the data packet can be routed to the correct receiving end.
  • the above router can be connected to multiple terminal devices and receive data packets sent by multiple terminal devices.
  • the router unpacks and encapsulates data packets, it needs to be processed by the Transmission Control Protocol/Internet Protocol (TCP/IP) protocol stack.
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • the router receives a large number of data packets and needs to process multiple data packets, which puts a heavy burden on the router.
  • the transmission rate of data packets depends on the processing capabilities of the router and the bandwidth of the router. For example, when multiple terminal devices need to transmit data, the data transmission rate may not be high due to insufficient bandwidth of the router.
  • the transmission rate in the 4G communication system because the network transmission rate is not high, when multiple terminal devices perform data packet concurrency, the transmission rate is not high due to insufficient processing capabilities of the router. That is, in 4G In communication systems, the processing capabilities of routers have little impact on the data transmission rate.
  • the network transmission rate in the 5G communication system is greater than the network transmission rate in the 4G communication system. Therefore, in the 5G communication system, the data transmission rate is greatly affected by the processing capabilities of the router, which may cause problems due to insufficient processing capabilities of the router.
  • the data transfer rate is not high.
  • embodiments of the present application provide a data forwarding device, method, electronic device and storage medium, which can solve the problem of heavy burden on the router and low data transmission rate due to the processing capability of the router.
  • Figure 2 is a schematic structural diagram of a data forwarding device provided by an embodiment of the present application.
  • the data forwarding device 200 includes a communication module 210 and a router 220.
  • the router 220 includes a virtual network card 221 and a network interface 222.
  • the virtual network card 221 and the network interface 222 are connected through the network bridge 223, and the virtual network card 221 is connected to the communication module 210.
  • the network interface 222 is connected to the terminal device.
  • the network interface 222 is used to receive the first data packet sent by the terminal device and transmit the first data packet to the virtual network card 221 through the network bridge 223; the virtual network card 221 is used to transfer the first data packet to the virtual network card 221.
  • the first data packet is forwarded to the communication module 210; the communication module 210 is used to forward the first data packet to the network device through the dial-up link corresponding to the virtual network card.
  • the communication module 210 may include a modem.
  • the communication module 210 may be a Qualcomm 5G module SDX55 chip.
  • the above-mentioned network interface 222 may be an Ethernet port, a WiFi interface, a network cable interface, etc., such as a LAN port of a router.
  • the router 220 includes a physical network card, and the virtual network card 221 is virtualized from the physical network card.
  • the virtual network card 221 is any one of at least one virtual network card obtained by virtualizing the physical network card, and the virtual network card 221 can access the wide area network.
  • the network bridge 223 has the functions of data reception, address filtering and data forwarding, and is used to realize data exchange between the virtual network card 221 and the network interface 222.
  • the dial-up link is used to link the above-mentioned communication module 210 and network equipment, and realize data exchange between the communication module 210 and the network equipment.
  • the router 220 may include at least one virtual network card and at least one network interface.
  • the virtual network card 221 is one of the at least one virtual network card
  • the network interface 222 is one of the at least one network interface.
  • the network interface 222 may be connected to the terminal device to receive the first data packet sent by the terminal device.
  • the terminal device can be connected to the network interface 222 through a network cable or WIFI.
  • the network interface 222 may transmit the first data packet to the virtual network card 221 through the network bridge 223 .
  • the virtual network card 221 can forward the first data packet to the communication module 210 .
  • the communication module 210 can forward the first data packet to the network device through the dial-up link corresponding to the virtual network card 221.
  • the communication module 210 supports multi-way dialing and may include at least one dialing link.
  • the above-mentioned router 220 includes at least one virtual network card, and the at least one virtual network card respectively corresponds to the at least one dial-up link.
  • the above dial-up link may be a dial-up link corresponding to the virtual network card.
  • the virtual network card 221 can be bridged with the dial-up link through a network bridge. After receiving the first data packet, the virtual network card 221 can forward the first data packet to the dial-up link through the network bridge, and the dial-up link forwards the first data packet to the network device.
  • the virtual network card is connected to the network interface through a network bridge, and the virtual network card is bridged to the dial-up link through the network bridge, so that the terminal device can occupy a dial-up link and have a larger bandwidth, thereby improving the first The transmission rate of data packets.
  • the above-mentioned dial-up link can be a public data network (public data network, PDN) dial-up link, and the above-mentioned communication module supports multiple PDN dial-up.
  • PDN public data network
  • the router 220 and the communication module 210 may support the Qualcomm multiplexing and aggregation (QMAP) protocol.
  • QMAP Qualcomm multiplexing and aggregation
  • the router 220 and the communication module 210 can perform multi-channel dialing based on the QMAP protocol.
  • the router 220 can dial through AT (Attention) instructions or Qualcomm message interface (QMI).
  • the at least one virtual network card mentioned above can be configured in the QMI_WWAN driver of the router 220 .
  • AT commands are commands used for connection and communication between terminal equipment and computer applications.
  • the QMI_WWAN driver is a driver for the Qualcomm module on Linux. It is responsible for establishing the data path between the router 220 and the communication module 210 and supports QMI dial-up. For example, after the dial-up link is dialed, the router 220 can configure the WAN IP address to the virtual network card 221, establish a data path between the dial-up link and the virtual network card 221, and the virtual network card 221 can access the WAN.
  • the communication module supports multi-channel dialing
  • the router may include a virtual network card and a network interface, where the virtual network card and the network interface are connected through a network bridge.
  • the network interface After receiving the first data packet sent by the terminal device, the network interface forwards the first data packet to the virtual network card through the network bridge, and the virtual network card forwards the first data packet to the communication module, and the communication module passes the virtual network card The corresponding dial-up link forwards the first data packet to the network device.
  • the first data packet received by the network interface can be directly transmitted to the virtual network card, thereby increasing the transmission rate of the first data packet.
  • the first data packet includes a WAN network protocol IP address
  • the router 220 further includes an IP address allocation module 224;
  • the network interface 222 is also used to receive a connection request sent by the terminal device
  • the IP address allocation module 224 is used to allocate the wide area network IP address to the terminal device.
  • the WAN IP address is assigned by the router 220 to the terminal device when the terminal device accesses the router 220 .
  • the router 220 can allocate the WAN IP address to the terminal device, so that the terminal device can send and receive data packets based on the WAN IP address.
  • the terminal device encapsulates the data based on the WAN IP address to obtain the first data packet, and sends the first data packet to the network interface 222 .
  • Router 220 may receive the first data packet through network interface 222.
  • the terminal device may send a connection request to the router 220.
  • the terminal device may send a dialing request to the router 220 to obtain an IP address.
  • the router 220 When the router 220 receives the connection request from the terminal device through the network interface 222, it allocates the WAN IP address to the terminal device through the IP address allocation module 224, so that the terminal device can access the WAN based on the WAN IP address.
  • the IP address allocation module 224 includes a wide area network IP address set, and the IP address allocation module 224 can manage and allocate the wide area network IP addresses in the wide area network IP address set.
  • the WAN IP address mentioned above is any one of the unallocated WAN IP addresses.
  • the IP address allocation module 224 can send a dialing request to the communication module 210.
  • the dialing request is used to request the WAN IP address from the communication module 210 .
  • the communication module 210 sends a dialing request to the network device to obtain the WAN IP address from the network device.
  • the communication module 210 receives the WAN IP address returned by the network device, and forwards the WAN IP address to the IP address allocation module 224 . After receiving the WAN IP address forwarded by the image module, the IP address allocation module 224 allocates the WAN IP address to the terminal device so that the terminal device can connect to the network.
  • the above-mentioned communication module 210 can initiate a multi-channel dialing request to the network device to obtain multiple WAN IP addresses.
  • the IP address allocation module 224 can initiate a multi-channel dialing request when there is no unallocated WAN IP address in the above WAN IP address set.
  • the multi-channel dialing request is used to request multiple WAN IP addresses from the communication module 210 .
  • the communication module 210 After receiving the multi-channel dialing request, the communication module 210 initiates a multi-channel dialing request to the network device, obtains multiple WAN IP addresses, and returns the multiple WAN IP addresses to the IP address allocation module 224.
  • the IP address allocation module 224 receives the multiple wide area network IP addresses.
  • the IP address allocation module 224 can obtain multiple WAN IP addresses through multi-channel dialing requests, so that when the terminal device is connected, the WAN IP address can be quickly allocated to the corresponding terminal device without the need to frequently request the communication module. 210 sends a dialing request to improve the efficiency of wide area network IP address allocation, so that terminal equipment can quickly access the network, and also saves the resources occupied by the IP address allocation module 224 for multiple dialing requests.
  • the WAN IP addresses in the above WAN IP address set may be obtained in advance by the IP address allocation module 224.
  • the IP address allocation module 224 A multi-channel dialing request can be sent to the communication module 210 to obtain multiple WAN IP addresses, so that when a terminal device is connected, the WAN IP address can be quickly allocated to the terminal device.
  • the above-mentioned IP address allocation module 224 can send a dialing request to the communication module 210 through the communication module of the router 220 and receive the WAN IP address returned by the communication module 210.
  • the communication module can be integrated in the IP address allocation module 224, or can be integrated in the router 220 and connected to the IP address allocation module 224, which is not limited in this application.
  • the terminal device can be connected to the router through the network interface, and the terminal device can send a connection request to the router through the network interface, thereby accessing the router.
  • the above-mentioned data forwarding device receives the connection request sent by the terminal device through the network interface, it allocates the WAN IP address to the terminal device so that the terminal device can use the WAN IP address to send the first data packet.
  • the router After receiving the first data packet through the network interface, the router no longer needs to convert the IP address of the first data packet, so that the first data packet can be directly transmitted to the corresponding dial-up link bypassing the TCP/IP protocol stack, thus alleviating the This reduces the burden on the router's CPU and improves the transmission efficiency of the first data packet.
  • the communication module 210 is also configured to receive a second data packet sent by the network device through the dial-up link, and forward the second data packet to the virtual network card. 221;
  • the virtual network card 221 is also used to transmit the second data packet to the network interface 222 through the network bridge 223; the network interface 222 is also used to forward the second data packet to the Terminal Equipment.
  • the communication module 210 receives the second data packet through the dial-up link, determines that the second data packet is sent to the terminal device, and forwards the second data packet to the above-mentioned virtual network card 221.
  • the virtual network card 221 transmits the second data packet to the network interface 222 through the network bridge 223 .
  • the network interface 222 then forwards the second data packet to the terminal device, thereby completing the forwarding of the second data packet.
  • the above-mentioned second data packet may include the above-mentioned wide area network IP address.
  • the communication module 210 determines that the second data packet is sent to the terminal device through the wide area network IP address carried in the second data packet.
  • the dial-up link and the virtual network card are bridged through a network bridge.
  • the communication module 210 can directly forward the second data packet to the virtual network card 221 through the network bridge, thereby improving the transmission efficiency of the second data packet.
  • the virtual network card by bridging the virtual network card and the network interface, after receiving the second data packet forwarded by the communication module, the virtual network card can directly transmit the second data packet to the network interface through the network bridge, thereby improving The transmission efficiency of the second data packet.
  • Figure 3 is a schematic flowchart of a data forwarding method provided by an embodiment of the present application.
  • the data forwarding method is applied to a data forwarding device.
  • the data forwarding device includes a communication module and a router.
  • the communication module supports multi-channel dialing.
  • the router includes a virtual network card and a network interface.
  • the virtual network card is connected to the network.
  • the interface is connected through a network bridge, and the virtual network card is connected to the communication module.
  • the data forwarding method includes but is not limited to the following steps.
  • the virtual network card forwards the first data packet to the communication module.
  • the communication module forwards the first data packet to the network device through the dial-up link corresponding to the virtual network card.
  • the router may include multiple virtual network cards, and the virtual network card is one of the multiple virtual network cards.
  • the virtual network card and the network interface are bridged through a network bridge.
  • the terminal device is connected to the router through the network interface.
  • the router After receiving the first data packet sent by the terminal device through the network interface, the router transmits the first data packet to the virtual network card through the network bridge, and then the virtual network card forwards the first data packet to the communication module and the The dial-up link corresponding to the virtual network card forwards the first data packet to the network device through the dial-up link.
  • the virtual network card and the network interface are bridged through a network bridge. After receiving the first data packet sent by the terminal device, the network interface can directly transmit the first data packet to the virtual network card through the network bridge, thereby improving the second data packet. transmission efficiency.
  • the data forwarding method shown in Figure 3 may also include step 304, step 305 and step 306.
  • the virtual network card transmits the second data packet to the network interface through the network bridge.
  • the network interface forwards the second data packet to the terminal device.
  • the communication module after receiving the second data packet sent by the network device through the dial-up link, forwards the second data packet to the virtual network card, and the virtual network card then transmits the second data packet to the virtual network card through the network bridge.
  • the network interface forwards the second data packet to the terminal device.
  • FIG 4 is a schematic flowchart of a data forwarding method provided by an embodiment of the present application.
  • the data forwarding method is applied to a router.
  • the router includes a virtual network card and a network interface.
  • the virtual network card and the network interface are connected through a network bridge.
  • the data forwarding method includes but is not limited to the following steps.
  • the virtual network card forwards the first data packet to the communication module.
  • the router may include multiple virtual network cards, and the virtual network card is one of the multiple virtual network cards.
  • the virtual network card and the network interface are bridged through a network bridge.
  • the terminal device is connected to the router through the network interface.
  • the router After receiving the first data packet sent by the terminal device through the network interface, the router transmits the first data packet to the virtual network card through the network bridge, and then the virtual network card forwards the first data packet to the communication module.
  • the communication module forwards the first data packet to the network device.
  • the virtual network card and the network interface are bridged through a network bridge. After receiving the first data packet sent by the terminal device, the network interface can directly transmit the first data packet to the virtual network card through the network bridge, thereby improving the first data packet. transmission efficiency.
  • the first data packet includes a wide area network IP address.
  • the data forwarding method shown in Figure 4 may also include the following steps: :
  • the terminal device can be connected to the router through the network interface, and the terminal device can send a connection request to the router through the network interface, thereby accessing the router.
  • the router receives the connection request sent by the terminal device through the network interface, it allocates the WAN IP address to the terminal device so that the terminal device can use the WAN IP address to send the first data packet.
  • the router After receiving the first data packet through the network interface, the router no longer needs to convert the IP address of the first data packet, thereby reducing the burden on the router and improving the transmission efficiency of the first data packet.
  • the router includes a wide area network IP address set.
  • the data forwarding method shown in Figure 4 may further include the following steps:
  • the router when there is no unallocated WAN IP address in the WAN IP address set of the router, the router can send a dialing request to the communication module to obtain the WAN IP address, thereby ensuring that the terminal device can Or the virtual network card assigns a WAN IP address so that the terminal device can connect to the network.
  • the data forwarding method shown in Figure 4 may also include the following steps:
  • the virtual network card receives the second data packet sent by the communication module, and transmits the second data packet to the network interface through the network bridge.
  • the network interface forwards the second data packet to the terminal device.
  • the router can receive the second data packet sent by the communication module through the virtual network card, and then transmit the second data packet to the network interface through the network bridge, and the network interface forwards the second data packet to Terminal Equipment.
  • the virtual network card and the network interface are bridged through a network bridge. After receiving the second data packet forwarded by the communication module through the virtual network card, the second data packet can be directly transmitted to the network interface through the network bridge, thereby improving the second data packet. Data packet transmission efficiency.
  • Figure 5 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • the communication system 500 includes a data forwarding device 510 , a network device 520 and a terminal device 530 .
  • the data forwarding device 510 is used to forward the first data packet sent by the terminal device 530 to the network device 520 .
  • the data forwarding device 510 includes a communication module and a router.
  • the communication module supports multi-channel dialing.
  • the router includes a virtual network card and a network interface; the virtual network card and the network interface are connected through a network bridge; The network interface is connected to the terminal device, and the virtual network card is connected to the communication module;
  • the network interface is used to receive the first data packet sent by the terminal device 530, and transmit the first data packet to the virtual network card through the network bridge;
  • the virtual network card is used to forward the first data packet to the communication module
  • the communication module is configured to forward the first data packet to the network device 520 through the dial-up link corresponding to the virtual network card.
  • the communication module supports multi-channel dialing
  • the router may include a virtual network card and a network interface, where the virtual network card and the network interface are connected through a network bridge.
  • the network interface After receiving the first data packet sent by the terminal device, the network interface forwards the first data packet to the virtual network card through the network bridge, and the virtual network card forwards the first data packet to the communication module.
  • the communication module passes the virtual network card The corresponding dial-up link forwards the first data packet to the network device.
  • FIG. 6 is a schematic structural diagram of an electronic device 60 provided by an embodiment of the present application.
  • the electronic device 60 may include a memory 601 and a processor 602 .
  • a communication interface 603 and a bus 604 may also be included, wherein the memory 601, the processor 602 and the communication interface 603 implement communication connections with each other through the bus 604.
  • the memory 601 is used to provide storage space, and data such as operating systems and computer programs can be stored in the storage space.
  • Memory 601 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or Portable read-only memory (compact disc read-only memory, CD-ROM).
  • the processor 602 is a module that performs arithmetic operations and logical operations, and can be a processing module such as a central processing unit (CPU), a graphics processor (GPU) or a microprocessor (microprocessor unit, MPU). one or a combination of multiple.
  • a processing module such as a central processing unit (CPU), a graphics processor (GPU) or a microprocessor (microprocessor unit, MPU). one or a combination of multiple.
  • a computer program is stored in the memory 601, and the processor 602 calls the computer program stored in the memory 601 to execute the above-mentioned data forwarding method shown in Figure 3 or Figure 4.
  • the processor 602 calls the computer program stored in the memory 601, and can also be used to execute the method steps executed by each unit in the data forwarding device 200 shown in Figure 2.
  • the processor 602 calls the computer program stored in the memory 601, and can also be used to execute the method steps executed by each unit in the data forwarding device 200 shown in Figure 2.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the computer program is run on one or more processors, the above-mentioned FIG. 3 or FIG. 4 can be implemented. method shown.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product is run on a processor, the method shown in Figure 3 or Figure 4 can be implemented.
  • An embodiment of the present application also provides a chip.
  • the chip includes a processor and a communication interface.
  • the processor is used to call and run instructions from the communication interface. When the processor executes the instructions, the above-mentioned Figure 3 or Figure 3 can be realized. The method shown in 4.
  • the embodiment of the present application also provides a system, which includes at least one data forwarding device 200 or electronic device 60 or chip as described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请涉及一种数据转发装置、方法、电子设备及存储介质。该数据转发装置包括通信模组和路由器,通信模组支持多路拨号,路由器包括虚拟网卡和网络接口,虚拟网卡与网络接口通过网桥连接,虚拟网卡与所述通信模组连接;网络接口用于接收终端设备发送的第一数据包,并通过网桥将第一数据包传输至虚拟网卡;虚拟网卡用于将第一数据包转发至通信模组;通信模组用于通过虚拟网卡对应的拨号链路将第一数据包转发至网络设备。

Description

数据转发装置、方法、电子设备及存储介质
本申请要求于2022年03月29日提交中国专利局、申请号为202210322057.8、申请名称为“数据转发装置、方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种数据转发装置、方法、电子设备及存储介质。
背景技术
在通信系统中,路由器可以通过通用串行总线(universal serial bus,USB)连接通信模组(modem),并通过拨号的方式获取广域网网络协议(internet protocol,IP)地址进行上网。路由器还可以作为网关设备,通过IP转发的方式将网络共享给终端设备。
终端设备可以通过网线或者无线网络通信技术(如WIFI)将数据包发送到路由器的局域网(local area network,LAN)端口。路由器通过LAN端口接收到该数据包之后,对该数据包进行处理和转发,并通过广域网(wide area network,WAN)端口将该数据包转发给通信模组。
一般地,路由器可以连接多个终端设备,当有多个终端设备需要数据传输时,会导致数据的传输速率低。
发明内容
根据本申请的各种实施例,提供一种数据转发装置、方法、电子设备及存储介质。
第一方面,本申请实施例提供一种数据转发装置,包括通信模组和路由器,所述通信模组支持多路拨号,所述路由器包括虚拟网卡和网络接口;所述虚拟网卡与所述网络接口通过网桥连接;所述网络接口与终端设备连接,所述虚拟网卡与所述通信模组连接;
所述网络接口用于接收终端设备发送的第一数据包,并通过所述网桥将所述第一数据包传输至所述虚拟网卡;
所述虚拟网卡用于将所述第一数据包转发至所述通信模组;
所述通信模组用于通过所述虚拟网卡对应的拨号链路将所述第一数据包转发至网络设备。
第二方面,本申请实施例提供一种数据转发方法,应用于数据转发装置,所述数据转发装置包括通信模组和路由器,所述通信模组支持多路拨号,所述路由器包括虚拟网卡和网络接口,所述虚拟网卡与所述网络接口通过网桥连接,所述虚拟网卡与所述通信模组连接,所述方法包括:
通过所述网络接口接收终端设备发送的第一数据包,通过所述网桥将所述第一数据包传输至所述虚拟网卡;
所述虚拟网卡将所述第一数据包转发至通信模组;
所述通信模组通过所述虚拟网卡对应的拨号链路将所述第一数据包转发至网络设备。
第三方面,本申请实施例提供一种数据转发方法,所述方法应用于路由器,所述路由器包括虚拟网卡和网络接口,所述虚拟网卡与所述网络接口通过网桥连接;所述方法包括:
通过网络接口接收终端设备发送的第一数据包,通过所述网桥将所述第一数据包传输至 所述虚拟网卡;
所述虚拟网卡将所述第一数据包转发至通信模组。
第四方面,本申请提供一种电子设备,该电子设备包括处理器,该处理器可以用于执行存储器所存储的计算机执行指令,以使上述第二方面或第二方面的任意可能的实现方式所示的方法被执行,或者以使上述第三方面或第三方面的任意可能的实现方式所示的方法被执行。
本申请实施例中,在执行上述方法的过程中,上述方法中有关发送信息的过程,可以理解为基于处理器的指令进行输出信息的过程。在输出信息时,处理器将信息输出给收发器,以便由收发器进行发射。该信息在由处理器输出之后,还可能进行其他的处理,然后到达收发器。类似的,处理器接收输入的信息时,收发器接收该信息,并将其输入处理器。更进一步的,在收发器收到该信息之后,该信息可能需要进行其他的处理,然后才输入处理器。
对于处理器所涉及的发送和/或接收等操作,如果没有特殊说明,或者,如果未与其在相关描述中的实际作用或者内在逻辑相抵触,则可以一般性的理解为基于处理器的指令输出。
在实现过程中,上述处理器可以是专门用于执行这些方法的处理器,也可以是执行存储器中的计算机指令来执行这些方法的处理器,例如通用处理器等。例如,处理器还可以用于执行存储器中存储的程序,当该程序被执行时,使得该电子设备执行如上述第二方面或第二方面的任意可能的实现方式所示的方法,或者使得该电子设备执行如上述第三方面或第三方面的任意可能的实现方式所示的方法。
在一种可能的实现方式中,存储器位于上述电子设备之外。
在一种可能的实现方式中,存储器位于上述电子设备之内。
本申请实施例中,处理器和存储器还可能集成于一个器件中,即处理器和存储器还可能被集成于一起。
在一种可能的实现方式中,电子设备还包括收发器,该收发器,用于接收报文或发送报文等。
第五方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质用于存储计算机程序,当其在计算机上运行时,使得上述第二方面或第二方面的任意可能的实现方式所示的方法被执行,或者使得上述第三方面或第三方面的任意可能的实现方式所示的方法被执行。
第六方面,本申请提供一种计算机程序产品,该计算机程序产品包括计算机程序或计算机代码,当其在计算机上运行时,使得上述第二方面或第二方面的任意可能的实现方式所示的方法被执行,或者使得上述第三方面或第三方面的任意可能的实现方式所示的方法被执行。
第七方面,本申请提供一种通信系统,通信系统包括终端设备、数据转发装置以及网络设备。所述数据转发装置用于执行上述第二方面或第二方面任意可能的实现方式。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种通信系统的结构示意图;
图2为本申请实施例提供的一种数据转发装置的结构示意图;
图3为本申请实施例提供的一种数据转发方法的流程示意图;
图4为本申请实施例提供的另一种数据转发方法的流程示意图;
图5为本申请实施例提供的另一种通信系统的结构示意图;
图6为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。附图中给出了本申请的较佳实施方式。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施方式。相反地,提供这些实施方式的目的是使对本申请的公开内容理解的更加透彻全面。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施方式的目的,不是旨在于限制本申请。
本申请实施例中的终端设备可以指用户设备(user equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。终端设备还可以是蜂窝电话、无绳电话、会话启动协议(session initiationprotocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,未来5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请实施例对此并不限定。
本申请实施例中的网络设备可以是用于与终端设备通信的设备,该网络设备可以是LTE系统中的演进型基站(evolutional nodeB,eNB或eNodeB),还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器,或者该网络设备可以为中继站、接入点、车载设备、可穿戴设备以及未来5G网络中的网络设备或者未来演进的PLMN网络中的网络设备等,本申请实施例并不限定。
图1为一种通信系统的示例,如图1所示,该通信系统包括终端设备、路由器以及通信模组。路由器包括LAN端口、中央处理器(central processing unit,CPU)和WAN端口。终端设备与该LAN端口连接,通信模组与该WAN端口连接。例如,终端设备可以通过网线或WIFI与该LAN端口连接,通信模组可以通过USB与该WAN端口连接。终端设备通过网线或WIFI将数据包发送到路由器的LAN端口。路由器通过该LAN端口接收到终端设备发送的数据包之后,可以通过CPU对该数据包进行处理和转发,并通过WAN端口将处理后的数据包转发至通信模组。例如,LAN端口接收到数据包之后,将该数据包传输至路由器的CPU,由路由器的CPU对该数据包进行处理,CPU将处理后的数据包传输至WAN端口,由该WAN端口将该数据包发送至通信模组。通信模组接收到该处理后的数据包之后,将该处理后的数 据包发送至因特网(internet)。
示例性地,路由器上配置有广域网网络协议(Internet Protocol,IP)地址。终端设备在接入该路由器时,可以获取到路由器分配的局域网IP地址。终端设备基于该局域网IP地址对数据包进行封装,终端设备向路由器发送的数据包中包括该局域网IP地址。路由器在接收到终端设备发送的数据包之后,需要对该数据包进行解包,以便于路由器可以获取到该数据包的目的IP地址。路由器获取到该数据包的目的IP地址之后,利用该路由器的广域网IP地址对该数据包进行封装,以便于该数据包可以路由到正确的接收端。
可理解,上述路由器可以与多个终端设备连接,接收多个终端设备发送的数据包。路由器对数据包的解包与封装的过程中,需要经过传输控制协议/网际协议(transmission control protocol/internet protocol,TCP/IP)协议栈处理。在有多个终端设备进行数据包并发的情况下,路由器接收到大量数据包,需要对多个数据包进行处理,使得路由器的负担重。在该通信系统中,数据包的传输速率依赖于路由器的处理能力以及路由器的带宽。例如在多个终端设备需要传输数据的情况下,会因为路由器的带宽不足而导致数据传输速率不高。例如,在4G通信系统中,由于网络传输速率不高,因此在多个终端设备进行数据包并发的情况下不会发生因路由器的处理能力不足而导致的传输速率不高的情况,即在4G通信系统中,路由器的处理能力对数据传输速率的影响较小。而5G通信系统中的网络传输速率大于4G通信系统中的网络传输速率,因此在5G通信系统,数据的传输速率受到路由器的处理能力的影响较大,可能会出现因路由器的处理能力不足而导致的数据传输速率不高的情况。
基于此,本申请实施例提供一种数据转发装置、方法、电子设备及存储介质,能够解决路由器的负担重,以及由于路由器的处理能力而导致的数据传输速率不高的问题。
请参见图2,图2为本申请实施例提供的一种数据转发装置的结构示意图。如图2所示,该数据转发装置200包括通信模组210和路由器220,路由器220包括虚拟网卡221和网络接口222。其中,虚拟网卡221与网络接口222通过网桥223连接,虚拟网卡221与通信模组210连接。
其中,网络接口222与终端设备连接,网络接口222用于接收该终端设备发送的第一数据包,并通过网桥223将该第一数据包传输至虚拟网卡221;虚拟网卡221用于将所述第一数据包转发至所述通信模组210;所述通信模组210用于通过所述虚拟网卡对应的拨号链路将所述第一数据包转发至网络设备。
示例性地,上述通信模组210可以包括调制解调器,例如该通信模组210可以为高通5G模组SDX55芯片。上述网络接口222可以为以太网口、WiFi接口、网线接口等,例如路由器的LAN端口。上述路由器220包括一个物理网卡,上述虚拟网卡221是由该物理网卡虚拟化得到的。虚拟网卡221是由该物理网卡虚拟化得到的至少一个虚拟网卡中的任一个,该虚拟网卡221可以访问到广域网。该网桥223具有数据接收、地址过滤与数据转发的功能,用于实现虚拟网卡221和网络接口222之间的数据交换。该拨号链路用于链路上述通信模组210和网络设备,并实现该通信模组210与网络设备之间的数据交换。
示例性地,上述路由器220可以包括至少一个虚拟网卡与至少一个网络接口,上述虚拟网卡221是该至少一个虚拟网卡中的一个,上述网络接口222是该至少一个网络接口中的一个。网络接口222可以与终端设备连接,以便于接收终端设备发送的第一数据包。例如,终端设备可以通过网线或者WIFI与该网络接口222连接。网络接口222在将接收到终端设备发送的第一数据包之后,可以通过网桥223将该第一数据包传输至虚拟网卡221。虚拟网卡221接收到该第一数据包之后可以将该第一数据包转发至通信模组210。通信模组210接收到 该第一数据包之后可以通过该虚拟网卡221对应的拨号链路将该第一数据包转发至网络设备。
示例性地,通信模组210支持多路拨号,可以包括至少一个拨号链路。上述路由器220包括至少一个虚拟网卡,该至少一个虚拟网卡分别与该至少一个拨号链路对应。上述拨号链路可以为与虚拟网卡相对应的拨号链路。例如,该虚拟网卡221可以与该拨号链路通过网桥桥接。虚拟网卡221在将接收到第一数据包之后,可以通过该网桥将该第一数据包转发至该拨号链路,由该拨号链路将该第一数据包转发至网络设备。本申请实施例中,通过网桥将虚拟网卡与网络接口桥接,通过网桥将虚拟网卡与拨号链路桥接,使得终端设备可以占用一个拨号链路,拥有更大的带宽,从而提高该第一数据包的传输速率。
示例性地,上述拨号链路可以为公用数据网(public data network,PDN)拨号链路,上述通信模组支持多PDN拨号。
示例性地,路由器220和通信模组210可以支持高通多路复用和聚合(qualcomm multiplexing and aggregation,QMAP)协议。路由器220和通信模组210可以基于该QMAP协议进行多路拨号。
示例性地,路由器220可以通过AT(Attention)指令或者高通消息接口(qualcomm message interface,QMI)的方式进行拨号,上述至少一个虚拟网卡可以配置在路由器220的QMI_WWAN驱动中。AT指令是应用于终端设备与计算机应用之间的连接与通信的指令。QMI_WWAN驱动是Linux上高通模块的驱动程序,负责路由器220与通信模组210之间数据通路的建立,支持QMI拨号。示例性地,上述拨号链路拨号后,路由器220可以将广域网IP地址配置到虚拟网卡221上,建立该拨号链路与虚拟网卡221之间的数据通路,该虚拟网卡221可以访问到广域网。
本申请实施例中,通信模组支持多路拨号,路由器可以包括虚拟网卡与网络接口,其中虚拟网卡与网络接口通过网桥连接。网络接口在接收到终端设备发送的第一数据包之后,通过网桥将该第一数据包转发至虚拟网卡,虚拟网卡再将该第一数据包转发至通信模组,通信模组通过虚拟网卡对应的拨号链路将该第一数据包转发至网络设备。通过将虚拟网卡与网络接口桥接,使得网络接口接收到的第一数据包可以直接传输到虚拟网卡,从而提高该第一数据包的传输速率。
在一种可能的实施方式中,所述第一数据包包括广域网网络协议IP地址,所述路由器220还包括IP地址分配模块224;
所述网络接口222还用于接收所述终端设备发送的连接请求;
所述IP地址分配模块224用于将所述广域网IP地址分配至所述终端设备。
示例性地,该广域网IP地址为终端设备在接入该路由器220时路由器220为终端设备分配的。在终端设备接入该路由器220时,路由器220可以为该终端设备分配该广域网IP地址,使得终端设备可以基于该广域网IP地址进行数据包的发送和接收。终端设备基于该广域网IP地址将数据进行封装得到上述第一数据包,并将该第一数据包发送至网络接口222。路由器220可以通过网络接口222接收该第一数据包。
示例性地,在终端设备接入路由器220时,终端设备可以向路由器220发送连接请求。例如,终端设备可以向路由器220发送拨号请求,以获取IP地址。
路由器220在通过网络接口222接收到终端设备的连接请求的情况下,通过IP地址分配模块224将广域网IP地址分配至终端设备,以便于终端设备可以基于该广域网IP地址接入到广域网。
示例性地,IP地址分配模块224中包括广域网IP地址集合,IP地址分配模块224可以 对广域网IP地址集合中的广域网IP地址进行管理和分配。在广域网IP地址集合中存在未分配的广域网IP地址的情况下,上述广域网IP地址为该未分配的广域网IP地址中的任一个。
示例性地,网络接口222接收到终端设备发送的连接请求之后,若上述广域网IP地址集合中不存在未分配的广域网IP地址,上述IP地址分配模块224可以向通信模组210发送拨号请求,该拨号请求用于向该通信模组210请求广域网IP地址。通信模组210在接收到该拨号请求后,向网络设备发送拨号请求,以向网络设备获取广域网IP地址。
通信模组210接收网络设备返回的广域网IP地址,并将该广域网IP地址转发至该IP地址分配模块224。IP地址分配模块224接收图像模组转发的广域网IP地址后,将该广域网IP地址分配至终端设备,使得终端设备能够连接到网络。
示例性地,上述通信模组210可以向网络设备发起多路拨号请求,以获取多个广域网IP地址。
可选地,IP地址分配模块224在上述广域网IP地址集合中不存在未分配的情况下,可以发起多路拨号请求,该多路拨号请求用于向通信模组210请求多个广域网IP地址。通信模组210接收到该多路拨号请求之后,向网络设备发起多路拨号请求,获取多个广域网IP地址,并该多个广域网IP地址返回至IP地址分配模块224。相应的,IP地址分配模块224接收该多个广域网IP地址。IP地址分配模块224可以通过多路拨号请求,获取多个广域网IP地址,以便于在终端设备接入时可以快速地将广域网IP地址分配到对应的终端设备上,而无需频繁地向通信模组210发送拨号请求,提高广域网IP地址分配的效率,使得终端设备可以快速接入网络,同时也节省了IP地址分配模块224多次发起拨号请求所占用的资源。
可理解,上述广域网IP地址集合中的广域网IP地址可以是IP地址分配模块224预先获取到的,例如,路由器220在连接到通信模组210时,或者路由器220在开机时,IP地址分配模块224可以向通信模组210发送多路拨号请求,获取多个广域网IP地址,以便于在有终端设备接入时能够快速地为该终端设备分配广域网IP地址。
可理解,上述IP地址分配模块224可以通过路由器220的通信模块向通信模组210发送拨号请求以及接收通信模组210返回的广域网IP地址。该通信模块可以集成于该IP地址分配模块224中,也可以集成于路由器220中并与该IP地址分配模块224连接,本申请不做限定。
本申请实施例中,终端设备可以通过该网络接口与路由器连接,终端设备可以通过网络接口向路由器发送连接请求,从而接入到该路由器。上述数据转发装置通过网络接口接收到终端设备发送的连接请求的情况下,将广域网IP地址分配至终端设备,使得该终端设备可以利用该广域网IP地址发送该第一数据包。路由器通过网络接口接收到该第一数据包后无需再对第一数据包进行IP地址的转换,使得第一数据包可以绕过TCP/IP协议栈直接传输到对应的拨号链路,从而减轻了路由器CPU的负担,提高该第一数据包的传输效率。
在一种可能的实现方式中,所述通信模组210还用于通过所述拨号链路接收所述网络设备发送的第二数据包,以及将所述第二数据包转发至所述虚拟网卡221;所述虚拟网卡221还用于通过所述网桥223将所述第二数据包传输至所述网络接口222;所述网络接口222还用于将所述第二数据包转发至所述终端设备。
示例性地,通信模组210通过拨号链路接收到第二数据包,确定该第二数据包发往终端设备,并将该第二数据包转发至上述虚拟网卡221。虚拟网卡221接收该第二数据包后,通过网桥223将该第二数据包传输至网络接口222。网络接口222再将该第二数据包转发至终端设备,从而完成第二数据包的转发。
示例性地,上述第二数据包可以包括上述广域网IP地址。通信模组210通过该第二数据包携带的广域网IP地址确定该第二数据包发往终端设备。
在一些实现方式中,拨号链路与虚拟网卡通过网桥桥接。通信模组210通过拨号链路接收到该第二数据包之后,可以直接通过网桥将该第二数据包转发至虚拟网卡221,从而提高第二数据包的传输效率。
本申请实施例中,通过将虚拟网卡与网络接口桥接,虚拟网卡在接收到通信模组转发的第二数据包之后,可以直接通过网桥将该第二数据包传输至该网络接口,从而提高该第二数据包的传输效率。
请参见图3,图3为本申请实施例提供的一种数据转发方法的流程示意图。该数据转发方法应用于数据转发装置,所述数据转发装置包括通信模组和路由器,所述通信模组支持多路拨号,所述路由器包括虚拟网卡和网络接口,所述虚拟网卡与所述网络接口通过网桥连接,所述虚拟网卡与所述通信模组连接。如图3所示,该数据转发方法包括但不限于如下步骤。
301,通过网络接口接收终端设备发送的第一数据包,通过网桥将第一数据包传输至虚拟网卡。
302,虚拟网卡将第一数据包转发至通信模组。
303,通信模组通过虚拟网卡对应的拨号链路将第一数据包转发至网络设备。
可理解,关于上述网络接口、虚拟网卡、第一数据包、网桥以及拨号链路的具体说明可以参见上文,这里不再详述。
本申请实施例中,路由器可以包括多个虚拟网卡,上述虚拟网卡为该多个虚拟网卡中的一个,虚拟网卡与网络接口通过网桥桥接。终端设备通过网络接口与路由器连接。路由器在通过网络接口接收到终端设备发送的第一数据包之后,通过该网桥将该第一数据包传输中虚拟网卡,再由虚拟网卡将该第一数据包转发至通信模组中与该虚拟网卡对应的拨号链路,由该拨号链路将该第一数据包转发至网络设备。通过网桥将虚拟网卡与网络接口桥接,网络接口在接收到终端设备发送的第一数据包之后,可以直接通过网桥将该第一数据包传输至该虚拟网卡,从而提高该第二数据包的传输效率。
在一种可能的实现方式中,图3所示的数据转发方法还可以包括步骤304,步骤305以及步骤306。
304,通过拨号链路接收网络设备发送的第二数据包,以及将第二数据包转发至虚拟网卡。
305,虚拟网卡通过网桥将第二数据包传输至网络接口。
306,网络接口将第二数据包转发至终端设备。
本申请实施例中,通信模组通过拨号链路接收到网络设备发送的第二数据包之后,将该第二数据包转发至虚拟网卡,虚拟网卡再通过网桥将该第二数据包传输至网络接口,由该网络接口将该第二数据包转发至终端设备。通过将虚拟网卡与网络接口桥接,虚拟网卡在接收到通信模组转发的第二数据包之后,可以直接通过网桥将该第二数据包传输至该网络接口,从而提高该第二数据包的传输效率。
请参见图4,图4为本申请实施例提供的一种数据转发方法的流程示意图。该数据转发方法应用于路由器,所述路由器包括虚拟网卡和网络接口,所述虚拟网卡与所述网络接口通过网桥连接。如图4所示,该数据转发方法包括但不限于如下步骤。
401,通过网络接口接收终端设备发送的第一数据包,通过网桥将第一数据包传输至虚拟网卡。
402,虚拟网卡将第一数据包转发至通信模组。
可理解,关于上述网络接口、虚拟网卡、第一数据包以及网桥的具体说明可以参见上文,这里不再详述。
本申请实施例中,路由器可以包括多个虚拟网卡,上述虚拟网卡为该多个虚拟网卡中的一个,虚拟网卡与网络接口通过网桥桥接。终端设备通过网络接口与路由器连接。路由器在通过网络接口接收到终端设备发送的第一数据包之后,通过该网桥将该第一数据包传输中虚拟网卡,再由虚拟网卡将该第一数据包转发至通信模组,由该通信模块将该第一数据包转发至网络设备。通过网桥将虚拟网卡与网络接口桥接,网络接口在接收到终端设备发送的第一数据包之后,可以直接通过网桥将该第一数据包传输至该虚拟网卡,从而提高该第一数据包的传输效率。
在一种可能的实现方式中,所述第一数据包包括广域网IP地址,在所述通过网络接口接收终端设备发送的第一数据包之前,图4所示的数据转发方法还可以包括如下步骤:
通过所述网络接口接收所述终端设备发送的连接请求;
将所述广域网IP地址分配至所述终端设备。
本申请实施例中,终端设备可以通过该网络接口与路由器连接,终端设备可以通过网络接口向路由器发送连接请求,从而接入到该路由器。路由器通过网络接口接收到终端设备发送的连接请求的情况下,将广域网IP地址分配至终端设备,使得该终端设备可以利用该广域网IP地址发送该第一数据包。路由器通过网络接口接收到该第一数据包后无需再对第一数据包进行IP地址的转换,从而减轻了路由器的负担,提供该第一数据包的传输效率。
在一种可能的实现方式中,上述路由器包括广域网IP地址集合,所述通过所述网络接口接收所述终端设备发送的连接请求之后,图4所示的数据转发方法还可以包括如下步骤:
在所述广域网IP地址集合中不存在未分配的广域网IP地址的情况下,向所述通信模组发送拨号请求,所述拨号请求用于向所述通信模组请求所述广域网IP地址;
接收所述通信模组返回的所述广域网IP地址。
本申请实施例中,在路由器的广域网IP地址集合中不存在未分配的广域网IP地址的情况下,路由器可以向通信模组发送拨号请求,以获取到广域网IP地址,从而保证能够为该终端设备或虚拟网卡分配广域网IP地址,使得该终端设备能够连接到网络。
在一种可能的实现方式中,图4所示的数据转发方法还可以包括如下步骤:
403,虚拟网卡接收通信模组发送的第二数据包,并通过网桥将第二数据包传输至网络接口。
404,网络接口将第二数据包转发至终端设备。
本申请实施例中,路由器可以通过虚拟网卡接收该通信模组发送的第二数据包,再通过网桥将该第二数据包传输至网络接口,由该网络接口将该第二数据包转发至终端设备。通过网桥将虚拟网卡与网络接口桥接,在通过虚拟网卡接收到通信模组转发的第二数据包之后,可以直接通过网桥将该第二数据包传输至该网络接口,从而提高该第二数据包的传输效率。
请参见图5,图5为本申请实施例提供的一种通信系统的结构示意图。如图5所示,该通信系统500包括数据转发装置510、网络设备520以及终端设备530。该数据转发装置510用于向网络设备520转发终端设备530发送的第一数据包。
具体的,该数据转发装置510包括通信模组和路由器,所述通信模组支持多路拨号,所述路由器包括虚拟网卡和网络接口;所述虚拟网卡与所述网络接口通过网桥连接;所述网络接口与终端设备连接,所述虚拟网卡与所述通信模组连接;
所述网络接口用于接收所述终端设备530发送的第一数据包,并通过所述网桥将所述第 一数据包传输至所述虚拟网卡;
所述虚拟网卡用于将所述第一数据包转发至所述通信模组;
所述通信模组用于通过所述虚拟网卡对应的拨号链路将所述第一数据包转发至网络设备520。
可理解,关于该数据转发装置的相关描述可以参见如图2所述的数据转发装置200的相关描述,这里不再赘述。
本申请实施例中,通信模组支持多路拨号,路由器可以包括虚拟网卡与网络接口,其中虚拟网卡与网络接口通过网桥连接。网络接口在接收到终端设备发送的第一数据包之后,通过网桥将该第一数据包转发至虚拟网卡,虚拟网卡再将该第一数据包转发至通信模组,通信模组通过虚拟网卡对应的拨号链路将该第一数据包转发至网络设备。通过将虚拟网卡与网络接口桥接,使得网络接口接收到的第一数据包可以直接传输到虚拟网卡,从而提高该第一数据包的传输速率。
请参阅图6,图6为本申请实施例提供的一种电子设备60的结构示意图。该电子设备60可以包括存储器601、处理器602。进一步可选的,还可以包含通信接口603以及总线604,其中,存储器601、处理器602以及通信接口603通过总线604实现彼此之间的通信连接。
其中,存储器601用于提供存储空间,存储空间中可以存储操作系统和计算机程序等数据。存储器601包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM)。
处理器602是进行算术运算和逻辑运算的模块,可以是中央处理器(central processing unit,CPU)、显卡处理器(graphics processing unit,GPU)或微处理器(microprocessor unit,MPU)等处理模块中的一种或者多种的组合。
存储器601中存储有计算机程序,处理器602调用存储器601中存储的计算机程序,以执行上述图3或图4所示的数据转发方法。
上述处理器602执行方法的具体内容可参阅上述图2至图4的相关描述,此处不再赘述。
相应的,处理器602调用存储器601中存储的计算机程序,还可以用于执行上述图2所示的数据转发装置200中的各个单元所执行的方法步骤,其具体内容可参阅上述图2的相关描述,此处不再赘述。
本申请实施例还提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当上述计算机程序在一个或多个处理器上运行时,可以实现上述图3或图4所示的方法。
本申请实施例还提供一种计算机程序产品,当上述计算机程序产品在处理器上运行时,可以实现上述图3或图4所示的方法。
本申请实施例还提供一种芯片,该芯片包括处理器和通信接口,所述处理器用于从该通信接口调用并运行指令,当该处理器执行所述指令时,可以实现上述图3或图4所示的方法。
本申请实施例还提供了一种系统,该系统包括了至少一个如上述数据转发装置200或电子设备60或芯片。
应当理解的是,本申请的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本申请所附权利要求的保护范围。

Claims (10)

  1. 一种数据转发装置,包括通信模组和路由器,所述通信模组支持多路拨号,所述路由器包括虚拟网卡和网络接口,所述虚拟网卡与所述网络接口通过网桥连接,所述虚拟网卡与所述通信模组连接;
    所述网络接口用于接收终端设备发送的第一数据包,并通过所述网桥将所述第一数据包传输至所述虚拟网卡;
    所述虚拟网卡用于将所述第一数据包转发至所述通信模组;
    所述通信模组用于通过所述虚拟网卡对应的拨号链路将所述第一数据包转发至网络设备。
  2. 根据权利要求1所述的装置,其特征在于,所述通信模组还用于通过所述拨号链路接收所述网络设备发送的第二数据包,以及将所述第二数据包转发至所述虚拟网卡,所述虚拟网卡还用于通过所述网桥将所述第二数据包传输至所述网络接口;所述网络接口还用于将所述第二数据包转发至所述终端设备。
  3. 根据权利要求1所述的装置,其特征在于,所述第一数据包包括广域网网络协议IP地址,所述路由器还包括IP地址分配模块;
    所述网络接口还用于接收所述终端设备发送的连接请求;
    所述IP地址分配模块用于将所述广域网IP地址分配至所述终端设备。
  4. 一种数据转发方法,应用于数据转发装置,所述数据转发装置包括通信模组和路由器,所述通信模组支持多路拨号,所述路由器包括虚拟网卡和网络接口,所述虚拟网卡与所述网络接口通过网桥连接,所述虚拟网卡与所述通信模组连接,所述方法包括:
    通过所述网络接口接收终端设备发送的第一数据包,通过所述网桥将所述第一数据包传输至所述虚拟网卡;
    所述虚拟网卡将所述第一数据包转发至通信模组;
    所述通信模组通过所述虚拟网卡对应的拨号链路将所述第一数据包转发至网络设备。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    通过所述拨号链路接收所述网络设备发送的第二数据包,以及将所述第二数据包转发至所述虚拟网卡;
    所述虚拟网卡通过所述网桥将所述第二数据包传输至所述网络接口;
    所述网络接口将所述第二数据包转发至所述终端设备。
  6. 一种数据转发方法,应用于路由器,所述路由器包括虚拟网卡和网络接口,所述虚拟网卡与所述网络接口通过网桥连接,所述方法包括:
    通过所述网络接口接收终端设备发送的第一数据包,通过所述网桥将所述第一数据包传输至所述虚拟网卡;
    所述虚拟网卡将所述第一数据包转发至通信模组。
  7. 根据权利要求6所述的方法,所述方法还包括:
    所述虚拟网卡接收所述通信模组发送的第二数据包,并通过所述网桥将所述第二数据包传输至所述网络接口;
    所述网络接口将所述第二数据包转发至所述终端设备。
  8. 根据权利要求4-7任一项所述的方法,所述第一数据包包括广域网IP地址,在所述通过网络接口接收终端设备发送的第一数据包之前,所述方法还包括:
    通过所述网络接口接收所述终端设备发送的连接请求;
    将所述广域网IP地址分配至所述终端设备。
  9. 一种电子设备,包括处理器以及存储器,所述存储器用于存储一个或多个程序,所述一个或多个程序被配置成由所述处理器执行,所述程序包括用于执行如权利要求4~8任一项所述的方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求4~8任一项所述的方法。
PCT/CN2022/141434 2022-03-29 2022-12-23 数据转发装置、方法、电子设备及存储介质 WO2023185130A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210322057.8 2022-03-29
CN202210322057.8A CN114844745B (zh) 2022-03-29 2022-03-29 数据转发装置、方法、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023185130A1 true WO2023185130A1 (zh) 2023-10-05

Family

ID=82563077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141434 WO2023185130A1 (zh) 2022-03-29 2022-12-23 数据转发装置、方法、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN114844745B (zh)
WO (1) WO2023185130A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844745B (zh) * 2022-03-29 2024-03-15 西安广和通无线软件有限公司 数据转发装置、方法、电子设备及存储介质
CN118235379A (zh) * 2022-10-21 2024-06-21 广州视臻信息科技有限公司 数据传输方法和数据传输设备
CN117560235B (zh) * 2024-01-11 2024-04-02 南京沁恒微电子股份有限公司 一种网络自动接入方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581892A (zh) * 2014-12-05 2015-04-29 华为技术有限公司 一种终端的数据传输方法和装置
CN108282590A (zh) * 2017-12-22 2018-07-13 中国电子科技集团公司第三十研究所 一种多路拨号控制系统及控制方法
CN110830481A (zh) * 2019-11-13 2020-02-21 深圳市华宝电子科技有限公司 一种车载设备上网方法、装置、服务器及存储介质
CN114844745A (zh) * 2022-03-29 2022-08-02 西安广和通无线软件有限公司 数据转发装置、方法、电子设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107278359B (zh) * 2016-11-09 2020-09-18 华为技术有限公司 云计算系统中报文处理的方法、主机和系统
CN110505316B (zh) * 2018-05-17 2022-03-01 中兴通讯股份有限公司 互联网协议ip地址的分配方法及无线路由设备
CN110572817B (zh) * 2019-07-30 2021-01-12 华为技术有限公司 一种通信方法及电子设备
CN113691413B (zh) * 2021-07-07 2022-12-27 广州鲁邦通物联网科技股份有限公司 一种物联网设备兼容多模组的方法和系统
CN113872817B (zh) * 2021-10-20 2024-04-12 中国电信股份有限公司 网络连接控制方法、装置、设备、存储介质及系统
CN114172802B (zh) * 2021-12-01 2024-04-26 百果园技术(新加坡)有限公司 容器网络配置方法、装置、计算节点、主节点及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581892A (zh) * 2014-12-05 2015-04-29 华为技术有限公司 一种终端的数据传输方法和装置
CN108282590A (zh) * 2017-12-22 2018-07-13 中国电子科技集团公司第三十研究所 一种多路拨号控制系统及控制方法
CN110830481A (zh) * 2019-11-13 2020-02-21 深圳市华宝电子科技有限公司 一种车载设备上网方法、装置、服务器及存储介质
CN114844745A (zh) * 2022-03-29 2022-08-02 西安广和通无线软件有限公司 数据转发装置、方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN114844745B (zh) 2024-03-15
CN114844745A (zh) 2022-08-02

Similar Documents

Publication Publication Date Title
WO2023185130A1 (zh) 数据转发装置、方法、电子设备及存储介质
US20210385154A1 (en) Multipath data transmission method and device
JP6009630B2 (ja) 同時パケット・データ・ネットワーク(pdn)・アクセス
KR101355330B1 (ko) 근거리 무선 네트워크 시스템에서 아이피 버전 6 패킷전송을 위한 게이트웨이 제공 방법 및 장치
CN103441996A (zh) 并发传输文件的方法及系统
US10887943B2 (en) Packet exchange method and related device
JP2012531846A (ja) データ伝送方法及び端末
EP2480027A1 (en) Data access method for customer premises equipment and customer premises equipment (cpe) thereof
WO2017008701A1 (zh) 数据传输方法、装置及用户设备
KR101159434B1 (ko) 네트워크 할당
US8160105B2 (en) Apparatus and method for processing IP packet fragmentation in routing system using network processor
WO2020078248A1 (zh) 无线通信方法及设备
KR20150125379A (ko) 통신 서비스를 제공하기 위한 방법, 단말, 그리고 서버
CN109587749B (zh) 数据发送方法和系统
CN114301831B (zh) 一种业务传输方法、装置及存储介质
CN115174310B (zh) Pdn拨号及配置方法、系统、装置、设备及存储介质
WO2022179410A1 (zh) 一种IPv6地址生成方法及相关装置
WO2014169590A1 (zh) 一种数据业务通信方法、设备及系统
CN114846774B (zh) 一种通信方法及装置
KR20080039618A (ko) 이동통신 단말기의 데이터 서비스 방법
CN114025016B (zh) 一种数据转发方法、装置及存储介质
TWI483605B (zh) 用於網路系統之部署方法及電腦系統
US20240048481A1 (en) Packet processing method, apparatus, and system, device, and computer-readable storage medium
WO2023108492A1 (zh) 通信的方法和装置
KR101082651B1 (ko) 멀티호밍을 지원하기 위한 가상화 드라이브 장치 및 그 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22934945

Country of ref document: EP

Kind code of ref document: A1