[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107147663A - The synchronous communication method and system of a kind of computer cluster - Google Patents

The synchronous communication method and system of a kind of computer cluster Download PDF

Info

Publication number
CN107147663A
CN107147663A CN201710406442.XA CN201710406442A CN107147663A CN 107147663 A CN107147663 A CN 107147663A CN 201710406442 A CN201710406442 A CN 201710406442A CN 107147663 A CN107147663 A CN 107147663A
Authority
CN
China
Prior art keywords
socket
client
server
module
connection
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.)
Pending
Application number
CN201710406442.XA
Other languages
Chinese (zh)
Inventor
刘远峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Jitong Information Development Co ltd
Original Assignee
Guangdong Jitong Information Development Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Jitong Information Development Co ltd filed Critical Guangdong Jitong Information Development Co ltd
Priority to CN201710406442.XA priority Critical patent/CN107147663A/en
Publication of CN107147663A publication Critical patent/CN107147663A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of synchronous communication method of computer cluster and system, this method includes:The socket of the socket word description of client server to be connected, specifies address and the port numbers of server side socket;Wherein the socket of client comes from TCP flow socket array, wherein each socket correspondence and a server connection communication in the TCP flow socket array;Client socket sends connection request;Server side socket listens to the connection request, the request of customer in response end socket;Client is issued in the description of server side socket, client confirms the description, sets up connection;When ensure that client sends message, server can receive message, and there is provided transmitting, it is ensured that sequentially transmits, and reaches good synchronization.

Description

The synchronous communication method and system of a kind of computer cluster
Technical field
The present invention relates to a kind of computer communication technology field, more particularly to a kind of synchronization of computer cluster is led to Communication method and system.
Background technology
Computer cluster is a kind of parallel or distributed system being made up of the computer interconnected, can conduct Individually, unified computing resource is used, and the communication of system interior joint mainly completed by message transmission.Therefore, for collection The importance of communication mechanism is self-evident for group's system.The design of the communication protocol of bottom is often network communication efficiency Key.The relation of application layer protocol and user are the closest, because user will often pass through application layer protocol using network.Respectively It is exactly the communication service by various application layer protocols to be provided using network to plant application process.Specific network application is solved to ask Topic, is completed, application often by the communication and cooperation between the application software being located in different main frames of User Exploitation The particular content of layer is exactly to provide the agreement that these application processes are followed in communication.
The network service of cluster can use a variety of methods, and communication software main at present has socket, PVM(Parallel meter Calculation machine)And MPI(Messaging interface).Although their communication speed is fast, communication efficiency is high, applies in group system When, when client sends message, in fact it could happen that the server having be have received and some servers are not received To message, it is impossible to reach good synchronization.
The content of the invention
Based on this, it is necessary to which there is provided one kind the problem of can not be synchronous well during for client and server end communication The method and system of the synchronous communication of computer cluster.
A kind of synchronous communication method of computer cluster, including:The service to be connected of the socket word description of client The socket of device, specifies address and the port numbers of server side socket;Wherein the socket of client comes from TCP flow socket Array, wherein each socket correspondence and a server connection communication in the TCP flow socket array;Client is to clothes Business device end socket sends connection request;Server side socket listens to the connection request, customer in response end socket Request;Client is issued in the description of server side socket, client confirms the description, sets up connection;Client and each The individual server end for setting up connection synchronizes data communication.
Preferably, include before the step of socket of the socket word description of client server to be connected:In client End sets TCP flow socket array.
Preferably, in addition to:Server end monitors network state in real time.
Preferably, the step of request of customer in response end socket includes:A new receiving thread is created to be responsible for and visitor The socket at family end is communicated.
A kind of synchronous communication system of computer cluster, including:Server socket describing module, connection request are carried Go out module, respond module, confirm module, communication module;The server socket describing module, the socket for client The socket of description server to be connected, specifies address and the port numbers of server side socket;The wherein socket of client Word comes from TCP flow socket array, wherein each socket correspondence and a server in the TCP flow socket array connect Connect letter;The connection request proposes module, and connection request is sent for client socket;The response mould Block, the connection request is listened to for server side socket, and the request of customer in response end socket is socketed server end Client is issued in the description of word;The confirmation module, the description is confirmed for client, sets up connection;The communication module, Server end for client and each foundation connection synchronizes data communication.
Preferably, in addition to:Socket array setup module;The socket array setup module, in client TCP flow socket array is set.
Preferably, in addition to:Monitoring module;The monitoring module, network state is monitored for server end in real time.
Preferably, the respond module, is additionally operable to one new receiving thread of establishment and is responsible for entering with the socket of client Row communication.
Each socket pair in the synchronous communication method of above computer group system, the TCP flow socket array Should be with a server connection communication;Server side socket listens to the connection request, customer in response end socket please Ask;Client is issued in the description of server side socket, client confirms the description, sets up connection, ensure that client When end to server end transmission message, server can receive message, and there is provided transmitting, it is ensured that sequentially transmits, reaches It is synchronous well.
Brief description of the drawings
Fig. 1 is the indicative flowchart of the synchronous communication method of the computer cluster of an embodiment;
Fig. 2 sets up the indicative flowchart of synchronous communication connection for the computer cluster of Fig. 1 embodiments;
Fig. 3 is the indicative flowchart of the synchronous communication system of the computer cluster of an embodiment.
Embodiment
The synchronous communication method of the computer cluster of this programme is regarded suitable for the large-screen high-resolution degree based on cluster Frequency play system.Wherein group system is a kind of parallel or distributed system being made up of the computer interconnected, Ke Yizuo Used for independent, unified computing resource.The hardware bag that large-screen high-resolution degree audio/video player system based on cluster is related to Include server end(Cluster server), control end(Client), wherein the hardware requirement needed according to the group system:Carry Good network card and node, the high performance interconnecting network equipment of graphic display card, such as interchanger, projecting apparatus and curtain.We Case ensure that client send message when there is provided transmitting, it is ensured that sequentially transmit, reach well It is synchronous.
Fig. 1 is the indicative flowchart of the synchronous communication method of the computer cluster of an embodiment;As shown in figure 1, A kind of synchronous communication method of computer cluster, including:
S11, the socket of the socket word description of client server to be connected, specifies the address and end of server side socket Slogan;Wherein the socket of client comes from TCP flow socket array, wherein each set in the TCP flow socket array Connect word correspondence and a server connection communication;
Stream Socket is designed to be used in Connection-oriented Protocol as such.Using a pair of sockets an application program across More Internet is connected to another application program.Request towards Connection Service processing is often more complicated, is not to come one What the request-reply gone can be solved, and often concurrent services.Stream socket can provide complete transmitting, it is ensured that press Sequence is transmitted.
S12, client socket sends connection request;
S13, server side socket listens to the connection request, the request of customer in response end socket;
Include as a preferred embodiment, the step of the request of customer in response end socket:A new receiving thread is created to bear The socket of duty and client is communicated.
The description of server side socket, is issued client by S14, and client confirms the description, sets up connection;
The server end of S15, client and each foundation connection synchronizes data communication.
As a preferred embodiment, the step of the socket of the socket word description of client server to be connected before wrap Include:In client, TCP flow socket array is set.
As a preferred embodiment, in addition to:Server end monitors network state in real time.
Fig. 2 sets up the indicative flowchart of synchronous communication connection for the computer cluster of Fig. 1 embodiments;The master of execution Body is the controller of client and the server of server end respectively.As shown in Fig. 2 a kind of synchronization of computer cluster is logical Communication method, including:
Client is needed to pre-set TCP flow socket array.Wherein the socket of client comes from TCP flow socket array, Each socket correspondence and a server connection communication in wherein described TCP flow socket array;
First, the controller of client describes the socket of server to be connected, specify server side socket address and Port numbers, then to the server respond request of server end.The server of server end listens to connection request, is asked to described Ask and respond, the server of server end, which creates a new receiving thread, to be responsible for being communicated with the socket of client. Afterwards, the server of server end sends the description of server side socket, and the controller of client is carried out really to the description Recognize, set up connection.
Each socket pair in the synchronous communication method of above computer group system, the TCP flow socket array Should be with a server connection communication;Server side socket listens to the connection request, customer in response end socket please Ask;Client is issued in the description of server side socket, client confirms the description, sets up connection, ensure that client When end to server end transmission message, server can receive message, and there is provided transmitting, it is ensured that sequentially transmits, reaches It is synchronous well.
Fig. 3 is the indicative flowchart of the synchronous communication system of the computer cluster of an embodiment.As shown in figure 3, A kind of synchronous communication system of computer cluster, including:Server socket describing module 11, connection request propose module 12nd, respond module 13, confirmation module 14, communication module 15;The server socket describing module 11, the set for client The socket of word description server to be connected is connect, address and the port numbers of server side socket are specified;Wherein client Socket comes from TCP flow socket array, wherein each socket correspondence and a service in the TCP flow socket array Device connection communication;The connection request proposes module 12, and connection request is sent for client socket;It is described Respond module 13, the connection request, the request of customer in response end socket are listened to for server side socket;It is described true Recognize module 14, for client to be issued in the description of server side socket, client confirms the description, sets up connection;Institute Communication module 15 is stated, the server end for client and each foundation connection synchronizes data communication.
As a preferred embodiment, in addition to:Socket array setup module;The socket array setup module, is used In in client setting TCP flow socket array.
As a preferred embodiment, in addition to:Monitoring module;The monitoring module, for the real-time monitoring network of server end Network state.
As a preferred embodiment, the respond module 13 is additionally operable to one new receiving thread of establishment and is responsible for and client The socket at end is communicated.
Each socket pair in the synchronous communication system of above computer group system, the TCP flow socket array Should be with a server connection communication;Server side socket listens to the connection request, respond module customer in response end set Connect the request of word;Client is issued in the description of server side socket, client confirms that module confirms the description, the company of foundation Connect, when ensure that client sends message, server can receive message there is provided transmitting, protect Card is sequentially transmitted, and reaches good synchronization.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (8)

1. a kind of synchronous communication method of computer cluster, it is characterised in that including:
The socket of the socket word description of client server to be connected, specifies the address and port of server side socket Number;Wherein the socket of client comes from TCP flow socket array, wherein each socket in the TCP flow socket array Word correspondence and a server connection communication;
Client socket sends connection request;
Server side socket listens to the connection request, the request of customer in response end socket;
Client is issued in the description of server side socket, client confirms the description, sets up connection;
Client and the server end of each foundation connection synchronize data communication.
2. the synchronous communication method of computer cluster according to claim 1, it is characterised in that the socket of client Include before the step of socket of word description server to be connected:
In client, TCP flow socket array is set.
3. the synchronous communication method of computer cluster according to claim 1, it is characterised in that also include:
Server end monitors network state in real time.
4. the synchronous communication method of computer cluster according to claim 1, it is characterised in that customer in response end covers The step of request for connecing word, includes:
A new receiving thread is created to be responsible for being communicated with the socket of client.
5. a kind of synchronous communication system of computer cluster, it is characterised in that including:Server socket describing module, Connection request proposes module, respond module, confirms module, communication module;
The server socket describing module, the socket of the server to be connected for the socket word description of client is bright The address of true server side socket and port numbers;Wherein the socket of client comes from TCP flow socket array, wherein described Each socket correspondence and a server connection communication in TCP flow socket array;
The connection request proposes module, and connection request is sent for client socket;
The respond module, the connection request is listened to for server side socket, the request of customer in response end socket, Client is issued in the description of server side socket;
The confirmation module, the description is confirmed for client, sets up connection;
The communication module, the server end for client and each foundation connection synchronizes data communication.
6. the synchronous communication system of computer cluster according to claim 5, it is characterised in that also include:Socket Number of words group setup module;
The socket array setup module, for setting TCP flow socket array in client.
7. the synchronous communication system of computer cluster according to claim 5, it is characterised in that also include:Monitoring Module;
The monitoring module, network state is monitored for server end in real time.
8. the synchronous communication system of computer cluster according to claim 5, it is characterised in that the response mould Block, is additionally operable to one new receiving thread of establishment and is responsible for being communicated with the socket of client.
CN201710406442.XA 2017-06-02 2017-06-02 The synchronous communication method and system of a kind of computer cluster Pending CN107147663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710406442.XA CN107147663A (en) 2017-06-02 2017-06-02 The synchronous communication method and system of a kind of computer cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710406442.XA CN107147663A (en) 2017-06-02 2017-06-02 The synchronous communication method and system of a kind of computer cluster

Publications (1)

Publication Number Publication Date
CN107147663A true CN107147663A (en) 2017-09-08

Family

ID=59779726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710406442.XA Pending CN107147663A (en) 2017-06-02 2017-06-02 The synchronous communication method and system of a kind of computer cluster

Country Status (1)

Country Link
CN (1) CN107147663A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566390A (en) * 2018-04-09 2018-09-21 中国科学院信息工程研究所 The implementation method and satellite message of a kind of satellite application layer security protocol are monitored and distribution service system
CN113206878A (en) * 2021-04-29 2021-08-03 平安国际智慧城市科技股份有限公司 Multi-terminal cluster networking communication control method and device, server and cluster networking
CN114915669A (en) * 2021-02-08 2022-08-16 北京金山云网络技术有限公司 Service upgrading method and device based on QUIC protocol and electronic equipment
CN115103005A (en) * 2022-06-14 2022-09-23 北京京东乾石科技有限公司 Request response method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227343A (en) * 2008-02-01 2008-07-23 中兴通讯股份有限公司 Method and device for testing TCPv6 and UDPv6
CN102546437A (en) * 2012-02-20 2012-07-04 南京邮电大学 Internet of things platform-oriented socket implementation method
CN102594845A (en) * 2012-03-29 2012-07-18 东南大学 Instant message transmission method based on XMPP

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227343A (en) * 2008-02-01 2008-07-23 中兴通讯股份有限公司 Method and device for testing TCPv6 and UDPv6
CN102546437A (en) * 2012-02-20 2012-07-04 南京邮电大学 Internet of things platform-oriented socket implementation method
CN102594845A (en) * 2012-03-29 2012-07-18 东南大学 Instant message transmission method based on XMPP

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566390A (en) * 2018-04-09 2018-09-21 中国科学院信息工程研究所 The implementation method and satellite message of a kind of satellite application layer security protocol are monitored and distribution service system
CN108566390B (en) * 2018-04-09 2020-03-17 中国科学院信息工程研究所 Satellite message monitoring and distributing service system
CN114915669A (en) * 2021-02-08 2022-08-16 北京金山云网络技术有限公司 Service upgrading method and device based on QUIC protocol and electronic equipment
CN113206878A (en) * 2021-04-29 2021-08-03 平安国际智慧城市科技股份有限公司 Multi-terminal cluster networking communication control method and device, server and cluster networking
CN115103005A (en) * 2022-06-14 2022-09-23 北京京东乾石科技有限公司 Request response method and device, electronic equipment and storage medium
CN115103005B (en) * 2022-06-14 2024-08-16 北京京东乾石科技有限公司 Request response method, request response device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107147663A (en) The synchronous communication method and system of a kind of computer cluster
CN107079057A (en) Data transmission method, device, system, electronic equipment and computer program product
CN110225131A (en) A kind of service calling method and device
CN103401909B (en) Data interactive method based on BS and system, client and server
CN104317765B (en) A kind of one-to-many communication system and implementation method based on serial communication
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN109889454A (en) A kind of the message driving means and method of micro services framework
CN108390950A (en) A kind of information push method, device and equipment
CN106254377A (en) Support soft load-balancing method and the system of the connection of magnanimity length
CN103139157A (en) Network communication method based on socket, device and system
CN103703453A (en) System for supplying push service for message load balancing and method thereof
CN109828940A (en) A kind of intelligent network adapter and data processing system and method
CN106686091A (en) Virtual channel control method and system
CN106302230B (en) A kind of data transmission method and device
CN102986243A (en) Method and system for isochronous communication in audio/video networks
CN101702673A (en) Load balancing method based on BS framework
CN111427703A (en) Industrial data real-time display method and system
CN101902458B (en) Interprocess communication method across host machine, device thereof and system thereof
CN103780621A (en) Sharing method and system of remote desktop
CN104113510A (en) Virtual desktop system and message data transmitting method thereof
CN104113564A (en) Hyper text transfer protocol connection multiplexing method, device, system, and terminal
CN111711675B (en) Solution for concurrent message transmission in local area network
CN114490100A (en) Message queue telemetry transmission load balancing method and device and server
CN109714124B (en) Time synchronization system and method for test system
CN106302432A (en) A kind of communicator based on car networking and control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170908

RJ01 Rejection of invention patent application after publication