A mode determination method, device, electronic device, storage medium and program product

CN123020692APending Publication Date: 2026-10-30CHENGDU DESAY SV KAWA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611332121.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0003]现有技术中存在基于DDS总线的数据录制回放方案,但该方案需要进行动态发现匹配,订阅DDS主题、创建DDS监听器,本质上仍依赖具体特定DDS供应商的SDK,会与业务DDS域产生交互,影响业务数据传输

Benefits of technology

[0009]根据本发明的另一方面,提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序在被处理器执行时实现本发明任一实施例所述的模式确定方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123020692A_ABST
    Figure CN123020692A_ABST
Patent Text Reader

Abstract

A mode determination method and device, electronic equipment, storage medium and program product are disclosed. Specific embodiments include: determining an original message; analyzing the original message to obtain analysis data; determining a playback mode based on the target service scenario, and playing back the analysis data according to the playback mode. By determining the original message, real-time monitoring of the target service scenario is realized. By analyzing the original message to obtain analysis data, lossless analysis of the original message is realized. By playing back the analysis data through the playback mode, non-intrusive data recording and data playback are realized, and resource consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of database technology, and in particular to a schema determination method, apparatus, electronic device, storage medium, and program product. Background Technology

[0002] Data Distribution Service (DDS), a data-centric publish-subscribe model software middleware specification, is widely used in distributed scenarios with high requirements for real-time performance and reliability. DDS achieves efficient data transmission based on the Real-time Publish-Subscribe (RTPS) protocol. During the development, testing, and troubleshooting of DDS systems, it is necessary to record real-world DDS data online and replay it in an offline environment for analysis, in order to reproduce business scenarios, verify system stability, and identify communication anomalies.

[0003] Existing technologies include data recording and playback solutions based on the DDS bus. However, these solutions require dynamic discovery and matching, subscribing to DDS topics, and creating DDS listeners. Essentially, they still rely on specific DDS vendor SDKs and interact with the business DDS domain, affecting business data transmission. Therefore, existing recording and playback solutions are intrusive. Most recording tools require modification of business application code, SDK embedding, or modification of DDS middleware, and may even require restarting business processes. This impacts the real-time performance and stability of online services, failing to meet the demands of scenarios with extremely high business continuity requirements, such as industrial and automotive applications. Summary of the Invention

[0004] This invention provides a pattern determination method, apparatus, electronic device, storage medium, and program product to achieve non-intrusive data playback and reduce resource consumption.

[0005] According to one aspect of the present invention, a pattern determination method is provided, comprising: Determine the original message, which includes the message corresponding to the original data, and the original data includes data under the target business scenario; The original message is parsed to obtain parsed data, which includes data required to replay the target business scenario. Based on the target business scenario, a playback mode is determined, and the parsed data is played back according to the playback mode. The playback mode includes a mode that reproduces the target business scenario.

[0006] According to another aspect of the present invention, a pattern determining apparatus is provided, comprising: The first determining module is used to determine the original message, wherein the original message includes the message corresponding to the original data, and the original data includes data under the target business scenario; The parsing module is used to parse the original message to obtain parsed data, which includes data required for replaying the target business scenario; The second determining module is used to determine a playback mode based on the target business scenario, and to play back the parsed data according to the playback mode, wherein the playback mode includes a mode for reproducing the target business scenario.

[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the pattern determination method according to any embodiment of the present invention.

[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the pattern determination method according to any embodiment of the present invention.

[0009] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the pattern determination method described in any embodiment of the present invention.

[0010] The technical solution of this invention involves determining the original message; parsing the original message to obtain parsed data; determining a playback mode based on the target business scenario; and playing back the parsed data according to the playback mode. By determining the original message, real-time monitoring of the target business scenario is achieved; by parsing the original message to obtain parsed data, lossless parsing of the original message is achieved; and by playing back the parsed data using the playback mode, non-intrusive data recording and playback are achieved, reducing resource consumption.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart of a pattern determination method provided in Embodiment 1 of the present invention; Figure 2 This is a flowchart of a message recording method provided in Embodiment 1 of the present invention; Figure 3 This is a flowchart of a message playback method provided in Embodiment 1 of the present invention; Figure 4 This is a flowchart of a data parsing determination method provided in Embodiment 2 of the present invention; Figure 5 This is a schematic diagram of a pattern determination device according to Embodiment 3 of the present invention; Figure 6 This is a block diagram of an electronic device provided according to Embodiment 4 of the present invention. Detailed Implementation

[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0016] Example 1 Figure 1This is a flowchart of a pattern determination method according to Embodiment 1 of the present invention. This embodiment is applicable to the recording and playback of messages. The method can be executed by a pattern determination device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes: S110, Determine the original message.

[0017] The original message includes the message corresponding to the original data, and the original data includes data under the target business scenario.

[0018] In this embodiment, the original message can be understood as the message corresponding to the original data, and the original message can be a message in Data Distribution Service (DDS) format. The original data can be understood as the data collected in the target business scenario, and the original data can be collected through the service network card. The target business scenario can be understood as a scenario that requires data recording, such as industrial or automotive scenarios.

[0019] Specifically, network interface card (NIC) bypass mirroring packet capture technology can be used to bind to the business NIC of the target business scenario and record raw data. By using the business NIC, business traffic can be collected non-intrusively without interception, tampering, or inclusion in the business domain. Then, preprocessing and other operations can be performed on the raw data to extract the original packets.

[0020] For example, the TCP, UDP and multicast addresses corresponding to the DDS RTPS protocol can be recorded through the service network card.

[0021] S120. The original message is parsed to obtain parsed data.

[0022] The parsed data includes the data required to replay the target business scenario.

[0023] In this embodiment, parsed data can be understood as data composed of the original message and data after parsing the original message. Parsed data can indicate the characteristics of the original message and can be used to replay the target business scenario.

[0024] Specifically, the original message can be parsed, and the parsed data and the original message can be used as parsed data. The parsed data and the original message can be stored separately locally on an hourly sharding basis, enabling breakpoint resumption. For parsed data storage, both local storage and remote upload modes are supported. Parsed data can be cached locally first, and then compressed and uploaded to central storage in batches after the network stabilizes; alternatively, it can be directly persisted locally, adapting to industrial scenarios with no network or unstable network connections.

[0025] S130. Based on the target business scenario, determine the playback mode and play back the parsed data according to the playback mode.

[0026] The playback mode includes a mode that reproduces the target business scenario.

[0027] In this embodiment, the playback mode can be understood as a way to reproduce the target business scenario by replaying and parsing data.

[0028] Specifically, when parsed data is needed for target business playback, the stored parsed data is retrieved. Different playback modes can be selected based on the needs of the target business scenario, and the retrieved parsed data can be played back through the time-series playback module. The time-series playback module integrates the DDS message replay engine and supports at least one playback mode. Furthermore, playback parameters can be pre-set, allowing control over playback speeds such as accelerated playback, constant speed playback, breakpoint resumption, and loop playback when reproducing the target business scenario. These playback parameters can also be dynamically modified.

[0029] The technical solution of this invention involves determining the original message; parsing the original message to obtain parsed data; determining a playback mode based on the target business scenario; and playing back the parsed data according to the playback mode. By determining the original message, real-time monitoring of the target business scenario is achieved; by parsing the original message to obtain parsed data, lossless parsing of the original message is achieved; and by playing back the parsed data using the playback mode, non-intrusive data recording and playback are achieved, reducing resource consumption.

[0030] Based on the above embodiments, modified embodiments of the above embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in the modified embodiments.

[0031] In one embodiment, determining the original message includes: Configure sniffing parameters, which are related to the load of nodes in the target business scenario; Based on the sniffing parameters, the raw data is collected; The raw data is preprocessed to obtain the raw message corresponding to the raw data.

[0032] In this embodiment, sniffing parameters can be understood as parameters set to be related to the load of each node in the target business scenario. Sniffing parameters may include parameters configured for the device recording raw data.

[0033] For example, sniffing parameters may include the network interface name (NIC) of the bound service NIC, the UDP port range, the DDS multicast address, and the sampling rate. The sampling rate can be dynamically adjusted based on the node's resource load. Under normal circumstances, the service NIC uses full recording; when the service NIC traffic exceeds a preset threshold or the CPU load is too high, sampling is automatically downsampled. A bypass sniffing module can be configured based on the sniffing parameters. This module records raw data using NIC bypass mirroring packet capture technology. The raw data can be preprocessed and rewritten into DDS-type raw packets. Preprocessing of the raw data can be achieved through filtering rules, including DDS Domain ID blacklists / whitelists, Topic blacklists / whitelists, and IP address filtering rules, which can be dynamically updated through a remote scheduling interface. Filtering rules can automatically filter packets from non-target business scenarios in the raw data; simultaneously, they have sensitive data de-identification capabilities, dynamically identifying sensitive fields (such as device number and location data) in the raw data and automatically de-identifying and masking them.

[0034] For example, Figure 2 This is a flowchart of a message recording method provided according to Embodiment 1 of the present invention. Figure 2 As shown, sniffing parameters can be configured through the management platform. Once configured successfully, the sniffing parameters are sent to the bypass sniffing module. After the bypass sniffing module determines the original packet, it performs data preprocessing to obtain the original packet.

[0035] In one embodiment, determining the playback mode based on the target business scenario includes: Determine the business type corresponding to the target business scenario, wherein the business type indicates the requirements of the target business scenario; When the business type is the first business type, the playback mode is determined to be the playback of the structured business data contained in the parsed data according to the first time sequence, wherein the first time sequence includes the time sequence indicated by the target business scenario; When the service type is the second service type, the playback mode is determined to be the playback of the original message contained in the parsed data according to the second timing sequence, where the second timing sequence includes the timing sequence indicated by the original message.

[0036] In this embodiment, the service type can be understood as the type of the target service scenario, which can indicate the requirements of the target service scenario. The first timing sequence can be understood as the timing sequence indicated by the target service scenario, which can be determined by the network packet corresponding to the target service scenario. The second timing sequence can be understood as the timing sequence indicated by the original message, which can be consistent with the timing sequence of the original message.

[0037] Specifically, the business type corresponding to the target business scenario is determined. The business type indicates the requirements of the target business scenario. If the business type is the first business type, it means that the reproduction of the target business scenario needs to be more detailed. Therefore, the playback mode is determined to be replaying the structured business data contained in the parsed data according to the first time sequence. Here, the first time sequence can be the time sequence indicated by the target business scenario. If the business type is the second business type, it means that the reproduction of the target business scenario does not need to be very detailed. Therefore, the playback mode is determined to be replaying the original messages contained in the parsed data according to the second time sequence. Here, the second time sequence can be the time sequence indicated by the original messages.

[0038] For example, when recording raw data, nanosecond-level timestamps are used to label the raw data. When playing back the parsed data through the time-series playback module, the time intervals, sending and receiving order, and timing jitter of the parsed data are strictly replicated, with a timing deviation of ≤10μs, to ensure the reproduction of the target business scenario. Figure 3 This is a flowchart of a message playback method provided according to Embodiment 1 of the present invention. Figure 3 As shown, playback parameters are pre-set. When playback is required, parsed data is first loaded into the database, and the parsed data indicated by the playback mode is packetized. Then, playback control can be performed based on the playback parameters and playback mode to reproduce the target business scenario on the network card.

[0039] In one embodiment, after replaying the parsed data according to the playback mode, the method further includes: Determine the playback data, which includes the data obtained by playing back the parsed data according to the playback mode; By comparing the playback data with the original data, a playback comparison report is obtained, which indicates the degree of consistency between the playback data and the original data.

[0040] In this embodiment, playback data can be understood as the data obtained after replaying the parsed data according to the playback mode. The playback comparison report can be understood as a report generated by comparing the playback data and the original data. The playback comparison report can indicate whether the playback data and the original data are consistent, and the degree of consistency.

[0041] Specifically, after replaying the parsed data in playback mode, two modes are supported: silent playback and listening comparison. Silent playback only publishes the playback data. Listening comparison allows users to subscribe to the playback data and automatically compares the playback data with the original data to generate a playback comparison report.

[0042] Example 2 Figure 4This is a flowchart of a method for determining parsed data according to Embodiment 2 of the present invention. This embodiment focuses on the method for determining parsed data in the above embodiments. Figure 4 As shown, the method includes: S210, Determine the original message.

[0043] S220. Parse the original message to obtain structured service data.

[0044] The structured service data includes at least one fragment of the original message, and the fragment indicates the characteristics of the original message.

[0045] In this embodiment, structured service data can be understood as data composed of at least one fragmented message contained in the original message, and the structured service data can be composed of features of the original message. A fragmented message can be understood as a message indicating the features of the original message, and at least one fragmented message can be obtained by parsing the original message.

[0046] Specifically, the original message can be parsed using the protocol parsing module to obtain at least one fragmented message. These fragmented messages are then reassembled to obtain structured business data.

[0047] Optionally, parsing the original message to obtain structured service data includes: Extract at least one fragment of the original message; Reassemble the fragmented packets to obtain the reassembled packet; The redundant control frames contained in the reassembled message are identified, and the redundant control frames in the reassembled message are stripped to obtain structured service data.

[0048] In this embodiment, the reassembled message can be understood as a message obtained by combining the fragmented messages. Redundant control frames can be understood as frames unrelated to the target service scenario, and can include frames such as heartbeat and keep-alive frames.

[0049] For example, fragmented packets may include an RTPS protocol header, Vendor ID, version information, sub-message type (Data, DataFrag, Heartbeat, AckNack, etc.), Participant identifier, Writer / Reader identifier, Sequence number, etc. These fragmented packets are then reassembled to obtain a reassembled packet. Redundant control frames such as heartbeat and keep-alive frames are then removed from the reassembled packet to obtain structured business data.

[0050] S230. The structured service data and the original message are determined as parsed data, and the structured service data and the original message are stored respectively.

[0051] Specifically, structured business data and raw messages are identified as the parsed data. A memory circular queue can be used to cache and smooth out peaks in the parsed data, preventing data loss. Simultaneously, structured business data and raw messages can be stored separately locally on an hourly sharding basis, enabling breakpoint resume functionality. Furthermore, it features automatic disk level control, automatically cleaning up historically cold data when the disk is full.

[0052] For example, such as Figure 2 As shown, the preprocessed raw message is parsed to obtain structured business data. The obtained raw message and structured business data are then time-series tagged and stored separately.

[0053] S240. Based on the target business scenario, determine the playback mode and play back the parsed data according to the playback mode.

[0054] The technical solution of this invention involves parsing the original message to obtain structured service data; determining the structured service data and the original message as parsed data, and storing the structured service data and the original message separately. By determining the structured service data, lossless parsing and fragmented reassembly of the original message are achieved, preserving the characteristics of the original data. Storing the structured service data and the original message separately enables breakpoint preservation of the parsed data, reducing data loss.

[0055] Example 3 Figure 5 This is a schematic diagram of a pattern determining device according to Embodiment 3 of the present invention. Figure 5 As shown, the device includes: The first determining module 310 is used to determine the original message, wherein the original message includes the message corresponding to the original data, and the original data includes data under the target business scenario; The parsing module 320 is used to parse the original message to obtain parsed data, the parsed data including data required to replay the target business scenario; The second determining module 330 is used to determine a playback mode based on the target business scenario, and to play back the parsed data according to the playback mode, wherein the playback mode includes a mode for reproducing the target business scenario.

[0056] The technical solution of this invention involves: determining the original message through a first determining module; parsing the original message through a parsing module to obtain parsed data; and determining a playback mode based on the target business scenario through a second determining module, and playing back the parsed data according to the playback mode. Through the cooperation between these modules, real-time monitoring of the target business scenario is achieved by determining the original message; lossless parsing of the original message is achieved by obtaining parsed data; and non-intrusive data recording and playback are achieved by playing back the parsed data through the playback mode, reducing resource consumption.

[0057] In one embodiment, the first determining module 310 is specifically used for: Configure sniffing parameters, which are related to the load of nodes in the target business scenario; Based on the sniffing parameters, the raw data is collected; The raw data is preprocessed to obtain the raw message corresponding to the raw data.

[0058] In one embodiment, the parsing module 320 includes: A parsing unit is used to parse the original message to obtain structured service data, wherein the structured service data includes at least one fragmented message contained in the original message, and the fragmented message indicates the characteristics of the original message. The determining unit is used to determine the structured service data and the original message as parsed data, and to store the structured service data and the original message respectively.

[0059] In one embodiment, the parsing unit is specifically used for: Extract at least one fragment of the original message; Reassemble the fragmented packets to obtain the reassembled packet; The redundant control frames contained in the reassembled message are identified, and the redundant control frames in the reassembled message are stripped to obtain structured service data.

[0060] In one embodiment, the second determining module 330 is specifically used for: Determine the business type corresponding to the target business scenario, wherein the business type indicates the requirements of the target business scenario; When the business type is the first business type, the playback mode is determined to be the playback of the structured business data contained in the parsed data according to the first time sequence, wherein the first time sequence includes the time sequence indicated by the target business scenario; When the service type is the second service type, the playback mode is determined to be the playback of the original message contained in the parsed data according to the second timing sequence, where the second timing sequence includes the timing sequence indicated by the original message.

[0061] In one embodiment, the pattern determining apparatus further includes a comparison module, specifically used for: Determine the playback data, which includes the data obtained by playing back the parsed data according to the playback mode; By comparing the playback data with the original data, a playback comparison report is obtained, which indicates the degree of consistency between the playback data and the original data.

[0062] The pattern determination device provided in this embodiment of the invention can execute the pattern determination method provided in any embodiment of the invention. Through the cooperation and coordination between the modules, it completes the recording and playback of messages, and has the corresponding functional modules and beneficial effects of the execution method.

[0063] Example 4 According to embodiments of the present invention, the present invention also provides an electronic device, a computer-readable storage medium, and a computer program product.

[0064] Figure 6 This is a block diagram of an electronic device according to Embodiment 4 of the present invention, which implements the pattern determination method described in the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0065] like Figure 6As shown, the electronic device 410 includes at least one processor 411 and a memory, such as a read-only memory (ROM) 412 or a random access memory (RAM), communicatively connected to the at least one processor 411. The memory stores computer programs executable by the at least one processor. The processor 411 can perform various appropriate actions and processes based on the computer program stored in the ROM 412 or loaded from storage unit 418 into the RAM 413. The RAM 413 can also store various programs and data required for the operation of the electronic device 410. The processor 411, ROM 412, and RAM 413 are interconnected via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.

[0066] Multiple components in the electronic device are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, optical disk, etc.; and a communication unit 419, such as a network card, modem, wireless transceiver, etc. The communication unit 419 allows the electronic device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0067] Processor 411 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 411 performs the various methods and processes described above, such as pattern determination methods.

[0068] In some embodiments, the pattern determination method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 410 via ROM 412 and / or communication unit 419. When the computer program is loaded into RAM 413 and executed by processor 411, one or more steps of the pattern determination method described above may be performed. Alternatively, in other embodiments, processor 411 may be configured to perform the pattern determination method by any other suitable means (e.g., by means of firmware).

[0069] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0070] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0071] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0072] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0073] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0074] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0075] In some embodiments, the computer program product includes a computer program that, when executed by a processor, implements the pattern determination method provided in the embodiments of the present invention.

[0076] The technical solution of this invention provides a mode determination method, apparatus, electronic device, storage medium, and program product. The process involves: determining the original message; parsing the original message to obtain parsed data; determining a playback mode based on the target business scenario; and playing back the parsed data according to the playback mode. By determining the original message, real-time monitoring of the target business scenario is achieved; by parsing the original message to obtain parsed data, lossless parsing of the original message is achieved; and by playing back the parsed data using the playback mode, non-intrusive data recording and playback are achieved, reducing resource consumption.

[0077] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0078] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for determining a pattern, characterized in that, include: Determine the original message, which includes the message corresponding to the original data, and the original data includes data under the target business scenario; The original message is parsed to obtain parsed data, which includes data required to replay the target business scenario. Based on the target business scenario, a playback mode is determined, and the parsed data is played back according to the playback mode. The playback mode includes a mode that reproduces the target business scenario.

2. The method according to claim 1, characterized in that, The determination of the original message includes: Configure sniffing parameters, which are related to the load of nodes in the target business scenario; Based on the sniffing parameters, the raw data is collected; The raw data is preprocessed to obtain the raw message corresponding to the raw data.

3. The method according to claim 1, characterized in that, The parsing of the original message to obtain parsed data includes: The original message is parsed to obtain structured service data, which includes at least one fragmented message contained in the original message, and the fragmented message indicates the characteristics of the original message. The structured business data and the original message are identified as parsed data, and the structured business data and the original message are stored respectively.

4. The method according to claim 3, characterized in that, The parsing of the original message yields structured service data, including: Extract at least one fragment of the original message; Reassemble the fragmented packets to obtain the reassembled packet; The redundant control frames contained in the reassembled message are identified, and the redundant control frames in the reassembled message are stripped to obtain structured service data.

5. The method according to claim 1, characterized in that, The step of determining the playback mode based on the target business scenario includes: Determine the business type corresponding to the target business scenario, wherein the business type indicates the requirements of the target business scenario; When the business type is the first business type, the playback mode is determined to be the playback of the structured business data contained in the parsed data according to the first time sequence, wherein the first time sequence includes the time sequence indicated by the target business scenario; When the service type is the second service type, the playback mode is determined to be the playback of the original message contained in the parsed data according to the second timing sequence, where the second timing sequence includes the timing sequence indicated by the original message.

6. The method according to claim 1, characterized in that, After replaying the parsed data according to the playback mode, the method further includes: Determine the playback data, which includes the data obtained by playing back the parsed data according to the playback mode; By comparing the playback data with the original data, a playback comparison report is obtained, which indicates the degree of consistency between the playback data and the original data.

7. A pattern determining device, characterized in that, include: The first determining module is used to determine the original message, wherein the original message includes the message corresponding to the original data, and the original data includes data under the target business scenario; The parsing module is used to parse the original message to obtain parsed data, which includes data required for replaying the target business scenario; The second determining module is used to determine a playback mode based on the target business scenario, and to play back the parsed data according to the playback mode, wherein the playback mode includes a mode for reproducing the target business scenario.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the pattern determination method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the pattern determination method according to any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the pattern determination method according to any one of claims 1-6.