A method, device and storage medium for processing business messages

By storing application forwarding tables in the gateway and determining the target container image to process service messages, the problem of gateway resource waste is solved, resource utilization is improved and edge computing needs are met.

CN114281608BActive Publication Date: 2025-04-29CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111573253.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2025-04-29
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

When existing gateways process communication services, physical hardware resources are wasted a lot, and the resource utilization rate is low because the gateway only provides data channels, but does not provide service capabilities for processing services.

Method used

By storing the application forwarding table in the gateway, the application forwarding table is used to indicate the relationship between the service message and the application container image, determine the target container image and call it to process the target service message.

Benefits of technology

It improves the resource utilization rate of the gateway, reduces the consumption of CPU resources, and sinks business processing to the terminal side, meeting the needs of edge computing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114281608B_ABST
    Figure CN114281608B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and storage medium for processing a business message, which relates to the field of communication technology and can improve the resource utilization of a gateway. The method includes: a first gateway obtains a target business message. The first gateway determines a target container image based on the target business message and the application forwarding table, and the target container image is used to process the target business message. The first gateway calls the target container image to process the target business message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method, device and storage medium for processing service messages. Background Art

[0002] With the development of science and technology, people have a wide demand for gateways, which can realize the data transmission of communication services. At present, communication services are usually transmitted by gateways (such as routers, switches, etc.) to the fixed network core network and mobile network core network, and then transmitted to the Internet after billing, authentication and other processing.

[0003] However, in the process of processing communication services, the gateway only provides data paths for the terminal side and the service side, and does not provide the service capability of processing services. The gateway has physical hardware resources such as the central processing unit (CPU), memory, and switching chip. In other words, the gateway has the service capability of providing processing services, but does not provide the service capability of processing services. This results in a large amount of waste of the physical hardware resources of the gateway and a low resource utilization rate. Summary of the invention

[0004] The present application provides a method, device and storage medium for processing service messages, which can improve the resource utilization of a gateway.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for processing a business message, which is applied to a first gateway, wherein an application forwarding table is stored in the first gateway, and the application forwarding table is used to indicate the relationship between the business message and the application container image, and the application container image is used to process the business message. In this method, the first gateway obtains a target business message. The first gateway determines a target container image based on the target business message and the application forwarding table, and the target container image is used to process the target business message. The first gateway calls the target container image to process the target business message.

[0007] Based on the above technical solution, since the first gateway stores an application forwarding table, the application forwarding table is used to indicate the relationship between the business message and the application container image, and the application container image is used to process the business message. Therefore, after the first gateway obtains the target business message, the first gateway determines the target container image based on the target business message and the application forwarding table, and the target container image is used to process the target business message. Then, the first gateway calls the target container image to process the target business message. In this way, not only can the gateway process the application business, but also improve the resource utilization of the gateway. Moreover, the container image and the gateway use the same operating system, which can reduce the consumption of CPU resources. In addition, the gateway is closer to the terminal side, and can sink the business processing to the terminal side, further meeting the needs of edge computing.

[0008] In one possible design, the first gateway further includes a switching chip. The switching chip determines whether the target service message is a first-class service message, and the first-class service message is used to indicate a service message that the first gateway can process. If the target service message is a first-class service message, the switching chip determines the target container image based on the target service message and the application forwarding table.

[0009] In a possible design, the first gateway also stores a routing table, which is used to indicate the relationship between the service message and other gateways, where the other gateways are gateways other than the first gateway, and the other gateways include the second gateway. If the target service message is a second-class service message, the switching chip sends the target service message to the second gateway according to the target service message and the routing table, and the second-class service message is used to indicate a service message that cannot be processed by the first gateway.

[0010] In one possible design, multiple application container images are obtained by the first gateway from the edge cloud platform. The first gateway determines whether a target container image exists in the multiple application container images. If the target container image exists in the multiple application container images, the first gateway calls the target container image to process the target business message.

[0011] In one possible design, if the target container image does not exist in multiple application container images, the first gateway obtains the target container image from the edge cloud platform.

[0012] In one possible design, the first gateway includes: a first main control board and a second main control board. When the first main control board is not faulty, the first main control board calls the target container image to process the target business message. When the first main control board fails, the second main control board calls the target container image to process the target business message. Whether the first main control board fails is detected by the edge cloud platform.

[0013] In a second aspect, the present application provides a service message processing device, which is applied to a first gateway, wherein an application forwarding table is stored in the first gateway, and the application forwarding table is used to indicate the relationship between the service message and the application container image, and the application container image is used to process the service message. The device includes an acquisition unit and a processing unit.

[0014] The acquisition unit is used to acquire the target business message. The processing unit is used to determine the target container image according to the target business message and the application forwarding table, and the target container image is used to process the target business message. The processing unit is also used to call the target container image to process the target business message.

[0015] In one possible design, the first gateway further includes a switching chip. The processing unit is further used to determine whether the target service message is a first-class service message through the switching chip, and the first-class service message is used to indicate a service message that the first gateway can process. The processing unit is specifically used to determine the target container image according to the target service message and the application forwarding table through the switching chip if the target service message is a first-class service message.

[0016] In a possible design, the first gateway also stores a routing table, which is used to indicate the relationship between the service message and other gateways, the other gateways are gateways other than the first gateway, and the other gateways include the second gateway. The processing unit is also used to send the target service message to the second gateway through the switching chip according to the target service message and the routing table if the target service message is a second-class service message, and the second-class service message is used to indicate the service message that cannot be processed by the first gateway.

[0017] In one possible design, multiple application container images are obtained by the first gateway from the edge cloud platform. The processing unit is also used to determine whether a target container image exists in the multiple application container images. The processing unit is specifically used to call the target container image to process the target business message if the target container image exists in the multiple application container images.

[0018] In one possible design, the processing unit is further used to obtain the target container image from the edge cloud platform if the target container image does not exist in the multiple application container images.

[0019] In a possible design, the first gateway includes: a first main control board and a second main control board. The processing unit is specifically used to call the target container image through the first main control board to process the target business message when the first main control board is not faulty. The processing unit is specifically used to call the target container image through the second main control board to process the target business message when the first main control board fails. Whether the first main control board fails is detected by the edge cloud platform.

[0020] In the third aspect, the present application provides a device for processing business messages, the device comprising: a processor and a memory; the processor and the memory are coupled; the memory is used to store one or more programs, the one or more programs including computer execution instructions, when the device for processing business messages is running, the processor executes the computer execution instructions stored in the memory to implement the method for processing business messages as described in the first aspect and any possible implementation method of the first aspect.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the method for processing business messages described in the above-mentioned first aspect and any possible implementation method of the first aspect.

[0022] In a fifth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement a method for processing business messages as described in the first aspect and any possible implementation of the first aspect.

[0023] In the above scheme, the technical problems that can be solved and the technical effects achieved by the business message processing device, computer equipment, computer storage medium or chip can be referred to the technical problems and technical effects solved by the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A system architecture diagram of a communication system provided in an embodiment of the present application;

[0025] Figure 2 A system architecture diagram of a gateway provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of the hardware structure of a gateway provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of a transfer table allocation process provided in an embodiment of the present application;

[0028] Figure 5 A flow chart of a method for processing a service message provided in an embodiment of the present application

[0029] Figure 6 A flowchart of another method for processing a service message provided in an embodiment of the present application;

[0030] Figure 7 A flowchart of another method for processing a service message provided in an embodiment of the present application;

[0031] Figure 8 A schematic diagram of the structure of a device for processing service messages provided in an embodiment of the present application;

[0032] Fig. 9 A schematic diagram of the structure of another device for processing business messages provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] In this article, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.

[0035] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.

[0036] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.

[0037] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.

[0038] Before introducing the embodiments of the present application, the terms involved in the embodiments of the present application are first introduced.

[0039] In container image technology, containers effectively divide resources managed by a single operating system into isolated groups to better balance conflicting resource usage requirements between groups. Each container runs an application, and different containers are isolated from each other. Communication mechanisms can also be established between containers. The efficiency of creating and stopping containers is high, and the resource requirements are much lower than virtual machines.

[0040] With the development of science and technology, people have a wide demand for gateways, which can realize data transmission of communication services. However, in the process of processing communication services, the gateway only provides data paths for the terminal side and the service side, and does not provide service capabilities for processing services. The gateway has physical hardware resources such as the central processing unit (CPU), memory, and switching chips. In other words, the gateway has the service capabilities to process services, but does not provide service capabilities for processing services. As a result, the physical hardware resources of the gateway are wasted in large quantities, and the resource utilization rate is low.

[0041] In the current technical solution, the physical port connected to the switching chip of the first Ethernet data bus of the gateway fusion device can be configured as an uplink interface for forwarding the data message flow of the network access supporting three-layer forwarding, and the physical port connected to the Ethernet switching chip of the second Ethernet data bus can be configured as a downlink interface for forwarding the data message flow of the access to the virtual application. The CPU can associate the data message flow of the network access supporting three-layer forwarding and the data message flow of the access to the virtual application independently with the router operating system and the virtual application by connecting the different physical ports of the first Ethernet data bus and the second Ethernet data bus respectively. However, in the above scheme, the forwarding service and the third-party application service are independent of each other on the physical port, and the operating systems of the traditional routing forwarding and the virtual application are also isolated from each other. Deploying third-party applications in the form of virtual machines will cause the service messages to be transmitted between the two operating systems, resulting in additional consumption of CPU resources.

[0042] In order to solve the above technical problems, an embodiment of the present application provides a method for processing business messages, which is applied to a first gateway, the first gateway includes multiple application container images, and the first gateway stores an application forwarding table, which is used to indicate the relationship between the business message and the application container image. The first gateway can process the business message through multiple application container images. In this way, not only can the gateway process the application business, but also improve the resource utilization of the gateway. Moreover, the container image and the gateway have the same operating system, which can reduce the consumption of CPU resources.

[0043] Before introducing in detail a method for processing a service message according to an embodiment of the present application, the implementation environment and application scenarios of the embodiment of the present application are first introduced.

[0044] like Figure 1 As shown, a communication system provided in an embodiment of the present application includes a gateway, a network device (such as a base station), a terminal, a metropolitan area convergence layer and an edge cloud platform.

[0045] Among them, the base station may include various forms of base stations, such as: macro base stations, micro base stations (also called small stations), relay stations, access points, etc. Specifically, it can be: an access point (AP) in a wireless local area network (WLAN), a base station (Base Transceiver Station, BTS) in a global system for mobile communications (GSM) or code division multiple access (CDMA), or a base station (NodeB, NB) in a wideband code division multiple access (WCDMA), or an evolved Node B (eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, and the next generation Node B (gNB) in a future 5G network or a base station in a future evolved public land mobile network (PLMN) network, etc.

[0046] The terminal can be a device with transceiver functions. The terminal can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons, and satellites, etc.). The terminal includes a handheld device, a vehicle-mounted device, a wearable device, or a computing device with wireless communication functions. Exemplarily, the terminal can be a mobile phone, a tablet computer, or a computer with wireless transceiver functions. The terminal device can also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in smart grids, a wireless terminal in smart cities, a wireless terminal in smart homes, etc.

[0047] The gateway is used to transmit and forward business messages. In addition, the gateway can process business messages. The edge cloud platform can process business messages and provide container images for the gateway.

[0048] like Figure 2 As shown, a system architecture of a gateway provided in an embodiment of the present application is provided, and the system architecture includes: a user layer, a kernel layer and a hardware layer.

[0049] Among them, the user layer includes: image distribution interface, application container image, service orchestration scheduler, network element management interface, configuration delivery module, configuration parsing module, resource scheduling module, main control plane protocol stack, backup control plane protocol stack and database.

[0050] The image distribution interface is used to request container images from the edge cloud platform. The application container image can process the business message of the application. The service orchestration scheduler is used to provide application registration, loading and running environment for the application container image. The service orchestration scheduler exchanges with the edge cloud platform using the image distribution application programming interface (Application Programming Interface, API) and remote procedure call (Remote Procedure Call, RPC) protocol to realize the business scheduling of container images from the cloud to the gateway.

[0051] The network element management interface is used to transmit service messages to other network devices (such as other gateways). The configuration delivery module can be used to receive service configuration parameters delivered by the controller (or network element management system) through the netconf protocol or command line. The configuration parsing module is used to parse the configuration, convert the configuration data (such as the destination port) into machine-readable code and store it in the database. The resource scheduling module is used to communicate with the control plane protocol stack (main control plane protocol stack, backup control plane protocol stack) through the netlink standard kernel communication interface, and communicate with the service orchestration scheduler to complete the reservation and allocation of hardware resources to third-party applications. The database stores data (such as service data processed by the gateway, application data, etc.).

[0052] The kernel layer includes: programming driver, switch chip application driver and switch chip driver.

[0053] When the CPU processes a service message with a large number of encapsulation layers (such as more than 4 layers), it is driven by programming (also called Field Programmable Gate Array (FPGA) driver).

[0054] It is understandable that by processing service messages with a large number of layers through programming, the CPU resource consumption can be reduced.

[0055] The switch chip application driver (also known as the Application Specific Integrated Circuit (ASIC) APP driver) can transfer the application forwarding information base (FIB) table (also known as the application forwarding table or application FIB table) in the CPU to the switch chip. The switch chip driver (ASIC driver) can transfer the routing forwarding information table (also known as the routing forwarding table or routing FIB table) in the CPU to the switch chip.

[0056] The hardware layer includes: processors, switching chips, and programming gate arrays (which can be called service orchestration schedulers).

[0057] The processor is used to process the service message. The switching chip is used to forward the service message, and the switching chip is used to parse the service message and transmit the parsed service message to the processor. For example, the service message has four layers, and the service message after stripping the four layers can be transmitted to the processor, and the processor processes the service message. Optionally, the switching chip can also be used to transmit the service message to other gateways. The programming gate array is used to parse the service message whose encapsulation layer number of the service message is greater than the preset threshold layer number.

[0058] For example, Figure 4 As shown, the resource scheduling module can allocate processing resources for the service orchestration scheduler and the router control plane protocol. The service orchestration server generates an application forwarding table and sends it to the switch chip through the switch chip application driver. The router control plane protocol generates a routing forwarding table and sends it to the switch chip through the switch chip driver.

[0059] like Figure 3 As shown, it is a schematic diagram of the hardware structure of a gateway provided in an embodiment of the present application, and the hardware structure of the gateway includes: at least one interface, at least one programming gate array, at least one backplane, and at least one main control board (such as a main main control board and a standby main control board). Taking the main control board as an example, the main control board includes: a processor, a switching chip, and a programming gate array.

[0060] Among them, the interface, the programming gate array, and the main control board can communicate with each other. For example, the interface and the programming gate array can communicate through SERDES (serializer / deserializer). The processor and the switching chip, and the switching chip and the programming gate array can communicate through SERDES. The processor and the programming gate array can communicate through the high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE).

[0061] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0062] like Figure 5 As shown, a method for processing a service message provided in an embodiment of the present application includes:

[0063] S501: The first gateway obtains a target service message.

[0064] The target service message is used to indicate the processing of the target service.

[0065] It should be noted that the target service is not limited in the embodiments of the present application. For example, the target service may be a query service of an application. For another example, the target service may be a rendering service of an application. For another example, the target service may be an update service of an application.

[0066] In a possible implementation manner, the terminal may send a target service message to the first gateway, and the first gateway receives the target service message from the terminal.

[0067] Exemplarily, the terminal starts application A and sends a target service message to the first gateway, where the target service message is a message generated by application A.

[0068] S502: The first gateway determines a target container image according to the target service message and the application forwarding table.

[0069] The target container image is used to process the target business message.

[0070] In an embodiment of the present application, the first gateway includes multiple application container images. The application container images are used to process business messages.

[0071] It should be noted that each application container image can only process the business messages of one application, and different application container images process business messages corresponding to different applications. For example, container image A is used to process the business messages of application A, container image B is used to process the business messages of application B, and container image C is used to process the business messages of application C.

[0072] The first gateway stores an application forwarding table, which is used to indicate the relationship between the service message and the application container image.

[0073] Exemplarily, as shown in Table 1, it shows the relationship between the business message and the application container image.

[0074] That is, when the service message is service message A, service message A is processed by container image A. When the service message is service message B, service message B is processed by container image A. When the service message is service message C, service message C is processed by container image A.

[0075] Table 1

[0076] Business message Container images Business message A Container Image A Business message B Container Image B Business message C Container Image C

[0077] In a possible implementation manner, the first gateway determines the target container image according to the message information of the service message and the application forwarding table.

[0078] Exemplarily, if the message information of the business message is port A, and port A in the application forwarding table corresponds to container image A, then the target container image is determined to be container image A.

[0079] S503: The first gateway calls the target container image to process the target service message.

[0080] In some embodiments, multiple container images are obtained by the first gateway from the edge cloud platform. Specifically, the first gateway can send an image request message to the edge cloud platform. Afterwards, the first gateway receives the image from the edge cloud platform and creates a container image based on the image.

[0081] Exemplarily, the first gateway may pull image A from the edge cloud platform and create container image A.

[0082] In a possible implementation, before the first gateway calls the target container image to process the target service message, the first gateway determines whether the target container image exists in the multiple application container images.

[0083] Exemplarily, if the first gateway determines that the target container image is container image A, it can be queried whether container image A exists in the first gateway.

[0084] In one possible design, if a target container image exists in multiple application container images, the first gateway calls the target container image to process the target business message.

[0085] In one possible design, if the target container image exists in multiple application container images, the first gateway calls the target container image to process the target business message. If the target container image does not exist in multiple application container images, the target container image is obtained from the edge cloud platform. After that, the first gateway can call the target container image to process the target business message.

[0086] Exemplarily, if the first gateway determines that the target container image is container image A, and container image A does not exist in the first gateway, image A can be pulled from the edge cloud platform and a container image can be created.

[0087] It can be understood that when the target container image does not exist in the first gateway, obtaining the target container image from the edge cloud platform can ensure that the first gateway processes the target business message and improve the resource utilization of the first gateway.

[0088] In a possible implementation, the switching chip transmits the target service message to the target container image, and the target container image processes the target service message.

[0089] For example, if the target service message is used to instruct to query the first user information in application A, the first gateway may call the target container to query the first user information in application A. Afterwards, the first gateway sends the first user information to the target container image.

[0090] It is understandable that, since the first gateway stores an application forwarding table, the application forwarding table is used to indicate the relationship between the business message and the application container image, and the application container image is used to process the business message. Therefore, after the first gateway obtains the target business message, the first gateway determines the target container image based on the target business message and the application forwarding table, and the target container image is used to process the target business message. Then, the first gateway calls the target container image to process the target business message. In this way, not only can the gateway process the application business, but also improve the resource utilization of the gateway. Moreover, the container image and the gateway use the same operating system, which can reduce the consumption of CPU resources. In addition, the gateway is closer to the terminal side, and can sink the business processing to the terminal side, further meeting the needs of edge computing.

[0091] In some embodiments, the first gateway includes a switching chip that can transmit the service message to the application container image, or the switching chip can forward the service message to other gateways. Figure 6 As shown, a method for processing a service message provided in an embodiment of the present application, before S502, the method also includes S601-S602.

[0092] S601: The switching chip determines whether a target service message is a first-category service message.

[0093] The first type of service message is used to indicate the service message that can be processed by the first gateway.

[0094] In a possible implementation, the switching chip can determine whether the target service message is a first-class service message through an access control list (ACL). If the target service message exists in the ACL, the switching chip determines that the target service message is a first-class service message. If the target service message does not exist in the ACL, the switching chip determines that the target service message is a second-class service message.

[0095] In the embodiment of the present application, the second type of service message is used to indicate the service message that cannot be processed by the first gateway.

[0096] For example, if the ACL includes: service message A, service message B, service message C and service message D. If the target service message is service message A, the target service message is determined to be a first-class service message. If the target service message is service message H, the target service message is determined to be a second-class service message.

[0097] In some embodiments, if the target service message is a first-category service message, the switching chip executes S502.

[0098] In some embodiments, if the target service message is a first-category service message, the switch chip executes S502. If the target service message is a second-category service message, the switch chip executes S602.

[0099] S602: The switching chip sends the target service message to the second gateway according to the target service message and the routing forwarding table.

[0100] In the embodiment of the present application, the first gateway also stores a routing table, which is used to indicate the relationship between the service message and other gateways. The other gateways are gateways other than the first gateway. The other gateways include the second gateway

[0101] Exemplarily, as shown in Table 2, it shows the relationship between the service message and other gateways.

[0102] Table 2

[0103] Business message Other Gateways Business message A Gateway A Business message B Gateway B Business message C Gateway C

[0104] That is, when the service message is service message A, the switch chip sends service message A to gateway A. When the service message is service message B, the switch chip sends service message B to gateway B. When the service message is service message C, the switch chip sends service message C to gateway C.

[0105] In a possible implementation, the switching chip determines the second gateway according to the target service message and the routing forwarding table, and the second gateway corresponds to the target service message. Then, the switching chip sends the target service message to the second gateway.

[0106] Exemplarily, in combination with Table 2, if the target service message is service message B, the second gateway is determined to be gateway B, and the switching chip sends service message B to gateway B.

[0107] The following describes the embodiments of the present application in conjunction with specific examples. Figure 7 As shown, after the switching chip receives the target business message, it can determine whether the target business message exists through the ACL. If the target business message does not exist, the switching chip driver can determine the second gateway according to the routing forwarding table, and send the target business message to the second gateway. If the target business message exists, traverse the ACL to see if there is an ACL entry that matches the target business message. If there is an ACL entry that matches the target business message, the switching chip application driver sends the target business message to the target container image according to the application forwarding table. If there is no ACL entry that matches the target business message, the switching chip driver can determine the second gateway according to the routing forwarding table, and send the target business message to the second gateway.

[0108] It is understandable that the first gateway also stores a routing table, which is used to indicate the relationship between the service message and other gateways, and the other gateways are gateways other than the first gateway. In other words, if the target service message is a second-class service message, that is, the target service message is a service message that cannot be processed by the first gateway, the switching chip sends the target service message to the second gateway according to the target service message and the routing table. In this way, the target service message can be sent to other gateways, and then other devices can process the service message. In addition, in the embodiment of the present application, the switching chip forwards the target service message, which can improve the processing efficiency of the service message and reduce the processing pressure of the processor.

[0109] In some embodiments, the first gateway includes: a first main control board and a second main control board.

[0110] It should be noted that the first main control board may also be referred to as a primary main control board, and the second main control board may also be referred to as a backup main control board.

[0111] In a possible implementation, the first gateway calls the target container image to process the target business message, including: when the first main control board does not fail, the first main control board calls the target container image to process the target business message. When the first main control board fails, the second main control board calls the target container image to process the target business message. Whether the first main control board fails is detected by the edge cloud platform.

[0112] It should be noted that, when there are multiple main control boards in the current gateway device, hot standby will be implemented for the multiple main control boards, that is, multiple main control boards will be backed up. However, this will consume the resources of the first gateway.

[0113] In an embodiment of the present application, the edge cloud platform can monitor whether the first main control board fails. In the event of a failure of the first main control board, the edge cloud platform can send multiple application container images to the second main control board. The second main control board can receive multiple application container images from the edge cloud platform. Afterwards, the second main control board can determine the target container image based on the target business message and the application forwarding table, and call the target container image to process the target business message.

[0114] It is understandable that by monitoring whether the first main control board fails through the edge cloud platform, it can ensure that the first gateway can process the target service message, thereby improving the stability of the gateway. In addition, by monitoring whether the first main control board fails through the edge cloud platform, there is no need for hot standby, which can reduce the consumption of resources of the first gateway.

[0115] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of computer equipment. It is understandable that, in order to realize the above functions, the computer equipment includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the processing method steps of the service messages of each example described in the embodiment disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0116] The embodiment of the present application also provides a service message processing device. The service message processing device can be a computer device, a CPU in the above computer device, a processing module in the above computer device for processing service messages, or a client in the above computer device for processing service messages.

[0117] The embodiment of the present application can divide the processing of the service message into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0118] like Figure 8 FIG. 1 is a schematic diagram of a structure of a service message processing device provided in an embodiment of the present application. The service message processing device is used to execute Figure 5 or Figure 6 The processing method of the business message shown. The processing device of the business message is applied to the first gateway, and the first gateway stores an application forwarding table, the application forwarding table is used to indicate the relationship between the business message and the application container image, the application container image is used to process the business message, and the processing device of the business message may include an acquisition unit 801 and a processing unit 802.

[0119] The acquisition unit 801 is used to acquire the target service message. The processing unit 802 is used to determine the target container image according to the target service message and the application forwarding table, and the target container image is used to process the target service message. The processing unit 802 is also used to call the target container image to process the target service message.

[0120] Optionally, the first gateway further includes a switching chip. The processing unit 802 is further configured to determine whether the target service message is a first-class service message through the switching chip, and the first-class service message is used to indicate a service message that the first gateway can process. The processing unit 802 is specifically configured to determine the target container image through the switching chip according to the target service message and the application forwarding table if the target service message is a first-class service message.

[0121] Optionally, the first gateway further stores a routing table, the routing table is used to indicate the relationship between the service message and other gateways, the other gateways are gateways other than the first gateway, and the other gateways include the second gateway. The processing unit 802 is also used to send the target service message to the second gateway through the switching chip according to the target service message and the routing table if the target service message is a second-class service message, and the second-class service message is used to indicate the service message that cannot be processed by the first gateway.

[0122] Optionally, the first gateway obtains multiple application container images from the edge cloud platform. The processing unit 802 is also used to determine whether the target container image exists in the multiple application container images. The processing unit 802 is specifically used to call the target container image to process the target business message if the target container image exists in the multiple application container images.

[0123] Optionally, the processing unit 802 is further configured to obtain the target container image from the edge cloud platform if the target container image does not exist in the multiple application container images.

[0124] Optionally, the first gateway includes: a first main control board and a second main control board. The processing unit 802 is specifically used to call the target container image to process the target business message through the first main control board when the first main control board is not faulty. The processing unit 802 is specifically used to call the target container image to process the target business message through the second main control board when the first main control board fails. Wherein, whether the first main control board fails is detected by the edge cloud platform.

[0125] Fig. 9 Another possible structure of the service message processing device involved in the above embodiment is shown. The service message processing device includes: a processor 901 and a communication interface 902. The processor 901 is used to control and manage the actions of the device, for example, to execute the various steps in the method flow shown in the above method embodiment, and / or to execute other processes of the technology described in this document. The communication interface 902 is used to support the communication between the service message processing device and other network entities. The service message processing device may also include a memory 903 and a bus 904, and the memory 903 is used to store program codes and data of the device.

[0126] Among them, the above-mentioned processor 901 can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of the present invention. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of the present invention. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, etc.

[0127] The memory 903 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above types of memory.

[0128] The bus 904 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 904 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0129] In actual implementation, the acquisition unit 801 may be composed of Fig. 9 The communication interface 902 shown in FIG. 8 is implemented by the processing unit 802. Fig. 9 The processor 901 shown calls the program code in the memory 903 to implement. The specific execution process can be referred to Figure 5 or Figure 6 The description of the processing method of the business message shown is not repeated here.

[0130] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0131] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the method for processing service messages in the above method embodiment.

[0132] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method for processing business messages in the method flow shown in the above method embodiment.

[0133] Among them, the computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0134] Since the service message processing device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be repeated here.

[0135] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for processing a service message, characterized in that: Applied to a first gateway, wherein an application forwarding table is stored in the first gateway, the application forwarding table is used to indicate a relationship between a service message and an application container image, and the application container image is used to process the service message; the method includes: The first gateway obtains a target service message; The first gateway determines a target container image according to the target service message and the application forwarding table, where the target container image is used to process the target service message; The first gateway determines whether the target container image exists in a plurality of application container images, where the plurality of application container images are obtained by the first gateway from an edge cloud platform; If the target container image exists in the multiple application container images, the first gateway calls the target container image to process the target service message; If the target container image does not exist in the multiple application container images, the first gateway obtains the target container image from the edge cloud platform.

2. The method according to claim 1, characterized in that: The first gateway further includes a switching chip; and the method further includes: The switching chip determines whether the target service message is a first-category service message, where the first-category service message is used to indicate a service message that the first gateway can process; The first gateway determines a target container image according to the target service message and the application forwarding table, where the target container image is used to process target data, including: If the target service message is a first-category service message, the switching chip determines a target container image according to the target service message and the application forwarding table.

3. The method according to claim 2, characterized in that The first gateway also stores a routing forwarding table, wherein the routing forwarding table is used to indicate the relationship between the service message and other gateways, wherein the other gateways are gateways other than the first gateway, and the other gateways include a second gateway; The method further comprises: If the target service message is a second-category service message, the switching chip sends the target service message to the second gateway according to the target service message and the routing forwarding table, and the second-category service message is used to indicate a service message that the first gateway cannot process.

4. The method according to claim 1, characterized in that The first gateway includes: a first main control board and a second main control board; the first gateway calls the target container image to process the target service message, including: In the case that the first main control board does not fail, the first main control board calls the target container image to process the target service message; In the event that the first main control board fails, the second main control board calls the target container image to process the target service message; Wherein, whether the first main control board fails is detected by the edge cloud platform.

5. A device for processing business messages, characterized in that: Applied to a first gateway, wherein an application forwarding table is stored in the first gateway, the application forwarding table is used to indicate the relationship between a service message and an application container image, and the application container image is used to process the service message; the device includes: An acquisition unit, used for acquiring a target service message; A processing unit, configured to determine a target container image according to the target service message and the application forwarding table, wherein the target container image is used to process the target service message; The processing unit is further used to determine whether the target container image exists in a plurality of application container images, where the plurality of application container images are obtained by the first gateway from the edge cloud platform; The processing unit is further configured to, if the target container image exists in the multiple application container images, call the target container image to process the target service message; The processing unit is further configured to obtain the target container image from the edge cloud platform if the target container image does not exist in the multiple application container images.

6. The device according to claim 5, characterized in that The first gateway also includes a switching chip; The processing unit is further used to determine whether the target service message is a first-category service message through the switching chip, where the first-category service message is used to indicate a service message that the first gateway can process; The processing unit is specifically configured to determine a target container image according to the target service message and the application forwarding table through the switching chip if the target service message is a first-category service message.

7. The device according to claim 6, characterized in that The first gateway also stores a routing forwarding table, wherein the routing forwarding table is used to indicate the relationship between the service message and other gateways, wherein the other gateways are gateways other than the first gateway, and the other gateways include a second gateway; The processing unit is also used to send the target service message to the second gateway through the switching chip according to the target service message and the routing forwarding table if the target service message is a second-category service message, and the second-category service message is used to indicate a service message that cannot be processed by the first gateway.

8. The device according to claim 5, characterized in that The first gateway comprises: a first main control board and a second main control board; The processing unit is specifically configured to, when the first main control board does not fail, call the target container image through the first main control board to process the target service message; The processing unit is specifically configured to, when the first main control board fails, call the target container image through the second main control board to process the target service message; Wherein, whether the first main control board fails is detected by the edge cloud platform.

9. A device for processing a service message, characterized in that: include: Processor and memory; The processor is coupled to the memory; The memory is used to store one or more programs, which include computer execution instructions. When the service message processing device is running, the processor executes the computer execution instructions stored in the memory to enable the service message processing device to perform the method as described in any one of claims 1-4.

10. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When a computer executes the instruction, the computer performs the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Service forwarding method between the gateways in the service network and its service gateway

    CN101009640A

  • A configuration method and a server of an Internet web front end

    CN109213498A