CN112311894A - Method, apparatus, electronic device, and computer-readable medium for generating information - Google Patents

Method, apparatus, electronic device, and computer-readable medium for generating information Download PDF

Info

Publication number
CN112311894A
CN112311894A CN202011261460.1A CN202011261460A CN112311894A CN 112311894 A CN112311894 A CN 112311894A CN 202011261460 A CN202011261460 A CN 202011261460A CN 112311894 A CN112311894 A CN 112311894A
Authority
CN
China
Prior art keywords
information
target
address
sending
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011261460.1A
Other languages
Chinese (zh)
Inventor
董焕强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202011261460.1A priority Critical patent/CN112311894A/en
Publication of CN112311894A publication Critical patent/CN112311894A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Embodiments of the present disclosure disclose methods, apparatuses, electronic devices and computer-readable media for generating information. One embodiment of the method comprises: responding to the received request information sent by a target end, and acquiring a first information sending address of the request information, wherein the first information sending address is used for representing the target end; the first information sending address is modified into a local address and then the request information is sent; responding to the received target information corresponding to the request information, and acquiring a second information sending address from the target information, wherein the second information sending address is used for representing a port for sending the target information; and generating calling relation information based on the first information sending address and the second information sending address. The method and the device improve the accuracy and effectiveness of obtaining the calling relation information.

Description

Method, apparatus, electronic device, and computer-readable medium for generating information
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a computer-readable medium for generating information.
Background
With the rise of microservices, the calling relationship between various applications participating in microservices or data processing modules contained in the applications becomes more and more complex. The complex calling relation is easy to have risks such as information failure or information leakage. To enable information monitoring of the microservice, a technician may modify the application, but this approach requires a significant amount of manpower and is intrusive to the application. Therefore, the stability of the application is reduced, and the efficiency of obtaining the calling relation is not high.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a method, an apparatus, an electronic device, and a computer-readable medium for generating information to solve the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for generating information, the method comprising: responding to the received request information sent by a target end, and acquiring a first information sending address of the request information, wherein the first information sending address is used for representing the target end; the first information sending address is modified into a local address and then the request information is sent; responding to the received target information corresponding to the request information, and acquiring a second information sending address from the target information, wherein the second information sending address is used for representing a port for sending the target information; and generating calling relation information based on the first information sending address and the second information sending address.
In a second aspect, some embodiments of the present disclosure provide a method for generating information, the method comprising: receiving at least one piece of calling relation information sent by a forwarding end in information, wherein the calling relation information comprises a first information sending address and a second information sending address, and the calling relation information is used for representing the calling relation between a target end corresponding to the first information sending address and a target end corresponding to the second information sending address; and generating system calling relation information based on the at least one piece of calling relation information.
In a third aspect, some embodiments of the present disclosure provide a method for generating information, the method comprising: responding to the detected request information, and sending the request information to an information transfer terminal; and receiving target information corresponding to the request information and transmitted by the information relay terminal, and performing data processing on the target information.
In a fourth aspect, some embodiments of the present disclosure provide an apparatus for generating information, the apparatus comprising: a first information sending address obtaining unit, configured to, in response to receiving request information sent by a target, obtain a first information sending address of the request information, where the first information sending address is used to characterize the target; a first information sending unit configured to send the request information after modifying the first information sending address into a local address; a second information transmission address acquisition unit configured to acquire, in response to receiving target information corresponding to the request information, a second information transmission address from the target information, the second information transmission address being used to indicate a port through which the target information is transmitted; and a call relation information generating unit configured to generate call relation information based on the first information transmission address and the second information transmission address.
In a fifth aspect, some embodiments of the present disclosure provide an apparatus for generating information, the apparatus comprising: the calling relation information receiving unit is configured to receive at least one piece of calling relation information sent by a forwarding end in the information, wherein the calling relation information comprises a first information sending address and a second information sending address, and the calling relation information is used for representing the calling relation between a target end corresponding to the first information sending address and a target end corresponding to the second information sending address; and the system calling relation information generating unit is configured to generate system calling relation information based on the at least one piece of calling relation information.
In a sixth aspect, some embodiments of the present disclosure provide an apparatus for generating information, the apparatus comprising: a request information sending unit configured to send the request information to an information relay terminal in response to detecting the request information; and the target information processing unit is configured to receive the target information corresponding to the request information and transmitted by the information relay terminal, and perform data processing on the target information.
In a seventh aspect, some embodiments of the present disclosure provide an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first, second, and third aspects.
In an eighth aspect, some embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first, second, and third aspects.
The above embodiments of the present disclosure have the following beneficial effects: the accuracy and effectiveness of the calling relationship information obtained by the method for generating information according to some embodiments of the present disclosure are improved. Specifically, the inventors found that the reason why the segmentation result of the relevant segmentation model is not accurate enough is that: it is not easy to accurately and effectively acquire the call relation information. Based on this, the call relation information of some embodiments of the present disclosure first acquires a first information transmission address from the received request information; and then the first information sending address is modified into a local address and the request information is sent. And the first information sending address is modified into the local address, so that the target information corresponding to the request information can be received again. And the second information sending address can be acquired from the target information. And finally, generating calling relation information through the first information sending address and the second information sending address. And the accuracy and the effectiveness of obtaining the calling relation information are further improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of an application scenario of a method for generating information of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a method for generating information according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a method for generating information according to the present disclosure;
FIG. 4 is a flow diagram of still further embodiments of methods for generating information according to the present disclosure;
FIG. 5 is a flow diagram of still further embodiments of methods for generating information according to the present disclosure;
FIG. 6 is a schematic block diagram of some embodiments of an apparatus for generating information according to the present disclosure;
FIG. 7 is a schematic block diagram illustrating further embodiments of an apparatus for generating information according to the present disclosure;
FIG. 8 is a schematic diagram illustrating still further embodiments of an apparatus for generating information according to the present disclosure;
FIG. 9 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a schematic diagram of one application scenario of a method for generating information in accordance with some embodiments of the present disclosure. The information relay terminal 101 may receive the request information sent by the target terminals 103, 104, 105, and 106. And then, the first information sending address in the request information is modified into a local address and then the request information is sent out. And finally, after receiving the target information corresponding to the request information, transmitting address component calling relation information according to the first information transmission address and the second information in the target information. The server 102 may receive the call relation information sent by the information relay 101, and construct a call relation table based on the call relation information. Therefore, the calling relation information and the calling relation table among the target terminals 103, 104, 105 and 106 are automatically acquired, and the accuracy and the efficiency of acquiring the calling relation information and the calling relation table are improved.
It should be understood that the number of switches, targets, and servers in the information in fig. 1 is merely illustrative. Any number of information transfer terminals, target terminals and service terminals can be provided according to implementation requirements.
With continued reference to fig. 2, fig. 2 illustrates a flow 200 of some embodiments of a method for generating information in accordance with the present disclosure. The method for generating information comprises the following steps:
step 201, in response to receiving the request information sent by the target, obtaining a first information sending address of the request information.
In some embodiments, the execution subject of the method for generating information (e.g., the information relay terminal 101 shown in fig. 1) may receive the request information through a wired connection or a wireless connection. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
The executing agent may establish communication with the target terminals 103, 104, 105, and 106 and receive request information from the target terminals 103, 104, 105, and 106. Then, the request message usually includes address information of the target terminals 103, 104, 105, and 106, and the executing entity may obtain a first message sending address of the request message, where the first message sending address is used to characterize the target terminals.
Step 202, the first information sending address is modified into a local address, and then the request information is sent.
In some embodiments, the execution subject may modify the first information transmission address to a local address and then transmit the request information. Therefore, the target information corresponding to the request information can be obtained, and the calling relation of different target ends can be obtained.
Step 203, in response to receiving the target information corresponding to the request information, obtaining a second information sending address from the target information.
When the target information corresponding to the request information is received, the execution subject may acquire the second information transmission address from the target information. The second information sending address may be used to characterize a port that sends the target information.
Step 204, generating calling relation information based on the first information sending address and the second information sending address.
The request information and the target information have a corresponding relationship, and correspondingly, the first information sending address and the second information sending address also have a corresponding relationship. The execution body can determine the calling relationship between the target ends through the first information sending address and the second information sending address, and further generate calling relationship information. For example, if the request information corresponding to the first information sending address comes from the target 103 and the target information corresponding to the second information sending address comes from the target 104, the executing entity may determine that the calling relation information calls the target 104 for the target 103.
According to the method for generating the information disclosed by some embodiments of the disclosure, the accuracy and the effectiveness of the calling relation information are improved by the calling relation information obtained by the method for generating the information disclosed by some embodiments of the disclosure. Specifically, the inventors found that the reason why the segmentation result of the relevant segmentation model is not accurate enough is that: it is not easy to accurately and effectively acquire the call relation information. Based on this, the call relation information of some embodiments of the present disclosure first acquires a first information transmission address from the received request information; and then the first information sending address is modified into a local address and the request information is sent. And the first information sending address is modified into the local address, so that the target information corresponding to the request information can be received again. And the second information sending address can be acquired from the target information. And finally, generating calling relation information through the first information sending address and the second information sending address. And the accuracy and the effectiveness of obtaining the calling relation information are further improved.
With continued reference to fig. 3, fig. 3 illustrates a flow 300 of some embodiments of a method for generating information in accordance with the present disclosure. The method for generating information comprises the following steps:
step 301, in response to receiving the request message sent by the target, obtaining a first message sending address of the request message.
In some embodiments, the execution subject of the method for generating information (e.g., the information relay terminal 101 shown in fig. 1) may receive the request information through a wired connection or a wireless connection. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
Step 302, the first information sending address is modified into a local address, and then the request information is sent.
Step 303, in response to receiving the target information corresponding to the request information, obtaining a second information sending address from the target information.
Step 304, building calling relation information based on the first information sending address and the second information sending address.
The contents of step 301 to step 304 are the same as those of step 201 to step 204, and are not described in detail here.
Step 305, after the first information sending address and the local address are set as the destination address and the sending address of the target information, the target information is sent to the target end.
After the target information is obtained, the target information needs to be sent to the corresponding target terminal. Therefore, the executing entity may set the first information sending address and the local address as the destination address and the sending address of the target information, respectively, and then send the target information to the target. Thus, the information sent by the target end can be further acquired.
Step 306, sending the call relation information to the server.
In order to obtain the overall calling situation between the target terminals, the execution subject may send the calling relation information to the service terminal 102, so that the service terminal 102 constructs the calling relation table between the target terminals by using the calling relation information.
In some optional implementations of some embodiments, the method may include: and setting information sending path information for the target terminal.
In order to acquire the interactive information between the target terminals in time, the execution main body sets information sending path information for the target terminals. The information sending path information is used for sending the information sent by the target end to the local. The information transmission path information includes the local address. In this way, all the information sent by the target end passes through the execution main body, so that the execution main body acquires the calling relationship between the target ends.
In some optional implementation manners of some embodiments, the setting information sending path information for the target end includes: and adding the target script file corresponding to the information sending path information to the starting service script of the target end.
In order to acquire information interaction between the target ends in time, the execution main body adds the target script file corresponding to the information sending path information to the starting service script of the target end, so that the target script file can be started along with the starting of the target end. Therefore, the interactive information between the target ends is comprehensively acquired under the condition that the information codes on the target ends are not modified, the target ends are prevented from being invaded, and the stability of the target ends when the calling relation information is acquired is ensured. Meanwhile, the accuracy and the effectiveness of obtaining the calling relation information are improved.
With further reference to fig. 4, a flow 400 of further embodiments of methods for generating information is illustrated. The flow 400 of the method for generating information comprises the steps of:
step 401, receiving at least one piece of calling relationship information sent by a forwarding end in the information.
In some embodiments, an execution subject (for example, the server 102 shown in fig. 1) on which the web page generation method operates may receive at least one piece of call relation information from the information transit terminal 101 through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
The calling relationship information is the calling relationship information in the embodiment corresponding to fig. 2 and fig. 3. The call relation information may include a first information sending address and a second information sending address, and the call relation information may be used to represent a call relation between a target terminal corresponding to the first information sending address and a target terminal corresponding to the second information sending address. For example, the calling relationship information may call the target 104 for the target 103; the target 104 calls the target 105; the target 104 invokes the target 106, and so on.
Step 402, generating system calling relation information based on the at least one piece of calling relation information.
After acquiring the multiple pieces of call relation information, the execution main body may determine call relations among the multiple target terminals according to the sending address and the destination address in the call relation information, and further generate system call relation information. Therefore, the whole call relation between the target ends is obtained, and the accuracy and the effectiveness of obtaining the call relation are greatly improved. Based on the obtained system call relation information, various problems occurring in the information interaction process can be traced, and the accuracy and the efficiency of solving the information interaction problem are improved.
In some optional implementation manners of some embodiments, the generating a call relation table based on the at least one piece of call relation information may include:
and step one, determining at least one public node based on the at least one piece of calling relation information.
In practice, calls between target ends, or between applications, often have a hierarchical relationship. Therefore, the execution subject can firstly determine the common node in the hierarchical relationship, and then can more clearly determine the calling relationship among a plurality of target ends. For example, in fig. 1, the target 104 communicates with the target 105 and the target 106 in parallel, and the target 104 is a common node.
And secondly, determining first calling relation information between the at least one public node and second calling relation information between the at least one public node and other nodes.
The common node is equivalent to a direct calling relation and can construct a framework of the calling relation. The execution principal may first determine first call relation information between common nodes. Then, second calling relation information between each public node and other nodes is determined. For example, in fig. 1, the first call relation information may be: the target 103 calls the target 104. The second call relation information may be: target 104 calls target 105 and target 104 calls target 106.
And thirdly, generating system calling relation information based on the at least one public node, the other nodes, the first calling relation information and the second calling relation information.
The execution subject can construct a table through the common node, other nodes, the first calling relation information and the second calling relation information, and then system calling relation information is obtained. The execution main body can also construct a relation tree according to the public node, other nodes, the first calling relation information and the second calling relation information, and construct system calling relation information in a tree diagram mode and the like.
In some optional implementations of some embodiments, the determining at least one common node based on the at least one piece of call relation information may include: and counting a first information sending address and a second information sending address in the at least one piece of calling relation information, and setting the same address existing in a plurality of pieces of calling relation information as a common node.
Each piece of calling relation information comprises an information sending address and an information receiving address, and the same information sending address or the same information receiving address may exist between different pieces of calling relation information. The execution subject may count a first information transmission address and a second information transmission address in at least one piece of call relation information, and set the same address existing in a plurality of pieces of the call relation information as a common node.
With further reference to fig. 5, a flow 500 of further embodiments of a method for generating information is illustrated. The flow 500 of the method for generating information includes the steps of:
step 501, responding to the detected request information, sending the request information to an information relay terminal.
In some embodiments, the execution agent (e.g., the target end 103, 104, 105, and 106 shown in fig. 1) on which the web page generation method operates may detect the request information through a wired connection or a wireless connection. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
The execution main body can generate the request information according to the needs, and can also generate the request information according to the needs of other target terminals. The execution agent may send the request information to the information relay terminal 101 in fig. 1.
Step 502, receiving the target information corresponding to the request information and transmitted by the information relay terminal, and performing data processing on the target information.
The information relay terminal 101 is only used to obtain the call relation information, and does not modify the request information itself, and the request information is also sent to a predetermined target terminal. Correspondingly, the target end also returns the target information corresponding to the request information. After the execution subject receives the target information, the execution subject may perform data processing on the target information. Therefore, the information transfer terminal 101 can obtain the call relation information without affecting the information interaction of the target terminal.
In some optional implementation manners of some embodiments, the sending, in response to detecting the request information, the request information to the information transfer terminal may include: and sending the request information to an information transfer terminal based on the information sending path information.
When transmitting the request information to the information relay terminal 101, the execution body may transmit the request information to the information relay terminal through the information transmission path information. The information transmission path information may be a link information for transmitting the request information on the execution main body to the information relay terminal 101, or may be other gas files for implementing the above functions. The information sending path information includes the information transfer end address.
In some optional implementation manners of some embodiments, the sending the request information to the information transfer terminal based on the information sending path information may include the following steps:
first, a target script file is queried.
The information relay terminal 101 may send the object script file to the execution subject in advance, and the execution subject may store the object script file in the start-up service script. The target script file may include the information transmission path information. When the execution agent starts, the target script file may be read directly from the start service script. Therefore, each piece of request information sent by the execution main body can be monitored, and the accuracy and the effectiveness of obtaining the calling relation information are improved.
And secondly, sending the request information to the information transfer terminal based on the address of the information transfer terminal contained in the target script file.
After the target script file is acquired, the execution main body can send the request information to the information transfer terminal through the address of the information transfer terminal contained in the target script file.
With further reference to fig. 6, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of an apparatus for generating information, which correspond to those method embodiments illustrated in fig. 2, which may be particularly applicable in various electronic devices.
As shown in fig. 6, an apparatus 600 for generating information of some embodiments includes: a first information transmission address acquisition unit 601, a first information transmission unit 602, a second information transmission address acquisition unit 603, and a call relation information generation unit 604. A first information sending address obtaining unit 601, configured to, in response to receiving request information sent by a target, obtain a first information sending address of the request information, where the first information sending address is used to characterize the target; a first information sending unit 602 configured to send the request information after modifying the first information sending address into a local address; a second information transmission address obtaining unit 603 configured to obtain, in response to receiving target information corresponding to the request information, a second information transmission address from the target information, the second information transmission address being used to indicate a port through which the target information is transmitted; a call relation information generating unit 604 configured to generate call relation information based on the first information transmission address and the second information transmission address.
In an optional implementation manner of some embodiments, the apparatus 600 for generating information may include: and a second information sending unit (not shown) configured to send the target information to the target after setting the first information sending address and the local address as a destination address and a sending address of the target information, respectively.
In an optional implementation manner of some embodiments, the apparatus 600 for generating information may include: an information transmission path information setting unit (not shown in the figure) configured to set information transmission path information for transmitting information sent by the target to a local, for the target, the information transmission path information including the local address.
In an optional implementation manner of some embodiments, the information sending path information setting unit may include: and an information transmission path information setting subunit (not shown in the figure) configured to add an object script file corresponding to the information transmission path information to the start service script of the object.
In an optional implementation manner of some embodiments, the apparatus 600 for generating information may include: and a third information sending unit (not shown in the figure) configured to send the call relation information to the server.
It will be understood that the elements described in the apparatus 600 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 600 and the units included therein, and are not described herein again.
With further reference to fig. 7, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of an apparatus for generating information, which correspond to those method embodiments illustrated in fig. 4, which may be particularly applicable in various electronic devices.
As shown in fig. 7, an apparatus 700 for generating information of some embodiments includes: a call relation information receiving unit 701 and a system call relation information generating unit 702. The calling relation information receiving unit 701 is configured to receive at least one piece of calling relation information sent by a forwarding end in information, where the calling relation information includes a first information sending address and a second information sending address, and the calling relation information is used to represent a calling relation between a target end corresponding to the first information sending address and a target end corresponding to the second information sending address; a system call relation information generating unit 702 configured to generate system call relation information based on the at least one piece of call relation information.
In an optional implementation manner of some embodiments, the system call relationship information generating unit 702 may include: a common node determining sub-unit (not shown in the figure), a call relation information determining sub-unit (not shown in the figure), and a system call relation information generating sub-unit (not shown in the figure). Wherein the common node determination subunit is configured to determine at least one common node based on the at least one piece of call relation information; a call relation information determining subunit configured to determine first call relation information between the at least one common node, and determine second call relation information between the at least one common node and other nodes; and the system calling relation information generating subunit is configured to generate the system calling relation information based on the at least one common node, the other nodes, the first calling relation information and the second calling relation information.
In an optional implementation of some embodiments, the common node determination subunit may include: and a common node determining module (not shown in the figure) configured to count the first information sending address and the second information sending address in the at least one piece of call relation information, and set the same address existing in a plurality of pieces of the call relation information as a common node.
It will be understood that the units described in the apparatus 700 correspond to the various steps in the method described with reference to fig. 4. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 700 and the units included therein, and will not be described herein again.
With further reference to fig. 8, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of an apparatus for generating information, which correspond to those method embodiments illustrated in fig. 5, which may be particularly applicable in various electronic devices.
As shown in fig. 8, an apparatus 800 for generating information of some embodiments includes: a request information transmission unit 801 and a target information processing unit 802. The request information sending unit 801 is configured to send the request information to the information relay terminal in response to detecting the request information; the destination information processing unit 802 is configured to receive destination information corresponding to the request information and forwarded by the information relay terminal, and perform data processing on the destination information.
In an optional implementation manner of some embodiments, the request information sending unit 801 may include: a request information sending subunit (not shown in the figure) configured to send the request information to the information relay node based on information sending path information, where the information sending path information includes the information relay node address.
In an optional implementation manner of some embodiments, the request information sending subunit may include: a target script file query module (not shown in the figure) and a request information sending module (not shown in the figure). The target script file query module is configured to query a target script file, wherein the target script file comprises an information transfer terminal address; and the request information sending module is configured to send the request information to the information relay terminal based on the address of the information relay terminal contained in the target script file.
It will be understood that the elements described in the apparatus 800 correspond to various steps in the method described with reference to fig. 5. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 800 and the units included therein, and are not described herein again.
As shown in fig. 9, the electronic device 900 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 901 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage means 908 into a Random Access Memory (RAM) 903. In the RAM903, various programs and data necessary for the operation of the electronic apparatus 900 are also stored. The processing apparatus 901, the ROM 902, and the RAM903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
Generally, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic apparatus 900 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 9 illustrates an electronic device 900 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 9 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. The computer program, when executed by the processing apparatus 901, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to the received request information sent by a target end, and acquiring a first information sending address of the request information, wherein the first information sending address is used for representing the target end; the first information sending address is modified into a local address and then the request information is sent; responding to the received target information corresponding to the request information, and acquiring a second information sending address from the target information, wherein the second information sending address is used for representing a port for sending the target information; and generating calling relation information based on the first information sending address and the second information sending address.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first information transmission address acquisition unit, a first information transmission unit, a second information transmission address acquisition unit, and a call relation information generation unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the call relation information generation unit may also be described as a "unit for generating call relation information".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (16)

1. A method for generating information, comprising:
responding to received request information sent by a target end, and acquiring a first information sending address of the request information, wherein the first information sending address is used for representing the target end;
the first information sending address is modified into a local address and then the request information is sent;
responding to the received target information corresponding to the request information, and acquiring a second information sending address from the target information, wherein the second information sending address is used for representing a port for sending the target information;
and generating calling relation information based on the first information sending address and the second information sending address.
2. The method of claim 1, wherein the method comprises:
and after the first information sending address and the local address are respectively set as a destination address and a sending address of the target information, the target information is sent to the target end.
3. The method of claim 1, wherein the method comprises:
and setting information sending path information for the target end, wherein the information sending path information is used for sending the information sent by the target end to the local, and the information sending path information comprises the local address.
4. The method of claim 3, wherein the setting of information transmission path information for the target comprises:
and adding the target script file corresponding to the information sending path information to the starting service script of the target terminal.
5. The method of claim 1, wherein the method comprises:
and sending the calling relation information to a server.
6. A method for generating information, comprising:
receiving at least one piece of calling relation information sent by a forwarding end in information, wherein the calling relation information comprises a first information sending address and a second information sending address, and the calling relation information is used for representing the calling relation between a target end corresponding to the first information sending address and a target end corresponding to the second information sending address;
and generating system calling relation information based on the at least one piece of calling relation information.
7. The method of claim 6, wherein the generating system call relationship information based on the at least one piece of call relationship information comprises:
determining at least one common node based on the at least one piece of calling relationship information;
determining first calling relation information between the at least one public node and determining second calling relation information between the at least one public node and other nodes;
and generating system calling relation information based on the at least one public node, the other nodes, the first calling relation information and the second calling relation information.
8. The method of claim 7, wherein the determining at least one common node based on the at least one piece of call relation information comprises:
and counting a first information sending address and a second information sending address in the at least one piece of calling relationship information, and setting the same address existing in the calling relationship information as a common node.
9. A method for generating information, comprising:
responding to the detected request information, and sending the request information to an information transfer terminal;
and receiving target information corresponding to the request information and transmitted by the information transfer terminal, and performing data processing on the target information.
10. The method of claim 9, wherein the sending the request information to the information relay terminal in response to detecting the request information comprises:
and sending the request information to an information transfer terminal based on information sending path information, wherein the information sending path information comprises an address of the information transfer terminal.
11. The method of claim 10, wherein the sending the request information to the information relay terminal based on the information sending path information includes:
inquiring a target script file, wherein the target script file comprises an information transfer terminal address;
and sending the request information to the information transfer terminal based on the address of the information transfer terminal contained in the target script file.
12. An apparatus for generating information, comprising:
a first information sending address obtaining unit, configured to, in response to receiving request information sent by a target terminal, obtain a first information sending address of the request information, where the first information sending address is used to characterize the target terminal;
a first information sending unit configured to send the request information after modifying the first information sending address into a local address;
a second information sending address obtaining unit configured to obtain a second information sending address from target information in response to receiving the target information corresponding to the request information, the second information sending address being used for characterizing a port sending the target information;
a call relation information generating unit configured to generate call relation information based on the first information transmission address and the second information transmission address.
13. An apparatus for generating information, comprising:
the calling relation information receiving unit is configured to receive at least one piece of calling relation information sent by a forwarding end in the information, the calling relation information comprises a first information sending address and a second information sending address, and the calling relation information is used for representing a calling relation between a target end corresponding to the first information sending address and a target end corresponding to the second information sending address;
a system call relation information generating unit configured to generate system call relation information based on the at least one piece of call relation information.
14. An apparatus for generating information, comprising:
a request information sending unit configured to send the request information to an information relay terminal in response to detecting the request information;
and the target information processing unit is configured to receive target information corresponding to the request information and transmitted by the information relay terminal, and perform data processing on the target information.
15. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5, the method of any one of claims 6-8, the method of any one of claims 9-11.
16. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1 to 5, the method of any of claims 6 to 8, the method of any of claims 9 to 11.
CN202011261460.1A 2020-11-12 2020-11-12 Method, apparatus, electronic device, and computer-readable medium for generating information Pending CN112311894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011261460.1A CN112311894A (en) 2020-11-12 2020-11-12 Method, apparatus, electronic device, and computer-readable medium for generating information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011261460.1A CN112311894A (en) 2020-11-12 2020-11-12 Method, apparatus, electronic device, and computer-readable medium for generating information

Publications (1)

Publication Number Publication Date
CN112311894A true CN112311894A (en) 2021-02-02

Family

ID=74324945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011261460.1A Pending CN112311894A (en) 2020-11-12 2020-11-12 Method, apparatus, electronic device, and computer-readable medium for generating information

Country Status (1)

Country Link
CN (1) CN112311894A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425958A (en) * 2007-10-29 2009-05-06 华为技术有限公司 Request answering method, apparatus and system in P2P overlapping network
CN104202309A (en) * 2014-08-18 2014-12-10 深圳市江波龙电子有限公司 Data transmission control method and apparatus
CN104885428A (en) * 2012-12-31 2015-09-02 阿尔卡特朗讯公司 IP Address Based UDP Relay
CN106130893A (en) * 2016-06-28 2016-11-16 联想(北京)有限公司 A kind of data packet sending method and electronic equipment
CN109246251A (en) * 2018-11-13 2019-01-18 杭州数梦工场科技有限公司 A kind of micro services call method, device, system, equipment and readable storage medium storing program for executing
US20190104184A1 (en) * 2017-09-29 2019-04-04 Siemens Aktiengesellschaft Information processing method, apparatus, and system
CN109921927A (en) * 2019-02-20 2019-06-21 苏州人之众信息技术有限公司 Real-time calling D-chain trace method based on micro services
CN110061949A (en) * 2018-01-18 2019-07-26 北京京东尚科信息技术有限公司 For obtaining the method and device of information
CN110134455A (en) * 2019-04-12 2019-08-16 平安医疗健康管理股份有限公司 A kind of application management system and method
CN110401696A (en) * 2019-06-18 2019-11-01 华为技术有限公司 A kind of method, communication agent, host and the storage medium of decentralization processing
CN110855493A (en) * 2019-11-18 2020-02-28 上海新炬网络信息技术股份有限公司 Application topological graph drawing device for mixed environment
CN111078504A (en) * 2019-12-25 2020-04-28 深圳前海环融联易信息科技服务有限公司 Distributed call chain tracking method and device, computer equipment and storage medium
CN111464373A (en) * 2019-01-18 2020-07-28 苏宁易购集团股份有限公司 Micro-service full-link monitoring system and method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425958A (en) * 2007-10-29 2009-05-06 华为技术有限公司 Request answering method, apparatus and system in P2P overlapping network
CN104885428A (en) * 2012-12-31 2015-09-02 阿尔卡特朗讯公司 IP Address Based UDP Relay
CN104202309A (en) * 2014-08-18 2014-12-10 深圳市江波龙电子有限公司 Data transmission control method and apparatus
CN106130893A (en) * 2016-06-28 2016-11-16 联想(北京)有限公司 A kind of data packet sending method and electronic equipment
US20190104184A1 (en) * 2017-09-29 2019-04-04 Siemens Aktiengesellschaft Information processing method, apparatus, and system
CN110061949A (en) * 2018-01-18 2019-07-26 北京京东尚科信息技术有限公司 For obtaining the method and device of information
CN109246251A (en) * 2018-11-13 2019-01-18 杭州数梦工场科技有限公司 A kind of micro services call method, device, system, equipment and readable storage medium storing program for executing
CN111464373A (en) * 2019-01-18 2020-07-28 苏宁易购集团股份有限公司 Micro-service full-link monitoring system and method
CN109921927A (en) * 2019-02-20 2019-06-21 苏州人之众信息技术有限公司 Real-time calling D-chain trace method based on micro services
CN110134455A (en) * 2019-04-12 2019-08-16 平安医疗健康管理股份有限公司 A kind of application management system and method
CN110401696A (en) * 2019-06-18 2019-11-01 华为技术有限公司 A kind of method, communication agent, host and the storage medium of decentralization processing
CN110855493A (en) * 2019-11-18 2020-02-28 上海新炬网络信息技术股份有限公司 Application topological graph drawing device for mixed environment
CN111078504A (en) * 2019-12-25 2020-04-28 深圳前海环融联易信息科技服务有限公司 Distributed call chain tracking method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘一田: "柔性微服务监控框架", 《计算机系统应用》 *
董先生的远方: "spring cloud 微服务调用链", 《CSDN》 *

Similar Documents

Publication Publication Date Title
CN110795022B (en) Terminal testing method, system and storage medium
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN111858381A (en) Application program fault tolerance capability test method, electronic device and medium
CN112558933A (en) Component rendering method and device, readable medium and electronic equipment
CN112464039A (en) Data display method and device of tree structure, electronic equipment and medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN112311894A (en) Method, apparatus, electronic device, and computer-readable medium for generating information
CN112256714A (en) Data synchronization method and device, electronic equipment and computer readable medium
CN114115941A (en) Resource sending method, page rendering method, device, electronic equipment and medium
CN113778850A (en) Data processing method and device, electronic equipment and computer readable medium
CN113094002A (en) Message processing method and device, electronic equipment and computer medium
CN113704079A (en) Interface testing method and device based on Protobuf
CN114172946B (en) Request result sending method, device, electronic equipment and computer readable medium
CN112559087B (en) Information generation method, apparatus, electronic device and computer readable medium
CN113672567B (en) File construction method, device, electronic equipment and computer readable medium
CN111314457B (en) Method and device for setting virtual private cloud
CN112671822B (en) Service request processing method, device, storage medium, server and system
CN114430364B (en) Information display method, information display device, electronic equipment and computer readable medium
CN110765002A (en) Method, device, medium and electronic equipment for obtaining operation behavior information
CN115391358A (en) Array updating method and device, electronic equipment and computer readable medium
CN115292161A (en) Control tree information generation method, device, equipment and computer readable medium
CN114816396A (en) UI component library calling method and device, electronic equipment and computer readable medium
CN116866229A (en) Network delay monitoring method, message response method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination