[go: up one dir, main page]

CN108366098B - A method and device for data interaction of network nodes - Google Patents

A method and device for data interaction of network nodes Download PDF

Info

Publication number
CN108366098B
CN108366098B CN201810053513.7A CN201810053513A CN108366098B CN 108366098 B CN108366098 B CN 108366098B CN 201810053513 A CN201810053513 A CN 201810053513A CN 108366098 B CN108366098 B CN 108366098B
Authority
CN
China
Prior art keywords
node
data
network node
data request
middleware
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.)
Active
Application number
CN201810053513.7A
Other languages
Chinese (zh)
Other versions
CN108366098A (en
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.)
Qax Technology Group Inc
Original Assignee
Qax Technology Group Inc
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 Qax Technology Group Inc filed Critical Qax Technology Group Inc
Priority to CN201810053513.7A priority Critical patent/CN108366098B/en
Publication of CN108366098A publication Critical patent/CN108366098A/en
Application granted granted Critical
Publication of CN108366098B publication Critical patent/CN108366098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/56Provisioning of proxy services
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种网络节点的数据交互方法及装置,所述方法包括:调取预先配置的中间件,所述中间件存储有预先配置的各网络节点的节点信息;若接收到外部发送的触发动作,则获取指定网络节点的第一节点信息;根据所述第一节点信息和数据请求发送方对应的业务方的业务方网络节点的第二节点信息,获取所述中间件中所述业务方网络节点到所述指定网络节点之间的路径,并根据所述路径、数据请求和所述数据请求发送方的网络地址标识,与所述指定网络节点对应的数据请求接收方进行数据交互。所述装置执行上述方法。本发明实施例提供的方法及装置,能够高效地实现数据接收方与数据发送方之间的数据交互。

Figure 201810053513

Embodiments of the present invention provide a data interaction method and device for network nodes, the method includes: calling pre-configured middleware, where the middleware stores pre-configured node information of each network node; the trigger action, then obtain the first node information of the specified network node; according to the first node information and the second node information of the business side network node of the business side corresponding to the sender of the data request, obtain the information described in the middleware The path between the service side network node and the designated network node, and according to the path, the data request and the network address identifier of the data request sender, perform data interaction with the data request receiver corresponding to the designated network node . The apparatus performs the above-described method. The method and device provided by the embodiments of the present invention can efficiently realize the data interaction between the data receiver and the data sender.

Figure 201810053513

Description

Data interaction method and device for network nodes
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a data interaction method and device of a network node.
Background
In an enterprise network, there are typically cascaded network nodes, such as: in the prior art, if a service party wants to perform data interaction with a third-level network node C1, a programmer needs to know the cascade relationship among the third-level network node C1, the second-level network node associated with C1, and the first-level network node associated with C1, and a large number of programs are compiled to analyze the communication protocol among C1, the second-level network node associated with C1, and the first-level network node associated with C1, so as to realize data interaction between the service party and the third-level network node C1, which is not difficult to see that the prior art consumes a large amount of manpower, the efficiency is low.
Therefore, how to avoid the above-mentioned drawbacks, save labor cost, and improve the efficiency of data interaction between the service party and each level of network nodes becomes a problem to be solved urgently.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a data interaction method and device for a network node.
In a first aspect, an embodiment of the present invention provides a data interaction method for a network node, where the method includes:
calling a pre-configured middleware, wherein the middleware stores node information of each pre-configured network node;
if a trigger action sent from the outside is received, first node information of a designated network node is acquired; the triggering is an action that determines the specified network node trigger in the middleware;
and acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
In a second aspect, an embodiment of the present invention provides a data interaction apparatus for a network node, where the apparatus includes:
the system comprises a calling unit, a receiving unit and a processing unit, wherein the calling unit is used for calling a pre-configured middleware which stores node information of each pre-configured network node;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring first node information of a designated network node if a trigger action sent from the outside is received; the triggering is an action that determines the specified network node trigger in the middleware;
and the sending unit is used for acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
calling a pre-configured middleware, wherein the middleware stores node information of each pre-configured network node;
if a trigger action sent from the outside is received, first node information of a designated network node is acquired; the triggering is an action that determines the specified network node trigger in the middleware;
and acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform a method comprising:
calling a pre-configured middleware, wherein the middleware stores node information of each pre-configured network node;
if a trigger action sent from the outside is received, first node information of a designated network node is acquired; the triggering is an action that determines the specified network node trigger in the middleware;
and acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
The data interaction method and device for the network node provided by the embodiment of the invention can efficiently realize data interaction between a data receiver and a data sender by calling the pre-configured middleware.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data interaction method of a network node according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a data interaction device of a network node according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a data interaction method of a network node according to an embodiment of the present invention, and as shown in fig. 1, the data interaction method of the network node according to the embodiment of the present invention includes the following steps:
s1: and calling pre-configured middleware, wherein the pre-configured node information of each network node is stored in the middleware.
Specifically, the device invokes a pre-configured middleware that stores pre-configured node information of each network node. The device may be a local terminal installed with middleware. The middleware may be sscacade cascade middleware and may be an executable application cascade. The method includes the steps that a pre-configured middleware can be called through an application program written by a programmer, an API (application program interface) is directly provided for a service party (a local terminal provided with the middleware) in a middleware mode, the service party only needs to install cascade.exe (executable files of the middleware) to the local, yellow pages can be generated when the middleware is called through the pre-configured installed files, the yellow pages display all network nodes at all levels, each network node needs to install cascade.exe to the local in advance, and the service party only needs to use the API provided by the cascade.exe to the local, so that node information of each network node can be obtained. The method can be realized by the following steps: enabling local invocation of pre-configured middleware to generate yellow pages (getwheeltree):
Curl http://127.0.0.1:3652/GetWholeTree
3652 is the SSCascade cascade middleware calling port number and GetWholeTree is yellow pages.
The node information may include a node identification ccid, a previous-level node identification pccid, a node state (which may include online/offline), a network transmission speed from the node to the previous-level node, and a time when the node finally receives/transmits data. For example: the ccid of the node is b1, the pccid of the node at the upper stage of b1 is a1, the network transmission speed from b1 to a1 is 128kbps, and the time of the final data receiving/transmitting is 2017.8.118: 17: 16; the ccid of the other node is c1, the pccid of the node at the upper stage of c1 is b1, the network transmission speed from c1 to b1 is 32kbps, and the time of the last data transmission/reception is 2017.8.115: 17:16, and it can be seen that: the previous level node of c1 is b1, and the previous level node of b1 is a1, so that the cascade relation among c1, b1 and a1 is reflected.
S2: if a trigger action sent from the outside is received, first node information of a designated network node is acquired; the trigger is an action triggered after the designated network node is determined according to the node information.
Specifically, the device acquires first node information of a designated network node if receiving a trigger action sent from the outside; the triggering acts as an action to determine the specified network node trigger in the middleware. The trigger action may be a click, touch, or the like action by a programmer using a local terminal in which middleware is installed. Specifying that the network node corresponds to a recipient of the data request (the other party is a business party); referring to the above example, the first node information of c1, which is c1 as a designated network node, may include ccid as c1, pccid as b1 of a node at the upper stage of c1, a network transmission speed of 32kbps from c1 to b1, a time of last data transmission/reception of 2017.8.115: 17:16, and the like.
S3: and acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
Specifically, the device obtains a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performs data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender. The service party is also used as a network node (service party network node) newly added to the yellow page, and the specific content of the second node information of the service party network node can refer to the first node information corresponding to the service party network node, which is not described again. Referring to the above example, the second node is al, according to the node information of al and the node information of cl, and the cascade relationship between al and cl in the yellow page, the path between al and cl is cl to b1 to a1, b1 is an intermediate node, the number of the intermediate nodes may be multiple, the path from the service side network node to the specified network node is obtained step by step according to the order from low level to high level (i.e., from the lower network node to the upper network node in the cascade relationship), the network address identifier of the data request sender corresponding to the service side a1 may be URL and Param following the URL, and a1 is according to the path: cl to b1 to a1, the network address identifier of the corresponding data request sender and the data request, perform data interaction with the data request receiver, and after the data interaction is completed, a path may be displayed at the data request sender and/or the data request receiver: cl to b1 to a1, and the specific content of the data, for example: "cl to b1 to a 1", "4 eade7c1-e7f4-4a0e-907b-9a06c8c96ec 7".
It needs to be further explained that: the data request may include a data write request, the data write request may also carry a data storage path of a data request sender, and the a1 finds the network node c1 of the service party according to the path cl to b1 to a 1; the data request receiver acquires the data of 4eade7c1-e7f4-4a0e-907b-9a06c8c96ec 7' from the data storage path by accessing the network address identifier and writes the data request receiver. The data request receiver may obtain the data capacity in the data request sender in advance, determine whether all data has been received according to the data capacity, and send a notification message to the data request sender if it is detected that all data has been written to the data request receiver.
If the capacity of the data to be sent is larger than the preset capacity, the data is divided into a plurality of subdata, the subdata is written into a data request receiver in batches, and the preset capacity can be set autonomously according to actual conditions.
The node information may further include a communication duration between the node and the previous node, and if the communication duration exceeds a preset duration, a first warning message between the node and the previous node is generated. The preset duration can be set independently according to actual conditions.
And if the calling instruction of the calling middleware exceeds the preset time limit and is not responded, generating a second alarm message of calling overtime. The preset time limit can be set independently according to actual conditions.
The data interaction method of the network node provided by the embodiment of the invention can efficiently realize data interaction between a data receiver and a data sender by calling the pre-configured middleware.
On the basis of the above embodiment, the first node information includes a first node identifier and a cascade relationship between the first node and a previous-level node; the second node information comprises a second node identification and a cascade relation between the second node and a previous node; correspondingly, the obtaining a path from the service party network node to the designated network node according to the first node information, the second node information of the service party network node of the service party corresponding to the data request sender, and the node information includes:
and acquiring all intermediate nodes and all cascade relations between the first node and the second node according to the first node identification, the cascade relation between the first node and the previous node, the second node information including the second node identification, the cascade relation between the second node and the previous node, and the node information.
Specifically, the device obtains all intermediate nodes and all cascade relations between the first node and the second node according to the first node identifier, the cascade relation between the first node and the previous node, the second node information including the second node identifier, the cascade relation between the second node and the previous node, and the node information.
And acquiring the path from the network node of the service party to the specified network node step by step according to all the intermediate nodes and all the cascade relations.
Specifically, the device obtains the path from the network node of the service party to the specified network node step by step according to all the intermediate nodes and all the cascade relations. Reference may be made to the above embodiments, which are not described in detail.
The data interaction method of the network node provided by the embodiment of the invention can efficiently acquire the path from the network node of the service party to the specified network node through the middleware.
On the basis of the above embodiment, the data request includes a data write request, and the data write request also carries a data storage path of a data request sender; correspondingly, the performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender includes:
and searching the data request receiver according to the path so that the data request receiver acquires data from the data storage path by accessing the network address identifier and writes the data into the data request receiver.
Specifically, the device finds the data request receiver according to the path, so that the data request receiver obtains data from the data storage path by accessing the network address identifier and writes the data into the data request receiver.
According to the data interaction method of the network node, the data request receiver accesses the network address identifier and obtains data from the data storage path of the data request sender, and the data can be written into the data request receiver normally.
On the basis of the above embodiment, the method further includes:
and receiving a notification message sent by a data request receiver after receiving all data.
Specifically, the device receives a notification message sent by a data request receiver after receiving all data. Reference may be made to the above embodiments, which are not described in detail.
The data interaction method of the network node provided by the embodiment of the invention can further receive the notification message sent by the data request receiver when all data are written into the data request receiver, thereby effectively prompting whether the writing is finished or not.
On the basis of the above embodiment, after the step of obtaining data from the data storage path, the method further includes:
if the capacity of the data to be sent is larger than the preset capacity, the data is divided into a plurality of subdata, and the subdata are written into the data request receiver in batches.
Specifically, if the capacity of the data to be sent is larger than the preset capacity, the device divides the data into a plurality of subdata and writes the plurality of subdata into the data request receiver in batches. Reference may be made to the above embodiments, which are not described in detail.
The data interaction method of the network node provided by the embodiment of the invention ensures that data with larger capacity is effectively transmitted by segmenting the data and writing the data in the data request receiver in batches.
On the basis of the above embodiment, the node information further includes a communication duration between the node and the previous-stage node; correspondingly, the method further comprises the following steps:
and if the communication time length exceeds the preset time length, generating a first alarm message of the node and the upper-level node.
Specifically, if the device determines that the communication time exceeds a preset time, a first warning message between the node and the previous-level node is generated. Reference may be made to the above embodiments, which are not described in detail.
The data interaction method of the network node provided by the embodiment of the invention can reflect the communication condition of the network node in time by generating the first alarm message.
On the basis of the above embodiment, the method further includes:
and if the calling instruction for calling the middleware exceeds the preset time limit and is not responded, generating a second alarm message of calling overtime.
Specifically, if the calling instruction for calling the middleware exceeds the preset time limit and is not responded, the device generates a second warning message for calling the service. Reference may be made to the above embodiments, which are not described in detail.
According to the data interaction method of the network node, the response condition of the calling middleware can be reflected in time by generating the second alarm message.
On the basis of the above embodiment, the middleware is an sscacade cascade middleware.
In particular, said middleware in the device is a sscacade cascade middleware. Reference may be made to the above embodiments, which are not described in detail.
According to the data interaction method of the network nodes, provided by the embodiment of the invention, the middleware is selected as the SSCascade cascade middleware, so that the data interaction between the network nodes is better realized.
Fig. 2 is a schematic structural diagram of a data interaction device of a network node according to an embodiment of the present invention, and as shown in fig. 2, an embodiment of the present invention provides a data interaction device of a network node, including a retrieving unit 1, an obtaining unit 2, and a sending unit 3, where:
the invoking unit 1 is configured to invoke a preconfigured middleware, where the middleware stores node information of each preconfigured network node; the acquiring unit 2 is configured to acquire first node information of a designated network node if a trigger action sent from the outside is received; the triggering is an action that determines the specified network node trigger in the middleware; the sending unit 3 is configured to obtain a path from the service side network node to the specified network node in the middleware according to the first node information and second node information of a service side network node of a service side corresponding to the data request sender, and perform data interaction with a data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
Specifically, the invoking unit 1 is configured to invoke a pre-configured middleware, where the middleware stores node information of each pre-configured network node; the acquiring unit 2 is configured to acquire first node information of a designated network node if a trigger action sent from the outside is received; the triggering is an action that determines the specified network node trigger in the middleware; the sending unit 3 is configured to obtain a path from the service side network node to the specified network node in the middleware according to the first node information and second node information of a service side network node of a service side corresponding to the data request sender, and perform data interaction with a data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
The data interaction device of the network node provided by the embodiment of the invention can efficiently realize data interaction between a data receiver and a data sender by calling the pre-configured middleware.
On the basis of the above embodiment, the first node information includes a first node identifier and a cascade relationship between the first node and a previous-level node; the second node information comprises a second node identification and a cascade relation between the second node and a previous node; correspondingly, the sending unit 3 is specifically configured to:
acquiring all intermediate nodes and all cascade relations between the first node and the second node according to the first node identification, the cascade relation between the first node and the previous node, the second node information including the second node identification, the cascade relation between the second node and the previous node, and the node information; and acquiring the path from the network node of the service party to the specified network node step by step according to all the intermediate nodes and all the cascade relations.
Specifically, the sending unit 3 is specifically configured to:
acquiring all intermediate nodes and all cascade relations between the first node and the second node according to the first node identification, the cascade relation between the first node and the previous node, the second node information including the second node identification, the cascade relation between the second node and the previous node, and the node information; and acquiring the path from the network node of the service party to the specified network node step by step according to all the intermediate nodes and all the cascade relations.
The data interaction device of the network node provided by the embodiment of the invention can efficiently acquire the path from the network node of the service party to the appointed network node through the middleware.
On the basis of the above embodiment, the data request includes a data write request, and the data write request also carries a data storage path of a data request sender; correspondingly, the sending unit 3 is specifically configured to:
and searching the data request receiver according to the path so that the data request receiver acquires data from the data storage path by accessing the network address identifier and writes the data into the data request receiver.
Specifically, the sending unit 3 is specifically configured to:
and searching the data request receiver according to the path so that the data request receiver acquires data from the data storage path by accessing the network address identifier and writes the data into the data request receiver.
According to the data interaction device of the network node, provided by the embodiment of the invention, the data request receiver can access the network address identifier and acquire data from the data storage path of the data request sender, so that the data can be normally written into the data request receiver.
On the basis of the foregoing embodiment, the sending unit 3 is specifically configured to:
and if detecting that all data are written into the data request receiver, sending a notification message to the data request sender.
Specifically, the sending unit 3 is specifically configured to:
and if detecting that all data are written into the data request receiver, sending a notification message to the data request sender.
The data interaction device of the network node provided by the embodiment of the invention can further receive the notification message sent by the data request receiver when all data are written into the data request receiver, thereby effectively prompting whether the writing is finished or not.
On the basis of the foregoing embodiment, the sending unit 3 is specifically configured to:
and if the capacity of the acquired data is larger than the preset capacity, dividing the data into a plurality of subdata, and writing the subdata into the data request receiver in batches.
Specifically, the sending unit 3 is specifically configured to:
and if the capacity of the acquired data is larger than the preset capacity, dividing the data into a plurality of subdata, and writing the subdata into the data request receiver in batches.
The data interaction device of the network node provided by the embodiment of the invention can ensure that data with larger capacity can be effectively sent by segmenting the data and writing the data in the data request receiver in batches.
On the basis of the above embodiment, the node information further includes a communication duration between the node and the previous-stage node; correspondingly, the device is also used for:
and if the communication time length exceeds the preset time length, generating a first alarm message of the node and the upper-level node.
Specifically, the apparatus is further configured to:
and if the communication time length exceeds the preset time length, generating a first alarm message of the node and the upper-level node.
The data interaction device of the network node provided by the embodiment of the invention can reflect the communication condition of the network node in time by generating the first alarm message.
On the basis of the above embodiment, the apparatus is further configured to:
and if the calling instruction for calling the middleware exceeds the preset time limit and is not responded, generating a second alarm message of calling overtime.
Specifically, the apparatus is further configured to:
and if the calling instruction for calling the middleware exceeds the preset time limit and is not responded, generating a second alarm message of calling overtime.
The data interaction device of the network node provided by the embodiment of the invention can reflect the response condition of the calling middleware in time by generating the second alarm message.
On the basis of the above embodiment, the middleware is an sscacade cascade middleware.
In particular, said middleware in the device is a sscacade cascade middleware.
According to the data interaction device of the network nodes, the middleware is selected as the SSCascade cascade middleware, so that data interaction between the network nodes is better realized.
The data interaction device of the network node provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and its functions are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device includes: a processor (processor)301, a memory (memory)302, and a bus 303;
the processor 301 and the memory 302 complete communication with each other through a bus 303;
the processor 301 is configured to call program instructions in the memory 302 to perform the methods provided by the above-mentioned method embodiments, including: calling a pre-configured middleware, wherein the middleware stores node information of each pre-configured network node; if a trigger action sent from the outside is received, first node information of a designated network node is acquired; the triggering is an action that determines the specified network node trigger in the middleware; and acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: calling a pre-configured middleware, wherein the middleware stores node information of each pre-configured network node; if a trigger action sent from the outside is received, first node information of a designated network node is acquired; the triggering is an action that determines the specified network node trigger in the middleware; and acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: calling a pre-configured middleware, wherein the middleware stores node information of each pre-configured network node; if a trigger action sent from the outside is received, first node information of a designated network node is acquired; the triggering is an action that determines the specified network node trigger in the middleware; and acquiring a path from the service party network node to the specified network node in the middleware according to the first node information and second node information of the service party network node of the service party corresponding to the data request sender, and performing data interaction with the data request receiver corresponding to the specified network node according to the path, the data request and the network address identifier of the data request sender.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (16)

1.一种网络节点的数据交互方法,其特征在于,包括:1. a data interaction method of a network node, characterized in that, comprising: 调取预先配置的中间件,所述中间件存储有预先配置的各网络节点的节点信息,所述各网络节点为企业网络中的设置有级联的网络节点,所述设置有级联的网络节点包括第一级网络节点至第N级网络节点,所述N为大于1的正整数;Retrieve pre-configured middleware, where the middleware stores pre-configured node information of each network node, each network node is a network node in the enterprise network that is configured with a cascade, and the network node is configured with a cascade The nodes include first-level network nodes to Nth-level network nodes, where N is a positive integer greater than 1; 若接收到外部发送的触发动作,则获取指定网络节点的第一节点信息,所述指定网络节点为除第一级网络节点之外的网络节点;所述触发动作为确定所述中间件中所述指定网络节点触发的动作;If a trigger action sent from the outside is received, the first node information of the specified network node is obtained, and the specified network node is a network node other than the first-level network node; the trigger action is to determine the information in the middleware. Describe the actions triggered by the specified network node; 根据所述第一节点信息和数据请求发送方对应的业务方的业务方网络节点的第二节点信息,获取所述中间件中所述业务方网络节点到所述指定网络节点之间的路径,包括:根据第一节点标识和第一节点与上一级节点之间的级联关系,以及第二节点信息包括第二节点标识和第二节点与上一级节点之间的级联关系,以及节点信息,获取所述第一节点与所述第二节点之间的所有中间节点,以及所有级联关系;根据所述所有中间节点和所述所有级联关系,逐级获取所述业务方网络节点到所述指定网络节点之间的路径,并根据所述路径、数据请求和所述数据请求发送方的网络地址标识,与所述指定网络节点对应的数据请求接收方进行数据交互,According to the first node information and the second node information of the service side network node of the service side corresponding to the data request sender, obtain the path between the service side network node and the designated network node in the middleware, including: according to the first node identifier and the cascading relationship between the first node and the upper-level node, and the second node information includes the second node identifier and the cascading relationship between the second node and the upper-level node, and Node information, obtain all intermediate nodes between the first node and the second node, and all cascading relationships; according to all intermediate nodes and all cascading relationships, obtain the business side network level by level the path between the node and the designated network node, and perform data interaction with the data request receiver corresponding to the designated network node according to the path, the data request and the network address identifier of the data request sender, 其中,所述第一节点信息包括第一节点标识和第一节点与上一级节点之间的级联关系;所述第二节点信息包括第二节点标识和第二节点与上一级节点之间的级联关系。Wherein, the first node information includes the first node identifier and the cascading relationship between the first node and the upper-level node; the second node information includes the second node identifier and the relationship between the second node and the upper-level node cascading relationship between them. 2.根据权利要求1所述的方法,其特征在于,所述数据请求包括数据写请求,所述数据写请求还携带有数据请求发送方的数据存储路径;相应的,所述并根据所述路径、数据请求和所述数据请求发送方的网络地址标识,与所述指定网络节点对应的数据请求接收方进行数据交互,包括:2. The method according to claim 1, wherein the data request comprises a data write request, and the data write request also carries a data storage path of a sender of the data request; The path, the data request, and the network address identifier of the data request sender, and perform data interaction with the data request receiver corresponding to the designated network node, including: 根据所述路径,查找到所述数据请求接收方,以使所述数据请求接收方通过访问所述网络地址标识,从所述数据存储路径获取数据,并写入所述数据请求接收方。According to the path, the data request recipient is found, so that the data request recipient obtains data from the data storage path by accessing the network address identifier, and writes the data request recipient. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 接收数据请求接收方在接收到全部数据后发出的通知消息。Receive data request notification message sent by the receiver after all data has been received. 4.根据权利要求2所述的方法,其特征在于,所述从所述数据存储路径获取数据的步骤之后,所述方法还包括:4. The method according to claim 2, wherein after the step of acquiring data from the data storage path, the method further comprises: 若待发送的数据的容量大于预设容量,将所述数据切分为多个子数据,并将所述多个子数据分批写入所述数据请求接收方。If the capacity of the data to be sent is greater than the preset capacity, the data is divided into multiple sub-data, and the multiple sub-data is written to the data request recipient in batches. 5.根据权利要求1至4任一所述的方法,其特征在于,所述节点信息还包括节点与上一级节点之间的通信时长;相应的,所述方法还包括:5. The method according to any one of claims 1 to 4, wherein the node information further comprises a communication duration between the node and an upper-level node; correspondingly, the method further comprises: 若所述通信时长超过预设时长,生成所述节点与所述上一级节点的第一告警消息。If the communication duration exceeds a preset duration, a first alarm message between the node and the upper-level node is generated. 6.根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:6. The method according to any one of claims 1 to 4, wherein the method further comprises: 若调取所述中间件的调取指令超过预设时限还未得到响应,生成调取超时的第二告警消息。If the calling instruction for calling the middleware has not been responded within a preset time limit, a second alarm message of calling timeout is generated. 7.根据权利要求1至4任一所述的方法,其特征在于,所述中间件是SSCascade级联中间件。7. The method according to any one of claims 1 to 4, wherein the middleware is SSCascade cascade middleware. 8.一种网络节点的数据交互装置,其特征在于,包括:8. A data interaction device for a network node, comprising: 调取单元,用于调取预先配置的中间件,所述中间件存储有预先配置的各网络节点的节点信息,所述各网络节点为企业网络中的设置有级联的网络节点,所述设置有级联的网络节点包括第一级网络节点至第N级网络节点,所述N为大于1的正整数;a retrieval unit, configured to retrieve pre-configured middleware, where the middleware stores the node information of each pre-configured network node, and each network node is a network node in an enterprise network that is configured with cascade connections, and the The network nodes provided with the cascade include a first-level network node to an Nth-level network node, where N is a positive integer greater than 1; 获取单元,用于若接收到外部发送的触发动作,则获取指定网络节点的第一节点信息,所述指定网络节点为除第一级网络节点之外的网络节点;所述触发动作为确定所述中间件中所述指定网络节点触发的动作;The acquiring unit is configured to acquire first node information of a specified network node if an externally sent trigger action is received, where the specified network node is a network node other than the first-level network node; the trigger action is to determine the Actions triggered by the specified network node described in the middleware; 发送单元,用于根据所述第一节点信息和数据请求发送方对应的业务方的业务方网络节点的第二节点信息,获取所述中间件中所述业务方网络节点到所述指定网络节点之间的路径,包括:根据第一节点标识和第一节点与上一级节点之间的级联关系,以及第二节点信息包括第二节点标识和第二节点与上一级节点之间的级联关系,以及节点信息,获取所述第一节点与所述第二节点之间的所有中间节点,以及所有级联关系;根据所述所有中间节点和所述所有级联关系,逐级获取所述业务方网络节点到所述指定网络节点之间的路径,并根据所述路径、数据请求和所述数据请求发送方的网络地址标识,与所述指定网络节点对应的数据请求接收方进行数据交互,A sending unit, configured to acquire the service-side network node to the designated network node in the middleware according to the first node information and the second node information of the business-side network node of the business-side corresponding to the data request sender The path between them includes: according to the first node identifier and the cascade relationship between the first node and the upper-level node, and the second node information includes the second node identifier and the relationship between the second node and the upper-level node. Cascading relationship, and node information, obtain all intermediate nodes between the first node and the second node, and all cascading relationships; according to all intermediate nodes and all cascading relationships, obtain level by level The path between the service side network node and the designated network node, and according to the path, the data request and the network address identifier of the data request sender, the data request receiver corresponding to the designated network node performs the process. Data interaction, 其中,所述第一节点信息包括第一节点标识和第一节点与上一级节点之间的级联关系;所述第二节点信息包括第二节点标识和第二节点与上一级节点之间的级联关系。Wherein, the first node information includes the first node identifier and the cascading relationship between the first node and the upper-level node; the second node information includes the second node identifier and the relationship between the second node and the upper-level node cascading relationship between them. 9.根据权利要求8所述的装置,其特征在于,所述数据请求包括数据写请求,所述数据写请求还携带有数据请求发送方的数据存储路径;相应的,所述发送单元具体用于:9. The device according to claim 8, wherein the data request comprises a data write request, and the data write request also carries a data storage path of the data request sender; At: 根据所述路径,查找到所述数据请求接收方,以使所述数据请求接收方通过访问所述网络地址标识,从所述数据存储路径获取数据,并写入所述数据请求接收方。According to the path, the data request recipient is found, so that the data request recipient obtains data from the data storage path by accessing the network address identifier, and writes the data request recipient. 10.根据权利要求9所述的装置,其特征在于,所述发送单元具体用于:10. The apparatus according to claim 9, wherein the sending unit is specifically configured to: 若检测到已将全部数据写入到所述数据请求接收方,向所述数据请求发送方发送通知消息。If it is detected that all data has been written to the data request receiver, a notification message is sent to the data request sender. 11.根据权利要求9所述的装置,其特征在于,所述发送单元具体用于:11. The device according to claim 9, wherein the sending unit is specifically configured to: 若获取到数据的容量大于预设容量,将所述数据切分为多个子数据,并将所述多个子数据分批写入所述数据请求接收方。If the capacity of the acquired data is greater than the preset capacity, the data is divided into multiple sub-data, and the multiple sub-data is written to the data request recipient in batches. 12.根据权利要求8至11任一所述的装置,其特征在于,所述节点信息还包括节点与上一级节点之间的通信时长;相应的,所述装置还用于:12. The apparatus according to any one of claims 8 to 11, wherein the node information further includes a communication duration between the node and an upper-level node; correspondingly, the apparatus is further configured to: 若所述通信时长超过预设时长,生成所述节点与所述上一级节点的第一告警消息。If the communication duration exceeds a preset duration, a first alarm message between the node and the upper-level node is generated. 13.根据权利要求8至11任一所述的装置,其特征在于,所述装置还用于:13. The device according to any one of claims 8 to 11, wherein the device is further used for: 若调取所述中间件的调取指令超过预设时限还未得到响应,生成调取超时的第二告警消息。If the calling instruction for calling the middleware has not been responded within a preset time limit, a second alarm message of calling timeout is generated. 14.根据权利要求8至11任一所述的装置,其特征在于,所述中间件是SSCascade级联中间件。14. The apparatus according to any one of claims 8 to 11, wherein the middleware is SSCascade cascade middleware. 15.一种电子设备,其特征在于,包括:处理器、存储器和总线,其中:15. An electronic device, comprising: a processor, a memory and a bus, wherein: 所述处理器和所述存储器通过所述总线完成相互间的通信;The processor and the memory communicate with each other through the bus; 所述存储器存储有可被所述处理器执行的程序指令,所述处理器调用所述程序指令能够执行如权利要求1-7任一项所述的方法。The memory stores program instructions executable by the processor, and the processor invokes the program instructions to be able to perform the method according to any one of claims 1-7. 16.一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如权利要求1-7任一项所述的方法。16. A non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions, the computer instructions cause the computer to perform the execution of any one of claims 1-7. method described.
CN201810053513.7A 2018-01-19 2018-01-19 A method and device for data interaction of network nodes Active CN108366098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810053513.7A CN108366098B (en) 2018-01-19 2018-01-19 A method and device for data interaction of network nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810053513.7A CN108366098B (en) 2018-01-19 2018-01-19 A method and device for data interaction of network nodes

Publications (2)

Publication Number Publication Date
CN108366098A CN108366098A (en) 2018-08-03
CN108366098B true CN108366098B (en) 2021-02-02

Family

ID=63006699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810053513.7A Active CN108366098B (en) 2018-01-19 2018-01-19 A method and device for data interaction of network nodes

Country Status (1)

Country Link
CN (1) CN108366098B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450664B (en) * 2018-10-09 2022-07-12 北京医拍智能科技有限公司 Data cooperative processing method and device based on block chain P2P network
CN112242913B (en) * 2019-07-18 2023-06-16 海能达通信股份有限公司 Communication system and communication node
CN111897843B (en) * 2020-06-19 2023-10-31 深圳奇迹智慧网络有限公司 Configuration method and device of data flow strategy of Internet of things and computer equipment
CN116722941B (en) * 2023-08-10 2023-10-20 南方电网数字电网研究院有限公司 Interactive verification method and device based on alarm information and secondary network data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163105A (en) * 2007-11-26 2008-04-16 华为技术有限公司 Method of obtaining path information and path computing node
CN103546559A (en) * 2013-10-24 2014-01-29 网宿科技股份有限公司 Data distribution method and device
US9177335B1 (en) * 2014-09-01 2015-11-03 AdSupply, Inc. Systems and methods to bypass online advertisement blockers
CN106357537A (en) * 2016-11-09 2017-01-25 北京工业大学 Link monitoring method based on SDN multipath transmission
CN106911540A (en) * 2017-04-26 2017-06-30 中国联合网络通信集团有限公司 The method and cloud platform of analysis power resource and service data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163105A (en) * 2007-11-26 2008-04-16 华为技术有限公司 Method of obtaining path information and path computing node
CN103546559A (en) * 2013-10-24 2014-01-29 网宿科技股份有限公司 Data distribution method and device
US9177335B1 (en) * 2014-09-01 2015-11-03 AdSupply, Inc. Systems and methods to bypass online advertisement blockers
CN106357537A (en) * 2016-11-09 2017-01-25 北京工业大学 Link monitoring method based on SDN multipath transmission
CN106911540A (en) * 2017-04-26 2017-06-30 中国联合网络通信集团有限公司 The method and cloud platform of analysis power resource and service data

Also Published As

Publication number Publication date
CN108366098A (en) 2018-08-03

Similar Documents

Publication Publication Date Title
US10320623B2 (en) Techniques for tracking resource usage statistics per transaction across multiple layers of protocols
CN108366098B (en) A method and device for data interaction of network nodes
CN107436844B (en) Method and device for generating interface use case collection
CN108108126B (en) Data processing method, device and equipment
CN110266505A (en) A method and device for managing conversation groups
CN108712478A (en) A kind of method and apparatus for sharing boarding application
CN116301568A (en) A data access method, device and equipment
CN109933508A (en) Method and apparatus for sending information
CN107493312B (en) Service calling method and device
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN111045723B (en) Method and device for notifying code change between associated systems
CN113010587B (en) Data source configuration method, device, terminal, server and medium
CN111858498A (en) Storage type conversion method, system, device and device
US10956413B2 (en) Action set translation
CN108390770B (en) Information generation method and device and server
CN111291127A (en) Data synchronization method, device, server and storage medium
TW201719455A (en) Interpreting data server, network device and automatic resource management method
CN106470225B (en) A kind of notification message management method and device
US20170041283A1 (en) Prioritizing and handling of messages across multiple communication systems
CN114385951A (en) Site content management method and device, computer equipment and storage medium
CN114138528A (en) Remote invocation fault-tolerant processing method, terminal device and storage medium
CN109062642B (en) Control message notification method and device
US20140344352A1 (en) Activity internet-accessible data storage view that shows recent and relevant content to the user
CN112422410A (en) Method and equipment for sharing information in session window of social application
CN112288990A (en) Method, system, medium and device for generating internet of things event based on internet of things data

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
CB02 Change of applicant information

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: QAX Technology Group Inc.

Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant before: BEIJING QIANXIN TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant