CN108366098B - Data interaction method and device for network nodes - Google Patents

Data interaction method and device for 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.)
Qianxin Technology Group Co Ltd
Original Assignee
Qianxin Technology Group 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 Qianxin Technology Group Co Ltd filed Critical Qianxin Technology Group Co Ltd
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)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data interaction method and a data interaction device for network nodes, wherein the method comprises the following steps: 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; 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 device performs the above method. The method and the device provided by the embodiment of the invention can efficiently realize data interaction between the data receiver and the data sender.

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. A data interaction method of a network node is characterized by comprising the following steps:
calling a pre-configured middleware, wherein the middleware stores node information of each pre-configured network node, each network node is a network node provided with cascade in an enterprise network, the network node provided with cascade comprises a first-level network node to an Nth-level network node, and N is a positive integer greater than 1;
if a trigger action sent from the outside is received, first node information of a designated network node is obtained, wherein the designated network node is a network node except a first-stage network node; the triggering is an action that determines the specified network node trigger in the middleware;
acquiring a path from the service party network node to the designated 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, including: acquiring all intermediate nodes and all cascade relations between a first node and a second node according to a first node identifier, the cascade relation between the first node and a previous node, second node information including a second node identifier, the cascade relation between the second node and the previous node, and node information; acquiring paths from the network node of the service party to the designated network node step by step according to all the intermediate nodes and all the cascade relations, and performing data interaction with a data request receiver corresponding to the designated network node according to the paths, the data request and the network address identifier of the data request sender,
the first node information comprises a first node identification and a cascade relation between a first node and a previous node; the second node information comprises a second node identification and a cascade relation between the second node and the previous node.
2. The method according to claim 1, wherein the data request comprises a data write request, and the data write request further 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.
3. The method of claim 2, further comprising:
and receiving a notification message sent by a data request receiver after receiving all data.
4. The method of claim 2, wherein after the step of retrieving data from the data storage path, the method further comprises:
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.
5. The method according to any one of claims 1 to 4, wherein the node information further includes a communication duration between the node and a previous 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.
6. The method of any of claims 1 to 4, further comprising:
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.
7. The method of any one of claims 1 to 4, wherein the middleware is SSCascade cascade middleware.
8. A data interaction apparatus of a network node, comprising:
the system comprises a calling unit, a receiving unit and a sending unit, wherein the calling unit is used for calling a pre-configured middleware, the middleware stores node information of each pre-configured network node, each network node is a cascaded network node arranged in an enterprise network, the cascaded network nodes comprise a first-level network node to an Nth-level network node, and N is a positive integer greater than 1;
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, and the designated network node is a network node except a first-level network node; the triggering is an action that determines the specified network node trigger in the middleware;
a sending unit, configured to obtain, according to the first node information and second node information of a service-side network node of a service side corresponding to a data request sender, a path from the service-side network node to the specified network node in the middleware, where the path includes: acquiring all intermediate nodes and all cascade relations between a first node and a second node according to a first node identifier, the cascade relation between the first node and a previous node, second node information including a second node identifier, the cascade relation between the second node and the previous node, and node information; acquiring paths from the network node of the service party to the designated network node step by step according to all the intermediate nodes and all the cascade relations, and performing data interaction with a data request receiver corresponding to the designated network node according to the paths, the data request and the network address identifier of the data request sender,
the first node information comprises a first node identification and a cascade relation between a first node and a previous node; the second node information comprises a second node identification and a cascade relation between the second node and the previous node.
9. The apparatus according to claim 8, wherein the data request comprises a data write request, and the data write request further carries a data storage path of a data request sender; correspondingly, the sending unit 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.
10. The apparatus according to claim 9, wherein the sending unit 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.
11. The apparatus according to claim 9, wherein the sending unit 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.
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 a previous 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.
13. The apparatus of any of claims 8 to 11, wherein 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.
14. The apparatus of any one of claims 8 to 11, wherein the middleware is a sscacade cascade middleware.
15. An electronic device, comprising: 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 the method of any one of claims 1-7.
16. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1-7.
CN201810053513.7A 2018-01-19 2018-01-19 Data interaction method and device for 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 Data interaction method and device for network nodes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810053513.7A CN108366098B (en) 2018-01-19 2018-01-19 Data interaction method and device for 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 Data interaction method and device for 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 网宿科技股份有限公司 Method and device for distributing data
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 网宿科技股份有限公司 Method and device for distributing data
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
CN108366098B (en) Data interaction method and device for network nodes
CN107911487B (en) Information pushing method and device, server and readable storage medium
CN106548402B (en) Resource transfer monitoring method and device
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
CN106375458B (en) Service calling system, method and device
CN107436844B (en) Method and device for generating interface use case aggregate
JP6788501B2 (en) Methods, systems, and computer programs for collecting usage data to determine user availability on multiple communication devices.
US20200257749A1 (en) Method and a device for friend recommendation
CN110442502B (en) Point burying method, device, equipment and storage medium
CN111913738A (en) Access request processing method, device, computing equipment and medium
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN108108126B (en) Data processing method, device and equipment
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
US9577967B2 (en) Method and system for managing an informational site using a social networking application
CN112291137A (en) Method and device for adding new friends to enterprise-level communication software
CN105991683A (en) Data transmission method and device
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN108390770B (en) Information generation method and device and server
CN109587198B (en) Image-text information pushing method and device
CN107368376B (en) Message sending method and device, expansion method and terminal
CN104200175A (en) Information protection method and device
CN111291127B (en) Data synchronization method, device, server and storage medium
US20170041283A1 (en) Prioritizing and handling of messages across multiple communication systems
CN109062642B (en) Control message notification method and device
CN107835124B (en) Mail sending method, device and system

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: Qianxin Technology Group Co.,Ltd.

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

Applicant before: Beijing Qi'anxin Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant