Search

CN-122001709-A - Method, device, equipment, storage medium and program product for processing message

CN122001709ACN 122001709 ACN122001709 ACN 122001709ACN-122001709-A

Abstract

The application discloses a method, a device, equipment, a storage medium and a program product for processing a message, which are applied to the technical field of communication. The method comprises the steps of receiving a data message sent by electronic equipment through a virtual extended local area network VXLAN tunnel, wherein the data message carries a virtual network identifier VNI of the electronic equipment, determining whether to provide popup service for the electronic equipment according to the VNI, generating a popup message according to the data message when determining to provide popup service for the electronic equipment, and sending the popup message to a popup server so that the popup server provides popup service for the electronic equipment based on the popup message. The method can effectively avoid unnecessary resource consumption caused by invalid forwarding of the data message under the condition that the popup window service is not provided for the electronic equipment, and improves the processing efficiency of the cloud gateway and the popup window server to the network session.

Inventors

  • WU QI
  • YIN BIN
  • LIU WENBIN

Assignees

  • 中移(杭州)信息技术有限公司
  • 中国移动通信集团有限公司

Dates

Publication Date
20260508
Application Date
20241108

Claims (15)

  1. 1. A method for processing a message, which is applied to a cloud gateway, the method comprising: Receiving a data message sent by electronic equipment through a virtual extension local area network (VXLAN) tunnel, wherein the data message carries a Virtual Network Identifier (VNI) of the electronic equipment, and the data message is determined based on service data of the electronic equipment; Determining whether to provide popup services to the electronic device according to the VNI; under the condition that the popup service is provided for the electronic equipment, generating a popup message according to the data message; And sending the popup message to a popup server so that the popup server provides popup service for the electronic equipment based on the popup message.
  2. 2. The method of claim 1, wherein the data message comprises N sub-messages, and wherein the generating a pop message according to the data message comprises: carrying out service type identification on the N sub-messages to obtain the service type of each sub-message in the N sub-messages; and under the condition that the N sub-messages comprise a first sub-message, generating a popup message according to the first sub-message, wherein the service type of the first sub-message is a first service type, and the first service type belongs to the service type authorized to receive the popup service.
  3. 3. The method of claim 2, wherein the first sub-message includes M first sub-messages, and wherein the generating a popup message according to the first sub-messages includes: Determining a target sub-message from the M first sub-messages; and determining a popup message according to the target sub-message.
  4. 4. The method according to claim 2, wherein after the service type identification is performed on the N sub-messages to obtain the service type of each sub-message in the N sub-messages, the method further comprises: And under the condition that the N sub-messages comprise a second sub-message, sending the second sub-message to the Internet service corresponding to the second sub-message, wherein the service type of the second sub-message is a second service type, and the second service type belongs to the service type of unauthorized receiving popup window service.
  5. 5. The method of claim 1, wherein the determining whether to provide popup services to the electronic device according to the VNI comprises: According to first association information of preset VNI and popup state information, popup state information associated with the VNI is obtained, and the popup state information is used for representing whether popup service is provided for the electronic equipment or not; and determining whether to provide popup service for the electronic equipment according to the popup state information.
  6. 6. The method of claim 5, wherein determining whether to provide a popup service to the electronic device based on the popup status information comprises: Determining to provide a popup service to the electronic device if the popup state information includes a first identifier; And if the popup status information comprises the second identifier, determining that popup service is not provided to the electronic device.
  7. 7. The method of claim 5, wherein the method further comprises: receiving second association information of preset VNI and popup window state information sent by a management terminal; And replacing the first association information with the second association information under the condition that the second association information and the first association information are failed to be matched.
  8. 8. The method of claim 3, wherein determining a pop message from the target sub-message comprises: Mapping quintuple information corresponding to the VNI carried by the target sub-message with third association information of preset VNI and Internet protocol address information based on the VNI to obtain source address conversion SNAT session information, wherein the SNAT session information comprises the quintuple information and target Internet protocol address information; And generating the popup message based on the SNAT session information and the target sub-message, wherein the popup message carries the SNAT session information, so that the popup server determines a VNI corresponding to the popup message based on the SNAT session information, and provides popup service for electronic equipment corresponding to the VNI.
  9. 9. The method according to claim 4, wherein the method further comprises: acquiring a first transmission priority corresponding to the first sub-message and a second transmission priority corresponding to the second sub-message under the condition that the data message comprises the first sub-message and the second sub-message, wherein the first transmission priority is higher than the second transmission priority; The sending the popup message to the popup server includes: transmitting the popup message to the popup server based on the first transmission priority; The sending the second sub-packet to the internet service corresponding to the second sub-packet includes: and after the popup message is sent, sending the second sub-message to the Internet service corresponding to the second sub-message based on the second sending priority.
  10. 10. The method according to claim 1, wherein the method further comprises: receiving a popup cancellation request sent by a management end, wherein the popup cancellation request carries the VNI; Acquiring popup state information associated with a preset VNI (virtual network interface) according to the associated information of the VNI and the popup state information; And converting the popup state information from a first identifier to a second identifier, wherein the first identifier is used for representing that popup service is provided for the electronic equipment, and the second identifier is used for representing that popup service is not provided for the electronic equipment.
  11. 11. The method of claim 1, wherein after determining whether to provide popup services to the electronic device according to the VNI, the method further comprises: and sending the data message to the Internet service corresponding to the data message under the condition that the popup window service is not provided for the electronic equipment.
  12. 12. A device for processing a message, which is applied to a cloud gateway, the device comprising: The first receiving module is used for receiving a data message sent by the electronic equipment through a virtual extension local area network VXLAN tunnel, wherein the data message carries a virtual network identifier VNI of the electronic equipment, and the data message is determined based on service data of the electronic equipment; the determining module is used for determining whether to provide popup service for the electronic equipment according to the VNI; The generation module is used for generating a popup message according to the data message under the condition that the popup service is provided for the electronic equipment; And the first sending module is used for sending the popup message to a popup server so that the popup server provides popup service for the electronic equipment based on the popup message.
  13. 13. An electronic device comprising a processor and a memory storing computer program instructions; The method of message processing according to any of claims 1-11 when said processor executes said computer program instructions.
  14. 14. A computer readable storage medium, having stored thereon computer program instructions which, when executed by a processor, implement a method of message processing according to any of claims 1-11.
  15. 15. A computer program product comprising a computer program which, when executed by a processor, performs the method of message processing according to any of claims 1 to 11.

Description

Method, device, equipment, storage medium and program product for processing message Technical Field The present application belongs to the field of communication technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for processing a message. Background The popup service is a service for providing information pushing services to users in the form of popup message windows when the users browse webpage contents in electronic equipment, and the services include, but are not limited to, advertisements, news and the like. In the related art, the service flow of the popup service generally includes that after receiving a data packet sent by an electronic device, a cloud gateway forwards the data packet to a popup service node communicatively connected to the cloud gateway, and the popup service node provides the popup service for the electronic device. However, the popup service node needs to perform operations of identifying the network session type in the data packet, forwarding the data packet corresponding to the non-popup network session, providing the popup service, and the like, which results in low processing efficiency of the network session. Disclosure of Invention The embodiment of the application provides a method, a device, equipment, a storage medium and a program product for processing a message, which can improve the processing efficiency of a network session. In a first aspect, an embodiment of the present application provides a method for processing a message, which is applied to a cloud gateway, where the method for processing a message includes: Receiving a data message sent by electronic equipment through a virtual extension local area network (VXLAN) tunnel, wherein the data message carries a Virtual Network Identifier (VNI) of the electronic equipment, and the data message is determined based on service data of the electronic equipment; Determining whether to provide popup services to the electronic device according to the VNI; under the condition that the popup service is provided for the electronic equipment, generating a popup message according to the data message; And sending the popup message to a popup server so that the popup server provides popup service for the electronic equipment based on the popup message. In a second aspect, an embodiment of the present application provides a device for processing a message, where the device is applied to a cloud gateway, and the device includes: The first receiving module is used for receiving a data message sent by the electronic equipment through a virtual extension local area network VXLAN tunnel, wherein the data message carries a virtual network identifier VNI of the electronic equipment, and the data message is determined based on service data of the electronic equipment; the determining module is used for determining whether to provide popup service for the electronic equipment according to the VNI; The generation module is used for generating a popup message according to the data message under the condition that the popup service is provided for the electronic equipment; And the first sending module is used for sending the popup message to a popup server so that the popup server provides popup service for the electronic equipment based on the popup message. In a third aspect, an embodiment of the present application provides an electronic device, where the device includes a processor and a memory storing computer program instructions, and where the processor executes the computer program instructions to implement a method for processing a message according to any one of the first aspects. In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method of message processing according to any of the first aspects. In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement a method of message processing as in any of the first aspects. According to the method, the device, the equipment, the storage medium and the program product for processing the message, when the cloud gateway receives the data message transmitted by the electronic equipment through the virtual extension local area network VXLAN tunnel, the virtual network identifier VNI corresponding to the electronic equipment can be accurately identified. Next, it is assessed by the VNI whether or not to provide a popup service to the electronic device. And generating a popup message under the condition that the popup service is determined to be provided for the electronic equipment. And then sending a popup message to the popup server. Therefore, the cloud gateway triggers the generation of the popup message only under the condition that popup service is provide