WO2020224243A1 - 数据发送方法、装置、服务器及存储介质 - Google Patents
数据发送方法、装置、服务器及存储介质 Download PDFInfo
- Publication number
- WO2020224243A1 WO2020224243A1 PCT/CN2019/121378 CN2019121378W WO2020224243A1 WO 2020224243 A1 WO2020224243 A1 WO 2020224243A1 CN 2019121378 W CN2019121378 W CN 2019121378W WO 2020224243 A1 WO2020224243 A1 WO 2020224243A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- list
- channel
- available
- identifier
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Definitions
- This application relates to the field of blockchain technology, and in particular to a data sending method, device, server and storage medium.
- the blockchain is essentially used for searching as a large public database, and the interface that supports this search function is called a blockchain browser.
- the blockchain browser can display and query block information and transaction information in a visual manner, and can also summarize and count the data on the blockchain.
- the first aspect of the present application provides a data sending method, the method includes:
- a second aspect of the present application provides a data sending device, the device including:
- the receiving module is used to receive the user's data acquisition request
- the first obtaining module is configured to obtain a list of channels joined by each node in the node list according to a pre-configured node list;
- the first determining module is configured to determine multiple nodes included in each channel according to the list of channels joined by all the nodes;
- a second determining module configured to determine a target node from a plurality of nodes included in the channel for each of the channels
- the second acquisition module is configured to acquire the original data on the channel through the target node
- a calculation module configured to calculate statistical data of the channel according to the original data
- the sending module is used to send statistical data of all the channels to the user.
- a third aspect of the present application provides a server, the server includes a processor and a memory, and the processor is configured to implement the data sending method when executing a computer program stored in the memory.
- a fourth aspect of the present application provides a computer-readable storage medium with a computer program stored on the computer-readable storage medium, and the computer program implements the data sending method when executed by a processor.
- the list of channels added by each node in the node list can be obtained according to the pre-configured node list, and then according to the channels added by all the nodes List to determine the multiple nodes included in each channel. Further, for each channel, a target node may be determined from the multiple nodes included in the channel, and the target node can be used to obtain the According to the original data, the statistical data of the channel is calculated, and finally the statistical data of all the channels can be sent to the user.
- the server after receiving the user's data acquisition request, it can trigger the server to acquire the channel list according to the node list, and determine the multiple nodes included in each channel, which also determines how many channels there are currently.
- new channels can be discovered, not limited to the pre-configured channel list, which is more flexible.
- statistical data on all channels can be fed back to the user to ensure The statistics obtained by users are always up to date.
- Fig. 1 is a flowchart of a preferred embodiment of a data sending method disclosed in the present application.
- Fig. 2 is a functional module diagram of a preferred embodiment of a data sending device disclosed in the present application.
- Fig. 3 is a schematic diagram of the structure of a server implementing a preferred embodiment of the data sending method of the present application.
- the data sending method of the embodiment of the present application is applied to a server, and can also be applied to a hardware environment formed by a server and an electronic device connected to the server through a network, and is executed by the server and the electronic device.
- Networks include but are not limited to: wide area network, metropolitan area network or local area network.
- the server may refer to a computer system that can provide services to other devices (such as electronic devices) in the network. If a personal computer can provide File Transfer Protocol (FTP) service externally, it can also be called a server. In a narrow sense, the server refers to certain high-performance computers that can provide services to the outside world through the network. Compared with ordinary personal computers, they have higher requirements in terms of stability, security, and performance. Therefore, in the CPU , Chipset, memory, disk system, network and other hardware are different from ordinary personal computers.
- FTP File Transfer Protocol
- FIG. 1 is a flowchart of a preferred embodiment of a data sending method disclosed in this application. Among them, according to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.
- the server receives the user's data acquisition request.
- the blockchain is essentially a disintermediation database.
- Each data block contains information about a Bitcoin network transaction. Used to verify the validity of its information (anti-counterfeiting) and generate the next block. Among them, multiple transactions are saved to disk in the form of blocks.
- Each block is connected by the HASH (hash) algorithm to form a blockchain. The content recorded in each block can be viewed from the blockchain browser.
- Each blockchain has its own browser, and users cannot perform cross-chain queries through the blockchain browser. For example, Bitcoin can only be queried through the Bitcoin browser, but not through the Ethereum browser.
- the user when the user needs to obtain data on the channel, the user can send a data obtaining request to the server through the block browser.
- the blockchain browser can display and query block information and transaction information in a visual manner, and can also summarize and count the data on the blockchain.
- the server receives the user's data acquisition request, it can trigger the server to perform channel discovery.
- step S11 the method further includes:
- the receiving time determine whether the time interval between receiving two consecutive data acquisition requests is greater than a preset time threshold
- step S12 is executed.
- the channel changes at the bottom of the blockchain are not a frequent process, and are simply triggered by the user's access. If the user visits too frequently, it will bring some pressure to the bottom of the blockchain. At the same time, the channel changes were not obtained. Therefore, it is necessary to limit the time for two adjacent visits, and a preset time threshold can be preset, such as 30S.
- the time of receiving the data acquisition request can be determined first; further, the time of receiving the data acquisition request last (that is, the closest to this time) can be acquired, and judge Whether the time interval between receiving two consecutive data acquisition requests is greater than the preset time threshold; if the time interval between receiving two consecutive data acquisition requests is greater than the preset time threshold, it indicates that the user's access is infrequent and the server can be triggered to perform the channel Find. Conversely, if the time interval between two consecutive data acquisition requests is less than or equal to the preset time threshold, it indicates that the user has frequent access. In order to reduce the access pressure on the bottom layer of the blockchain, the server does not perform channel discovery.
- the server obtains the channel list joined by each node in the node list according to the pre-configured node list.
- a node list may be pre-configured, where the node list includes multiple nodes, such as multiple computers deployed on a blockchain network. Wherein, each of the nodes can join the channel, and the block and data information on the channel can be obtained through the nodes.
- the obtaining the channel list joined by each node in the node list according to the pre-configured node list includes:
- some nodes may communicate normally, and some nodes may not communicate normally. For example, when the network fails, the nodes cannot communicate normally. For example, when the service pressure of the node has exceeded the maximum service pressure threshold At this time, the node cannot communicate normally. If the node cannot communicate normally, there is no way to obtain the block and data information on the channel through the node.
- the node when performing channel discovery, it is necessary to determine whether the communication of the node is normal for each node in the pre-configured node list; if the communication of the node is normal, it can be determined that the node is an available node, and further In particular, all the available nodes may be formed into an available node list, and then for each node in the available node list, a list of channels joined by the node can be obtained.
- the judging whether the communication of the node is normal includes:
- the network connection status of the node can be obtained first. If the network connection status indicates that the network connection is normal, it can be determined that the communication of the node is normal. If the network connection status indicates that the network connection is disconnected, it can be determined that the communication of the node is abnormal; for another example, the first information can be sent to the node, where the first information may be that the node is required Any information feedback. If the feedback information sent by the node for the first information is received, it can be determined that the communication of the node is normal. On the contrary, if the feedback information sent by the node for the first information is not received, it can be determined The communication of the node is abnormal.
- the obtaining the channel list joined by each node in the node list according to the pre-configured node list includes:
- the identifier of the node is the first identifier used to indicate that the node is in an available state, determining that the node is an available node;
- the identifier of the node is a second identifier used to indicate that the node is in an unavailable state, determine whether the marking duration of the second identifier is greater than the preset duration; if the marking duration of the second identifier is greater than the preset duration , Changing the second identifier to the first identifier, and determining that the node is an available node;
- each node may be marked with an identifier, and the identifier is used to indicate whether the node is available, for example, an identifier 1 indicates that the node is available, and an identifier 0 indicates that the node is unavailable.
- the identification of the node After the identification of the node is obtained, if the identification of the node is the first identification used to indicate that the node is in an available state, it can be determined that the node is an available node; when the identification of the node is used For the second identifier indicating that the node is in an unavailable state, since the state of the node is changing in real time, the node is in an unavailable state when it is marked, and it may become available after a period of time.
- the second identifier of the node is not changed in time, so it can be judged whether the marking duration of the second identifier of the node is greater than the preset duration (such as 10S), if the marking duration of the second identifier is greater than the preset duration
- the preset duration such as 10S
- the node is an available node, and add the node to the list of available nodes.
- the node may be determined to be an unavailable node, and the first identifier of the node may be changed to a second identifier.
- the server determines multiple nodes included in each channel according to the list of channels joined by all the nodes.
- all the channels joined by the nodes can be combined to obtain each channel and multiple nodes corresponding to each channel, that is, obtain Correspondence between channels and nodes.
- the corresponding relationship between the channel and the node can be stored in a database, and the database is deployed independently of the disk of the underlying blockchain.
- the number of current channels can be determined, and the number of current channels can be compared with the number of channels in the historical record. If the number of channels is found to increase, it indicates that a new channel has been discovered currently.
- the server determines a target node from multiple nodes included in the channel.
- the determining the target node from the multiple nodes included in the channel includes:
- whether the node is an available node can be determined according to whether the communication of the node is normal, and the specific manner can refer to the above description.
- the state of a node can be divided into an idle state and a busy state. If the node is in an idle state, it indicates that the node can perform tasks at any time.
- the preset pressure threshold is the maximum service pressure that the node can withstand. If the service pressure of the node is less than the preset pressure threshold, it indicates that the node can also provide other services.
- each channel includes multiple nodes, and the block and data information on the channel can be obtained through the nodes.
- the timeliness of tasks that can be performed by nodes in different states is different, and the service pressure Different nodes are not necessarily capable of performing new tasks. Therefore, it is necessary to determine the target node that can execute the task in time or is capable of executing the task from the multiple nodes included in the channel.
- the server obtains the original data on the channel through the target node, and calculates the statistical data of the channel according to the original data.
- the original data on the channel can be obtained through the target node, that is, the original data stored on the disk of the underlying blockchain node, and the original data on the disk is To be accurate, when performing data analysis and statistics, it is necessary to rely on the original data stored on the disk.
- the server sends statistical data of all the channels to the user.
- the statistical data of all the channels also include the statistical data of the new channel, and the server may send the current statistical data of all the channels to the user.
- the server may also store statistical data of all the channels in a database. It should be noted that if the user's data acquisition request triggers the server to perform channel discovery, the server will re-acquire the original data on all channels, and recalculate statistical data to feed back to the user. If the user's data acquisition request does not trigger the server to perform channel discovery, the server can directly acquire pre-stored statistical data from the database and feed it back to the user.
- the method further includes:
- the corresponding relationship between the channel and the node can be established; from the corresponding relationship, a new channel can be determined, in order to allow the user Knowing that a new channel has been discovered, a notification message can be sent to the user.
- the sending time of the notification message and the sending time of the statistical data of all the channels may be the same or different, which is not limited in the embodiment of the present application.
- the channel list added by each node in the node list can be acquired according to the pre-configured node list, and then according to the list of channels added by all the nodes.
- the channel list determines the multiple nodes included in each channel. Further, for each channel, a target node may be determined from the multiple nodes included in the channel, and the channel can be obtained through the target node And calculate the statistical data of the channel based on the original data, and finally send the statistical data of all the channels to the user.
- the server after receiving the user's data acquisition request, it can trigger the server to acquire the channel list according to the node list, and determine the multiple nodes included in each channel, which also determines how many channels there are currently.
- new channels can be discovered, not limited to the pre-configured channel list, which is more flexible.
- statistical data on all channels can be fed back to the user to ensure The statistics obtained by users are always up to date.
- FIG. 2 is a functional module diagram of a preferred embodiment of a data sending device disclosed in this application.
- the data sending device runs in a server.
- the data sending device may include multiple functional modules composed of program code segments.
- the program code of each program segment in the data sending device can be stored in a memory and executed by at least one processor to execute part or all of the steps in the data sending method described in FIG. 1.
- the data sending device can be divided into multiple functional modules according to the functions it performs.
- the functional modules may include: a receiving module 201, a first acquiring module 202, a first determining module 203, a second determining module 204, a second acquiring module 205, a calculating module 206, and a sending module 207.
- the module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, and are stored in a memory. In some embodiments, the functions of each module will be detailed in subsequent embodiments.
- the receiving module 201 is used to receive a user's data acquisition request
- the first obtaining module 202 is configured to obtain a list of channels joined by each node in the node list according to a pre-configured node list;
- the second determining module 204 is configured to determine a target node from a plurality of nodes included in the channel for each of the channels;
- the second obtaining module 205 is configured to obtain the original data on the channel through the target node
- the calculation module 206 is configured to calculate statistical data of the channel according to the original data
- the sending module 207 is configured to send statistical data of all the channels to the user.
- the data sending apparatus may further include:
- the establishment module is used to establish the correspondence between the channel and the node
- the first determining module 203 is further configured to determine a new channel from the corresponding relationship
- the sending module 207 is further configured to send a notification message to the user, where the notification message is used to notify the user that the new channel has been discovered.
- the first obtaining module 202 includes:
- the first judging sub-module is used for judging whether the communication of the node is normal for each node in the pre-configured node list;
- the first determining submodule is configured to determine that the node is an available node if the communication of the node is normal;
- the first composition sub-module is used to compose all the available nodes into a list of available nodes
- the first obtaining submodule is used to obtain the channel list joined by each node in the available node list.
- the method for the first judging submodule to judge whether the communication of the node is normal is specifically as follows:
- the first obtaining module 202 includes:
- the second obtaining submodule is configured to obtain the identifier of the node for each node in the pre-configured node list;
- a second determining submodule configured to determine that the node is an available node if the identifier of the node is the first identifier used to indicate that the node is in an available state;
- a second judgment sub-module configured to judge whether the marking duration of the second identifier is greater than a preset duration if the identifier of the node is a second identifier used to indicate that the node is in an unavailable state;
- a change determination sub-module configured to change the second identifier to the first identifier if the marking duration of the second identifier is greater than the preset duration, and determine that the node is an available node;
- the second composition sub-module is used to compose all the available nodes into a list of available nodes
- the second obtaining submodule is also used to obtain a list of channels joined by each node in the list of available nodes.
- the second determining module 204 determines the target node from the multiple nodes included in the channel specifically as follows:
- the first determining module 203 is further configured to determine the receiving time of the data acquisition request after the receiving module 201 receives the user's data acquisition request;
- the data sending device further includes:
- the judging module is configured to judge whether the time interval between receiving two consecutive data acquisition requests is greater than a preset time threshold according to the receiving time;
- the first obtaining module 202 is specifically configured to obtain the channel joined by each node in the node list according to a pre-configured node list if the time interval between two adjacent data acquisition requests received is greater than a preset time threshold. List.
- FIG. 3 is a schematic diagram of the structure of a server implementing a preferred embodiment of the data sending method of the present application.
- the server 3 includes a memory 31, at least one processor 32, a computer program 33 stored in the memory 31 and executable on the at least one processor 32, and at least one communication bus 34.
- FIG. 3 is only an example of the server 3, and does not constitute a limitation on the server 3. It may include more or less components than those shown in the figure, or combine some components. Components, or different components, for example, the server 3 may also include input and output devices, network access devices, and so on.
- the at least one processor 32 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (ASICs). ), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the processor 32 can be a microprocessor or the processor 32 can also be any conventional processor, etc.
- the processor 32 is the control center of the server 3, and connects each of the entire server 3 through various interfaces and lines. section.
- the memory 31 may be used to store the computer program 33 and/or modules/units.
- the processor 32 runs or executes the computer programs and/or modules/units stored in the memory 31 and calls the computer programs and/or modules/units stored in the memory 31.
- the data in 31 realizes various functions of the server 3.
- the memory 31 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.); the storage data area may The data (such as audio data, phone book, etc.) created according to the use of the server 3 is stored.
- the memory 31 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD).
- a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD).
- SMC Smart Media Card
- SD Secure Digital
- Flash Card at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
- the memory 31 in the server 3 stores multiple instructions to implement a data sending method, and the processor 32 can execute the multiple instructions to implement any of the data sending methods provided in this application .
- the server 3 described in FIG. 3 after receiving the user's data acquisition request, it can first obtain the channel list joined by each node in the node list according to the pre-configured node list, and then according to all the nodes joined The channel list determines the multiple nodes included in each channel. Further, for each channel, a target node can be determined from the multiple nodes included in the channel, and the channel can be obtained through the target node And calculate the statistical data of the channel based on the original data, and finally send the statistical data of all the channels to the user. It can be seen that in this application, after receiving the user's data acquisition request, it can trigger the server to acquire the channel list according to the node list, and determine the multiple nodes included in each channel, which also determines how many channels there are currently. With the addition of channels, new channels can be discovered, not limited to the pre-configured channel list, which is more flexible. In addition, statistical data on all channels (including new channels) can be fed back to the user to ensure The statistics obtained by users are always up to date.
- the integrated modules/units of the server 3 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, this application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program.
- the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented.
- the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
- the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media.
- ROM Read-Only Memory
- RAM Random Access Memory
- electrical carrier signal telecommunications signal
- software distribution media any entity or device capable of carrying the computer program code
- recording medium U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media.
- the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the present application Any of the data sending methods provided in the embodiment.
- the computer-readable storage medium may be the internal storage unit of the computer device described in the foregoing embodiment, such as the hard disk or memory of the computer device.
- the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SMC), or a secure digital (Secure Digital, SD) equipped on the computer device. ) Card, Flash Card, etc.
- modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Engineering & Computer Science (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Claims (20)
- 一种数据发送方法,所述方法包括:接收用户的数据获取请求;根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表;根据所有所述节点加入的通道列表,确定每个通道包括的多个节点;针对每个所述通道,从所述通道包括的多个节点中,确定目标节点;通过所述目标节点,获取所述通道上的原始数据,并根据所述原始数据,计算所述通道的统计数据;将所有所述通道的统计数据发送给所述用户。
- 根据权利要求1所述的方法,其中,所述方法还包括:建立通道与节点之间的对应关系;从所述对应关系中,确定新的通道;向所述用户发送通知消息,所述通知消息用于通知所述用户有所述新的通道被发现。
- 根据权利要求1所述的方法,其中,所述根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表包括:针对预先配置的节点列表中的每个节点,判断所述节点的通信是否正常;若所述节点的通信正常,确定所述节点为可用的节点;将所有所述可用的节点组成可用节点列表;获取所述可用节点列表中的每个节点加入的通道列表。
- 根据权利要求3所述的方法其中,所述判断所述节点的通信是否正常包括:获取所述节点的网络连接状态;若所述网络连接状态表明网络连接正常,则确定所述节点的通信正常;或向所述节点发送第一信息;若接收到所述节点针对所述第一信息发送的反馈信息,则确定所述节点的通信正常。
- 根据权利要求1所述的方法,其中,所述根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表包括:针对预先配置的节点列表中的每个节点,获取所述节点的标识;若所述节点的标识为用于表示所述节点处于可用状态的第一标识,确定所述节点为可用的节点;若所述节点的标识为用于表示所述节点处于不可用状态的第二标识,判断所述第二标识的标记时长是否大于预设时长;若所述第二标识的标记时长大于预设时长,将所述第二标识变更为所述第一标识,并确定所述节点为可用的节点;将所有所述可用的节点组成可用节点列表;获取所述可用节点列表中的每个节点加入的通道列表。
- 根据权利要求1至5中任一项所述的方法,其中,所述从所述通道包括的多个节点中,确定目标节点包括:从所述通道包括的多个节点中,确定当前可用的节点;从所述当前可用的节点中,将当前处于空闲状态的节点确定为目标节点;或针对所述通道包括的每个节点中,获取所述节点的服务压力;若所述节点的服务压力小于预设压力阈值,则确定所述节点为目标节点。
- 根据权利要求1至5中任一项所述的方法,其中,所述接收用户的数据获取请求之后,所述方法还包括:确定所述数据获取请求的接收时间;根据所述接收时间,判断相邻两次接收到数据获取请求的时间间隔是否大于预设时间阈值;若相邻两次接收到的数据获取请求的时间间隔大于预设时间阈值,根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表。
- 一种数据发送装置,所述数据发送装置包括:接收模块,用于接收用户的数据获取请求;第一获取模块,用于根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表;第一确定模块,用于根据所有所述节点加入的通道列表,确定每个通道所包括的多个节点;第二确定模块,用于针对每个所述通道,从所述通道包括的多个节点中,确定目标节点;第二获取模块,用于通过所述目标节点,获取所述通道上的原始数据;计算模块,用于根据所述原始数据,计算所述通道的统计数据;发送模块,用于将所有所述通道的统计数据发送给所述用户。
- 一种服务器,所述服务器包括处理器和存储器;所述存储器用于存储计算机程序;所述处理器用于执行所述计算机程序并在执行所述计算机程序时实现如下步骤:接收用户的数据获取请求;根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表;根据所有所述节点加入的通道列表,确定每个通道包括的多个节点;针对每个所述通道,从所述通道包括的多个节点中,确定目标节点;通过所述目标节点,获取所述通道上的原始数据,并根据所述原始数据,计算所述通道的统计数据;将所有所述通道的统计数据发送给所述用户。
- 根据权利要求9所述的服务器,其中,所述处理器在执行所述计算机程序时,还包括:建立通道与节点之间的对应关系;从所述对应关系中,确定新的通道;向所述用户发送通知消息,所述通知消息用于通知所述用户有所述新的通道被发现。
- 根据权利要求9所述的服务器,其中,所述处理器实现所述根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表,包括:针对预先配置的节点列表中的每个节点,判断所述节点的通信是否正常;若所述节点的通信正常,确定所述节点为可用的节点;将所有所述可用的节点组成可用节点列表;获取所述可用节点列表中的每个节点加入的通道列表。
- 根据权利要求11所述的服务器,其中,所述处理器实现所述判断所述节点的通信是否正常,包括:获取所述节点的网络连接状态;若所述网络连接状态表明网络连接正常,则确定所述节点的通信正常;或向所述节点发送第一信息;若接收到所述节点针对所述第一信息发送的反 馈信息,则确定所述节点的通信正常。
- 根据权利要求9所述的服务器,其中,所述处理器实现所述根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表,包括:针对预先配置的节点列表中的每个节点,获取所述节点的标识;若所述节点的标识为用于表示所述节点处于可用状态的第一标识,确定所述节点为可用的节点;若所述节点的标识为用于表示所述节点处于不可用状态的第二标识,判断所述第二标识的标记时长是否大于预设时长;若所述第二标识的标记时长大于预设时长,将所述第二标识变更为所述第一标识,并确定所述节点为可用的节点;将所有所述可用的节点组成可用节点列表;获取所述可用节点列表中的每个节点加入的通道列表。
- 根据权利要求9至13中任一项所述的服务器,其中,所述处理器实现所述从所述通道包括的多个节点中,确定目标节点,包括:从所述通道包括的多个节点中,确定当前可用的节点;从所述当前可用的节点中,将当前处于空闲状态的节点确定为目标节点;或针对所述通道包括的每个节点中,获取所述节点的服务压力;若所述节点的服务压力小于预设压力阈值,则确定所述节点为目标节点。
- 根据权利要求9至13中任一项所述的服务器,其中,所述处理器实现所述接收用户的数据获取请求之后,还包括:确定所述数据获取请求的接收时间;根据所述接收时间,判断相邻两次接收到数据获取请求的时间间隔是否大于预设时间阈值;若相邻两次接收到的数据获取请求的时间间隔大于预设时间阈值,根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表。
- 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现如下步骤:接收用户的数据获取请求;根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表;根据所有所述节点加入的通道列表,确定每个通道包括的多个节点;针对每个所述通道,从所述通道包括的多个节点中,确定目标节点;通过所述目标节点,获取所述通道上的原始数据,并根据所述原始数据,计算所述通道的统计数据;将所有所述通道的统计数据发送给所述用户。
- 根据权利要求16所述的计算机可读存储介质,其中,所述处理器执行所述计算机程序时,还包括:建立通道与节点之间的对应关系;从所述对应关系中,确定新的通道;向所述用户发送通知消息,所述通知消息用于通知所述用户有所述新的通道被发现。
- 根据权利要求16所述的计算机可读存储介质,其中,所述处理器实现所述根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表,包括:针对预先配置的节点列表中的每个节点,判断所述节点的通信是否正常;若所述节点的通信正常,确定所述节点为可用的节点;将所有所述可用的节点组成可用节点列表;获取所述可用节点列表中的每个节点加入的通道列表。
- 根据权利要求18所述的计算机可读存储介质,其中,所述处理器实现所述判断所述节点的通信是否正常,包括:获取所述节点的网络连接状态;若所述网络连接状态表明网络连接正常,则确定所述节点的通信正常;或向所述节点发送第一信息;若接收到所述节点针对所述第一信息发送的反馈信息,则确定所述节点的通信正常。
- 根据权利要求19所述的计算机可读存储介质,其中,所述处理器实现所述根据预先配置的节点列表,获取所述节点列表中每个节点加入的通道列表,包括:针对预先配置的节点列表中的每个节点,获取所述节点的标识;若所述节点的标识为用于表示所述节点处于可用状态的第一标识,确定所述节点为可用的节点;若所述节点的标识为用于表示所述节点处于不可用状态的第二标识,判断 所述第二标识的标记时长是否大于预设时长;若所述第二标识的标记时长大于预设时长,将所述第二标识变更为所述第一标识,并确定所述节点为可用的节点;将所有所述可用的节点组成可用节点列表;获取所述可用节点列表中的每个节点加入的通道列表。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910381100.6 | 2019-05-08 | ||
| CN201910381100.6A CN110290168B (zh) | 2019-05-08 | 2019-05-08 | 数据发送方法、装置、服务器及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020224243A1 true WO2020224243A1 (zh) | 2020-11-12 |
Family
ID=68002149
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/121378 Ceased WO2020224243A1 (zh) | 2019-05-08 | 2019-11-27 | 数据发送方法、装置、服务器及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110290168B (zh) |
| WO (1) | WO2020224243A1 (zh) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112486982A (zh) * | 2020-11-17 | 2021-03-12 | 中信银行股份有限公司 | 一种数据获取方法、装置及存储介质 |
| CN113395675A (zh) * | 2021-06-02 | 2021-09-14 | 联合汽车电子有限公司 | 数据处理方法、车辆控制系统及可读存储介质 |
| CN113572824A (zh) * | 2021-07-07 | 2021-10-29 | 北京奇艺世纪科技有限公司 | 一种超时时长的动态更新方法、装置、电子设备和存储介质 |
| CN114675950A (zh) * | 2022-03-16 | 2022-06-28 | 京东科技信息技术有限公司 | 任务调度方法及其装置 |
| CN115604058A (zh) * | 2021-06-28 | 2023-01-13 | 南宁富桂精密工业有限公司(Cn) | 网关数据存储管理方法、网关装置及存储介质 |
| CN118713976A (zh) * | 2024-08-26 | 2024-09-27 | 天翼视联科技有限公司 | 一种设备管理方法、装置、电子装置和存储介质 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110290168B (zh) * | 2019-05-08 | 2022-04-12 | 深圳壹账通智能科技有限公司 | 数据发送方法、装置、服务器及存储介质 |
| CN112507028B (zh) * | 2020-12-18 | 2023-02-21 | 杭州趣链科技有限公司 | 数据存储方法、装置、设备和存储介质 |
| CN115065676B (zh) * | 2022-05-17 | 2025-03-18 | 深圳市绿联科技股份有限公司 | 一种上传文件的方法、装置以及电子设备 |
| CN116866450B (zh) * | 2023-06-08 | 2024-12-31 | 兴华永恒(北京)科技有限责任公司 | 数据传输方法、装置、电子设备及存储介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105635331A (zh) * | 2014-11-18 | 2016-06-01 | 阿里巴巴集团控股有限公司 | 一种分布式环境下的服务寻址方法及装置 |
| US20170214699A1 (en) * | 2016-01-26 | 2017-07-27 | Bank Of America Corporation | System for conversion of an instrument from a non-secured instrument to a secured instrument in a process data network |
| CN109040227A (zh) * | 2018-07-27 | 2018-12-18 | 江西贪玩信息技术有限公司 | 基于区块链的业务请求响应方法、装置和计算机设备 |
| CN109087104A (zh) * | 2018-08-29 | 2018-12-25 | 北京京东尚科信息技术有限公司 | 区块链智能合约管理方法和系统、计算机可读存储介质 |
| CN109246179A (zh) * | 2018-06-30 | 2019-01-18 | 华为技术有限公司 | 维护区块链的方法和装置、服务器和计算机可读存储介质 |
| CN110290168A (zh) * | 2019-05-08 | 2019-09-27 | 深圳壹账通智能科技有限公司 | 数据发送方法、装置、服务器及存储介质 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106452785B (zh) * | 2016-09-29 | 2019-05-17 | 财付通支付科技有限公司 | 区块链网络、分支节点及区块链网络应用方法 |
| CN107833139B (zh) * | 2017-11-23 | 2021-08-24 | 深圳壹账通智能科技有限公司 | 交易数据处理方法、装置、计算机设备及存储介质 |
| CN108537666A (zh) * | 2018-04-09 | 2018-09-14 | 深圳市云蚂蚁科技有限责任公司 | 一种区块链系统以及区块链网络交易方法 |
| CN108696589B (zh) * | 2018-05-14 | 2022-04-08 | 百度在线网络技术(北京)有限公司 | 区块链数据传输方法、装置、设备和存储介质 |
| CN108777712B (zh) * | 2018-05-31 | 2020-04-07 | 中国联合网络通信集团有限公司 | 区块链节点通信方法、装置及区块链节点 |
| CN109242681B (zh) * | 2018-08-21 | 2020-11-20 | 京东数字科技控股有限公司 | 资产数据的存储方法、装置、设备及系统 |
| CN109670951B (zh) * | 2018-11-19 | 2021-03-26 | 南京苏宁软件技术有限公司 | 一种区块链智能合约调试发布方法及系统 |
| CN109634810A (zh) * | 2018-12-10 | 2019-04-16 | 广东亿迅科技有限公司 | 基于Fabric的区块链业务平台和运行方法 |
-
2019
- 2019-05-08 CN CN201910381100.6A patent/CN110290168B/zh not_active Expired - Fee Related
- 2019-11-27 WO PCT/CN2019/121378 patent/WO2020224243A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105635331A (zh) * | 2014-11-18 | 2016-06-01 | 阿里巴巴集团控股有限公司 | 一种分布式环境下的服务寻址方法及装置 |
| US20170214699A1 (en) * | 2016-01-26 | 2017-07-27 | Bank Of America Corporation | System for conversion of an instrument from a non-secured instrument to a secured instrument in a process data network |
| CN109246179A (zh) * | 2018-06-30 | 2019-01-18 | 华为技术有限公司 | 维护区块链的方法和装置、服务器和计算机可读存储介质 |
| CN109040227A (zh) * | 2018-07-27 | 2018-12-18 | 江西贪玩信息技术有限公司 | 基于区块链的业务请求响应方法、装置和计算机设备 |
| CN109087104A (zh) * | 2018-08-29 | 2018-12-25 | 北京京东尚科信息技术有限公司 | 区块链智能合约管理方法和系统、计算机可读存储介质 |
| CN110290168A (zh) * | 2019-05-08 | 2019-09-27 | 深圳壹账通智能科技有限公司 | 数据发送方法、装置、服务器及存储介质 |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112486982A (zh) * | 2020-11-17 | 2021-03-12 | 中信银行股份有限公司 | 一种数据获取方法、装置及存储介质 |
| CN113395675A (zh) * | 2021-06-02 | 2021-09-14 | 联合汽车电子有限公司 | 数据处理方法、车辆控制系统及可读存储介质 |
| CN113395675B (zh) * | 2021-06-02 | 2023-07-04 | 联合汽车电子有限公司 | 数据处理方法、车辆控制系统及可读存储介质 |
| CN115604058A (zh) * | 2021-06-28 | 2023-01-13 | 南宁富桂精密工业有限公司(Cn) | 网关数据存储管理方法、网关装置及存储介质 |
| CN113572824A (zh) * | 2021-07-07 | 2021-10-29 | 北京奇艺世纪科技有限公司 | 一种超时时长的动态更新方法、装置、电子设备和存储介质 |
| CN113572824B (zh) * | 2021-07-07 | 2023-01-10 | 北京奇艺世纪科技有限公司 | 一种超时时长的动态更新方法、装置、电子设备和存储介质 |
| CN114675950A (zh) * | 2022-03-16 | 2022-06-28 | 京东科技信息技术有限公司 | 任务调度方法及其装置 |
| CN118713976A (zh) * | 2024-08-26 | 2024-09-27 | 天翼视联科技有限公司 | 一种设备管理方法、装置、电子装置和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110290168B (zh) | 2022-04-12 |
| CN110290168A (zh) | 2019-09-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020224243A1 (zh) | 数据发送方法、装置、服务器及存储介质 | |
| WO2021184551A1 (zh) | 基于多个网络的通信方法、装置、电子设备及存储介质 | |
| CN107819615B (zh) | 一种设备自适应接入方法、装置及主控设备 | |
| WO2021204299A1 (zh) | 一种确定策略的方法、装置及系统 | |
| CN110177368B (zh) | 一种呼叫建立方法和系统、视频通信服务器 | |
| US20190261351A1 (en) | Function scheduling method, device, and system | |
| WO2019057015A1 (zh) | 一种网络切片管理方法及装置 | |
| WO2018076976A1 (zh) | 位置变更上报方法、设备及系统 | |
| CN101043689B (zh) | 呼叫分析方法与装置 | |
| CN114339719A (zh) | 一种dpi数据采集方法及相关装置 | |
| TW202112113A (zh) | 資源分享方法、裝置、電腦裝置及存儲介質 | |
| WO2020228751A1 (zh) | 一种通信方法和装置 | |
| WO2025035937A1 (zh) | 码号配置方法、配置装置、电子设备及存储介质 | |
| CN107294811A (zh) | 网络检测方法、网络检测装置及智能终端 | |
| CN113055982B (zh) | 一种网络接入方法、网络接入装置及移动终端 | |
| JP6368659B2 (ja) | 基地局輻輳管理システム、及び基地局輻輳管理方法 | |
| CN111352938B (zh) | 数据处理方法、计算机设备及存储介质 | |
| CN111193677B (zh) | 一种将主机fc端口归属到对应主机的方法、设备及介质 | |
| CN113055876B (zh) | 一种备用云卡的下载方法、装置及终端设备 | |
| CN110620811B (zh) | 一种vOLT集群架构下ONU管理方法及系统 | |
| CN109005068B (zh) | 一种集群虚拟机qos的配置方法 | |
| WO2020224242A1 (zh) | 区块链数据处理方法、装置、服务器及存储介质 | |
| CN111045989A (zh) | 一种查询cpld版本信息的方法、设备及介质 | |
| CN110535959A (zh) | 一种传输数据的方法、装置和计算机可读存储介质 | |
| WO2020119317A1 (zh) | 报文转发方法及装置、存储介质、电子装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19928131 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19928131 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/03/2022) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19928131 Country of ref document: EP Kind code of ref document: A1 |