Publish-subscribe method and publish-subscribe apparatus

WO2026123314A1PCT designated stage Publication Date: 2026-06-18HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-12-12
Publication Date
2026-06-18

Smart Images

  • Figure CN2024138908_18062026_PF_FP_ABST
    Figure CN2024138908_18062026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a publish-subscribe method and a publish-subscribe apparatus. The method comprises: a first network element receiving a first request message from a subscription terminal, wherein the first request message is used for requesting a subscription to first subscription content; identifying an intent of the first subscription content; and on the basis of the intent, sending second subscription content to the subscription terminal, wherein the second subscription content is related to the first subscription content. The solution provided in the present application can improve the reliability of the subscription terminal when receiving subscribed content.
Need to check novelty before this filing date? Find Prior Art

Description

A publish-subscribe method and publish-subscribe apparatus Technical Field

[0001] This application relates to the field of communications, and more particularly to a publish-subscribe method and publish-subscribe apparatus. Background Technology

[0002] Currently, publishing terminals and subscribing terminals communicate through a server deployed in between. After the server receives a request message from a subscribing terminal, when the server receives a published message from a publishing terminal, it searches the "subscription tree" based on the topic name in the published message to identify the subscribing terminal. However, in some cases, the topic name in the published message may not match the content requested by the subscribing terminal, and the server will not send the subscription content to the subscribing terminal. As a result, the subscribing terminal cannot receive the requested subscription content, leading to low reliability. Summary of the Invention

[0003] This application provides a publish-subscribe method and a publish-subscribe apparatus, which can improve the reliability of a subscription terminal receiving subscribed content.

[0004] Firstly, a publish-subscribe method is provided, which can be applied to the network side, such as the network or a communication module within the network, or circuits or chips responsible for communication functions within the network (such as modem chips, also known as baseband chips, or system-on-chip (SoC) chips or system-in-package (SIP) chips containing modem cores). Taking the application of this method to a first network element as an example, in this method, the first network element receives a first request message from a subscribing terminal, the first request message being used to request subscription to first subscription content; identifies the intent of the first subscription content; and sends second subscription content to the subscribing terminal according to the intent, the second subscription content being related to the first subscription content.

[0005] In this embodiment, after receiving the first request message, the first network element can identify the intent of the first subscription content requested in the first request message, and send second subscription content to the subscription terminal according to the identified intent. This second subscription content is related to the first subscription content. In other words, when the information published by the publishing terminal does not include the first subscription content, the first network element can send the second subscription content related to the first subscription content to the subscription terminal, so that the subscription terminal can receive the requested content. Compared with the current situation where the information published by the publishing terminal and the subscription content requested by the subscription terminal do not match, resulting in the subscription terminal being unable to receive the subscribed content, this application can improve the reliability of the first network element sending subscription content to the subscription terminal, thereby improving the subscription experience of the subscription terminal.

[0006] In conjunction with the first aspect, in one possible implementation, the first request message includes at least one of the following parameters: at least one first keyword, subscription rule, identifier (ID), validity period, and listening address.

[0007] In conjunction with the first aspect, in one possible implementation, identifying the intent of the first subscription content includes: identifying the intent based on at least one first keyword; sending the second subscription content to the subscription terminal based on the intent includes: sending the second subscription content to the subscription terminal based on the intent and subscription rules.

[0008] Since the first network element identifies the intent of the first request message to request the first subscription content based on at least one keyword in the first request message, and the at least one keyword is the main core content requested by the first request message, the accuracy of the intent identified by the first network element can be improved. As a result, the second subscription content sent by the first network element to the subscription terminal is more relevant to the first subscription content, which further helps to improve the subscription experience of the subscription terminal.

[0009] In conjunction with the first aspect, in one possible implementation, the subscription rules include the degree of relevance between the second subscription content and the first subscription content, and / or, at least one first keyword satisfies a preset relationship.

[0010] When the subscription rules include the relevance between the second subscription content and the first subscription content, and / or at least one keyword satisfies a preset relationship, the first network element can specifically send the second subscription content to the subscription terminal according to the intent, the relevance between the second subscription content and the first subscription content, and / or at least one keyword satisfies a preset relationship. In this way, the higher the relevance between the second subscription content sent by the first network element to the subscription terminal and the first subscription content, the better the subscription experience of the subscription terminal will be.

[0011] In conjunction with the first aspect, in one possible implementation, when at least one first keyword includes a first keyword, the preset relationship includes matching with a first keyword; or, when at least one first keyword includes multiple first keywords, the preset relationship includes matching with some or all of the multiple first keywords.

[0012] In this embodiment of the application, when the number of first keywords is different, the preset relationship may be different. The first network element can determine the second subscription content according to the specific preset relationship, thereby improving the relevance between the second subscription content and the first subscription content. In this way, the second subscription content sent by the first network element to the subscription terminal is more in line with the content it requests to subscribe to, which is conducive to improving the subscription experience of the subscription terminal.

[0013] In conjunction with the first aspect, in one possible implementation, sending the second subscription content to the subscription terminal according to the intent includes: sending the second subscription content to the subscription terminal within a valid duration according to the intent.

[0014] In this embodiment, the first network element can send the second subscription content to the subscription terminal within the valid duration according to its intent. This is beneficial for the subscription terminal to receive the requested subscription content within the valid duration and can prevent the subscription terminal from not receiving the requested subscription content for a long time while waiting continuously, thereby improving the subscription experience of the subscription terminal.

[0015] In conjunction with the first aspect, in one possible implementation, the method further includes: receiving feedback information from the subscribing terminal, the feedback information being used to indicate whether the second subscribed content conforms to or does not conform to the content requested by the first request message.

[0016] In this way, after receiving feedback information, the first network element can understand the satisfaction of the subscribing terminal with the received second subscription content. This is beneficial for the first network element to update the matching model (which is the model by which the first network element matches the intent with the information published by the publishing terminal). This, in turn, is beneficial for the first network element to send subscription content that is more in line with the request to the subscribing terminal, thereby improving the experience of the subscribing terminal.

[0017] In conjunction with the first aspect, in one possible implementation, the method further includes: updating the matching model when feedback information indicates that the second subscription content does not conform to the content requested by the first request message; the matching model being a model of the first network element matching the intent and the information published by the publishing terminal; and sending the third subscription content to the subscribing terminal according to the intent and the updated matching model, wherein the relevance of the third subscription content to the first subscription content is higher than that of the second subscription content and the first subscription content.

[0018] Since the third subscription content sent by the first network element to the subscription terminal is more relevant to the first subscription content, the resent third subscription content may be more in line with the subscription content requested by the subscription terminal. This is beneficial for the subscription terminal to receive content that is more in line with its requested subscription, thereby improving the subscription terminal's experience.

[0019] In conjunction with the first aspect, in one possible implementation, the method further includes: receiving a second request message from a subscription terminal, the second request message being used to request that at least one first keyword be modified to at least one second keyword; identifying the intent of the first subscription content, including: re-identifying the intent of the first subscription content based on at least one second keyword; the method further includes: sending fourth subscription content to the subscription terminal based on the re-identified intent, the fourth subscription content having a higher relevance to the first subscription content than the second subscription content has to the first subscription content.

[0020] Since the fourth subscription content is more relevant to the first subscription content than the second subscription content, the fourth subscription content sent by the first network element to the subscription terminal is more in line with the subscription content requested by the subscription terminal. This is beneficial for the subscription terminal to receive content that is more in line with its requested subscription, thereby improving the subscription terminal's experience.

[0021] In conjunction with the first aspect, in one possible implementation, the method further includes: receiving a third request message from a subscribing terminal, the third request message being used to request modification or deletion of at least one parameter of the first request message, or to delete the first request message; modifying or deleting at least one parameter, or deleting the first request message, based on the third request message.

[0022] In this way, when the first network element receives the third request message, it can modify or delete it according to the third request message. When the first network element matches the first request message with the information published by the publishing terminal, it will help increase the probability of the first network element matching successfully, so as to match the content that is more in line with the subscription terminal's request for subscription.

[0023] In conjunction with the first aspect, in one possible implementation, the method further includes: receiving publishing information from the publishing terminal; and sending second subscription content to the subscribing terminal according to the intent, including: sending the second subscription content to the subscribing terminal according to the intent and the publishing information.

[0024] In this embodiment, after receiving the publishing information, the first network element can send the second subscription content to the subscription terminal according to the intent and the publishing information. Since the publishing information received by the first network element is uncertain, the first network element tries to match the publishing information (i.e. the second subscription content) that is highly relevant to the intent and send it to the subscription terminal. As a result, the second subscription content received by the subscription terminal is highly relevant to the requested content, which is beneficial to improving the experience of the subscription terminal.

[0025] In conjunction with the first aspect, in one possible implementation, sending the second subscription content to the subscribing terminals based on the intent and publication information includes: when there are multiple subscribing terminals, determining multiple second subscription contents by iterating through the intents in the first request messages sent by the multiple subscribing terminals based on the publication information; and sending the corresponding second subscription content to each of the multiple subscribing terminals.

[0026] In this embodiment of the application, the first network element can determine multiple second subscription contents by traversing the intents in multiple first request messages based on the published information, and send the corresponding subscription contents to each subscription terminal, thereby facilitating each subscription terminal to receive the content it has requested to subscribe to, and thus improving the experience of the subscription terminal.

[0027] In conjunction with the first aspect, in one possible implementation, the method further includes: vectorizing the published information and the intent; and sending the second subscription content to the subscribing terminal based on the intent and the published information, including: sending the second subscription content to the subscribing terminal based on the vectorized intent and the vectorized published information.

[0028] In this embodiment, when the first network element receives information published by the publishing terminal, it can vectorize the published information and the intent identified based on the first subscribed content, thereby obtaining two sets of data. The first network element matches these two sets of data and sends the published information with higher relevance to the corresponding subscribed terminal. This can improve the relevance between the second subscribed content and the first subscribed content, thus helping the subscribed terminal receive content that better matches its requested subscription.

[0029] In conjunction with the first aspect, in one possible implementation, the method further includes: tokenizing and / or filtering the published information, wherein tokenizing includes converting the published information, and the conversion includes format conversion and / or text conversion; and filtering includes filtering duplicate information and / or unreasonable information in the published information.

[0030] In this embodiment, since the first network element filters out duplicate information, the storage space of the first network element can store more different published information. When different subscription terminals send the first subscription content to the first network element with different intentions, the relevance of the second subscription content sent by the first network element to different subscription terminals is higher. As a result, the second subscription content received by each subscription terminal is more in line with the subscription content it requests, which is beneficial to improving the experience of the subscription terminal.

[0031] Meanwhile, because the first network element filters out unreasonable information, when a subscription terminal sends a first request message to the first network element to request unreasonable information, especially for some private information or politically sensitive information, the first network element will not send unreasonable information to the subscription terminal, thereby preventing the leakage of unreasonable information and protecting the security of unreasonable information.

[0032] In conjunction with the first aspect, in one possible implementation, sending the second subscription content to the subscribing terminal based on the intent and the published information includes: when the published information does not include the intent, sending a first request message to the second network element, or sending a fourth request message to the second network element, the fourth request message being generated based on the first request message; receiving at least a portion of the subscription content from the second subscription content sent by the second network element; and sending the second subscription content to the subscribing terminal.

[0033] This improves the reliability of the first network element sending the second subscription content to the subscription terminal, thereby enhancing the reliability of the subscription terminal receiving the second subscription content. Furthermore, in this implementation, the second subscription content may be more relevant to the first subscription content, better matching the content requested by the subscription terminal, thus further improving the user experience.

[0034] Secondly, a subscription and publication method is provided, which can be applied to the terminal side, such as a terminal or a communication module within a terminal, or a circuit or chip in the terminal responsible for communication functions (such as a modem chip, also known as a baseband chip, or a system-on-a-chip or system-in-package chip containing a demodulation core). Taking the application of this method to a subscription terminal as an example, the method includes: the subscription terminal sending a first request message to a first network element, the first request message being used to request subscription to a first subscription content; and receiving a second subscription content from the first network element, the second subscription content being related to the first subscription content.

[0035] In this embodiment, after the subscribing terminal sends a first request message to the first network element, the first network element can identify the intent of the first request message to request the first subscription content, and send second subscription content to the subscribing terminal according to the identified intent. This second subscription content is related to the first subscription content. In other words, when the information published by the publishing terminal does not include the first subscription content, the first network element can send the second subscription content related to the first subscription content to the subscribing terminal, so that the subscribing terminal can receive the requested content. This improves the reliability of the first network element sending subscription content to the subscribing terminal, thereby enhancing the subscription experience of the subscribing terminal.

[0036] In conjunction with the second aspect, in one possible implementation, the first request message includes at least one of the following parameters: at least one first keyword, subscription rule, identifier ID, validity period, and listening address.

[0037] In conjunction with the second aspect, in one possible implementation, the method further includes: sending feedback information to the first network element, the feedback information being used to indicate whether the second subscribed content conforms to or does not conform to the content requested by the first request message.

[0038] This allows the first network element to understand the satisfaction level of the subscribing terminal with the received second subscription content after receiving feedback information. This, in turn, helps the first network element update the matching model (which is the model by which the first network element matches the intent with the information published by the publishing terminal). Consequently, the first network element can send subscription content that is more in line with the request to the subscribing terminal, thereby improving the user experience of the subscribing terminal.

[0039] In conjunction with the second aspect, in one possible implementation, the method further includes: receiving third subscription content from the first network element, wherein the relevance of the third subscription content to the first subscription content is higher than the relevance of the second subscription content to the first subscription content.

[0040] Since the third subscription content sent by the first network element to the subscription terminal is more relevant to the first subscription content, the re-received third subscription content may be more in line with the subscription content requested by the subscription terminal. As a result, the third subscription content received by the subscription terminal is more in line with its requested subscription content, which in turn helps to improve the subscription terminal's experience.

[0041] In conjunction with the second aspect, in one possible implementation, the method further includes: sending a second request message to a first network element when feedback information indicates that the second subscription content does not conform to the content requested by the first request message; the second request message is used to request that at least one first keyword be modified to at least one second keyword; and receiving a fourth subscription content from the first network element, wherein the relevance of the fourth subscription content to the first subscription content is higher than the relevance of the second subscription content to the first subscription content.

[0042] Since the fourth subscription content is more relevant to the first subscription content than the second subscription content is to the first subscription content, the fourth subscription content received by the subscription terminal is more in line with the subscription content requested by the subscription terminal. As a result, the fourth subscription content received by the subscription terminal is more in line with its requested subscription content, which helps to improve the subscription terminal experience.

[0043] In conjunction with the second aspect, in one possible implementation, the method further includes: sending a third request message to the first network element, the third request message being used to request modification or deletion of at least one parameter of the first request message, or to delete the first request message.

[0044] This allows the first network element to modify or delete content based on the third request message after receiving it. It also allows the first network element to match the subscription content that better matches the subscription terminal's request when matching the first request message with the information published by the publishing terminal. This increases the probability of successful matching by the first network element and thus improves the user experience of the subscription terminal.

[0045] Thirdly, a publish-subscribe apparatus is provided, which has the functions described in the first aspect above. For example, the publish-subscribe apparatus includes modules, units, or means corresponding to the operations involved in the first aspect. These modules, units, or means can be implemented through software, hardware, or a combination of software and hardware. The beneficial effects are described in the first aspect and will not be repeated here. In one possible design, the publish-subscribe apparatus includes: a communication unit for receiving a first request message from a subscribing terminal, the first request message being used to request subscription to first subscription content; a processing unit for identifying the intent of the first subscription content; and the communication unit is further configured to send second subscription content to the subscribing terminal according to the intent, the second subscription content being related to the first subscription content. These units can perform the corresponding functions in the method examples of the first aspect above, as detailed in the method examples, and will not be repeated here.

[0046] In one possible implementation, the device is a publish-subscribe device (such as a first network element device). When the device is a publish-subscribe device, the communication unit can be a transceiver, or an input / output interface; the processing unit can be at least one processor. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.

[0047] In another possible implementation, the device is a chip, chip system, circuit, or communication module for a publish / subscribe device (such as a first network element device). When the device is a chip, chip system, or circuit for a publish / subscribe device, the communication unit may be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip, chip system, or circuit; the processing unit may be at least one processor, processing circuit, or logic circuit.

[0048] Fourthly, this application provides a publish-subscribe apparatus. The publish-subscribe apparatus has the functions described in the second aspect above. For example, the publish-subscribe apparatus includes modules, units, or means corresponding to the operations involved in the second aspect. These modules, units, or means can be implemented through software, hardware, or a combination of software and hardware. The beneficial effects can be found in the description of the second aspect, and will not be repeated here. In one possible design, the publish-subscribe apparatus includes: a communication unit, used by a subscribing terminal to send a first request message to a first network element, the first request message being used to request subscription to first subscription content; and receiving second subscription content from the first network element, the second subscription content being related to the first subscription content. These units can perform the corresponding functions in the method examples of the second aspect above, as detailed in the method examples, and will not be repeated here.

[0049] In one possible implementation, the device is a publish-subscribe device (such as a subscription terminal device). When the device is a publish-subscribe device, the communication unit can be a transceiver, or an input / output interface; the processing unit can be at least one processor. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.

[0050] In another possible implementation, the device is a chip, chip system, circuit, or communication module for a subscription device (such as a subscription terminal device). When the device is a chip, chip system, or circuit for a subscription device, the communication unit may be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip, chip system, or circuit; the processing unit may be at least one processor, processing circuit, or logic circuit.

[0051] Fifthly, this application provides a publish / subscribe apparatus, which includes at least one processor for executing computer programs or instructions to perform the methods described in the first to second aspects or any possible implementations of the first to second aspects. Optionally, the apparatus further includes a memory for storing the computer programs or instructions. Optionally, the apparatus further includes a communication interface coupled to the processor, which can be used to input computer programs or instructions to the processor or to output information from the processor.

[0052] In one implementation, the device is a publish-subscribe device (such as a subscription terminal device or a first network element device).

[0053] In another implementation, the device is a chip, chip system or circuit or communication module for communication equipment (such as terminal equipment or network equipment).

[0054] A sixth aspect provides a processor for executing the methods provided in the first to second aspects or any possible implementation thereof.

[0055] Unless otherwise specified, or if it does not contradict its actual function or internal logic in the relevant description, the transmission and acquisition / reception operations involved in the processor can be understood as processor output and reception, input and other operations, or as transmission and reception operations performed by radio frequency circuits and antennas. This application does not limit them in this regard.

[0056] In a seventh aspect, this application provides a computer-readable storage medium storing computer-readable instructions that, when read and executed by a computer, cause the computer to perform the methods described in the first to second aspects or any possible implementation thereof.

[0057] Eighthly, this application provides a computer program product that, when read and executed by a computer, causes the computer to perform the methods described in the first to second aspects or any possible implementation of the first to second aspects.

[0058] Ninth aspect, a chip is provided, the chip including a processor and a communication interface, the processor reading instructions from a memory through the communication interface and executing the method provided by the first aspect to the second aspect or any one of the first aspect to the second aspect.

[0059] Optionally, as one implementation, the chip also includes a memory storing computer programs or instructions, and a processor for executing the computer programs or instructions in the memory. When the computer programs or instructions are executed, the processor is used to execute the method provided by the first to second aspects or any one of the first to second aspects described above.

[0060] In a tenth aspect, a communication system is provided, the communication system including means having a method and various possible designs for implementing the first to second aspects or any possible implementation of the first to second aspects, or all possible implementations of the first to second aspects. Attached Figure Description

[0061] Figure 1 is a schematic diagram of a communication system 100 according to an embodiment of this application.

[0062] Figure 2 is a schematic diagram of a publish / subscribe method 200 provided in an embodiment of this application.

[0063] Figure 3 is a schematic diagram of another publish / subscribe method 200 provided in an embodiment of this application.

[0064] Figure 4 is a schematic diagram of a publish-subscribe method provided in an embodiment of this application.

[0065] Figure 5 is a schematic diagram of a publish / subscribe device provided in an embodiment of this application.

[0066] Figure 6 is a schematic diagram of another publish / subscribe device provided in an embodiment of this application.

[0067] Figure 7 is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0068] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0069] The technical solutions of this application embodiment can be applied to various communication systems, such as: Global System for Mobile Communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, future 5th generation (5G) system or new radio (NR) system, or communication systems that evolve after 5G. The technical solutions of this application embodiment can also be applied to satellite inter-satellite link communication systems, wireless projection systems, virtual reality (VR) communication systems, integrated access and backhaul (IAB) systems, wireless fidelity (Wi-Fi) communication systems, optical communication systems, etc., without limitation.

[0070] In the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as an "example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the term "example" is intended to present concepts in a concrete manner. In the embodiments of this application, "of," "corresponding, relevant," and "corresponding" may sometimes be used interchangeably, and it should be noted that their intended meanings are consistent unless their distinction is emphasized.

[0071] The communication systems and service scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0072] Figure 1 is a simplified schematic diagram of a system architecture applicable to embodiments of this application. As shown in Figure 1, the system architecture may include: at least one publishing terminal 11, a subscribing terminal 12, and a first network element 13. Figure 1 illustrates an example with three publishing terminals. Each publishing terminal 11 has a publishing client running on it that communicates with the first network element 13 via the Message Queuing Telemetry Transport (MQTT) protocol. The first network element 13 communicates with the subscribing client running on the subscribing terminal 12 via the MQTT protocol. At least one publishing client establishes an indirect connection with the subscribing client through topics. The publishing terminal 11 runs a publishing client that supports the MQTT protocol and can act as a message generator. The publishing terminal 11 may be a temperature sensor, humidity sensor, electricity meter, water meter, etc.

[0073] In one possible implementation, the publishing terminal 11 can directly connect to the first network element 13. In another possible implementation, the publishing terminal 11 can connect to the first network element 13 through an Internet of Things (IoT) gateway. In this case, the IoT gateway can act as a bridge to convert the protocol or data format of the messages exchanged between the publishing client running on the publishing terminal 11 and the first network element 13. Alternatively, the IoT gateway can also act as a proxy for the publishing terminal 11, enabling the publishing client running on the publishing terminal 11 to send publishing messages to the first network element 13 through the IoT gateway.

[0074] The subscription terminal 12 runs a subscription client that supports the MQTT protocol and can act as a consumer or manager of published messages. The subscription terminal 12 can be a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), laptop, etc.

[0075] The first network element 13 runs a server based on the MQTT protocol and is the main body for executing the publish-subscribe mechanism. In the specific implementation, multiple first network elements 13 can form a cluster, and multiple first network elements 13 can perform publish-subscribe interactions. That is, a network element can act as a subscriber client to send a subscription message to another network element, and after receiving a publish message, send a publish message to the subscriber terminal connected to that network element.

[0076] The first network element in this embodiment can be a device providing computing services. The first network element can be an access point (AP) in a Wi-Fi system, such as a home gateway, router, server, switch, bridge, etc.; a base station controller (BSC), base transceiver station (BTS), home base station, baseband unit (BBU); a wireless relay node, a wireless backhaul node; or an evolved node B (eNB) in a 4G system, or a next-generation eNB (ng-eNB) during the transition from 4G to 5G, or a next-generation base station (gNB) in a 5G system, or a radio access network (RAN) node implementing (partial) gNB functionality. The first network element can be a macro base station, micro base station, indoor station, relay node, donor node (also called host node), or a radio controller in a centralized radio access network (CRAN) scenario. Optionally, the first network element can also be a wearable device, a vehicle, or an in-vehicle device. For example, the access network device in vehicle-to-everything (V2X) technology can be a roadside unit (RSU). All or part of the functions of the first network element in this application can also be implemented through software functions running on hardware, or through virtualization functions instantiated on a platform (e.g., a cloud platform). The first network element in this application can also be a logical node, logical module, or software capable of implementing all or part of the functions of the first network element.

[0077] It should be understood that, in the embodiments of this application, the terminal or the first network element includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software. Furthermore, the embodiments of this application do not particularly limit the specific structure of the execution subject of the method provided in the embodiments of this application, as long as it can communicate according to the method provided in the embodiments of this application by running a program that records the code of the method provided in the embodiments of this application. For example, the execution subject of the method provided in the embodiments of this application can be a terminal device, or a functional module in the terminal device that can call and execute a program.

[0078] Furthermore, various aspects or features of this application can be implemented as methods, apparatus, or articles of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" as used in this application encompasses a computer program accessible from any computer-readable device, carrier, or medium. For example, computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical discs (e.g., compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks, or key drives, etc.).

[0079] Additionally, the various storage media described herein may represent one or more devices and / or other machine-readable storage media used for storing information. The term "machine-readable storage media" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0080] It should be understood that the methods, situations, categories, and classifications of embodiments in this application are for the convenience of description only and should not constitute a special limitation. Various methods, categories, situations, and features in embodiments can be combined without contradiction.

[0081] To facilitate understanding of the solutions in this application, the following is a brief explanation of the terms used in this application.

[0082] Intent recognition refers to a technology that automatically identifies the intent or purpose of a subscribing terminal through natural language text. Intent recognition relies on understanding the semantic information in the natural language text input by the subscribing terminal in order to more accurately send the subscribed content to the terminal.

[0083] Currently, publishing terminals and subscribing terminals communicate through a server deployed in between. After the server receives a request message from a subscribing terminal, when the server receives a published message from a publishing terminal, it sends the subscription content to the corresponding subscribing terminal based on the topic name in the published message. However, in some cases, the topic name in the published message may not match the content requested by the subscribing terminal, and the server will not send the subscription content to the subscribing terminal. As a result, the subscribing terminal cannot receive the requested subscription content, leading to low reliability.

[0084] Therefore, this application provides a publish-subscribe method that can improve the reliability of the subscription terminal receiving the subscribed content.

[0085] Figure 2 is a schematic diagram of a subscription and publication method 200 provided in an embodiment of this application. This method may include steps 210-250. Steps 210 and 250 can be executed by a subscription terminal, a module of the subscription terminal (e.g., a chip, chip system, or processor), or a logical node, logical module, or software capable of implementing all or part of the functions of the subscription terminal. For ease of description, the subscription terminal will be used as an example below. Steps 220-240 can be executed by a first network element, a module of the first network element (e.g., a chip, chip system, or processor), or a logical node, logical module, or software capable of implementing all or part of the functions of the first network element. For ease of description, the first network element will be used as an example below.

[0086] 210. Send a first request message to the first network element. The first request message is used to request subscription to the first subscription content.

[0087] In this embodiment of the application, at least one subscription terminal can send a first request message to the first network element. When at least one subscription terminal includes multiple subscription terminals, the first subscription content requested by these multiple subscription terminals can be the same or different, without limitation.

[0088] For example, taking three subscription terminals as an example, these three subscription terminals are subscription terminal 1, subscription terminal 2 and subscription terminal 3. The first subscription content requested by the first request messages sent by these three subscription terminals can be all the same or partially the same. For example, all three first request messages are used to request radio resources, or the first request messages sent by subscription terminal 1 and subscription terminal 2 are used to request radio resources and the first request message sent by subscription terminal 3 is used to request subscription to current affairs news.

[0089] For example, still using three subscription terminals, namely subscription terminal 1, subscription terminal 2, and subscription terminal 3, the first subscription content requested by the first request message sent by these three subscription terminals can be different. For example, the first request message sent by subscription terminal 1 is used to request radio resources, the first request message sent by subscription terminal 2 is used to request to subscribe to current news, and the first request message sent by subscription terminal 3 is used to request to subscribe to popular music.

[0090] In this embodiment, the first network element can be a network element with intent / semantic recognition function, such as a semantic based communication proxy (SBCP).

[0091] 220, Receive the first request message from the subscribing terminal.

[0092] The subscription terminal and the first network element can communicate via an interface, which is used only to receive subscription request messages. Alternatively, the subscription terminal and the first network element can also communicate via other general-purpose interfaces. When using general-purpose interfaces, an identifier can be used to identify the message as a subscription request message.

[0093] 230, Identify the intent behind the first subscribed content.

[0094] In this embodiment of the application, after the first network element receives the first request message sent by the subscription terminal, it can identify the intent of the first subscription content requested by the first request message. The intent of the first subscription content may include the understanding of the semantic information of the first subscription content. Therefore, the intents of different first subscription contents may be different or the same.

[0095] For example, if the first subscription content requested by the first request message 1 is radio resources, then the intention of the first subscription content is radio resources; if the first subscription content requested by the first request message 2 is radio frequency wave resources, then the intention of the first subscription content is also radio resources; if the first subscription content requested by the first request message 3 is multiple-input multiple-output (MIMO), then the intention of the first subscription content is also radio resources.

[0096] 240. Send a second subscription content to the subscription terminal according to the intent. The second subscription content is related to the first subscription content.

[0097] The second subscription content may be the same as or different from the first subscription content. This mainly depends on the information published by the publishing terminal. When the information published by the publishing terminal includes the first subscription content, the second subscription content is the same as the first subscription content; when the information published by the publishing terminal does not include the first subscription content, the second subscription content is related to the first subscription content.

[0098] In this embodiment of the application, taking the aforementioned radio resources as an example, when the first request message is used to request radio resources, radio frequency wave resources, or MIMO, and the information published by the publishing terminal includes radio resources, the first network element can send the content of the radio resources to the subscribing terminal. Compared with the current scheme where the subscribing terminal can only receive the subscription content when the first request message requests radio resources, this application can improve the reliability of the first network element sending the subscription content to the subscribing terminal.

[0099] It should be noted that the first network element can send the second subscription content to the subscribing terminal via unicast or multicast (multicast can also be called broadcast or multicast). Unicast refers to a transmission method where the destination address is a single target; in unicast transmission, the first network element can transmit the second subscription content to a single destination address. Multicast refers to a transmission method where the destination addresses are a group of targets; in multicast transmission, the first network element can transmit information to a group of destination addresses simultaneously.

[0100] 250, receiving second subscription content from the first network element.

[0101] It should be understood that before the subscription terminal and the first network element send the first request message, the first network element may send information to the subscription terminal. This information may include details of the subscription agreement, the listening address and port to which the subscription request should be sent, etc., so as to facilitate the first network element to accurately receive and identify the subscription request.

[0102] In this embodiment, after receiving the first request message, the first network element can identify the intent of the first subscription content requested in the first request message, and send second subscription content to the subscription terminal according to the identified intent. This second subscription content is related to the first subscription content. In other words, when the information published by the publishing terminal does not include the first subscription content, the first network element can send the second subscription content related to the first subscription content to the subscription terminal, so that the subscription terminal can receive the requested content. Compared with the current situation where the information published by the publishing terminal and the subscription content requested by the subscription terminal do not match, resulting in the subscription terminal being unable to receive the subscribed content, this application can improve the reliability of the first network element sending subscription content to the subscription terminal, thereby improving the subscription experience of the subscription terminal.

[0103] Optionally, in some implementations, the first request message includes at least one of the following parameters: at least one first keyword, subscription rule, identity (ID), validity period, and listening address.

[0104] The first keyword can be, for example, radio resources, current events, or popular music, as shown in the example above. The subscription rule is the rule used to indicate this subscription; specific rules are detailed below and will not be described here. The identifier can be understood as the identity verification of each subscribing terminal, used to distinguish different subscribing terminals. The validity period is the valid duration of the first request message. If the duration between the time the first request message was sent and the current time is greater than the validity period, the first request message can be considered invalid, and the first network element can delete the first request message. The listening address is the address that the subscribing terminal wishes to be notified of.

[0105] The parameters included in the first request message of this application embodiment can be stored according to a certain structure, such as a table structure, tree structure, dictionary structure, hash mapping structure, etc., without limitation. Taking a table structure as an example, Table 1 shows the parameters of multiple first request messages.

[0106] Table 1

[0107] It should be noted that the parameters and values ​​shown in Table 1 above are for illustrative purposes only and should not impose any special limitations on this application.

[0108] Optionally, in one embodiment, when the first request message includes at least one first keyword and a subscription rule, step 230 includes: identifying an intent based on at least one first keyword; and step 240 includes: sending second subscription content to the subscription terminal based on the intent and the subscription rule.

[0109] In this embodiment, the first request message includes at least one first keyword, such as radio resources, current events, or popular music as mentioned in the above example. When the first request message includes a first keyword of radio resources, the intent of the first request message to request the first content to be viewed is to request radio resources. Therefore, the first network element sends second subscription content to the subscribing terminal according to the radio resources and subscription rules. This second subscription content is related to radio resources. When the first request message includes at least one first keyword of current events, the intent of the first request message to request the first content to be viewed is to request current events. Therefore, the first network element sends second subscription content to the subscribing terminal according to the current events and subscription rules. This second subscription content is related to current events. When the first request message includes at least one first keyword of popular music, the intent of the first request message to request the first content to be viewed is to request popular music. Therefore, the first network element sends second subscription content to the subscribing terminal according to popular music and subscription rules. This second subscription content is related to popular music.

[0110] In this embodiment, the first request message may include at least one first keyword, which can be multiple first keywords, such as radio resources, frequency domain resources; current affairs news, aviation; popular music, Chinese, etc. When the first request message includes multiple first keywords such as radio resources and frequency domain resources, the intent of the first subscription content requested by the first request message is to request radio resources and frequency domain resources. Therefore, the first network element sends second subscription content to the subscription terminal according to the radio resources, frequency domain resources, and subscription rules. This second subscription content is related to frequency domain resources. When the first request message includes multiple first keywords such as current affairs news and aviation, the intent of the first request content requested by the first request message is to request current affairs news and aviation news. Therefore, the first network element sends second subscription content to the subscription terminal according to the current affairs news, aviation news, and subscription rules. This second subscription content is related to current affairs news and aviation news. When the first request message includes multiple first keywords such as "popular music" and "Chinese", the intent of the first request message to request the first content to be viewed is to request "popular music" and "Chinese". Thus, the first network element sends the second subscription content to the subscription terminal according to the popular music, Chinese and subscription rules. The second subscription content is related to popular music and Chinese.

[0111] In this embodiment, the first network element can identify the intent based on at least one first keyword, and send the second subscription content to the subscription terminal according to the identified intent and subscription rules. Since the first network element identifies the intent of the first request message for requesting the first subscription content based on at least one first keyword in the first request message, and the at least one first keyword is the main core content requested by the first request message, the accuracy of the intent identified by the first network element can be improved. Thus, the second subscription content sent by the first network element to the subscription terminal is more relevant to the first subscription content, which further helps to improve the subscription experience of the subscription terminal.

[0112] As mentioned above, the first network element can send the second subscription content to the subscribing terminal according to the intent and subscription rules. The subscription rules will be explained in detail below.

[0113] Optionally, in one embodiment, the subscription rules include the degree of relevance between the second subscription content and the first subscription content, and / or, at least one first keyword satisfies a preset relationship.

[0114] The relevance between the second and first subscription content can be set using a threshold, such as 100%, 80%, or 50%. When the relevance is 100%, the first network element can perform a precise match when matching its intent with the information published by the publishing terminal, resulting in second subscription content that almost perfectly matches the content requested in the first request message sent by the subscription terminal. When the relevance is 80% or 50%, the first network element can perform a fuzzy match, resulting in second subscription content that partially matches the content requested in the first request message sent by the subscription terminal.

[0115] Optionally, in one embodiment, when at least one first keyword includes one first keyword, the preset relationship includes matching with one first keyword; or, when at least one first keyword includes multiple first keywords, the preset relationship includes matching with some or all of the multiple first keywords.

[0116] Scenario 1: At least one primary keyword includes a primary keyword

[0117] (1) For example, if the first keyword is radio resource, the preset relationship can include matching with the radio resource. The first network element can match the radio resource with the information published by the publishing terminal. If the information published by the publishing terminal includes the content of the radio resource, the first network element can send the content of the radio resource to the corresponding subscription terminal. If the information published by the publishing terminal does not include the radio resource, the first network element can send the first request message to another network element. Please refer to the relevant content below for details.

[0118] (2) For example, if the first keyword is current news, the preset relationship can include matching with the current news. The first network element can match the current news with the information published by the publishing terminal. If the information published by the publishing terminal includes the content of the current news, the first network element can send the content of the current news to the corresponding subscription terminal. If the information published by the publishing terminal does not include the current news, the first network element can send the first request message to another network element. Please refer to the relevant content below for details.

[0119] (3) For example, if the first keyword is popular music, the preset relationship can include matching with popular music. The first network element can match popular music with the information published by the publishing terminal. If the information published by the publishing terminal includes popular music content, the first network element can send the popular music content to the corresponding subscription terminal. If the information published by the publishing terminal does not include popular music, the first network element can send the first request message to another network element. Please refer to the relevant content below for details.

[0120] Scenario 2: At least one primary keyword includes multiple primary keywords

[0121] (1) For example, if the first keyword includes radio resources and frequency domain resources, then the preset relationship may include matching with the radio resources and / or frequency domain resources. When the preset relationship is matching with radio resources, the specific process is similar to (1) in the above case one, and will not be repeated. When the preset relationship is matching with frequency domain resources, the first network element can match the frequency domain resources with the information published by the publishing terminal. If the information published by the publishing terminal includes the content of the frequency domain resources, the first network element can send the content of the frequency domain resources to the corresponding subscription terminal; if the information published by the publishing terminal does not include the frequency domain resources, the first network element can send the first request message to another network element. For details, please refer to the relevant content below. When the preset relationship is matching with both radio resources and frequency domain resources, the first network element can match the frequency domain resources with the information published by the publishing terminal. The specific process is similar to that of the preset relationship matching with frequency domain resources, and will not be repeated.

[0122] (2) For example, if the first keyword includes current events and aviation, then the preset relationship can include matching with the current events and / or aviation. When the preset relationship includes matching with the current events, the specific process is similar to (2) in case one above, and will not be repeated. When the preset relationship includes matching with the aviation, the first network element can match the aviation and the information published by the publishing terminal. If the information published by the publishing terminal includes aviation news, the first network element can send the aviation news to the corresponding subscription terminal; if the information published by the publishing terminal does not include aviation news, the first network element can send the first request message to another network element. Please refer to the relevant content below for details. When the preset relationship includes matching with both current events and aviation, the specific process is similar to the preset relationship including matching with the aviation, and will not be repeated.

[0123] (3) For example, if the first keyword is "popular music" and "Chinese," then the preset relationship can include matching with "popular music" and / or "Chinese." When the preset relationship includes matching with "popular music," the specific process is similar to (3) in case one above, and will not be repeated. When the preset relationship includes matching with "popular music" and "Chinese," the first network element can match the Chinese pop music with the information published by the publishing terminal. If the information published by the publishing terminal includes the content of Chinese pop music, then the first network element can send the content of Chinese pop music to the corresponding subscription terminal; if the information published by the publishing terminal does not include Chinese pop music, then the first network element can send the first request message to another network element. When the preset relationship includes matching with "Chinese," the first network element can match the Chinese with the information published by the publishing terminal. If the information published by the publishing terminal includes the content of Chinese, then the first network element can send the content of Chinese to the corresponding subscription terminal; if the information published by the publishing terminal does not include Chinese, then the first network element can send the first request message to another network element. Please refer to the relevant content below for details.

[0124] In this embodiment of the application, when the number of first keywords is different, the preset relationship may be different. The first network element can determine the second subscription content according to the specific preset relationship, thereby improving the relevance between the second subscription content and the first subscription content. In this way, the second subscription content sent by the first network element to the subscription terminal is more in line with the content it requests to subscribe to, which is conducive to improving the subscription experience of the subscription terminal.

[0125] As noted above, the first request message may include a valid duration. Optionally, in one embodiment, step 240 includes sending the second subscription content to the subscribing terminal within the valid duration according to the intent.

[0126] As described above, the effective duration in this embodiment is the effective duration of the first request message. If the first network element does not send the second subscription content to the subscribing terminal within the effective duration, it indicates that the first request message has expired, and the first network element can delete the first request message. When the subscribing terminal does not receive the second subscription content within the effective duration, it can send the first request message to the first network element again. The parameters included in the resent first request message can change, such as changing the radio resources in the above embodiment to radio frequency wave resources; or, the subscribing terminal can also send the first request message to another network element (such as the second network element). The published information received by the other network element may include the first subscription content requested by the first request message. Please refer to the relevant content below for details.

[0127] It should be understood that the validity period of the first request message sent by different subscription terminals may be equal or unequal; the first request messages sent by the same subscription terminal in different instances may be equal or unequal; there are no restrictions.

[0128] For example, the first network element receives first request messages from three subscribing terminals, namely subscribing terminal 1, subscribing terminal 2, and subscribing terminal 3. The validity duration of the first request message 1 sent by these three subscribing terminals can all be 1231214 seconds; or, the validity duration of the first request message 1 sent by subscribing terminal 1 can be 1231214 seconds, the validity duration of the first request message 2 sent by subscribing terminal 2 can be 12312860 seconds, and the validity duration of the first request message 3 sent by subscribing terminal 3 can be 1245264 seconds.

[0129] For example, the first network element receives two first request messages sent by the subscription terminal 1. The validity duration of the two first request messages sent by the subscription terminal 1 can both be 1231214 seconds; or, the validity duration of the first request message sent by the subscription terminal 1 for the first time is 1231214 seconds, and the validity duration of the first request message sent by the subscription terminal 1 for the second time is 12312860 seconds.

[0130] In this embodiment, the first network element can send the second subscription content to the subscription terminal within the valid duration according to its intent. This is beneficial for the subscription terminal to receive the requested subscription content within the valid duration and can prevent the subscription terminal from not receiving the requested subscription content for a long time while waiting continuously, thereby improving the subscription experience of the subscription terminal.

[0131] When the subscription terminal receives the second subscription content sent by the first network element, the second subscription content may or may not conform to the content requested by the subscription terminal. Therefore, in some embodiments, as shown in FIG3, method 200 further includes steps 260 to 270.

[0132] 260. The subscribing terminal sends feedback information to the first network element, indicating whether the second subscribed content conforms to or does not conform to the content requested by the first request message. 270. The first network element receives the feedback information from the subscribing terminal.

[0133] For example, when a first request message requests subscription to radio resources, the first network element, upon receiving the first request message, identifies the subscription terminal's intention to subscribe to the radio resources as a request for radio resources. If the information published by the publishing terminal includes radio resource content, the first network element can send the radio resource content to the subscription terminal. After receiving the radio resource content, the subscription terminal can send feedback information to the first network element, indicating that the second subscription content conforms to the content requested by the first request message. If the information published by the publishing terminal does not include radio resource content, the first network element may send other resource content to the subscription terminal, such as electrical resource content. After receiving the electrical resource content, the subscription terminal can send feedback information to the first network element, indicating that the second subscription content does not conform to the content requested by the first request message.

[0134] For example, when a first request message requests subscription to current events news, the first network element, upon receiving the first request message, identifies the subscription terminal's intention to subscribe to current events news as a news request. If the information published by the publishing terminal includes current events news content, the first network element can send the current events news content to the subscription terminal. After receiving the current events news content, the subscription terminal can send feedback information to the first network element, which indicates that the second subscription content conforms to the content requested by the first request message. If the information published by the publishing terminal does not include current events news content, the first network element may send other news content to the subscription terminal, such as entertainment news content. After receiving the entertainment news content, the subscription terminal can send feedback information to the first network element, which indicates that the second subscription content does not conform to the content requested by the first request message.

[0135] For example, when a first request message requests to subscribe to popular music, the first network element, upon receiving the first request message, identifies the subscription terminal's intention to subscribe to popular music as a music request. If the information published by the publishing terminal includes popular music content, the first network element can send the popular music content to the subscription terminal. After receiving the popular music content, the subscription terminal can send feedback information to the first network element, indicating that the second subscription content conforms to the content requested by the first request message. If the information published by the publishing terminal does not include popular music content, the first network element may send other music content to the subscription terminal, such as classical music content. After receiving the classical music content, the subscription terminal can send feedback information to the first network element, indicating that the second subscription content does not conform to the content requested by the first request message.

[0136] It is understood that the feedback information in this embodiment is not an confirmation from the subscribing terminal of receiving the second subscription content, but rather a confirmation of the first network element's understanding of the first subscription content, or whether the second subscription content matches the subscribing terminal's interests. The feedback information sent by the subscribing terminal to the first network element can be implemented through acknowledgment (ACK) or non-acknowledgment (NACK) information. When the subscribing terminal confirms that the second subscription content matches the requested subscription content, the subscribing terminal can send ACK information to the first network element; when the subscribing terminal confirms that the second subscription content does not match the requested subscription content, the subscribing terminal can send NACK information to the first network element.

[0137] In this embodiment, after receiving the second subscription content, the subscription terminal can send feedback information to the first network element to indicate whether the second subscription content conforms to or does not conform to the content requested by the first request message. After receiving the feedback information, the first network element can understand the subscription terminal's satisfaction with the received second subscription content, which is beneficial for the first network element to update the matching model (the matching model is the model by which the first network element matches the intent with the information published by the publishing terminal). This is beneficial for the first network element to send subscription content that is more in line with the request to the subscription terminal, thereby improving the subscription terminal's experience.

[0138] When the feedback information indicates that the second subscription content does not conform to the content requested by the first request message, the first network element can resend the subscription content to the subscription terminal based on the first request message. This can be achieved in the following ways.

[0139] Method 1:

[0140] Optionally, in one embodiment, method 200 further includes: updating the matching model when feedback information indicates that the second subscription content does not conform to the content requested by the first request message; the matching model being a model of the first network element matching the intent and the information published by the publishing terminal; and sending third subscription content to the subscription terminal according to the intent and the updated matching model, wherein the relevance of the third subscription content to the first subscription content is higher than the relevance of the second subscription content to the first subscription content. Accordingly, the subscription terminal receives the third subscription content.

[0141] The matching model in this embodiment is a model of matching the intent of the first network element with the information published by the publishing terminal. This can be understood as follows: when the first network element sends the second subscription content to the subscribing terminal based on the intent and the published information, it can be done in conjunction with the matching model. The matching model can include artificial intelligence (AI) models, such as neural network models, long short-term memory network models, etc.

[0142] The updated matching model in this application embodiment can be understood as updating the parameters of the currently used matching model, or replacing the currently used matching model.

[0143] For example, assuming the current matching model is a neural network model, if the second subscription content is the same as the first subscription content, such as the first request message mentioned in the example above which requests radio resources and the first network element sends radio resource content to the subscription terminal, then the first network element does not need to update the matching model. If the second subscription content is different from the first subscription, such as the first request message mentioned in the example above which requests radio resources, but the first network element sends radio resource content to the subscription terminal, then in one implementation, the first network element can update the neural network model, such as updating the parameters of the neural network model. After updating the neural network model, the first network element can re-perform the matching calculation based on the intent and the updated neural network model to obtain the third subscription content. This third subscription content is very likely to be radio resource content. In this way, the probability that the first network element sends radio resource content to the subscription terminal again is high, and thus the probability that the subscription terminal receives radio resource content is also high, which is beneficial to improving the user experience of the subscription terminal.

[0144] In another implementation, the first network element can replace the currently used matching model, such as replacing the neural network model with a long short-term memory network model. After replacing the neural network model, the first network element can re-perform matching calculations based on the intent and the long short-term memory network model to obtain the third subscription content. This third subscription content may or may not be radio resource content. At least there is a possibility that the re-matched and calculated third subscription content is radio resource content. In this way, the third subscription content that the first network element sends to the subscription terminal again may be radio resource content, which is beneficial to improving the experience of the subscription terminal.

[0145] For example, assuming the current matching model is a neural network model, if the second subscription content is the same as the first subscription content, such as the first request message mentioned in the example above requesting current affairs news and the first network element sending current affairs news content to the subscription terminal, then the first network element does not need to update the matching model. If the second subscription content is different from the first subscription, such as the first request message mentioned in the example above requesting current affairs news, but the first network element sending entertainment news content to the subscription terminal, then in one implementation, the first network element can update the neural network model, such as performing matching calculations on the parameters of the neural network model to obtain a third subscription content. This third subscription content is very likely to be current affairs news content. In this way, the probability of the first network element sending current affairs news content to the subscription terminal again is high, and thus the probability of the subscription terminal receiving current affairs news content is also high, which is beneficial to improving the subscription terminal's experience.

[0146] In another implementation, the first network element can replace the currently used matching model, such as replacing the neural network model with a long short-term memory network model. After replacing the neural network model, the first network element can re-perform matching calculations based on the intent and the long short-term memory network model to obtain the third subscription content. This third subscription content may or may not be current affairs news. However, since the relevance between the third subscription content and the first subscription content is higher than that between the second and first subscription content, the third subscription content that the first network element sends to the subscription terminal again is more likely to be current affairs news, thereby improving the user experience of the subscription terminal.

[0147] In this embodiment, when the feedback information indicates that the second subscription content does not conform to the content requested by the first request message, the first network element can update the matching model and send the third subscription content to the subscription terminal according to the intent and the updated matching model. Since the third subscription content sent by the first network element to the subscription terminal is more relevant to the first subscription content, the resent third subscription content may be more in line with the subscription content requested by the subscription terminal. As a result, the third subscription content received by the subscription terminal is more in line with the subscription content it requested, which is conducive to improving the experience of the subscription terminal.

[0148] Method 2:

[0149] Optionally, in one embodiment, method 200 further includes: if feedback information indicates that the second subscription content does not conform to the content requested by the first request message, the subscription terminal sends a second request message to the first network element, the second request message being used to request that at least one first keyword be modified to at least one second keyword. Accordingly, the first network element receives the second request message from the subscription terminal. Step 230 above includes: re-identifying the intent of the first subscription content based on at least one second keyword; method 200 further includes: the first network element sending fourth subscription content to the subscription terminal based on the re-identified intent, the fourth subscription content having a higher relevance to the first subscription content than the second subscription content. Accordingly, the subscription terminal receives the fourth subscription content.

[0150] In this embodiment, as described above, when the first request message is used to request radio resources but the first network element sends electrical resource content to the subscription terminal, the subscription terminal can send a second request message to the first network element to request modification of at least one first keyword. For example, the second request message is used to request modification of the radio resources to radio frequency resources. When the first network element receives the second request message, it can re-identify the intent of the first subscription content based on the modified keyword (i.e., the second keyword). Specifically, it can identify the intent of the first subscription content as requesting radio frequency resources based on the radio frequency resources. Thus, the first network element can match the radio frequency resources with the information published by the publishing terminal and send the matched fourth subscription content to the subscription terminal. This fourth subscription content is very likely to be radio resource content. Therefore, the probability that the first network element will send radio resource content to the subscription terminal again is high, and the probability that the subscription terminal will receive radio resource content is also high, which is beneficial to improving the user experience of the subscription terminal.

[0151] In this embodiment, when feedback information indicates that the second subscription content does not conform to the content requested by the first request message, the subscription terminal sends a second request message to the first network element requesting that at least one first keyword be modified to at least one second keyword. The first network element re-identifies the intent of the first subscription content based on at least one second keyword, and sends a fourth subscription content to the subscription terminal based on the re-identified intent. The fourth subscription content has a higher relevance to the first subscription content than the second subscription content, so the fourth subscription content sent by the first network element to the subscription terminal is more consistent with the subscription content requested by the subscription terminal. Consequently, the fourth subscription content received by the subscription terminal is more consistent with its requested subscription content, thereby improving the user experience of the subscription terminal.

[0152] Optionally, in some embodiments, method 200 further includes: the subscribing terminal sending a third request message to the first network element, the third request message being used to request modification or deletion of at least one parameter of the first request message, or to delete the first request message. Accordingly, the first network element receives the third request message from the subscribing terminal, and modifies or deletes at least one parameter, or deletes the first request message, according to the third request message.

[0153] In this embodiment of the application, when a third request message requests modification of at least one parameter of a first request message, the first network element can modify at least one parameter in the first request message. For example, if a subscribing terminal requests modification of the validity duration in the first request message, the first network element can modify the validity duration, such as changing the validity duration marked (.123, 52001) in Table 1 from 12312114s to 1000000s in the example above. Alternatively, if a subscribing terminal requests deletion of the validity duration in the first request message, the first network element can delete the validity duration, such as deleting the validity duration marked (.123, 52001) in Table 1 in the example above.

[0154] When a third request message requests the deletion of a first request message, the first network element can delete the first request message. For example, if a subscription terminal requests the deletion of a first request message identified as (.123, 52001), the first network element can delete all information of the first request message identified as (.123, 52001), including the first keyword, subscription rules, validity period, and listening address.

[0155] Alternatively, the third request message can request modification of the first keyword in the first request message, in which case the first network element can modify the first keyword, such as changing the first keyword identified as (.123, 52001) in Table 1 to radio frequency resources in the example above. Alternatively, if the subscribing terminal requests deletion of the first keyword in the first request message, the first network element can delete the first keyword, such as deleting the frequency domain resource identified as (.123, 52001) in Table 1 in the example above.

[0156] In this embodiment, the subscribing terminal sends a third request message to the first network element. This third request message requests modification or deletion of at least one parameter of the first request message, or deletes the first request message itself. After receiving the third request message, the first network element modifies or deletes the information accordingly. This increases the probability of a successful match when the first network element matches the first request message with the information published by the publishing terminal, thereby matching content that better suits the subscription terminal's request.

[0157] Optionally, in some embodiments, method 200 further includes: the first network element receiving publishing information from the publishing terminal. Step 240 above, sending the second subscription content to the subscribing terminal according to the intent, includes: sending the second subscription content to the subscribing terminal according to the intent and the publishing information.

[0158] The published information in this embodiment can include information from different fields. When the first network element receives the published information, it can match the intent of the first subscription content requested in the first request message with the published information to obtain the second subscription content, and then send the second subscription content to the subscribing terminal. As described above, taking radio resources as an example, when the first request message is used to request radio resources, radio frequency wave resources, or MIMO, the intent identified by the first network element is radio resources. When the information published by the publishing terminal includes radio resources, the first network element can send the content related to radio resources.

[0159] In this application embodiment, the system may include multiple first network elements. These multiple first network elements do not have a specific correspondence with the publishing terminals in the system. Among these multiple first network elements, some first network elements may be able to communicate with all publishing terminals in the system, while other first network elements may be able to communicate with some publishing terminals in the system. Moreover, the publishing terminals communicated by the other part of the first network elements may be the same or different, and there is no limitation.

[0160] For example, suppose the system includes three first network elements, namely first network element 1, first network element 2, and first network element 3, and ten publishing terminals, namely publishing terminal 1, publishing terminal 2, publishing terminal 3, ..., publishing terminal 9, and publishing terminal 10. First network element 1 can communicate with these ten publishing terminals, first network element 2 can communicate with publishing terminals 1 to 5, and first network element 3 can communicate with publishing terminals 4 to 10. Thus, first network element 1 can receive information published by the ten publishing terminals, first network element 2 can receive information published by publishing terminals 1 to 5, and first network element 3 can receive information published by publishing terminals 4 to 10.

[0161] The specific publishing terminals that each first network element can communicate with can be determined through pre-setting or standard definition.

[0162] In this embodiment, after receiving the publishing information, the first network element can send the second subscription content to the subscription terminal according to the intent and the publishing information. Since the publishing information received by the first network element is uncertain, the first network element tries to match the publishing information (i.e. the second subscription content) that is highly relevant to the intent and send it to the subscription terminal. As a result, the second subscription content received by the subscription terminal is highly relevant to the requested content, which is beneficial to improving the experience of the subscription terminal.

[0163] Optionally, in some embodiments, sending the second subscription content to the subscribing terminals according to the intent and publication information includes: when there are multiple subscribing terminals, determining multiple second subscription contents by traversing the intents in the first request messages sent by the multiple subscribing terminals according to the publication information; and sending the corresponding second subscription content to each of the multiple subscribing terminals.

[0164] In this embodiment of the application, when the first network element receives first request messages sent by multiple subscribing terminals, when the first network element receives information published by the publishing terminal, it can traverse multiple first request messages, match the first request message related to the published information, and then the first network element can send the corresponding second subscription content to the corresponding subscribing terminal.

[0165] For example, suppose a first network element receives first request messages from three subscribing terminals: Subscribing Terminal 1, Subscribing Terminal 2, and Subscribing Terminal 3. The first subscription content requested by each of these three terminals is, respectively, radio resources, current events news, and popular music. When the first network element receives information related to current events news published by Publishing Terminal 1, it can match this information with the content requested by the three subscribing terminals. If it determines that Subscribing Terminal 2 is requesting current events news, the first network element can send the information published by Publishing Terminal 1 to Subscribing Terminal 2. When the first network element receives information related to music published by Publishing Terminal 2, it can match this information with the content requested by the three subscribing terminals. If it determines that Subscribing Terminal 3 is requesting popular music, the first network element can send the information published by Publishing Terminal 2 to Subscribing Terminal 3. When the first network element receives information related to radio resources published by Publishing Terminal 3, it can match this information with the content requested by the three subscribing terminals. If it determines that Subscribing Terminal 1 is requesting popular music, the first network element can send the information published by Publishing Terminal 3 to Subscribing Terminal 1.

[0166] In this embodiment of the application, the first network element can determine multiple second subscription contents by traversing the intents in multiple first request messages based on the published information, and send the corresponding subscription contents to each subscription terminal, thereby facilitating each subscription terminal to receive the content it has requested to subscribe to, and thus improving the experience of the subscription terminal.

[0167] Optionally, in some embodiments, method 200 further includes: the first network element performing vectorization processing on the published information and the intent; sending second subscription content to the subscription terminal according to the intent and the published information, including: sending the second subscription content to the subscription terminal according to the vectorized intent and the vectorized published information.

[0168] In this embodiment, when the first network element receives information published by the publishing terminal, it can vectorize the published information and the intent identified based on the first subscription content, thereby obtaining two sets of data. The first network element matches these two sets of data and sends the published information with higher relevance to the corresponding subscription terminal, which can improve the relevance between the second subscription content and the first subscription content. This is because, in some cases, if the first network element directly matches the intent and the published information, the output second subscription content may not be very relevant to the first subscription content. When the intent and the published information are vectorized, they are converted into data. When matching using this data, the matched second subscription content may have a higher relevance to the first subscription content, thus the second subscription content received by the subscription terminal is more consistent with the requested subscription content.

[0169] It should be noted that in some embodiments, the first network element can send the published information to another network element, such as a large language model (LLM). The LLM performs semantic processing on the published information and sends the processed published information to the first network element. After receiving the processed published information, the first network element matches it with the intent.

[0170] Optionally, in some embodiments, method 200 further includes: the first network element performing tokenization and / or filtering processing on the published information, wherein tokenization processing includes converting the published information, and conversion includes format conversion and / or text conversion; and filtering processing includes filtering duplicate information and / or unreasonable information in the published information.

[0171] The tokenization process includes format conversion and / or text conversion of the published information. Format conversion can be understood as converting to a uniform format, and text conversion can be understood as converting the text, but the meaning before and after conversion remains the same. The filtering process includes filtering out duplicate and / or unreasonable information in the published information. Duplicate information may be information published by different terminals, and unreasonable information includes private information or information involving politically sensitive matters.

[0172] In this embodiment, since the first network element filters out duplicate information, the storage space of the first network element can store more different published information. When different subscription terminals send the first subscription content to the first network element with different intentions, the relevance of the second subscription content sent by the first network element to different subscription terminals is higher. As a result, the second subscription content received by each subscription terminal is more in line with the subscription content it requests, which is beneficial to improving the experience of the subscription terminal.

[0173] Meanwhile, because the first network element filters out unreasonable information, when a subscription terminal sends a first request message to the first network element to request unreasonable information, especially for some private information or politically sensitive information, the first network element will not send unreasonable information to the subscription terminal, thereby preventing the leakage of unreasonable information and protecting the security of unreasonable information.

[0174] In some cases, the information received by the first network element from the publishing terminal does not include the subscription content requested by the first request message. In order to improve the reliability and consistency of the subscription terminal receiving the subscribed content, the first network element may request the assistance of other network elements. Please refer to the following text for details.

[0175] Optionally, in some embodiments, sending the second subscription content to the subscription terminal according to the intent and the publishing information includes: sending a first request message to the second network element when the publishing information does not include the intent, or sending a fourth request message to the second network element, the fourth request message being generated based on the first request message; receiving at least a portion of the second subscription content sent from the second network element; and sending the second subscription content to the subscription terminal, as shown in FIG4.

[0176] In this embodiment of the application, when the first network element receives information published by the publishing terminal, after traversing multiple first request messages, the first network element determines that there is no first request message that matches the published information. Then, the first network element can send the first request message to the second network element. After the second network element receives the first request message, and the information published by the publishing terminal received by the second network element includes the content requested by the first request message, the second network element can send the corresponding information to the first network element, and the first network element then sends the corresponding information to the subscribing terminal.

[0177] Alternatively, when the first network element receives information published by the publishing terminal, after traversing multiple first request messages, the first network element determines that the published information can match the partial subscription content requested by the first request message. Then, the first network element can generate a fourth request message based on the first request message. This fourth request message is used to request the unmatched content in the first network element, and the fourth request message is sent to the second network element. After the second network element receives the fourth request message, and the information published by the publishing terminal received by the second network element includes the content requested by the fourth request message, the second network element can send the corresponding content to the first network element. The first network element then sends its own partial subscription content and the content from the second network element to the subscription terminal.

[0178] For example, the information received by the first network element mainly includes news information. When the first network element receives a first request message for requesting popular music, it can send the first request message to the second network element. After receiving the first request message, if the information received by the second network element includes popular music information, it can send the popular music information to the first network element. The first network element then sends the popular music information to the subscription terminal, so that the subscription terminal can also receive the requested content.

[0179] For example, the information received by the first network element mainly includes Chinese news. When the first network element receives a first request message for requesting major global news, since the information received by the first network element includes Chinese news, the first network element can generate a fourth request message based on the first request message. This fourth request message is used to request major foreign news, and the fourth request message is sent to the second network element. After receiving the fourth request message, if the information received by the second network element includes major foreign news, it can send the major foreign news to the first network element. The first network element then sends the major Chinese news and the major foreign news to the subscription terminal, so that the subscription terminal can also receive the requested content.

[0180] In this embodiment, when the published information received by the first network element does not include the subscription content requested by the first request message, the first request message can be sent to the second network element, or a fourth request message generated based on the first request message can be sent to the second network element. When the second network element includes the subscription content requested by the first request message or the fourth request message, the second network element sends at least a portion of the second subscription content to the first network element, and the first network element sends the second subscription content to the subscription terminal. This can improve the reliability of the subscription terminal receiving the second subscription content. Furthermore, in this embodiment, the second subscription content may be more relevant to the first subscription content and more in line with the content requested by the subscription terminal, thereby improving the user experience of the subscription terminal.

[0181] It should be understood that the values ​​shown in the above embodiments are merely illustrative examples and should not be construed as limiting the scope of this application.

[0182] It should also be understood that the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0183] It should also be understood that, in the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0184] It should also be understood that in some of the above embodiments, the examples are mainly based on devices in existing network architectures (such as terminals, network elements, etc.). It should be understood that the specific form of the device is not limited in the embodiments of this application. For example, any device that can achieve the same function in the future is applicable to the embodiments of this application.

[0185] It is understood that in the above-described method embodiments, the methods and operations implemented by the device (such as a terminal or a first network element) can also be implemented by components of the device (such as chips or circuits).

[0186] The subscription and publication method provided in this application has been described in detail above with reference to Figures 2 to 4. The above-described subscription and publication method is mainly introduced from the perspective of the interaction between the terminal device (i.e., the subscription terminal) and the network device (i.e., the first network element). It is understood that, in order to achieve the above functions, the terminal device and the network device include corresponding hardware structures and / or software modules for executing each function.

[0187] Those skilled in the art will recognize that, based on the units and algorithm steps described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0188] The subscription and publishing apparatus provided in this application is described in detail below with reference to Figures 5 and 6. It should be understood that the description of the apparatus embodiment corresponds to the description of the method embodiment. Therefore, for content not described in detail, please refer to the method embodiment above. For the sake of brevity, some content will not be repeated.

[0189] Figure 5 illustrates a possible exemplary block diagram of the subscription-publishing apparatus involved in the embodiments of this application. As shown in Figure 5, the subscription-publishing apparatus 500 may include modules or units for implementing the method embodiments described above. In one possible implementation, the subscription-publishing apparatus 500 includes a communication unit 510 and a processing unit 520, wherein the communication unit 510 is used to send and receive relevant information, and the processing unit 520 is used to process the relevant information. Optionally, the subscription-publishing apparatus 500 may further include a storage unit 530 for storing device program code and / or data.

[0190] The subscription and publishing device 500 can be a network-side device in the above embodiments, such as a network or a communication module in a network, or a circuit or chip in a network responsible for communication functions. The device 500 can be used to perform the actions performed by the first network element in the above method 200 embodiments.

[0191] When the subscription publishing device 500 is used to perform the action performed by the first network element in the above method 200 embodiment, the communication unit 510 is used to: receive a first request message from the subscription terminal, the first request message being used to request subscription to the first subscription content; the processing unit 520 is used to: identify the intent of the first subscription content; the communication unit 510 is also used to: send a second subscription content to the subscription terminal according to the intent, the second subscription content being related to the first subscription content.

[0192] The subscription publishing device 500 can be a terminal-side device as described in the above embodiments, such as a terminal or a communication module in a terminal, or a circuit or chip in a terminal responsible for communication functions. The device 500 can be used to perform the actions performed by the subscription terminal in the above method 200 embodiments.

[0193] When the subscription publishing device 500 is used to perform the actions performed by the subscription terminal in the above method 200 embodiment, the communication unit 510 is used to: send a first request message to the first network element, the first request message being used to request subscription to the first subscription content; and receive a second subscription content from the first network element, the second subscription content being related to the first subscription content.

[0194] For a more detailed description of the communication unit 510 and the processing unit 520, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.

[0195] It is understood that the division of units in the above-described device is merely a logical functional division. Each function can correspond to a functional unit, or two or more functions can be integrated into one functional unit. In actual implementation, all or some units can be integrated into a single physical entity, or they can be distributed across different physical entities. Furthermore, the aforementioned functional units can be implemented in hardware, software, or a combination of both. Whether a function is executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0196] In one example, the functional unit in any of the above devices may be one or more integrated circuits configured to implement the above methods, such as: one or more application-specific integrated circuits (ASICs), or one or more central processing units, one or more microcontroller units (MCUs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms.

[0197] In one example, storage unit 530 may include random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory and / or registers, etc.

[0198] Referring to Figure 6, which is a schematic diagram of another subscription and publishing device 600 provided in an embodiment of this application, the device 600 includes a processor 610 coupled to a memory 620. The memory 620 is used to store computer programs or instructions and / or data. The processor 610 is used to execute the computer programs or instructions stored in the memory 620, or to read the data stored in the memory 620, to perform the methods in the above method embodiments.

[0199] Optionally, there may be one or more processors 610.

[0200] Optionally, the memory 620 may be one or more.

[0201] Alternatively, the memory 620 can be integrated with the processor 610, or it can be set separately.

[0202] Optionally, as shown in FIG6, the device 600 further includes a transceiver 630 for receiving and / or transmitting signals. For example, the processor 610 is used to control the transceiver 630 to receive and / or transmit signals.

[0203] As an example, processor 610 may have the functions of processing unit 520 shown in FIG. 5, memory 620 may have the functions of storage unit 530 shown in FIG. 5, and transceiver 630 may have the functions of communication unit 510 shown in FIG. 5.

[0204] As one option, the device 600 is used to implement the operations performed by the subscription and publication device in the various method embodiments described above.

[0205] For example, processor 610 is used to execute computer programs or instructions stored in memory 620 to implement the relevant operations of terminal devices or network devices in the various method embodiments described above.

[0206] It should be understood that the processor mentioned in the embodiments of this application can be a central processing unit, or it can be other general-purpose processors, DSPs, ASICs, FPGAs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0207] The processor may include communication and processing circuitry. This communication and processing circuitry may include one or more hardware components that provide a physical structure that performs various processes related to wireless communication (e.g., signal reception and / or signal transmission). The communication and processing circuitry may include one or more transmit / receive chains. For example, the processor may receive higher-layer signaling (such as radio resource control (RRC) signaling) or physical-layer signaling (such as downlink control information (DCI)) transmitted by a base station. The functions implemented by the communication and processing circuitry may also be processed on a computer-readable medium.

[0208] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), EPROM, electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM). For example, RAM can be used as an external cache. By way of example and not limitation, RAM includes various forms such as: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0209] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, the memory (storage module) can be integrated into the processor.

[0210] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0211] Referring to Figure 7, Figure 7 is a schematic diagram of a chip system 700 provided in this embodiment of the application. The chip system 700 (or may also be called a processing system) includes logic circuitry 710 and an input / output interface 720.

[0212] The logic circuit 710 can be a processing circuit in the chip system 700. The logic circuit 710 can be coupled to a memory unit, calling instructions from the memory unit, enabling the chip system 700 to implement the methods and functions of the embodiments of this application. The input / output interface 720 can be an input / output circuit in the chip system 700, outputting processed information or inputting data or signaling information to be processed into the chip system 700 for processing.

[0213] Optionally, the logic circuit 710 may be implemented by one or more processors, including the one or more processors or the processing portion of the one or more processors.

[0214] Optionally, the input / output interface 720 may include transceiver circuitry, a transceiver, input / output circuitry, or a communication interface.

[0215] As one approach, the chip system 700 is used to implement the operations performed by the subscription and publishing device (such as a subscription terminal or a first network element) in the various method embodiments described above.

[0216] For example, logic circuit 710 is used to implement processing-related operations performed by the subscription and publishing device (such as a subscription terminal, or the first network element) in the above method embodiments; input / output interface 720 is used to implement sending and / or receiving-related operations performed by the subscription and publishing device (such as a subscription terminal, or the first network element) in the above method embodiments.

[0217] This application also provides a computer-readable storage medium storing computer instructions for implementing the methods executed by a subscription and publishing device (such as a subscription terminal or a first network element) in the above-described method embodiments.

[0218] For example, when the computer program is executed by a computer, the computer can implement the methods executed by the subscription and publishing device (such as a subscription terminal, or a first network element) in the various embodiments of the above methods.

[0219] This application also provides a computer program product comprising instructions which, when executed by a computer, implement the methods described above, executed by a subscription and publishing device (such as a subscription terminal or a first network element).

[0220] This application also provides a communication system, which includes the subscription terminal and the first network element in the above embodiments.

[0221] The explanations and beneficial effects of the relevant contents in any of the devices provided above can be found in the corresponding method embodiments provided above, and will not be repeated here.

[0222] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of apparatus or units may be electrical, mechanical, or other forms.

[0223] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially 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 a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be magnetic media (e.g., floppy disk, hard disk, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid-state disk, SSD, etc.). For example, the aforementioned available media include, but are not limited to, various media capable of storing program code such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0224] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A publish-subscribe method, characterized in that, The method is applied to a first network element, and the method includes: Receive a first request message from the subscription terminal, the first request message being used to request subscription to a first subscription content; Identify the intent behind the first subscribed content; According to the stated intent, a second subscription content is sent to the subscription terminal, the second subscription content being related to the first subscription content.

2. The method according to claim 1, characterized in that, The first request message includes at least one of the following parameters: At least one primary keyword, subscription rule, identifier ID, validity period, and listening address.

3. The method according to claim 2, characterized in that, The intent to identify the first subscribed content includes: The intent is identified based on at least one first keyword; Sending the second subscription content to the subscription terminal according to the intent includes: The second subscription content is sent to the subscription terminal according to the stated intent and the stated subscription rules.

4. The method according to claim 3, characterized in that, The subscription rules include the degree of relevance between the second subscription content and the first subscription content, and / or, the at least one first keyword satisfies a preset relationship.

5. The method according to claim 4, characterized in that, When at least one first keyword includes a first keyword, the preset relationship includes matching with the first keyword; or, When the at least one first keyword includes multiple first keywords, the preset relationship includes matching some or all of the multiple first keywords.

6. The method according to any one of claims 2 to 5, characterized in that, Sending the second subscription content to the subscription terminal according to the intent includes: According to the stated intent, the second subscription content will be sent to the subscription terminal within the stated effective duration.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: The system receives feedback information from the subscription terminal, which indicates whether the second subscription content conforms to or does not conform to the content requested by the first request message.

8. The method according to claim 7, characterized in that, The method further includes: If the feedback information indicates that the second subscription content does not conform to the content requested by the first request message, the matching model is updated. The matching model is a model in which the first network element matches the intent and the information published by the publishing terminal. According to the intent and the updated matching model, a third subscription content is sent to the subscription terminal, wherein the relevance of the third subscription content to the first subscription content is higher than that of the second subscription content and the first subscription content.

9. The method according to claim 7, characterized in that, The method further includes: Receive a second request message from the subscription terminal, the second request message being used to request that at least one first keyword be modified to at least one second keyword; The intent to identify the first subscribed content includes: The intent to re-identify the first subscribed content based on at least one second keyword; The method further includes: A fourth subscription content is sent to the subscription terminal based on the re-identified intent. The fourth subscription content is more relevant to the first subscription content than the second subscription content and the first subscription content.

10. The method according to any one of claims 1 to 9, characterized in that, The method further includes: Receive a third request message from the subscription terminal, the third request message being used to request modification or deletion of at least one parameter of the first request message, or to delete the first request message; Modify or delete at least one parameter according to the third request message, or delete the first request message.

11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: Receive publishing information from the publishing terminal; Sending the second subscription content to the subscription terminal according to the intent includes: The second subscription content is sent to the subscription terminal according to the stated intent and the published information.

12. The method according to claim 11, characterized in that, Sending the second subscription content to the subscription terminal according to the intent and publishing information includes: When there are multiple subscription terminals, multiple second subscription contents are determined by iterating through the intents in the first request messages sent by the multiple subscription terminals according to the publishing information. The corresponding second subscription content is sent to each of the plurality of subscription terminals.

13. The method according to claim 11 or 12, characterized in that, The method further includes: The published information and the intent are then vectorized. Sending the second subscription content to the subscription terminal according to the intent and the publishing information includes: The second subscription content is sent to the subscription terminal according to the vectorized intent and the vectorized publishing information.

14. The method according to any one of claims 11 to 13, characterized in that, The method further includes: The published information is tokenized and / or filtered. The tokenization process includes converting the published information, which includes format conversion and / or text conversion. The filtering process includes filtering out duplicate and / or unreasonable information in the published information.

15. The method according to any one of claims 11 to 14, characterized in that, Sending the second subscription content to the subscription terminal according to the intent and the publishing information includes: When the intent is not included in the published information, the first request message is sent to the second network element, or the fourth request message is sent to the second network element, the fourth request message being generated based on the first request message; Receive at least a portion of the subscription content sent by the second network element; The second subscription content is sent to the subscription terminal.

16. A publish-subscribe method, characterized in that, The method is applied to a subscription terminal, and the method includes: Send a first request message to the first network element, the first request message being used to request subscription to the first subscription content; Receive a second subscription content from the first network element, the second subscription content being related to the first subscription content.

17. The method according to claim 16, characterized in that, The first request message includes at least one of the following parameters: At least one primary keyword, subscription rule, identifier ID, validity period, and listening address.

18. The method according to claim 16 or 17, characterized in that, The method further includes: A feedback message is sent to the first network element, the feedback message being used to indicate whether the second subscribed content conforms to or does not conform to the content requested by the first request message.

19. The method according to any one of claims 16 to 18, characterized in that, The method further includes: The third subscription content is received from the first network element, and the relevance of the third subscription content to the first subscription content is higher than the relevance of the second subscription content to the first subscription content.

20. The method according to claim 18, characterized in that, The method further includes: If the feedback information indicates that the second subscription content does not conform to the content requested by the first request message, a second request message is sent to the first network element. The second request message is used to request that at least one first keyword be changed to at least one second keyword. The system receives a fourth subscription content from the first network element, wherein the fourth subscription content is more relevant to the first subscription content than the second subscription content and the first subscription content.

21. The method according to any one of claims 16 to 20, characterized in that, The method further includes: A third request message is sent to the first network element, the third request message being used to request modification or deletion of at least one parameter of the first request message, or to delete the first request message.

22. A subscription-publishing device, characterized in that, It includes at least one processor, the processor being coupled to a memory for storing instructions, which, when executed by the processor, cause the processor to perform the method as described in any one of claims 1 to 15 or 16 to 21.

23. A computer-readable storage medium, characterized in that, Includes a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1 to 15 or 16 to 21.

24. A computer program product, characterized in that, The computer program product includes computer program code or instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 15 or 16 to 21.