CN101262479B - A network file share method, server and network file share system - Google Patents

A network file share method, server and network file share system Download PDF

Info

Publication number
CN101262479B
CN101262479B CN200810093996XA CN200810093996A CN101262479B CN 101262479 B CN101262479 B CN 101262479B CN 200810093996X A CN200810093996X A CN 200810093996XA CN 200810093996 A CN200810093996 A CN 200810093996A CN 101262479 B CN101262479 B CN 101262479B
Authority
CN
China
Prior art keywords
server
master server
client computer
operating state
network file
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.)
Active
Application number
CN200810093996XA
Other languages
Chinese (zh)
Other versions
CN101262479A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Symantec Technologies 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 Huawei Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN200810093996XA priority Critical patent/CN101262479B/en
Publication of CN101262479A publication Critical patent/CN101262479A/en
Application granted granted Critical
Publication of CN101262479B publication Critical patent/CN101262479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method, a server and a sharing system for sharing network files. The sharing method disclosed by the embodiment of the invention comprises the following steps: obtaining and testing working state of a master server; starting a pre-established communication connection to exchange information with a client machine when the working state of the master server is abnormal. Meanwhile, the invention also provides the server which comprises a communication connection unit, an acquiring unit and a processing unit. The communication connection unit is used for establishing communication connection with the client machine; the acquiring unit is used for obtaining and testing the working state of the master server; the processing unit is used for starting the communication connection established between the communication connection unit and the client machine and carrying out information exchange with the client machine when the acquiring unit obtains the information that the working state of the master server is abnormal; therefore, the problems of transmitted data missing or application software collapsing can be avoid.

Description

The system that method, server and the network file that a kind of network file is shared shared
Technical field
The present invention relates to field of network communication, relate in particular to the shared system of method, server and network file that a kind of network file is shared.
Background technology
The development of Along with computer technology and application more and more widely make all trades and professions increasingly high for the degree of dependence of computer technology.Although the speed development of Along with computer technology to make rapid progress, the Performance And Reliability of single computer is become better and better, and is that single computer is unapproachable but many requirements are arranged.Therefore the application of file-sharing Network Based is adopted by increasing system, and promptly NetWare file server provides shared-file system as a kind of storage server to client computer.The file on the NetWare file server can checked or revise to client computer.
At present often many computer organizations are got up to carry out collaborative work and simulate a computer solve problem with better function, this technology is called Clustering.So-called cluster, the common exactly sets of computer system that Internet resources are provided for client computer.And wherein each provides the computer of service to be called node.Unavailable or can not handle client's request the time, this request will forward other enabled node to and handle when node, and these are for client, needn't be concerned about the particular location of the resource that these will use, group system can be accomplished automatically.
The inventor finds that there is following problem at least in prior art in realizing process of the present invention:
Because the same virtual IP address of master and slave server by utilizing in the prior art; When master server occurs when unusual; Activate the IP address of master server from server; Client computer failover this moment need rebulid communication to from server the time and connect, and this loss of data or application software that just might cause having transmitted is collapsed.
Summary of the invention
The system that method, server and the network file that the embodiment of the invention provides a kind of network file to share shared, the loss of data that possibly cause when effectively avoiding client computer failover in the prior art having transmitted or the problem of application software collapse.
The method that the embodiment of the invention provides a kind of network file to share may further comprise the steps:
Master server with simultaneously establish a communications link said master server and said based on the shared agreement of TCP/IP and with different IP address and client computer from server from carrying out information interaction through synchronous data line between the server;
Obtain and detect the operating state of said master server;
When the operating state of said master server occurs when unusual, start in advance and to be connected with communication that client computer is set up and said client computer is carried out information interaction.
The embodiment of the invention provides a kind of server simultaneously, comprising:
The communication linkage unit is used for establishing a communications link with client computer;
Acquiring unit is used to obtain and detect the operating state of master server;
Processing unit is used for occurring when unusual when operating state that said acquiring unit gets access to said master server, starts said communication linkage unit and is connected with client computer with communication that client computer is set up and carries out information interaction.
The embodiment of the invention provides the system that a kind of network file is shared simultaneously; Master server with establish a communications link simultaneously from server based on the shared agreement of TCP/IP and with different IP address and client computer; Said master server and said from carrying out information interaction through synchronous data line between the server comprises:
Master server is used for establishing a communications link with client computer, is connected under the normal situation with said client communication at said master server, and the network shared files operation requests that client computer is sent responds;
From server, be used to obtain and detect the operating state of said master server, when the operating state of said master server occurs when unusual, start in advance and to be connected with communication that said client computer is set up and said client computer is carried out information interaction.
Compared with prior art, the embodiment of the invention has the following advantages:
Obtain and detect the operating state of master server; When the operating state of master server occurs when unusual; Start in advance with client computer is set up and be connected, carry out information interaction, the loss of data of avoiding thus occurring having transmitted or the problem of application software collapse with client computer.
Description of drawings
Fig. 1 is the flow chart of the shared method of the network file in the embodiment of the invention one;
Fig. 2 is the flow chart of the shared method of the network file in the embodiment of the invention two;
Fig. 3 is the structural representation of the server in the embodiment of the invention three;
Fig. 4 is the structural representation of the system that network file is shared in the embodiment of the invention four.
Embodiment
The system that method, server and the network file that the embodiment of the invention provides a kind of network file to share shared, the loss of data that possibly cause in the time of can effectively avoiding failover having transmitted or the problem of application software collapse.
The system that method, server and the network file that the embodiment of the invention is provided below in conjunction with accompanying drawing and specific embodiment shared is elaborated.
Fig. 1 is the flow chart of the shared method of the network file of the embodiment of the invention one, may further comprise the steps:
Step S101, obtain and detect the operating state of master server.
Concrete; From passing through the operating state that heartbeat detection detects the other side between server and the master server; When the heartbeat signal of not receiving continuously within a certain period of time from server to certain number; Then decidable master server system has occurred unusually, can not carry out normal information interaction with client computer.
Step S102, when the operating state of said master server occurs when unusual, start in advance and to be connected with communication that client computer is set up and said client computer is carried out information interaction.
Concrete, with different IP address and client computer set up network file common share communication simultaneously from server with master server and be connected.Master server is connected under the normal condition with client communication, and client computer is only carried out information interaction with master server.
Can be during said establishing a communications link based on the shared agreement of TCP/IP, certainly, shared agreement has more than and is limited to the shared agreement of TCP/IP, seeing that the shared agreement use of TCP/IP is comparatively general, so only as example.Carry out information interaction between server and the master server through synchronous data line simultaneously, to guarantee data consistent from server and master server.
Detecting master server from server can not be normally and client computer when carrying out information interaction, through failover directly and client computer carry out information interaction.Specifically be meant need not rely on and realize that the application software that network file is shared carries out the manual switching operation from server, start in advance just be connected with communication that client computer is set up can be directly and client computer carry out information interaction.
Can improve the transmission safety of data through above-mentioned steps, the problem of loss of data of avoiding occurring having transmitted or application software collapse.
The method of sharing through two pairs of network files provided by the invention of embodiment below is elaborated, and is as shown in Figure 2, specifically may further comprise the steps:
Step S201, master server and establish a communications link with client computer simultaneously from server.
Concrete, master server with establish a communications link simultaneously and master server and from the information interaction of carrying out that can be real-time between the server based on the shared agreement of TCP/IP and with different IP address and client computer from server.
Master server is connected with client communication under the normal situation, and client computer is only carried out information interaction with master server, and can be used as standby server from server this moment.
After master server and client computer establish a communications link, can search for information corresponding in the database in the master server respective memory, and Search Results is sent it back client computer according to the network shared files operation requests of client computer transmission.
Simultaneously master server and between the server can through the data sync line real-time carry out information interaction, can guarantee from the information of server and master server consistent like this.
Step S202, client computer and master server carry out obtaining the operating state of master server from server in the process of information interaction.
Master server and from the operating state through heartbeat detection monitoring the other side between the server.Said heartbeat detection is meant and is keeping signal of communication intermittently between server, is a mechanism of wrong detection.Concrete, through each communication path, between two peer systems, periodically shake hands, if the heartbeat signal of not receiving has continuously within a certain period of time arrived certain number, then decidable occurs unusual to method, system.
Step S203, whether normal from server detection master server operating state is if normally then return step S202; If unusual, execution in step S204.
Step S204, carry out failover, start in advance and is connected, by responding from the network shared files operation requests of server to the client computer transmission with the communication that client computer is set up.
Because having set up communication with its own IP address and client computer in advance from server is connected; And keeping the renewal of data message mutual with master server; After the failover; The network shared files operation requests that can replace master server that client computer is sent from server responds, thereby effectively avoids the loss of data transmitted.
Said failover is meant and is repositioned onto the resource on the server that breaks down on another available server that the resource that is about on the master server is repositioned onto from server.Establish a communications link owing to master server with from IP address and client computer that server has with self in advance; Therefore when carrying out the failover operation; Client computer can through said is connected with communication that client computer is set up in advance need not rely on directly carrying out information interaction from server realize that the application software that network file is shared carries out the manual switching operation, promptly shield the failover process to upper application software.
Said application software refers to all application software of dependency network file-sharing, for example, uses WORD software to open a document of sharing through network, and this moment, WORD software promptly was upper application software.
The method that the embodiment of the application of the invention provides, the problem of loss of data that possibly cause in the time of can effectively avoiding failover having transmitted or application software collapse.
Simultaneously, the embodiment of the invention also provides a kind of server, is used to the method that realizes that the embodiment of the invention provides, and is as shown in Figure 3, specifically comprises:
Communication linkage unit 10 is used for establishing a communications link with client computer;
Acquiring unit 20 is used to obtain and detect the operating state of master server;
Processing unit 30 is used for occurring when unusual when operating state that said acquiring unit 20 gets access to said master server, starts said communication linkage unit 10 and is connected with client computer with communication that client computer is set up and carries out information interaction.
Said acquiring unit 20 further comprises:
State obtains subelement 21, is used to obtain the operating state of said master server;
State-detection subelement 22 is used for that said state is obtained the master server operating state that subelement 21 obtains and detects.
Said server also comprises:
Data storage cell 40 is used for carrying out data interaction and providing data and said client computer to carry out information interaction for the said linkage unit 10 of communicating by letter with said master server.
Server through the foregoing description provides can be realized the shared method of network file that the embodiment of the invention provides, and detailed process is following:
After said server connects with client computer through said communication linkage unit 10 with its own IP address; State in the acquiring unit 20 obtains the operating state that subelement 21 obtains master server, and detects through the operating state of 22 pairs of master servers of state-detection subelement.When testing result occurs when unusual for the master server operating state, said processing unit 30 start communication linkage units 10 directly and client computer carry out information interaction;
When said communication linkage unit 10 carried out information interaction with client computer, data storage cell 40 provided the data of information interaction for it.Simultaneously, data storage cell 40 also carries out real-time information interaction with master server, with the consistency of assurance with Master Server Info.
Through the server that embodiments of the invention provide, the problem of loss of data that possibly cause in the time of can effectively avoiding failover having transmitted or application software collapse.
System as shown in Figure 4, that the embodiment of the invention also provides a kind of network file to share comprises master server and from server:
Master server is used for establishing a communications link with client computer, is connected under the normal situation with said client communication at said master server, and the network shared files operation requests that client computer is sent responds;
From server, be used to obtain and detect the operating state of said master server, when the operating state of said master server occurs when unusual, start in advance and to be connected with communication that said client computer is set up and said client computer is carried out information interaction.
Saidly comprise from server:
Communication linkage unit 10 is used for establishing a communications link with client computer;
Acquiring unit 20 is used to obtain and detect the operating state of master server;
Processing unit 30 is used for occurring when unusual when operating state that said acquiring unit 20 gets access to said master server, starts said communication linkage unit 10 and is connected with client computer with communication that client computer is set up and carries out information interaction.
Saidly also comprise from server:
Data storage cell 40 is used for carrying out data interaction and providing data and said client computer to carry out information interaction for the said linkage unit 10 of communicating by letter with said master server.
Said system is when realizing that network file is shared, and detailed process is following:
Master server with establish a communications link simultaneously from server with different IP address and client computer, wherein master server and client computer are carried out information interaction.Simultaneously, master server is through the data sync line and carry out real-time information interaction from the data in server memory cell, with the consistency of assurance with Master Server Info.
Said connect through said communication linkage unit 10 and client computer with its own IP address from server after; State in the acquiring unit 20 obtains the operating state that subelement 21 obtains master server, and detects through the operating state of 22 pairs of master servers of state-detection subelement.When testing result occurs when unusual for the master server operating state, processing unit 30 start communication linkage units 10 directly and client computer carry out information interaction;
When said communication linkage unit 10 carried out information interaction with client computer, data storage cell 40 provided the data of information interaction for it.
The system that the method that the embodiment of the application of the invention provides, server and network file are shared; Can be through obtaining and detect the operating state of master server; When the operating state of master server occurs when unusual; Start in advance with client computer is set up and be connected, carry out information interaction, the loss of data of avoiding thus occurring having transmitted or the problem of application software collapse with client computer.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly realize through hardware fully.One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer-readable medium, and said computer-readable medium is like ROM/RAM, magnetic disc, CD etc.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (8)

1. the method that network file is shared is characterized in that, comprising:
Master server with simultaneously establish a communications link said master server and said based on the shared agreement of TCP/IP and with different IP address and client computer from server from carrying out information interaction through synchronous data line between the server;
Obtain and detect the operating state of said master server;
When the operating state of said master server occurs when unusual, start in advance and to be connected with communication that client computer is set up and said client computer is carried out information interaction.
2. the method shared of network file according to claim 1 is characterized in that the said operating state of obtaining and detect master server is for just often, and said client computer and said master server carry out information interaction.
3. the method shared of network file according to claim 1 is characterized in that the said operating state of obtaining and detect master server is specially:
Obtain the operating state of said master server through heartbeat detection.
4. the method shared of network file according to claim 1 is characterized in that, the said connection with communication that client computer is set up in advance is specially:
The communication of using IP address different with master server and client computer to set up is connected.
5. the system shared of a network file; It is characterized in that; Master server with establish a communications link simultaneously from server based on the shared agreement of TCP/IP and with different IP address and client computer, said master server and said from carrying out information interaction through synchronous data line between the server comprises:
Master server is used for establishing a communications link with client computer, is connected under the normal situation with said client communication at said master server, and the network shared files operation requests that client computer is sent responds;
From server, be used to obtain and detect the operating state of said master server, when the operating state of said master server occurs when unusual, start in advance and to be connected with communication that said client computer is set up and said client computer is carried out information interaction.
6. the system of sharing like the said network file of claim 5 is characterized in that, saidly comprises from server:
The communication linkage unit is used for establishing a communications link with client computer;
Acquiring unit is used to obtain and detect the operating state of said master server;
Processing unit is used for occurring when unusual when operating state that said acquiring unit gets access to said master server, starts that said communication linkage unit is connected directly with communication that said client computer is set up and said client computer is carried out information interaction.
7. the system of sharing like the said network file of claim 5 is characterized in that, saidly also comprises from server:
Data storage cell is used for carrying out data interaction and providing data and said client computer to carry out information interaction for the said linkage unit of communicating by letter with said master server.
8. the system of sharing like the said network file of claim 5 is characterized in that said acquiring unit further comprises:
State obtains subelement, is used to obtain the operating state of said master server;
The state-detection subelement is used for that said state is obtained the master server operating state that subelement obtains and detects.
CN200810093996XA 2008-04-25 2008-04-25 A network file share method, server and network file share system Active CN101262479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810093996XA CN101262479B (en) 2008-04-25 2008-04-25 A network file share method, server and network file share system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810093996XA CN101262479B (en) 2008-04-25 2008-04-25 A network file share method, server and network file share system

Publications (2)

Publication Number Publication Date
CN101262479A CN101262479A (en) 2008-09-10
CN101262479B true CN101262479B (en) 2012-03-21

Family

ID=39962681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810093996XA Active CN101262479B (en) 2008-04-25 2008-04-25 A network file share method, server and network file share system

Country Status (1)

Country Link
CN (1) CN101262479B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9934114B2 (en) 2013-09-26 2018-04-03 Mistubishi Electric Corporation Communication system, standby device, communication method, and standby program

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355371A (en) * 2011-10-08 2012-02-15 广东威创视讯科技股份有限公司 Implementation method for dual hot redundancy of splicing wall control system
CN104615509B (en) * 2015-02-06 2017-02-01 国家电网公司 System for improving running reliability of portal website
CN105337762A (en) * 2015-09-28 2016-02-17 浪潮(北京)电子信息产业有限公司 File sharing method supporting automatic failover
CN107769996B (en) * 2017-10-24 2021-02-09 新华三云计算技术有限公司 Method and device for detecting working state of server
CN108092858B (en) * 2018-02-07 2019-10-18 北京百度网讯科技有限公司 For switching the method and device of agent node
CN109302460A (en) * 2018-09-14 2019-02-01 中通国脉物联科技南京有限公司 A kind of management method of dynamic expansion communication connection number

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946058A (en) * 2006-10-28 2007-04-11 武汉市中光通信公司 Soft exchange device allopatric disaster recovery solution system and its method for software exchange network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946058A (en) * 2006-10-28 2007-04-11 武汉市中光通信公司 Soft exchange device allopatric disaster recovery solution system and its method for software exchange network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9934114B2 (en) 2013-09-26 2018-04-03 Mistubishi Electric Corporation Communication system, standby device, communication method, and standby program

Also Published As

Publication number Publication date
CN101262479A (en) 2008-09-10

Similar Documents

Publication Publication Date Title
CN101262479B (en) A network file share method, server and network file share system
CN106331098B (en) Server cluster system
US9141491B2 (en) Highly available server system based on cloud computing
US20160330067A1 (en) Network Service Fault Handling Method, Service Management System, and System Management Module
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN104408071A (en) Distributive database high-availability method and system based on cluster manager
CN102970167B (en) The fault detection method of network node, network node and system in group system
US10187181B2 (en) Method and device for handling exception event in telecommunication cloud
CN106982244B (en) Method and device for realizing message mirroring of dynamic flow under cloud network environment
CN103188098B (en) A kind of disaster tolerance switching method, system and device
EP3806392A1 (en) Fault management method and related device
CN104506372A (en) Method and system for realizing host-backup server switching
CN112202918A (en) Load scheduling method, device, equipment and storage medium for long connection communication
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
CN113377702B (en) Method and device for starting two-node cluster, electronic equipment and storage medium
CN104539462B (en) It is a kind of to switch to method and device of the calamity for application example
CN113055203B (en) Method and device for recovering exception of SDN control plane
CN104243473A (en) Data transmission method and device
CN106708881B (en) Interaction method and device based on network file system
CN109347743B (en) Special line communication method, computer readable storage medium and terminal equipment
CN107087021B (en) Master-slave server determination method and device
CN105045691B (en) A kind of fault detection method and system
CN111835544B (en) Monitoring method and system of virtual router based on user mode protocol stack
CN109510864B (en) Forwarding method, transmission method and related device of cache request
CN113766363A (en) Fault monitoring method and device and computing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: CHENGDU CITY HUAWEI SAIMENTEKE SCIENCE CO., LTD.

Free format text: FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD.

Effective date: 20090424

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20090424

Address after: Qingshui River District, Chengdu high tech Zone, Sichuan Province, China: 611731

Applicant after: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES Co.,Ltd.

Address before: Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Province, China: 518129

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: HUAWEI DIGITAL TECHNOLOGY (CHENGDU) CO., LTD.

Free format text: FORMER NAME: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee after: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.

Address before: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee before: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221024

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China

Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.