[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115396510A - Communication method and communication module - Google Patents

Communication method and communication module Download PDF

Info

Publication number
CN115396510A
CN115396510A CN202210971467.5A CN202210971467A CN115396510A CN 115396510 A CN115396510 A CN 115396510A CN 202210971467 A CN202210971467 A CN 202210971467A CN 115396510 A CN115396510 A CN 115396510A
Authority
CN
China
Prior art keywords
application
address
side device
core network
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210971467.5A
Other languages
Chinese (zh)
Other versions
CN115396510B (en
Inventor
郭章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Guanghetong Wireless Communication Co ltd
Original Assignee
Xi'an Guanghetong Wireless Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Guanghetong Wireless Communication Co ltd filed Critical Xi'an Guanghetong Wireless Communication Co ltd
Priority to CN202210971467.5A priority Critical patent/CN115396510B/en
Publication of CN115396510A publication Critical patent/CN115396510A/en
Priority to PCT/CN2023/110890 priority patent/WO2024032450A1/en
Application granted granted Critical
Publication of CN115396510B publication Critical patent/CN115396510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

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

Abstract

The application provides a communication method and a communication module, which are applied to the communication module, wherein the communication module is at least connected with a first application side device and a second application side device, and the method comprises the following steps: receiving a first activation request sent by the first application side equipment through a first APN, and forwarding the first activation request to a core network; receiving a first IP address fed back by the core network in response to the first activation request, and forwarding the first IP address to the first application side device; receiving a second activation request sent by the second application side equipment through the first APN; and responding to the second activation request, and feeding back the first IP address to the second application-side equipment. Therefore, the communication requirement that a plurality of application side devices are connected with the same communication module through the same APN for networking is met, and the communication efficiency is improved.

Description

Communication method and communication module
Technical Field
The present application relates to the field of computers, and in particular, to a communication method and a communication module.
Background
Based on the internet, the internet of things can connect a plurality of physical devices to the internet to collect and share data.
Generally, in a multi-connection scenario of the internet of things, one communication module modem can be connected with one or more external devices. In some situations, for example, when a first external device connected to the modem is consistent with an APN corresponding to a server to which a second external device needs to access, and the first external device is already networked through the first APN, if the second external device initiates a networking request to the core network through the second APN, a networking failure may occur.
Therefore, under the multi-connection situation of the internet of things, the modem cannot meet the network requirements of a plurality of external devices at the same time, and the communication efficiency needs to be improved.
Disclosure of Invention
In a first aspect, the present application provides a communication method applied to a communication module, where the communication module is connected to at least a first application-side device and a second application-side device, and the method includes: receiving a first activation request sent by the first application side equipment through a first APN, and forwarding the first activation request to a core network; receiving a first IP address fed back by the core network in response to the first activation request, and forwarding the first IP address to the first application side device; receiving a second activation request sent by the second application side equipment through the first APN; and responding to the second activation request, and feeding back the first IP address to the second application-side equipment.
Therefore, with the method provided in this embodiment of the present application, when the APNs corresponding to the servers to which the first application-side device and the second application-side device connected to the modem need to access are consistent, both are the first APN, and the first external device has obtained PDN link resources, that is, the first IP address based on the first APN, the modem does not forward the second activation request to the core network after receiving the second activation request initiated by the second application-side device based on the first APN, but directly feeds back the first IP address to the second application-side device, so that the first application-side device and the second application-side device may share the same first IP address, thereby enabling the first application-side device and the second application-side device to communicate with the core network simultaneously based on the same modem and the first IP address, and meeting the communication requirement that multiple application-side devices are networked simultaneously through the same modem and the same APN, thereby improving communication efficiency.
In a possible implementation manner, before the feeding back the first IP address to the second application-side device in response to the second activation request, the method further includes: determining whether the second activation request carries the first APN; the feeding back the first IP address to the second application-side device in response to the second activation request includes: and under the condition that the second activation request is determined to carry the first APN, responding to the second activation request, and feeding back the first IP address to the second application side equipment.
In a possible implementation manner, the feeding back the first IP address to the second application-side device in response to the second activation request includes: establishing a second dialing entity related to the second activation request, where the second dialing entity is used to maintain parameter information of a communication link involved in the communication between the second application-side device and the core network through the communication module; and sending the first IP address and indication information of successful link establishment to the second application side equipment.
In one possible implementation, the method further includes: receiving first uplink data sent by the first application side equipment and second uplink data sent by the second application side equipment, and forwarding the first uplink data and the second uplink data to the core network; the first uplink data carries a first data characteristic, and the second uplink data carries a second data characteristic; receiving downlink data sent by the core network, wherein the downlink data carries a third data characteristic; and if the third data characteristic is matched with the first data characteristic, sending the downlink data to the first application side equipment, and if the third data characteristic is matched with the second data characteristic, sending the downlink data to the second application side equipment.
Therefore, when the modem receives downlink data sent by a core network, the data distribution can be completed according to the data characteristics, and guarantee is provided for IP address resource sharing on the network communication accuracy level.
In one possible implementation, the method further includes: after receiving a first deactivation request sent by the first application side device, determining whether the second application side device needs to continue to communicate with the core network based on the first IP address; if so, only removing the communication link between the first application side equipment and the communication module; if not, the communication link between the first application side equipment and the communication module is removed, the first deactivation request is forwarded to the core network, and the communication link between the communication module and the core network is removed.
It can be understood that, when the first application-side device does not need to use the first IP address to initiate the first deactivation request, if it is determined that the second processor does not need to continue to communicate with the core network based on the first IP address, the modem may send a deactivation request for the first IP address to the core network. If it is determined that the second processor needs to continue to perform communication with the core network based on the first IP address, it indicates that the first application-side device is not an application-side device initiating a deactivation request last among two or more application-side devices docked with the modem, and among the multiple application-side devices docked with the modem, an application-side device (a second application-side device) still needs to use the first IP address in other application-side devices except the first application-side device, the modem does not send a deactivation request regarding the first IP address to the core network, but only removes a communication link between the first application-side device and the communication module, so that a problem that the second processor cannot continue to perform communication with the core network through the first IP address can be avoided, and stability of IP resource sharing is improved.
In a possible implementation manner, the sending the downlink data to the first application side device if the third data characteristic matches the first data characteristic includes: under the condition that the third destination MAC address is determined to be consistent with the first source MAC address and the third source MAC address is determined to be consistent with the first destination MAC address, the downlink data is sent to the first application side equipment; if the third data characteristic matches the second data characteristic, sending the downlink data to the second application-side device, including: and sending the downlink data to the second application side device under the condition that the third destination MAC address is determined to be consistent with the second source MAC address and the third source MAC address is determined to be consistent with the second destination MAC address.
In one possible implementation, the method further includes: after receiving a second deactivation request of the second application-side device for the first IP address, determining whether the first processor needs to continue to communicate with the core network based on the first IP address; under the condition that the first processor needs to continue communication with the core network based on the first IP address, the second deactivation request is not sent to the core network, and a communication link between the second application-side device and the communication module is dismantled; and under the condition that the first processor is determined not to need to continue communication with the core network based on the first IP address, sending the second deactivation request to the core network, and dismantling a communication link between the second application-side device and the communication module.
In a possible implementation manner, the tearing down the communication link between the first application-side device and the communication module includes: deleting the first dialing entity; the first dialing entity is used for maintaining parameter information of a communication link involved in the communication between the first application side equipment and the core network through the communication module; and sending a request result about the first deactivation request to the first application side equipment, wherein the request result is a returned result of successful deactivation.
In a possible implementation manner, the determining whether the second application-side device needs to continue communicating with the core network based on the first IP address includes: determining whether a second dialing entity corresponding to the second application side equipment exists or not; the second dialing entity is a dialing entity which is created by the communication module and used for maintaining parameter information of a communication link involved in the communication between the second application side equipment and the core network through the communication module; if so, determining that the second application side equipment still needs to continue to communicate with the core network based on the first IP address; if not, determining that the second application side equipment does not need to continue to communicate with the core network based on the first IP address.
In a second aspect, the present application provides a communication module, the communication module is connected with at least a first application-side device and a second application-side device, and the communication module includes: a first receiving unit, configured to receive a first activation request sent by the first application-side device through a first access point name APN, and forward the first activation request to a core network; a second receiving unit, configured to receive a first internet protocol IP address fed back by the core network in response to the first activation request, and forward the first IP address to the first application-side device; the first receiving unit is further configured to receive a second activation request sent by the second application-side device through the first APN; and the response unit is used for responding to the second activation request and feeding back the first IP address to the second application-side equipment.
In a third aspect, the present application provides an electronic device, comprising: the device comprises a memory and a processor, wherein the memory stores program instructions; the program instructions, when executed by the processor, cause the processor to perform the method as described in the first aspect and any possible implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides a chip system, where the chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is configured to invoke a computer instruction to cause the electronic device to execute the method shown in the first aspect or any possible implementation manner of the first aspect.
In a fifth aspect, the present application provides a computer readable storage medium having a computer program stored therein; the computer program, when run on one or more processors, causes the electronic device to perform the method as described in the first aspect and any possible implementation form of the first aspect.
In a sixth aspect, the present application provides a computer program product containing instructions that, when run on an electronic device, cause the electronic device to perform the method as described in the first aspect and any possible implementation manner of the first aspect.
It is to be understood that the communication module provided in the second aspect, the electronic device provided in the third aspect, the chip system provided in the fourth aspect, the computer storage medium provided in the fifth aspect, and the computer program product provided in the sixth aspect are all configured to perform the method shown in the first aspect of the embodiments of the present application or any implementation manner of the first aspect. Therefore, the beneficial effects achieved by the method can refer to the beneficial effects in the corresponding method, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solution in the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below.
Fig. 1A is a schematic application environment diagram of a communication method according to an embodiment of the present application;
fig. 1B is a schematic diagram of internal data distribution between a modem and AP1 and AP2 according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a communication method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another communication method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating another communication method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating another communication method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a communication module according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another communication module according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of another communication module according to an embodiment of the present disclosure.
Detailed Description
The present application is described in further detail below with reference to the attached drawing figures.
The terminology used in the following examples of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In this application, "at least one" means one or more, "a plurality" means two or more, "at least two" means two or three and three or more, "and/or" for describing an association relationship of associated objects, which means that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one item(s) below" or similar expressions refer to any combination of these items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b," a and c, "" b and c, "or" a and b and c.
In order to describe the scheme of the present application more clearly, some knowledge related to the data communication of the scheme is introduced below.
(1) IP address of internet protocol
Generally, an IP address corresponds to a PDN communication link, which refers to a communication link between a communication module (modem) to which the IP address points, a base station, and a core network.
When client software in the electronic device wants to access a server through the internet, it is necessary to initiate data service dialing to a core network through a modem by using an Access Point Name (APN) corresponding to the server. Specifically, the modem requests a core network to activate a communication link corresponding to the APN among the modem, the base station and the core network through the base station; and after receiving the IP address, the modem feeds the IP address back to the client software, so that the client software can communicate with the server based on the IP address, the modem, the base station and the core network.
Generally, a communication module can use an APN to dial data services at the same time, and establish a data link corresponding to the APN with a base station. Two different modems can use the same APN to dial data services at the same time, and data links corresponding to the APN are respectively established with the base station. However, a modem cannot establish more than two data links with a base station using the same APN at the same time, specifically, if the current modem has established one data link with the base station via the APN (that is, the core network has allocated an IP address to the modem based on the APN), and the modem initiates data service dialing via the APN, the core network will refuse to establish a second data link with the modem via the APN (that is, the core network will refuse to allocate another IP address to the modem via the APN again).
An application environment diagram of the communication method provided in the embodiment of the present application is described below with reference to fig. 1A.
As shown in fig. 1A, the application environment diagram includes a core network, a base station, a communication module (modem), and two or more application-side devices interfaced with the modem. Wherein, the communication between the modem and the core network of the base station plays a role of transparent transmission.
In the embodiment of the present application, one of the two or more application-side devices is referred to as a first application-side device (hereinafter, referred to as AP 1) and any one of the other application-side devices except the first application-side device is referred to as a second application-side device (hereinafter, referred to as AP 2).
Typically, one or more APNs are recorded in the application side device or modem, and one APN may be used for proxying an access point of one or more servers. For example, for two different servers of two different search engines, the access point names may be the same access point name.
By adopting the communication method provided by the embodiment of the application, the AP1 may initiate data service dialing to the modem by using a first access point name (hereinafter referred to as apn 1), the modem receives the data service dialing and forwards the data service dialing to the core network, and the core network receives a first IP address allocated to the AP1 by responding to a data service dialing request corresponding to the AP 1. When detecting that the AP2 dials the data service through the apn1, the modem does not forward the data service dial initiated by the AP2 to the core network, but directly feeds back the first IP address to the AP2, so that the AP1 and the AP2 can simultaneously use the first IP address to communicate with the base station or the core network.
Illustratively, the modem is a communication module in the vehicle-mounted device, where the AP1 is an application-side device in an application layer in the vehicle-mounted device; the vehicle-mounted device is also connected with a foreign device (such as a mobile phone) through a USB, and the AP2 is an application-side device of an application layer in the mobile phone.
In some situations, the AP1 on the vehicle-mounted device needs to access the server 1 of the vehicle-mounted device for FOTA upgrade, at this time, the AP2 of the foreign device needs to access the server 2 for vehicle information check of the vehicle, and the access point names apn1 of the server 1 and the server 2 are consistent. That is, the server of the apn1 proxy includes the server 1 and the server 2, and if a client (application side device) needs to access the server 1 or the server 2, the client needs to request a link resource corresponding to the IP address from the core network based on the apn 1. For example, the AP1 requests a link resource for accessing the server 1 from the core network based on the apn1 and the modem, and obtains a data link resource of the first IP address allocated by the core network. After the AP1 obtains the first IP address based on the apn1, the AP2 requests a link resource for accessing the server 2 from the core network based on the apn1 and the modem. Because the AP2 performs data dialing through the modem identical to the AP1 and the apn1 identical to the AP1, after receiving a data dialing request initiated by the AP2 based on the modem and the apn2, the core network generally rejects the data link resource request initiated by the modem about the apn1 by using that the apn1 has established link resources, and only after the AP1 deactivates the first IP address, the core network reassigns a new IP address corresponding to the apn1 to the AP2 based on the apn 1. This results in that AP1 and AP2 connected to the same modem cannot perform corresponding communication tasks simultaneously in some scenarios, and communication efficiency is to be improved. The server 1 and the server 2 may be the same or different servers, which is not limited herein.
However, with the communication method provided in this embodiment of the present application, when the modem of the vehicle-mounted device receives an activation request that the AP2 uses the apn1 to request a data link resource to the core network, the modem directly feeds back the first IP address to the AP2, and does not send the activation request to the core network any more. Then AP1 and AP2 use the same first IP address to surf the Internet in order to access the corresponding server, and the modem distinguishes whether the conversation between the AP1 and the base station or the conversation between the AP2 and the base station belongs to the conversation between the AP1 and the base station or belongs to the conversation between the AP2 and the base station.
The communication method provided by the application is improved on the modem side, and generally, the modem is responsible for managing a sending task of uplink data, recording an incoming packet feature of the uplink data and a receiving task of downlink data, and distributing the downlink data to corresponding application-side equipment according to the incoming packet feature of the downlink data and the incoming packet feature of the uplink data, wherein the incoming packet feature refers to a data packet feature which is used for identifying a session. In this embodiment, the modem is further responsible for determining, according to the first IP address, not to send a data link activation request initiated by the second application-side device to the core network, but to directly feed back the first IP address to the second application-side device. And simultaneously performing communication between the first application side equipment and the base station and communication between the second application side equipment and the base station based on the first IP address. The problem that one modem cannot establish two or more than two data links by using the same APN at the same time, so that network requirements of a plurality of application side devices cannot be met simultaneously when the modem is in butt joint with the plurality of application side devices, and communication efficiency is low is solved. Understandably, the modem is responsible for managing a sending task of uplink data, namely a sending task of sending a data packet to a base station by the modem; specifically, after the modem receives a data packet which is expected to be sent to the core network by the application-side device, the modem sends the data packet to the base station, and the base station forwards the data packet to the core network, that is, the uplink data can be understood as a data packet which is expected to be sent to the core network by the application-side device (through the modem and the base station). The task of receiving the downlink data is also the task of receiving a data packet sent to the modem by the base station; specifically, the downlink data may be understood as a data packet sent by the core network to the application side device, that is, the receiving task of the data packet that the core network expects to send to the application side device through the base station and the modem.
Understandably, after the AP1 obtains the first IP address, the network card of the AP1 may be bound to the first IP address; after receiving the first IP address fed back by the modem, the AP2 may bind the network card of the AP2 to the first IP address. Then, the AP1 or the AP2 may send the uplink data to the modem based on the respective network card and the first IP address, and the modem forwards the uplink data to the core network.
For example, as shown in fig. 1B, after receiving uplink data sent by the AP1 or the AP2 through a corresponding network card, the modem may record a data feature of the uplink data through a shared management module (share manager), and then send a corresponding data packet to the core network, where the data feature may be, for example, a data feature for identifying one session, and the data feature may be a five-tuple or a six-tuple, for example. And after the modem receives the downlink data sent by the core network, judging and matching the data characteristics in the downlink data sent by the AP1 and the AP2 according to the data characteristics of the uplink data recorded by sharemanage. If the data characteristics of the downlink data are matched with the data characteristics of the uplink data sent by the AP1, the modem forwards the downlink data to the AP1, and if the data characteristics of the downlink data are matched with the data characteristics of the uplink data sent by the AP2, the modem forwards the downlink data to the AP2, so that the distribution of the downlink data packet is completed.
The communication method provided by the embodiment of the present application is described in detail below with reference to the flowchart shown in fig. 2.
In the embodiment of the present application, the communication method is applied to a communication module, which is specifically a modem (hereinafter referred to as modem). The method comprises the following steps:
s201, a communication module receives a first activation request sent by a first application side device through a first APN, and forwards the first activation request to a core network.
In the embodiment of the application, at least a first application side device and a second application side device are connected to a communication module (modem).
Generally, a communication link between the modem and the first application-side device is established by: the modem sends network card information of the modem to the first application side device through a message mechanism (for convenience of description, the network card of the modem is referred to as a third network card); after the first application-side device receives the information of the third network card, establishing an association relationship between the third network card and a network card of the first application-side device (hereinafter, for convenience of description, the network card of the first application-side device is referred to as a first network card) through routing configuration; after the binding relationship between the first network card and the third network card is completed, it indicates that the establishment of the communication link between the first application side device and the modem is successful, and the first application side device and the modem can perform data communication through the first network card and the third network card. For example, the modem may perform a communication interaction with respect to the first activation request through a link resource between the first network card and the third network card. It is understood that the communication connection between the first application-side device and the modem may be a wired connection or a wireless communication connection, which is not limited herein.
In this embodiment of the present application, the first activation request may also be understood as a data service dial request, a data link activation request, or a Packet Data Network (PDN) link activation request sent by the first application-side device to the modem, where the first activation request is specifically used to request the core network to allocate PDN data link resources for the first application-side device, and establish a signaling connection with the core network.
The first activation request carries the first APN. The first APN may also be referred to as a first access point name. For example, the first application side device may generate the first activation request according to preset PDN context information, where the first activation request may carry other information besides the first APN, for example, the first activation request may also carry information such as an IP type, which is not limited herein.
Generally, after receiving the first activation request, the modem may establish (also may be understood as creating) a first dialing entity corresponding to the first activation request, where the first dialing entity may be understood as a class object in the program code. The first dialing entity is configured to maintain parameter information of a communication link involved in the communication between the first application-side device and the core network through the modem, or it may be understood that the first dialing entity is configured to maintain a bearer of the first application-side device. For example, the first dialing entity may be configured to carry data packets from the first application-side device according to a communication protocol so that the modem may send the data packets to the core network via the network.
S202, the communication module receives a first IP address fed back by the core network in response to the first activation request, and forwards the first IP address to the first application side device.
In this embodiment of the application, after the modem feeds back the first IP address to the second application side device, the modem and the first application side device may perform communication between the first application side device and the core network based on the first IP address.
The first IP address may also be referred to as a first internet protocol address. The first IP address is a PDN link resource fed back by the core network in response to the first activation request. After receiving the first IP address, the modem may establish an association relationship between the first IP address and a network card (third network card) of the modem, so as to indicate that the modem may use the first IP address to communicate with the core network based on the third network card.
For example, the PDP _ ACT _ REQ message in the first activation request carries the first APN. After receiving the first activation request, the modem parses the PDP _ ACT _ REQ (apn = apn 1) message, sends the message to the base station through an air interface, and the base station sends the PDP _ ACT _ REQ (apn = apn 1) message to the core network. After receiving the PDP _ ACT _ REQ (apn = apn 1) message, the core network determines the first IP address allocated to the first application-side device based on the apn1, and sends an activation reply message PDP _ ACT _ CNF to the modem through the base station, where the activation reply message PDP _ ACT _ CNF carries information (e.g., OK) indicating that the link activation is successful and the first IP address (e.g., x.x.x.x.x). After receiving the activation reply message PDP _ ACT _ CNF, the modem sends the activation reply message PDP _ ACT _ CNF to the first application side device; the first application side device analyzes the activation reply message PDP _ ACT _ CNF to obtain the first IP address and the indication information of successful link activation.
It can be understood that, after obtaining the first IP address, the first application-side device may establish an association relationship between the first IP address and a network card (first network card) of the first application-side device, so that when the first application-side device needs to access a server corresponding to the first IP address, the modem may send communication data to the modem through the first network card and the first IP address, and the modem sends the communication data to the core network, so as to perform communication between the first application-side device and the core network.
S203, the communication module receives a second activation request sent by the second application side device through the first APN.
As to how to establish the communication link between the second application-side device and the modem so that the modem can receive the second activation request based on the communication link, reference may be made to the related description of how to establish the communication link between the first application-side device and the modem in the step S201, and details thereof are not described here.
In this embodiment of the application, the second activation request may also be understood as a data service dial request, a data link activation request, or a PDN link activation request sent by the second application-side device to the modem, where the second activation request is specifically used to request the core network to allocate PDN data link resources to the second application-side device, and establish a signaling connection with the core network.
The second activation request carries the first APN. For example, the second application side device may generate the second activation request according to preset PDN context information, where the second activation request may carry other information besides the first APN, for example, the second activation request may also carry information such as an IP type, which is not limited herein.
In this embodiment of the application, after the modem receives the second activation request and determines that the APN carried in the second activation request is consistent with the first APN, a second dialing entity corresponding to the second activation request is established, where the second dialing entity is used to maintain parameter information of a communication link involved in communication between the second application-side device and the core network through the modem, or it may also be understood that the second dialing entity is used to maintain a bearer of the second application-side device. For example, the second dialing entity may be used to piggyback packets from the first application-side device according to the communication protocol so that the modem may send the packets over the network to the core network.
And S204, the communication module responds to the second activation request and feeds back the first IP address to the second application side equipment.
In this embodiment of the application, after the modem feeds back the first IP address to the second application-side device, the modem and the second application-side device may perform communication between the second application-side device and the core network based on the first IP address.
In this embodiment of the application, after receiving the second activation request, the modem does not send the second activation request to the core network, but directly feeds back the first IP address to the second application-side device.
For example, the PDP _ ACT _ REQ message in the second activation request carries the first APN. After receiving the second activation request, the modem parses the obtained PDP _ ACT _ REQ (apn = apn 1) message, and does not send the message to the core network through the air interface, but directly sends an activation reply message PDP _ ACT _ CNF to the second application-side device, where the activation reply message PDP _ ACT _ CNF carries indication information (e.g., OK) of successful link activation and the first IP address (e.g., x.x.x.x.x).
Accordingly, after the second application-side device obtains the first IP address, an association relationship between the first IP address and a network card of the second application-side device (hereinafter, for convenience of description, the network card of the second application-side device is referred to as a second network card) may be established, so that when the second application-side device needs to access a server corresponding to the first IP address, the second application-side device may send communication data to the modem through the second network card and the first IP address, and the modem sends the communication data to the core network, so as to perform communication between the second application-side device and the core network.
Therefore, with the method provided in this embodiment of the present application, when the APNs corresponding to the servers to which the first application-side device and the second application-side device connected to the modem need to access are consistent and are both the first APN, and the first external device has obtained PDN link resources, that is, the first IP address based on the first APN, the modem intercepts the second activation request after receiving the second activation request initiated by the second application-side device based on the first APN, and does not forward the second activation request to the core network, but directly feeds back the first IP address to the second application-side device, so that the first application-side device and the second application-side device can share the same first IP address, thereby enabling the first application-side device and the second application-side device to communicate with the core network simultaneously based on the same modem and the first IP address, and meeting the communication requirement that multiple application-side devices are networked simultaneously through the same modem and the same APN, thereby improving communication efficiency.
In a possible implementation manner, before the feeding back the first IP address to the second application-side device in response to the second activation request, the method further includes: determining whether the second activation request carries the first APN; the feeding back the first IP address to the second application-side device in response to the second activation request includes: and under the condition that the second activation request is determined to carry the first APN, responding to the second activation request, and feeding back the first IP address to the second application side equipment.
That is to say, after receiving a second activation request sent by a second application side device, the modem first determines whether an APN carried in the second activation request is consistent with the first APN, and if so, the modem does not send the second activation request to the core network, but directly feeds back the first IP address corresponding to the first APN to the second application side device.
In a possible implementation manner, the feeding back, by the communication module, the first IP address to the second application-side device in response to the second activation request includes: establishing a second dialing entity related to the second activation request, where the second dialing entity is used to maintain parameter information of a communication link involved in the communication between the second application-side device and the core network through the communication module; and sending the first IP address and indication information of successful link establishment to the second application side equipment.
That is, the result of the response to the second activation request by the modem includes: and establishing the second dialing entity, and sending the first IP address and indication information of successful link establishment to second application side equipment.
Illustratively, as shown in fig. 3, in an application scenario, the following operations are performed among the modem, the application-side device, and the core network in the order of reference numbers shown in fig. 3:
1) The first application side device (AP 1) uses the apn1 to dial the data service, carries the apn1 to the modem through a parameter transmission mode through a PDP _ ACT _ REQ message (a first activation request), and the pseudo code is PDP _ ACT _ REQ (apn = apn 1).
2) The modem creates a first dialing entity for the AP1, sending a PDP _ ACT _ REQ (apn = apn 1) message to the base station over the air interface.
The first dialing entity is configured to maintain parameter information of a communication link involved in communication between the first application-side device and the core network through the communication module, for example, the first dialing entity is configured to encapsulate and transport a data packet from the first application-side device according to a communication protocol so that the modem can send the data packet to the base station through the network.
3) The base station passes through a PDP _ ACT _ REQ (apn = apn 1) message to the core network.
4) After checking the data service dialing of the PDP _ ACT _ REQ (apn = apn 1) message, the core network allocates a first IP address to the AP1, and replies a message PDP _ ACT _ CNF to the base station, where the PDP _ ACT _ CNF message carries an activation result OK and the first IP address (for example, x.x.x.x, where the addresses described in x.x.x.x.x in this document are the same IP address).
5) The base station passes through an activation reply message PDP _ ACT _ CNF (rst = OK, ipaddr = x.x.x.x) to the modem over the air interface.
6) The second application side device (AP 2) uses the APN1 to dial the data service, and sends a PDP _ ACT _ REQ (APN = APN 1) message to the modem, that is, the AP2 sends a second activation request to the modem.
7) The modem checks a PDP _ ACT _ REQ (apn = apn 1) message sent by the AP2, finds that the activation request is from the AP2 and that apn = apn1, and regarding apn1, the modem has recorded (or stored) an IP address corresponding to aon1, that is, a first IP address, then establishes a second dialing entity to maintain a bearer of the AP2, and sends the first IP address to the AP2, that is, replies a message PDP _ ACT _ CNF to the AP2 (rst = OK, ipaddr = x.x.x.x.x), and no longer sends the PDP _ ACT _ REQ (apn = apn 1) message initiated by the AP2 to the base station over the air interface.
In the embodiment of the application, the AP1 and the AP2 can share the same IP address and communicate with the core network at the same time, so that the communication requirement that a plurality of devices access the server through the same communication module at the same time can be met, and the communication efficiency is improved. It is understood that, the AP1 and the AP2 may share the same IP address to communicate with the core network at the same time, which means that the AP1 communicates with the core network using the first IP address based on the same modem, and the AP2 communicates with the core network using the first IP address based on the same modem, and the communications between the AP1 and the core network do not interfere with each other and may be performed at the same time, but it does not mean that the communications between the AP1 and the core network and the communications between the AP2 and the core network must be at the same time, which is not limited herein.
In a possible implementation manner, first uplink data sent by the first application side device and second uplink data sent by the second application side device are received, and the first uplink data and the second uplink data are forwarded to the core network; the first uplink data carries a first data characteristic, and the second uplink data carries a second data characteristic; receiving downlink data sent by the core network, wherein the downlink data carries a third data characteristic; and if the third data characteristic is matched with the first data characteristic, sending the downlink data to the first application side equipment, and if the third data characteristic is matched with the second data characteristic, sending the downlink data to the second application side equipment.
In a possible implementation manner, the sending the downlink data to the first application side device if the first data characteristic includes a first source MAC address and a first destination MAC address, the second data characteristic includes a second source MAC address and a second destination MAC address, the third data characteristic includes a third source MAC address and a third destination MAC address, and the sending the downlink data to the first application side device if the third data characteristic matches the first data characteristic includes: under the condition that the third destination MAC address is determined to be consistent with the first source MAC address and the third source MAC address is determined to be consistent with the first destination MAC address, the downlink data are sent to the first application side device; if the third data characteristic is matched with the second data characteristic, sending the downlink data to the second application side device, including: and sending the downlink data to the second application side device under the condition that the third destination MAC address is determined to be consistent with the second source MAC address and the third source MAC address is determined to be consistent with the second destination MAC address.
In one possible implementation, the first source MAC address and the first destination MAC address are included in a first six-tuple, the second source MAC address and the second destination MAC address are included in a second six-tuple, and the third source MAC address and the first destination MAC address are included in a third six-tuple.
For example, as shown in fig. 4, the modem receives the first uplink data and the second uplink data, forwards the first uplink data and the second uplink data to the core network, receives third uplink data sent by the core network, and determines to send the third uplink data to one of the first application-side device and the second application-side device based on the data characteristics, which specifically includes:
s401, receiving first uplink data sent by the first application side device, and correspondingly, sending the first uplink data to the modem by the first application side device.
The first data characteristic carried by the first uplink data includes: the first source MAC address is a physical address of a network card of the first application side device, and the first target MAC address is a physical address of a server which the first application side device needs to access through the modem.
For example, the first uplink data carries a first six-tuple, and it can also be understood that the first data feature is the first six-tuple, and the first six-tuple includes the first source MAC address and the first destination MAC address. It will be appreciated that other information may also be included in the six-tuple, for example the six-tuple may also include: one or more of the source IP address, the destination IP address, the source port number, and the destination port number, which is not limited herein. It can be understood that, in the present application, the first application side device and the second application side device use the same IP address, and if the first hexahydric group includes the source IP address, the source IP address of the first hexahydric group is the first IP address.
S402, sending the first uplink data to the core network, and correspondingly, receiving the first uplink data by the core network.
S403, receiving second uplink data sent by the second application-side device, and correspondingly, the second application-side device sends the second uplink data to the modem.
The second data characteristic carried by the second uplink data includes: and the second source MAC address and the second destination MAC address, where the second source MAC address is a physical address of a network card of the second application-side device, and the second destination MAC address is a physical address of a server that the second application-side device needs to access through the modem.
For example, the second uplink data carries a second six-tuple, which may also be understood as that the second data feature is the second six-tuple, and the second six-tuple includes the second source MAC address and the second destination MAC address. It will be appreciated that other information may also be included in the six-tuple, for example the six-tuple may also include: one or more of the source IP address, the destination IP address, the source port number, and the destination port number, which is not limited herein. It can be understood that the same IP address is used in the first application-side device and the second application-side device, and if the second hexahydric group includes the source IP address, the source IP address of the second hexahydric group is the first IP address.
S404, sending the second uplink data to the core network, and correspondingly, the core network receiving the second uplink data.
S405, receiving downlink data sent by the core network, and correspondingly, sending the downlink data to the modem by the core network.
The carrying of the third feature data in the downlink data includes: a third source MAC address and a third destination MAC address, where the third source MAC address is a physical address of a server that expects to send the downlink data to the application side device through the core network, and the third destination MAC address is a MAC address of the application side device that expects communication by the core network.
Illustratively, the downlink data carries a third six-tuple, where the third six-tuple includes the third source MAC address and the third destination MAC address.
And S406, determining one of the first data characteristic and the second data characteristic which is matched with the third data characteristic in the uplink data.
S407, if the third data characteristic matches the first data characteristic, transmitting the uplink data to the first application side device, and accordingly, the first application side device receives the uplink data.
In this embodiment of the application, when it is determined that the third destination MAC address is consistent with the first source MAC address and the third source MAC address is consistent with the first destination MAC address, it is determined that the third data characteristic is consistent with the first data characteristic, and it is determined to send the uplink data to the first application side device.
S408, when the third data characteristic matches the second data characteristic, transmitting the uplink data to the second application-side device, and accordingly, the second application-side device receives the uplink data.
It can be understood that if the modem determines that the third destination MAC address is consistent with the second source MAC address and the third source MAC address is consistent with the second destination MAC address, it indicates that the second uplink data and the downlink data belong to a message in the same session. The modem takes the downlink data as the downlink data of the second uplink data, and sends the downlink data to the second application-side device.
It can be understood that the step S402 is necessarily executed after the step S401, and the step S404 is necessarily executed after the step S403, based on which, the sequence of the steps from S401 to S404 in fig. 4 is only an example, and may also be other sequences, which is not limited herein. For example, the execution sequence between the steps of S401 to S404 may be: s403, S404, S401 and S402; the following steps can be also included: s403, S401, S404 and S402; can also be S401, S403, S404, S402; the present invention is not limited to this as long as other combinations of steps satisfying the conditions that step S402 is executed after S401 and step S404 is executed after S403 are possible.
In a possible implementation manner, the data feature may also be other identifiers used for identifying a pair of dialogs besides the MAC, which is not limited herein, for example, the data feature may also be a port number.
For example, in a case that it is ensured that the first application side device and the second application side device do not have the same port number, whether the uplink data and the downlink data belong to the same session may be identified by the port number.
In a possible implementation manner, the first feature data includes a first source port number and a first destination port number, the second feature data includes a second source port number and a second destination port number, and the third feature data includes a third source port number and a third destination port number.
If the third data characteristic matches the first data characteristic, sending the downlink data to the first application-side device includes: and sending the downlink data to the first application side device under the condition that the third destination port number is determined to be consistent with the first source port number and the third source port number is determined to be consistent with the first destination port number.
If the third data characteristic matches the second data characteristic, sending the downlink data to the second application-side device includes: and sending the downlink data to the second application side device under the condition that the third destination port number is determined to be consistent with the second source port number and the third source port number is determined to be consistent with the second destination port number.
For example, whether the uplink data and the downlink data belong to the same session may be identified by a port number in the six-element group information. For example, the first data is characterized as a first six-tuple that includes a first source port number and a first destination port number. The second data is characterized as a second six-tuple comprising a second source port number and a second destination port number. The third data is characterized as a third six-tuple comprising a third source port number and a third destination port number.
Or, for example, whether the uplink data and the downlink data belong to the same session may also be identified by a port number in the five-tuple. For example, the first data characteristic includes a first five-tuple that includes a first source port number and a first destination port number. The second data feature includes a second five-tuple including a second source port number and a second destination port number. The third data feature includes a third five-tuple, where the third five-tuple includes a third source port number and a third destination port number. If the quintuple includes the source IP address, the IP addresses in the first quintuple and the second quintuple are the same, that is, both the IP addresses are the first IP address corresponding to the first APN.
It is understood that the information contained in the five-tuple includes the source port number and the destination port number, and may further include one or more of a source IP address, a destination IP address, and a transport layer protocol, which is not limited herein.
In a possible implementation manner, the method further includes: after receiving a first deactivation request sent by the first application side device, determining whether the second application side device needs to continue to communicate with the core network based on the first IP address; if so, only removing the communication link between the first application side equipment and the communication module; if not, the communication link between the first application side equipment and the communication module is removed, the first deactivation request is forwarded to the core network, and the communication link between the communication module and the core network is removed.
Specifically, the method further includes a method shown in fig. 5:
s501, receiving a first deactivation request of the first application side device for the first IP address.
And S502, determining whether the second processor needs to continue communication with the core network based on the first IP address.
For example, the determining whether the second processor needs to continue communication with the core network based on the first IP address includes: determining whether a second dialing entity corresponding to the second application side equipment exists or not; the second dialing entity is a dialing entity which is created by the communication module and used for maintaining parameter information of a communication link involved in the communication between the second application side equipment and the core network through the communication module; if so, determining that the second application side equipment still needs to continue to communicate with the core network based on the first IP address; if not, determining that the second application side equipment does not need to continue to communicate with the core network based on the first IP address.
Generally, if the dialing entity corresponding to the application-side device is not destroyed, it indicates that the corresponding application-side device still needs to continue to communicate with the core network through the corresponding IP address. That is, the second dialing entity is not deleted, which indicates that the second application-side device still needs to continue to communicate with the core network through the first IP address to access the server.
For example, the modem may determine whether the second application-side device needs to continue communication with the core network based on the first IP address by determining whether a second dialing entity corresponding to the second application-side device and the first IP address is currently maintained. For example, if the second dialing entity is not maintained in the modem, indicating that the second dialing entity is not created, or the second dialing entity is created but the created second dialing entity is cleared, it is determined that the second application-side device does not need to continue to perform communication with the core network based on the first IP address. For example, if the second dialing entity is maintained in the modem, it is determined that the second application-side device still needs to continue to communicate with the core network based on the first IP address.
In a case where it is determined that the second processor needs to continue communication with the core network based on the first IP address, performing step S503; in a case where it is determined that the second processor does not need to continue the communication with the core network based on the first IP address, step S504 is performed.
S503, the first deactivation request is not sent to the core network, and only the communication link between the first application-side device and the communication module is removed.
It can be understood that, when the first application-side device does not need to use the first IP address to initiate the first deactivation request, if it is determined that the second processor needs to continue to perform communication with the core network based on the first IP address, it indicates that the first application-side device is not the application-side device that initiates the deactivation request in the last of the two or more application-side devices docked with the modem. That is, among the plurality of application-side devices interfaced with the modem, other application-side devices (second application-side devices) except the first application-side device still need to use the first IP address. Therefore, in order to avoid the problem that the second processor cannot continue to communicate with the core network through the first IP address, the modem does not send the first deactivation request to the core network through the air interface, does not remove communication link resources related to the first IP address between the modem and the communication module, and only removes the communication link between the first application side device and the communication module.
It can be understood that the aforementioned tearing down the communication link between the first application-side device and the communication module means to eliminate the communication link parameter information between the first application-side device and the communication module on the software information, and does not mean to tear down the communication circuit between the hardware layers.
Illustratively, the tearing down the communication link between the first application-side device and the communication module includes: deleting a first dialing entity and deleting the association relation between the first application side equipment and the first IP address; the first dialing entity is used for maintaining parameter information of a communication link involved in the communication between the first application side equipment and the core network through the communication module; and sending a request result about the first deactivation request to the first application side device as a returned result of successful deactivation, where the returned result of successful deactivation can be used to indicate that the modem has detached the bearer about the first application side device.
Specifically, the modem deletes the association relationship between the first application side device and the first IP address, and the modem sends an indication message for deleting the binding relationship between the first network card and the first IP address to the first application side device. After receiving the indication message, the first application-side device deletes the binding relationship between the first network card and the first IP address recorded by the first application-side device, and deletes the association relationship between the third network card and the first network card recorded in the routing configuration of the first application-side device.
Generally, for the first application side device side, after the first application side device initiates the first deactivation request, the binding relationship between the first network card and the first IP address is not immediately deleted, but the association relationship between the first network card and the first IP address established in the first application side device is set to an unavailable state, that is, the information about the first IP address is in an unavailable state, and the first application side device cannot send data to the core network based on the first IP address and the modem any more. And after the first application side device receives the returned result of successful deactivation, deleting the binding relationship between the first network card and the first IP address.
S504, a first deactivation request is sent to the core network, a communication link between the first application side device and the communication module is removed, and a communication link between the communication module and the core network is removed.
It can be understood that, when the first application-side device does not need to use the first IP address to initiate the first deactivation request, if it is determined that the second processor does not need to continue the communication with the core network based on the first IP address, it indicates that the first application-side device is the application-side device that initiates the deactivation request last among the two or more application-side devices. That is, there is no other application-side device that needs to use the first IP address currently. The modem may then send the first deactivation request to the core network over the air interface. It is understood that, after receiving the deactivation request about the first IP address, the core network will release the association relationship between the first IP address and the modem, which can also be understood as invalidating the first IP address.
It can be understood that in S404, the modem may simultaneously execute the tasks of sending the first deactivation request to the core network and tearing down the communication link between the first application-side device and the communication module, which is not limited herein.
In this embodiment, the removing of the communication link between the communication module and the core network means deleting the association relationship between the third network card and the first IP address recorded in the modem side.
Generally, after the modem sends the first deactivation request, the modem does not immediately tear down the communication link between the communication module and the core network, but sets the association relationship between the network card (third network card) of the modem recorded in the modem and the first IP address to an unavailable state. And after the modem receives the indication information of successful deactivation of the core network response, the modem deletes the recorded association relationship between the third network card and the first IP address.
Similarly, the processing manner when the modem receives the second deactivation request for the first IP address initiated by the second application-side device is similar to the processing manner when the modem receives the first deactivation request for the first IP address initiated by the first application-side device, and is not described in detail again. Illustratively, the method further comprises: after receiving a second deactivation request of the second application-side device for the first IP address, determining whether the first processor needs to continue to communicate with the core network based on the first IP address; under the condition that the first processor needs to continue to communicate with the core network based on the first IP address, the second deactivation request is not sent to the core network, and a communication link between the second application-side device and the communication module is dismantled; and under the condition that the second processor is determined not to be required to continue the communication with the core network based on the first IP address, sending the second deactivation request to the core network, and dismantling the communication link between the first application-side device and the communication module.
For example, if the modem receives the first deactivation request and then receives the second deactivation request at the same stage (for example, within 50 ms), the modem does not perform the task of sending the first deactivation request to the base station, but performs the tasks of removing the communication link between the first application-side device and the modem, then removing the communication link between the first application-side device and the modem, and sending the second deactivation request to the base station. It can be understood that, if the modem receives the first deactivation request and the second deactivation request at the same time, the modem may perform, at the same time or sequentially, the removal of the communication link between the first application-side device and the communication module, the removal of the communication link between the second application-side device and the communication module, and the initiation of the deactivation request (the first deactivation request or the second deactivation request) for the first IP address to the base station through the air interface.
It can be understood that the first deactivation request and the second deactivation request are only to distinguish whether the activation request is from the first application-side device or the second application-side device, and specific parameter information about the first deactivation request and the second deactivation request may be consistent, which is not limited herein.
In this embodiment, the first network card, the second network card, or the third network card refers to a physical network card including a MAC address.
In one possible implementation, some management tasks may be executed by a shared management module (share manager) in the modem to perform communication between the first application-side device, the second application-side device, and the core network. For example, the sharemanage determines whether to forward an activation request (e.g., the second activation request described above) for the first APN to the core network, and/or how to determine whether the destination of the downlink data belongs to the first application-side device or the second application-side device when the downlink data is received. Illustratively, one or more of the methods shown in FIGS. 4 and 5 are performed by the share manager. It is understood that the shared management module may be a hardware module and/or a software application in the communication module, and the share management module is, for example, a software module and a hardware module included in the communication module and including a hardware processing unit and a program class or an instantiated object in a software program, which is not limited herein.
A communication module for executing the communication method provided by the embodiment of the present application will be described below.
Referring to fig. 6, a schematic structural diagram of a communication module is provided for an embodiment of the present invention, in which the communication module is at least connected to a first application-side device and a second application-side device. As shown in fig. 6, the communication module according to the embodiment of the present invention may include:
the communication module is connected with first application side equipment and second application side equipment at least, the communication module includes:
a first receiving unit 601, configured to receive a first activation request sent by the first application-side device through a first access point name APN, and forward the first activation request to a core network;
a second receiving unit 602, configured to receive a first internet protocol IP address fed back by the core network in response to the first activation request, and forward the first IP address to the first application-side device;
the first receiving unit 601 is further configured to receive a second activation request sent by the second application-side device through the first APN;
a responding unit 603, configured to respond to the second activation request, and feed back the first IP address to the second application-side device.
As shown in fig. 7, in a possible implementation manner, the communication module further includes:
a first determining unit 604, configured to determine whether the second activation request carries the first APN; the responding unit 603 is specifically configured to, in a case that it is determined that the second activation request carries the first APN, respond to the second activation request and feed back the first IP address to the second application-side device.
In a possible implementation manner, the responding unit 603 is specifically configured to establish a second dialing entity related to the second activation request, where the second dialing entity is configured to maintain parameter information of a communication link involved in the communication between the second application-side device and the core network through the communication module; and sending the first IP address and indication information of successful link establishment to the second application side equipment.
In a possible implementation manner, the first receiving unit 601 is further configured to receive first uplink data sent by the first application-side device and second uplink data sent by the second application-side device, and forward the first uplink data and the second uplink data to the core network; the first uplink data carries a first data characteristic, and the second uplink data carries a second data characteristic; the second receiving unit 602 is further configured to receive downlink data sent by the core network, where the downlink data carries a third data feature; the communication module further includes: a sending unit 605, configured to send the downlink data to the first application side device if the third data characteristic matches the first data characteristic, and send the downlink data to the second application side device if the third data characteristic matches the second data characteristic.
In one possible implementation, the communication module further includes: a second determining unit 606, configured to determine, after receiving a first deactivation request sent by the first application-side device, whether the second application-side device needs to continue to perform communication with the core network based on the first IP address; a removing unit 607, configured to, if it is determined that the second application-side device needs to continue to perform communication with the core network based on the first IP address, only remove the communication link between the first application-side device and the communication module; and when determining that the second application-side device does not need to continue to communicate with the core network based on the first IP address, removing the communication link between the first application-side device and the communication module, forwarding the first deactivation request to the core network, and removing the communication link between the communication module and the core network.
In a possible implementation manner, the removing unit 607 is specifically configured to delete the first dialing entity; the first dialing entity is used for maintaining parameter information of a communication link involved in the communication between the first application side equipment and the core network through the communication module; and sending a request result about the first deactivation request to the first application side equipment, wherein the request result is a return result of successful deactivation.
It should be noted that, for a specific implementation process, reference may be made to specific descriptions of the method embodiments shown in fig. 2 to fig. 5, which are not described herein again.
It is understood that the communication module shown in fig. 6 or fig. 7 can have various product forms. The communication module may also be, for example, a communication module of a processor, a communication interface, a memory, and a communication bus as shown in fig. 8. Specifically, as shown in fig. 8, the communication module 80 may include:
at least one processor 801, e.g., a CPU, at least one communication interface 803, a memory 804, at least one communication bus 802. Wherein a communication bus 802 is used to enable connective communication between these components. The communication interface 803 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface or bluetooth interface, etc.). The memory 804 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 804 may optionally be at least one memory device located remotely from the processor 801 as previously described. As shown in fig. 8, memory 804, which is a type of computer storage medium, may include an operating system and program instructions.
Illustratively, the processor 801 may be configured to implement the steps or methods performed by the first receiving unit 601, the second receiving unit 602, and the responding unit 603 in fig. 6.
It is understood that the above-mentioned manners are merely examples, and the steps or methods performed by the first receiving unit 601, the second receiving unit 602, and the responding unit 603 in fig. 6 may also be performed by the processor 801 and other modules in the communication module 80, which is not limited herein.
For example, the processor 801 may be further configured to implement the steps or methods performed by one or more of the first determining unit 604, the sending unit 605, the second determining unit 606, and the removing unit 607 in fig. 7.
It is understood that the above-mentioned manners are only examples, and the steps or the method executed by one or more of the first determining unit 604, the sending unit 605, the second determining unit 606, and the removing unit 607 in fig. 7 can also be executed by the processor 801 and other modules in the communication module 80, which is not limited herein.
In the communication module 80 shown in fig. 8, the processor 801 may be configured to load the program instructions stored in the memory 804 and specifically perform the following operations:
receiving a second activation request sent to the core network by a second application side device by using the first APN;
responding to the second activation request, feeding back the first IP address to the second application-side equipment, and not sending the second activation request to the core network;
and performing communication between the first application-side device and the core network based on the first IP address, and performing communication between the second application-side device and the core network based on the first IP address.
For the descriptions of the names of the communication module, the first application side device, the second application side device, the first APN, the first IP address, and the second activation request, reference is made to the foregoing, and details are not described herein.
It should be noted that, for a specific implementation process, reference may be made to specific descriptions of the embodiments shown in fig. 2 to fig. 5, which is not described herein again.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 2 to fig. 5, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 2 to fig. 5, which is not described herein again.
As used in the above embodiments, the term "when 8230; may be interpreted to mean" if 8230, "or" after 8230; or "in response to a determination of 8230," or "in response to a detection of 8230," depending on the context. Similarly, the phrase "at the time of determination of \8230;" or "if (a stated condition or event) is detected" may be interpreted to mean "if it is determined 8230;" or "in response to the determination of 8230;" or "upon detection (a stated condition or event)" or "in response to the detection (a stated condition or event)" depending on the context.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, 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. The procedures or functions described in accordance with the embodiments of the present application occur, in whole or in part, when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, 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, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). 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, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (10)

1. A communication method is applied to a communication module, wherein at least a first application-side device and a second application-side device are connected to the communication module, and the method comprises the following steps:
receiving a first activation request sent by the first application side equipment through a first APN, and forwarding the first activation request to a core network;
receiving a first IP address fed back by the core network in response to the first activation request, and forwarding the first IP address to the first application side device;
receiving a second activation request sent by the second application side equipment through the first APN;
and responding to the second activation request, and feeding back the first IP address to the second application-side equipment.
2. The method according to claim 1, wherein before the feeding back the first IP address to the second application-side device in response to the second activation request, the method further comprises:
determining whether the second activation request carries the first APN;
the feeding back the first IP address to the second application-side device in response to the second activation request includes:
and under the condition that the second activation request is determined to carry the first APN, responding to the second activation request, and feeding back the first IP address to the second application side equipment.
3. The method of claim 2, wherein the feeding back the first IP address to the second application-side device in response to the second activation request comprises:
establishing a second dialing entity related to the second activation request, where the second dialing entity is used to maintain parameter information of a communication link involved in the communication between the second application-side device and the core network through the communication module;
and sending the first IP address and indication information of successful link establishment to the second application side equipment.
4. The communication method according to claim 1, further comprising:
receiving first uplink data sent by the first application side equipment and second uplink data sent by the second application side equipment, and forwarding the first uplink data and the second uplink data to the core network; the first uplink data carries a first data characteristic, and the second uplink data carries a second data characteristic;
receiving downlink data sent by the core network, wherein the downlink data carries a third data characteristic;
and if the third data characteristic is matched with the first data characteristic, sending the downlink data to the first application side equipment, and if the third data characteristic is matched with the second data characteristic, sending the downlink data to the second application side equipment.
5. The method according to any one of claims 1-4, further comprising:
after receiving a first deactivation request sent by the first application side device, determining whether the second application side device needs to continue to communicate with the core network based on the first IP address;
if so, only removing the communication link between the first application side equipment and the communication module;
if not, the communication link between the first application side equipment and the communication module is removed, the first deactivation request is forwarded to the core network, and the communication link between the communication module and the core network is removed.
6. The method of claim 5, wherein tearing down the communication link between the first application-side device and the communication module comprises:
deleting the first dialing entity; the first dialing entity is used for maintaining parameter information of a communication link involved in the communication between the first application side equipment and the core network through the communication module;
and sending a request result about the first deactivation request to the first application side equipment, wherein the request result is a returned result of successful deactivation.
7. The method of claim 6, wherein the determining whether the second application-side device needs to continue communicating with the core network based on the first IP address comprises:
determining whether a second dialing entity corresponding to the second application-side device exists or not; the second dialing entity is a dialing entity which is created by the communication module and used for maintaining parameter information of a communication link involved in the communication between the second application side equipment and the core network through the communication module;
if so, determining that the second application side equipment still needs to continue to communicate with the core network based on the first IP address;
if not, determining that the second application side equipment does not need to continue to communicate with the core network based on the first IP address.
8. A communication module, characterized in that, communication module is connected with first application side equipment and second application side equipment at least, communication module includes:
a first receiving unit, configured to receive a first activation request sent by the first application-side device through a first access point name APN, and forward the first activation request to a core network;
a second receiving unit, configured to receive a first internet protocol IP address fed back by the core network in response to the first activation request, and forward the first IP address to the first application-side device;
the first receiving unit is further configured to receive a second activation request sent by the second application-side device through the first APN;
and the response unit is used for responding to the second activation request and feeding back the first IP address to the second application-side equipment.
9. An electronic device, comprising: a memory, a processor, wherein the memory stores program instructions; the program instructions, when executed by the processor, cause the processor to perform the method of any of claims 1-8.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium; the computer program, when run on one or more processors, performs the method of any one of claims 1-8.
CN202210971467.5A 2022-08-12 2022-08-12 Communication method and communication module Active CN115396510B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210971467.5A CN115396510B (en) 2022-08-12 2022-08-12 Communication method and communication module
PCT/CN2023/110890 WO2024032450A1 (en) 2022-08-12 2023-08-03 Communication method and communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210971467.5A CN115396510B (en) 2022-08-12 2022-08-12 Communication method and communication module

Publications (2)

Publication Number Publication Date
CN115396510A true CN115396510A (en) 2022-11-25
CN115396510B CN115396510B (en) 2024-03-15

Family

ID=84117883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210971467.5A Active CN115396510B (en) 2022-08-12 2022-08-12 Communication method and communication module

Country Status (2)

Country Link
CN (1) CN115396510B (en)
WO (1) WO2024032450A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024032450A1 (en) * 2022-08-12 2024-02-15 西安广和通无线通信有限公司 Communication method and communication module

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600224A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 Wireless data card is supported the implementation method and the wireless data card of a plurality of PDP Contexts
CN101635708A (en) * 2008-07-22 2010-01-27 华为技术有限公司 Establishment method and device of packet data network (PDN) connection
CN101730142A (en) * 2009-06-30 2010-06-09 中兴通讯股份有限公司 Establishment method of multi-packet data network connection and device
CN101801102A (en) * 2009-02-06 2010-08-11 华为技术有限公司 PDN (Packet Data NetWork) connection establishing method, relevant equipment and system
CN101931591A (en) * 2010-08-30 2010-12-29 华为终端有限公司 Method and device for sharing data link by a plurality of grouped data services
CN103369709A (en) * 2012-03-30 2013-10-23 电信科学技术研究院 A method and an apparatus for establishing PDN connectivity
WO2013166817A1 (en) * 2012-09-07 2013-11-14 中兴通讯股份有限公司 Data message transmission method, pdn connection identification processing method, and device
CN103517264A (en) * 2012-06-29 2014-01-15 华为终端有限公司 Network switching method and device
WO2014032542A1 (en) * 2012-08-30 2014-03-06 中兴通讯股份有限公司 Method and system for setting up multiple connections
WO2015051706A1 (en) * 2013-10-10 2015-04-16 成都达信通通讯设备有限公司 Multi-apn channel management method for multi-apn network concurrent networking
US20160316496A1 (en) * 2013-12-02 2016-10-27 Telefonaktiebolaget Lm Ericsson (Publ) IP Address Assignment For a UE in 3GPP
CN114501679A (en) * 2020-10-26 2022-05-13 中国移动通信有限公司研究院 Data transmission method, device and system
CN114641047A (en) * 2020-12-16 2022-06-17 海能达通信股份有限公司 APN switching method in LTE network and related device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396510B (en) * 2022-08-12 2024-03-15 西安广和通无线通信有限公司 Communication method and communication module

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635708A (en) * 2008-07-22 2010-01-27 华为技术有限公司 Establishment method and device of packet data network (PDN) connection
CN101801102A (en) * 2009-02-06 2010-08-11 华为技术有限公司 PDN (Packet Data NetWork) connection establishing method, relevant equipment and system
CN101730142A (en) * 2009-06-30 2010-06-09 中兴通讯股份有限公司 Establishment method of multi-packet data network connection and device
CN101600224A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 Wireless data card is supported the implementation method and the wireless data card of a plurality of PDP Contexts
CN101931591A (en) * 2010-08-30 2010-12-29 华为终端有限公司 Method and device for sharing data link by a plurality of grouped data services
CN103369709A (en) * 2012-03-30 2013-10-23 电信科学技术研究院 A method and an apparatus for establishing PDN connectivity
CN103517264A (en) * 2012-06-29 2014-01-15 华为终端有限公司 Network switching method and device
WO2014032542A1 (en) * 2012-08-30 2014-03-06 中兴通讯股份有限公司 Method and system for setting up multiple connections
WO2013166817A1 (en) * 2012-09-07 2013-11-14 中兴通讯股份有限公司 Data message transmission method, pdn connection identification processing method, and device
WO2015051706A1 (en) * 2013-10-10 2015-04-16 成都达信通通讯设备有限公司 Multi-apn channel management method for multi-apn network concurrent networking
US20160316496A1 (en) * 2013-12-02 2016-10-27 Telefonaktiebolaget Lm Ericsson (Publ) IP Address Assignment For a UE in 3GPP
CN114501679A (en) * 2020-10-26 2022-05-13 中国移动通信有限公司研究院 Data transmission method, device and system
CN114641047A (en) * 2020-12-16 2022-06-17 海能达通信股份有限公司 APN switching method in LTE network and related device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HUAWEI: "S2-093333 \"23.401 CR1041: Static IP Address Allocation Clarification for MUPSAP\"", 3GPP TSG_SA\\WG2_ARCH, no. 2 *
杨仁忠,侯紫峰: "基于AP预先转发的802.11无线局域网切换机制研究", 计算机研究与发展, no. 08 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024032450A1 (en) * 2022-08-12 2024-02-15 西安广和通无线通信有限公司 Communication method and communication module

Also Published As

Publication number Publication date
WO2024032450A1 (en) 2024-02-15
CN115396510B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN113784387B (en) Information transmission method and device
CN112153098B (en) Application migration method and device
CN111526559B (en) Communication method and device
CN113242293B (en) UPF equipment, data processing and capacity expansion method and device
CN104219127B (en) A kind of creation method and equipment of virtual network example
CN110912835B (en) Service distribution method, device and system
WO2022033345A1 (en) Pdu session establishment method, terminal device, and chip system
CN114363963A (en) Load balancing selection method and system for cloud-native UPF signaling plane
US9350606B2 (en) System and method for assigning server to terminal and efficiently delivering messages to the terminal
CN114257568A (en) Data transmission method and related equipment
CN115396510B (en) Communication method and communication module
CN110909030B (en) Information processing method and server cluster
JP2014045238A (en) Information processing system, relay device, information processing device and information processing method
CN115243396A (en) Information processing method, session management function network element and user plane function network element
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN117061338B (en) Service grid data processing method, device and system based on multiple network cards
JP5093012B2 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
CN105792387B (en) Communication connection method and equipment thereof
CN112019645B (en) TOE-based network address management method and device
CN115514799A (en) TCP connection method, system, network device and storage medium
US20230199035A1 (en) Communication system, communication method, and non-transitory storage medium storing program
EP4161207A1 (en) Base station device and method for operating base station device
US12149584B2 (en) Application relocation method and apparatus
CN114126008B (en) Method, device and system for improving transmission performance and readable storage medium
WO2024198975A9 (en) Application addressing method and apparatus

Legal Events

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