[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108366098A - A kind of data interactive method and device of network node - Google Patents

A kind of data interactive method and device of network node Download PDF

Info

Publication number
CN108366098A
CN108366098A CN201810053513.7A CN201810053513A CN108366098A CN 108366098 A CN108366098 A CN 108366098A CN 201810053513 A CN201810053513 A CN 201810053513A CN 108366098 A CN108366098 A CN 108366098A
Authority
CN
China
Prior art keywords
node
data
request
network node
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.)
Granted
Application number
CN201810053513.7A
Other languages
Chinese (zh)
Other versions
CN108366098B (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.)
Beijing Qianxin Technology Co Ltd
Original Assignee
Beijing Qianxin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qianxin Technology Co Ltd filed Critical Beijing Qianxin Technology 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

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 present invention provides a kind of data interactive method and device of network node, the method includes:Preconfigured middleware is transferred, the middleware is stored with the nodal information of preconfigured each network node;If receiving the trigger action of external transmission, the first node information for specifying network node is obtained;According to the second node information of the first node information and business side's network node of the corresponding business side of request of data sender, business side's network node described in the middleware is obtained to the path between the specified network node, and identified according to the network address in the path, request of data and the request of data sender, request of data recipient corresponding with the specified network node carries out data interaction.Described device executes the above method.Method and device provided in an embodiment of the present invention can efficiently realize the data interaction between data receiver and data sender.

Description

A kind of data interactive method and device of network node
Technical field
The present embodiments relate to technical field of data processing, and in particular to a kind of data interactive method of network node and Device.
Background technology
In enterprise network, it is usually provided with cascade network node, such as:First order network node is connected with multiple Two grade network node, each second level network node are connected with multiple third level network nodes, and first order network node is below The network node of all ranks carries out data interaction using the Unified Network address of first order network node with business side, existing In technology, if business side wants to carry out data interaction with third level network node C1, programmer is needed to know third level network Cascade connection between the associated second level network nodes of node C1 and C1 and the associated first order network nodes of C1, and pass through It writes logical between the associated second level network nodes of a large amount of program parsing C1 and C1 and the associated first order network nodes of C1 Letter agreement is not difficult to find out that the above-mentioned prior art consumes to realize the data interaction between business side and third level network node C1 Take a large amount of manual work, inefficiency.
Therefore, drawbacks described above how is avoided, saves human cost, and improve data between business side and network node at different levels Interactive efficiency, becoming need solve the problems, such as.
Invention content
In view of the problems of the existing technology, the embodiment of the present invention provides a kind of data interactive method and dress of network node It sets.
In a first aspect, the embodiment of the present invention provides a kind of data interactive method of network node, the method includes:
Preconfigured middleware is transferred, the middleware is stored with the nodal information of preconfigured each network node;
If receiving the trigger action of external transmission, the first node information for specifying network node is obtained;The triggering The action of network node triggering is specified in action to determine described in the middleware;
According to the of business side's network node of the first node information and the corresponding business side of request of data sender Two nodal informations obtain business side's network node described in the middleware to the path between the specified network node, and It is identified according to the network address in the path, request of data and the request of data sender, with the specified network node pair The request of data recipient answered carries out data interaction.
Second aspect, the embodiment of the present invention provide a kind of data interaction device of network node, and described device includes:
Unit is transferred, for transferring preconfigured middleware, the middleware is stored with preconfigured each network section The nodal information of point;
Acquiring unit, if the trigger action for receiving external transmission, obtains the first node for specifying network node Information;The trigger action is to determine the action that network node triggering is specified described in the middleware;
Transmission unit, for the business side according to the first node information and the corresponding business side of request of data sender The second node information of network node, obtain business side's network node described in the middleware to the specified network node it Between path, and identified according to the network address in the path, request of data and the request of data sender, and it is described specified The corresponding request of data recipient of network node carries out data interaction.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, including:Processor, memory and bus, wherein
The processor and the memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out following method:
Preconfigured middleware is transferred, the middleware is stored with the nodal information of preconfigured each network node;
If receiving the trigger action of external transmission, the first node information for specifying network node is obtained;The triggering The action of network node triggering is specified in action to determine described in the middleware;
According to the of business side's network node of the first node information and the corresponding business side of request of data sender Two nodal informations obtain business side's network node described in the middleware to the path between the specified network node, and It is identified according to the network address in the path, request of data and the request of data sender, with the specified network node pair The request of data recipient answered carries out data interaction.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, including:
The non-transient computer readable storage medium stores computer instruction, and the computer instruction makes the computer Execute following method:
Preconfigured middleware is transferred, the middleware is stored with the nodal information of preconfigured each network node;
If receiving the trigger action of external transmission, the first node information for specifying network node is obtained;The triggering The action of network node triggering is specified in action to determine described in the middleware;
According to the of business side's network node of the first node information and the corresponding business side of request of data sender Two nodal informations obtain business side's network node described in the middleware to the path between the specified network node, and It is identified according to the network address in the path, request of data and the request of data sender, with the specified network node pair The request of data recipient answered carries out data interaction.
The data interactive method and device of network node provided in an embodiment of the present invention, by transferring preconfigured centre Part can efficiently realize the data interaction between data receiver and data sender.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the data interactive method flow diagram of network node of the embodiment of the present invention;
Fig. 2 is the data interaction device structural schematic diagram of network node of the embodiment of the present invention;
Fig. 3 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the data interactive method flow diagram of network node of the embodiment of the present invention, as shown in Figure 1, the present invention is real The data interactive method for applying a kind of network node of example offer, includes the following steps:
S1:Preconfigured middleware is transferred, the middleware is stored with the node letter of preconfigured each network node Breath.
Specifically, device transfers preconfigured middleware, the middleware is stored with preconfigured each network node Nodal information.Device can be the local terminal for being equipped with middleware.The middleware can be that SSCascade cascades are intermediate Part can be executable application program cascade.exe.The application program that can be write by programmer, which is transferred, to be pre-configured with Middleware, directly provide api interface, business side to business side (local terminal for being equipped with middleware) with the mode of middleware It only needs cascade.exe (executable file of middleware) to be installed to local, by the file being pre-configured with after installing, in Between part being transferred be that can generate Yellow Page, which shows that all network nodes at different levels, each network node are required for pre- Cascade.exe is first installed to local, business side is only needed using cascade.exe in the API locally provided, you can to obtain Get the nodal information of each network node.It can be in the following way:It realizes from local and transfers preconfigured middleware, with life At Yellow Page (GetWholeTree):
Curl http://127.0.0.1:3652/GetWholeTree
3652 be that SSCascade cascade middlewares transfer port numbers, and GetWholeTree is Yellow Page.
Nodal information may include node identification ccid, even higher level of node mark pccid, node state (may include Line/offline), the network transfer speeds of node to even higher level of node, node be at the time of finally transmit/receive data.Such as:The node Ccid is that the pccid of b1, b1 even higher level of node is a1, the network transfer speeds transmitted from b1 to a1 be 128kbps, finally receive/ It is 2017.8.1 18 at the time of sending out data:17:16;The ccid of another node is c1, and the pccid of c1 even higher level of nodes is b1, by The network transfer speeds that c1 is transmitted to b1 are 32kbps, at the time of finally transmit/receive data are 2017.8.1 15:17:16, it can be with Find out:The even higher level of node of c1 is b1, and the even higher level of node of b1 is a1, to reflect the cascade connection between c1, b1, a1.
S2:If receiving the trigger action of external transmission, the first node information for specifying network node is obtained;It is described to touch Start as determining the action triggered after the specified network node according to the nodal information.
Specifically, if device receives the trigger action of external transmission, the first node letter for specifying network node is obtained Breath;The trigger action is to determine the action that network node triggering is specified described in the middleware.Trigger action can be made The actions such as the click, the touch-control that are sent out with the programmer for the local terminal for being equipped with middleware.Specified network node corresponds to data The recipient of request (another party is business side);With reference to the example above, using c1 as specified network node, the i.e. first node of c1 Information may include that ccid is c1, and the pccid of c1 even higher level of nodes is b1, and the network transfer speeds transmitted from c1 to b1 are 32kbps, at the time of finally transmit/receive data it is 2017.8.1 15:17:16 etc..
S3:According to business side's network node of the first node information and the corresponding business side of request of data sender Second node information, obtains business side's network node described in the middleware to the path between the specified network node, And identified according to the network address in the path, request of data and the request of data sender, with the specified network node Corresponding request of data recipient carries out data interaction.
Specifically, business side net of the device according to the first node information and the corresponding business side of request of data sender The second node information of network node obtains business side's network node described in the middleware between the specified network node Path, and according to the network address in the path, request of data and the request of data sender identify, with the specified net The corresponding request of data recipient of network node carries out data interaction.Network node (the business side that business side also increases newly as Yellow Page Network node), corresponding business side's network node, the particular content of the second node information of business side's network node can refer to above-mentioned First node information, repeats no more.With reference to the example above, second node al believes according to the node of the nodal information of al and cl Breath and the cascade connection between al and cl in Yellow Page, the path between al and cl are that cl to b1 arrives a1, and b1 is middle node Point, intermediate node number can be it is multiple, according to by rudimentary to the advanced sequence (network node below i.e. in cascade connection To network node above) business side's network node is obtained step by step to the path between specified network node, business side a1 is corresponded to Request of data sender network address mark can be the subsequent Param of URL and URL, a1 is according to path:Cl to b1 is arrived The network address mark and the request of data of a1, corresponding request of data sender, data friendship is carried out with request of data recipient Mutually, it after data interaction to be done, can show paths in request of data sender and/or request of data recipient:Cl to b1 is arrived The particular content of a1 and data, such as:" cl to b1 arrives a1 ", " 4eade7c1-e7f4-4a0e-907b- 9a06c8c96ec7”。
It should be further noted that:Request of data may include data write request, and data write request can also carry The data storage path of request of data sender, a1 arrive a1 according to path cl to b1, find business side network node c1;Data Request recipient obtains data " 4eade7c1-e7f4-4a0e- by accessing network address mark, from data storage path 907b-9a06c8c96ec7 ", and request of data recipient is written.Request of data recipient can obtain request of data hair in advance Data capacity in the side of sending is judged whether to receive total data according to data capacity, will be complete if detected Portion's data are written to request of data recipient, and to request of data, sender sends a notification message.
It is multiple subdatas by the data cutting, and will be multiple if the capacity of data to be sent is more than preset capacity Request of data recipient is written in subdata in batches, and preset capacity can be independently arranged according to actual conditions.
Nodal information can also include the communication time between node and even higher level of node, if the communication time is more than pre- If duration, the first alarm information of node and even higher level of node is generated.Preset duration can be independently arranged according to actual conditions.
If the instruction of transferring for transferring middleware is more than not meet with a response also in the default time limit, generation is transferred overtime second and is accused Alert message.The default time limit can be independently arranged according to actual conditions.
The data interactive method of network node provided in an embodiment of the present invention, by transferring preconfigured middleware, energy Enough data interactions efficiently realized between data receiver and data sender.
On the basis of the above embodiments, the first node information includes first node mark and first node and upper one Cascade connection between grade node;The second node information include second node mark and second node and even higher level of node it Between cascade connection;Correspondingly, described according to the first node information, the business of the corresponding business side of request of data sender The second node information of square network node and the nodal information obtain business side's network node to the specified network section Path between point, including:
According to first node mark and the cascade connection between first node and even higher level of node and described second Nodal information includes second node mark and the cascade connection between second node and even higher level of node and node letter Breath, obtains all intermediate nodes between the first node and the second node and all cascade connections.
Specifically, device identifies the cascade connection between first node and even higher level of node according to the first node, And the second node information include second node mark and the cascade connection between second node and even higher level of node, and The nodal information, all intermediate nodes and all cascades obtained between the first node and the second node close System.
According to all intermediate nodes and all cascade connections, business side's network node is obtained step by step to institute State the path between specified network node.
Specifically, device obtains the business side step by step according to all intermediate nodes and all cascade connections Network node is to the path between the specified network node.Above-described embodiment is can refer to, is repeated no more.
The data interactive method of network node provided in an embodiment of the present invention can efficiently get industry by middleware Business side's network node is to the path between specified network node.
On the basis of the above embodiments, the request of data includes data write request, and the data write request also carries There is the data storage path of request of data sender;Correspondingly, described and asked according to the path, request of data and the data The network address of sender is asked to identify, request of data recipient corresponding with the specified network node carries out data interaction, packet It includes:
According to the path, the request of data recipient is found, so that the request of data recipient passes through access The network address mark, obtains data, and the request of data recipient is written from the data storage path.
Specifically, device finds the request of data recipient according to the path, so that the request of data receives Side is identified by accessing the network address, and data are obtained from the data storage path, and the request of data is written and receives Side, can refer to above-described embodiment, repeats no more.
The data interactive method of network node provided in an embodiment of the present invention, request of data recipient pass through with accessing network Location identifies, and obtains data from the data storage path of request of data sender, and ensure that can normally write data into number According to request recipient.
On the basis of the above embodiments, the method further includes:
Receive the notification message that request of data recipient sends out after receiving total data.
Specifically, device receives the notification message that request of data recipient sends out after receiving total data.It can refer to Above-described embodiment repeats no more.
The data interactive method of network node provided in an embodiment of the present invention is further able to be written to by total data When request of data recipient, the notification message that request of data recipient sends out is received, has effectively prompted whether write-in is completed.
On the basis of the above embodiments, after described the step of obtaining data from the data storage path, the side Method further includes:
It is multiple subdatas by the data cutting if the capacity of data to be sent is more than preset capacity, and will be described The request of data recipient is written in multiple subdatas in batches.
If specifically, the capacity of device data to be sent be more than preset capacity, by the data cutting be multiple subnumbers According to, and the request of data recipient is written into the multiple subdata in batches.Above-described embodiment is can refer to, is repeated no more.
By by data cutting, and number is written in the data interactive method of network node provided in an embodiment of the present invention in batches According to request recipient, the data for effectively sending larger capacity are ensure that.
On the basis of the above embodiments, when the nodal information further includes the communication between node and even higher level of node It is long;Correspondingly, the method further includes:
If the communication time is more than preset duration, the first alarm for generating the node and the even higher level of node disappears Breath.
Specifically, if device judgement knows that the communication time is more than preset duration, the node and described upper one are generated First alarm information of grade node.Above-described embodiment is can refer to, is repeated no more.
The data interactive method of network node provided in an embodiment of the present invention, by generating the first alarm information, Neng Gouji When reflect the communication conditions of network node.
On the basis of the above embodiments, the method further includes:
If the instruction of transferring for transferring the middleware is more than not meet with a response also in the default time limit, generates and transfer the second of time-out Alarm information.
Specifically, if the instruction of transferring that device transfers the middleware is more than not meet with a response also in the default time limit, industry is generated The second alarm information that business is transferred.Above-described embodiment is can refer to, is repeated no more.
The data interactive method of network node provided in an embodiment of the present invention, by generating the second alarm information, Neng Gouji When reflect the responsive status for transferring middleware.
On the basis of the above embodiments, the middleware is SSCascade cascade middlewares.
Specifically, the middleware in device is SSCascade cascade middlewares.Above-described embodiment is can refer to, no longer It repeats.
The data interactive method of network node provided in an embodiment of the present invention, by the way that middleware is chosen to be SSCascade Middleware is cascaded, the data interaction between network node is better achieved.
Fig. 2 is the data interaction device structural schematic diagram of network node of the embodiment of the present invention, as shown in Fig. 2, the present invention is real It applies example and provides a kind of data interaction device of network node, including transfer unit 1, acquiring unit 2 and transmission unit 3, wherein:
Unit 1 is transferred for transferring preconfigured middleware, the middleware is stored with preconfigured each network section The nodal information of point;If acquiring unit 2 is used to receive the trigger action of external transmission, obtains and specify the first of network node Nodal information;The trigger action is to determine the action that network node triggering is specified described in the middleware;Transmission unit 3 is used In the second node according to the first node information and business side's network node of the corresponding business side of request of data sender Information obtains business side's network node described in the middleware to the path between the specified network node, and according to institute State the network address mark in path, request of data and the request of data sender, number corresponding with the specified network node Data interaction is carried out according to request recipient.
It is stored with preconfigured each for transferring preconfigured middleware, the middleware specifically, transferring unit 1 The nodal information of network node;If acquiring unit 2 is used to receive the trigger action of external transmission, obtains and specify network node First node information;The trigger action is to determine the action that network node triggering is specified described in the middleware;It sends Unit 3 is used for the according to business side's network node of the first node information and the corresponding business side of request of data sender Two nodal informations obtain business side's network node described in the middleware to the path between the specified network node, and It is identified according to the network address in the path, request of data and the request of data sender, with the specified network node pair The request of data recipient answered carries out data interaction.
The data interaction device of network node provided in an embodiment of the present invention, by transferring preconfigured middleware, energy Enough data interactions efficiently realized between data receiver and data sender.
On the basis of the above embodiments, the first node information includes first node mark and first node and upper one Cascade connection between grade node;The second node information include second node mark and second node and even higher level of node it Between cascade connection;Correspondingly, the transmission unit 3 is specifically used for:
According to first node mark and the cascade connection between first node and even higher level of node and described second Nodal information includes second node mark and the cascade connection between second node and even higher level of node and node letter Breath, obtains all intermediate nodes between the first node and the second node and all cascade connections;According to described All intermediate nodes and all cascade connections, obtain step by step business side's network node to the specified network node it Between path.
Specifically, the transmission unit 3 is specifically used for:
According to first node mark and the cascade connection between first node and even higher level of node and described second Nodal information includes second node mark and the cascade connection between second node and even higher level of node and node letter Breath, obtains all intermediate nodes between the first node and the second node and all cascade connections;According to described All intermediate nodes and all cascade connections, obtain step by step business side's network node to the specified network node it Between path.
The data interaction device of network node provided in an embodiment of the present invention can efficiently get industry by middleware Business side's network node is to the path between specified network node.
On the basis of the above embodiments, the request of data includes data write request, and the data write request also carries There is the data storage path of request of data sender;Correspondingly, the transmission unit 3 is specifically used for:
According to the path, the request of data recipient is found, so that the request of data recipient passes through access The network address mark, obtains data, and the request of data recipient is written from the data storage path.
Specifically, the transmission unit 3 is specifically used for:
According to the path, the request of data recipient is found, so that the request of data recipient passes through access The network address mark, obtains data, and the request of data recipient is written from the data storage path.
The data interaction device of network node provided in an embodiment of the present invention, request of data recipient pass through with accessing network Location identifies, and obtains data from the data storage path of request of data sender, and ensure that can normally write data into number According to request recipient.
On the basis of the above embodiments, the transmission unit 3 is specifically used for:
If detecting and total data being written to the request of data recipient, sent to the request of data sender Notification message.
Specifically, the transmission unit 3 is specifically used for:
If detecting and total data being written to the request of data recipient, sent to the request of data sender Notification message.
The data interaction device of network node provided in an embodiment of the present invention is further able to be written to by total data When request of data recipient, the notification message that request of data recipient sends out is received, has effectively prompted whether write-in is completed.
On the basis of the above embodiments, the transmission unit 3 is specifically used for:
It is multiple subdatas by the data cutting, and will be described more if the capacity for getting data is more than preset capacity The request of data recipient is written in a subdata in batches.
Specifically, the transmission unit 3 is specifically used for:
It is multiple subdatas by the data cutting, and will be described more if the capacity for getting data is more than preset capacity The request of data recipient is written in a subdata in batches.
By by data cutting, and number is written in the data interaction device of network node provided in an embodiment of the present invention in batches According to request recipient, the data for effectively sending larger capacity are ensure that.
On the basis of the above embodiments, when the nodal information further includes the communication between node and even higher level of node It is long;Correspondingly, described device is additionally operable to:
If the communication time is more than preset duration, the first alarm for generating the node and the even higher level of node disappears Breath.
Specifically, described device is additionally operable to:
If the communication time is more than preset duration, the first alarm for generating the node and the even higher level of node disappears Breath.
The data interaction device of network node provided in an embodiment of the present invention, by generating the first alarm information, Neng Gouji When reflect the communication conditions of network node.
On the basis of the above embodiments, described device is additionally operable to:
If the instruction of transferring for transferring the middleware is more than not meet with a response also in the default time limit, generates and transfer the second of time-out Alarm information.
Specifically, described device is additionally operable to:
If the instruction of transferring for transferring the middleware is more than not meet with a response also in the default time limit, generates and transfer the second of time-out Alarm information.
The data interaction device of network node provided in an embodiment of the present invention, by generating the second alarm information, Neng Gouji When reflect the responsive status for transferring middleware.
On the basis of the above embodiments, the middleware is SSCascade cascade middlewares.
Specifically, the middleware in device is SSCascade cascade middlewares.
The data interaction device of network node provided in an embodiment of the present invention, by the way that middleware is chosen to be SSCascade Middleware is cascaded, the data interaction between network node is better achieved.
It is real that the data interaction device of network node provided in an embodiment of the present invention specifically can be used for executing above-mentioned each method The process flow of example is applied, details are not described herein for function, is referred to the detailed description of above method embodiment.
Fig. 3 is electronic equipment entity structure schematic diagram provided in an embodiment of the present invention, as shown in figure 3, the electronic equipment Including:Processor (processor) 301, memory (memory) 302 and bus 303;
Wherein, the processor 301, memory 302 complete mutual communication by bus 303;
The processor 301 is used to call the program instruction in the memory 302, to execute above-mentioned each method embodiment The method provided, such as including:Preconfigured middleware is transferred, the middleware is stored with preconfigured each network section The nodal information of point;If receiving the trigger action of external transmission, the first node information for specifying network node is obtained;It is described Trigger action is to determine the action that network node triggering is specified described in the middleware;According to the first node information sum number According to the second node information of business side's network node of the corresponding business side of request sender, industry described in the middleware is obtained Business side's network node is asked to the path between the specified network node, and according to the path, request of data and the data The network address of sender is asked to identify, request of data recipient corresponding with the specified network node carries out data interaction.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine executes, computer is able to carry out the method that above-mentioned each method embodiment is provided, such as including:Transfer it is preconfigured in Between part, the middleware is stored with the nodal information of preconfigured each network node;If the triggering for receiving external transmission is dynamic Make, then obtains the first node information for specifying network node;The trigger action is to determine to specify net described in the middleware The action of network node triggering;According to business side's network of the first node information and the corresponding business side of request of data sender The second node information of node obtains business side's network node described in the middleware between the specified network node Path, and identified according to the network address in the path, request of data and the request of data sender, with the specified network The corresponding request of data recipient of node carries out data interaction.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute the method that above-mentioned each method embodiment is provided, example Such as include:Preconfigured middleware is transferred, the middleware is stored with the nodal information of preconfigured each network node;If The trigger action for receiving external transmission, then obtain the first node information for specifying network node;The trigger action is to determine The action of network node triggering is specified described in the middleware;According to the first node information and request of data sender couple The second node information of the business side's network node for the business side answered obtains business side's network node described in the middleware and arrives Path between the specified network node, and according to the path, the network of request of data and the request of data sender Address identifies, and request of data recipient corresponding with the specified network node carries out data interaction.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer read/write memory medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light The various media that can store program code such as disk.
The embodiments such as electronic equipment described above are only schematical, illustrate as separating component wherein described Unit may or may not be physically separated, and the component shown as unit may or may not be object Manage unit, you can be located at a place, or may be distributed over multiple network units.It can select according to the actual needs Some or all of module therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying wound In the case of the labour for the property made, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the embodiment of the present invention rather than right It is limited;Although the embodiment of the present invention is described in detail with reference to foregoing embodiments, the ordinary skill of this field Personnel should understand that:It still can be with technical scheme described in the above embodiments is modified, or to which part Or all technical features carries out equivalent replacement;And these modifications or replacements, it does not separate the essence of the corresponding technical solution The range of each embodiment technical solution of the embodiment of the present invention.

Claims (18)

1. a kind of data interactive method of network node, which is characterized in that including:
Preconfigured middleware is transferred, the middleware is stored with the nodal information of preconfigured each network node;
If receiving the trigger action of external transmission, the first node information for specifying network node is obtained;The trigger action To specify the action of network node triggering described in the determination middleware;
According to the second section of the first node information and business side's network node of the corresponding business side of request of data sender Point information, obtains business side's network node described in the middleware to the path between the specified network node, and according to The network address in the path, request of data and the request of data sender identifies, corresponding with the specified network node Request of data recipient carries out data interaction.
2. according to the method described in claim 1, it is characterized in that, the first node information includes first node mark and the Cascade connection between one node and even higher level of node;The second node information include second node mark and second node and Cascade connection between even higher level of node;Correspondingly, described corresponding according to the first node information, request of data sender The second node information of business side's network node of business side and the nodal information obtain business side's network node to institute The path between specified network node is stated, including:
According to first node mark and the cascade connection between first node and even higher level of node and the second node Information includes second node mark and the cascade connection between second node and even higher level of node and the nodal information, is obtained Take all intermediate nodes between the first node and the second node and all cascade connections;
According to all intermediate nodes and all cascade connections, business side's network node is obtained step by step to the finger Determine the path between network node.
3. according to the method described in claim 1, it is characterized in that, the request of data includes data write request, the data Write request also carries the data storage path of request of data sender;Correspondingly, described and according to the path, request of data It is identified with the network address of the request of data sender, request of data recipient corresponding with the specified network node carries out Data interaction, including:
According to the path, the request of data recipient is found, so that the request of data recipient passes through described in access Network address identifies, and obtains data from the data storage path, and the request of data recipient is written.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
Receive the notification message that request of data recipient sends out after receiving total data.
5. according to the method described in claim 3, it is characterized in that, described the step of obtaining data from the data storage path Later, the method further includes:
It is multiple subdatas by the data cutting, and will be the multiple if the capacity of data to be sent is more than preset capacity The request of data recipient is written in subdata in batches.
6. method according to any one of claims 1 to 5, which is characterized in that the nodal information further includes node and upper one Communication time between grade node;Correspondingly, the method further includes:
If the communication time is more than preset duration, the first alarm information of the node and the even higher level of node is generated.
7. method according to any one of claims 1 to 5, which is characterized in that the method further includes:
If the instruction of transferring for transferring the middleware is more than not meet with a response also in the default time limit, the second alarm for transferring time-out is generated Message.
8. method according to any one of claims 1 to 5, which is characterized in that the middleware is that SSCascade cascades are intermediate Part.
9. a kind of data interaction device of network node, which is characterized in that including:
Unit is transferred, for transferring preconfigured middleware, the middleware is stored with preconfigured each network node Nodal information;
Acquiring unit, if the trigger action for receiving external transmission, obtains the first node information for specifying network node; The trigger action is to determine the action that network node triggering is specified described in the middleware;
Transmission unit, for business side's network according to the first node information and the corresponding business side of request of data sender The second node information of node obtains business side's network node described in the middleware between the specified network node Path, and identified according to the network address in the path, request of data and the request of data sender, with the specified network The corresponding request of data recipient of node carries out data interaction.
10. device according to claim 9, which is characterized in that the first node information include first node mark and Cascade connection between first node and even higher level of node;The second node information includes second node mark and second node Cascade connection between even higher level of node;Correspondingly, the transmission unit is specifically used for:
According to first node mark and the cascade connection between first node and even higher level of node and the second node Information includes second node mark and the cascade connection between second node and even higher level of node and the nodal information, is obtained Take all intermediate nodes between the first node and the second node and all cascade connections;
According to all intermediate nodes and all cascade connections, business side's network node is obtained step by step to the finger Determine the path between network node.
11. device according to claim 9, which is characterized in that the request of data includes data write request, the data Write request also carries the data storage path of request of data sender;Correspondingly, the transmission unit is specifically used for:
According to the path, the request of data recipient is found, so that the request of data recipient passes through described in access Network address identifies, and obtains data from the data storage path, and the request of data recipient is written.
12. according to the devices described in claim 11, which is characterized in that the transmission unit is specifically used for:
If detecting and total data being written to the request of data recipient, sends and notify to the request of data sender Message.
13. according to the devices described in claim 11, which is characterized in that the transmission unit is specifically used for:
It is multiple subdatas by the data cutting, and by the multiple son if the capacity for getting data is more than preset capacity The request of data recipient is written in data in batches.
14. device according to any one of claims 9 to 13, which is characterized in that the nodal information further include node with it is upper Communication time between first nodes;Correspondingly, described device is additionally operable to:
If the communication time is more than preset duration, the first alarm information of the node and the even higher level of node is generated.
15. device according to any one of claims 9 to 13, which is characterized in that described device is additionally operable to:
If the instruction of transferring for transferring the middleware is more than not meet with a response also in the default time limit, the second alarm for transferring time-out is generated Message.
16. device according to any one of claims 9 to 13, which is characterized in that the middleware is in SSCascade cascades Between part.
17. a kind of electronic equipment, which is characterized in that including:Processor, memory and bus, wherein:
The processor and the memory complete mutual communication by the bus;
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy It is enough to execute such as claim 1-8 any one of them methods.
18. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute such as claim 1-8 any one of them methods.
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 true CN108366098A (en) 2018-08-03
CN108366098B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450664A (en) * 2018-10-09 2019-03-08 北京医拍智能科技有限公司 A kind of data collaborative processing method and processing device based on block chain P2P network
CN111897843A (en) * 2020-06-19 2020-11-06 深圳奇迹智慧网络有限公司 Configuration method and device of data transfer strategy of Internet of things and computer equipment
CN112242913A (en) * 2019-07-18 2021-01-19 海能达通信股份有限公司 Communication system and communication node
CN116722941A (en) * 2023-08-10 2023-09-08 南方电网数字电网研究院有限公司 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

Cited By (8)

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

Also Published As

Publication number Publication date
CN108366098B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN110535831B (en) Kubernetes and network domain-based cluster security management method and device and storage medium
CN113641457B (en) Container creation method, device, apparatus, medium, and program product
CN108366098A (en) A kind of data interactive method and device of network node
CN109743358A (en) Asynchronous message interface fusing control method, device, computer equipment and storage medium
JP6788501B2 (en) Methods, systems, and computer programs for collecting usage data to determine user availability on multiple communication devices.
CN107832329A (en) Page resource acquisition methods and terminal device
CN109947408B (en) Message pushing method and device, storage medium and electronic equipment
CN105357042B (en) A kind of highly available cluster system and its host node and from node
CN108810125B (en) Service discovery method and system for physical node
CN111858007A (en) Task scheduling method and device based on message middleware
CN115277566A (en) Load balancing method and device for data access, computer equipment and medium
CN110287146A (en) Using the method, equipment and computer storage medium of downloading
CN105930249B (en) Using monitoring method and device
CN110442819A (en) Data processing method, device, storage medium and terminal
CN108173783A (en) A kind of message treatment method and system
CN112769876B (en) Method, device, equipment and medium for acquiring equipment channel information
CN108683550A (en) A kind of call method and relevant device of configuration interface
CN110413398A (en) Method for scheduling task, device, computer equipment and storage medium
CN107682389A (en) A kind of method, terminal and computer-readable recording medium for performing network request
US20160269331A1 (en) Allow hidden and silent observers in a group conversation
CN104184762B (en) A kind of server failure information feedback method and system
CN104216739B (en) A kind of download process method and device, terminal
CN108958980A (en) Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception
CN113741754A (en) Task creation method and device, electronic equipment and computer-readable storage medium
CN108170545A (en) A kind of method for message transmission and device based on message-oriented middleware

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
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.

GR01 Patent grant
GR01 Patent grant