Large-scale concurrent data forwarding method based on netty

A forwarding method and technology of data forwarders, applied in electrical components, transmission systems, etc., can solve problems such as server crashes

Inactive Publication Date: 2017-05-31
NANTONG UNIVERSITY +1
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the above application, if there are many connected clients, it may cause the problem of server crash caused by multi-thread concurrency

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
  • Large-scale concurrent data forwarding method based on netty
  • Large-scale concurrent data forwarding method based on netty

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. The following examples are explanations of the present invention and the present invention is not limited to the following examples.

[0037] As shown in the figure, a netty-based large-scale concurrent data forwarding method of the present invention includes the following steps:

[0038] Step 1: Initialize the thread group clientLoopGroup whose type is NioEventLoopGroup, start the data forwarder process guider whose type is Bootstrap and make related settings; related settings specifically include:

[0039] a) Associating the thread group clientLoopGroup with the data forwarder process guide;

[0040] b) Set the channel type of clientLoopGroup to NioSocketChannel;

[0041] c) Set parameters SO_KEEPALIVE, TCP_NODELAY to true.

[0042] Step 2: Construct an implicit class for I / O event processing, and hook it into the main channel of ...

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 large-scale concurrent data forwarding method based on netty. The method comprises the step of establishing a data forwarder and a data receiver, wherein the data receiver is mainly responsible for receiving data information of remote hosts, analyzing the data information and searching suitable channels in the data forwarder for forwarding, and the data forwarder mainly is responsible for carrying out data transmission on a remote receiving host and for the received data, sending the data to the remote hosts by simulating the plurality of channels. The method is applicable to related applications such as transparent transmission of a great deal of sensor data or conversion of a transmission protocol in an Internet of things environment.

Description

technical field [0001] The invention relates to a data forwarding method, in particular to a netty-based large-scale concurrent data forwarding method. Background technique [0002] At present, the Internet of Things technology has been widely applied to many fields such as environmental protection, fire protection, transportation, and surveying and mapping. In these applications, the transmission of sensor data plays a crucial role. The sensor data is generally sent to the TCP port of the host through the wireless network, and a fixed protocol is used to regulate the information transmission between the sensor and the host. [0003] In various application scenarios, the host needs to implement data forwarding, such as data format conversion between different communication protocols or data transparent transmission between multiple servers. However, in the above-mentioned application, if there are many connected clients, it may cause the problem of server crash caused by m...

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 Applications(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/12H04L69/08
Inventor 张驰王英利段平钞振华李冠男周侗李佳
Owner NANTONG UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products