Data stream transmission environment self-healing method and device, storage medium and terminal

By adding environment tags to the data stream and identifying and forwarding receipt requests after the external server responds, the problem of traffic channeling in the environment when data streams are transmitted between different institutions and platforms is solved, ensuring that the data is processed in the correct environment and avoiding data errors and Security risks.

CN118740737APending Publication Date: 2024-10-01CHONGQING ANT CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410986620.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Data flows between different institutions and platforms are prone to traffic channeling problems during the transmission process, leading to data errors and security risks.

Method used

By adding a target environment tag to the target data flow in the internal domain, and initiating an acceptance request to the external server, the tag is identified after receiving the acknowledgment request and sent to the target environment to ensure that the data is processed in the correct environment.

Benefits of technology

It achieves the environmental consistency of data flow in the internal network domain, avoids data errors and security risks caused by traffic channeling in the environment, and ensures that data is processed in the correct environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740737A_ABST
    Figure CN118740737A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data stream transmission environment self-healing method and device, a storage medium and a terminal. Determining a target data stream in the internal network domain, and adding a target environment label corresponding to a target environment to the target data stream according to the target environment to which the target data stream belongs; initiating an acceptance request corresponding to the target data stream to an external server in the external network domain, and receiving a receipt request returned by the external server in response to the acceptance request; and identifying a target environment label of the target data stream based on the receipt request, and sending the receipt request to a target environment corresponding to the target environment label. As the environment label corresponding to the environment where the data stream is located is added to the data stream of the internal network domain, after the receipt request for the data stream is returned from the external network domain, the environment label of the data stream can be determined according to the receipt request, and then the data stream is transmitted to the corresponding environment, so that the data stream is processed in the correct environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular, to a method, device, storage medium, and terminal for self-healing a data stream transmission environment. Background Art

[0002] With the rapid development of the Internet in recent years, more and more institutions and platforms are providing online services to users based on software programs. Various institutions and platforms usually provide different services, so different institutions and platforms often connect with each other to provide users with better and more complex services. The network domains used by different institutions and platforms are often configured with different data traffic environment standards, which are used to isolate from the outside to protect internal data information security and maintain internal environment stability. However, due to the different environmental standards of internal and external institutions, it is easy to cause traffic transmission errors when transmitting information flows. Summary of the invention

[0003] The embodiments of this specification provide a data stream transmission environment self-healing method, device, storage medium and terminal, which can solve the technical problem in the related art that data traffic in a certain environment is easily transmitted to other non-interconnected environments.

[0004] In a first aspect, an embodiment of the present specification provides a method for self-healing a data stream transmission environment, the method comprising:

[0005] Determine a target data flow in the internal network domain, and add a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs;

[0006] Initiating an acceptance request corresponding to the target data flow to an external server in an external network domain, and receiving a receipt request returned by the external server in response to the acceptance request;

[0007] The target environment tag of the target data stream is identified based on the receipt request, and the receipt request is sent to the target environment corresponding to the target environment tag, so that the internal server in the internal network domain processes the receipt request in the target environment.

[0008] In a possible implementation, the above-mentioned adding a target environment label corresponding to the target environment to the target data stream according to the target environment to which the target data stream belongs includes: determining the target environment to which the target data stream belongs, adding the target environment label corresponding to the target environment to the target data stream, and storing the target data stream carrying the environment label to the internal database of the above-mentioned internal network domain.

[0009] In a possible implementation, the identifying the target environment label of the target data stream based on the receipt request includes: parsing the receipt request to obtain the target data stream corresponding to the receipt request, and reading the target environment label of the target data stream from the internal database.

[0010] In a possible implementation, the sending of the receipt request to the target environment corresponding to the target environment tag includes: placing the receipt request into an environment self-healing scheduling library, so that when the target scheduling task scans the receipt request in the environment self-healing scheduling library based on the target environment tag, the receipt request is sent to the target environment corresponding to the target environment tag.

[0011] In a possible implementation, there are at least two isolated environments in the internal network domain and scheduling tasks corresponding to each environment are pre-set for each environment. Each scheduling task is used to continuously scan the environment self-healing scheduling library and schedule receipt requests belonging to its corresponding environment.

[0012] In a possible implementation manner, the internal network domain and the external network domain have different environmental standards respectively, and the environmental standards are at least used to specify a transmission range of data traffic.

[0013] In a second aspect, an embodiment of the present specification provides a data stream transmission environment self-healing device, the device comprising:

[0014] A label adding module, used for determining a target data flow in an internal network domain, and adding a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs;

[0015] An external interaction module, used for initiating an acceptance request corresponding to the target data flow to an external server in an external network domain, and receiving a receipt request returned by the external server in response to the acceptance request;

[0016] The environmental self-healing module is used to identify the target environment label of the target data flow based on the receipt request, and send the receipt request to the target environment corresponding to the target environment label, so that the internal server in the internal network domain processes the receipt request in the target environment.

[0017] In a third aspect, an embodiment of the present specification provides a computer program product comprising instructions, which, when executed on a computer or a processor, enables the computer or the processor to execute the steps of the above method.

[0018] In a fourth aspect, an embodiment of the present specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the above method.

[0019] In a fifth aspect, an embodiment of the present specification provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is suitable for being loaded by the processor and executing the steps of the above method.

[0020] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:

[0021] The embodiments of this specification provide a method for self-healing a data stream transmission environment, which determines a target data stream in an internal network domain, adds a target environment label corresponding to the target environment to the target data stream according to the target environment to which the target data stream belongs; initiates an acceptance request corresponding to the target data stream to an external server in an external network domain, and receives a receipt request returned by the external server in response to the acceptance request; identifies the target environment label of the target data stream based on the receipt request, and sends the receipt request to the target environment corresponding to the target environment label, so that the internal server in the internal network domain processes the receipt request in the target environment. Since the environment label corresponding to the environment in which the data stream in the internal network domain is added, when the receipt request for the data stream is returned from the external network domain, the environment label of the data stream can be determined according to the receipt request, and the environment to which the data stream belongs can be accurately oriented, and then the data stream can be transmitted to the corresponding environment, so that the data stream can be processed in the correct environment, maintaining the environmental consistency of the data stream in the internal network domain, achieving environmental self-healing, and avoiding problems such as data errors caused by traffic flowing into the environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 A schematic diagram of data flow transmission when different organizations perform software service docking according to an embodiment of this specification;

[0024] Figure 2 An exemplary system architecture diagram of a data stream transmission environment self-healing method provided in an embodiment of this specification;

[0025] Figure 3 A flowchart of a data stream transmission environment self-healing method provided in an embodiment of this specification;

[0026] Figure 4 A flowchart of a data stream transmission environment self-healing method provided in an embodiment of this specification;

[0027] Figure 5 A logical flow chart of a data stream transmission environment self-healing method provided in an embodiment of this specification;

[0028] Figure 6 A structural block diagram of a data stream transmission environment self-healing device provided in an embodiment of this specification;

[0029] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of this specification. DETAILED DESCRIPTION

[0030] In order to make the features and advantages of the embodiments of this specification more obvious and easy to understand, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the embodiments of this specification.

[0031] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of this specification. Instead, they are only examples of devices and methods consistent with some aspects of the embodiments of this specification as detailed in the attached claims.

[0032] With the rapid development of the Internet in recent years, more and more institutions and platforms are providing online services to users based on software programs. Various institutions and platforms usually provide services in different aspects, so different institutions and platforms often connect with each other to provide users with better and more complex services. For example, for financial institutions, when users pay for products at financial institutions, financial institutions need to request the user's payment results from banking institutions or payment institutions. After the banking institutions or payment institutions return the user's payment results to the financial institutions where the user made the payment behavior, the financial institutions provide users with corresponding products and services based on the user's payment results. Therefore, the software service connection between different institutions is a crucial task, which is directly related to the security of data, the stability of the system and the smoothness of the service process.

[0033] Internet products themselves have multiple environments, which are often isolated from each other and do not affect each other. Different environments usually have different characteristics and limitations. According to these characteristics, technicians can develop products at different stages in different environments. For example, in the software development life cycle, the software environment is generally divided into multiple environments such as DEV (development environment), SIT (system integration test environment), PRE (pre-release environment), GRAY (grayscale environment) and PROD (production environment). Among them, the DEV environment is the main place for developers to write and test code. The DEV environment allows developers to freely experiment and debug code, and perform preliminary function implementation and testing; the SIT environment is used to verify whether the integration and interaction between different modules in the system are working properly; the PRE environment simulates the production environment as much as possible, in which the final stage of testing and verification before the software is released to the production environment can be carried out; and the GRAY environment is a quasi-production environment, which allows new features or modifications to be tested among some users to ensure the stability and user acceptance of the function before full promotion; the PROD environment, that is, the production environment, is where the software provides services to end users, and its stability and performance are crucial. We develop, test, and validate multiple environments step by step to ensure that the software deployed to the production environment has high availability, reliability, and performance to meet user needs.

[0034] Understandably, these environments are isolated from each other in order to ensure that each stage of software development, testing, deployment, and operation can be carried out independently without interfering with each other, thereby improving the quality, stability, and security of the software. Isolated environment configuration can also prevent sensitive data from being leaked or lost between different environments. At the same time, it can also avoid data confusion and contamination between different environments, improving data security and integrity. In the case of multi-environment configuration isolation, if a problem occurs, the technician can quickly locate the environment where the problem is, troubleshoot and repair the problem, without affecting the normal operation of other environments.

[0035] However, when connecting software services between different organizations and platforms, a significant challenge is the inconsistency of environmental standards. Due to the different technical architectures, security policies, and transaction requirements of each organization, it is often difficult to completely align their environmental configurations. In addition, when connecting externally, each organization connects based on the production environment facing the user layer, while the development environment, test environment, etc. are not open to the public. For easier understanding, please refer to Figure 1 , Figure 1 This is a schematic diagram of data flow transmission when different organizations perform software service docking according to an embodiment of this specification. Figure 1As shown in (A), institutions A and B each have their own network domains. Institution A's network domain contains its own DEV development environment, SIT system integration test environment, PRE pre-release environment, and PROD production environment. Institution B's network domain contains the PROD production environment. In institution A, the DEV development environment, SIT system integration test environment, and PRE pre-release environment all belong to the intranet and cannot directly receive external data streams. Instead, they receive external data streams through the PROD production environment that is external and user-oriented. That is, for institution A, external data streams will flow directly into the PROD production environment. Similarly, for institution B, external data streams will also flow directly into the PROD production environment.

[0036] Please continue reading Figure 1 In (B), after data flow a flows from the internal SIT system integration test environment of institution A to institution B, if institution B sends data flow a back to institution A after response processing, data flow a will flow into the PROD production environment of institution A. This causes data flow a to flow from the internal SIT system integration test environment to the PROD production environment within institution A, causing the problem of "flow flowing into the environment" of data flow. In other words, data or requests that should have been transmitted within a specific environment are accidentally leaked to other environments due to cross-institutional transmission, resulting in serious consequences such as data pollution, service interruption, and even customer privacy leakage.

[0037] Therefore, the embodiments of this specification provide a method for self-healing a data stream transmission environment to solve the technical problem that data traffic in a certain environment mentioned above is easily transmitted to other non-interconnected environments.

[0038] See also Figure 2 , Figure 2 An exemplary system architecture diagram of a data stream transmission environment self-healing method provided in an embodiment of this specification.

[0039] like Figure 2 As shown, the system architecture may include a terminal 201, a network 202, and a server 203. The network 202 is used to provide a medium for a communication link between the terminal 201 and the server 203. The network 202 may include various types of wired communication links or wireless communication links, for example, the wired communication link includes an optical fiber, a twisted pair, or a coaxial cable, and the wireless communication link includes a Bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, or a microwave communication link.

[0040] The terminal 201 can interact with the server 203 through the network 202 to receive messages from the server 203 or send messages to the server 203, or the terminal 201 can interact with the server 203 through the network 202 to receive messages or data sent by other users to the server 203. The terminal 201 can be hardware or software. When the terminal 201 is hardware, it can be various electronic devices, including but not limited to smart phones, tablet computers, laptop portable computers and desktop computers. When the terminal 201 is software, it can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules (for example: used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.

[0041] In an embodiment of the present specification, terminal 201 first determines the target data flow in the internal network domain, and adds a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs; then, terminal 201 can continue to initiate an acceptance request corresponding to the target data flow to an external server in the external network domain, and receive a receipt request returned by the external server in response to the acceptance request; at this time, terminal 201 identifies the target environment label of the target data flow based on the receipt request, and sends the receipt request to the target environment corresponding to the target environment label, so that the internal server in the internal network domain processes the receipt request under the target environment.

[0042] The server 203 may be a business server that provides various services. It should be noted that the server 203 may be hardware or software. When the server 203 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or it may be implemented as a single server. When the server 203 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or it may be implemented as a single software or software module, which is not specifically limited herein.

[0043] Alternatively, the system architecture may not include the server 203. In other words, the server 203 may be an optional device in the embodiments of this specification, that is, the method provided in the embodiments of this specification may be applied to a system structure that only includes the terminal 201, and the embodiments of this specification do not limit this.

[0044] It should be understood that Figure 2 The number of terminals, networks and servers in the figure is only for illustration and any number of terminals, networks and servers may be used according to implementation requirements.

[0045] See also Figure 3 , Figure 3A flowchart of a data stream transmission environment self-healing method provided for an embodiment of this specification. The execution subject of the embodiment of this specification can be a terminal that executes the data stream transmission environment self-healing, or a processor in the terminal that executes the data stream transmission environment self-healing method, or a data stream transmission environment self-healing service in the terminal that executes the data stream transmission environment self-healing method. For the convenience of description, the specific execution process of the data stream transmission environment self-healing method is introduced below by taking the execution subject being the processor in the terminal as an example.

[0046] like Figure 3 As shown, the data stream transmission environment self-healing method may at least include:

[0047] S302: Determine a target data flow in the internal network domain, and add a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs.

[0048] Optionally, since the internal network domain and the external network domain have different environmental standards, it is easy for data traffic to cross the environment when it is transmitted across network domains, resulting in major problems such as service errors and difficulty in locating errors. The fundamental reason for traffic crossing the environment is that after the same data traffic is processed from the internal environment to the server in the external network domain, the server in the external network domain will return the data traffic to the default external environment of the internal network domain, causing the data traffic to appear in different internal environments. Based on this, it is necessary to perform environmental self-healing on the data traffic after interacting with the external network domain, that is, forwarding the data traffic to the correct environment to ensure that the data traffic flows and is processed in the correct environment to avoid serious problems such as data leakage and confusion.

[0049] Optionally, in order to forward the data stream received from the outside to the correct environment, it is necessary to clarify the environment in which the data stream was originally located in the internal network domain. Therefore, after determining the target data stream in the internal network domain that needs to be connected to the external network domain to respond, the target data stream can be added with a corresponding target environment label according to the target environment to which the target data stream belongs in the internal network domain. In this way, by adding labels, the correct environment to which the target data stream belongs can be clearly indicated, which facilitates the subsequent accurate forwarding of the target data stream to the target environment.

[0050] S304: Initiate an acceptance request corresponding to the target data flow to an external server in the external network domain, and receive a receipt request returned by the external server in response to the acceptance request.

[0051] Optionally, after completing the marking of the target data stream, the normal processing flow of the target data stream continues, and an acceptance request corresponding to the target data stream is initiated to an external server in the external network domain. After the external server receives and responds to the acceptance request of the target data stream, it will generate a receipt request for the target data stream. After the receipt request flows back to the internal network domain and receives a response, the complete processing flow of the target data stream is completed. Therefore, for the internal network domain, the receipt request returned by the external server in response to the acceptance request will be received.

[0052] S306: Identify the target environment tag of the target data flow based on the receipt request, and send the receipt request to the target environment corresponding to the target environment tag, so that the internal server in the internal network domain processes the receipt request in the target environment.

[0053] Optionally, it can be known from the introduction in the above embodiments that when the external domain returns a receipt request, it is often defaulted to return to the production environment of the internal domain. In order to avoid this situation, the internal domain needs to forward the receipt request.

[0054] Specifically, by analyzing the receipt request, it can be determined that the corresponding target data flow has a target environment tag. The target environment tag describes the environment to which the data flow originally belonged in the internal network domain. Based on the identified target environment tag, the receipt request can be sent to the target environment corresponding to the target environment tag, so that the target data flow flows back to the original environment. In this way, the internal server in the internal network domain can process the receipt request in the target environment, maintaining the environmental consistency of the data flow in the internal network domain and realizing environmental self-healing.

[0055] In an embodiment of the present specification, a method for self-healing a data stream transmission environment is provided, which determines a target data stream in an internal network domain, adds a target environment label corresponding to the target environment to the target data stream according to the target environment to which the target data stream belongs; initiates an acceptance request corresponding to the target data stream to an external server in an external network domain, and receives a receipt request returned by the external server in response to the acceptance request; identifies the target environment label of the target data stream based on the receipt request, and sends the receipt request to the target environment corresponding to the target environment label, so that the internal server in the internal network domain processes the receipt request in the target environment. Since the environment label corresponding to the environment in which the data stream in the internal network domain is added, when the receipt request for the data stream is returned from the external network domain, the environment label of the data stream can be determined according to the receipt request, and the environment to which the data stream belongs can be accurately oriented, and then the data stream is transmitted to the corresponding environment, so that the data stream is processed in the correct environment, the environmental consistency of the data stream in the internal network domain is maintained, the environment self-healing is achieved, and the problems of data errors caused by traffic flowing into the environment are avoided.

[0056] See also Figure 4 , Figure 4 A flowchart of a data stream transmission environment self-healing method provided in an embodiment of this specification.

[0057] like Figure 4 As shown, the data stream transmission environment self-healing method may at least include:

[0058] S402, determining a target data flow in the internal network domain, determining a target environment to which the target data flow belongs, adding a target environment tag corresponding to the target environment to the target data flow, and storing the target data flow carrying the environment tag in an internal database of the internal network domain.

[0059] Optionally, see Figure 5 , Figure 5 The following is a logical flow chart of a data stream transmission environment self-healing method provided in an embodiment of this specification. Figure 5 As shown, for the internal network domain, a target data stream is generated based on the signal in environment A, and the target data stream will fall into the internal database of the internal network domain. Then, in the embodiment of the present specification, when the data falls into the database, a target environment label "environment label = A" corresponding to the target environment can be added to the target data stream according to the target environment to which the target data stream belongs, and the target data stream carrying the target environment label "environment label = A" can be stored in the internal database of the internal network domain.

[0060] S404: Initiate an acceptance request corresponding to the target data flow to an external server in the external network domain, and receive a receipt request returned by the external server in response to the acceptance request.

[0061] Regarding step S404, please refer to the detailed description in step S304, which will not be repeated here.

[0062] S406: Parse the receipt request to obtain a target data stream corresponding to the receipt request, and read a target environment tag of the target data stream from an internal database.

[0063] Optionally, see Figure 5 After receiving the receipt request returned from the external domain, the current receipt request is parsed to determine the target data stream corresponding to the receipt request. According to the target data stream, the relevant data of the target data stream is retrieved in the internal database, and the target environment label "environment label = A" pre-stored corresponding to the target data stream can be read.

[0064] S408: Put the receipt request into the environment self-healing scheduling library, so that when the target scheduling task scans the receipt request in the environment self-healing scheduling library based on the target environment tag, the receipt request is sent to the target environment corresponding to the target environment tag.

[0065] Optionally, see Figure 5The internal network domain may receive multiple receipt requests that need to be distributed and scheduled in a short period of time. In this case, all these receipt requests that need to be distributed can be placed in the environment self-healing scheduling library first, so that the pre-configured scheduling task can extract the receipt requests from them and complete the distribution.

[0066] Furthermore, there are at least two isolated environments in the internal network domain. In order to forward each data traffic to the correct environment, the scheduling tasks corresponding to each environment can be pre-set for each environment. The scheduling tasks of each environment will continuously scan the environment self-healing scheduling library and only schedule the receipt requests belonging to its corresponding environment. Based on this, when the receipt request is transmitted to the internal network domain, it is scanned by the target scheduling task corresponding to the target environment through the environment self-healing scheduling library. The target scheduling task will automatically send the receipt request to the target environment corresponding to the target environment label "environment label = A", that is, environment A, thereby realizing automatic scheduling of the data flow, maintaining the environmental consistency of the data flow in the internal network domain, realizing environmental self-healing, and avoiding data errors and other problems caused by traffic flowing into the environment.

[0067] In an embodiment of the present specification, a method for self-healing a data stream transmission environment is provided, which determines a target data stream in an internal network domain, determines a target environment to which the target data stream belongs, adds a target environment tag corresponding to the target environment to the target data stream, and stores the target data stream carrying the environment tag in an internal database of the internal network domain. The data stream in each environment carries an environment tag and is stored in a unified database, so that the correct environment to which the data stream transmitted in the external network domain belongs can be determined later through the environment tags stored in the database. Parse the receipt request to obtain the target data stream corresponding to the receipt request, read the target environment tag of the target data stream from the internal database, and place the receipt request in the environment self-healing scheduling library, so that when the target scheduling task scans the receipt request in the environment self-healing scheduling library based on the target environment tag, the target scheduling task can automatically send the receipt request to the target environment corresponding to the target environment tag, thereby maintaining the environmental consistency of the data stream in the internal network domain, realizing environmental self-healing, and avoiding problems such as data errors caused by traffic flowing into the environment.

[0068] See also Figure 6 , Figure 6 This is a structural block diagram of a data stream transmission environment self-healing device provided in an embodiment of this specification. Figure 6 As shown, the data stream transmission environment self-healing device 600 includes:

[0069] The label adding module 610 is used to determine the target data flow in the internal network domain, and add a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs;

[0070] The external interaction module 620 is used to initiate an acceptance request corresponding to the target data flow to an external server in an external network domain, and receive a receipt request returned by the external server in response to the acceptance request;

[0071] The environment self-healing module 630 is used to identify the target environment tag of the target data flow based on the receipt request, and send the receipt request to the target environment corresponding to the target environment tag, so that the internal server in the internal network domain processes the receipt request in the target environment.

[0072] Optionally, the label adding module 610 is further used to determine the target environment to which the target data flow belongs, add a target environment label corresponding to the target environment to the target data flow, and store the target data flow carrying the environment label in an internal database of the internal network domain.

[0073] Optionally, the environment self-healing module 630 is further used to parse the receipt request to obtain a target data stream corresponding to the receipt request, and read a target environment tag of the target data stream from an internal database.

[0074] Optionally, the environment self-healing module 630 is also used to put the receipt request into the environment self-healing scheduling library, so that when the target scheduling task scans the receipt request in the environment self-healing scheduling library based on the target environment tag, the receipt request is sent to the target environment corresponding to the target environment tag.

[0075] Optionally, there are at least two mutually isolated environments in the internal network domain and scheduling tasks corresponding to each environment are pre-set for each environment, and each scheduling task is used to continuously scan the environment self-healing scheduling library and schedule receipt requests belonging to its corresponding environment.

[0076] Optionally, the internal network domain and the external network domain have different environmental standards respectively, and the environmental standards are at least used to specify a transmission range of data traffic.

[0077] In an embodiment of the present specification, a data stream transmission environment self-healing device is provided, wherein a label adding module is used to determine a target data stream in an internal network domain, and add a target environment label corresponding to the target environment to the target data stream according to the target environment to which the target data stream belongs; an external interaction module is used to initiate an acceptance request corresponding to the target data stream to an external server in an external network domain, and receive a receipt request returned by the external server in response to the acceptance request; an environment self-healing module is used to identify the target environment label of the target data stream based on the receipt request, and send the receipt request to the target environment corresponding to the target environment label, so that the internal server in the internal network domain processes the receipt request in the target environment. Since the environment label corresponding to the environment in which the data stream in the internal network domain is added, when the receipt request for the data stream is returned from the external network domain, the environment label of the data stream can be determined according to the receipt request, and the accurate orientation of the environment to which the data stream belongs can be achieved, and then the data stream can be transmitted to the corresponding environment, so that the data stream is processed in the correct environment, the environmental consistency of the data stream in the internal network domain is maintained, the environment self-healing is achieved, and the data errors and other problems caused by the flow of traffic in the environment are avoided.

[0078] The embodiments of this specification provide a computer program product including instructions. When the computer program product is executed on a computer or a processor, the computer or the processor executes the steps of any one of the methods in the above embodiments.

[0079] The embodiments of this specification also provide a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of any method in the above embodiments.

[0080] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of a terminal provided in an embodiment of this specification. Figure 7 As shown, the terminal 700 may include: at least one terminal processor 701 , at least one network interface 704 , a user interface 703 , a memory 705 , and at least one communication bus 702 .

[0081] The communication bus 702 is used to realize the connection and communication between these components.

[0082] The user interface 703 may include a display screen (Display) and a camera (Camera), and the optional user interface 703 may also include a standard wired interface and a wireless interface.

[0083] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0084] Among them, the terminal processor 701 may include one or more processing cores. The terminal processor 701 uses various interfaces and lines to connect various parts in the entire terminal 700, and executes various functions and processes data of the terminal 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 705, and calling data stored in the memory 705. Optionally, the terminal processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The terminal processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the terminal processor 701, and it can be implemented separately through a chip.

[0085] Among them, the memory 705 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 705 includes a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 705 may also be optionally at least one storage device located away from the aforementioned terminal processor 701. As Figure 7 As shown, the memory 705 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data stream transmission environment self-healing program.

[0086] exist Figure 7In the terminal 700 shown, the user interface 703 is mainly used to provide an input interface for the user and obtain the data input by the user; and the terminal processor 701 can be used to call the data stream transmission environment self-healing program stored in the memory 705, and specifically perform the following operations:

[0087] Determine a target data flow in the internal network domain, and add a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs;

[0088] Initiating an acceptance request corresponding to the target data flow to an external server in an external network domain, and receiving a receipt request returned by the external server in response to the acceptance request;

[0089] The target environment tag of the target data flow is identified based on the receipt request, and the receipt request is sent to the target environment corresponding to the target environment tag, so that the internal server in the internal network domain processes the receipt request in the target environment.

[0090] In some embodiments, when the terminal processor 701 adds a target environment label corresponding to the target environment to the target data stream according to the target environment to which the target data stream belongs, it specifically performs the following steps: determining the target environment to which the target data stream belongs, adding the target environment label corresponding to the target environment to the target data stream, and storing the target data stream carrying the environment label to an internal database in the internal network domain.

[0091] In some embodiments, when the terminal processor 701 identifies the target environment label of the target data stream based on the receipt request, it specifically performs the following steps: parsing the receipt request to obtain the target data stream corresponding to the receipt request, and reading the target environment label of the target data stream from the internal database.

[0092] In some embodiments, when the terminal processor 701 executes the sending of a receipt request to a target environment corresponding to a target environment tag, it specifically performs the following steps: placing the receipt request into the environment self-healing scheduling library, so that when the target scheduling task scans the receipt request in the environment self-healing scheduling library based on the target environment tag, the receipt request is sent to the target environment corresponding to the target environment tag.

[0093] In some embodiments, there are at least two isolated environments in the internal network domain and scheduling tasks corresponding to each environment are pre-set for each environment. Each scheduling task is used to continuously scan the environment self-healing scheduling library and schedule receipt requests belonging to its corresponding environment.

[0094] In some embodiments, the internal network domain and the external network domain have different environmental standards respectively, and the environmental standards are at least used to specify the transmission range of data traffic.

[0095] In the several embodiments provided in this specification, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0096] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0097] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the above process or function according to the embodiment of this specification is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid state drives (SSD)), etc.

[0098] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0099] In addition, it should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0100] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0101] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0102] The above is a description of a data stream transmission environment self-healing method, device, storage medium and terminal provided in the embodiments of this specification. For technicians in this field, according to the ideas of the embodiments of this specification, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the embodiments of this specification.

Claims

1. A method for self-healing a data stream transmission environment, the method include: Determine a target data flow in the internal network domain, and add a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs; Initiating an acceptance request corresponding to the target data flow to an external server in an external network domain, and receiving a receipt request returned by the external server in response to the acceptance request; The target environment tag of the target data flow is identified based on the receipt request, and the receipt request is sent to the target environment corresponding to the target environment tag, so that the internal server in the internal network domain processes the receipt request in the target environment.

2. The method according to claim 1, wherein the target environment label corresponding to the target environment is added to the target data stream according to the target environment to which the target data stream belongs. include: Determine the target environment to which the target data flow belongs, add a target environment tag corresponding to the target environment to the target data flow, and store the target data flow carrying the environment tag in an internal database of the internal network domain.

3. The method according to claim 2, wherein the target environment tag of the target data flow is identified based on the receipt request. include: The receipt request is parsed to obtain a target data stream corresponding to the receipt request, and a target environment tag of the target data stream is read from the internal database.

4. The method according to claim 3, wherein the receipt request is sent to the target environment corresponding to the target environment tag. include: The receipt request is put into the environment self-healing scheduling library, so that when the target scheduling task scans the receipt request in the environment self-healing scheduling library based on the target environment tag, the receipt request is sent to the target environment corresponding to the target environment tag.

5. According to the method described in claim 4, there are at least two isolated environments in the internal network domain and scheduling tasks corresponding to each environment are pre-set for each environment. Each scheduling task is used to continuously scan the environment self-healing scheduling library and schedule receipt requests belonging to its corresponding environment.

6. The method according to claim 1, wherein the internal network domain and the external network domain have different environmental standards respectively, and the environmental standards are at least used to specify a transmission range of data traffic.

7. A data stream transmission environment self-healing device, the device include: A label adding module, used for determining a target data flow in an internal network domain, and adding a target environment label corresponding to the target environment to the target data flow according to the target environment to which the target data flow belongs; An external interaction module, used for initiating an acceptance request corresponding to the target data flow to an external server in an external network domain, and receiving a receipt request returned by the external server in response to the acceptance request; The environmental self-healing module is used to identify the target environment label of the target data flow based on the receipt request, and send the receipt request to the target environment corresponding to the target environment label, so that the internal server in the internal network domain processes the receipt request in the target environment.

8. A computer program product comprising instructions, which, when executed on a computer or a processor, causes the computer or the processor to execute the steps of the method according to any one of claims 1 to 6.

9. A computer storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 6.

10. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.