Unlock instant, AI-driven research and patent intelligence for your innovation.

A Realization Method of Load Balancing Network Middleware Based on Extensible Protocol

A load balancing and protocol extension technology, applied in data exchange networks, electrical components, digital transmission systems, etc., can solve problems such as waste of resources, complex middleware, and inability to optimize the characteristics of time series data key-value pairs, and achieve CPU and memory reduction , reduce system resource overhead, and improve message processing capabilities

Active Publication Date: 2021-05-28
NR ELECTRIC CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

First of all, these frameworks are general-purpose frameworks, and the key-value pair characteristics for time-series data cannot be optimized, which makes the communication protocol too large and wastes resources; second, the general framework needs to consider too many scenarios, so the middleware is too complicated, such as CORBA. A heavyweight framework will drag down the deployment of the entire time-series database; again, traditional middleware shields the underlying operating system dependencies very well, achieving versatility and cross-platform, but this is based on the loss of certain system performance, so Unable to meet the requirements of large data volume and low response delay of time series data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Realization Method of Load Balancing Network Middleware Based on Extensible Protocol
  • A Realization Method of Load Balancing Network Middleware Based on Extensible Protocol
  • A Realization Method of Load Balancing Network Middleware Based on Extensible Protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The technical scheme of the present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

[0038] like Figure 1-5 As shown, a load balancing network middleware implementation method based on an extensible protocol includes the following steps:

[0039] Step 1, such as figure 1 As shown, the server receives the multi-frame message from the client, where each frame message is 258 bytes, which is specified by the constant at compile time, and the format of each frame message is:

[0040] 1 byte message type + 1 byte message size + message content:

[0041] The message type is used to judge whether to read a message or write a message, and to judge whether a small-size message or a large-size message. The small-size message and the large...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a load balancing network middleware implementation method based on an extensible protocol: 1. The server receives the multi-frame message from the client; Step 2. After parsing the multi-frame message into a single-frame message, the message is obtained type; step 3, put the read message into the read thread pool, and put the write message into the write thread pool, wherein, the small size message is allocated on the stack, and the large size message is allocated on the heap; step 4, the read thread pool and the The write thread pool calls the load balancing algorithm to select specific processing threads, and puts the message content into the corresponding thread message queue; step 5, for the write message, the write thread writes the data to the disk file and returns a confirmation message; for the read message, and the reading thread queries the corresponding disk file according to the index, reads the data into the cache, and assembles the message and returns it to the corresponding client. With the advantages of high performance, scalable protocol and load balancing, it can effectively save network traffic and improve response rate.

Description

technical field [0001] The invention relates to a method for implementing a load balancing network middleware based on an extensible protocol. Background technique [0002] Time-series data processing technology is widely used in wide area measurement system (WAMS), substation monitoring, dispatching, DC, stability control and other power automation systems to meet the needs of storing massive and high-frequency data. Time-series databases are mainly used to process high-frequency data at the second and millisecond levels. Each storage cycle (milliseconds or seconds) will generate a batch of data, so the amount of data is huge, and the read and write performance of network traffic and network middleware is extremely demanding. High, this requirement is different from traditional network middleware. It is necessary to customize and develop network middleware suitable for time-series databases, and optimize it for message, network and storage characteristics. [0003] Traditi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/803
CPCH04L47/125
Inventor 徐丹张俊钱锋
Owner NR ELECTRIC CO LTD