Method for receiving and outputting and converting various channel information of Linux system

By introducing component loaders and multiple data processing modules in the Linux system, unified management of information of different channels and cross-channel data conversion are realized, the inefficiency problem caused by channel differences is solved, and the system management efficiency and security is improved sex.

CN119046215APending Publication Date: 2024-11-29KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411199737.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The uniqueness and differences in operating methods of different channels in Linux systems lead to the challenge of unified reception and output, limiting the efficiency of the system in data transmission and monitoring.

Method used

Using component loader, message data receiver, data preprocessor, information classifier, format converter and channel converter, various types of modules are realized through system initialization, information reception, preprocessing, classification, format conversion and channel conversion. Unified management of channel information and cross-channel data conversion.

Benefits of technology

It simplifies the management of multiple channels in Linux systems, improves the efficiency and accuracy of data processing, enhances system security, and improves maintainability and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046215A_ABST
    Figure CN119046215A_ABST
Patent Text Reader

Abstract

The invention relates to a method for receiving and outputting and converting information of various channels of a Linux system, and relates to the technical field of computers, and the method comprises the following steps: S1, a starting stage: when the system is initialized, loading and initializing a plurality of required modules through a component loader according to configuration, S2, receiving information data: monitoring information data of different channels through an information data receiver, s3, data preprocessing: performing preprocessing operations of de-duplication, filtering and format conversion on the received message data through a data preprocessor, S4, information classification: classifying the preprocessed message data through an information classifier according to a preset classification rule, s5, data format conversion: judging whether the current message data needs to be subjected to data format conversion or not based on the demand information through a format converter; and S6, inter-channel data conversion: judging whether the current message data needs to be subjected to channel conversion or not based on the demand information through a channel converter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for receiving and outputting various channel information of a Linux system. Background Art

[0002] The Linux system has built-in multiple communication channels, including pipes, message queues, shared memory, semaphores, and DBus, which enable communication and data exchange between processes. However, due to the differences in characteristics and operations of these channels, they also bring complexity in management and monitoring. That is, the uniqueness of different channels and the differences in operation methods currently make unified reception and output a challenge, which limits the efficiency of the system in data transmission and monitoring.

[0003] In the prior art, CN113467725B provides a special equipment multi-protocol conversion system, terminal and readable storage medium, specifically providing a special equipment multi-protocol conversion system, terminal and readable storage medium, receiving data source judgment module for receiving data information, and judging the communication mode, classifying the received communication mode and storing it in the data buffer partition module; the protocol processing module is used to parse different types of communication data, parse out the protocol type, and extract data; the protocol conversion module is used to uniformly measure the parsed data and unify the encoding format; the protocol collection processing module is used to write the converted data to the Ethernet output buffer. The present invention is based on the design and implementation of the special equipment multi-protocol conversion system, selects a variety of communication modes, analyzes the special equipment multi-protocol conversion system process, applies the Petri net model theory to establish the network model of the special equipment multi-protocol conversion system, analyzes and verifies the network accessibility, boundedness and security, and realizes the research and development of the special equipment multi-protocol conversion system. This invention proposes a special equipment multi-protocol conversion, which is mainly established by applying the Petri net model theory. It is not the protocol conversion output of each channel of the liunx system, but a special equipment multi-protocol conversion system.

[0004] CN108965365A provides a data processing method, terminal, and computer storage medium, and specifically proposes a data processing method, terminal, and computer storage medium, wherein the method includes: merging at least two business requests into a first request; sending the first request to a server, requesting to establish a full-duplex communication connection with the server; receiving feedback data corresponding to the first request on a data transmission channel obtained based on the communication connection; splitting the feedback data into at least two groups of first data according to request parameters parsed from the at least two business requests; formatting the at least two groups of first data to obtain at least two groups of second data; providing the at least two groups of second data to a business application layer, and displaying business data in the business application layer. This invention proposes merging multiple business requests into a first request, and formatting the data, but it is not information conversion of the liunx system channel.

[0005] CN113467725B provides an output management method, system, device and medium for a Linux platform graphic application, which enters a printing process or a save as process according to the judgment of an application triggering event. Enter the save as process, judge whether it is a "second save as" event, if so, send a second print request to the file name query service, otherwise dynamically adjust the output mode options of the "save as" dialog box according to the user's authority, display the "save as" dialog box, and wait for the user to execute the file save as operation. Enter the printing process, send the print task to the CPUS print filter and query the status control table, record the query results according to the current printing task, execute the file print output or send a file name query request to the file name query service, execute the file name search task, so as to correctly obtain the original file full path name of the current printing content. Provide a key solution for information security management and control based on the file body and a unified document output management method for applications. This invention proposes filtering, transferring and outputting information according to the judgment of the application triggering event, and provides a communication method based on a pipeline, but does not realize unified processing across channels, and does not support unified format conversion of information from different channels.

[0006] CN105429864A provides a data exchange center, system, method, data sending and receiving method, and device, wherein a data exchange method includes: a data sending device converts data information according to a predetermined data format, and then encapsulates it according to a predetermined transmission form, and sends the encapsulated data information to a receiving channel of a data exchange center; the data exchange center reads the data information transmitted by the data sending device from the receiving channel, and sends it to the channel of the data receiving device; the data receiving device reads the data information from the channel, decapsulates the data information according to the transmission form, and then converts it into a format supported by the receiving device. The data exchange center, system, method, data sending and receiving method, and device provided by the present invention can ensure the uniformity of data formats, avoid architectural differences, and realize data exchange. This invention proposes to realize data exchange and ensure the uniformity of data formats for a data exchange center and a system, but is not for different channels of a Liunx system, and does not cover cross-channel data conversion. Summary of the invention

[0007] To solve the above problems, the present invention provides a method for receiving and outputting various channel information of a Linux system, which adopts the following technical solution: A method for receiving and outputting various channel information of a Linux system, comprising: S1 startup phase: When the system is initialized, the component loader loads and initializes multiple required modules according to the configuration, and handles the dependencies between multiple modules during the loading process; S2 receives information data: monitors message data of different channels through a message data receiver. When the message data is monitored, the message data receiver passes the message data to the data preprocessor, and the message data has corresponding demand information; S3 data preprocessing: The data preprocessor performs deduplication, filtering, and format conversion on the received message data, and passes the preprocessed message data to the information classifier; S4 information classification: classifying the preprocessed message data by the information classifier according to preset classification rules, and passing the classified message data to the format converter according to the requirement information corresponding to the message data, wherein the requirement information records the target format and target channel of the message data; S5 data format conversion: judging whether the current message data needs to be converted in data format based on the requirement information through a format converter; if necessary, converting the format of the message data into the target format and passing the converted message data to the channel converter; if not, directly passing the message data to the channel converter; S6 Inter-channel data conversion: The channel converter determines whether the current message data needs channel conversion based on the demand information. If necessary, the channel of the message data is converted to the target channel, and the converted message data is sent out from the target channel. If not, the message data is directly sent out from the original channel.

[0008] In another possible implementation, the method further includes: S7 channel status monitoring: The channel monitor monitors the channel status and performance indicators in real time. When there is an abnormal channel status or performance degradation, the channel monitor triggers the corresponding alarm or automatic repair operation.

[0009] In another possible implementation, the method further includes: S8 Information filtering: Filter the information required by the user according to the user-defined rules through the information filter, and pass the filtered information to the data visualizer.

[0010] In another possible implementation, the method further includes: S9 Data Visualization: Receive the data to be displayed through the data visualizer, and display the data to be displayed to the user in a graphical manner.

[0011] In another possible implementation, the method further includes: S10 simulation and testing: Generate simulated message data through the message simulator, simulate the data receiving and output process, and test and verify the functions and performance of each module in the data receiving and output process.

[0012] In another possible implementation, the method further includes: S11 Security: The security processor is responsible for the security of data reception and output processes.

[0013] In another possible implementation, the method further includes: S12 performance optimization: The performance optimizer can be used to automatically or manually adjust the performance of each module to optimize performance.

[0014] In summary, the present application includes at least the following beneficial technical effects: (1) Simplified the management of various channel information in Linux systems.

[0015] (2) Improved the efficiency and accuracy of data processing.

[0016] (3) Enhanced system security to ensure the security of data transmission and processing.

[0017] (4) Modular design improves the maintainability and scalability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the architecture of a method for receiving and outputting various types of channel information in a Linux system in an embodiment of the present application.

[0019] Figure 2 It is a flowchart of a method for receiving and outputting various channel information of a Linux system in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The present application is further described in detail below in conjunction with the accompanying drawings.

[0021] After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but such modifications are protected by patent law as long as they are within the scope of the claims of this application.

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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.

[0023] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0024] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0025] First, in order to facilitate a better understanding of this application, the abbreviations and key terms in this application are explained as follows: IPC (Inter-Process Communication): refers to the technology and methods for exchanging data between different processes.

[0026] Socket: A programming interface for network communication that allows connections to be established and data to be transmitted between different processes or different computers.

[0027] Pipe: A half-duplex communication mechanism that allows data to flow in one direction, particularly suitable for communication between related processes.

[0028] Named Pipe: A pipe communication method that has a specific file node in the file system and supports communication between any two processes.

[0029] Message Queue: A mechanism for inter-process communication that allows a process to send messages to a queue, while other processes can receive and process these formatted data streams from the queue.

[0030] Shared Memory: An efficient inter-process communication method that allows multiple processes to directly access the same memory area.

[0031] Semaphore: A mechanism for synchronizing multiple processes' access to shared resources. It coordinates processes by controlling the number of semaphores.

[0032] DBus: An advanced inter-process communication mechanism, mainly used for communication between desktop environments and applications.

[0033] Syslog: A standard protocol for system logging and message notification, widely used in various operating systems.

[0034] The present application embodiment provides a method for receiving and outputting various channel information of a Linux system, such as Figure 1 As shown, the method is implemented by six modules: component loader, message data receiver, data preprocessor, information classifier, format converter and channel converter. The functions of each module are as follows: Component Loader: Component Loader is the key to improving system flexibility and adaptability. It supports dynamic module loading and unloading, plug-and-play integration, version control, automatic dependency management, and flexible configuration management to ensure instant function expansion and stability maintenance of the system. Message Data Receiver: Receives message data from different channels in a unified manner; Data Preprocessor: performs preprocessing operations such as data deduplication, filtering, and format conversion; Information classifier: classifies message data according to content or attributes; Format Converter: Convert data into JSON, XML, CSV and other formats; Channel Converter: realizes message data conversion between different channels.

[0035] like Figure 2 As shown, the specific process of the above six modules completing the reception and output conversion of various channel information is as follows: S1 startup phase: When the system is initialized, the component loader loads and initializes multiple required modules according to the configuration, and handles the dependencies between multiple modules during the loading process to ensure that multiple modules can be loaded correctly and are ready to work; S2 receives information data: monitors message data of different channels through a message data receiver. When the message data is monitored, the message data receiver passes the message data to the data preprocessor, and the message data has corresponding demand information; S3 data preprocessing: The data preprocessor performs deduplication, filtering, and format conversion on the received message data, and passes the preprocessed message data to the information classifier; S4 Information Classification: The pre-processed message data is classified by the information classifier according to preset classification rules, and the classified message data is passed to the format converter according to the requirement information corresponding to the message data. The requirement information records the target format and target channel of the message data.

[0036] For the embodiment of the present application, the information classifier can classify the pre-processed message data into different categories or topics, where, according to the content, it can be divided into system information (some data results of the program itself) and application information (different data of each channel), according to the file type, it can be divided into persistent data (logs, operation records, etc.) and temporary data (caches, temporary files, etc.), the target format of the message data refers to the format of the message data that the user wants to get, and the target channel refers to the channel through which the user wants to get the message data. S5 data format conversion: The format converter determines whether the current message data needs to be converted in data format based on the requirement information. If necessary, the format of the message data is converted into the target format, and the converted message data is passed to the channel converter. If not, the message data is directly passed to the channel converter.

[0037] For the embodiment of the present application, when the format converter receives message data, since there is a situation where data format conversion is not needed, the format converter will first determine whether the current message data needs to be converted based on the demand information. When necessary, the format of the message data is converted to the target format (such as JSON, XML, and CSV, etc.), and the converted message data is passed to the channel converter; when it is not needed, the format converter will not perform the format conversion operation, and directly pass the received message data to the channel converter.

[0038] S6 Inter-channel data conversion: The channel converter determines whether the current message data needs channel conversion based on the demand information. If necessary, the channel of the message data is converted to the target channel, and the converted message data is sent out from the target channel. If not, the message data is directly sent out from the original channel.

[0039] For the embodiment of the present application, when the channel converter receives a data message, since there is data that does not require channel conversion, the channel converter will first determine whether the currently received message data needs channel conversion based on the demand information. When necessary, the channel converter will perform the conversion operation and send the converted message data through the target channel; when not necessary, the channel converter will not perform the conversion operation and directly send the message data from the original channel, where the original channel refers to the channel when the message data was collected.

[0040] By adopting the above method, the present application integrates multiple IPC mechanisms and can select the most appropriate IPC mechanism according to the application scenario, so that each IPC mechanism can play its own advantages, thereby enabling the present application to support the mutual conversion of information data between different types of channels.

[0041] Furthermore, in the embodiment of the present application, there is also a function of real-time monitoring and logging, thereby enhancing the high availability of the present application. Specifically, this function is implemented by a channel monitor, a message simulator, a security processor, a data visualizer, and a performance optimizer. The functions of each module are as follows: Channel Monitor: monitors the status and performance indicators of the channel in real time. Once an abnormality or performance degradation is found, the monitor will trigger the corresponding alarm or automatic repair operation; Message Simulator: used to generate simulated message data to test and verify the functionality and performance of the system, helping developers to discover and fix potential problems; Security Processor: Responsible for ensuring the security of data transmission and processing, including encryption, decryption, authentication, access control and other security measures; Data Visualizer: Graphical display of data; Exchange Performance Optimizer: monitors system performance and automatically or manually adjusts configurations to optimize performance, including load balancing, cache management, resource allocation, and other optimization strategies.

[0042] The specific implementation process of channel monitor, message simulator, security processor, data visualizer and performance optimizer is as follows: 1. In the process of receiving and outputting various channel information in modules S1 to S6, the channel monitor monitors the channel status and performance indicators of each module in real time. When there is an abnormality or performance degradation, the channel monitor will trigger the corresponding alarm or automatic repair operation. The channel monitor can generate log records for each module through a variety of logging tools (such as syslog, auditd, etc.), recording events, user operations and other important information.

[0043] 2. The message simulator generates simulated message data and simulates the process of receiving, converting and outputting message data from S1 to S6 to test and verify the functions and performance of each module. The message simulator simulates various scenarios and abnormal situations to help developers discover and fix potential problems.

[0044] For the embodiments of the present application, the simulation mechanism of the message simulator simulates different channels for sandbox testing, thereby easily realizing multi-opening of applications, that is, running multiple instances at the same time, and performing multiple tasks at the same time. The sandbox technology also has an architecture compatibility function and can run on host systems of different architectures. The use of sandbox isolation reduces the installation required on the host system. In addition, by limiting the permissions and resource access of applications, potential security threats can be prevented from affecting the entire system.

[0045] 3. Use the performance optimizer to automatically or manually adjust the configuration to optimize the performance of each module. More specifically, the performance optimizer includes the following optimization strategies: Minimize installation and configuration: To improve system security, administrators should try to reduce unnecessary services and functions when installing and configuring Linux systems.

[0046] System parameter adjustment: Adjust Linux kernel parameters such as network settings, file system configuration, etc. as needed to adapt to different workloads and performance requirements.

[0047] Monitoring indicators: Continuously monitor system performance indicators such as CPU usage, memory usage, disk I / O, and network traffic.

[0048] Workload: Spreading workloads to multiple processing units or servers can effectively increase the processing power and response speed of the system.

[0049] Cache management: Using cache mechanisms to reduce the number of accesses to the backend database can significantly improve system performance. This includes adjusting Linux kernel parameters to improve network and disk I / O performance and using cache mechanisms to reduce access to the backend database.

[0050] Resource allocation: Rationally allocate system resources, such as CPU, memory, and disk I / O, to ensure that key applications and services have sufficient resources to run.

[0051] Furthermore, the present application also has the function of ensuring the security of message data transmission, which is mainly achieved through a security manager, specifically including the following security measures: Security Diversity: Supports multiple encryption algorithms and protocols, such as AES, RSA, TLS, etc., to protect the confidentiality and integrity of data.

[0052] File permissions: File permissions include read (r), write (w), and execute (x), which can be set for the file owner, group, and other users respectively.

[0053] Firewall mechanism: used to monitor and control network traffic and block malicious connections, detect and prevent potential attacks.

[0054] Furthermore, the present application also has the effect of optimizing the user experience and ensuring that the message content can be clearly displayed and delivered instantly. This is specifically achieved through a data visualizer, which is connected to each module and can display the message data processed by each module in a graphical manner, so that users can intuitively view and analyze data through a visual interface.

[0055] Through the above method, the application realizes the automation and intelligence of the whole process from data reception to processing, classification, conversion, visualization, etc. through the collaborative work and data flow between modules. At the same time, the introduction of component loader makes the system highly flexible and scalable, and can dynamically load or unload modules according to needs to adapt to different application scenarios and changing needs.

[0056] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0057] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for receiving and outputting various channel information in Linux system. It is characterized in that include: S1 startup phase: When the system is initialized, the component loader loads and initializes multiple required modules according to the configuration, and handles the dependencies between multiple modules during the loading process; S2 receives information data: monitors message data of different channels through a message data receiver. When the message data is monitored, the message data receiver passes the message data to the data preprocessor, and the message data has corresponding demand information; S3 data preprocessing: The data preprocessor performs deduplication, filtering, and format conversion on the received message data, and passes the preprocessed message data to the information classifier; S4 information classification: classifying the preprocessed message data by the information classifier according to preset classification rules, and passing the classified message data to the format converter according to the requirement information corresponding to the message data, wherein the requirement information records the target format and target channel of the message data; S5 data format conversion: judging whether the current message data needs to be converted in data format based on the requirement information through a format converter; if necessary, converting the format of the message data into the target format and passing the converted message data to the channel converter; if not, directly passing the message data to the channel converter; S6 Inter-channel data conversion: The channel converter determines whether the current message data needs channel conversion based on the demand information. If necessary, the channel of the message data is converted to the target channel, and the converted message data is sent out from the target channel. If not, the message data is directly sent out from the original channel.

2. A method for receiving and outputting various channel information of a Linux system according to claim 1, It is characterized in that The method further comprises: S7 channel status monitoring: The channel monitor monitors the channel status and performance indicators in real time. When there is an abnormal channel status or performance degradation, the channel monitor triggers the corresponding alarm or automatic repair operation.

3. A method for receiving and outputting various channel information of a Linux system according to claim 1, It is characterized in that The method further comprises: S8 Information filtering: Filter the information required by the user according to the user-defined rules through the information filter, and pass the filtered information to the data visualizer.

4. A method for receiving and outputting various channel information of a Linux system according to claim 1, It is characterized in that The method further comprises: S9 Data Visualization: Receive the data to be displayed through the data visualizer, and display the data to be displayed to the user in a graphical manner.

5. A method for receiving and outputting various channel information of a Linux system according to claim 1, It is characterized in that The method further comprises: S10 simulation and testing: Generate simulated message data through the message simulator, simulate the data receiving and output process, and test and verify the functions and performance of each module in the data receiving and output process.

6. A method for receiving and outputting various channel information of a Linux system according to claim 1, It is characterized in that The method further comprises: S11 Security: The security processor is responsible for the security of data reception and output processes.

7. A method for receiving and outputting various channel information of a Linux system according to claim 1, It is characterized in that The method further comprises: S12 performance optimization: The performance optimizer can be used to automatically or manually adjust the performance of each module to optimize performance.