Service connection method and device in distributed system

A distributed system and connection method technology, applied in the field of service connection methods and devices, can solve the problems of occupation and other problems, and achieve the effect of avoiding high CPU resource occupancy

Active Publication Date: 2016-05-18
NEW H3C TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Repeatedly initiating connections will occupy a large amount of CPU (central processing unit) resources of the client

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
  • Service connection method and device in distributed system
  • Service connection method and device in distributed system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In the prior art, if the process on the Client initiates a connection to access the service before the process on the Server starts the service, that is, the process on the Client has initiated a connection but the process on the Server has not yet started the service, then , the process on the Client will fail to connect to the process on the Server, and then the process on the Client will continuously initiate connections to the process on the Server until the process on the Server starts the service, and the process on the Client establishes a connection with the process on the Server Until it succeeds, repeatedly initiating connections will lead to high CPU resource usage of the Client.

[0027] The technical solutions of the following embodiments of the present application are applied to a distributed system including multiple nodes, for example, a frame device composed of multiple single boards, and in this case, each single board is a node. Each node in the distr...

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 service connection method and a service connection device in a distributed system. The service connection method comprises the steps of: judging whether a table item containing port information corresponding to a service and position information of a node of the service exists in a local database when being informed that a process is going to access the service; if so, notifying the port information corresponding to the service and the position information of the node of the service in the table item to the process so as to initiate connection; otherwise, adding a table item containing port information and position information into the database when receiving a service opening message carrying the port information corresponding to the service and the position information of the node of the service, and notifying the port information and the position information to the process to initiate connection. The service connection method and the service connection device avoid the problem of high CPU resource occupation rate of a client caused by repeated initialization.

Description

technical field [0001] The present application relates to the technical field of network communication, in particular to a service connection method and device in a distributed system. Background technique [0002] In a distributed system (for example, a frame device including multiple boards), the communication process generally involves two subjects, namely a client (Client) and a server (Server). When a service with a specific function is to be opened, the process on the Server will open the port of the service; when the process on the Client needs to access the service, it will use the location information of the Server where the service is located (specifically, the IP address of the Server) and the port number of the service to initiate a connection to the process on the Server; after the connection is successful, the process on the Server and the process on the Client can send and receive data to each other. Subsequently, when the service is to be closed, the process...

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/06H04L29/08
CPCH04L67/51H04L67/52H04L67/01
Inventor 朱寅寅
Owner NEW H3C TECH CO LTD
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