Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Socket communication method and device and storage equipment

A communication method and technology of a communication device, applied in the field of network storage, can solve problems such as inability to achieve high-performance concurrent services, limit the number of events that can be selectively monitored, and achieve the effects of increasing concurrency and overcoming system abnormalities

Inactive Publication Date: 2017-01-04
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF10 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The select mechanism adopts a polling strategy, that is, it needs to traverse the entire monitored descriptor set, which makes its work efficiency inversely proportional to the number of monitored events; and the number of events monitored by select is obviously limited
Due to the above shortcomings, the mechanism of select monitoring cannot achieve high-performance concurrent services

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
  • Socket communication method and device and storage equipment
  • Socket communication method and device and storage equipment
  • Socket communication method and device and storage equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0039] Please refer to figure 1 and figure 2 , figure 1 A flow chart of a socket communication method based on IPSAN provided by an embodiment of the present invention, figure 2 It is a flowchart of an io operation in an IPSAN-based socket communication method provided by an embodiment of the present invention. The method can include:

[0040] Step 101: Create a socket for listening to client requests, add the socket to epoll, and register a callback function.

[0041] Among ...

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 provides an IPSAN-based socket communication method and device and storage equipment. The method comprises the steps that a socket for monitoring client requests is created and added into epoll, and a callback function is registered; the client requests are received, and a new connection file descriptor is added into epoll; when the file descriptor is readable, the callback function is called to analyze IPSAN requests, and an interface at the storage end is called to carry out io operation; a modification event corresponding to the writable file descriptor for which operation is finished is sent to a client side. By using the epoll technology, the event corresponding to the new connection file descriptor can be directly returned, a polling strategy is not adopted, the phenomenon that the efficiency is remarkably lowered along with increasing of the number of monitoring events is avoided, the problem that system exception is caused by limiting on the number of events can be solved, and the storage end concurrent volume is greatly improved.

Description

technical field [0001] The invention relates to the field of network storage, in particular to an IPSAN-based socket communication method, device and storage device. [0002] technical background [0003] With the development of science and technology in modern society, computers have been widely used in various fields. In today's digitization, networking and informationization, computer network technology has been developed rapidly and widely used. The storage system based on IPSAN can realize the SAN storage function with only a small investment, and even directly utilize the existing TCP / IP network. Compared with the previous network storage technology, it solves the problems of openness, capacity, transmission speed, compatibility, security, etc., and its superior performance has attracted much attention and favor. The IPSAN realizes the data transmission between the client and the storage end through SOCKET communication. [0004] In TCP / TP network applications, the ma...

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
IPC IPC(8): H04L29/06H04L29/08
CPCH04L67/1097H04L69/162
Inventor 宋腾
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products