WO2023221708A1 - Pdn拨号及配置方法、系统、装置、设备及存储介质 - Google Patents

Pdn拨号及配置方法、系统、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023221708A1
WO2023221708A1 PCT/CN2023/088628 CN2023088628W WO2023221708A1 WO 2023221708 A1 WO2023221708 A1 WO 2023221708A1 CN 2023088628 W CN2023088628 W CN 2023088628W WO 2023221708 A1 WO2023221708 A1 WO 2023221708A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual network
pdn
address
host computer
target
Prior art date
Application number
PCT/CN2023/088628
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 WO2023221708A1 publication Critical patent/WO2023221708A1/zh

Links

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/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal

Definitions

  • the present disclosure generally relates to the field of communication technology, and more specifically to PDN dialing and configuration methods, systems, devices, equipment and storage media.
  • a communication module may have multiple PDP (Packet Message Protocol) contexts.
  • PDP Packet Message Protocol
  • the communication module needs to be connected to the host computer through RGMII (Reduced Gigabit Media Independent Interface, Reduced GMII, Gigabit Media Independent Interface). After the communication module is connected to the host computer through RGMII, it can only achieve single-channel dialing. The multi-way dialing function cannot be implemented.
  • RGMII Reduced Gigabit Media Independent Interface, Reduced GMII, Gigabit Media Independent Interface
  • inventions of the present disclosure provide a multi-PDN dialing configuration method, which is suitable for communication modules.
  • the first method includes:
  • the method further includes:
  • the determination is that the LAN virtual network card corresponding to each of the dial-up activation instructions has been generated, including:
  • the confirmation instruction sent by the host computer; wherein the confirmation instruction is used to indicate that the host computer has established a LAN virtual network card corresponding to each of the dial-up activation instructions, and then determines the connection with each of the dial-up activation instructions according to the confirmation instruction.
  • the corresponding LAN virtual network cards for the dial-up activation instructions have been generated;
  • the corresponding LAN virtual network cards have been generated.
  • allocating IP addresses to the LAN virtual network cards corresponding to the virtual bridges includes:
  • each of the local area network virtual network cards is assigned its own IP address.
  • embodiments of the present disclosure provide a multi-PDN dialing configuration method, which is suitable for host computers.
  • the method includes:
  • embodiments of the present disclosure provide a PDN dialing method, which is suitable for communication modules that are pre-configured based on the multi-PDN dialing configuration method described in the first aspect; the method includes:
  • For each target IP address obtain the data to be sent by the host computer using the LAN virtual network card corresponding to the target IP address; convert the target IP address into an external network IP used when communicating with the external network address; determine the pre-created virtual network bridge corresponding to the target IP address; determine the pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card to use the external network IP address to The data to be sent is sent to an external base station.
  • embodiments of the present disclosure provide a PDN dialing method, which is suitable for a host computer that is pre-configured based on the multi-PDN dialing configuration method described in the second aspect; the method includes:
  • For each target IP address use the LAN virtual network card corresponding to the target IP address to send the data to be sent to the communication module;
  • the communication module is configured to, for each target IP address, convert the target IP address into an external network IP address used when communicating with the external network; determine a pre-created IP address corresponding to the target IP address.
  • Virtual network bridge determines a pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card to send the data to be sent to an external base station according to the external network IP address.
  • embodiments of the present disclosure provide a multi-PDN dialing configuration system, which includes: a host computer and a communication module;
  • the host computer is configured to send dial-up activation instructions of at least two PDNs to the communication module, and establish a local area network virtual network card corresponding to each of the dial-up activation instructions;
  • the communication module is configured to establish a PDN virtual network card corresponding to each of the dial-up activation instructions; wherein the PDN virtual network card is used for data communication with an external base station; and a respective virtual network card is created for each of the local area network virtual network cards.
  • network bridge and allocate an IP address to the LAN virtual network card corresponding to the virtual network bridge; wherein, each of the virtual network bridges corresponds to one of the PDN virtual network cards; and sends the IP corresponding to each of the LAN virtual network cards. address to the host computer; and
  • the host computer is configured to obtain each of the IP addresses and configure respective IP addresses for each of the LAN virtual network cards.
  • embodiments of the present disclosure provide a multi-PDN dialing system, which includes: a host computer and a communication module; wherein the communication module is pre-configured based on the multi-PDN dialing configuration method described in the first aspect; so The above-mentioned host computer is pre-configured based on the multi-PDN dialing configuration method described in the second aspect;
  • the host computer is configured to send at least two requests for IP address allocation to the communication module;
  • the communication module is configured to allocate target IP addresses corresponding to each request allocation from the IP addresses pre-allocated to each LAN virtual network card in the host computer, and send each target IP address to The upper computer;
  • the host computer is configured to use the LAN virtual network card corresponding to the target IP address to send the data to be sent to the communication module for each of the target IP addresses;
  • the communication module is configured to, for each target IP address, convert the target IP address into an external network IP address used when communicating with the external network; determine a pre-created virtual IP address corresponding to the target IP address.
  • Network bridge determine a pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card to send the data to be sent to an external base station according to the external network IP address.
  • inventions of the present disclosure provide a multi-PDN dialing configuration device, which is suitable for communication modules.
  • the device includes:
  • the first acquisition module is configured to obtain the dial-up activation instructions of at least two PDNs sent by the host computer; wherein the host computer is used to establish a LAN virtual network card corresponding to each of the dial-up activation instructions;
  • the first establishment module is configured to establish a PDN virtual network card corresponding to each of the dial-up activation instructions; wherein the PDN virtual network card is used for data communication with an external base station;
  • a creation module configured to create respective virtual network bridges for each of the LAN virtual network cards, and allocate IP addresses to the LAN virtual network cards corresponding to the virtual network bridges; wherein each of the virtual network bridges corresponds to one of said PDN virtual network cards; and
  • the first sending module is configured to send the IP address corresponding to each of the local area network virtual network cards to the host computer.
  • embodiments of the present disclosure provide a multi-PDN dialing configuration device, which is suitable for a host computer.
  • the method includes:
  • the second sending module is configured to send dial-up activation instructions of at least two PDNs to the communication module;
  • the second establishment module is configured to establish a local area network virtual network card corresponding to each of the dial-up activation instructions; wherein the communication module is used to establish a PDN virtual network card corresponding to each of the dial-up activation instructions; for each of the local area networks
  • the virtual network cards create respective virtual network cards, and allocate IP addresses to the LAN virtual network cards corresponding to the virtual network bridges; wherein each of the virtual network bridges corresponds to one of the PDN virtual network cards; the PDN virtual network card For data communications with external base stations; and
  • the second acquisition module is configured to acquire the IP address corresponding to each of the local area network virtual network cards sent by the communication module.
  • embodiments of the present disclosure provide a PDN dialing device, which is suitable for a communication module.
  • the communication module is pre-configured based on the multi-PDN dialing configuration method described in the first aspect; the device includes:
  • the third acquisition module is configured to acquire at least two requests for IP address allocation sent by the host computer;
  • the allocation module is configured to allocate target IP addresses corresponding to each of the requested allocations from the IP addresses pre-allocated to each LAN virtual network card in the host computer, and send each target IP address to the host computer. machine;
  • a processing module configured to, for each target IP address, obtain the data to be sent by the host computer using the local area network virtual network card corresponding to the target IP address; convert the target IP address into Use the external network IP address; determine the pre-created virtual network bridge corresponding to the target IP address; determine the pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card, according to the external network card
  • the network IP address is used to send the data to be sent to an external base station.
  • embodiments of the present disclosure provide a PDN dialing device, which is suitable for a host computer that is pre-configured based on the multi-PDN dialing configuration method described in the second aspect; the device includes:
  • the third sending module is configured to send at least two requests for allocating IP addresses to the communication module; wherein the communication module is configured to obtain virtual files for each local area network in the host computer from Among the IP addresses allocated by the network card, allocate target IP addresses corresponding to each of the requested allocations, and send each of the target IP addresses to the host computer;
  • the fourth acquisition module is configured to acquire each of the target IP addresses sent by the communication module.
  • the fourth sending module is configured to, for each target IP address, use the LAN virtual network card corresponding to the target IP address to send the data to be sent to the communication module;
  • the communication module is configured to, for each target IP address, convert the target IP address into an external network IP address used when communicating with the external network; determine a pre-created IP address corresponding to the target IP address.
  • Virtual network bridge determines a pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card to send the data to be sent to an external base station according to the external network IP address.
  • embodiments of the present disclosure provide an electronic device, which includes: a processor, a memory, and a communication bus, wherein the processor and the memory complete communication with each other through the communication bus;
  • the memory is configured to store a computer program
  • the processor is configured to execute the program stored in the memory to implement the multi-PDN dialing configuration method described in the first aspect, or the multi-PDN dialing configuration method described in the second aspect, or the third aspect.
  • embodiments of the present disclosure provide a computer-readable storage medium storing a computer program.
  • the computer program is executed by a processor, the multi-PDN dialing configuration method described in the first aspect is implemented, or, the second aspect The multi-PDN dialing configuration method, or the PDN dialing method described in the third aspect, or the PDN dialing method described in the fourth aspect.
  • the method provided by the embodiment of the present disclosure establishes PDN virtual network cards corresponding to each dial-up activation command; creates respective virtual network bridges for each LAN virtual network card, and allocates IP addresses to the LAN virtual network cards corresponding to the virtual network bridges. It has realized the establishment of multi-PDN virtual network cards, network bridge management and routing configuration, and completed the configuration required for multi-PDN dial-up, making it possible to realize multi-PDN dial-up.
  • Figure 1 is a schematic flowchart of a configuration method for multi-PDN dialing suitable for communication modules provided by an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of a multi-PDN dialing configuration method suitable for a host computer provided by an embodiment of the present disclosure
  • FIG. 3 shows a PDN dialing method suitable for communication modules provided by an embodiment of the present disclosure.
  • Figure 4 is a schematic flow chart of a PDN dialing method suitable for a host computer provided by an embodiment of the present disclosure
  • Figure 5 is a schematic structural diagram of a multi-PDN dialing and configuration system provided by an embodiment of the present disclosure
  • Figure 6 is a schematic diagram of a specific example of implementing multi-PDN dialing and configuration provided by an embodiment of the present disclosure
  • Figure 7 is a schematic structural diagram of a multi-PDN dialing configuration device suitable for communication modules provided by an embodiment of the present disclosure
  • Figure 8 is a schematic structural diagram of a multi-PDN dialing configuration device suitable for a host computer provided by an embodiment of the present disclosure
  • Figure 9 is a schematic structural diagram of a PDN dialing device suitable for communication modules provided by an embodiment of the present disclosure.
  • Figure 10 is a schematic structural diagram of a PDN dialing device suitable for a host computer provided by an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • PDN Packet Data Network, Packet Data Network
  • VLAN virtual local area network
  • bridge management routing configuration, etc.
  • the embodiment of the present disclosure provides a configuration method for multi-PDN dialing, which is suitable for communication modules.
  • the method includes the following steps:
  • Step 101 Obtain the dial-up activation instructions of at least two PDNs sent by the host computer; wherein, the host computer is configured to establish a LAN virtual network card corresponding to each dial-up activation command;
  • Step 102 Establish a PDN virtual network card corresponding to each dial-up activation instruction; wherein, the PDN virtual network card is configured to perform data communication with an external base station;
  • Step 103 Create respective virtual network bridges for each LAN virtual network card, and assign IP addresses to the LAN virtual network cards corresponding to the virtual network bridges; wherein, each virtual network bridge corresponds to a PDN virtual network card; and
  • Step 104 Send the corresponding IP address of each LAN virtual network card to the host computer.
  • communication between the host computer and the communication module can be achieved through AT commands.
  • the host computer establishes a LAN virtual network card corresponding to each dial-up activation command on the host computer according to the dial-up activation command.
  • two LAN virtual network cards are established on the host computer, and each instruction corresponds to a LAN virtual network card, and two LAN virtual network cards eth0.1 and eth0 are established. 2.
  • the communication module after receiving the dial-up activation command, the communication module establishes a PDN virtual network card on the communication module, and the number of established PDN virtual network cards is the same as the number of dial-up activation commands. Each dial-up activation command Each corresponds to a PDN virtual network card.
  • the communication module receives the above two instructions, two PDN virtual network cards are established on the communication module. Data communication with external base stations is achieved through the PDN virtual network card.
  • the IPv6 forwarding function is enabled by creating a network bridge.
  • Each LAN virtual network card corresponds to a virtual network bridge.
  • the number of virtual network bridges is also two, and each LAN virtual network card corresponds to a virtual network. bridge.
  • the virtual bridge Before creating a virtual bridge, it is necessary to determine whether the host computer has created each LAN virtual network card. In some embodiments, after obtaining the dial-up activation instructions of at least two PDNs sent by the host computer, create separate virtual network cards for each LAN. Before the virtual bridge, it also includes: determining that the LAN virtual network card corresponding to each dial-up activation command has been generated. If it is determined that the host computer has successfully established a LAN virtual network card corresponding to each dial-up activation command, then separate virtual network bridges are created for each LAN virtual network card.
  • the host computer can proactively report whether each LAN virtual network card has been established, if the communication module receives a confirmation command sent by the host computer; wherein, the confirmation command is used to indicate that the host computer has established and each dial-up If the activation instructions correspond to the LAN virtual network cards, it is determined according to the confirmation instruction that the LAN virtual network cards corresponding to the dial-up activation instructions have been generated.
  • the communication module can also send a query command to the host computer to query whether the host computer has established each LAN virtual network card.
  • the communication module sends a query command to the host computer; where, the query command Used to request to the host computer whether a LAN virtual network card corresponding to each dial-up activation command has been established; to obtain feedback information for the query command; if the feedback information indicates that the host computer has established a LAN virtual network card corresponding to each dial-up activation command, then Based on the feedback information, it is determined that the LAN virtual network card corresponding to each dial-up activation command has been generated.
  • any of the above methods can be used to determine whether the LAN virtual network card already exists.
  • other methods can also be used to determine, which are not limited in the embodiments of the present disclosure.
  • the DNSmasq process When allocating an IP address, the DNSmasq process is started, and based on the DNSmasq process, each LAN virtual network card is assigned its own IP address.
  • Each LAN virtual network card is configured with its own IP address. After the host computer receives each IP address, it is configured to each LAN virtual network card respectively. This completes the configuration phase. At this time, the corresponding relationship between the LAN virtual network card, IP address, virtual bridge, and PDN virtual network card is established. This correspondence needs to be used when subsequent multi-PDN dialing is used to achieve communication. relation.
  • a PDN virtual network card corresponding to each dial-up activation command is established; a respective virtual network bridge is created for each LAN virtual network card, and an IP address is assigned to the LAN virtual network card corresponding to the virtual bridge, thereby achieving Establishing multi-PDN virtual network cards, bridge management and routing configurations completes the configuration required for multi-PDN dial-up, making it possible to implement multi-PDN dial-up.
  • the embodiment of the present disclosure also provides a multi-PDN dialing configuration method, which is suitable for the host computer. As shown in Figure 2, the method mainly includes the following steps:
  • Step 201 Send dial-up activation instructions for at least two PDNs to the communication module;
  • Step 202 Establish a LAN virtual network card corresponding to each dial-up activation instruction; wherein, the communication module is used to establish a PDN virtual network card corresponding to each dial-up activation instruction; create a respective virtual network bridge for each LAN virtual network card, and provide The LAN virtual network card corresponding to the virtual bridge is assigned an IP address; each virtual bridge corresponds to a PDN virtual network card; the PDN virtual network card is configured to perform data communication with the external base station; and
  • Step 203 Obtain the IP addresses corresponding to each LAN virtual network card sent by the communication module.
  • the above is the configuration method to implement multi-PDN dialing.
  • the following describes the implementation method of multi-PDN dialing.
  • the embodiment of the present disclosure provides a PDN dialing method, which is suitable for communication modules.
  • the communication module is pre-configured based on the above-mentioned multi-PDN dialing configuration method suitable for communication modules; the method includes:
  • Step 301 Obtain at least two requests for IP address allocation sent by the host computer
  • Step 302 Allocate target IP addresses corresponding to each request from the IP addresses pre-allocated to each LAN virtual network card in the host computer, and send each target IP address to the host computer;
  • Step 303 For each target IP address, obtain the data to be sent by the host computer using the LAN virtual network card corresponding to the target IP address; convert the target IP address to an external network IP address used when communicating with the external network; determine the connection with the target Pre-created virtual bridge corresponding to the IP address; determine the pre-created PDN virtual network card corresponding to the virtual bridge; use the PDN virtual network card to send the data to be sent to the external base station according to the external network IP address.
  • IP address (Internet Protocol Address) refers to the Internet Protocol address, also translated as Internet Protocol address.
  • the host computer can request allocation of an IP address from the DHCP server of the communication module through a DHCP (Dynamic Host Configuration Protocol) client.
  • DHCP Dynamic Host Configuration Protocol
  • N IP addresses are configured for each LAN virtual network card, and N is a positive integer; then when the host computer requests to allocate an IP address, it is configured from the configuration phase. Among each IP address, the same IP address as the requested number is allocated. In some embodiments, if the host computer requests the allocation of 2 IP addresses, then 2 target IP addresses are allocated to the host computer from the preconfigured IP addresses.
  • the host computer After the host computer receives the target IP address, it determines the LAN virtual network card corresponding to the target IP address.
  • the LAN virtual network cards corresponding to the two target IP addresses are eth0.1 and eth0.2 respectively. Then send the to-be-sent through eth0.1 and eth0.2 data.
  • IP addresses assigned by the communication module are all intranet IP addresses starting with 192.168. Just turning on the IPv6 forwarding function and configuring the routing table cannot achieve communication between the external network and the intranet.
  • routing NAT network address conversion
  • virtual LAN management and NAT routing management are required to enable the host computer to implement multi-PDN dialing through RGMII, so that the communication module not only supports RGMII single-channel dialing, but also supports multi-channel dialing. Dial-up to enhance the application scope and market competitiveness of communication modules.
  • the embodiment of the present disclosure also provides a PDN dialing method, which is suitable for the host computer.
  • the host computer is pre-configured based on the above-mentioned multi-PDN dialing configuration method suitable for the host computer; the method includes:
  • Step 401 Send at least two requests to allocate IP addresses to the communication module; wherein the communication module is configured to allocate target IPs corresponding to each request from the IP addresses pre-allocated to each LAN virtual network card in the host computer. address, and send each target IP address to the host computer;
  • Step 402 obtain each target IP address sent by the communication module.
  • Step 403 For each target IP address, use the LAN virtual network card corresponding to the target IP address to send the data to be sent to the communication module;
  • the communication module is configured to, for each target IP address, convert the target IP address into an external network IP address used when communicating with the external network; determine a pre-created virtual bridge corresponding to the target IP address; determine the connection between the target IP address and the virtual network.
  • the pre-created PDN virtual network card corresponding to the bridge use the PDN virtual network card to send the data to be sent to the external base station according to the external network IP address.
  • the embodiment of the present disclosure also provides a multi-PDN dialing configuration system 500, which includes: a host computer 501 and a communication module 502;
  • the host computer 501 is configured to send dial-up activation instructions of at least two PDNs to the communication module 502, and establish a LAN virtual network card corresponding to each dial-up activation instruction;
  • the communication module 502 is configured to establish a PDN virtual network card corresponding to each dial-up activation command; wherein, the PDN virtual network card is used for data communication with an external base station; a respective virtual network bridge is created for each local area network virtual network card, and a virtual network card is created for each local area network virtual network card.
  • the LAN virtual network card corresponding to the bridge is assigned an IP address; each virtual bridge corresponds to a PDN virtual network card; the IP address corresponding to each LAN virtual network card is sent to the host computer 501; and
  • the host computer 501 is configured to obtain each IP address and configure respective IP addresses for each LAN virtual network card.
  • the embodiment of the present disclosure also provides a multi-PDN dialing system 500, as shown in Figure 5, which includes: a host computer 501 and a communication module 502; wherein the communication module 502 is based on the above-mentioned multi-PDN dialing system applicable to the communication module 502.
  • the PDN dial-up configuration method is pre-configured; the host computer 501 is pre-configured based on the above-mentioned multi-PDN dial-up configuration method applicable to the host computer 501;
  • the host computer 501 is configured to send at least two assigned IP addresses to the communication module 502. ask;
  • the communication module 502 is configured to allocate target IP addresses corresponding to each request allocation from the IP addresses pre-allocated to each LAN virtual network card in the host computer 501, and send each target IP address to the host computer 501;
  • the host computer 501 is configured to use the LAN virtual network card corresponding to the target IP address to send the data to be sent to the communication module for each target IP address;
  • the communication module 502 is configured to, for each target IP address, convert the target IP address to an external network IP address used when communicating with the external network; determine a pre-created virtual network bridge corresponding to the target IP address; determine the connection with the virtual network The pre-created PDN virtual network card corresponding to the bridge; using the PDN virtual network card, the data to be sent is sent to the external base station 503 according to the external network IP address.
  • the left side is the host computer (HOST), and the middle is the communication module.
  • This communication module is a wireless communication module.
  • MDM Mobile Device Manager
  • the far right is the external base station.
  • the host computer can be connected to the MDM through the RGMII interface.
  • the implementation method of multi-PDN dialing mainly includes the following steps:
  • the communication module establishes the PDN virtual network card rmnet_dataX, and the interface for data communication with the external base station is through this network card.
  • X represents the quantity.
  • the host computer creates eth0.X.
  • the host computer requests the allocation of an IP address from the DHCP server of the communication module through the DHCP client;
  • IP network segments assigned by the module are all intranet IP addresses starting with 192.168. Just turning on the forwarding function and configuring the routing table cannot achieve communication between the external network and the internal network. In order to To solve this problem, NAT technology is needed to implement network address translation.
  • the FIBO-FWA module in Figure 6 mainly implements VLAN management, bridge management and routing configuration in the above (1) to (5).
  • the communication module not only supports RMGII single-channel dialing, but also implements VLAN management, bridge management and NAT routing management during multi-PDN dialing, meeting the needs of the host computer for multi-PDN dialing through RGMII. It meets the market demand for RGMII multi-PDN dialing and improves the competitiveness of communication modules.
  • the embodiment of the present disclosure also provides a multi-PDN dialing configuration device 700, which is suitable for communication modules.
  • the device includes:
  • the first acquisition module 701 is configured to obtain the dial-up activation instructions of at least two PDNs sent by the host computer; wherein the host computer is configured to establish a LAN virtual network card corresponding to each of the dial-up activation instructions;
  • the first establishment module 702 is configured to establish a PDN virtual network card corresponding to each of the dial-up activation instructions; wherein the PDN virtual network card is used for data communication with an external base station;
  • the creation module 703 is configured to create respective virtual network bridges for each of the LAN virtual network cards, and allocate IP addresses to the LAN virtual network cards corresponding to the virtual network bridges; wherein, each of the virtual network bridges Corresponding to one of the PDN virtual network cards; and
  • the first sending module 704 is configured to send the IP address corresponding to each of the local area network virtual network cards to the host computer.
  • the configuration device for multi-PDN dialing provided by the embodiments of the present disclosure further includes: a determination module configured to, after obtaining the dialing activation instructions of at least two PDNs sent by the host computer, the Before the local area network virtual network cards create respective virtual network bridges, it is determined that the local area network virtual network cards corresponding to each of the dial-up activation instructions have been generated.
  • the determination module is configured to obtain a confirmation instruction sent by the host computer; wherein the confirmation instruction is used to indicate that the host computer has established a LAN virtual network card corresponding to each of the dial-up activation instructions. , then it is determined according to the confirmation instruction that the LAN virtual network card corresponding to each of the dial-up activation instructions has been generated; or, a query instruction is sent to the host computer; wherein the query instruction is used to request the host computer whether A LAN virtual network card corresponding to each of the dial-up activation instructions has been established; feedback information for the query instruction is obtained; if the feedback information indicates that the host computer has established a LAN virtual network card corresponding to each of the dial-up activation instructions network card, it is determined according to the feedback information that the local area network virtual network card corresponding to each of the dial-up activation instructions has been generated.
  • the creation module 703 is configured to start a DNSmasq process; based on the DNSmasq process, assign respective IP addresses to each of the LAN virtual network cards.
  • the embodiment of the present disclosure provides a multi-PDN dialing configuration device 800, which is suitable for the host computer.
  • the method includes:
  • the second sending module 801 is configured to send dial-up activation instructions of at least two PDNs to the communication module;
  • the second establishment module 802 is configured to establish a LAN virtual network card corresponding to each of the dial-up activation instructions; wherein the communication module is used to establish a PDN virtual network card corresponding to each of the dial-up activation instructions; for each of the The LAN virtual network cards create respective virtual network bridges, and allocate IP addresses to the LAN virtual network cards corresponding to the virtual network bridges; wherein each of the virtual network bridges corresponds to one of the PDN virtual network cards; the PDN virtual network card The network card is used for data communication with external base stations;
  • the second obtaining module 803 is configured to obtain the IP address corresponding to each of the LAN virtual network cards sent by the communication module.
  • the embodiment of the present disclosure provides a PDN dialing device 900, which is suitable for communication modules.
  • the communication module is pre-configured based on the above-mentioned multi-PDN dialing configuration method; the device includes:
  • the third acquisition module 901 is configured to acquire at least two requests for IP address allocation sent by the host computer;
  • the allocation module 902 is configured to allocate target IP addresses corresponding to each of the requested allocations from the IP addresses pre-allocated to each LAN virtual network card in the host computer, and send each target IP address to the Host computer;
  • the processing module 903 is configured to, for each target IP address, obtain the data to be sent by the host computer using the LAN virtual network card corresponding to the target IP address; convert the target IP address to communicate with the external network the external network IP address used; determine the pre-created virtual network bridge corresponding to the target IP address; determine the pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card, according to the The external network IP address is used to send the data to be sent to the external base station.
  • the embodiment of the present disclosure provides a multi-PDN dialing device 1000, which is suitable for a host computer that is pre-configured based on the above-mentioned multi-PDN dialing configuration method; the device includes:
  • the third sending module 1001 is configured to send at least two requests for allocating IP addresses to the communication module; wherein the communication module is configured to allocate IP addresses from the IP addresses pre-allocated to each local area network virtual network card in the host computer. Assign a corresponding target IP address to each request, and send each target IP address to the host computer;
  • the fourth acquisition module 1002 is configured to acquire each of the target IP addresses sent by the communication module.
  • the fourth sending module 1003 is configured to, for each target IP address, use the LAN virtual network card corresponding to the target IP address to send the data to be sent to the communication module;
  • the communication module is configured to, for each target IP address, convert the target IP address into an external network IP address used when communicating with the external network; determine a pre-created IP address corresponding to the target IP address.
  • Virtual network bridge determines a pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card to send the data to be sent to an external base station according to the external network IP address.
  • the embodiment of the present disclosure also provides an electronic device 1100.
  • the electronic device 1100 mainly includes: a processor 1101, a memory 1102 and a communication bus 1103.
  • the processor 1101 and the memory 1102 communicate through Bus 1103 completes mutual communication.
  • the memory 1102 stores programs that can be executed by the processor 1101.
  • the processor 1101 executes the programs stored in the memory 1102 to implement the following steps:
  • IP addresses pre-allocated to each local area network virtual network card in the host computer From the IP addresses pre-allocated to each local area network virtual network card in the host computer, a target IP address corresponding to each request is assigned, and each target IP address is sent Send to the host computer;
  • For each target IP address obtain the data to be sent by the host computer using the LAN virtual network card corresponding to the target IP address; convert the target IP address into an external network IP used when communicating with the external network address; determine the pre-created virtual network bridge corresponding to the target IP address; determine the pre-created PDN virtual network card corresponding to the virtual network bridge; use the PDN virtual network card to use the external network IP address to The data to be sent is sent to an external base station.
  • the method provided in the embodiment of the present disclosure can be applied to the electronic device 1100.
  • the electronic device can be a module capable of realizing communication functions or a terminal device including the module.
  • the terminal device can be a mobile terminal or a smart terminal.
  • the mobile terminal can be at least one of a mobile phone, a tablet computer, a notebook computer, etc.;
  • the smart terminal can be a smart car, a smart watch, a shared bicycle, a smart cabinet, and other terminals containing a wireless communication module;
  • the module can specifically be a wireless communication module.
  • Group such as any one of 2G communication module, 3G communication module, 4G communication module, 5G communication module, NB-IOT communication module, etc.
  • the communication bus 1103 mentioned in the above electronic equipment may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 1103 can be divided into an address bus, a data bus, a control bus, etc. For ease of presentation, only one thick line is used in Figure 11, but it does not mean that there is only one bus or one type of bus.
  • the memory 1102 may include random access memory (Random Access Memory, RAM for short), or may include non-volatile memory (non-volatile memory), such as at least one disk memory.
  • RAM Random Access Memory
  • non-volatile memory such as at least one disk memory.
  • the memory may also be at least one storage device located remotely from the aforementioned processor 1101.
  • the above-mentioned processor 1101 can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc., or it can also be a digital signal processor (Digital Signal Processing, referred to as DSP). ), Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium.
  • the computer program When the computer program is run on a computer, it causes the computer to execute the multi-PDN described in the above embodiments. Dial-up configuration method, or multi-PDN dial-up method.
  • this may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, processes or functions described in accordance with embodiments of the present disclosure are produced in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, e.g., from a website, computer, server, or data center via a wireline (e.g., Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.) to another website, computer, server or data center for transmission.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the available media may be magnetic media (such as floppy disks, hard disks, magnetic tapes, etc.), optical media (such as DVDs), or semiconductor media (such as solid state drives).

Landscapes

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

Abstract

本公开涉及PDN拨号及配置方法、系统、装置、设备及存储介质;其中,所述配置方法包括:获取上位机发送的至少两个PDN的拨号激活指令;其中,所述上位机用于建立与各所述拨号激活指令各自对应的局域网虚拟网卡;建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡用于与外部基站进行数据通信;为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机。

Description

PDN拨号及配置方法、系统、装置、设备及存储介质
相关申请的引用
本公开要求于2022年5月16日向中华人民共和国国家知识产权局提交的申请号为202210528321.3、发明名称为“PDN拨号及配置方法、系统、装置、设备及存储介质”的发明专利的优先权,并通过引用的方式将其全部内容并入本公开。
领域
本公开大体上涉及通信技术领域,更具体地涉及PDN拨号及配置方法、系统、装置、设备及存储介质。
背景
随着物联网技术的不断发展,需要在通信模组中建立多个并行的数据业务连接,且不同的连接所使用的QoS参数(服务质量参数)以及访问的目标网络都有可能不同,也就是说一个通信模组可能存在多个PDP(分组报文协议)上下文。
在很多情况中,通信模组需要通过RGMII(Reduced Gigabit Media Independent Interface,Reduced GMII,吉比特介质独立接口)和上位机连接,通信模组通过RGMII和上位机连接后,只能实现单路拨号,无法实现多路拨号的功能。
概述
一方面,本公开实施例提供了多PDN拨号的配置方法,其适用于通信模组,所述第方法包括:
获取上位机发送的至少两个PDN的拨号激活指令;其中,所述上位机用于建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡用于与外部基站进行数据通信;
为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;以及
发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机。
在某些实施方案中,所述获取上位机发送的至少两个PDN的拨号激活指令之后,所述为各所述局域网虚拟网卡分别创建各自的虚拟网桥之前,还包括:
判定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成。
在某些实施方案中,所述判定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成,包括:
获取所述上位机发送的确认指令;其中,所述确认指令用于指示所述上位机已建立与各所述拨号激活指令各自对应的局域网虚拟网卡,则根据所述确认指令确定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成;
或者,
向所述上位机发送查询指令;其中,所述查询指令用于向所述上位机请求是否已建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
获取针对所述查询指令的反馈信息;若所述反馈信息指示所述上位机已建立与各所述拨号激活指令各自对应的局域网虚拟网卡,则根据所述反馈信息确定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成。
在某些实施方案中,所述为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址,包括:
启动DNSmasq进程;以及
基于所述DNSmasq进程,为各所述局域网虚拟网卡分配各自的IP地址。
第二方面,本公开实施例提供了多PDN拨号的配置方法,其适用于上位机,所述方法包括:
向通信模组发送至少两个PDN的拨号激活指令;
建立与各所述拨号激活指令各自对应的局域网虚拟网卡;其中,所述通信模组用于建立各所述拨号激活指令各自对应的PDN虚拟网卡;为各所述局域网虚拟网卡创建各自的虚拟网桥,并为与所述虚拟网桥对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;所述PDN虚拟网卡用于与外部基站进行数据通信;以及
获取所述通信模组发送的各所述局域网虚拟网卡各自对应的IP地址。
第三方面,本公开实施例提供了PDN拨号方法,其适用于通信模组,所述通信模组基于第一方面所述的多PDN拨号的配置方法预先配置好;所述方法包括:
获取上位机发送的至少两个分配IP地址的请求;
从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;以及
对于每个所述目标IP地址,获取所述上位机利用所述目标IP地址对应的局域网虚拟网卡发送的待发送的数据;将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
第四方面,本公开实施例提供了PDN拨号方法,其适用于上位机,所述上位机基于第二方面所述的多PDN拨号的配置方法预先配置好;所述方法包括:
向通信模组发送至少两个分配IP地址的请求;其中,所述通信模组用于从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
获取所述通信模组发送的各所述目标IP地址;以及
对于每个所述目标IP地址,利用所述目标IP地址对应的局域网虚拟网卡将待发送的数据发送至所述通信模组;
其中,所述通信模组配置为对于每个所述目标IP地址,将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
第五方面,本公开实施例提供了多PDN拨号的配置系统,其包括:上位机和通信模组;
所述上位机,配置为发送至少两个PDN的拨号激活指令至所述通信模组,并建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
所述通信模组,配置为建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡用于与外部基站进行数据通信;为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机;以及
所述上位机,配置为获取各所述IP地址,并为各所述局域网虚拟网卡配置各自的IP地址。
第六方面,本公开实施例提供了多PDN拨号系统,其包括:上位机和通信模组;其中,所述通信模组基于第一方面所述的多PDN拨号的配置方法预先配置好;所述上位机基于第二方面所述的多PDN拨号的配置方法预先配置好;
所述上位机,配置为向通信模组发送至少两个分配IP地址的请求;
所述通信模组,配置为从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
所述上位机,配置为对于每个所述目标IP地址,利用所述目标IP地址对应的局域网虚拟网卡将待发送的数据发送至所述通信模组;以及
所述通信模组,配置为对于每个所述目标IP地址,将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
第七方面,本公开实施例提供了多PDN拨号的配置装置,其适用于通信模组,所述装置包括:
第一获取模块,配置为获取上位机发送的至少两个PDN的拨号激活指令;其中,所述上位机用于建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
第一建立模块,配置为建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡用于与外部基站进行数据通信;
创建模块,配置为为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;以及
第一发送模块,配置为发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机。
第八方面,本公开实施例提供了多PDN拨号的配置装置,其适用于上位机,所述方法包括:
第二发送模块,配置为向通信模组发送至少两个PDN的拨号激活指令;
第二建立模块,配置为建立与各所述拨号激活指令各自对应的局域网虚拟网卡;其中,所述通信模组用于建立各所述拨号激活指令各自对应的PDN虚拟网卡;为各所述局域网虚拟网卡创建各自的虚拟网桥,并为与所述虚拟网桥对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;所述PDN虚拟网卡用于与外部基站进行数据通信;以及
第二获取模块,配置为获取所述通信模组发送的各所述局域网虚拟网卡各自对应的IP地址。
第九方面,本公开实施例提供了PDN拨号装置,其适用于通信模组,所述通信模组基于第一方面所述的多PDN拨号的配置方法预先配置好;所述装置包括:
第三获取模块,配置为获取上位机发送的至少两个分配IP地址的请求;
分配模块,配置为从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;以及
处理模块,配置为对于每个所述目标IP地址,获取所述上位机利用所述目标IP地址对应的局域网虚拟网卡发送的待发送的数据;将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
第十方面,本公开实施例提供了PDN拨号装置,其适用于上位机,所述上位机基于第二方面所述的多PDN拨号的配置方法预先配置好;所述装置包括:
第三发送模块,配置为向通信模组发送至少两个分配IP地址的请求;其中,所述通信模组配置为从预先为所述上位机中各局域网虚拟 网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
第四获取模块,配置为获取所述通信模组发送的各所述目标IP地址;以及
第四发送模块,配置为对于每个所述目标IP地址,利用所述目标IP地址对应的局域网虚拟网卡将待发送的数据发送至所述通信模组;
其中,所述通信模组配置为对于每个所述目标IP地址,将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
第十一方面,本公开实施例提供了电子设备,其包括:处理器、存储器和通信总线,其中,所述处理器和所述存储器通过所述通信总线完成相互间的通信;
所述存储器,配置为存储计算机程序;
所述处理器,配置为执行所述存储器中所存储的程序,实现第一方面所述的多PDN拨号的配置方法,或,第二方面所述的多PDN拨号的配置方法,或,第三方面所述的PDN拨号方法,或,第四方面所述的PDN拨号方法。
第十二方面,本公开实施例提供了计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的多PDN拨号的配置方法,或,第二方面所述的多PDN拨号的配置方法,或,第三方面所述的PDN拨号方法,或,第四方面所述的PDN拨号方法。
本公开实施例提供的该方法,建立各拨号激活指令各自对应的PDN虚拟网卡;为各局域网虚拟网卡分别创建各自的虚拟网桥,并为与虚拟网桥各自对应的局域网虚拟网卡分配IP地址,实现了建立多PDN虚拟网卡、网桥管理和路由配置,完成了针对多PDN拨号时所需的配置,为实现多PDN拨号实现提供了可能。
附图简要说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开一实施例提供的适用于通信模组的多PDN拨号的配置方法的流程示意图;
图2为本公开一实施例提供的适用于上位机的多PDN拨号的配置方法的流程示意图;
图3为本公开一实施例提供的适用于通信模组的PDN拨号方法的 流程示意图;
图4为本公开一实施例提供的适用于上位机的PDN拨号方法的流程示意图;
图5为本公开一实施例提供的多PDN拨号及配置系统的结构示意图;
图6为本公开一实施例提供的实现多PDN拨号及配置的具体实例的示意图;
图7为本公开一实施例提供的适用于通信模组的多PDN拨号的配置装置的结构示意图;
图8为本公开一实施例提供的适用于上位机的多PDN拨号的配置装置的结构示意图;
图9为本公开一实施例提供的适用于通信模组的PDN拨号装置的结构示意图;
图10为本公开一实施例提供的适用于上位机的PDN拨号装置的结构示意图;以及
图11为本公开一实施例提供的电子设备的结构示意图。
详述
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
在某些实施方案中,通过拨号建立多PDN(Packet Data Network,分组数据网络)网卡,实现对虚拟局域网(VLAN)的管理、网桥管理和路由配置等,从而实现了上位机通过RGMII接口多PDN拨号的需求。
下面主要从实现多路拨号的配置方法和多路拨号的实现方法两个方面对本公开实施例提供的技术方案进行说明。
首先,从实现多路拨号的配置方法进行说明,如图1所示,本公开实施例提供了多PDN拨号的配置方法,适用于通信模组,该方法包括如下步骤:
步骤101,获取上位机发送的至少两个PDN的拨号激活指令;其中,上位机配置为建立与各拨号激活指令各自对应的局域网虚拟网卡;
步骤102,建立各拨号激活指令各自对应的PDN虚拟网卡;其中,PDN虚拟网卡配置为与外部基站进行数据通信;
步骤103,为各局域网虚拟网卡分别创建各自的虚拟网桥,并为与虚拟网桥各自对应的局域网虚拟网卡分配IP地址;其中,每个虚拟网桥对应一个PDN虚拟网卡;以及
步骤104,发送各局域网虚拟网卡各自对应的IP地址至上位机。
在某些实施方案中,可以通过AT指令来实现上位机和通信模组之间的通信,在某些实施方案中,在上位机上输入AT+GTRNIDS=1,1和 AT+GTRNIDS=1,2,之后通过AT指令接口(AT port)发送到通信模组上,以激活实现多PDN拨号的配置过程。同时,上位机根据拨号激活指令,在上位机上建立与各拨号激活指令一一对应的局域网虚拟网卡。在某些实施方案中,如果上位机上输入上述2个指令,则在上位机上建立2个局域网虚拟网卡,且每个指令均对应一个局域网虚拟网卡,建立两个局域网虚拟网卡eth0.1和eth0.2。
在某些实施方案中,通信模组收到拨号激活指令后,在通信模组上建立PDN虚拟网卡,且建立的PDN虚拟网卡的数量和拨号激活指令的数量是相同的,每个拨号激活指令均对应一个PDN虚拟网卡,在某些实施方案中,如果上位机上输入上述2个指令,则通信模组接收到上述2个指令后,则在通信模组上建立2个PDN虚拟网卡。与外部基站数据通信就是通过PDN虚拟网卡实现的。
在某些实施方案中,通过创建网桥,开启IPv6转发功能。每个局域网虚拟网卡均对应一个虚拟网桥,在某些实施方案中,上述的建立了两个局域网虚拟网卡,则虚拟网桥的数量也是两个,且每个局域网虚拟网卡均对应一个虚拟网桥。
在创建虚拟网桥之前,需要判断上位机是否已经创建各局域网虚拟网卡,在某些实施方案中,在获取上位机发送的至少两个PDN的拨号激活指令之后,为各局域网虚拟网卡分别创建各自的虚拟网桥之前,还包括:判定与各拨号激活指令各自对应的局域网虚拟网卡已生成。如果判定上位机已成功建立与各拨号激活指令各自对应的局域网虚拟网卡的话,则为各局域网虚拟网卡分别创建各自的虚拟网桥。
在某些实施方案中,上位机可以主动报备当前是否已经建立好各局域网虚拟网卡,如果通信模组接收到上位机发送的确认指令;其中,确认指令用于指示上位机已建立与各拨号激活指令各自对应的局域网虚拟网卡,则根据确认指令确定与各拨号激活指令各自对应的局域网虚拟网卡已生成。
此外,还可以由通信模组向上位机发送查询指令,以查询上位机是否已经建立好各局域网虚拟网卡,在某些实施方案中,由通信模组向上位机发送查询指令;其中,查询指令用于向上位机请求是否已建立与各拨号激活指令各自对应的局域网虚拟网卡;获取针对查询指令的反馈信息;若反馈信息指示上位机已建立与各拨号激活指令各自对应的局域网虚拟网卡,则根据反馈信息确定与各拨号激活指令各自对应的局域网虚拟网卡已生成。
在某些实施方案中,可以采用上述任何一种方法来确定局域网虚拟网卡是否已经存在,当然也可以采用其他方法确定,在本公开实施例中并不做限定。
在分配IP地址时,启动DNSmasq进程,基于DNSmasq进程,为各局域网虚拟网卡分配各自的IP地址。
每个局域网虚拟网卡均配置了各自的IP地址,上位机收到各IP地址后,分别配置给各局域网虚拟网卡,至此完成了配置阶段的流程。此时,建立了局域网虚拟网卡、IP地址、虚拟网桥、PDN虚拟网卡之间的对应关系。在后续利用多PDN拨号实现通信时,需要用到该对应 关系。
在某些实施方案中,建立各拨号激活指令各自对应的PDN虚拟网卡;为各局域网虚拟网卡分别创建各自的虚拟网桥,并为与虚拟网桥各自对应的局域网虚拟网卡分配IP地址,实现了建立多PDN虚拟网卡、网桥管理和路由配置,完成了针对多PDN拨号时所需的配置,为实现多PDN拨号实现提供了可能。
此外,本公开实施例还提供了多PDN拨号的配置方法,适用于上位机,如图2所示,该方法主要包括如下步骤:
步骤201,向通信模组发送至少两个PDN的拨号激活指令;
步骤202,建立与各拨号激活指令各自对应的局域网虚拟网卡;其中,通信模组用于建立各拨号激活指令各自对应的PDN虚拟网卡;为各局域网虚拟网卡创建各自的虚拟网桥,并为与虚拟网桥对应的局域网虚拟网卡分配IP地址;其中,每个虚拟网桥对应一个PDN虚拟网卡;PDN虚拟网卡配置为与外部基站进行数据通信;以及
步骤203,获取通信模组发送的各局域网虚拟网卡各自对应的IP地址。
对于各步骤的理解可以参见上述实施例,这里不再展开描述。
以上为实现多PDN拨号的配置方法,下面对多PDN拨号的实现方法进行说明。
如图3所示,本公开实施例提供了PDN拨号方法,适用于通信模组,通信模组基于上述的适用于通信模组的多PDN拨号的配置方法预先配置好;该方法包括:
步骤301,获取上位机发送的至少两个分配IP地址的请求;
步骤302,从预先为上位机中各局域网虚拟网卡分配的IP地址中,分配与各请求分配各自对应的目标IP地址,并将各目标IP地址发送至上位机;以及
步骤303,对于每个目标IP地址,获取上位机利用目标IP地址对应的局域网虚拟网卡发送的待发送的数据;将目标IP地址转换为与外网通信时使用的外网IP地址;确定与目标IP地址对应的预先创建的虚拟网桥;确定与虚拟网桥对应的预先创建的PDN虚拟网卡;利用PDN虚拟网卡,根据外网IP地址,将待发送的数据发送至外部基站。
IP地址(Internet Protocol Address)是指互联网协议地址,又译为网际协议地址。在某些实施方案中,上位机可以通过DHCP(动态主机配置协议,Dynamic Host Configuration Protocol)客户端向通信模组的DHCP服务器请求分配IP地址。
为了便于理解,在某些实施方案中,如果在上述的配置阶段,为各局域网虚拟网卡配置了N个IP地址,N为正整数;则当上位机请求分配IP地址时,从配置阶段配置好的各IP地址中,分配与请求数量相同的IP地址。在某些实施方案中,上位机请求分配2个IP地址,则从预先配置好的IP地址中,分配2个目标IP地址给上位机。
其中,上位机收到目标IP地址之后,确定与该目标IP地址对应的局域网虚拟网卡,在某些实施方案中,2个目标IP地址对应的局域网虚拟网卡分别为eth0.1和eth0.2,则通过eth0.1和eth0.2发送待发送的 数据。
通信模组分配的IP地址都是192.168.开头的内网IP地址,仅仅开启IPv6转发功能和配置路由表无法实现外网和内网间通信,为了解决该问题就需要用到路由NAT(网络地址转换)技术,实现网络地址转换,以通过转换后的IP地址实现与外部基站的通信。
在某些实施方案中,实现了多PDN拨号时,对虚拟局域网管理和NAT路由管理,使得上位机通过RGMII实现多PDN拨号的需求,使得通信模组不仅支持RGMII单路拨号,也支持多路拨号,提升通信模组的应用范围和市场竞争力。
另外,如图4所示,本公开实施例还提供了PDN拨号方法,适用于上位机,上位机基于上述的适用于上位机的多PDN拨号的配置方法预先配置好;该方法包括:
步骤401,向通信模组发送至少两个分配IP地址的请求;其中,通信模组配置为从预先为上位机中各局域网虚拟网卡分配的IP地址中,分配与各请求分配各自对应的目标IP地址,并将各目标IP地址发送至上位机;
步骤402,获取通信模组发送的各目标IP地址;以及
步骤403,对于每个目标IP地址,利用目标IP地址对应的局域网虚拟网卡将待发送的数据发送至通信模组;
其中,通信模组配置为对于每个目标IP地址,将目标IP地址转换为与外网通信时使用的外网IP地址;确定与目标IP地址对应的预先创建的虚拟网桥;确定与虚拟网桥对应的预先创建的PDN虚拟网卡;利用PDN虚拟网卡,根据外网IP地址,将待发送的数据发送至外部基站。
对于各步骤的理解可以参见上述实施例,这里不再展开描述。
此外,如图5所示,本公开实施例还提供了多PDN拨号的配置系统500,其包括:上位机501和通信模组502;
上位机501,配置为发送至少两个PDN的拨号激活指令至通信模组502,并建立与各拨号激活指令各自对应的局域网虚拟网卡;
通信模组502,配置为建立各拨号激活指令各自对应的PDN虚拟网卡;其中,PDN虚拟网卡用于与外部基站进行数据通信;为各局域网虚拟网卡分别创建各自的虚拟网桥,并为与虚拟网桥对应的局域网虚拟网卡分配IP地址;其中,每个虚拟网桥对应一个PDN虚拟网卡;发送各局域网虚拟网卡各自对应的IP地址至上位机501;以及
上位机501,配置为获取各IP地址,并为各局域网虚拟网卡配置各自的IP地址。
对于上述各步骤的理解可以参考上述方法实施例,这里不再展开描述。
此外,本公开实施例还提供了多PDN拨号系统500,如图5所示,其包括:上位机501和通信模组502;其中,通信模组502基于上述的适用于通信模组502的多PDN拨号的配置方法预先配置好;上位机501基于上述的适用于上位机501的多PDN拨号的配置方法预先配置好;
上位机501,配置为向通信模组502发送至少两个分配IP地址的 请求;
通信模组502,配置为从预先为上位机501中各局域网虚拟网卡分配的IP地址中,分配与各请求分配各自对应的目标IP地址,并将各目标IP地址发送至上位机501;
上位机501,配置为对于每个目标IP地址,利用目标IP地址对应的局域网虚拟网卡将待发送的数据发送至通信模组;以及
通信模组502,配置为对于每个目标IP地址,将目标IP地址转换为与外网通信时使用的外网IP地址;确定与目标IP地址对应的预先创建的虚拟网桥;确定与虚拟网桥对应的预先创建的PDN虚拟网卡;利用PDN虚拟网卡,根据外网IP地址,将待发送的数据发送至外部基站503。
对于上述各步骤的理解可以参考上述方法实施例,这里不再展开描述。
为了便于理解本公开实施例提供的上述技术方案,下面结合图6对本公开实施例提供的技术方案作进一步说明。
如图6所示,左侧为上位机(HOST),中间为通信模组,该通信模组为无线通信模组,在某些实施方案中,可以采用高通生产的MDM(移动设备管理器);最右侧为外部基站。其中,上位机可以通过RGMII接口与MDM连接。多PDN拨号的实现方法主要包括如下步骤:
(1)输入AT+GTRNDIS=1,X拨号后,通信模组建立PDN虚拟网卡rmnet_dataX,与外部基站数据通信的接口就是通过此网卡。其中,X代表数量。同时,上位机创建eth0.X。
(2)创建网桥bridgeX,开启网桥IPV6转发功能:判断eth0.X是否存在,如果存在,则建立eth0.X与网桥bridgeX之间的关联关系;然后,启动DNSmasq进程,分配IP地址给上位机HOST;
(3)上位机通过DHCP客户端向通信模组的DHCP服务器请求分配IP地址;
(4)分配IP地址后,启动路由NAT管理,模块对外分配的IP网段都是192.168打头的内网IP地址,仅仅开启转发功能和配置路由表也无法实现外网和内网间通信,为了解决该问题就需要用到NAT技术来实现网络地址转换。
(5)以转换后的IP地址发送数据。
还需要说明的是,图6的FIBO-FWA模块主要实现上述的(1)至(5)中对VLAN的管理,网桥管理和路由配置等。
在某些实施方案中,通信模组不仅支持RMGII单路拨号,还实现了多PDN拨号时对VLAN管理,网桥管理以及NAT路由的管理,实现上位机通过RGMII的多PDN拨号的需求,可以满足市场中对于RGMII多PDN拨号的需求,提升了通信模组的竞争力。
此外,如图7所示,本公开实施例还提供了多PDN拨号的配置装置700,其适用于通信模组,所述装置包括:
第一获取模块701,配置为获取上位机发送的至少两个PDN的拨号激活指令;其中,所述上位机配置为建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
第一建立模块702,配置为建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡用于与外部基站进行数据通信;
创建模块703,配置为为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;以及
第一发送模块704,配置为发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机。
在某些实施方案中,本公开实施例提供的多PDN拨号的配置装置还包括:判定模块,配置为在所述获取上位机发送的至少两个PDN的拨号激活指令之后,所述为各所述局域网虚拟网卡分别创建各自的虚拟网桥之前,判定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成。
在某些实施方案中,判定模块,配置为获取所述上位机发送的确认指令;其中,所述确认指令用于指示所述上位机已建立与各所述拨号激活指令各自对应的局域网虚拟网卡,则根据所述确认指令确定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成;或者,向所述上位机发送查询指令;其中,所述查询指令用于向所述上位机请求是否已建立与各所述拨号激活指令各自对应的局域网虚拟网卡;获取针对所述查询指令的反馈信息;若所述反馈信息指示所述上位机已建立与各所述拨号激活指令各自对应的局域网虚拟网卡,则根据所述反馈信息确定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成。
在某些实施方案中,创建模块703,配置为启动DNSmasq进程;基于所述DNSmasq进程,为各所述局域网虚拟网卡分配各自的IP地址。
此外,如图8所示,本公开实施例提供了多PDN拨号的配置装置800,适用于上位机,所述方法包括:
第二发送模块801,配置为向通信模组发送至少两个PDN的拨号激活指令;
第二建立模块802,配置为建立与各所述拨号激活指令各自对应的局域网虚拟网卡;其中,所述通信模组用于建立各所述拨号激活指令各自对应的PDN虚拟网卡;为各所述局域网虚拟网卡创建各自的虚拟网桥,并为与所述虚拟网桥对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;所述PDN虚拟网卡用于与外部基站进行数据通信;
第二获取模块803,配置为获取所述通信模组发送的各所述局域网虚拟网卡各自对应的IP地址。
如图9所示,本公开实施例提供了PDN拨号装置900,适用于通信模组,所述通信模组基于上述的多PDN拨号的配置方法预先配置好;所述装置包括:
第三获取模块901,配置为获取上位机发送的至少两个分配IP地址的请求;
分配模块902,配置为从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
处理模块903,配置为对于每个所述目标IP地址,获取所述上位机利用所述目标IP地址对应的局域网虚拟网卡发送的待发送的数据;将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
如图10所示,本公开实施例提供了多PDN拨号装置1000,适用于上位机,所述上位机基于上述的多PDN拨号的配置方法预先配置好;所述装置包括:
第三发送模块1001,配置为向通信模组发送至少两个分配IP地址的请求;其中,所述通信模组配置为从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
第四获取模块1002,配置为获取所述通信模组发送的各所述目标IP地址;以及
第四发送模块1003,配置为对于每个所述目标IP地址,利用所述目标IP地址对应的局域网虚拟网卡将待发送的数据发送至所述通信模组;
其中,所述通信模组配置为对于每个所述目标IP地址,将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
基于同一构思,本公开实施例中还提供了电子设备1100,如图11所示,该电子设备1100主要包括:处理器1101、存储器1102和通信总线1103,其中,处理器1101和存储器1102通过通信总线1103完成相互间的通信。其中,存储器1102中存储有可被至处理器1101执行的程序,处理器1101执行存储器1102中存储的程序,实现如下步骤:
获取上位机发送的至少两个PDN的拨号激活指令;其中,所述上位机用于建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡用于与外部基站进行数据通信;
为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;
发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机;
或者,
获取上位机发送的至少两个分配IP地址的请求;
从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发 送至所述上位机;
对于每个所述目标IP地址,获取所述上位机利用所述目标IP地址对应的局域网虚拟网卡发送的待发送的数据;将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
本公开实施例中所提供的方法可以应用于电子设备1100中,该电子设备可以为能够实现通信功能的模组或包含该模组的终端设备等,该终端设备可以为移动终端或智能终端。移动终端可以为手机、平板电脑、笔记本电脑等中的至少一种;智能终端可以是智能汽车、智能手表、共享单车、智能柜等含有无线通信模组的终端;模组具体可以为无线通信模组,例如2G通信模组、3G通信模组、4G通信模组、5G通信模组、NB-IOT通信模组等中的任意一种。
上述电子设备中提到的通信总线1103可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该通信总线1103可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器1102可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器1101的存储装置。
上述的处理器1101可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等,还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
在某些实施方案中,还提供了计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,使得计算机执行上述实施例中所描述的多PDN拨号的配置方法,或,多PDN拨号方法。
在某些实施方案中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本公开实施例所述的流程或功能。该计算机可以时通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另外一个网站站点、计算机、服务器 或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带等)、光介质(例如DVD)或者半导体介质(例如固态硬盘)等。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (15)

  1. 多PDN拨号的配置方法,其适用于通信模组,所述方法包括:
    获取上位机发送的至少两个PDN的拨号激活指令;其中,所述上位机配置为建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
    建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡配置为与外部基站进行数据通信;
    为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;以及
    发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机。
  2. 如权利要求1所述的多PDN拨号的配置方法,其中,所述获取上位机发送的至少两个PDN的拨号激活指令之后,所述为各所述局域网虚拟网卡分别创建各自的虚拟网桥之前,还包括:
    判定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成。
  3. 如权利要求2所述的多PDN拨号的配置方法,其中,所述判定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成,包括:
    获取所述上位机发送的确认指令;其中,所述确认指令配置为指示所述上位机已建立与各所述拨号激活指令各自对应的局域网虚拟网卡,则根据所述确认指令确定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成;
    或者,
    向所述上位机发送查询指令;其中,所述查询指令配置为向所述上位机请求是否已建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
    获取针对所述查询指令的反馈信息;若所述反馈信息指示所述上位机已建立与各所述拨号激活指令各自对应的局域网虚拟网卡,则根据所述反馈信息确定与各所述拨号激活指令各自对应的局域网虚拟网卡已生成。
  4. 如权利要求1至3中任一权利要求所述的多PDN拨号的配置方法,其中,所述为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址,包括:
    启动DNSmasq进程;以及
    基于所述DNSmasq进程,为各所述局域网虚拟网卡分配各自的IP地址。
  5. 多PDN拨号的配置方法,其适用于上位机,所述方法包括:
    向通信模组发送至少两个PDN的拨号激活指令;
    建立与各所述拨号激活指令各自对应的局域网虚拟网卡;其中,所述通信模组配置为建立各所述拨号激活指令各自对应的PDN虚拟网卡;为各所述局域网虚拟网卡创建各自的虚拟网桥,并为与所述虚拟网桥对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;所述PDN虚拟网卡配置为与外部基站进行数据通信;以及
    获取所述通信模组发送的各所述局域网虚拟网卡各自对应的IP地址。
  6. PDN拨号方法,其适用于通信模组,所述通信模组基于权利要求1至4中任一权利要求所述的多PDN拨号的配置方法预先配置好;所述方法包括:
    获取上位机发送的至少两个分配IP地址的请求;
    从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;以及
    对于每个所述目标IP地址,获取所述上位机利用所述目标IP地址对应的局域网虚拟网卡发送的待发送的数据;将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
  7. PDN拨号方法,其适用于上位机,所述上位机基于权利要求5所述的多PDN拨号的配置方法预先配置好;所述方法包括:
    向通信模组发送至少两个分配IP地址的请求;其中,所述通信模组配置为从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
    获取所述通信模组发送的各所述目标IP地址;以及
    对于每个所述目标IP地址,利用所述目标IP地址对应的局域网虚拟网卡将待发送的数据发送至所述通信模组;
    其中,所述通信模组配置为对于每个所述目标IP地址,将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
  8. 多PDN拨号的配置系统,其包括:上位机和通信模组;
    所述上位机,配置为发送至少两个PDN的拨号激活指令至所述通信模组,并建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
    所述通信模组,配置为建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡配置为与外部基站进行数据通信;为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机;以及
    所述上位机,配置为获取各所述IP地址,并为各所述局域网虚拟网卡配置各自的IP地址。
  9. 多PDN拨号系统,其包括:上位机和通信模组;其中,所述通信模组基于权利要求1至4中任一权利要求所述的多PDN拨号的配置方法预先配置好;所述上位机基于权利要求5所述的多PDN拨号的配置方法预先配置好;
    所述上位机,配置为向通信模组发送至少两个分配IP地址的请求;
    所述通信模组,配置为从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
    所述上位机,配置为对于每个所述目标IP地址,利用所述目标IP地址对应的局域网虚拟网卡将待发送的数据发送至所述通信模组;以及
    所述通信模组,配置为对于每个所述目标IP地址,将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
  10. 多PDN拨号的配置装置,其适用于通信模组,所述装置包括:
    第一获取模块,配置为获取上位机发送的至少两个PDN的拨号激活指令;其中,所述上位机用于建立与各所述拨号激活指令各自对应的局域网虚拟网卡;
    第一建立模块,配置为建立各所述拨号激活指令各自对应的PDN虚拟网卡;其中,所述PDN虚拟网卡用于与外部基站进行数据通信;
    创建模块,配置为为各所述局域网虚拟网卡分别创建各自的虚拟网桥,并为与所述虚拟网桥各自对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;以及
    第一发送模块,配置为发送各所述局域网虚拟网卡各自对应的IP地址至所述上位机。
  11. 多PDN拨号的配置装置,其适用于上位机,所述方法包括:
    第二发送模块,配置为向通信模组发送至少两个PDN的拨号激活指令;
    第二建立模块,配置为建立与各所述拨号激活指令各自对应的局域网虚拟网卡;其中,所述通信模组配置为建立各所述拨号激活指令各自对应的PDN虚拟网卡;为各所述局域网虚拟网卡创建各自的虚拟网桥,并为与所述虚拟网桥对应的所述局域网虚拟网卡分配IP地址;其中,每个所述虚拟网桥对应一个所述PDN虚拟网卡;所述PDN虚拟网卡配置为与外部基站进行数据通信;以及
    第二获取模块,配置为获取所述通信模组发送的各所述局域网虚拟网卡各自对应的IP地址。
  12. PDN拨号装置,其适用于通信模组,所述通信模组基于权利要求1至4中任一权利要求所述的多PDN拨号的配置方法预先配置好;所述装置包括:
    第三获取模块,配置为获取上位机发送的至少两个分配IP地址的请求;
    分配模块,配置为从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;以及
    处理模块,配置为对于每个所述目标IP地址,获取所述上位机利用所述目标IP地址对应的局域网虚拟网卡发送的待发送的数据;将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
  13. PDN拨号装置,其适用于上位机,所述上位机基于权利要求5所述的多PDN拨号的配置方法预先配置好;所述装置包括:
    第三发送模块,配置为向通信模组发送至少两个分配IP地址的请求;其中,所述通信模组用于从预先为所述上位机中各局域网虚拟网卡分配的IP地址中,分配与各所述请求分配各自对应的目标IP地址,并将各所述目标IP地址发送至所述上位机;
    第四获取模块,配置为获取所述通信模组发送的各所述目标IP地址;以及
    第四发送模块,配置为对于每个所述目标IP地址,利用所述目标IP地址对应的局域网虚拟网卡将待发送的数据发送至所述通信模组;
    其中,所述通信模组配置为对于每个所述目标IP地址,将所述目标IP地址转换为与外网通信时使用的外网IP地址;确定与所述目标IP地址对应的预先创建的虚拟网桥;确定与所述虚拟网桥对应的预先创建的PDN虚拟网卡;利用所述PDN虚拟网卡,根据所述外网IP地址,将所述待发送的数据发送至外部基站。
  14. 电子设备,其包括:处理器、存储器和通信总线,其中,所述处理器和所述存储器通过所述通信总线完成相互间的通信;
    所述存储器,配置为存储计算机程序;以及
    所述处理器,配置为执行所述存储器中所存储的程序,实现权利要求1至4中任一权利要求所述的多PDN拨号的配置方法,或,权利要求5所述的多PDN拨号的配置方法,或,权利要求6所述的PDN拨号方法,或,权利要求7所述的PDN拨号方法。
  15. 计算机可读存储介质,其存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至4中任一权利要求所述的多PDN拨号的配置方法,或,权利要求5所述的多PDN拨号的配置方法,或,权利要求6所述的PDN拨号方法,或,权利要求7所述的PDN拨号方法。
PCT/CN2023/088628 2022-05-16 2023-04-17 Pdn拨号及配置方法、系统、装置、设备及存储介质 WO2023221708A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210528321.3A CN115174310B (zh) 2022-05-16 2022-05-16 Pdn拨号及配置方法、系统、装置、设备及存储介质
CN202210528321.3 2022-05-16

Publications (1)

Publication Number Publication Date
WO2023221708A1 true WO2023221708A1 (zh) 2023-11-23

Family

ID=83483570

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/088628 WO2023221708A1 (zh) 2022-05-16 2023-04-17 Pdn拨号及配置方法、系统、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN115174310B (zh)
WO (1) WO2023221708A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174310B (zh) * 2022-05-16 2024-04-05 深圳市广和通无线通信软件有限公司 Pdn拨号及配置方法、系统、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153793A1 (en) * 2007-05-29 2011-06-23 Computer Associates Think, Inc. System and method for creating a secure tunnel for communications over a network
WO2019157943A1 (zh) * 2018-02-13 2019-08-22 西安中兴新软件有限责任公司 车载数据传输方法及装置、车载远程信息处理器
CN114257568A (zh) * 2021-12-09 2022-03-29 深圳市广和通无线股份有限公司 数据传输方法及相关设备
CN114449113A (zh) * 2022-01-12 2022-05-06 西安广和通无线通信有限公司 数据拨号方法、装置、计算机设备和计算机可读存储介质
CN115174310A (zh) * 2022-05-16 2022-10-11 深圳市广和通无线通信软件有限公司 Pdn拨号及配置方法、系统、装置、设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231878B (zh) * 2011-06-21 2017-09-29 中兴通讯股份有限公司 数据卡启动方法及数据卡
CN105282872A (zh) * 2014-06-17 2016-01-27 中兴通讯股份有限公司 一种无线终端接入装置及其工作方法
US20180006843A1 (en) * 2016-06-30 2018-01-04 Motorola Solutions, Inc Method for routing data between a tethered device and multiple packet data networks
EP3823357B1 (en) * 2018-07-20 2022-08-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Session management method, terminal device and network device
CN112584393B (zh) * 2019-09-27 2022-07-22 上海华为技术有限公司 一种基站配置方法、装置、设备及介质
CN111130838B (zh) * 2019-10-17 2023-06-16 国电南瑞科技股份有限公司 一种进程级服务实例动态扩展及网络带宽限制方法及装置
CN113938353A (zh) * 2020-06-29 2022-01-14 中兴通讯股份有限公司 室内机与室外机之间的多pdn实现方法及存储介质
CN113726637B (zh) * 2021-09-09 2022-11-01 华云数据控股集团有限公司 一种基于云平台的网络流量透传方法、装置及存储介质
CN114501593B (zh) * 2021-12-29 2024-04-05 西安广和通无线软件有限公司 网络切片接入方法、装置、系统和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153793A1 (en) * 2007-05-29 2011-06-23 Computer Associates Think, Inc. System and method for creating a secure tunnel for communications over a network
WO2019157943A1 (zh) * 2018-02-13 2019-08-22 西安中兴新软件有限责任公司 车载数据传输方法及装置、车载远程信息处理器
CN114257568A (zh) * 2021-12-09 2022-03-29 深圳市广和通无线股份有限公司 数据传输方法及相关设备
CN114449113A (zh) * 2022-01-12 2022-05-06 西安广和通无线通信有限公司 数据拨号方法、装置、计算机设备和计算机可读存储介质
CN115174310A (zh) * 2022-05-16 2022-10-11 深圳市广和通无线通信软件有限公司 Pdn拨号及配置方法、系统、装置、设备及存储介质

Also Published As

Publication number Publication date
CN115174310A (zh) 2022-10-11
CN115174310B (zh) 2024-04-05

Similar Documents

Publication Publication Date Title
WO2021057889A1 (zh) 一种数据处理方法、装置、电子设备及存储介质
JP7282146B2 (ja) Brasシステムベースのパケットカプセル化方法および装置
US9860195B2 (en) Method and system of providing carrier grade NAT (CGN) to a subset of a subscriber base
EP2536092A1 (en) Method and device for port mapping, and communications system
EP3742785B1 (en) Session management method and device
CN112235175B (zh) 一种网桥设备的访问方法、访问装置及网桥设备
TW201933853A (zh) 使用者終端和設備的綁定方法、裝置和系統
WO2023221708A1 (zh) Pdn拨号及配置方法、系统、装置、设备及存储介质
WO2011150883A2 (zh) 一种终端批量升级方法及装置
WO2020108438A1 (zh) 一种接入系统、方法及装置
WO2015051706A1 (zh) 多apn网络并发联网的多apn通道管理方法
WO2015051703A1 (zh) 有序管理多路apn并发联网数据传输通道的方法
CN114025009B (zh) 转发请求的方法、系统、代理服务器和装置
WO2016086544A1 (zh) 网络设备的网口配置方法、装置及存储介质
WO2024114022A1 (zh) 会话控制方法、系统及smf网元
EP3706373B1 (en) Establishing a vxlan between a wireless access point and a node
CN112689029A (zh) 一种获取群组用户的ip地址的方法和装置及设备
WO2024000975A1 (zh) 一种会话建立系统、方法、电子设备及存储介质
WO2015058413A1 (zh) 一种数据配置方法及网络管理服务器
WO2018214831A1 (zh) 一种注册方法及装置
US11909624B2 (en) Communication method, apparatus, device, system, and computer-readable storage medium
WO2022037509A1 (zh) 一种接入控制方法及装置
EP4297452A1 (en) Information processing method and apparatus, and related device and storage medium
CN112261165B (zh) 通信方法、系统、装置、计算机设备和存储介质
WO2023030300A1 (zh) 网络地址转换的方法和装置

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: 23806661

Country of ref document: EP

Kind code of ref document: A1