CN109803023A - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN109803023A
CN109803023A CN201910101223.XA CN201910101223A CN109803023A CN 109803023 A CN109803023 A CN 109803023A CN 201910101223 A CN201910101223 A CN 201910101223A CN 109803023 A CN109803023 A CN 109803023A
Authority
CN
China
Prior art keywords
node
connection request
http connection
data
websocket
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910101223.XA
Other languages
Chinese (zh)
Inventor
王昕辰
胡锴
谢涛
郑涤非
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rong Chain Technology Co Ltd
Original Assignee
Beijing Rong Chain 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 Rong Chain Technology Co Ltd filed Critical Beijing Rong Chain Technology Co Ltd
Priority to CN201910101223.XA priority Critical patent/CN109803023A/en
Publication of CN109803023A publication Critical patent/CN109803023A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

This application discloses a kind of data processing method and systems.This method comprises: first node sends the first HTTP connection request to second node, wherein first node and second node are the node on block catenary system, and the first HTTP connection request establishes websocket connection for requesting;Whether detection first node receives the 2nd HTTP connection request of second node transmission, wherein the 2nd HTTP connection request is used for the first HTTP connection request of response;In the case where first node receives the 2nd HTTP connection request of second node transmission, websocket connection is established between first node and second node.By the application, solves and communicated between the node of block catenary system and node using the modes such as TCP, UDP in the related technology, the problem of data are easy to be shielded, data are easily lost.

Description

Data processing method and system
Technical field
This application involves technical field of data processing, in particular to a kind of data processing method and system.
Background technique
Communication between big data block chain node and node at present is to be attached by HTTP, and HTTP connection is built Vertical to need to spend more time, data transmission will be carried out in a manner of text, and occupied bandwidth and transmission speed can all influence The synchronous performance of block chain data.In brief, i.e., the block chain data synchronization efficiency carried out in the related technology with HTTP connection It is more low, reduce block chain link network performance.
To solve the above-mentioned problems, in the related technology using TCP (Transmission Control Protocol transmission Control protocol), the modes such as UDP (User Datagram Protocol, User Datagram Protocol) carry out between block chain node Communication.However during carrying out internet connection in a manner of TCP, often node can be influenced because of the prototype of network firewall Between data transmission;UDP mode not can guarantee the integrality of data then, the case where loss of data often occurs.
For being communicated between the node of block catenary system and node using modes such as TCP, UDP in the related technology, count According to be easy shielded, data are easily lost the problem of, currently no effective solution has been proposed.
Summary of the invention
The application provides a kind of data processing method and system, to solve the node and section of block catenary system in the related technology It is communicated between point using the modes such as TCP, UDP, the problem of data are easy to be shielded, data are easily lost.
According to the one aspect of the application, a kind of data processing method is provided.This method comprises: first node is to second Node sends the first HTTP connection request, wherein and first node and second node are the node on block catenary system, and first HTTP connection request establishes websocket connection for requesting;Whether detection first node receives the of second node transmission Two HTTP connection requests, wherein the 2nd HTTP connection request is used for the first HTTP connection request of response;It is received in first node In the case where the 2nd HTTP connection request that second node is sent, websocket is established between first node and second node Connection.
Further, it is established between first node and second node after websocket connection, this method further include: First node is connected to second node by websocket and sends data, and receives second node hair by websocket connection The data sent.
Further, it is established between first node and second node after websocket connection, this method further include: Whether first node interrupts according to default inspection frequency check websocket connection;The websocket disconnecting the case where Under, the first HTTP connection request is sent to second node again.
Further, it includes: first node in default model that first node, which sends the first HTTP connection request to second node, After searching second node in enclosing, judge second node whether in the white list of first node;In second node in first segment In the case where in the white list of point, first node sends the first HTTP connection request to second node.
Further, before whether detection first node receives the 2nd HTTP connection request of second node transmission, This method further include: judge first node whether in the blacklist of second node;In first node not in the black of second node In the case where in list, the step whether detection first node receives the 2nd HTTP connection request of second node transmission is executed Suddenly.
According to the another aspect of the application, a kind of data processing system is provided.The system includes: data acquisition module, It is arranged on each node of block catenary system, for acquiring the data on affiliated node;Memory module is arranged in block linkwork It on each node of system, is connect respectively with the data acquisition module of affiliated node, for storing the data acquisition module of affiliated node The data of other node-node transmissions of the collected data of block and memory block catenary system;Microprocessor is arranged in block linkwork On each node of system, it is connect respectively with the memory module of affiliated node, for being established between affiliated node and destination node Websocket connection, to realize the transmission for realizing data between affiliated node and destination node.
Further, the system further include: communication module is arranged on each node of block catenary system, respectively with institute Belong to the microprocessor connection of node, for realizing the data between the microprocessor of affiliated node and the microprocessor of destination node Transmission;Communication module is also connect with the memory module of affiliated node respectively, for realizing the memory module and target of affiliated node Data transmission between the memory module of node.
Further, microprocessor is used for: sending the first HTTP connection request to destination node, wherein destination node is Node on the white list of the affiliated node of microprocessor, the first HTTP connection request establish websocket connection for requesting;It connects The 2nd HTTP connection request that destination node is sent is received, and establishes websocket connection between affiliated node and destination node, Wherein, the 2nd HTTP connection request is used for the first HTTP connection request of response.
Further, microprocessor is also used to: the 3rd HTTP connection request that identification destination node is sent, wherein third HTTP connection request establishes websocket connection for requesting;In destination node, there is no the black of node belonging to microprocessor In the case where on list, the 4th HTTP connection request is sent to destination node, and establish between affiliated node and destination node Websocket connection, wherein the 4th HTTP connection request is used for the 3rd HTTP connection request of response.
Further, microprocessor is also used to: establishing websocket between the affiliated node of microprocessor and destination node After connection, check whether websocket connection is interrupted;In the case where websocket disconnecting, again in affiliated node Websocket is established between destination node to connect.
By the application, using following steps: first node sends the first HTTP connection request to second node, wherein First node and second node are the node on block catenary system, and the first HTTP connection request is established for requesting Websocket connection;Whether detection first node receives the 2nd HTTP connection request of second node transmission, wherein second HTTP connection request is used for the first HTTP connection request of response;Connect in the 2nd HTTP that first node receives second node transmission In the case where connecing request, websocket connection is established between first node and second node, solves block in the related technology It is communicated between the node of catenary system and node using the modes such as TCP, UDP, data are easy to be shielded, data are easily lost Problem.By establishing websocket connection between block chain node and node, so reached data transmission it is succinct convenient, Effect not easy to lose.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, the schematic reality of the application Example and its explanation are applied for explaining the application, is not constituted an undue limitation on the present application.In the accompanying drawings:
Fig. 1 is the flow chart according to data processing method provided by the embodiments of the present application;
Fig. 2 is the schematic diagram according to data processing system provided by the embodiments of the present application;
Fig. 3 is according to the communication schematic diagram between block chain node A provided by the embodiments of the present application and block chain node B; And
Fig. 4 is the schematic diagram according to data processing equipment provided by the embodiments of the present application.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
According to an embodiment of the present application, a kind of data processing method is provided.
Fig. 1 is the flow chart according to the data processing method of the embodiment of the present application.As shown in Figure 1, this method includes following Step:
Step S101, first node send the first HTTP connection request to second node, wherein first node and the second section Point is the node on block catenary system, and the first HTTP connection request establishes websocket connection for requesting.
Optionally, in data processing method provided by the embodiments of the present application, first node sends first to second node Whether HTTP connection request includes: to judge second node first after first node searches second node within a preset range In the white list of node;In the case where second node is in the white list of first node, first node is sent to second node First HTTP connection request.
Specifically, it after first node starting, checks the white list of oneself, it is found that the second node of surrounding is present in white name In list, illustrate that second node is the node for allowing to carry out data transmission with first node, first node is sent to second node HTTP connection request establishes websocket connection with request between.
Whether step S102, detection first node receive the 2nd HTTP connection request of second node transmission, wherein the Two HTTP connection requests are used for the first HTTP connection request of response.
Optionally, in data processing method provided by the embodiments of the present application, the whether is received in detection first node Before the 2nd HTTP connection request that two nodes are sent, this method further include: judge first node whether in the black of second node In list;In the case where first node is not in the blacklist of second node, execute whether detection first node receives the The step of the 2nd HTTP connection request that two nodes are sent.
Specifically, second node checks that first node is after second node receives the HTTP request that first node issues It is no to be present in the blacklist of oneself, if it does not exist, first node is added to the white list of oneself, second node starts to first Node sends HTTP connection request, and with the HTTP request that response first node issues, websocket is established in agreement between Connection.
Step S103, in the case where first node receives the 2nd HTTP connection request of second node transmission, the Websocket connection is established between one node and second node.
It should be noted that in the case where first node receives the 2nd HTTP connection request of second node transmission, Illustrate success of shaking hands, persistent websocket connection can be created between the two, and carry out bidirectional data transfers.
Data processing method provided by the embodiments of the present application sends the first HTTP connection to second node by first node Request, wherein first node and second node are the node on block catenary system, and the first HTTP connection request is built for requesting Vertical websocket connection;Whether detection first node receives the 2nd HTTP connection request of second node transmission, wherein the Two HTTP connection requests are used for the first HTTP connection request of response;The 2nd HTTP of second node transmission is received in first node In the case where connection request, websocket connection is established between first node and second node, solves area in the related technology It is communicated between the node of block catenary system and node using the modes such as TCP, UDP, data are easy to be shielded, data are easily lost The problem of.By establishing websocket connection between block chain node and node, and then the succinct side of data transmission is reached Just, effect not easy to lose.
Optionally, it in data processing method provided by the embodiments of the present application, is built between first node and second node After vertical websocket connection, this method further include: first node is connected to second node by websocket and sends data, And the data that second node is sent are received by websocket connection.
It should be noted that WebSocket connection allows to carry out full-duplex communication between first node and second node, with Just either one can push data into the other end by the connection of foundation, it is only necessary to establish primary connection, compare polling mode The mode for not suspending vertical connection data transmission efficiency it is high.
Optionally, it in data processing method provided by the embodiments of the present application, is built between first node and second node After vertical websocket connection, this method further include: first node is according to default inspection frequency check websocket connection No interruption;In the case where websocket disconnecting, the first HTTP connection request is sent to second node again.
Specifically, while first node establishes websocket connection between, first node also sets up socket The frequency of inspection, according to socket check frequency check websocket connection status, so as in this connection break in the case where weight It newly shakes hands, to ensure that the stability of data transmission.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.
The embodiment of the present application also provides a kind of data processing systems, below to data processing provided by the embodiments of the present application System is introduced.
Fig. 2 is the schematic diagram according to the data processing system of the embodiment of the present application.As shown in Fig. 2, the system includes: data Acquisition module 21, memory module 22 and microprocessor 23.
Specifically, data acquisition module 21 are arranged on each node of block catenary system, for acquiring affiliated node Data.
Memory module 22 is arranged on each node of block catenary system, respectively with the data acquisition module of affiliated node Other nodes of connection, data and memory block catenary system that the data collecting module collected for storing affiliated node arrives pass Defeated data.
Microprocessor 23 is arranged on each node of block catenary system, connect respectively with the memory module of affiliated node, It is real between affiliated node and destination node to realize for establishing websocket connection between affiliated node and destination node The transmission of existing data.
It should be noted that each node in block catenary system is each equipped with data acquisition module 21, memory module 22 With microprocessor 23, node can check frequency in 23 configuration parameter of microprocessor, such as white list, blacklist and socket, and Can autonomous query information, each Node Development has the interface for sending and receiving socket.
It, optionally, should in data processing system provided by the embodiments of the present application in order to be communicated between node and node System further include: communication module is arranged on each node of block catenary system, connects respectively with the microprocessor 23 of affiliated node It connects, for realizing the data transmission between the microprocessor 23 and the microprocessor of destination node of affiliated node;Communication module is also It is connect respectively with the memory module 22 of affiliated node, for realizing the memory module 22 of affiliated node and the storage mould of destination node Data transmission between block.
It should be noted that the communication between the microprocessor 23 between different nodes had both may be implemented in communication module, just In establishing websocket connection, the communication between the memory module 22 between different nodes can also be realized, convenient for establishing After websocket connection, the data transmission between two nodes is realized.
Optionally, in data processing system provided by the embodiments of the present application, microprocessor 23 is used for: being sent out to destination node Send the first HTTP connection request, wherein destination node is the node on the white list of node belonging to microprocessor 23, the first HTTP Connection request establishes websocket connection for requesting;The 2nd HTTP connection request that destination node is sent is received, and affiliated Websocket connection is established between node and destination node, wherein the 2nd HTTP connection request is used for the first HTTP connection of response Request.
Specifically, node belonging to microprocessor 23 is node A, after node A starting, the internal white list letter configured of first inquiry Breath is located at the surroundings nodes on white list by communication module search, by taking the node B on white list as an example, when searching node B Communication interface after, node A by 4G be wirelessly transferred to node B send HTTP request.
Optionally, in data processing system provided by the embodiments of the present application, microprocessor 23 is also used to: identification target section The 3rd HTTP connection request that point is sent, wherein the 3rd HTTP connection request establishes websocket connection for requesting;In mesh In the case that mark node is not present on the blacklist of node belonging to microprocessor 23, the 4th HTTP connection is sent to destination node Request, and websocket connection is established between affiliated node and destination node, wherein the 4th HTTP connection request is for answering Answer the 3rd HTTP connection request.
Specifically, after the interface of the communication module of node B receives HTTP request signal, microprocessor is passed to, B pairs of node The blacklist of inside configuration is inquired, if judging result be node A not on the blacklist, by communication module to node A HTTP request is sent, to realize reaching for websocket connection;
As shown in figure 3, the communication schematic diagram between block chain node A and block chain node B.Block chain node A and area Block chain node B establishes websocket connection by mutually sending HTTP request, when establishing websocket connection between two nodes Afterwards, data interaction is carried out again without transmission request and after waiting requests to respond, when either party collects data, one side of microprocessor Face stores data to local memory module, and data high-speed rate is on the other hand sent to Correspondent Node by websocket, Correspondent Node stores the data received to local memory module, to facilitate the data transmission between two nodes.
Optionally, in data processing system provided by the embodiments of the present application, microprocessor 23 is also used to: in microprocessor It is established between node and destination node belonging to 23 after websocket connection, checks whether websocket connection is interrupted;? In the case where websocket disconnecting, websocket connection is established between affiliated node and destination node again.
Specifically, after websocket connection is established, supplicant node detects frequency timing voluntarily according to the socket of configuration It checks websocket connection status, if disconnecting, issues request again, re-establish connection, to guarantee data transmission Stability.
Block catenary system is arranged in by data acquisition module 10 in data processing equipment provided by the embodiments of the present application On each node, for acquiring the data on affiliated node;Memory module 20 is arranged on each node of block catenary system, Connect respectively with the data acquisition module of affiliated node, the data that the data collecting module collected for node belonging to storing arrives with And the data of other node-node transmissions of memory block catenary system;Microprocessor 30 is arranged on each node of block catenary system, It is connect respectively with the memory module of affiliated node, for establishing websocket connection between affiliated node and destination node, with Node belonging to realizing and the transmission that data are realized between destination node, solve the node and section of block catenary system in the related technology It is communicated between point using the modes such as TCP, UDP, the problem of data are easy to be shielded, data are easily lost, by block Websocket connection is established between chain node and node, and then has achieved the effect that data transmission is succinct convenient, not easy to lose.
The embodiment of the present application also provides a kind of data processing equipments, it should be noted that the data of the embodiment of the present application Processing unit can be used for executing provided by the embodiment of the present application for data processing method.The embodiment of the present application is mentioned below The data processing equipment of confession is introduced.
Fig. 4 is the schematic diagram according to the data processing equipment of the embodiment of the present application.As shown in figure 4, the device includes: first Transmission unit 41, detection unit 42 and establish unit 43.
Specifically, the first transmission unit 41, for sending the first HTTP connection request to second node by first node, Wherein, first node and second node are the node on block catenary system, and the first HTTP connection request is established for requesting Websocket connection.
Whether detection unit 42 receives the 2nd HTTP connection request of second node transmission for detecting first node, Wherein, the 2nd HTTP connection request is used for the first HTTP connection request of response.
Unit 43 is established, for the case where first node receives the 2nd HTTP connection request that second node is sent Under, websocket connection is established between first node and second node.
Optionally, in data processing equipment provided by the embodiments of the present application, the device further include: the second transmission unit, After establishing websocket connection between first node and second node, connected by first node by websocket It connects and sends data to second node, and the data that second node is sent are received by websocket connection.
Optionally, in data processing equipment provided by the embodiments of the present application, the device further include: inspection unit is used for It establishes between first node and second node after websocket connection, is examined by first node according to default inspection frequency Look into whether websocket connection is interrupted;Third transmission unit, in the case where websocket disconnecting, again to the Two nodes send the first HTTP connection request.
Optionally, in data processing equipment provided by the embodiments of the present application, the first transmission unit 41 includes: the first judgement Module, for after first node searches second node within a preset range, judging second node whether in first node In white list;Sending module, in the case where second node is in the white list of first node, by first node to Two nodes send the first HTTP connection request.
Optionally, in data processing equipment provided by the embodiments of the present application, the device further include: the second judgment module, For judging that first node is before whether detection first node receives the 2nd HTTP connection request of second node transmission It is no in the blacklist of second node;Execution module, in the case where first node is not in the blacklist of second node, The step of whether detection first node receives the 2nd HTTP connection request of second node transmission executed.
Data processing equipment provided by the embodiments of the present application passes through first node to the second section by the first transmission unit 41 Point sends the first HTTP connection request, wherein first node and second node are the node on block catenary system, the first HTTP Connection request establishes websocket connection for requesting;Detection unit 42 detects whether first node receives second node hair The 2nd HTTP connection request sent, wherein the 2nd HTTP connection request is used for the first HTTP connection request of response;Establish unit 43 In the case where first node receives the 2nd HTTP connection request of second node transmission, first node and second node it Between establish websocket connection, solve in the related technology between the node and node of block catenary system using the side such as TCP, UDP Formula is communicated, and data are easy to be shielded, the problem of data are easily lost, by establishing between block chain node and node Websocket connection, and then achieved the effect that data transmission is succinct convenient, not easy to lose.
The data processing equipment includes processor and memory, above-mentioned first transmission unit 41, detection unit 42 and is built Vertical units 43 etc. store in memory as program unit, execute above procedure list stored in memory by processor Member realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, it is solved in the related technology between the node and node of block catenary system using TCP, UDP by adjusting kernel parameter Etc. modes communicated, data are easy to be shielded, the problem of data are easily lost.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The existing data processing method.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation Data processing method described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of first node and send first to second node when executing program HTTP connection request, wherein first node and second node are the node on block catenary system, and the first HTTP connection request is used Websocket connection is established in request;Whether detection first node receives the 2nd HTTP connection request of second node transmission, Wherein, the 2nd HTTP connection request is used for the first HTTP connection request of response;Second node transmission is received in first node In the case where 2nd HTTP connection request, websocket connection is established between first node and second node.
It is established between first node and second node after websocket connection, this method further include: first node is logical It crosses websocket to connect to second node transmission data, and passes through websocket connection and receive the data that second node is sent.
It is established between first node and second node after websocket connection, this method further include: first node is pressed Whether interrupted according to default inspection frequency check websocket connection;In the case where websocket disconnecting, again to Two nodes send the first HTTP connection request.
It includes: that first node searches within a preset range that first node, which sends the first HTTP connection request to second node, After second node, judge second node whether in the white list of first node;Second node first node white list In the case where interior, first node sends the first HTTP connection request to second node.
Before whether detection first node receives the 2nd HTTP connection request of second node transmission, this method is also wrapped It includes: judging first node whether in the blacklist of second node;In first node not feelings in the blacklist of second node Under condition, the step of whether detection first node receives the 2nd HTTP connection request of second node transmission executed.Herein Equipment can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step: first node sends the first HTTP connection request to second node, wherein first node With the node that second node is on block catenary system, the first HTTP connection request establishes websocket connection for requesting;Inspection Survey the 2nd HTTP connection request whether first node receives second node transmission, wherein the 2nd HTTP connection request is used for The first HTTP connection request of response;In the case where first node receives the 2nd HTTP connection request of second node transmission, Websocket connection is established between first node and second node.
It is established between first node and second node after websocket connection, this method further include: first node is logical It crosses websocket to connect to second node transmission data, and passes through websocket connection and receive the data that second node is sent.
It is established between first node and second node after websocket connection, this method further include: first node is pressed Whether interrupted according to default inspection frequency check websocket connection;In the case where websocket disconnecting, again to Two nodes send the first HTTP connection request.
It includes: that first node searches within a preset range that first node, which sends the first HTTP connection request to second node, After second node, judge second node whether in the white list of first node;Second node first node white list In the case where interior, first node sends the first HTTP connection request to second node.
Before whether detection first node receives the 2nd HTTP connection request of second node transmission, this method is also wrapped It includes: judging first node whether in the blacklist of second node;In first node not feelings in the blacklist of second node Under condition, the step of whether detection first node receives the 2nd HTTP connection request of second node transmission executed.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of data processing method characterized by comprising
First node sends the first HTTP connection request to second node, wherein the first node and the second node are equal For the node on block catenary system, the first HTTP connection request establishes websocket connection for requesting;
Detect whether the first node receives the 2nd HTTP connection request that the second node is sent, wherein described the Two HTTP connection requests are for the first HTTP connection request described in response;
In the case where the first node receives the 2nd HTTP connection request that the second node is sent, described first Websocket connection is established between node and the second node.
2. the method according to claim 1, wherein being established between the first node and the second node After websocket connection, the method also includes:
The first node is connected to the second node by the websocket and sends data, and by described Websocket connection receives the data that the second node is sent.
3. the method according to claim 1, wherein being established between the first node and the second node After websocket connection, the method also includes:
Whether the first node interrupts according to websocket connection described in default inspection frequency check;
In the case where the websocket disconnecting, the first HTTP connection is sent to the second node again and is asked It asks.
4. being asked the method according to claim 1, wherein first node sends the first HTTP connection to second node It asks and includes:
After the first node searches the second node within a preset range, judge the second node whether described In the white list of one node;
In the case where the second node is in the white list of the first node, the first node is to the second node Send the first HTTP connection request.
5. the method according to claim 1, wherein detecting whether the first node receives described second Before the 2nd HTTP connection request that node is sent, the method also includes:
Judge the first node whether in the blacklist of the second node;
In the case where the first node is not in the blacklist of the second node, executes and whether detect the first node The step of receiving the 2nd HTTP connection request that the second node is sent.
6. a kind of data processing system characterized by comprising
Data acquisition module is arranged on each node of block catenary system, for acquiring the data on affiliated node;
Memory module is arranged on each node of the block catenary system, connects respectively with the data acquisition module of affiliated node Connect, the data and the storage block catenary system that the data collecting module collected for node belonging to storing arrives other The data of node-node transmission;
Microprocessor is arranged on each node of the block catenary system, connect respectively with the memory module of affiliated node, uses In establishing websocket connection between affiliated node and destination node, to realize between affiliated node and the destination node Realize the transmission of data.
7. system according to claim 6, which is characterized in that the system also includes:
Communication module is arranged on each node of the block catenary system, connect respectively with the microprocessor of affiliated node, uses The microprocessor of node belonging to realizing and the data between the microprocessor of the destination node are transmitted;
The communication module is also connect with the memory module of affiliated node respectively, memory module and institute for realizing affiliated node State the data transmission between the memory module of destination node.
8. system according to claim 6, which is characterized in that the microprocessor is used for:
The first HTTP connection request is sent to the destination node, wherein the destination node is section belonging to the microprocessor Node on the white list of point, the first HTTP connection request establish websocket connection for requesting;
The 2nd HTTP connection request that the destination node is sent is received, and is established between affiliated node and the destination node The websocket connection, wherein the 2nd HTTP connection request is for the first HTTP connection request described in response.
9. system according to claim 6, which is characterized in that the microprocessor is also used to:
Identify the 3rd HTTP connection request that the destination node is sent, wherein the 3rd HTTP connection request is for requesting Establish websocket connection;
In the case where the destination node is there is no on the blacklist of node belonging to the microprocessor, Xiang Suoshu target section Point sends the 4th HTTP connection request, and the websocket connection is established between affiliated node and the destination node, In, the 4th HTTP connection request is for the 3rd HTTP connection request described in response.
10. system according to claim 6, which is characterized in that the microprocessor is also used to:
It is established between the affiliated node of the microprocessor and the destination node after websocket connection, described in inspection Whether websocket connection is interrupted;
In the case where the websocket disconnecting, again between affiliated node and the destination node described in foundation Websocket connection.
CN201910101223.XA 2019-01-31 2019-01-31 Data processing method and system Pending CN109803023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910101223.XA CN109803023A (en) 2019-01-31 2019-01-31 Data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910101223.XA CN109803023A (en) 2019-01-31 2019-01-31 Data processing method and system

Publications (1)

Publication Number Publication Date
CN109803023A true CN109803023A (en) 2019-05-24

Family

ID=66560887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910101223.XA Pending CN109803023A (en) 2019-01-31 2019-01-31 Data processing method and system

Country Status (1)

Country Link
CN (1) CN109803023A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430216A (en) * 2019-08-16 2019-11-08 微位(深圳)网络科技有限公司 Communication means and device between block chain node

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592098A (en) * 2016-01-16 2016-05-18 杭州复杂美科技有限公司 Management method of vote and CA certificate of block chain
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN106850745A (en) * 2016-12-23 2017-06-13 北京五八信息技术有限公司 A kind of real-time synchronization method and device
CN107592293A (en) * 2017-07-26 2018-01-16 阿里巴巴集团控股有限公司 The means of communication, digital certificate management method, device and electronic equipment between block chain node
CN107896157A (en) * 2017-08-31 2018-04-10 上海壹账通金融科技有限公司 Blacklist data exchange method and application server
CN108881362A (en) * 2018-01-03 2018-11-23 上海指旺信息科技有限公司 A kind of browser platform based on block chain
CN108924123A (en) * 2018-06-29 2018-11-30 北京京东尚科信息技术有限公司 Information processing method, device and system in block chain
CN109242535A (en) * 2018-08-07 2019-01-18 宜人恒业科技发展(北京)有限公司 Common recognition mechanism DPOP based on participation carries out the method and system of behavior memory quantization

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592098A (en) * 2016-01-16 2016-05-18 杭州复杂美科技有限公司 Management method of vote and CA certificate of block chain
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN106850745A (en) * 2016-12-23 2017-06-13 北京五八信息技术有限公司 A kind of real-time synchronization method and device
CN107592293A (en) * 2017-07-26 2018-01-16 阿里巴巴集团控股有限公司 The means of communication, digital certificate management method, device and electronic equipment between block chain node
CN107896157A (en) * 2017-08-31 2018-04-10 上海壹账通金融科技有限公司 Blacklist data exchange method and application server
CN108881362A (en) * 2018-01-03 2018-11-23 上海指旺信息科技有限公司 A kind of browser platform based on block chain
CN108924123A (en) * 2018-06-29 2018-11-30 北京京东尚科信息技术有限公司 Information processing method, device and system in block chain
CN109242535A (en) * 2018-08-07 2019-01-18 宜人恒业科技发展(北京)有限公司 Common recognition mechanism DPOP based on participation carries out the method and system of behavior memory quantization

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430216A (en) * 2019-08-16 2019-11-08 微位(深圳)网络科技有限公司 Communication means and device between block chain node

Similar Documents

Publication Publication Date Title
WO2012152132A1 (en) Method and system for realizing application platform adaptation
CN103324592A (en) Data migration control method, data migration method and data migration device
EP3396607A1 (en) Systems and methods for dynamic semantic resource discovery in fog-robot networks
JP2019523501A (en) Risk identification method, risk identification device, cloud risk identification device and system
EP4175235A1 (en) Network element management method, network management system, independent computing node, computer device, and storage medium
Pandian Enhanced edge model for big data in the internet of things based applications
CN103813475A (en) Data transmission method, data acquisition method and electronic device
CN110046994A (en) A kind of method and system for accepting block chain and depositing card transaction
CN109040186A (en) A kind of mqtt data processing method and device based on nbiot network
CN109995787A (en) A kind of data processing method and relevant device
CN104618853B (en) A kind of information push method, apparatus and system
CN104796863B (en) Information forwarding, vehicle multi-hop communication method and system
CN108737204A (en) A kind of acquisition method and communication terminal of network performance information
CN109803023A (en) Data processing method and system
CN109561469A (en) Caching method, device, storage medium and the electronic device of local content
CN111147330A (en) Network quality evaluation method and device, storage medium and processor
CN116647587B (en) Power transmission and transformation equipment Internet of things sensor access method and device and electronic equipment
CN103118083A (en) Method and device of transmitting service messages
CN109905486A (en) A kind of application program identification methods of exhibiting and device
JP2020077244A (en) Device, method and system for estimating active application on terminal
CN111585796B (en) Interface switching method, message transmission method and gateway equipment
Paul et al. IOE [2: towards application specific technology selection
CN107306282B (en) A kind of link keep-alive method and device
CN115277778B (en) Configuration method and device of Internet of things system, electronic equipment and storage medium
CN109495931A (en) The data transmission method and relevant apparatus of link aggregation

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190524

RJ01 Rejection of invention patent application after publication