WO2024032450A1 - Communication method and communication module - Google Patents

Communication method and communication module Download PDF

Info

Publication number
WO2024032450A1
WO2024032450A1 PCT/CN2023/110890 CN2023110890W WO2024032450A1 WO 2024032450 A1 WO2024032450 A1 WO 2024032450A1 CN 2023110890 W CN2023110890 W CN 2023110890W WO 2024032450 A1 WO2024032450 A1 WO 2024032450A1
Authority
WO
WIPO (PCT)
Prior art keywords
side device
application
address
core network
application side
Prior art date
Application number
PCT/CN2023/110890
Other languages
French (fr)
Chinese (zh)
Inventor
郭章
Original Assignee
西安广和通无线通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安广和通无线通信有限公司 filed Critical 西安广和通无线通信有限公司
Publication of WO2024032450A1 publication Critical patent/WO2024032450A1/en

Links

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

Definitions

  • the present application relates to the field of computers, and in particular, to a communication method and communication module.
  • the Internet of Things can connect multiple physical devices to the Internet to collect and share data.
  • a communication module modem can connect to one or more external devices.
  • the APN corresponding to the first external device connected to the modem and the server that the second external device needs to access are consistent, and the first external device has been connected to the Internet through the first APN, if the second external device is If a networking request is initiated to the core network through the second APN, networking failure will occur.
  • the modem cannot meet the network needs of multiple external devices at the same time, and communication efficiency needs to be improved.
  • this application provides a communication method, applied to a communication module.
  • the communication module is connected to at least a first application side device and a second application side device.
  • the method includes: receiving the first application side device.
  • the device sends the first activation request through the first APN, and forwards the first activation request to the core network; receives the 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 activation request.
  • the application-side device forwards the first IP address; receives a second activation request sent by the second application-side device through the first APN; responds to the second activation request, feeds back to the second application-side device The first IP address.
  • the APNs corresponding to the server that the first application-side device connected to the modem and the second application-side device need to access are consistent, they are both the above-mentioned first APN, and the first external device has been
  • the PDN link resource that is, the first IP address is obtained based on the first APN
  • the modem does not forward the request to the core network after receiving the second activation request initiated by the second application-side device based on the first APN.
  • This second activation request directly feeds back the above-mentioned 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 realizing the first
  • the application-side device and the second application-side device communicate with the core network at the same time based on the same modem and the first IP address, which can meet the communication needs of multiple application-side devices to be networked simultaneously through the same modem and the same apn, improving communication efficiency.
  • the method before feedbacking the first IP address to the second application-side device in response to the second activation request, the method further includes: determining the second activation request. whether the request carries the first APN; and responding to the second activation request, feeding back the first IP address to the second application side device includes: determining whether the second activation request carries the In the case of the first APN, in response to the second activation request, the first IP address is fed back to the second application side device.
  • the feedback of the first IP address to the second application-side device in response to the second activation request includes: establishing a second dial-up call regarding the second activation request. Entity, the second dialing entity is used to maintain the parameter information of the communication link involved in the communication between the second application side device and the core network through the communication module; send to the second application side device The first IP address and indication information indicating successful link establishment.
  • the method further includes: receiving the first uplink data sent by the first application side device and the second uplink data sent by the second application side device, and converting the first uplink data sent by the second application side device.
  • An uplink data and the second uplink data are forwarded to the core network; the first uplink data carries a first data feature, and the second uplink data carries a second data feature; and the downlink data sent by the core network is received.
  • the downlink data carries a third data feature; if the third data feature matches the first data feature, the downlink data is sent to the first application side device, if the third data feature matches If the second data feature matches, the downlink data is sent to the second application side device.
  • the modem when the modem receives the downlink data sent by the core network, it can complete the data distribution according to the data characteristics, providing guarantee for IP address resource sharing at the accuracy level of network communication.
  • the method further includes: after receiving the first deactivation request sent by the first application side device, determining whether the second application side device needs to continue to use the first IP address based on the first deactivation request. address to communicate with the core network; if yes, only dismantle the communication link between the first application side device and the communication module; if not, dismantle the first application side device and the communication links between communication modules, forward the first deactivation request to the core network, and remove the communication link between the communication module and the core network.
  • the modem can send a deactivation request regarding the first IP address to the core network. If it is determined that the second processor needs to continue communicating with the core network based on the first IP address, it indicates that the first application-side device is not the last one of the two or more application-side devices connected to the modem to initiate deactivation.
  • the requested application-side device among the multiple application-side devices connected to the modem, in addition to the above-mentioned first application-side device, there are still application-side devices (second application-side devices) that need to use the above-mentioned first IP address, the modem does not send a deactivation request for the first IP address to the core network, but only dismantles the communication link between the first application-side device and the communication module, thereby avoiding the situation where the second processor cannot continue.
  • the problem of communicating with the core network through the first IP address improves the stability of IP resource sharing.
  • 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 second source MAC address and a second destination MAC address.
  • the three data characteristics include a third source MAC address and a third target MAC address, and if the third data characteristics match the first data characteristics, the downlink data is sent to the first application side device, Including: 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, sending the downlink data to the The first application side device; if the third data feature matches the second data feature, sending the downlink data to the second application side device includes: determining the third destination If the MAC address is consistent with the second source MAC address, and the third source MAC address is consistent with the second destination MAC address, the downlink data is sent to the second application side device.
  • the method further includes: after receiving a second deactivation request from the second application-side device for the first IP address, determining whether the first processor needs to continue Based on the first IP communicate with the core network based on the first IP address; when it is determined that the first processor needs to continue communicating with the core network based on the first IP address, do not send a message to the core network.
  • the second deactivation request is sent to the core network, and the communication link between the second application side device and the communication module is removed.
  • the removal of 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 to maintain the The first application side device communicates with the core network through the communication module and the parameter information of the communication link involved; the request result of sending the first deactivation request to the first application side device is deactivation. Successful return result.
  • determining whether the second application side device needs to continue communicating with the core network based on the first IP address includes: determining whether there is a connection with the second application side device.
  • the second dialing entity corresponding to the side device; the second dialing entity is created by the communication module to maintain the communication involved in the communication between the second application side device and the core network through the communication module.
  • the dialing entity of the parameter information of the link if yes, 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; if not, it is determined that the second The application-side device no longer needs to continue communicating with the core network based on the first IP address.
  • this application provides a communication module.
  • the communication module is connected to at least a first application side device and a second application side device.
  • the communication module includes: a first receiving unit for receiving the The first application side device sends the first activation request through the first access point name APN, and forwards the first activation request to the core network; the second receiving unit is used to receive the core network's response to the first activation request.
  • Activate the first Internet Protocol IP address requesting feedback, and forward the first IP address to the first application side device;
  • the first receiving unit is also configured to receive the second application side device through a second activation request sent by the first APN; a response unit configured to feed back the first IP address to the second application-side device in response to the second activation request.
  • the present application provides an electronic device, including: a memory and a processor, wherein the memory stores program instructions; when the program instructions are executed by the processor, the processor is caused to execute the steps of the first aspect and the first aspect.
  • embodiments of the present application provide a chip system, which is applied to an electronic device.
  • the chip system includes one or more processors, and the processor is used to call computer instructions to cause the electronic device to execute the first aspect. or the method shown in any possible implementation of the first aspect.
  • the present application provides a computer-readable storage medium that stores a computer program; when the computer program is run on one or more processors, it causes the electronic device to execute the first step aspect and the method described in any possible implementation manner in the first aspect.
  • the present application provides a computer program product containing instructions.
  • the computer program product When the computer program product is run on an electronic device, the electronic device causes the electronic device to execute as described in the first aspect and any possible implementation manner of the first aspect. method.
  • the communication module provided by the second aspect, the electronic device provided by the third aspect, the chip system provided by the fourth aspect, the computer storage medium provided by the fifth aspect and the computer program product provided by the sixth aspect are all used for Execute the method shown in the first aspect or any implementation of the first aspect of the embodiment of this application. Therefore, what it can achieve For beneficial effects, please refer to the beneficial effects in the corresponding method, which will not be described again here.
  • Figure 1A is a schematic diagram of the application environment of a communication method provided by an embodiment of the present application.
  • Figure 1B is a schematic diagram of internal data distribution between a modem and AP1 and AP2 provided by the embodiment of the present application;
  • Figure 2 is a schematic flow chart of a communication method provided by an embodiment of the present application.
  • Figure 3 is a schematic flow chart of another communication method provided by an embodiment of the present application.
  • Figure 4 is a schematic flow chart of another communication method provided by an embodiment of the present application.
  • Figure 5 is a schematic flow chart of another communication method provided by an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of a communication module provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another communication module provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of another communication module provided by an embodiment of the present application.
  • At least one (item) means one or more
  • plural means two or more
  • at least two (items) means two or three and three
  • “and/or” is used to describe the relationship between associated objects, indicating that there can be three relationships.
  • a and/or B can mean: only A exists, only B exists, and A and B exist simultaneously. In this case, A and B can be singular or plural.
  • the character “/” generally indicates that the related objects are in an "or” relationship.
  • At least one of the following” or similar expressions refers to any combination of these items.
  • at least one of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c" ".
  • the embodiment of the present application provides a data communication method.
  • some knowledge related to the data communication of the present solution is first introduced below.
  • an IP address corresponds to a PDN communication link one-to-one
  • the communication link refers to the communication link between the communication module (modem), the base station, and the core network pointed to by the IP address.
  • the client software in the electronic device wants to access the server through the Internet, it needs to first use the access point name (APN) corresponding to the server to initiate data service dialing to the core network through the modem.
  • APN access point name
  • the modem requests the core network through the base station to activate the communication link corresponding to the APN between the modem, the base station and the core network; after receiving the request, the core network allocates an IP address to the modem. After the modem receives the IP address, it Should The IP address is fed 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.
  • a communication module can use one APN for data service dialing at the same time, and establish a data link corresponding to the APN with the base station.
  • Two different modems can use the same APN for data service dialing at the same time, and establish data links corresponding to the APN with the base station respectively.
  • a modem cannot use the same APN to establish more than two data links with the base station at the same time.
  • the core network will refuse to establish a second data link with the modem through the APN (that is, the core network will refuse to establish a second data link through the APN again).
  • the modem is assigned another IP address).
  • the application environment diagram includes a core network, a base station, a communication module (modem), and two or more application-side devices connected to the modem.
  • the base station plays a transparent transmission role in the communication between the modem and the core network.
  • one application-side device among the two or more application-side devices is called a first application-side device (hereinafter referred to as AP1), and other application-side devices except the first application-side device are called Any application-side device among the side devices is called a second application-side device (hereinafter referred to as AP2).
  • AP1 first application-side device
  • AP2 second application-side device
  • one or more APNs are recorded in the application-side device or modem, and one APN can be used to proxy the access points of one or more servers.
  • APN can be used to proxy the access points of one or more servers.
  • their access point names can be the same access point name.
  • AP1 can use the first access point name (hereinafter referred to as apn1) to initiate data service dialing to the modem.
  • apn1 the first access point name
  • the modem After receiving the data service dialing, the modem forwards the data service dialing to the core network and receives the data service dialing.
  • the core network allocates the first IP address to AP1 in response to the data service dialing request corresponding to AP1.
  • the modem detects that AP2 also dials data services through apn1, it does not forward the data service dialing initiated by AP2 to the core network, but directly feeds back the above-mentioned first IP address to AP2, so that AP1 and AP2 can use the first IP address at the same time.
  • the IP address communicates with the base station or core network.
  • the modem is a communication module in a vehicle-mounted device, where AP1 is an application-side device in the application layer of the vehicle-mounted device; the vehicle-mounted device is also connected to an external device (such as a mobile phone) through USB, and the AP2 is The application side device of the application layer in this phone.
  • AP1 on the vehicle device needs to access the server 1 of the vehicle device for FOTA upgrade.
  • AP2 of the external device needs to access server 2 to check the vehicle information, and the access of server 1 and server 2
  • the point name apn1 is consistent. That is, the servers represented by apn1 include server 1 and server 2. If the client (application side device) needs to access server 1 or server 2, it needs to request link resources corresponding to the IP address from the core network based on apn1. For example, AP1 requests link resources for accessing server 1 from the core network based on the apn1 and modem, and obtains the data link resources of the first IP address allocated by the core network.
  • AP2 After AP1 obtains the above-mentioned first IP address based on apn1, AP2 requests link resources for accessing server 2 from the core network based on apn1 and the modem. Since AP2 performs data dialing through the same modem as AP1 and the same apn1 as AP1, then After the core network receives the data dialing request initiated by AP2 based on the modem and apn2, it will generally reject the data link resource request initiated by the modem on apn1 on the grounds that apn1 has established link resources, and only AP1 will be deactivated.
  • the core network After obtaining the above-mentioned first IP address, the core network will re-allocate a new IP address corresponding to the apn1 to AP2 based on the above-mentioned apn1.
  • AP1 and AP2 connected to the same modem cannot be connected to the Internet at the same time to perform corresponding communication tasks in some scenarios, and the communication efficiency needs to be improved.
  • the above-mentioned server 1 and server 2 may be the same or different servers, and this article does not limit this.
  • the modem of the vehicle-mounted device when the modem of the vehicle-mounted device receives AP2's activation request for data link resources from the core network using the above apn1, the modem directly feeds back the above first IP address to AP2 and no longer sends it to AP2.
  • the core network sends the activation request.
  • AP1 and AP2 use the same first IP address to access the Internet to access the corresponding server, and the modem distinguishes whether the session between the first IP address and the base station belongs to the session between AP1 and the base station or the session between AP2 and the base station. .
  • the modem is responsible for managing the sending tasks of uplink data, recording the incoming packet characteristics of uplink data, the receiving tasks of downlink data, and, based on the incoming packet characteristics of downlink data and the uplink data.
  • the incoming packet characteristics of the data distribute the downlink data to the corresponding application-side device.
  • the incoming packet characteristics refer to the data packet characteristics, and the incoming packet characteristics are used to identify a session.
  • the modem is also responsible for determining not to send the data link activation request initiated by the second application-side device to the core network to the core network based on the first IP address, but directly feedback the request to the second application-side device. First IP address.
  • the above modem is responsible for managing the sending task of uplink data, that is, the sending task of the modem sending data packets to the base station; specifically, after the modem receives the data packet from the application side device that is expected to be sent to the core network, the modem sends the data packet to the core network.
  • the above-mentioned downlink data reception task is also the reception task of the data packet sent by the base station to the modem; specifically, it is the reception task of the data packet that the core network expects to send to the application side device through the base station and modem, that is, the downlink data can be understood as the core The data packet sent by the network to the application side device.
  • AP1 after AP1 obtains the above-mentioned first IP address, it can bind the network card of AP1 to the first IP address; after AP2 receives the first IP address fed back by the modem, it can bind the network card of AP2 to the first IP address. . Then, AP1 or AP2 can send uplink data to the modem based on their respective network cards and the first IP address, and the modem then forwards the uplink data to the core network.
  • the internal data distribution task between the modem and AP1 and AP2 is shown in Figure 1B.
  • the modem receives the uplink data sent by AP1 or AP2 through the corresponding network card, it can be recorded through the share management module (share manage).
  • the data characteristics of the uplink data are then sent to the core network.
  • the data characteristics may be data characteristics used to identify a session.
  • the data characteristics may be five-tuple or six-tuple.
  • the modem receives the downlink data sent by the core network, the data characteristics of the uplink data recorded by share management are judged to match the data characteristics of the downlink data sent by AP1 and AP2.
  • the modem will forward the downlink data to AP1; if the data characteristics of the downlink data match the data characteristics of the uplink data sent by AP2, the modem will forward the downlink data to AP1.
  • the downlink data is forwarded to AP2, thus completing into the distribution of downlink data packets.
  • the communication method is applied to a communication module, and the communication module is specifically a modem (hereinafter referred to as modem).
  • the method includes:
  • the communication module receives the first activation request sent by the first application-side device through the first APN, and forwards the first activation request to the core network.
  • the communication module is connected to at least a first application side device and a second application side device.
  • the communication link between the modem and the first application-side device is established through the following steps: the modem sends the modem's network card information to the first application-side device through a message mechanism (hereinafter, for the convenience of description, the modem's network card is called the third network card ); after receiving the information of the third network card, the first application-side device establishes the third network card and the network card of the first application-side device through routing configuration (hereinafter, for the convenience of description, the network card of the first application-side device is called the third network card).
  • the communication link between the first application side device and the modem is successfully established, and the relationship between the first application side device and the modem Data communication can be carried out through the first network card and the third network card.
  • the modem can perform communication interaction regarding the first activation request through the link resources between the first network card and the third network card.
  • the communication connection method between the first application side device and the modem can be a wired connection or a wireless communication connection, which is not limited herein.
  • the above-mentioned first activation request can also be understood as a data service dialing request, a data link activation request or a packet data network (packet data network, PDN) link activation request sent by the first application side device to the modem.
  • the first activation request is specifically used to request the core network to allocate PDN data link resources to the first application side device and establish a signaling connection with the core network.
  • the above-mentioned first activation request carries the above-mentioned first APN.
  • the first APN may also be called a first access point name.
  • the first application-side device may generate the above-mentioned first activation request according to the preset PDN context information.
  • the first activation request may also carry other information, such as the first activation request.
  • the request can also carry information such as IP type, which is not limited in this article.
  • the modem can establish (can also be understood as creating) a first dial-up entity corresponding to the first activation request.
  • the first dial-up entity can be understood as a class object in the program code.
  • the first dial-up entity is used to maintain the parameter information of the communication link involved in the communication between the first application-side device and the core network through the modem, or it can also be understood that the first dial-up entity is used to maintain the bearer of the first application-side device.
  • the first dial-up entity may be used to encapsulate and transport data packets from the first application-side device according to the communication protocol so that the modem can send the data packets to the core network through the network.
  • the communication module receives the 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.
  • the modem and the first application-side device can communicate between the first application-side device and the core network based on the first IP address.
  • the above-mentioned first IP address may also be called a first Internet Protocol address.
  • the first IP address is the core network’s target The PDN link resources fed back by the first activation request.
  • the modem After the modem receives the first IP address, it can establish an association between the first IP address and the modem's network card (the third network card), which indicates that the modem can use the first IP address and the core network based on the third network card. communication.
  • the PDP_ACT_REQ message in the first activation request carries the first APN.
  • the activation reply message PDP_ACT_CNF carries Indication information indicating successful link activation (for example, OK) and the above-mentioned first IP address (for example, x.x.x.x).
  • the modem 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 parses the activation reply message PDP_ACT_CNF to obtain the above-mentioned first IP address and link activation success indication information. .
  • the first application-side device After the first application-side device obtains the above-mentioned first IP address, it can establish an association between the first IP address and the network card (first network card) of the first application-side device, so that when the first application-side device When it is necessary to access the server corresponding to the first IP address, the communication data can be sent to the modem through the first network card and the first IP address, and then sent by the modem to the core network, so that the first application-side device communicates with the core communication between networks.
  • the network card first network card
  • the communication module receives the second activation request sent by the second application-side device through the first APN.
  • the above-mentioned second activation request can also be understood as a data service dialing request, a data link activation request or a PDN link activation request sent by the second application side device to the modem.
  • the second activation request is specifically used for 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 above-mentioned second activation request carries the above-mentioned first APN.
  • the second application-side device may generate the above-mentioned second activation request according to the preset PDN context information.
  • the second activation request may also carry other information, such as the second activation request.
  • the request can also carry information such as IP type, which is not limited in this article.
  • the modem 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, it establishes a second dialing entity corresponding to the second activation request.
  • the second dial-up entity is used to maintain the parameter information of the communication link involved in the communication between the second application-side device and the core network through the modem, or it can also be understood that the second dial-up entity is used to maintain the bearer of the second application-side device.
  • the second dial-up entity may be used to encapsulate and transport data packets from the first application side device according to the communication protocol so that the modem can send the data packets to the core network through the network.
  • the communication module responds to the second activation request and feeds back the first IP address to the second application side device.
  • the modem and the second application-side device can communicate between the second application-side device and the core network based on the first IP address.
  • the modem 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.
  • the PDP_ACT_REQ message in the second activation request carries the first APN.
  • the activation The reply message PDP_ACT_CNF carries indication information of successful link activation (for example, OK) and the above-mentioned first IP address (for example, x.x.x.x).
  • the second application-side device can establish the first IP address and the 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 the second IP address).
  • the network card of the second application-side device is referred to as the second IP address.
  • network card so that when the second application-side device needs to access the server corresponding to the first IP address, the communication data can be sent to the modem through the second network card and the first IP address, and the The modem is sent to the core network for communication between the second application side device and the core network.
  • 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. request, the second activation request is not forwarded to the core network, but the first IP address is directly fed back 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.
  • the first application side device and the second application side device can communicate with the core network at the same time based on the same modem and the first IP address, which can meet the requirements of multiple application side devices using the same modem and the same apn at the same time.
  • Network communication needs and improve communication efficiency.
  • the method before feedbacking the first IP address to the second application-side device in response to the second activation request, the method further includes: determining the second activation request. whether the request carries the first APN; and responding to the second activation request, feeding back the first IP address to the second application side device includes: determining whether the second activation request carries the In the case of the first APN, in response to the second activation request, the first IP address is fed back to the second application side device.
  • the modem after receiving the second activation request sent by the second application-side device, the modem first determines whether the APN carried in the second activation request is consistent with the above-mentioned first APN. If it is consistent, the modem does not use the second activation request.
  • the activation request is sent to the core network, but directly feeds back the first IP address corresponding to the first APN to the second application side device.
  • the communication module in response to the second activation request, feeds back the above-mentioned first IP address to the second application side device, including: establishing a second dialing entity related to the second activation request, The second dialing entity is used to maintain the parameter information of the communication link involved in the communication between the second application side device and the core network through the communication module; and send the said second application side device to the second application side device.
  • the first IP address and indication information indicating successful link establishment.
  • the response result of the modem to the second activation request includes: establishing the above-mentioned second dialing entity, and sending the first IP address and indication information indicating that the link is established successfully to the second application-side device.
  • the modem, application-side device and core network perform the following operations in the order of numbers shown in Figure 3:
  • the first application side device uses apn1 for data service dialing, and carries apn1 to the modem by passing parameters through the PDP_ACT_REQ message (first activation request).
  • the first dial-up entity is used to maintain the parameter information of the communication link involved in the communication between the first application-side device and the core network through the communication module.
  • the first dial-up entity is used to transfer data from the first application to the core network according to the communication protocol.
  • the data packets are encapsulated and transported by the side device so that the modem can send the data packets through the network to the base station.
  • the PDP_ACT_CNF message carries the activation result OK and the first IP address ( For example, x.x.x.x, the address described by x.x.x.x in this article is the same IP address).
  • Send the PDP_ACT_REQ (apn apn1) message initiated by AP2.
  • AP1 and AP2 can share the same IP address and communicate with the core network at the same time, thereby meeting the communication requirements of multiple devices accessing the server through the same communication module at the same time and improving communication efficiency.
  • the described AP1 and AP2 can share the same IP address and communicate with the core network at the same time, which means that AP1 uses the first IP address to communicate with the core network based on the same modem, and AP2 uses the same modem to communicate with the core network.
  • the first IP address communicates with the core network.
  • the communication between the two does not interfere with each other and can be carried out at the same time. However, it does not mean that the communication between AP1 and the core network and the communication between AP2 and the core network must be at the same time. This article There is no restriction on this.
  • the first uplink data sent by the first application side device and the second uplink data sent by the second application side device are received, and the first uplink data and the The second uplink data is forwarded to the core network; the first uplink data carries first data characteristics, and the second uplink data carries second data characteristics; the downlink data sent by the core network is received, and the downlink data carries Third data feature; if the third data feature matches the first data feature, then send the downlink data to the first application side device, if the third data feature matches the second data If the characteristics match, the downlink data is sent to the second application side device.
  • 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 second source MAC address and a second destination MAC address.
  • the third data feature includes a third source MAC address and a third target MAC address, and if the third data feature is the same as the first data feature, If there is a match, sending the downlink data to the first application side device includes: determining 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 source MAC address.
  • the downlink data is sent to the first application side device; if the third data feature matches the second data feature, the downlink data is sent to the first application side device. Sent to the second application-side device, including: when it is determined 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. Next, send the downlink data to the second application side device.
  • the first source MAC address and the first destination MAC address are included in the first six-tuple, and the second source MAC address and the second destination MAC address are included in the second six-tuple.
  • the third source MAC address and the first destination MAC address are included in a third six-tuple.
  • 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, and receives the third uplink data sent by the core network, and Determining to send the third uplink data to one of the first application side device or the second application side device based on the data characteristics includes:
  • S401 Receive the first uplink data sent by the first application side device.
  • the first application side device sends the first uplink data to the modem.
  • the first data characteristics carried by the above-mentioned first uplink data include: a first source MAC address and a first destination MAC address, where the first source MAC address is the physical address of the network card of the first application-side device, and the first destination MAC address It is the physical address of the server that the first application-side device needs to access through the modem.
  • the above-mentioned first uplink data carries the first six-tuple, which can also be understood as the above-mentioned first data feature is the first six-tuple, and the first six-tuple includes the above-mentioned first source MAC address and the first six-tuple. A destination MAC address. It is understandable that the six-tuple may also include other information. For example, the six-tuple may also include: one or more of the source IP address, destination IP address, source port number, and destination port number. This article does not cover this. Make limitations. It can be understood that in this application, the first application side device and the second application side device use the same IP address. If the first six-tuple includes the source IP address, then the source IP address of the first six-tuple is the first IP address mentioned above.
  • S402 Send the first uplink data to the core network, and accordingly, the core network receives the first uplink data.
  • S403 Receive the second uplink data sent by the second application side device, and accordingly, the second application side device sends the second uplink data to the modem.
  • the second data characteristics carried by the above-mentioned second uplink data include: a second source MAC address and a second destination MAC address, where the second source MAC address is the physical address of the network card of the second application-side device, and the second destination MAC address The physical address of the server that the second application-side device needs to access through the modem.
  • the second uplink data carries a second six-tuple, and it can also be understood that the second data feature is the second six-tuple.
  • the second six-tuple includes the above-mentioned second source MAC address and the second Destination MAC address. It is understandable that the six-tuple may also include other information.
  • the six-tuple may also include: one or more of the source IP address, destination IP address, source port number, and destination port number. This article does not cover this. Make limitations. It can be understood that in this article, the first application side device and the second application side device use the same IP address. If the second six-tuple includes the source IP address, the source IP address of the second six-tuple is the above-mentioned first IP address.
  • S404 Send the second uplink data to the core network, and accordingly, the core network receives the second uplink data.
  • S405 Receive downlink data sent by the core network, and accordingly, the core network sends the downlink data to the modem.
  • the third characteristic data carried in the above-mentioned downlink data includes: a third source MAC address and a third destination MAC address, where the third source MAC address is the physical address of the server that expects to send the downlink data to the application-side device through the core network,
  • the third target MAC address is the MAC address of the application-side device that the core network desires to communicate with.
  • the above downlink data carries a third six-tuple
  • the third six-tuple includes the above-mentioned third source MAC address and the third destination MAC address.
  • S406 Determine one of the first data features and the second data feature that matches the third data feature in the uplink data.
  • the third destination MAC address is consistent with the first source MAC address
  • the third source MAC address is consistent with the first destination MAC address
  • the modem determines that the above-mentioned third destination MAC address is consistent with the above-mentioned second source MAC address, and the above-mentioned third source MAC address is consistent with the above-mentioned second destination MAC address, it means that the second uplink data and the above-mentioned downlink data belong to messages in the same conversation. Then the modem uses the downlink data as the downlink data of the second uplink data, and sends the downlink data to the second application side device.
  • step S402 must be executed after the above-mentioned S401, and S404 must be executed after S403. Based on this, the order of the steps from S401 to S404 in Figure 4 is only an example, and it can also be other orders. This article discusses This is not limited.
  • the execution order between steps S401 to S404 can be: S403, S404, S401, S402; it can also be: S403, S401, S404, S402; it can also be S401, S403, S404, S402; as long as it satisfies
  • Other step combinations under the condition that step S402 is executed after the above-mentioned S401 and S404 is executed after S403 are feasible, and this article does not limit this.
  • the above-mentioned data characteristics may also be other identifiers other than MAC used to identify a pair of conversations, which is not limited in this article.
  • the above-mentioned data characteristics may also be port numbers.
  • whether the uplink data and downlink data belong to the same session can be identified by the port number.
  • the above-mentioned first characteristic data includes a first source port number and a first destination port number
  • the above-mentioned second characteristic data includes a second source port number and a second destination port number
  • the above-mentioned third characteristic data Including the third source port number and the third destination port number.
  • sending the downlink data to the first application side device includes: determining the third destination port number and the first source If the port numbers are consistent and the third source port number is consistent with the first destination port number, the downlink data is sent to the first application side device.
  • sending the downlink data to the second application side device includes: determining the third destination port number and the second source The port numbers are consistent and the third If the source port number is consistent with the second destination port number, the downlink data is sent to the second application side device.
  • the first data feature is a first six-tuple, and the first six-tuple includes a first source port number and a first destination port number.
  • the second data feature is a second six-tuple, and the second six-tuple includes a second source port number and a second destination port number.
  • the third data feature is a third six-tuple, and the third six-tuple includes a third source port number and a third destination port number.
  • the first data feature includes a first five-tuple, and the first five-tuple includes a first source port number and a first destination port number.
  • the above-mentioned second data feature includes a second five-tuple, and the above-mentioned second five-tuple includes a second source port number and a second destination port number.
  • the above-mentioned third data feature includes a third quintuple, and the above-mentioned third quintuple includes a third source port number and a third destination port number.
  • the information contained in the quintuple consists of the source port number and the destination port number, and may also include one or more of the source IP address, the destination IP address, and the transport layer protocol, which is not limited in this article.
  • the above method further includes: after receiving the first deactivation request sent by the first application side device, determining whether the second application side device needs to continue to use the first IP address based on the first deactivation request. Carry out communication with the core network; if yes, only remove the communication link between the first application side device and the communication module; if not, remove the communication link between the first application side device and the communication module communication link between the modules, forward the first deactivation request to the core network, and remove the communication link between the communication module and the core network.
  • the above method also includes the method shown in Figure 5:
  • S502 Determine whether the second processor needs to continue communicating with the core network based on the first IP address.
  • the above determination of whether the second processor needs to continue communicating with the core network based on the first IP address includes: determining whether there is a second dialing entity corresponding to the second application side device; the second The dialing entity is a dialing entity created by the communication module to maintain parameter information of the communication link involved in the communication between the second application side device and the core network through the communication module; if so, determine The second application side device still needs to continue to communicate with the core network based on the first IP address; if not, it is determined that the second application side device no longer needs to continue to communicate with the core network based on the first IP address. address for communication with the core network.
  • dial-up entity corresponding to the application-side device is not destroyed, it means that the corresponding application-side device still needs to continue to communicate with the core network through the corresponding IP address. That is to say, if the second dial-up entity is not deleted, it means 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.
  • the modem can determine whether the second application side device needs to continue to communicate 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. communication between. For example, if the above-mentioned second dial-up entity is not maintained in the modem, indicating that the second dial-up entity has not been created, or the second dial-up entity has been created but the created second dial-up entity has been cleared, then determine that the second application-side device There is no need to continue communicating with the core network based on the first IP address. For example, if the modem maintains the above second dial-up entity, it is determined that the second application side device still needs to continue communicating with the core network based on the first IP address.
  • step S503 is executed; when it is determined that the second processor does not need to continue communicating with the core network based on the first IP address. In the case of communication, step S504 is executed.
  • the first application-side device does not need to use the first IP address and initiates the above-mentioned first deactivation request
  • the second processor needs to continue communicating with the core network based on the first IP address
  • the modem does not send the first deactivation request to the core network through the air interface, and does not remove the connection between the modem and the communication module.
  • the communication link resource related to the first IP address is used instead of only dismantling the communication link between the first application side device and the communication module.
  • the above-mentioned removal of the communication link between the first application side device and the communication module refers to the elimination of the communication link parameter information between the first application side device and the communication module in terms of software information, rather than the removal of the communication link parameter information between the first application side device and the communication module. Dismantle communication circuits between hardware layers.
  • the deleting the communication link between the first application side device and the communication module includes: deleting the first dialing entity, and deleting the association between the first application side device and the first IP address;
  • the first dialing entity is used to maintain the parameter information of the communication link involved in the communication between the first application side device and the core network through the communication module; and send the information about the first application side device to the first application side device.
  • the request result of the first deactivation request is a return result of successful deactivation.
  • the return result of successful deactivation may be used to indicate that the modem has removed the bearer related to the first application-side device.
  • the modem sends an instruction message to the first application side device to delete the binding relationship between the first network card and the first IP address.
  • 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 record in the routing configuration of the first application-side device. The relationship between the third network card and the first network card.
  • the first application side device after the first application side device initiates the first deactivation request, it will not immediately delete the binding relationship between the first network card and the first IP address, but First, 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 will not also Data can no longer be sent to the core network based on the first IP address and modem. After receiving the return result of successful deactivation, the first application-side device deletes the binding relationship between the first network card and the first IP address.
  • S504 Send a first deactivation request to the core network, dismantle the communication link between the first application-side device and the communication module, and dismantle the communication link between the communication module and the core network.
  • the modem can send the first deactivation request to the core network through the air interface. It is understandable that after receiving the deactivation request for the first IP address, the core network will terminate the association between the first IP address and the above-mentioned modem, which can also be understood as invalidating the first IP address.
  • the modem can perform the above-mentioned tasks of sending the first deactivation request to the core network and dismantling the communication link between the first application-side device and the communication module simultaneously or successively. This article does not do this. limited.
  • deleting the communication link between the communication module and the core network means deleting the association between the third network card and the first IP address recorded on the modem side.
  • the modem After the modem sends the above-mentioned first deactivation request, it will not immediately dismantle the communication link between the communication module and the core network, but will connect the modem's network card (third network card) recorded in the modem with the first IP address. The relationship is set to an unavailable state.
  • the modem receives the deactivation success indication message responded by the core network, the modem deletes the recorded association between the third network card and the first IP address.
  • the modem handles the second deactivation request for the first IP address initiated by the second application side device in the same manner as the modem receives the first deactivation request for the first IP address initiated by the first application side device.
  • Activation requests are handled in a similar manner and will not be described in detail.
  • the above method further includes: after receiving a second deactivation request from the second application-side device for the first IP address, determining whether the first processor needs to continue to operate based on the first IP address. address to communicate with the core network; when it is determined that the first processor needs to continue to communicate with the core network based on the first IP address, do not send a message to the core network.
  • the second deactivation request is sent to the core network, and the communication link between the first application side device and the communication module is removed.
  • the modem does not perform the task of sending the first deactivation request to the base station. Instead, the task of dismantling the communication link between the first application-side device and the modem is first performed, and then the tasks of dismantling the communication link between the first application-side device and the modem and sending the second deactivation request to the base station are performed.
  • the modem can simultaneously or successively perform the dismantling of the communication link between the first application-side device and the communication module, and the dismantling of the communication link.
  • the communication link between the second application side device and the communication module and the air interface initiate a deactivation request (first deactivation request or second deactivation request) for the first IP address to the base station.
  • first deactivation request and second deactivation request are only to distinguish whether the activation request comes from the first application side device or the second application side device, and the specific parameters of the first deactivation request and the second deactivation request are The information can be consistent, and this article does not limit this.
  • the first network card, the second network card or the third network card refers to a physical network card including a MAC address.
  • some management tasks can be performed through the shared management module (share manage) in the modem to perform communication between the first application side device, the second application side device and the core network.
  • the share manager determines whether to forward an activation request regarding the first APN (such as the above-mentioned second activation request) to the core network, and/or the share manager performs how to determine the destination of the downlink data when receiving the downlink data. belongs to The first application side device is still the second application side device.
  • the share manager executes one or more of the methods shown in Figures 4 and 5.
  • the shared management module can be a hardware module and/or a software application in the communication module.
  • the share manage is a program class included in the communication module including a hardware processing unit and a software program. Or instantiated object interaction software and hardware modules, this article does not limit this.
  • FIG. 6 provides a schematic structural diagram of a communication module according to an embodiment of the present invention.
  • the communication module is connected to at least a first application side device and a second application side device.
  • the communication module according to the embodiment of the present invention may include:
  • the communication module is connected to at least a first application side device and a second application side device, and the communication module includes:
  • the first receiving unit 601 is configured to receive the first activation request sent by the first application side device through the first access point name APN, and forward the first activation request to the core network;
  • the second receiving unit 602 is configured to receive the 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 also configured to receive a second activation request sent by the second application side device through the first APN;
  • the response unit 603 is configured to feed back the first IP address to the second application side device in response to the second activation request.
  • the above communication module also includes:
  • the first determining unit 604 is used to determine whether the second activation request carries the first APN; the response unit 603 is specifically used to determine whether the second activation request carries the first APN. , in response to the second activation request, feedback the first IP address to the second application side device.
  • the above response unit 603 is specifically used to establish a second dialing entity regarding the second activation request, and the second dialing entity is used to maintain the second application side device through the Parameter information of the communication link involved in communication between the communication module and the core network; sending the first IP address and indication information indicating successful link establishment to the second application side device.
  • the above-mentioned first receiving unit 601 is also configured to receive the first uplink data sent by the first application side device and the second uplink data sent by the second application side device, and send The first uplink data and the second uplink data are forwarded to the core network; the first uplink data carries first data characteristics, and the second uplink data carries second data characteristics; the above-mentioned second receiving unit 602 It is also used to receive downlink data sent by the core network, and the downlink data carries a third data feature; the above-mentioned communication module also includes: a sending unit 605, used to compare the third data feature with the first data feature. If the third data feature matches the second data feature, the downlink data is sent to the first application side device. If the third data feature matches the second data feature, the downlink data is sent to the second application side device.
  • the communication module further includes: a second determining unit 606, configured to determine that the second application-side device sends a first deactivation request after receiving the first deactivation request from the first application-side device. Whether the device needs to continue to communicate with the core network based on the first IP address; the removal unit 607 is used to determine whether the second application side device needs to continue to communicate with the core network based on the first IP address.
  • the above-mentioned removal unit 607 is specifically used to delete the first dial-up entity; the first dial-up entity is used to maintain the connection between the first application-side device and the core network through the communication module. Parameter information of the communication link involved in the communication; sending a request result regarding the first deactivation request to the first application side device is a return result of successful deactivation.
  • the communication module shown in Figure 6 or Figure 7 can have a variety of product forms.
  • the communication module may also be a communication module of a processor, a communication interface, a memory, and a communication bus as shown in FIG. 8 .
  • the communication module 80 may include:
  • the communication bus 802 is used to realize connection communication between these components.
  • the communication interface 803 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface or a Bluetooth interface, etc.).
  • the memory 804 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory.
  • the memory 804 may optionally be at least one storage device located remotely from the processor 801 . As shown in Figure 8, memory 804, which is a computer storage medium, may include an operating system and program instructions.
  • the processor 801 may be used to implement the steps or methods performed by the first receiving unit 601, the second receiving unit 602, and the response unit 603 in FIG. 6 .
  • processor 801 and other modules in the communication module 80 may also be used to execute the first receiving unit 601, the second receiving unit 602, and the response in FIG. 6
  • the steps or methods performed by unit 603 are not limited in this article.
  • processor 801 can also be used to implement the steps performed by one or more of the first determination unit 604, the sending unit 605, the second determination unit 606 and the disassembly unit 607 in Figure 7 or method.
  • processor 801 and other modules in the communication module 80 may also be used to execute the first determining unit 604, the sending unit 605, and the second determining unit in FIG. 7 606 and the steps or methods performed by one or more units in the dismantling unit 607 are not limited herein.
  • the processor 801 can be used to load the program instructions stored in the memory 804, and specifically perform the following operations:
  • Communication between the first application side device and the core network is performed based on the first IP address, and communication between the second application side device and the core network is performed based on the first IP address. communication.
  • the first application side device the second application side device, the first APN, the first IP address and the second
  • the first APN the first APN
  • the first IP address the second
  • the communication module the first application side device, the second application side device, the first APN, the first IP address and the second
  • Embodiments of the present invention also provide a computer storage medium.
  • the computer storage medium can store multiple instructions.
  • the instructions are suitable for being loaded by a processor and executing the method steps of the embodiments shown in Figures 2 to 5.
  • For the specific execution process please refer to the specific description of the embodiment shown in Figures 2 to 5, and will not be described again here.
  • the term “when” may be interpreted to mean “if" or “after” or “in response to determining" or “in response to detecting" depending on the context.
  • the phrase “when determining" or “if (stated condition or event) is detected” may be interpreted to mean “if it is determined" or “in response to determining" or “on detecting (stated condition or event)” or “in response to detecting (stated condition or event)”.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted over a wired connection from a website, computer, server, or data center (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, solid state drive), etc.

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

Provided in the present application are a communication method and a communication module. The communication method is applied to a communication module, and the communication module is at least connected to a first application-side device and a second application-side device. The method comprises: receiving a first activation request which is sent by a first application-side device by means of a first APN, and forwarding the first activation request to a core network; receiving a first IP address which is 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 which is sent by a second application-side device by means of the first APN; and feeding back the first IP address to the second application-side device in response to the second activation request. By means of the present application, the communication requirement for a plurality of application-side devices docking with the same communication module to use the same APN for networking is met, such that the communication efficiency is improved.

Description

一种通信方法及通信模组A communication method and communication module
本申请要求于2022年08月12日提交中国专利局、申请号为202210971467.5、申请名称为“一种通信方法及通信模组”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on August 12, 2022, with the application number 202210971467.5 and the application title "A communication method and communication module", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及计算机领域,尤其涉及一种通信方法及通信模组。The present application relates to the field of computers, and in particular, to a communication method and communication module.
背景技术Background technique
以互联网为基础,物联网可以将多个物理设备都连接到互联网上,进行数据的收集和分享。Based on the Internet, the Internet of Things can connect multiple physical devices to the Internet to collect and share data.
一般地,在物联网多连接情境中,一个通信模组modem可以连接一个或多个外接设备。在一些情境中,例如当modem连接的第一外接设备与第二外接设备需要访问的服务器对应的APN一致,且该第一外接设备已通过第一APN联网的情况下,若第二外接设备又通过该第二APN向核心网发起联网请求,则会出现联网失败的状况。Generally, in the multi-connection scenario of the Internet of Things, a communication module modem can connect to one or more external devices. In some situations, for example, when the APN corresponding to the first external device connected to the modem and the server that the second external device needs to access are consistent, and the first external device has been connected to the Internet through the first APN, if the second external device is If a networking request is initiated to the core network through the second APN, networking failure will occur.
由此导致在一些物联网多连接情境下,modem不能同时满足多个外接设备的网络需求,通信效率有待提高。As a result, in some IoT multi-connection scenarios, the modem cannot meet the network needs of multiple external devices at the same time, and communication efficiency needs to be improved.
发明内容Contents of the invention
第一方面,本申请提供一种通信方法,应用于通信模组,所述通信模组至少连接有第一应用侧设备和第二应用侧设备,所述方法包括:接收所述第一应用侧设备通过第一APN发送的第一激活请求,并向核心网转发所述第一激活请求;接收所述核心网响应于所述第一激活请求反馈的第一IP地址,并向所述第一应用侧设备转发所述第一IP地址;接收所述第二应用侧设备通过所述第一APN发送的第二激活请求;响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。In a first aspect, this application provides a communication method, applied to a communication module. The communication module is connected to at least a first application side device and a second application side device. The method includes: receiving the first application side device. The device sends the first activation request through the first APN, and forwards the first activation request to the core network; receives the 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 activation request. The application-side device forwards the first IP address; receives a second activation request sent by the second application-side device through the first APN; responds to the second activation request, feeds back to the second application-side device The first IP address.
由此,采用本申请实施例提供的方法,当modem连接的第一应用侧设备与第二应用侧设备需要访问的服务器对应的APN一致,均为上述第一APN,且该第一外接设备已基于该第一APN获得PDN链路资源也即上述第一IP地址的情况下,modem在接收到上述第二应用侧设备基于上述第一APN发起的上述第二激活请求后,不向核心网转发该第二激活请求,而是直接向第二应用侧设备反馈上述第一IP地址,使得第一应用侧设备和第二应用侧设备可以共用相同的该第一IP地址,从而可以实现该第一应用侧设备和该第二应用侧设备基于同一个modem和该第一IP地址同时与核心网进行通信,可以满足多个应用侧设备通过同一个modem和同一个apn同时联网的通信需求,提高通信效率。Therefore, using the method provided by the embodiment of the present application, when the APNs corresponding to the server that the first application-side device connected to the modem and the second application-side device need to access are consistent, they are both the above-mentioned first APN, and the first external device has been When the PDN link resource, that is, the first IP address is obtained based on the first APN, the modem does not forward the request to the core network after receiving the second activation request initiated by the second application-side device based on the first APN. This second activation request directly feeds back the above-mentioned 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 realizing the first The application-side device and the second application-side device communicate with the core network at the same time based on the same modem and the first IP address, which can meet the communication needs of multiple application-side devices to be networked simultaneously through the same modem and the same apn, improving communication efficiency.
在一种可能的实现方式中,在所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址之前,所述方法还包括:确定所述第二激活请求是否携带所述第一APN;所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址,包括:在确定所述第二激活请求中携带所述第一APN的情况下,响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。 In a possible implementation, before feedbacking the first IP address to the second application-side device in response to the second activation request, the method further includes: determining the second activation request. whether the request carries the first APN; and responding to the second activation request, feeding back the first IP address to the second application side device includes: determining whether the second activation request carries the In the case of the first APN, in response to the second activation request, the first IP address is fed back to the second application side device.
在一种可能的实现方式中,所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址,包括:建立关于所述第二激活请求的第二拨号实体,所述第二拨号实体用于维护所述第二应用侧设备通过所述通信模组与所述核心网进行通信涉及到的通信链路的参数信息;向所述第二应用侧设备发送所述第一IP地址和链路建立成功的指示信息。In a possible implementation, the feedback of the first IP address to the second application-side device in response to the second activation request includes: establishing a second dial-up call regarding the second activation request. Entity, the second dialing entity is used to maintain the parameter information of the communication link involved in the communication between the second application side device and the core network through the communication module; send to the second application side device The first IP address and indication information indicating successful link establishment.
在一种可能的实现方式中,所述方法还包括:接收所述第一应用侧设备发送的第一上行数据,和所述第二应用侧设备发送的第二上行数据,并将所述第一上行数据和所述第二上行数据转发给所述核心网;所述第一上行数据携带第一数据特征,所述第二上行数据携带第二数据特征;接收所述核心网发送的下行数据,所述下行数据携带第三数据特征;若所述第三数据特征与所述第一数据特征匹配,则将所述下行数据发送给所述第一应用侧设备,若所述第三数据特征与所述第二数据特征匹配,则将所述下行数据发送给所述第二应用侧设备。In a possible implementation, the method further includes: receiving the first uplink data sent by the first application side device and the second uplink data sent by the second application side device, and converting the first uplink data sent by the second application side device. An uplink data and the second uplink data are forwarded to the core network; the first uplink data carries a first data feature, and the second uplink data carries a second data feature; and the downlink data sent by the core network is received. , the downlink data carries a third data feature; if the third data feature matches the first data feature, the downlink data is sent to the first application side device, if the third data feature matches If the second data feature matches, the downlink data is sent to the second application side device.
由此,modem在接收到核心网发送的下行数据时可以根据数据特征完成数据的分发,在网络通信的准确性层面为IP地址资源共享提供保障。Therefore, when the modem receives the downlink data sent by the core network, it can complete the data distribution according to the data characteristics, providing guarantee for IP address resource sharing at the accuracy level of network communication.
在一种可能的实现方式中,所述方法还包括:在接收到所述第一应用侧设备发送第一去激活请求后,确定所述第二应用侧设备是否需要继续基于所述第一IP地址进行与所述核心网之间的通信;若是,仅拆除所述第一应用侧设备与所述通信模组之间的通信链路;若否,拆除所述第一应用侧设备与所述通信模组之间的通信链路,并向所述核心网转发所述第一去激活请求,拆除所述通信模组与核心网的通信链路。In a possible implementation, the method further includes: after receiving the first deactivation request sent by the first application side device, determining whether the second application side device needs to continue to use the first IP address based on the first deactivation request. address to communicate with the core network; if yes, only dismantle the communication link between the first application side device and the communication module; if not, dismantle the first application side device and the communication links between communication modules, forward the first deactivation request to the core network, and remove the communication link between the communication module and the core network.
可理解的,在第一应用侧设备不需要使用第一IP地址而发起上述第一去激活请求时,若确定第二处理器不需要继续基于第一IP地址进行与核心网之间的通信,则modem可以向核心网发送关于该第一IP地址的去激活请求。若确定第二处理器需要继续基于第一IP地址进行与核心网之间的通信,则表明该第一应用侧设备不是与modem对接的两个或两个以上应用侧设备中最后一个发起去激活请求的应用侧设备,与modem对接的多个应用侧设备中,除了上述第一应用侧设备之外的其他应用侧设备中仍有应用侧设备(第二应用侧设备)需要使用上述第一IP地址,则modem不向核心网发送关于该第一IP地址的去激活请求,而是仅拆除第一应用侧设备与通信模组之间的通信链路,从而可以避免出现第二处理器无法继续通过第一IP地址进行与核心网之间的通信的问题,提高IP资源共享的稳定性。It can be understood that when the first application-side device does not need to use the first IP address to initiate the above-mentioned first deactivation request, if it is determined that the second processor does not need to continue communicating with the core network based on the first IP address, Then the modem can send a deactivation request regarding the first IP address to the core network. If it is determined that the second processor needs to continue communicating with the core network based on the first IP address, it indicates that the first application-side device is not the last one of the two or more application-side devices connected to the modem to initiate deactivation. The requested application-side device, among the multiple application-side devices connected to the modem, in addition to the above-mentioned first application-side device, there are still application-side devices (second application-side devices) that need to use the above-mentioned first IP address, the modem does not send a deactivation request for the first IP address to the core network, but only dismantles the communication link between the first application-side device and the communication module, thereby avoiding the situation where the second processor cannot continue. The problem of communicating with the core network through the first IP address improves the stability of IP resource sharing.
在一种可能的实现方式中,所述第一数据特征包括第一源MAC地址和第一目的MAC地址,所述第二数据特征包括第二源MAC地址和第二目的MAC地址,所述第三数据特征包括第三源MAC地址和第三目标MAC地址,所述若所述第三数据特征与所述第一数据特征匹配,则将所述下行数据发送给所述第一应用侧设备,包括:在确定所述第三目的MAC地址与所述第一源MAC地址一致,且所述第三源MAC地址与所述第一目的MAC地址一致的情况下,将所述下行数据发送给所述第一应用侧设备;所述若所述第三数据特征与所述第二数据特征匹配,则将所述下行数据发送给所述第二应用侧设备,包括:在确定所述第三目的MAC地址与所述第二源MAC地址一致,且所述第三源MAC地址与所述第二目的MAC地址一致的情况下,将所述下行数据发送给所述第二应用侧设备。In a possible implementation, 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, and the third data characteristic includes a second source MAC address and a second destination MAC address. The three data characteristics include a third source MAC address and a third target MAC address, and if the third data characteristics match the first data characteristics, the downlink data is sent to the first application side device, Including: 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, sending the downlink data to the The first application side device; if the third data feature matches the second data feature, sending the downlink data to the second application side device includes: determining the third destination If the MAC address is consistent with the second source MAC address, and the third source MAC address is consistent with the second destination MAC address, the downlink data is sent to the second application side device.
在一种可能的实现方式中,所述方法还包括:在接收到所述第二应用侧设备针对所述第一IP地址的第二去激活请求后,确定所述第一处理器是否需要继续基于所述第一IP地 址进行与所述核心网之间的通信;在确定所述第一处理器需要继续基于所述第一IP地址进行与所述核心网之间的通信的情况下,不向所述核心网发送所述第二去激活请求,且拆除所述第二应用侧设备与所述通信模组之间的通信链路;在确定所述第一处理器不需要继续基于所述第一IP地址进行与所述核心网之间的通信的情况下,向所述核心网发送所述第二去激活请求,且拆除所述第二应用侧设备与所述通信模组之间的通信链路。In a possible implementation, the method further includes: after receiving a second deactivation request from the second application-side device for the first IP address, determining whether the first processor needs to continue Based on the first IP communicate with the core network based on the first IP address; when it is determined that the first processor needs to continue communicating with the core network based on the first IP address, do not send a message to the core network. The second deactivation request and dismantling the communication link between the second application side device and the communication module; after determining that the first processor does not need to continue to perform communication based on the first IP address In the case of communication between the core networks, the second deactivation request is sent to the core network, and the communication link between the second application side device and the communication module is removed.
在一种可能的实现方式中,所述拆除所述第一应用侧设备与所述通信模组之间的通信链路包括:删除第一拨号实体;所述第一拨号实体用于维护所述第一应用侧设备通过所述通信模组与所述核心网通信涉及到的通信链路的参数信息;向所述第一应用侧设备发送关于所述第一去激活请求的请求结果为去激活成功的返回结果。In a possible implementation, the removal of 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 to maintain the The first application side device communicates with the core network through the communication module and the parameter information of the communication link involved; the request result of sending the first deactivation request to the first application side device is deactivation. Successful return result.
在一种可能的实现方式中,所述确定所述第二应用侧设备是否需要继续基于所述第一IP地址进行与所述核心网之间的通信包括:确定是否存在与所述第二应用侧设备对应的第二拨号实体;所述第二拨号实体为所述通信模组创建的用于维护所述第二应用侧设备通过所述通信模组与所述核心网进行通信涉及到的通信链路的参数信息的拨号实体;若是,则确定所述第二应用侧设备仍需要继续基于所述第一IP地址进行与所述核心网之间的通信;若否,则确定所述第二应用侧设备不再需要继续基于所述第一IP地址进行与所述核心网之间的通信。In a possible implementation, determining whether the second application side device needs to continue communicating with the core network based on the first IP address includes: determining whether there is a connection with the second application side device. The second dialing entity corresponding to the side device; the second dialing entity is created by the communication module to maintain the communication involved in the communication between the second application side device and the core network through the communication module. The dialing entity of the parameter information of the link; if yes, 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; if not, it is determined that the second The application-side device no longer needs to continue communicating with the core network based on the first IP address.
第二方面,本申请提供一种通信模组,所述通信模组至少连接有第一应用侧设备和第二应用侧设备,所述通信模组包括:第一接收单元,用于接收所述第一应用侧设备通过第一接入点名称APN发送的第一激活请求,并向核心网转发所述第一激活请求;第二接收单元,用于接收所述核心网响应于所述第一激活请求反馈的第一网际互连协议IP地址,并向所述第一应用侧设备转发所述第一IP地址;所述第一接收单元,还用于接收所述第二应用侧设备通过所述第一APN发送的第二激活请求;响应单元,用于响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。In a second aspect, this application provides a communication module. The communication module is connected to at least a first application side device and a second application side device. The communication module includes: a first receiving unit for receiving the The first application side device sends the first activation request through the first access point name APN, and forwards the first activation request to the core network; the second receiving unit is used to receive the core network's response to the first activation request. Activate the first Internet Protocol IP address requesting feedback, and forward the first IP address to the first application side device; the first receiving unit is also configured to receive the second application side device through a second activation request sent by the first APN; a response unit configured to feed back the first IP address to the second application-side device in response to the second activation request.
第三方面,本申请提供一种电子设备,包括:存储器、处理器,其中,该存储器存储有程序指令;该程序指令被该处理器执行时,使该处理器执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a third aspect, the present application provides an electronic device, including: a memory and a processor, wherein the memory stores program instructions; when the program instructions are executed by the processor, the processor is caused to execute the steps of the first aspect and the first aspect. Methods described in any possible implementation of aspects.
第四方面,本申请实施例提供一种芯片系统,该芯片系统应用于电子设备,该芯片系统包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行该第一方面或第一方面的任意可能的实现方式所示的方法。In a fourth aspect, embodiments of the present application provide a chip system, which is applied to an electronic device. The chip system includes one or more processors, and the processor is used to call computer instructions to cause the electronic device to execute the first aspect. or the method shown in any possible implementation of the first aspect.
第五方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序;当该计算机程序在一个或多个处理器上运行时,使得该电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a fifth aspect, the present application provides a computer-readable storage medium that stores a computer program; when the computer program is run on one or more processors, it causes the electronic device to execute the first step aspect and the method described in any possible implementation manner in the first aspect.
第六方面,本申请提供一种包含指令的计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a sixth aspect, the present application provides a computer program product containing instructions. When the computer program product is run on an electronic device, the electronic device causes the electronic device to execute as described in the first aspect and any possible implementation manner of the first aspect. method.
可以理解的,上述第二方面提供的通信模组、第三方面提供的电子设备、第四方面提供的芯片系统、第五方面提供的计算机存储介质和第六方面提供的计算机程序产品均用于执行本申请实施例第一方面或第一方面的任一实现方式所示的方法。因此,其所能达到的 有益效果可参考对应方法中的有益效果,此处不再赘述。It can be understood that the communication module provided by the second aspect, the electronic device provided by the third aspect, the chip system provided by the fourth aspect, the computer storage medium provided by the fifth aspect and the computer program product provided by the sixth aspect are all used for Execute the method shown in the first aspect or any implementation of the first aspect of the embodiment of this application. Therefore, what it can achieve For beneficial effects, please refer to the beneficial effects in the corresponding method, which will not be described again here.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍。In order to explain the technical solutions in the embodiments of the present invention more clearly, the drawings required to be used in the embodiments will be briefly introduced below.
图1A为本申请实施例提供的一种通信方法的应用环境示意图;Figure 1A is a schematic diagram of the application environment of a communication method provided by an embodiment of the present application;
图1B为本申请实施例提供的一种modem与AP1和AP2之间的内部数据分发示意图;Figure 1B is a schematic diagram of internal data distribution between a modem and AP1 and AP2 provided by the embodiment of the present application;
图2为本申请实施例提供的一种通信方法的流程示意图;Figure 2 is a schematic flow chart of a communication method provided by an embodiment of the present application;
图3为本申请实施例提供的又一种通信方法的流程示意图;Figure 3 is a schematic flow chart of another communication method provided by an embodiment of the present application;
图4为本申请实施例提供的又一种通信方法的流程示意图;Figure 4 is a schematic flow chart of another communication method provided by an embodiment of the present application;
图5为本申请实施例提供的又一种通信方法的流程示意图;Figure 5 is a schematic flow chart of another communication method provided by an embodiment of the present application;
图6为本申请实施例提供的一种通信模组的结构示意图;Figure 6 is a schematic structural diagram of a communication module provided by an embodiment of the present application;
图7为本申请实施例提供的又一种通信模组的结构示意图;Figure 7 is a schematic structural diagram of another communication module provided by an embodiment of the present application;
图8为本申请实施例提供的又一种通信模组的结构示意图。Figure 8 is a schematic structural diagram of another communication module provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图对本申请作进一步详细描述。The present application will be described in further detail below in conjunction with the accompanying drawings.
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "the" are intended to also Plural expressions are included unless the context clearly indicates otherwise.
在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”。In this application, "at least one (item)" means one or more, "plurality" means two or more, "at least two (items)" means two or three and three Above, "and/or" is used to describe the relationship between associated objects, indicating that there can be three relationships. For example, "A and/or B" can mean: only A exists, only B exists, and A and B exist simultaneously. In this case, A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ".
本申请实施例提供了一种数据通信方法,为了更清楚地描述本申请的方案,下面先介绍一些与本方案数据通信相关的知识。The embodiment of the present application provides a data communication method. In order to describe the solution of the present application more clearly, some knowledge related to the data communication of the present solution is first introduced below.
(1)网际互连协议IP地址(1)Internet Protocol IP address
一般地,IP地址与PDN通信链路一一对应,该通信链路是指该IP地址所指向的通信模组(modem)、基站以及核心网之间的通信链路。Generally, an IP address corresponds to a PDN communication link one-to-one, and the communication link refers to the communication link between the communication module (modem), the base station, and the core network pointed to by the IP address.
当电子设备中的客户端软件想要通过互联网访问服务器时,需要先通过modem使用与该服务器对应的接入点名称(access point name,APN)向核心网发起数据业务拨号。具体为该modem通过基站向核心网请求激活该modem、基站以及核心网之间与该APN对应的通信链路;核心网接收到请求后为该modem分配IP地址,modem接收到IP地址后,将该 IP地址反馈到客户端软件,从而客户端软件可以基于该IP地址、该modem、基站以及核心网进行与服务器之间的通信。When the client software in the electronic device wants to access the server through the Internet, it needs to first use the access point name (APN) corresponding to the server to initiate data service dialing to the core network through the modem. Specifically, the modem requests the core network through the base station to activate the communication link corresponding to the APN between the modem, the base station and the core network; after receiving the request, the core network allocates an IP address to the modem. After the modem receives the IP address, it Should The IP address is fed 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.
一般地,一个通信模组在同一个时间可以使用一个APN进行数据业务拨号,与基站建立与该APN对应的一条数据链路。两个不同的modem可以在同一时间使用同一个APN进行数据业务拨号,分别与基站建立与该APN对应的数据链路。但一个modem在同一时间不能使用相同的一个APN与基站建立两路以上的数据链路,具体的,若当前modem已通过该APN与基站建立一路数据链路(也即核心网已经基于该APN为该modem分配了一个IP地址),该modem又通过该APN发起数据业务拨号,则核心网会拒绝通过该APN与该modem建立第二路数据链路(也即核心网会拒绝通过该APN再次为该modem分配另外一个IP地址)。Generally, a communication module can use one APN for data service dialing at the same time, and establish a data link corresponding to the APN with the base station. Two different modems can use the same APN for data service dialing at the same time, and establish data links corresponding to the APN with the base station respectively. However, a modem cannot use the same APN to establish more than two data links with the base station at the same time. Specifically, if the current modem has established one data link with the base station through the APN (that is, the core network has established a data link based on the APN The modem is assigned an IP address), and the modem initiates data service dialing through the APN, the core network will refuse to establish a second data link with the modem through the APN (that is, the core network will refuse to establish a second data link through the APN again). The modem is assigned another IP address).
以下结合图1A介绍本申请实施例提供的通信方法的应用环境示意图。The following is a schematic diagram of the application environment of the communication method provided by the embodiment of the present application with reference to FIG. 1A.
如图1A所示,该应用环境图包括核心网、基站、通信模组(modem)、以及与modem对接的两个或两个以上应用侧设备。其中,基站在modem与核心网之间的通信起到透传作用。As shown in Figure 1A, the application environment diagram includes a core network, a base station, a communication module (modem), and two or more application-side devices connected to the modem. Among them, the base station plays a transparent transmission role in the communication between the modem and the core network.
在本申请实施例中,将上述两个或两个以上应用侧设备中的一个应用侧设备称为第一应用侧设备(以下简称AP1),将除了该第一应用侧设备之外的其他应用侧设备中的任意一个应用侧设备称为第二应用侧设备(以下简称为AP2)。In the embodiment of this application, one application-side device among the two or more application-side devices is called a first application-side device (hereinafter referred to as AP1), and other application-side devices except the first application-side device are called Any application-side device among the side devices is called a second application-side device (hereinafter referred to as AP2).
一般地,应用侧设备或modem中记录有一个或多个APN,一个APN可以用于代理一个或多个服务器的接入点。例如对于两个不同的搜索引擎的两个不同服务器,其接入点名称可以为同一个接入点名称。Generally, one or more APNs are recorded in the application-side device or modem, and one APN can be used to proxy the access points of one or more servers. For example, for two different servers of two different search engines, their access point names can be the same access point name.
采用本申请实施例提供的通信方法,AP1可以使用第一接入点名称(以下简称apn1)向modem发起数据业务拨号,modem接收到该数据业务拨号后向核心网转发该数据业务拨号,并接收核心网响应于该AP1对应的数据业务拨号请求为该AP1分配的第一IP地址。modem在检测到AP2也通过该apn1进行数据业务拨号时,不向核心网转发该AP2发起的数据业务拨号,而是直接向AP2反馈上述第一IP地址,使得AP1和AP2可以同时使用该第一IP地址与基站或核心网通信。Using the communication method provided by the embodiment of this application, AP1 can use the first access point name (hereinafter referred to as apn1) to initiate data service dialing to the modem. After receiving the data service dialing, the modem forwards the data service dialing to the core network and receives the data service dialing. The core network allocates the first IP address to AP1 in response to the data service dialing request corresponding to AP1. When the modem detects that AP2 also dials data services through apn1, it does not forward the data service dialing initiated by AP2 to the core network, but directly feeds back the above-mentioned first IP address to AP2, so that AP1 and AP2 can use the first IP address at the same time. The IP address communicates with the base station or core network.
示例性的,modem为车载设备中的通信模组,其中AP1为该车载设备中应用程序层中的应用侧设备;该车载设备还通过USB连接了一个外来设备(例如手机),该AP2即为该手机中应用程序层的应用侧设备。For example, the modem is a communication module in a vehicle-mounted device, where AP1 is an application-side device in the application layer of the vehicle-mounted device; the vehicle-mounted device is also connected to an external device (such as a mobile phone) through USB, and the AP2 is The application side device of the application layer in this phone.
在一些情境下,车载设备上的AP1需要访问车载设备的服务器1以进行FOTA升级,此时外来设备的AP2需要访问服务器2对车机进行车辆信息检查,且该服务器1和服务器2的接入点名称apn1一致。也即该apn1代理的服务器包括该服务器1和服务器2,若客户端(应用侧设备)需要访问该服务器1或服务器2则需要基于该apn1向核心网请求与IP地址对应的链路资源。例如,AP1基于该apn1和modem向核心网请求用于访问服务器1的链路资源,并获得核心网分配的第一IP地址的数据链路资源。在AP1基于apn1获得上述第一IP地址之后,AP2基于该apn1和modem向核心网请求用于访问服务器2的链路资源。由于AP2是通过与AP1相同的该modem和与AP1相同的该apn1进行数据拨号,则 核心网接收到关于AP2基于该modem和apn2发起的数据拨号请求后,一般会以该apn1已建立有链路资源为由,拒绝modem发起的关于该apn1的数据链路资源请求,只有AP1去激活了上述第一IP地址后,核心网才会基于上述apn1重新为AP2分配与该apn1对应的新的IP地址。由此导致连接同一个modem的AP1和AP2在一些场景中不能同时联网执行对应的通信任务,通信效率有待改善。上述服务器1和服务器2可以为相同或不同的两个服务器,本文对此不做限定。In some scenarios, AP1 on the vehicle device needs to access the server 1 of the vehicle device for FOTA upgrade. At this time, AP2 of the external device needs to access server 2 to check the vehicle information, and the access of server 1 and server 2 The point name apn1 is consistent. That is, the servers represented by apn1 include server 1 and server 2. If the client (application side device) needs to access server 1 or server 2, it needs to request link resources corresponding to the IP address from the core network based on apn1. For example, AP1 requests link resources for accessing server 1 from the core network based on the apn1 and modem, and obtains the data link resources of the first IP address allocated by the core network. After AP1 obtains the above-mentioned first IP address based on apn1, AP2 requests link resources for accessing server 2 from the core network based on apn1 and the modem. Since AP2 performs data dialing through the same modem as AP1 and the same apn1 as AP1, then After the core network receives the data dialing request initiated by AP2 based on the modem and apn2, it will generally reject the data link resource request initiated by the modem on apn1 on the grounds that apn1 has established link resources, and only AP1 will be deactivated. After obtaining the above-mentioned first IP address, the core network will re-allocate a new IP address corresponding to the apn1 to AP2 based on the above-mentioned apn1. As a result, AP1 and AP2 connected to the same modem cannot be connected to the Internet at the same time to perform corresponding communication tasks in some scenarios, and the communication efficiency needs to be improved. The above-mentioned server 1 and server 2 may be the same or different servers, and this article does not limit this.
然而,采用本申请实施例提供的通信方法,车载设备的modem在接收到AP2使用上述apn1向核心网请求数据链路资源的激活请求时,modem直接向AP2反馈上述第一IP地址,不再向核心网发送该激活请求。然后AP1和AP2使用相同的第一IP地址上网以便于访问对应的服务器,并由modem区分通过该第一IP地址与基站之间的会话是属于该AP1与基站的会话还是属于AP2与基站的会话。However, using the communication method provided by the embodiment of the present application, when the modem of the vehicle-mounted device receives AP2's activation request for data link resources from the core network using the above apn1, the modem directly feeds back the above first IP address to AP2 and no longer sends it to AP2. The core network sends the activation request. Then AP1 and AP2 use the same first IP address to access the Internet to access the corresponding server, and the modem distinguishes whether the session between the first IP address and the base station belongs to the session between AP1 and the base station or the session between AP2 and the base station. .
本申请提供的通信方法在modem侧做了改进,一般地,modem负责管理上行数据的发送任务,记录上行数据的来包特征,下行数据的接收任务,以及,根据下行数据的来包特征和上行数据的来包特征将下行数据分发到对应的应用侧设备,来包特征是指数据包特征,该来包特征用于标识一个会话。在本申请实施例中,该modem还负责根据第一IP地址确定不向核心网发送关于第二应用侧设备向核心网发起的数据链路激活请求,而是直接向第二应用侧设备反馈该第一IP地址。基于该第一IP地址同时进行第一应用侧设备与基站以及第二应用侧设备与基站之间的通信。解决一个modem在同一时间不能使用同一个APN建立两路或两路以上数据链路,导致在modem对接了多个应用侧设备时无法同时满足多个应用侧设备的网络需求,通信效率低的问题。可理解的,上述modem负责管理上行数据的发送任务也即modem向基站发送数据包的发送任务;具体为modem接收到来自于应用侧设备期望向核心网发送的数据包后,modem将该数据包发送给基站,并由基站向核心网转发该数据包,也即该上行数据可以理解为应用侧设备期望(通过modem和基站)向核心网发送的数据包。上述下行数据的接收任务也即基站向modem发送的数据包的接收任务;具体为关于核心网期望通过基站和modem向应用侧设备发送的数据包的接收任务,也即该下行数据可以理解为核心网向应用侧设备发送的数据包。The communication method provided by this application has been improved on the modem side. Generally, the modem is responsible for managing the sending tasks of uplink data, recording the incoming packet characteristics of uplink data, the receiving tasks of downlink data, and, based on the incoming packet characteristics of downlink data and the uplink data. The incoming packet characteristics of the data distribute the downlink data to the corresponding application-side device. The incoming packet characteristics refer to the data packet characteristics, and the incoming packet characteristics are used to identify a session. In this embodiment of the present application, the modem is also responsible for determining not to send the data link activation request initiated by the second application-side device to the core network to the core network based on the first IP address, but directly feedback the request to the second application-side device. First IP address. Communication between the first application side device and the base station and the second application side device and the base station are simultaneously performed based on the first IP address. Solve the problem that a modem cannot use the same APN to establish two or more data links at the same time, resulting in the inability to meet the network needs of multiple application-side devices at the same time when the modem is connected to multiple application-side devices, resulting in low communication efficiency. . It is understandable that the above modem is responsible for managing the sending task of uplink data, that is, the sending task of the modem sending data packets to the base station; specifically, after the modem receives the data packet from the application side device that is expected to be sent to the core network, the modem sends the data packet to the core network. Sent 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 the data packet that the application side device expects (through the modem and the base station) to send to the core network. The above-mentioned downlink data reception task is also the reception task of the data packet sent by the base station to the modem; specifically, it is the reception task of the data packet that the core network expects to send to the application side device through the base station and modem, that is, the downlink data can be understood as the core The data packet sent by the network to the application side device.
可理解的,AP1获得上述第一IP地址后,可以将AP1的网卡绑定该第一IP地址;AP2接收到modem反馈的第一IP地址后,可以将AP2的网卡绑定该第一IP地址。而后,AP1或AP2可以基于各自的网卡和该第一IP地址向modem发送上行数据,modem再将上行数据转发至核心网。It is understandable that after AP1 obtains the above-mentioned first IP address, it can bind the network card of AP1 to the first IP address; after AP2 receives the first IP address fed back by the modem, it can bind the network card of AP2 to the first IP address. . Then, AP1 or AP2 can send uplink data to the modem based on their respective network cards and the first IP address, and the modem then forwards the uplink data to the core network.
示例性的,modem与AP1和AP2之间的内部数据的分发任务如图1B所示,当modem接收到AP1或AP2通过对应的网卡发送的上行数据后,可以通过共享管理模块(share manage)记录上行数据的数据特征,然后将对应的数据包发送给核心网,示例性的,该数据特征可以为用于标识一个会话的数据特征,例如该数据特征可以为五元组或六元组。当modem接收到核心网发送的下行数据后,由share manage记录的上行数据的数据特征判断匹配AP1和AP2发送的下行数据中的数据特征。其中,若下行数据的数据特征与AP1发送的上行数据的数据特征匹配,则modem将该下行数据转发至AP1,若下行数据的数据特征与AP2发送的上行数据的数据特征匹配,则modem将该下行数据转发至AP2,由此完 成下行数据包的分发。For example, the internal data distribution task between the modem and AP1 and AP2 is shown in Figure 1B. When the modem receives the uplink data sent by AP1 or AP2 through the corresponding network card, it can be recorded through the share management module (share manage). The data characteristics of the uplink data are then sent to the core network. For example, the data characteristics may be data characteristics used to identify a session. For example, the data characteristics may be five-tuple or six-tuple. After the modem receives the downlink data sent by the core network, the data characteristics of the uplink data recorded by share management are judged to match the data characteristics of the downlink data sent by AP1 and AP2. Among them, if the data characteristics of the downlink data match the data characteristics of the uplink data sent by AP1, the modem will forward the downlink data to AP1; if the data characteristics of the downlink data match the data characteristics of the uplink data sent by AP2, the modem will forward the downlink data to AP1. The downlink data is forwarded to AP2, thus completing into the distribution of downlink data packets.
以下结合图2所示的流程示意图详细说明本申请实施例提供的通信方法。The communication method provided by the embodiment of the present application will be described in detail below with reference to the schematic flow chart shown in FIG. 2 .
在本申请实施例中,该通信方法应用于通信模组,该通信模组具体为调制解调器(以下简称modem)。该方法包括:In the embodiment of the present application, the communication method is applied to a communication module, and the communication module is specifically a modem (hereinafter referred to as modem). The method includes:
S201,通信模组接收第一应用侧设备通过第一APN发送的第一激活请求,并向核心网转发该第一激活请求。S201. The communication module receives the first activation request sent by the first application-side device through the first APN, and forwards the first activation request to the core network.
在本申请实施例中,通信模组(modem)至少连接有第一应用侧设备和第二应用侧设备。In this embodiment of the present application, the communication module (modem) is connected to at least a first application side device and a second application side device.
一般地,通过以下步骤建立modem和第一应用侧设备之间的通信链路:modem通过消息机制向第一应用侧设备发送modem的网卡信息(以下为便于描述将modem的网卡称为第三网卡);第一应用侧设备接收到该第三网卡的信息后,通过路由配置建立该第三网卡与第一应用侧设备的网卡(以下为便于描述,将第一应用侧设备的网卡称为第一网卡)的关联关系;完成该第一网卡与第三网卡的绑定关系后,则表示该第一应用侧设备与modem之间的通信链路建立成功,该第一应用侧设备和modem之间可以通过该第一网卡和该第三网卡进行数据通信。例如modem可以通过该第一网卡和该第三网卡之间的链路资源进行关于上述第一激活请求的通信交互。可理解的,该第一应用侧设备与modem之间的通信连接方式可以是有线连接也可以是无线通信连接,本文对此不做限定。Generally, the communication link between the modem and the first application-side device is established through the following steps: the modem sends the modem's network card information to the first application-side device through a message mechanism (hereinafter, for the convenience of description, the modem's network card is called the third network card ); after receiving the information of the third network card, the first application-side device establishes the third network card and the network card of the first application-side device through routing configuration (hereinafter, for the convenience of description, the network card of the first application-side device is called the third network card). (one network card); after completing the binding relationship between the first network card and the third network card, it means that the communication link between the first application side device and the modem is successfully established, and the relationship between the first application side device and the modem Data communication can be carried out through the first network card and the third network card. For example, the modem can perform communication interaction regarding the first activation request through the link resources between the first network card and the third network card. It can be understood that the communication connection method between the first application side device and the modem can be a wired connection or a wireless communication connection, which is not limited herein.
在本申请实施例中,上述第一激活请求也可以理解为第一应用侧设备向modem发送的数据业务拨请求、数据链路激活请求或分组数据网(packet data network,PDN)链路激活请求,该第一激活请求具体用于请求核心网为第一应用侧设备分配PDN数据链路资源,与核心网建立信令连接。In the embodiment of this application, the above-mentioned first activation request can also be understood as a data service dialing request, a data link activation request or a packet data network (packet data network, PDN) link activation request sent by the first application side device to the modem. , the first activation request is specifically used to request the core network to allocate PDN data link resources to the first application side device and establish a signaling connection with the core network.
上述第一激活请求携带上述第一APN。该第一APN也可以称为第一接入点名称。示例性的,第一应用侧设备可以根据预先设置的PDN上下文信息生成上述第一激活请求,该第一激活请求中除了携带该第一APN之外,还可以携带其他信息,例如该第一激活请求中还可以携带IP类型等信息,本文对此不做限定。The above-mentioned first activation request carries the above-mentioned first APN. The first APN may also be called a first access point name. For example, the first application-side device may generate the above-mentioned first activation request according to the preset PDN context information. In addition to carrying the first APN, the first activation request may also carry other information, such as the first activation request. The request can also carry information such as IP type, which is not limited in this article.
一般地,modem接收到上述第一激活请求后可以建立(也可以理解为创建)与该第一激活请求对应的第一拨号实体,该第一拨号实体可以理解为程序代码中的类对象。该第一拨号实体用于维护第一应用侧设备通过modem与核心网通信涉及到的通信链路的参数信息,或者也可以理解为,该第一拨号实体用于维护第一应用侧设备的承载。例如,该第一拨号实体可以用于根据通信协议将来自第一应用侧设备的数据包封装搬运以使得modem可以将数据包通过网络发送给核心网。Generally, after receiving the first activation request, the modem can establish (can also be understood as creating) a first dial-up entity corresponding to the first activation request. The first dial-up entity can be understood as a class object in the program code. The first dial-up entity is used to maintain the parameter information of the communication link involved in the communication between the first application-side device and the core network through the modem, or it can also be understood that the first dial-up entity is used to maintain the bearer of the first application-side device. . For example, the first dial-up entity may be used to encapsulate and transport data packets from the first application-side device according to the communication protocol so that the modem can send the data packets to the core network through the network.
S202,通信模组接收核心网响应于第一激活请求反馈的第一IP地址,并向第一应用侧设备转发该第一IP地址。S202: The communication module receives the 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.
在本申请实施例中,modem向第二应用侧设备反馈上述第一IP地址后,modem和第一应用侧设备则可以基于该第一IP地址进行第一应用侧设备与核心网之间的通信。In this embodiment of the present application, after the modem feeds back the above-mentioned first IP address to the second application-side device, the modem and the first application-side device can communicate between the first application-side device and the core network based on the first IP address. .
上述第一IP地址也可以称为第一网际互连协议地址。该第一IP地址即为核心网针对 上述第一激活请求反馈的PDN链路资源。modem接收到该第一IP地址后,可以建立该第一IP地址与modem的网卡(第三网卡)的关联关系,用于表示该modem可以基于该第三网卡使用该第一IP地址与核心网通信。The above-mentioned first IP address may also be called a first Internet Protocol address. The first IP address is the core network’s target The PDN link resources fed back by the first activation request. After the modem receives the first IP address, it can establish an association between the first IP address and the modem's network card (the third network card), which indicates that the modem can use the first IP address and the core network based on the third network card. communication.
示例性的,上述第一激活请求中的PDP_ACT_REQ消息携带上述第一APN。modem接收到该第一激活请求解析获得该PDP_ACT_REQ(apn=apn1)消息后通过空中接口将该消息发送给基站,并由基站将该PDP_ACT_REQ(apn=apn1)消息发送给核心网。核心网接收到该PDP_ACT_REQ(apn=apn1)消息后,基于该apn1确定给该第一应用侧设备分配的上述第一IP地址,并通过基站向modem发送激活回复消息PDP_ACT_CNF,该激活回复消息PDP_ACT_CNF携带链路激活成功的指示信息(例如OK)和上述第一IP地址(例如x.x.x.x)。modem接收到该激活回复消息PDP_ACT_CNF后,将该激活回复消息PDP_ACT_CNF发送给第一应用侧设备;该第一应用侧设备解析该激活回复消息PDP_ACT_CNF得到上述第一IP地址和链路激活成功的指示信息。Exemplarily, the PDP_ACT_REQ message in the first activation request carries the first APN. After receiving the first activation request and parsing it to obtain the PDP_ACT_REQ (apn=apn1) message, the modem sends the message to the base station through the air interface, and the base station sends the PDP_ACT_REQ (apn=apn1) message to the core network. After receiving the PDP_ACT_REQ (apn=apn1) message, the core network determines the above-mentioned 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. The activation reply message PDP_ACT_CNF carries Indication information indicating successful link activation (for example, OK) and the above-mentioned first IP address (for example, 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 parses the activation reply message PDP_ACT_CNF to obtain the above-mentioned first IP address and link activation success indication information. .
可理解的,第一应用侧设备获得上述第一IP地址后,可以建立该第一IP地址与第一应用侧设备的网卡(第一网卡)之间的关联关系,从而当第一应用侧设备需要访问与该第一IP地址对应的服务器时,则可以通过该第一网卡和该第一IP地址将通信数据发送给modem,并由modem发送给核心网,以进行第一应用侧设备与核心网之间的通信。It is understandable that after the first application-side device obtains the above-mentioned first IP address, it can establish an association between the first IP address and the network card (first network card) of the first application-side device, so that when the first application-side device When it is necessary to access the server corresponding to the first IP address, the communication data can be sent to the modem through the first network card and the first IP address, and then sent by the modem to the core network, so that the first application-side device communicates with the core communication between networks.
S203,通信模组接收第二应用侧设备通过第一APN发送的第二激活请求。S203. The communication module receives the second activation request sent by the second application-side device through the first APN.
关于第二应用侧设备与modem之间如何建立通信链路以使得modem可以基于通信链路接收到上述第二激活请求的说明,可以参照上述步骤S201中的关于第一应用侧设备与modem之间如何建立通信链路的相关描述,在此不再详述。For instructions on how to establish a communication link between the second application-side device and the modem so that the modem can receive the above-mentioned second activation request based on the communication link, you may refer to the above-mentioned step S201 regarding the relationship between the first application-side device and the modem. The relevant description of how to establish a communication link will not be described in detail here.
在本申请实施例中,上述第二激活请求也可以理解为第二应用侧设备向modem发送的数据业务拨请求、数据链路激活请求或PDN链路激活请求,该第二激活请求具体用于请求核心网为第二应用侧设备分配PDN数据链路资源,与核心网建立信令连接。In the embodiment of the present application, the above-mentioned second activation request can also be understood as a data service dialing request, a data link activation request or a PDN link activation request sent by the second application side device to the modem. The second activation request is specifically used for 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.
上述第二激活请求携带上述第一APN。示例性的,第二应用侧设备可以根据预先设置的PDN上下文信息生成上述第二激活请求,该第二激活请求中除了携带该第一APN之外,还可以携带其他信息,例如该第二激活请求中还可以携带IP类型等信息,本文对此不做限定。The above-mentioned second activation request carries the above-mentioned first APN. For example, the second application-side device may generate the above-mentioned second activation request according to the preset PDN context information. In addition to carrying the first APN, the second activation request may also carry other information, such as the second activation request. The request can also carry information such as IP type, which is not limited in this article.
在本申请实施例中,modem接收到上述第二激活请求并确定上述第二激活请求中携带的apn与上述第一APN一致后,则建立与该第二激活请求对应的第二拨号实体,该第二拨号实体用于维护第二应用侧设备通过modem与核心网通信涉及到的通信链路的参数信息,或者也可以理解为,该第二拨号实体用于维护第二应用侧设备的承载。例如,该第二拨号实体可以用于根据通信协议将来自第一应用侧设备的数据包封装搬运以使得modem可以将数据包通过网络发送到核心网。In this embodiment of the present 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, it establishes a second dialing entity corresponding to the second activation request. The second dial-up entity is used to maintain the parameter information of the communication link involved in the communication between the second application-side device and the core network through the modem, or it can also be understood that the second dial-up entity is used to maintain the bearer of the second application-side device. For example, the second dial-up entity may be used to encapsulate and transport data packets from the first application side device according to the communication protocol so that the modem can send the data packets to the core network through the network.
S204,通信模组响应于第二激活请求,向第二应用侧设备反馈上述第一IP地址。S204: The communication module responds to the second activation request and feeds back the first IP address to the second application side device.
在本申请实施例中,modem向第二应用侧设备反馈上述第一IP地址后,modem和第二应用侧设备则可以基于第一IP地址进行第二应用侧设备与核心网之间的通信。 In this embodiment of the present application, after the modem feeds back the first IP address to the second application-side device, the modem and the second application-side device can communicate between the second application-side device and the core network based on the first IP address.
在本申请实施例中,modem接收到第二激活请求后,不会将该第二激活请求发送给核心网,而是直接向第二应用侧设备反馈上述第一IP地址。In this embodiment of the present 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.
示例性的,上述第二激活请求中的PDP_ACT_REQ消息携带上述第一APN。modem接收到该第二激活请求解析获得该PDP_ACT_REQ(apn=apn1)消息后,不会通过空中接口将该消息发送给核心网,而是直接向第二应用侧设备发送激活回复消息PDP_ACT_CNF,该激活回复消息PDP_ACT_CNF携带链路激活成功的指示信息(例如OK)和上述第一IP地址(例如x.x.x.x)。Exemplarily, the PDP_ACT_REQ message in the second activation request carries the first APN. After the modem receives the second activation request and parses it to obtain the PDP_ACT_REQ (apn=apn1) message, it will not send the message to the core network through the air interface, but directly send the activation reply message PDP_ACT_CNF to the second application side device. The activation The reply message PDP_ACT_CNF carries indication information of successful link activation (for example, OK) and the above-mentioned first IP address (for example, x.x.x.x).
相应地,上述第二应用侧设备获得该第一IP地址后,可以建立该第一IP地址与该第二应用侧设备的网卡(以下为便于描述将第二应用侧设备的网卡称为第二网卡)之间的关联关系,从而当第二应用侧设备需要访问与该第一IP地址对应的服务器时,则可以通过该第二网卡和该第一IP地址将通信数据发送给modem,并由modem发送给核心网,以进行第二应用侧设备与核心网之间的通信。Correspondingly, after the above-mentioned second application-side device obtains the first IP address, it can establish the first IP address and the 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 the second IP address). network card), so that when the second application-side device needs to access the server corresponding to the first IP address, the communication data can be sent to the modem through the second network card and the first IP address, and the The modem is sent to the core network for communication between the second application side device and the core network.
由此,采用本申请实施例提供的方法,当modem连接的第一应用侧设备与第二应用侧设备需要访问的服务器对应的APN一致,均为上述第一APN,且该第一外接设备已基于该第一APN获得PDN链路资源也即上述第一IP地址的情况下,modem在接收到上述第二应用侧设备基于上述第一APN发起的上述第二激活请求后,拦截该第二激活请求,不向核心网转发该第二激活请求,而是直接向第二应用侧设备反馈上述第一IP地址,使得第一应用侧设备和第二应用侧设备可以共用相同的该第一IP地址,从而可以实现该第一应用侧设备和该第二应用侧设备基于同一个modem和该第一IP地址同时与核心网进行通信,可以满足多个应用侧设备通过同一个modem和同一个apn同时联网的通信需求,提高通信效率。Therefore, using the method provided by the embodiment of the present application, when the APNs corresponding to the server that the first application-side device connected to the modem and the second application-side device need to access are consistent, they are both the above-mentioned first APN, and the first external device has been When the PDN link resource, that is, the first IP address is obtained 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. request, the second activation request is not forwarded to the core network, but the first IP address is directly fed back 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. , so that the first application side device and the second application side device can communicate with the core network at the same time based on the same modem and the first IP address, which can meet the requirements of multiple application side devices using the same modem and the same apn at the same time. Network communication needs and improve communication efficiency.
在一种可能的实现方式中,在所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址之前,所述方法还包括:确定所述第二激活请求是否携带所述第一APN;所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址,包括:在确定所述第二激活请求中携带所述第一APN的情况下,响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。In a possible implementation, before feedbacking the first IP address to the second application-side device in response to the second activation request, the method further includes: determining the second activation request. whether the request carries the first APN; and responding to the second activation request, feeding back the first IP address to the second application side device includes: determining whether the second activation request carries the In the case of the first APN, in response to the second activation request, the first IP address is fed back to the second application side device.
也就是说,modem在接收到第二应用侧设备发送的第二激活请求后,先确定该第二激活请求中携带的APN是否与上述第一APN一致,若一致,则modem不将该第二激活请求发送给核心网,而是直接向第二应用侧设备反馈与该第一APN对应的上述第一IP地址。That is to say, after receiving the second activation request sent by the second application-side device, the modem first determines whether the APN carried in the second activation request is consistent with the above-mentioned first APN. If it is consistent, the modem does not use the second activation request. The activation request is sent to the core network, but directly feeds back the first IP address corresponding to the first APN to the second application side device.
在一种可能的实现方式中,所述通信模组响应于第二激活请求,向第二应用侧设备反馈上述第一IP地址,包括:建立关于所述第二激活请求的第二拨号实体,所述第二拨号实体用于维护所述第二应用侧设备通过所述通信模组与所述核心网进行通信涉及到的通信链路的参数信息;向所述第二应用侧设备发送所述第一IP地址和链路建立成功的指示信息。In a possible implementation, in response to the second activation request, the communication module feeds back the above-mentioned first IP address to the second application side device, including: establishing a second dialing entity related to the second activation request, The second dialing entity is used to maintain the parameter information of the communication link involved in the communication between the second application side device and the core network through the communication module; and send the said second application side device to the second application side device. The first IP address and indication information indicating successful link establishment.
也就是说,关于modem针对该第二激活请求的响应结果包括:建立上述第二拨号实体,以及向第二应用侧设备发送所述第一IP地址和链路建立成功的指示信息。That is to say, the response result of the modem to the second activation request includes: establishing the above-mentioned second dialing entity, and sending the first IP address and indication information indicating that the link is established successfully to the second application-side device.
示例性的,如图3所示,在一种应用场景中,modem、应用侧设备以及核心网之间按图3所示的标号顺序进行如下操作: For example, as shown in Figure 3, in an application scenario, the modem, application-side device and core network perform the following operations in the order of numbers shown in Figure 3:
1)第一应用侧设备(AP1)使用apn1进行数据业务拨号,通过PDP_ACT_REQ消息(第一激活请求)将apn1通过参数传递的方式携带给modem,伪代码为PDP_ACT_REQ(apn=apn1)。1) The first application side device (AP1) uses apn1 for data service dialing, and carries apn1 to the modem by passing parameters through the PDP_ACT_REQ message (first activation request). The pseudo code is PDP_ACT_REQ (apn=apn1).
2)modem为该AP1创建第一拨号实体,将PDP_ACT_REQ(apn=apn1)消息通过空中接口发送给基站。2) The modem creates the first dialing entity for AP1 and sends the PDP_ACT_REQ (apn=apn1) message to the base station through the air interface.
其中,该第一拨号实体用于维护第一应用侧设备通过通信模组与核心网通信涉及到的通信链路的参数信息,例如,该第一拨号实体用于根据通信协议将来自第一应用侧设备的数据包封装搬运以使得modem可以将数据包通过网络发送到基站。Wherein, the first dial-up entity is used to maintain the parameter information of the communication link involved in the communication between the first application-side device and the core network through the communication module. For example, the first dial-up entity is used to transfer data from the first application to the core network according to the communication protocol. The data packets are encapsulated and transported by the side device so that the modem can send the data packets through the network to the base station.
3)基站将PDP_ACT_REQ(apn=apn1)消息透传给核心网。3) The base station transparently transmits the PDP_ACT_REQ (apn=apn1) message to the core network.
4)核心网对关于PDP_ACT_REQ(apn=apn1)消息的数据业务拨号进行判断检查后,为AP1分配第一IP地址,给基站回复消息PDP_ACT_CNF,该PDP_ACT_CNF消息携带激活结果OK和该第一IP地址(例如x.x.x.x,在本文中x.x.x.x所描述的地址是同一个IP地址)。4) After the core network judges and checks the data service dialing of the PDP_ACT_REQ (apn=apn1) message, it allocates the first IP address to AP1 and replies to the base station with the message PDP_ACT_CNF. The PDP_ACT_CNF message carries the activation result OK and the first IP address ( For example, x.x.x.x, the address described by x.x.x.x in this article is the same IP address).
5)基站将激活回复消息PDP_ACT_CNF(rslt=OK,ipaddr=x.x.x.x)通过空中接口透传给modem。5) The base station transparently transmits the activation reply message PDP_ACT_CNF (rslt=OK, ipaddr=x.x.x.x) to the modem through the air interface.
6)第二应用侧设备(AP2)使用上述APN1进行数据业务拨号,向modem发送PDP_ACT_REQ(apn=apn1)消息,也即AP2向modem发送第二激活请求。6) The second application side device (AP2) uses the above-mentioned APN1 to perform data service dialing and sends a PDP_ACT_REQ (apn=apn1) message to the modem, that is, AP2 sends a second activation request to the modem.
7)modem对AP2发送的PDP_ACT_REQ(apn=apn1)消息进行检查,发现激活请求来自于AP2且apn=apn1,且关于apn1,modem中已记录(或存储)有与该aon1对应的IP地址也即第一IP地址,则建立第二拨号实体维护AP2的承载,并向AP2发送第一IP地址,也即向AP2回复消息PDP_ACT_CNF(rslt=OK,ipaddr=x.x.x.x),且不再通过空中接口向基站发送该AP2发起的PDP_ACT_REQ(apn=apn1)消息。7) The modem checks the PDP_ACT_REQ (apn=apn1) message sent by AP2 and finds that the activation request comes from AP2 and apn=apn1, and regarding apn1, the IP address corresponding to the aon1 has been recorded (or stored) in the modem, that is, First IP address, then establish a second dial-up entity to maintain the bearer of AP2, and send the first IP address to AP2, that is, reply the message PDP_ACT_CNF (rslt=OK, ipaddr=x.x.x.x) to AP2, and no longer send messages to the base station through the air interface. Send the PDP_ACT_REQ (apn=apn1) message initiated by AP2.
在本申请实施例中,AP1和AP2可以共用同一个IP地址同时与核心网进行通信,从而可以满足多个设备通过同一个通信模组同时访问服务器的通信需求,提高通信效率。可理解的,所描述的AP1和AP2可以共用同一个IP地址同时与核心网进行通信,是指AP1基于同一个modem使用该第一IP地址与核心网进行通信,以及AP2基于同一个modem使用该第一IP地址与核心网进行通信,两者之间的通信互不干扰、可以同时进行,但并不表示AP1与核心网的通信跟AP2与核心网之间的通信必须是在同一时刻,本文对此不做限定。In this embodiment of the present application, AP1 and AP2 can share the same IP address and communicate with the core network at the same time, thereby meeting the communication requirements of multiple devices accessing the server through the same communication module at the same time and improving communication efficiency. It can be understood that the described AP1 and AP2 can share the same IP address and communicate with the core network at the same time, which means that AP1 uses the first IP address to communicate with the core network based on the same modem, and AP2 uses the same modem to communicate with the core network. The first IP address communicates with the core network. The communication between the two does not interfere with each other and can be carried out at the same time. However, it does not mean that the communication between AP1 and the core network and the communication between AP2 and the core network must be at the same time. This article There is no restriction on this.
在一种可能的实现方式中,接收所述第一应用侧设备发送的第一上行数据,和所述第二应用侧设备发送的第二上行数据,并将所述第一上行数据和所述第二上行数据转发给所述核心网;所述第一上行数据携带第一数据特征,所述第二上行数据携带第二数据特征;接收所述核心网发送的下行数据,所述下行数据携带第三数据特征;若所述第三数据特征与所述第一数据特征匹配,则将所述下行数据发送给所述第一应用侧设备,若所述第三数据特征与所述第二数据特征匹配,则将所述下行数据发送给所述第二应用侧设备。In a possible implementation, the first uplink data sent by the first application side device and the second uplink data sent by the second application side device are received, and the first uplink data and the The second uplink data is forwarded to the core network; the first uplink data carries first data characteristics, and the second uplink data carries second data characteristics; the downlink data sent by the core network is received, and the downlink data carries Third data feature; if the third data feature matches the first data feature, then send the downlink data to the first application side device, if the third data feature matches the second data If the characteristics match, the downlink data is sent to the second application side device.
在一种可能的实现方式中,所述第一数据特征包括第一源MAC地址和第一目的MAC地址,所述第二数据特征包括第二源MAC地址和第二目的MAC地址,所述第三数据特征包括第三源MAC地址和第三目标MAC地址,所述若所述第三数据特征与所述第一数据特 征匹配,则将所述下行数据发送给所述第一应用侧设备,包括:在确定所述第三目的MAC地址与所述第一源MAC地址一致,且所述第三源MAC地址与所述第一目的MAC地址一致的情况下,将所述下行数据发送给所述第一应用侧设备;所述若所述第三数据特征与所述第二数据特征匹配,则将所述下行数据发送给所述第二应用侧设备,包括:在确定所述第三目的MAC地址与所述第二源MAC地址一致,且所述第三源MAC地址与所述第二目的MAC地址一致的情况下,将所述下行数据发送给所述第二应用侧设备。In a possible implementation, 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, and the third data characteristic includes a second source MAC address and a second destination MAC address. The third data feature includes a third source MAC address and a third target MAC address, and if the third data feature is the same as the first data feature, If there is a match, sending the downlink data to the first application side device includes: determining 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 source MAC address. If the first destination MAC address is consistent, the downlink data is sent to the first application side device; if the third data feature matches the second data feature, the downlink data is sent to the first application side device. Sent to the second application-side device, including: when it is determined 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. Next, send the downlink data to the second application side device.
在一种可能的实现方式中,所述第一源MAC地址和第一目的MAC地址包含于第一六元组,所述第二源MAC地址和第二目的MAC地址包含于第二六元组,所述第三源MAC地址与所述第一目的MAC地址包含于第三六元组。In a possible implementation, the first source MAC address and the first destination MAC address are included in the first six-tuple, and the second source MAC address and the second destination MAC address are included in the second six-tuple. , the third source MAC address and the first destination MAC address are included in a third six-tuple.
示例性的,如图4所示,modem接收上述第一上行数据、第二上行数据,向核心网转发上述第一上行数据和第二上行数据,以及接收核心网发送的第三上行数据,并基于数据特征确定将该第三上行数据发送给第一应用侧设备或第二应用侧设备中的其中一个,具体包括:Illustratively, as shown in Figure 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, and receives the third uplink data sent by the core network, and Determining to send the third uplink data to one of the first application side device or the second application side device based on the data characteristics includes:
S401,接收第一应用侧设备发送的第一上行数据,相应的,第一应用侧设备向modem发送该第一上行数据。S401. Receive the first uplink data sent by the first application side device. Correspondingly, the first application side device sends the first uplink data to the modem.
上述第一上行数据携带的第一数据特征包括:第一源MAC地址和第一目的MAC地址,其中该第一源MAC地址为第一应用侧设备的网卡的物理地址,该第一目标MAC地址为第一应用侧设备需要通过modem所访问的服务器的物理地址。The first data characteristics carried by the above-mentioned first uplink data include: a first source MAC address and a first destination MAC address, where the first source MAC address is the physical address of the network card of the first application-side device, and the first destination MAC address It is the physical address of the server that the first application-side device needs to access through the modem.
示例性的,上述第一上行数据携带第一六元组,也可以理解为,上述第一数据特征即为该第一六元组,该第一六元组包括上述第一源MAC地址和第一目的MAC地址。可理解的,六元组中还可以包括其他信息,例如六元组还可以包括:源IP地址、目的IP地址、源端口号以及目的端口号中的一项或多项信息,本文对此不做限定。可理解的,在本申请中,第一应用侧设备与第二应用侧设备中使用相同的IP地址,若第一六元组中包括源IP地址,则该第一六元组的源IP地址为上述第一IP地址。Illustratively, the above-mentioned first uplink data carries the first six-tuple, which can also be understood as the above-mentioned first data feature is the first six-tuple, and the first six-tuple includes the above-mentioned first source MAC address and the first six-tuple. A destination MAC address. It is understandable that the six-tuple may also include other information. For example, the six-tuple may also include: one or more of the source IP address, destination IP address, source port number, and destination port number. This article does not cover this. Make limitations. It can be understood that in this application, the first application side device and the second application side device use the same IP address. If the first six-tuple includes the source IP address, then the source IP address of the first six-tuple is the first IP address mentioned above.
S402,向核心网发送第一上行数据,相应的,核心网接收该第一上行数据。S402: Send the first uplink data to the core network, and accordingly, the core network receives the first uplink data.
S403,接收第二应用侧设备发送的第二上行数据,相应的,第二应用侧设备向modem发送该第二上行数据。S403: Receive the second uplink data sent by the second application side device, and accordingly, the second application side device sends the second uplink data to the modem.
上述第二上行数据携带的第二数据特征包括:第二源MAC地址和第二目的MAC地址,其中该第二源MAC地址为第二应用侧设备的网卡的物理地址,该第二目标MAC地址为第二应用侧设备需要通过modem所访问的服务器的物理地址。The second data characteristics carried by the above-mentioned second uplink data include: a second source MAC address and a second destination MAC address, where the second source MAC address is the physical address of the network card of the second application-side device, and the second destination MAC address The physical address of the server that the second application-side device needs to access through the modem.
示例性的,上述第二上行数据携带第二六元组,也可以理解为该第二数据特征即为该第二六元组,该第二六元组包括上述第二源MAC地址和第二目的MAC地址。可理解的,六元组中还可以包括其他信息,例如六元组还可以包括:源IP地址、目的IP地址、源端口号以及目的端口号中的一项或多项信息,本文对此不做限定。可理解的,本文第一应用侧设备与第二应用侧设备中使用相同的IP地址,若第二六元组中包括源IP地址,则该第二六元组的源IP地址为上述第一IP地址。Illustratively, the second uplink data carries a second six-tuple, and it can also be understood that the second data feature is the second six-tuple. The second six-tuple includes the above-mentioned second source MAC address and the second Destination MAC address. It is understandable that the six-tuple may also include other information. For example, the six-tuple may also include: one or more of the source IP address, destination IP address, source port number, and destination port number. This article does not cover this. Make limitations. It can be understood that in this article, the first application side device and the second application side device use the same IP address. If the second six-tuple includes the source IP address, the source IP address of the second six-tuple is the above-mentioned first IP address.
S404,向核心网发送第二上行数据,相应的,核心网接收该第二上行数据。S404: Send the second uplink data to the core network, and accordingly, the core network receives the second uplink data.
S405,接收核心网发送的下行数据,相应的,核心网向modem发送该下行数据。 S405: Receive downlink data sent by the core network, and accordingly, the core network sends the downlink data to the modem.
上述下行数据中携带第三特征数据包括:第三源MAC地址和第三目的MAC地址,其中该第三源MAC地址为期望通过核心网将该下行数据发送给应用侧设备的服务器的物理地址,该第三目标MAC地址为核心网期望通信的应用侧设备的MAC地址。The third characteristic data carried in the above-mentioned downlink data includes: a third source MAC address and a third destination MAC address, where the third source MAC address is the physical address of the server that expects to send the downlink data to the application-side device through the core network, The third target MAC address is the MAC address of the application-side device that the core network desires to communicate with.
示例性的,上述下行数据中携带第三六元组,该第三六元组包括上述第三源MAC地址和第三目的MAC地址。For example, the above downlink data carries a third six-tuple, and the third six-tuple includes the above-mentioned third source MAC address and the third destination MAC address.
S406,确定第一数据特征和第二数据特征中与上行数据中的第三数据特征匹配的其中一个数据特征。S406: Determine one of the first data features and the second data feature that matches the third data feature in the uplink data.
S407,在第三数据特征与第一数据特征匹配的情况下,向第一应用侧设备发送上述上行数据,相应地,第一应用侧设备接收该上行数据。S407: If the third data feature matches the first data feature, send the above uplink data to the first application side device, and accordingly, the first application side device receives the uplink data.
在本申请实施例中,在确定上述第三目的MAC地址与第一源MAC地址一致、且第三源MAC地址与第一目的MAC地址一致的情况下,则确定第三数据特征与第一数据特征一致,并确定将上述上行数据发送给第一应用侧设备。In the embodiment of the present 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, then it is determined that the third data characteristic is consistent with the first data The characteristics are consistent, and it is determined to send the above uplink data to the first application side device.
S408,在第三数据特征与第二数据特征匹配的情况下,向第二应用侧设备发送上述上行数据,相应地,第二应用侧设备接收该上行数据。S408: If the third data feature matches the second data feature, send the above uplink data to the second application side device, and accordingly, the second application side device receives the uplink data.
可理解的,若modem确定上述第三目的MAC地址与上述第二源MAC地址一致、且上述第三源MAC地址与上述第二目的MAC地址一致,则表明第二上行数据和上述下行数据为属于同一会话中的消息。则modem将下行数据作为该第二上行数据的下行数据,向第二应用侧设备发送该下行数据。It is understandable that if the modem determines that the above-mentioned third destination MAC address is consistent with the above-mentioned second source MAC address, and the above-mentioned third source MAC address is consistent with the above-mentioned second destination MAC address, it means that the second uplink data and the above-mentioned downlink data belong to messages in the same conversation. Then the modem uses the downlink data as the downlink data of the second uplink data, and sends the downlink data to the second application side device.
可理解的,上述步骤S402一定在上述S401之后执行、S404一定在S403之后执行,基于此,图4中关于S401至S404的步骤之间的先后顺序仅为示例,还可以是其他顺序,本文对此不做限定。例如,S401至S404的步骤之间的执行顺序依次可以为:S403、S404、S401、S402;也可以为:S403、S401、S404、S402;还可以为S401、S403、S404、S402;只要是满足步骤S402在上述S401之后执行、S404在S403之后执行的条件的其他步骤组合都可行,本文对此不做限定。It is understandable that the above-mentioned step S402 must be executed after the above-mentioned S401, and S404 must be executed after S403. Based on this, the order of the steps from S401 to S404 in Figure 4 is only an example, and it can also be other orders. This article discusses This is not limited. For example, the execution order between steps S401 to S404 can be: S403, S404, S401, S402; it can also be: S403, S401, S404, S402; it can also be S401, S403, S404, S402; as long as it satisfies Other step combinations under the condition that step S402 is executed after the above-mentioned S401 and S404 is executed after S403 are feasible, and this article does not limit this.
在一种可能的实现方式中,上述数据特征还可以是其他除了MAC之外的其他用于标识一对对话的标识,本文对此不做限定,例如上述数据特征还可以是端口号。In a possible implementation manner, the above-mentioned data characteristics may also be other identifiers other than MAC used to identify a pair of conversations, which is not limited in this article. For example, the above-mentioned data characteristics may also be port numbers.
示例性的,在确保第一应用侧设备与第二应用侧设备不存在相同的端口号的情况下,可以通过端口号标识上行数据和下行数据是否属于同一个会话。For example, when ensuring that the first application side device and the second application side device do not have the same port number, whether the uplink data and downlink data belong to the same session can be identified by the port number.
在一种可能的实现方式中,上述第一特征数据包括第一源端口号和第一目的端口号,上述第二特征数据包括第二源端口号和第二目的端口号,上述第三特征数据包括第三源端口号和第三目的端口号。In a possible implementation, the above-mentioned first characteristic data includes a first source port number and a first destination port number, the above-mentioned second characteristic data includes a second source port number and a second destination port number, and the above-mentioned third characteristic data Including the third source port number and the 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: determining the third destination port number and the first source If the port numbers are consistent and the third source port number is consistent with the first destination port number, the downlink data is sent to the first application side device.
上述若所述第三数据特征与所述第二数据特征匹配,则将所述下行数据发送给所述第二应用侧设备,包括:在确定所述第三目的端口号与所述第二源端口号一致、且所述第三 源端口号与所述第二目的端口号一致的情况下,将所述下行数据发送给所述第二应用侧设备。If the third data characteristic matches the second data characteristic, sending the downlink data to the second application side device includes: determining the third destination port number and the second source The port numbers are consistent and the third If the source port number is consistent with the second destination port number, the downlink data is sent to the second application side device.
示例性的,可以通过六元组信息中的端口号标识上行数据和下行数据是否属于同一个会话。例如,上述第一数据特征为第一六元组,上述第一六元组包括第一源端口号和第一目的端口号。上述第二数据特征为第二六元组,上述第二六元组包括第二源端口号和第二目的端口号。上述第三数据特征为第三六元组,上述第三六元组包括第三源端口号和第三目的端口号。For example, whether the uplink data and downlink data belong to the same session can be identified through the port number in the six-tuple information. For example, the first data feature is a first six-tuple, and the first six-tuple includes a first source port number and a first destination port number. The second data feature is a second six-tuple, and the second six-tuple includes a second source port number and a second destination port number. The third data feature is a third six-tuple, and the third six-tuple includes a third source port number and a third destination port number.
或者,示例性的,也可以通过五元组中的端口号标识上行数据和下行数据是否属于同一个会话。例如,上述第一数据特征包括第一五元组,上述第一五元组包括第一源端口号和第一目的端口号。上述第二数据特征包括第二五元组,上述第二五元组包括第二源端口号和第二目的端口号。上述第三数据特征包括第三五元组,上述第三五元组包括第三源端口号和第三目的端口号。其中,若五元组中包括源IP地址,则上述第一五元组和第二五元组中的IP地址相同,也即均为与上述第一APN对应的上述第一IP地址。Or, for example, whether the uplink data and downlink data belong to the same session can also be identified through the port number in the five-tuple. For example, the first data feature includes a first five-tuple, and the first five-tuple includes a first source port number and a first destination port number. The above-mentioned second data feature includes a second five-tuple, and the above-mentioned second five-tuple includes a second source port number and a second destination port number. The above-mentioned third data feature includes a third quintuple, and the above-mentioned third quintuple includes a third source port number and a third destination port number. Wherein, if the quintuple includes the source IP address, the IP addresses in the first quintuple and the second quintuple are the same, that is, they are both the first IP addresses corresponding to the first APN.
可理解的,五元组中包含的信息由源端口号和目的端口号,还可以包括源IP地址、目的IP地址以及传输层协议中的一项或多项,本文对此不做限定。It is understandable that the information contained in the quintuple consists of the source port number and the destination port number, and may also include one or more of the source IP address, the destination IP address, and the transport layer protocol, which is not limited in this article.
在一种可能的实现方式中,上述方法还包括:在接收到所述第一应用侧设备发送第一去激活请求后,确定所述第二应用侧设备是否需要继续基于所述第一IP地址进行与所述核心网之间的通信;若是,仅拆除所述第一应用侧设备与所述通信模组之间的通信链路;若否,拆除所述第一应用侧设备与所述通信模组之间的通信链路,并向所述核心网转发所述第一去激活请求,拆除所述通信模组与核心网的通信链路。In a possible implementation, the above method further includes: after receiving the first deactivation request sent by the first application side device, determining whether the second application side device needs to continue to use the first IP address based on the first deactivation request. Carry out communication with the core network; if yes, only remove the communication link between the first application side device and the communication module; if not, remove the communication link between the first application side device and the communication module communication link between the modules, forward the first deactivation request to the core network, and remove the communication link between the communication module and the core network.
具体的,上述方法还包括如图5所示的方法:Specifically, the above method also includes the method shown in Figure 5:
S501,接收第一应用侧设备针对上述第一IP地址的第一去激活请求。S501. Receive a first deactivation request from the first application-side device for the above-mentioned first IP address.
S502,确定第二处理器是否需要继续基于第一IP地址进行与核心网之间的通信。S502: Determine whether the second processor needs to continue communicating with the core network based on the first IP address.
示例性的,上述确定第二处理器是否需要继续基于第一IP地址进行与核心网之间的通信包括:确定是否存在与所述第二应用侧设备对应的第二拨号实体;所述第二拨号实体为所述通信模组创建的用于维护所述第二应用侧设备通过所述通信模组与所述核心网进行通信涉及到的通信链路的参数信息的拨号实体;若是,则确定所述第二应用侧设备仍需要继续基于所述第一IP地址进行与所述核心网之间的通信;若否,则确定所述第二应用侧设备不再需要继续基于所述第一IP地址进行与所述核心网之间的通信。Exemplarily, the above determination of whether the second processor needs to continue communicating with the core network based on the first IP address includes: determining whether there is a second dialing entity corresponding to the second application side device; the second The dialing entity is a dialing entity created by the communication module to maintain parameter information of the communication link involved in the communication between the second application side device and the core network through the communication module; if so, determine The second application side device still needs to continue to communicate with the core network based on the first IP address; if not, it is determined that the second application side device no longer needs to continue to communicate with the core network based on the first IP address. address for communication with the core network.
一般的,应用侧设备对应的拨号实体未销毁,则表示对应的应用侧设备仍需要继续通过对应的IP地址与核心网进行通信。也就是说,第二拨号实体未删除,则表示第二应用侧设备仍需要继续通过第一IP地址与核心网进行通信以访问服务器。Generally, if the dial-up entity corresponding to the application-side device is not destroyed, it means that the corresponding application-side device still needs to continue to communicate with the core network through the corresponding IP address. That is to say, if the second dial-up entity is not deleted, it means 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.
示例性的,modem可以通过确定当前是否维护有与第二应用侧设备和该第一IP地址对应的第二拨号实体,确定第二应用侧设备是否需要继续基于第一IP地址进行与核心网之间的通信。例如,若modem中未维护有上述第二拨号实体,表明未创建该第二拨号实体,或创建了该第二拨号实体但创建的该第二拨号实体已被清除,则确定第二应用侧设备不需要继续基于第一IP地址进行与核心网之间的通信。例如,若modem中维护有上述第二拨号 实体,则确定第二应用侧设备仍需要继续基于第一IP地址进行与核心网之间的通信。For example, the modem can determine whether the second application side device needs to continue to communicate 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. communication between. For example, if the above-mentioned second dial-up entity is not maintained in the modem, indicating that the second dial-up entity has not been created, or the second dial-up entity has been created but the created second dial-up entity has been cleared, then determine that the second application-side device There is no need to continue communicating with the core network based on the first IP address. For example, if the modem maintains the above second dial-up entity, it is determined that the second application side device still needs to continue communicating with the core network based on the first IP address.
在确定第二处理器需要继续基于第一IP地址进行与核心网之间的通信的情况下,执行步骤S503;在确定第二处理器不需要继续基于第一IP地址进行与核心网之间的通信的情况下,执行步骤S504。When it is determined that the second processor does not need to continue communicating with the core network based on the first IP address, step S503 is executed; when it is determined that the second processor does not need to continue communicating with the core network based on the first IP address. In the case of communication, step S504 is executed.
S503,不向核心网发送第一去激活请求,且仅拆除第一应用侧设备与通信模组之间的通信链路。S503, do not send the first deactivation request to the core network, and only dismantle the communication link between the first application side device and the communication module.
可理解的,在第一应用侧设备不需要使用第一IP地址而发起上述第一去激活请求时,若确定第二处理器需要继续基于第一IP地址进行与核心网之间的通信,则表明该第一应用侧设备不是与modem对接的两个或两个以上应用侧设备中最后一个发起去激活请求的应用侧设备。也即,与modem对接的多个应用侧设备中,除了上述第一应用侧设备之外的其他应用侧设备中仍有应用侧设备(第二应用侧设备)需要使用上述第一IP地址。从而为避免出现第二处理器无法继续通过第一IP地址进行与核心网之间的通信的问题,modem不通过空中接口向核心网发送第一去激活请求,不拆除modem与通信模组之间与该第一IP地址有关的通信链路资源,而是仅拆除第一应用侧设备与通信模组之间的通信链路。It can be understood that when the first application-side device does not need to use the first IP address and initiates the above-mentioned first deactivation request, if it is determined that the second processor needs to continue communicating with the core network based on the first IP address, then It indicates that the first application-side device is not the last application-side device to initiate a deactivation request among two or more application-side devices connected to the modem. That is, among the multiple application-side devices connected to the modem, other application-side devices except the first application-side device still have application-side devices (second application-side devices) that 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, and does not remove the connection between the modem and the communication module. The communication link resource related to the first IP address is used instead of only dismantling the communication link between the first application side device and the communication module.
可理解的,上述拆除第一应用侧设备与通信模组之间的通信链路是指在软件信息上消除第一应用侧设备与通信模组之间的通信链路参数信息,而不是指在硬件层间拆除通信电路。It can be understood that the above-mentioned removal of the communication link between the first application side device and the communication module refers to the elimination of the communication link parameter information between the first application side device and the communication module in terms of software information, rather than the removal of the communication link parameter information between the first application side device and the communication module. Dismantle communication circuits between hardware layers.
示例性的,所述拆除第一应用侧设备与通信模组之间的通信链路包括:删除第一拨号实体,并删除所述第一应用侧设备与所述第一IP地址的关联关系;所述第一拨号实体用于维护所述第一应用侧设备通过所述通信模组与所述核心网通信涉及到的通信链路的参数信息;向所述第一应用侧设备发送关于所述第一去激活请求的请求结果为去激活成功的返回结果,该去激活成功的返回结果可以用于指示modem已拆除关于第一应用侧设备的承载。Exemplarily, the deleting the communication link between the first application side device and the communication module includes: deleting the first dialing entity, and deleting the association between the first application side device and the first IP address; The first dialing entity is used to maintain the parameter information of the communication link involved in the communication between the first application side device and the core network through the communication module; and send the information about the first application side device to the first application side device. The request result of the first deactivation request is a return result of successful deactivation. The return result of successful deactivation may be used to indicate that the modem has removed the bearer related to the first application-side device.
关于modem删除所述第一应用侧设备与所述第一IP地址的关联关系,具体可以为,modem向第一应用侧设备发送删除第一网卡与第一IP地址的绑定关系的指示消息。该第一应用侧设备在接收到该指示消息后,则删除该第一应用侧设备记录的第一网卡与第一IP地址的绑定关系、以及删除该第一应用侧设备的路由配置中记录的第三网卡与第一网卡之间的关联关系。Regarding the modem deleting the association relationship between the first application side device and the first IP address, specifically, the modem sends an instruction message to the first application side device to delete the binding relationship between the first network card and the first IP address. After receiving the instruction 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 record in the routing configuration of the first application-side device. The relationship between the third network card and the first network card.
一般地,对于第一应用侧设备侧而言,该第一应用侧设备发起上述第一去激活请求后,不会立即删除上述第一网卡和第一IP地址之间的绑定关系,而是先将第一应用侧设备中建立的第一网卡与第一IP地址的关联关系置为不可用状态,也即关于第一IP地址的信息处于不可用的状态,第一应用侧设备不会也不能再基于该第一IP地址和modem向核心网发送数据。在第一应用侧设备接收到上述去激活成功的返回结果后,则删除上述第一网卡和第一IP地址之间的绑定关系。Generally, for the first application side device, after the first application side device initiates the first deactivation request, it will not immediately delete the binding relationship between the first network card and the first IP address, but First, 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 will not also Data can no longer be sent to the core network based on the first IP address and modem. After receiving the return result of successful deactivation, the first application-side device deletes the binding relationship between the first network card and the first IP address.
S504,向核心网发送第一去激活请求,拆除第一应用侧设备与通信模组之间的通信链路,以及拆除通信模组与核心网的通信链路。S504: Send a first deactivation request to the core network, dismantle the communication link between the first application-side device and the communication module, and dismantle the communication link between the communication module and the core network.
可理解的,在第一应用侧设备不需要使用第一IP地址而发起上述第一去激活请求时,若确定第二处理器不需要继续基于第一IP地址进行与核心网之间的通信,则表明第一应用侧设备是上述两个或两个以上应用侧设备中最后一个发起去激活请求的应用侧设备。也即 当前不存在其他应用侧设备需要使用该第一IP地址。从而modem可以通过空中接口向核心网发送该第一去激活请求。可理解的,核心网接收到关于第一IP地址的去激活请求后,会解除该第一IP地址与上述modem之间的关联关系,也可以理解为将该第一IP地址无效掉。It can be understood that when the first application-side device does not need to use the first IP address to initiate the above-mentioned first deactivation request, if it is determined that the second processor does not need to continue communicating with the core network based on the first IP address, This indicates that the first application-side device is the last application-side device to initiate a deactivation request among the two or more application-side devices. That is to say Currently, there is no other application-side device that needs to use the first IP address. Therefore, the modem can send the first deactivation request to the core network through the air interface. It is understandable that after receiving the deactivation request for the first IP address, the core network will terminate the association between the first IP address and the above-mentioned modem, which can also be understood as invalidating the first IP address.
可理解的,在S404中modem可以同时执行也可以先后执行上述向核心网发送第一去激活请求以及拆除第一应用侧设备与通信模组之间的通信链路的任务,本文对此不做限定。It is understandable that in S404, the modem can perform the above-mentioned tasks of sending the first deactivation request to the core network and dismantling the communication link between the first application-side device and the communication module simultaneously or successively. This article does not do this. limited.
在本申请实施例中,上述拆除通信模组与核心网的通信链路是指删除modem侧中记录的上述第三网卡与第一IP地址的关联关系。In this embodiment of the present application, deleting the communication link between the communication module and the core network means deleting the association between the third network card and the first IP address recorded on the modem side.
一般地,modem在发送上述第一去激活请求后,不会立即拆除通信模组与核心网的通信链路,而是将modem中记录的modem的网卡(第三网卡)与第一IP地址的关联关系置为不可用的状态。当modem接收到核心网响应的去激活成功的指示信息后,该modem删除记录的第三网卡与第一IP地址的关联关系。Generally, after the modem sends the above-mentioned first deactivation request, it will not immediately dismantle the communication link between the communication module and the core network, but will connect the modem's network card (third network card) recorded in the modem with the first IP address. The relationship is set to an unavailable state. When the modem receives the deactivation success indication message responded by the core network, the modem deletes the recorded association between the third network card and the first IP address.
同理的,modem接收到第二应用侧设备发起的针对第一IP地址的第二去激活请求时的处理方式,与modem接收到第一应用侧设备发起的针对第一IP地址的第一去激活请求的处理方式类似,不再详述描述。示例性的,上述方法还包括:在接收到所述第二应用侧设备针对所述第一IP地址的第二去激活请求后,确定所述第一处理器是否需要继续基于所述第一IP地址进行与所述核心网之间的通信;在确定所述第一处理器需要继续基于所述第一IP地址进行与所述核心网之间的通信的情况下,不向所述核心网发送所述第二去激活请求,且拆除所述第二应用侧设备与所述通信模组之间的通信链路;在确定所述第二处理器不需要继续基于所述第一IP地址进行与所述核心网之间的通信的情况下,向所述核心网发送所述第二去激活请求,且拆除所述第一应用侧设备与所述通信模组之间的通信链路。Similarly, the modem handles the second deactivation request for the first IP address initiated by the second application side device in the same manner as the modem receives the first deactivation request for the first IP address initiated by the first application side device. Activation requests are handled in a similar manner and will not be described in detail. Exemplarily, the above method further includes: after receiving a second deactivation request from the second application-side device for the first IP address, determining whether the first processor needs to continue to operate based on the first IP address. address to communicate with the core network; when it is determined that the first processor needs to continue to communicate with the core network based on the first IP address, do not send a message to the core network. The second deactivation request and dismantling the communication link between the second application-side device and the communication module; after determining that the second processor does not need to continue to perform communication based on the first IP address In the case of communication between the core networks, the second deactivation request is sent to the core network, and the communication link between the first application side device and the communication module is removed.
示例性的,若modem在同一阶段(例如在50毫秒内),先接收到第一去激活请求,后接收到第二去激活请求,则modem不执行向基站发送第一去激活请求的任务,而是先执行拆除第一应用侧设备与modem之间的通信链路,再执行拆除第一应用侧设备与modem之间的通信链路以及向基站发送第二去激活请求的任务。可理解的,若modem在同一时刻同时接收到第一去激活请求和第二去激活请求,则modem可以同时执行或先后执行拆除第一应用侧设备与通信模组之间的通信链路、拆除第二应用侧设备与通信模组之间的通信链路以及通过空中接口向基站发起针对所述第一IP地址的去激活请求(第一去激活请求或第二去激活请求)。For example, if the modem first receives the first deactivation request and then the second deactivation request at the same stage (for example, within 50 milliseconds), the modem does not perform the task of sending the first deactivation request to the base station. Instead, the task of dismantling the communication link between the first application-side device and the modem is first performed, and then the tasks of dismantling the communication link between the first application-side device and the modem and sending the second deactivation request to the base station are performed. It is understandable that if the modem receives the first deactivation request and the second deactivation request at the same time, the modem can simultaneously or successively perform the dismantling of the communication link between the first application-side device and the communication module, and the dismantling of the communication link. The communication link between the second application side device and the communication module and the air interface initiate a deactivation request (first deactivation request or second deactivation request) for the first IP address to the base station.
可理解的,上述第一去激活请求和第二去激活请求仅为区分激活请求来自于第一应用侧设备还是第二应用侧设备,关于第一去激活请求和第二去激活请求的具体参数信息可以一致,本文对此不做限定。It can be understood that the above-mentioned first deactivation request and second deactivation request are only to distinguish whether the activation request comes from the first application side device or the second application side device, and the specific parameters of the first deactivation request and the second deactivation request are The information can be consistent, and this article does not limit this.
在本申请实施例中,第一网卡、第二网卡或第三网卡是指包含MAC地址的物理网卡。In the embodiment of this application, the first network card, the second network card or the third network card refers to a physical network card including a MAC address.
在一种可能的实现方式中,可以通过modem中的共享管理模块(share manage)执行一些管理任务以进行第一应用侧设备、第二应用侧设备与核心网之间的通信。示例性的,由share manage确定是否向核心网转发关于第一APN的激活请求(例如上述第二激活请求),和/或,由share manage执行当接收到下行数据时如何确定下行数据的目的地是属于 第一应用侧设备还是第二应用侧设备。示例性的,由该share manage执行如图4和图5所示的方法中的一项或多项。可理解的,该共享管理模块可以为通信模组中的硬件模块和/或软件应用程序,示例性的,该share manage为包含于通信模组中的包括硬件处理单元和软件程序中的程序类或实例化对象相互作用的软硬件模块,本文对此不做限制。In a possible implementation, some management tasks can be performed through the shared management module (share manage) in the modem to perform communication between the first application side device, the second application side device and the core network. Exemplarily, the share manager determines whether to forward an activation request regarding the first APN (such as the above-mentioned second activation request) to the core network, and/or the share manager performs how to determine the destination of the downlink data when receiving the downlink data. belongs to The first application side device is still the second application side device. For example, the share manager executes one or more of the methods shown in Figures 4 and 5. It can be understood that the shared management module can be a hardware module and/or a software application in the communication module. For example, the share manage is a program class included in the communication module including a hardware processing unit and a software program. Or instantiated object interaction software and hardware modules, this article does not limit this.
以下将介绍本发明实施例提供的一种用于执行本申请实施例提供的通信方法的通信模组。The following will introduce a communication module provided by an embodiment of the present invention for executing the communication method provided by an embodiment of the present application.
请参见图6,为本发明实施例提供了一种通信模组的结构示意图,该通信模组至少连接有第一应用侧设备和第二应用侧设备。如图6所示,本发明实施例的通信模组可以包括:Please refer to FIG. 6 , which provides a schematic structural diagram of a communication module according to an embodiment of the present invention. The communication module is connected to at least a first application side device and a second application side device. As shown in Figure 6, the communication module according to the embodiment of the present invention may include:
所述通信模组至少连接有第一应用侧设备和第二应用侧设备,所述通信模组包括:The communication module is connected to at least a first application side device and a second application side device, and the communication module includes:
第一接收单元601,用于接收所述第一应用侧设备通过第一接入点名称APN发送的第一激活请求,并向核心网转发所述第一激活请求;The first receiving unit 601 is configured to receive the first activation request sent by the first application side device through the first access point name APN, and forward the first activation request to the core network;
第二接收单元602,用于接收所述核心网响应于所述第一激活请求反馈的第一网际互连协议IP地址,并向所述第一应用侧设备转发所述第一IP地址;The second receiving unit 602 is configured to receive the 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;
所述第一接收单元601,还用于接收所述第二应用侧设备通过所述第一APN发送的第二激活请求;The first receiving unit 601 is also configured to receive a second activation request sent by the second application side device through the first APN;
响应单元603,用于响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。The response unit 603 is configured to feed back the first IP address to the second application side device in response to the second activation request.
如图7所示,在一种可能的实现方式中,上述通信模组还包括:As shown in Figure 7, in a possible implementation, the above communication module also includes:
第一确定单元604,用于确定所述第二激活请求是否携带所述第一APN;所述响应单元603,具体用于在确定所述第二激活请求中携带所述第一APN的情况下,响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。The first determining unit 604 is used to determine whether the second activation request carries the first APN; the response unit 603 is specifically used to determine whether the second activation request carries the first APN. , in response to the second activation request, feedback the first IP address to the second application side device.
在一种可能的实现方式中,上述响应单元603,具体用于建立关于所述第二激活请求的第二拨号实体,所述第二拨号实体用于维护所述第二应用侧设备通过所述通信模组与所述核心网进行通信涉及到的通信链路的参数信息;向所述第二应用侧设备发送所述第一IP地址和链路建立成功的指示信息。In a possible implementation, the above response unit 603 is specifically used to establish a second dialing entity regarding the second activation request, and the second dialing entity is used to maintain the second application side device through the Parameter information of the communication link involved in communication between the communication module and the core network; sending the first IP address and indication information indicating successful link establishment to the second application side device.
在一种可能的实现方式中,上述第一接收单元601还用于接收所述第一应用侧设备发送的第一上行数据,和所述第二应用侧设备发送的第二上行数据,并将所述第一上行数据和所述第二上行数据转发给所述核心网;所述第一上行数据携带第一数据特征,所述第二上行数据携带第二数据特征;上述第二接收单元602还用于接收所述核心网发送的下行数据,所述下行数据携带第三数据特征;上述通信模组还包括:发送单元605,用于若所述第三数据特征与所述第一数据特征匹配,则将所述下行数据发送给所述第一应用侧设备,若所述第三数据特征与所述第二数据特征匹配,则将所述下行数据发送给所述第二应用侧设备。In a possible implementation, the above-mentioned first receiving unit 601 is also configured to receive the first uplink data sent by the first application side device and the second uplink data sent by the second application side device, and send The first uplink data and the second uplink data are forwarded to the core network; the first uplink data carries first data characteristics, and the second uplink data carries second data characteristics; the above-mentioned second receiving unit 602 It is also used to receive downlink data sent by the core network, and the downlink data carries a third data feature; the above-mentioned communication module also includes: a sending unit 605, used to compare the third data feature with the first data feature. If the third data feature matches the second data feature, the downlink data is sent to the first application side device. If the third data feature matches the second data feature, the downlink data is sent to the second application side device.
在一种可能的实现方式中,所述通信模组还包括:第二确定单元606,用于在接收到所述第一应用侧设备发送第一去激活请求后,确定所述第二应用侧设备是否需要继续基于所述第一IP地址进行与所述核心网之间的通信;拆除单元607,用于在确定所述第二应用侧设备需要继续基于所述第一IP地址进行与所述核心网之间的通信的情况下,仅拆除所述 第一应用侧设备与所述通信模组之间的通信链路;在确定所述第二应用侧设备不需要继续基于所述第一IP地址进行与所述核心网之间的通信,拆除所述第一应用侧设备与所述通信模组之间的通信链路,并向所述核心网转发所述第一去激活请求,拆除所述通信模组与核心网的通信链路。In a possible implementation, the communication module further includes: a second determining unit 606, configured to determine that the second application-side device sends a first deactivation request after receiving the first deactivation request from the first application-side device. Whether the device needs to continue to communicate with the core network based on the first IP address; the removal unit 607 is used to determine whether the second application side device needs to continue to communicate with the core network based on the first IP address. In the absence of communication between core networks, only the dismantling of the The communication link between the first application-side device and the communication module; after determining that the second application-side device does not need to continue communicating with the core network based on the first IP address, dismantle all The communication link between the first application side device and the communication module is forwarded to the core network, and the communication link between the communication module and the core network is removed.
在一种可能的实现方式中,上述拆除单元607,具体用于删除第一拨号实体;所述第一拨号实体用于维护所述第一应用侧设备通过所述通信模组与所述核心网通信涉及到的通信链路的参数信息;向所述第一应用侧设备发送关于所述第一去激活请求的请求结果为去激活成功的返回结果。In a possible implementation, the above-mentioned removal unit 607 is specifically used to delete the first dial-up entity; the first dial-up entity is used to maintain the connection between the first application-side device and the core network through the communication module. Parameter information of the communication link involved in the communication; sending a request result regarding the first deactivation request to the first application side device is a return result of successful deactivation.
需要说明的是,具体执行过程可以参见图2至图5所示的方法实施例的具体说明,在此不进行赘述。It should be noted that for the specific execution process, reference can be made to the specific descriptions of the method embodiments shown in Figures 2 to 5, and will not be described again here.
可理解的,上述图6或图7所示的通信模组可以有多种产品形态。示例性的,通信模组还可以是如图8所示的处理器、通信接口、存储器以及通信总线的通信模组。具体的,如图8所示,通信模组80可以包括:It can be understood that the communication module shown in Figure 6 or Figure 7 can have a variety of product forms. For example, the communication module may also be a communication module of a processor, a communication interface, a memory, and a communication bus as shown in FIG. 8 . Specifically, as shown in Figure 8, the communication module 80 may include:
至少一个处理器801,例如CPU,至少一个通信接口803,存储器804,至少一个通信总线802。其中,通信总线802用于实现这些组件之间的连接通信。通信接口803可选的可以包括标准的有线接口、无线接口(如WI-FI接口或蓝牙接口等)。存储器804可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器804可选的还可以是至少一个位于远离前述处理器801的存储装置。如图8所示,作为一种计算机存储介质的存储器804中可以包括操作系统和程序指令。At least one processor 801, such as CPU, at least one communication interface 803, memory 804, and at least one communication bus 802. Among them, the communication bus 802 is used to realize connection communication between these components. The communication interface 803 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface or a Bluetooth interface, etc.). The memory 804 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 804 may optionally be at least one storage device located remotely from the processor 801 . As shown in Figure 8, memory 804, which is a computer storage medium, may include an operating system and program instructions.
示例性的,处理器801可以用于实现上述图6中的第一接收单元601、第二接收单元602、以及响应单元603所执行的步骤或方法。For example, the processor 801 may be used to implement the steps or methods performed by the first receiving unit 601, the second receiving unit 602, and the response unit 603 in FIG. 6 .
可理解的,以上所述的方式仅为示例,也可以由处理器801以及上述通信模组80中的其他模块配合执行上述图6中的第一接收单元601、第二接收单元602、以及响应单元603所执行的步骤或方法,本文对此不做限定。It can be understood that the above-described methods are only examples, and the processor 801 and other modules in the communication module 80 may also be used to execute the first receiving unit 601, the second receiving unit 602, and the response in FIG. 6 The steps or methods performed by unit 603 are not limited in this article.
示例性的,上述处理器801还可以用于实现上述图7中的第一确定单元604、发送单元605、第二确定单元606以及拆除单元607中的一项或多项单元所执行的步骤或方法。Exemplarily, the above-mentioned processor 801 can also be used to implement the steps performed by one or more of the first determination unit 604, the sending unit 605, the second determination unit 606 and the disassembly unit 607 in Figure 7 or method.
可理解的,以上所述的方式仅为示例,也可以由处理器801以及上述通信模组80中的其他模块配合执行上述图7中的第一确定单元604、发送单元605、第二确定单元606以及拆除单元607中的一项或多项单元所执行的步骤或方法,本文对此不做限定。It can be understood that the above-described method is only an example, and the processor 801 and other modules in the communication module 80 may also be used to execute the first determining unit 604, the sending unit 605, and the second determining unit in FIG. 7 606 and the steps or methods performed by one or more units in the dismantling unit 607 are not limited herein.
在图8所示的通信模组80中,处理器801可以用于加载存储器804中存储的程序指令,并具体执行以下操作:In the communication module 80 shown in Figure 8, the processor 801 can be used to load the program instructions stored in the memory 804, and specifically perform the following operations:
接收第二应用侧设备使用所述第一APN向所述核心网发送的第二激活请求;Receive a second activation request sent by the second application-side device to the core network using the first APN;
响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址,以及不向所述核心网发送所述第二激活请求;In response to the second activation request, feedback the first IP address to the second application side device, and not sending the second activation request to the core network;
基于所述第一IP地址进行所述第一应用侧设备与所述核心网之间的通信,以及,基于所述第一IP地址进行所述第二应用侧设备与所述核心网之间的通信。Communication between the first application side device and the core network is performed based on the first IP address, and communication between the second application side device and the core network is performed based on the first IP address. communication.
关于通信模组、第一应用侧设备、第二应用侧设备、第一APN、第一IP地址以及第二 激活请求等名称的说明可以参照前文,在此不再详述。Regarding the communication module, the first application side device, the second application side device, the first APN, the first IP address and the second For descriptions of names such as activation requests, please refer to the previous section and will not be described in detail here.
需要说明的是,具体执行过程可以参见图2至图5所示的实施例的具体说明,在此不进行赘述。It should be noted that the specific execution process may refer to the specific description of the embodiment shown in FIGS. 2 to 5 , and will not be described again here.
本发明实施例还提供了一种计算机存储介质,上述计算机存储介质可以存储有多条指令,上述指令适于由处理器加载并执行如上述图2至图5所示的实施例的方法步骤,具体执行过程可以参见图2至图5所示实施例的具体说明,在此不进行赘述。Embodiments of the present invention also provide a computer storage medium. The computer storage medium can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the method steps of the embodiments shown in Figures 2 to 5. For the specific execution process, please refer to the specific description of the embodiment shown in Figures 2 to 5, and will not be described again here.
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, the term "when" may be interpreted to mean "if..." or "after" or "in response to determining..." or "in response to detecting..." depending on the context. Similarly, depending on the context, the phrase "when determining..." or "if (stated condition or event) is detected" may be interpreted to mean "if it is determined..." or "in response to determining..." or "on detecting (stated condition or event)” or “in response to detecting (stated condition or event)”.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例该的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted over a wired connection from a website, computer, server, or data center (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, solid state drive), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。 Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are implemented. This process can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, , may include the processes of the above method embodiments. The aforementioned storage media include: ROM, random access memory (RAM), magnetic disks, optical disks and other media that can store program codes.

Claims (10)

  1. 一种通信方法,应用于通信模组,所述通信模组至少连接有第一应用侧设备和第二应用侧设备,所述方法包括:A communication method, applied to a communication module, the communication module is connected to at least a first application side device and a second application side device, the method includes:
    接收所述第一应用侧设备通过第一APN发送的第一激活请求,并向核心网转发所述第一激活请求;Receive the first activation request sent by the first application-side device through the first APN, and forward the first activation request to the core network;
    接收所述核心网响应于所述第一激活请求反馈的第一IP地址,并向所述第一应用侧设备转发所述第一IP地址;Receive the first 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;
    接收所述第二应用侧设备通过所述第一APN发送的第二激活请求;Receive a second activation request sent by the second application-side device through the first APN;
    响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。In response to the second activation request, the first IP address is fed back to the second application side device.
  2. 根据权利要求1所述的方法,其特征在于,在所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址之前,所述方法还包括:The method according to claim 1, characterized in that, before feedbacking the first IP address to the second application side device in response to the second activation request, the method further includes:
    确定所述第二激活请求是否携带所述第一APN;Determine whether the second activation request carries the first APN;
    所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址,包括:Feeding back the first IP address to the second application side device in response to the second activation request includes:
    在确定所述第二激活请求中携带所述第一APN的情况下,响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。If it is determined that the second activation request carries the first APN, in response to the second activation request, the first IP address is fed back to the second application side device.
  3. 根据权利要求2所述的方法,其特征在于,所述响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址,包括:The method according to claim 2, characterized in that, in response to the second activation request, feeding back the first IP address to the second application side device includes:
    建立关于所述第二激活请求的第二拨号实体,所述第二拨号实体用于维护所述第二应用侧设备通过所述通信模组与所述核心网进行通信涉及到的通信链路的参数信息;Establish a second dial-up entity related to the second activation request. The second dial-up entity is used to maintain the communication link involved in the communication between the second application-side device and the core network through the communication module. Parameter information;
    向所述第二应用侧设备发送所述第一IP地址和链路建立成功的指示信息。Send the first IP address and indication information indicating successful link establishment to the second application side device.
  4. 根据权利要求1所述的通信方法,其特征在于,还包括:The communication method according to claim 1, further comprising:
    接收所述第一应用侧设备发送的第一上行数据,和所述第二应用侧设备发送的第二上行数据,并将所述第一上行数据和所述第二上行数据转发给所述核心网;所述第一上行数据携带第一数据特征,所述第二上行数据携带第二数据特征;Receive the first uplink data sent by the first application side device and the 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 feature, and the second uplink data carries a second data feature;
    接收所述核心网发送的下行数据,所述下行数据携带第三数据特征;Receive downlink data sent by the core network, where the downlink data carries a third data feature;
    在所述第三数据特征与所述第一数据特征匹配的情况下,将所述下行数据发送给所述第一应用侧设备,在所述第三数据特征与所述第二数据特征匹配的情况下,将所述下行数据发送给所述第二应用侧设备。When the third data characteristic matches the first data characteristic, the downlink data is sent to the first application side device. When the third data characteristic matches the second data characteristic, the downlink data is sent to the first application side device. In this case, the downlink data is sent to the second application side device.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, characterized in that the method further includes:
    在接收到所述第一应用侧设备发送第一去激活请求后,确定所述第二应用侧设备是否需要继续基于所述第一IP地址进行与所述核心网之间的通信;After receiving the first deactivation request sent by the first application-side device, determine whether the second application-side device needs to continue communicating with the core network based on the first IP address;
    在确定所述第二应用侧设备需要继续基于所述第一IP地址进行与所述核心网之间的通信的情况下,仅拆除所述第一应用侧设备与所述通信模组之间的通信链路;When it is determined that the second application side device needs to continue communicating with the core network based on the first IP address, only the connection between the first application side device and the communication module is removed. communication link;
    在确定所述第二应用侧设备不需要继续基于所述第一IP地址进行与所述核心网之间的 通信的情况下,拆除所述第一应用侧设备与所述通信模组之间的通信链路,并向所述核心网转发所述第一去激活请求,拆除所述通信模组与核心网的通信链路。After determining that the second application side device does not need to continue to communicate with the core network based on the first IP address, In the case of communication, remove the communication link between the first application side device and the communication module, forward the first deactivation request to the core network, remove the communication module and the core network communication link.
  6. 根据权利要求5所述的方法,其特征在于,所述拆除所述第一应用侧设备与所述通信模组之间的通信链路包括:The method according to claim 5, characterized in that said removing the communication link between the first application side device and the communication module includes:
    删除第一拨号实体;所述第一拨号实体用于维护所述第一应用侧设备通过所述通信模组与所述核心网通信涉及到的通信链路的参数信息;Delete the first dial-up entity; the first dial-up entity is used to maintain parameter information of the communication link involved in the communication between the first application-side device and the core network through the communication module;
    向所述第一应用侧设备发送关于所述第一去激活请求的请求结果为去激活成功的返回结果。The request result regarding the first deactivation request sent to the first application side device is a return result of successful deactivation.
  7. 根据权利要求6所述的方法,其特征在于,所述确定所述第二应用侧设备是否需要继续基于所述第一IP地址进行与所述核心网之间的通信包括:The method according to claim 6, wherein determining whether the second application side device needs to continue communicating with the core network based on the first IP address includes:
    确定是否存在与所述第二应用侧设备对应的第二拨号实体;所述第二拨号实体为所述通信模组创建的用于维护所述第二应用侧设备通过所述通信模组与所述核心网进行通信涉及到的通信链路的参数信息的拨号实体;Determine whether there is a second dialing entity corresponding to the second application side device; the second dialing entity is created by the communication module to maintain the connection between the second application side device and the second application side device through the communication module. A dial-up entity for the parameter information of the communication link involved in the core network's communication;
    在确定存在所述第二拨号实体的情况下,确定所述第二应用侧设备仍需要继续基于所述第一IP地址进行与所述核心网之间的通信;When it is determined that the second dial-up entity exists, it is determined that the second application-side device still needs to continue communicating with the core network based on the first IP address;
    在确定不存在所述第二拨号实体的情况下,则确定所述第二应用侧设备不再需要继续基于所述第一IP地址进行与所述核心网之间的通信。If it is determined that the second dial-up entity does not exist, it is determined that the second application side device no longer needs to continue communicating with the core network based on the first IP address.
  8. 一种通信模组,所述通信模组至少连接有第一应用侧设备和第二应用侧设备,所述通信模组包括:A communication module, the communication module is connected to at least a first application side device and a second application side device, the communication module includes:
    第一接收单元,用于接收所述第一应用侧设备通过第一接入点名称APN发送的第一激活请求,并向核心网转发所述第一激活请求;A first receiving unit configured to receive the first activation request sent by the first application side device through the first access point name APN, and forward the first activation request to the core network;
    第二接收单元,用于接收所述核心网响应于所述第一激活请求反馈的第一网际互连协议IP地址,并向所述第一应用侧设备转发所述第一IP地址;A second receiving unit configured to receive the 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;
    所述第一接收单元,还用于接收所述第二应用侧设备通过所述第一APN发送的第二激活请求;The first receiving unit is also configured to receive a second activation request sent by the second application side device through the first APN;
    响应单元,用于响应于所述第二激活请求,向所述第二应用侧设备反馈所述第一IP地址。A response unit configured to feed back the first IP address to the second application-side device in response to the second activation request.
  9. 一种电子设备,包括:存储器、处理器,其中,所述存储器存储有程序指令;所述程序指令被所述处理器执行时,使所述处理器执行如权利要求1-8中任一项所述的方法。An electronic device, including: a memory and a processor, wherein the memory stores program instructions; when the program instructions are executed by the processor, the processor is caused to execute any one of claims 1-8 the method described.
  10. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序;当所述计算机程序在一个或多个处理器上运行时,执行如权利要求1-8中任一项所述的方法。 A computer-readable storage medium having a computer program stored in the computer-readable storage medium; when the computer program is run on one or more processors, it executes as described in any one of claims 1-8 Methods.
PCT/CN2023/110890 2022-08-12 2023-08-03 Communication method and communication module WO2024032450A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2024032450A1 true WO2024032450A1 (en) 2024-02-15

Family

ID=84117883

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730142A (en) * 2009-06-30 2010-06-09 中兴通讯股份有限公司 Establishment method of multi-packet data network connection and device
CN101931591A (en) * 2010-08-30 2010-12-29 华为终端有限公司 Method and device for sharing data link by a plurality of grouped data services
US20160316496A1 (en) * 2013-12-02 2016-10-27 Telefonaktiebolaget Lm Ericsson (Publ) IP Address Assignment For a UE in 3GPP
CN114641047A (en) * 2020-12-16 2022-06-17 海能达通信股份有限公司 APN switching method in LTE network and related device
CN115396510A (en) * 2022-08-12 2022-11-25 西安广和通无线通信有限公司 Communication method and communication module

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635708B (en) * 2008-07-22 2013-09-11 华为技术有限公司 Establishment method and device of packet data network (PDN) connection
CN101801102B (en) * 2009-02-06 2015-12-02 华为技术有限公司 PDN connection establishment method, relevant device and system
CN101600224B (en) * 2009-06-30 2012-10-03 中兴通讯股份有限公司 Realization method for supporting a plurality of PDP contexts by wireless data card and wireless data card
CN103369709B (en) * 2012-03-30 2016-03-23 电信科学技术研究院 A kind of PDN connection establishment method and apparatus
CN103517264B (en) * 2012-06-29 2017-04-12 华为终端有限公司 Network switching method and device
CN103687049B (en) * 2012-08-30 2019-07-09 中兴通讯股份有限公司 The method and system that multi-connection is established
CN103686846B (en) * 2012-09-07 2019-04-05 中兴通讯股份有限公司 Data message transmission method, PDN connection identifier processing method and device
CN103491105B (en) * 2013-10-10 2017-04-12 成都达信通通讯设备有限公司 Multi-APN channel management method for multi-APN network concurrent networking
CN114501679A (en) * 2020-10-26 2022-05-13 中国移动通信有限公司研究院 Data transmission method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730142A (en) * 2009-06-30 2010-06-09 中兴通讯股份有限公司 Establishment method of multi-packet data network connection and device
CN101931591A (en) * 2010-08-30 2010-12-29 华为终端有限公司 Method and device for sharing data link by a plurality of grouped data services
US20160316496A1 (en) * 2013-12-02 2016-10-27 Telefonaktiebolaget Lm Ericsson (Publ) IP Address Assignment For a UE in 3GPP
CN114641047A (en) * 2020-12-16 2022-06-17 海能达通信股份有限公司 APN switching method in LTE network and related device
CN115396510A (en) * 2022-08-12 2022-11-25 西安广和通无线通信有限公司 Communication method and communication module

Also Published As

Publication number Publication date
CN115396510A (en) 2022-11-25
CN115396510B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
US10779195B2 (en) Information transmission method and apparatus
US11277313B2 (en) Data transmission method and corresponding device
EP4009593A1 (en) Data transmission method and apparatus, network card and storage medium
WO2023000935A1 (en) Data processing method, network element device, and readable storage medium
CN113242293B (en) UPF equipment, data processing and capacity expansion method and device
WO2022033345A1 (en) Pdu session establishment method, terminal device, and chip system
WO2019062830A1 (en) Method and device for generating example service topology
WO2024032450A1 (en) Communication method and communication module
WO2020034965A1 (en) Message transmission method, device, and storage medium
WO2019000866A1 (en) Data processing method and internet of things (iot) gateway
WO2018233446A1 (en) Data transmission method, apparatus and system, network element, storage medium and processor
KR20170013332A (en) Openflow communication method, system, controller, and service gateway
WO2023124309A1 (en) Cloud native upf signaling plane load balancing selection method and system
WO2022105807A1 (en) Service instance deployment method, cross-domain mutual access channel establishment method and related apparatus
CN112968965B (en) Metadata service method, server and storage medium for NFV network node
US8924486B2 (en) Method and system for aggregating communications
US10887236B2 (en) Method, network interface card, and computer program product for load balance
US20220377820A1 (en) Detection and triggering for ue-to-ue p2p traffic flow routing optimization
US20200137726A1 (en) Communications device and communication method
KR20220053383A (en) Interworking support device and interworking support method for nf service
WO2019096117A1 (en) Message sending method and device, policy sending method and device, storage medium, and processor
CN112019645B (en) TOE-based network address management method and device
CN115208739B (en) Cross-multi-network-area docking method and method for docking one-way network areas in safe operation and maintenance areas
US20230269575A1 (en) Base station device and method for operating base station device
US20230199035A1 (en) Communication system, communication method, and non-transitory storage medium storing program

Legal Events

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

Ref document number: 23851671

Country of ref document: EP

Kind code of ref document: A1