CN106357814B - A kind of document handling method, agency service end and client - Google Patents

A kind of document handling method, agency service end and client Download PDF

Info

Publication number
CN106357814B
CN106357814B CN201610957771.9A CN201610957771A CN106357814B CN 106357814 B CN106357814 B CN 106357814B CN 201610957771 A CN201610957771 A CN 201610957771A CN 106357814 B CN106357814 B CN 106357814B
Authority
CN
China
Prior art keywords
service end
client
agency service
file
nfs
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
CN201610957771.9A
Other languages
Chinese (zh)
Other versions
CN106357814A (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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital 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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201610957771.9A priority Critical patent/CN106357814B/en
Publication of CN106357814A publication Critical patent/CN106357814A/en
Application granted granted Critical
Publication of CN106357814B publication Critical patent/CN106357814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The embodiment of the invention discloses a kind of document handling method, agency service end and client, existing network bandwidth consumption big copy low efficiency when for solving the problem of existing NFS file process.Present invention method is applied to Network File System NFS, it include: the NFS explosion command request to file that agency service termination receives client transmission, wherein, the NFS explosion command request is that the client is generated according to agent request information according to object format, and the object format is the format of the client and the preparatory agreement in agency service end;The agency service end parses the NFS explosion command according to the analysis mode of the object format and requests to obtain the agent request information;The agency service end carries out agent capability assessment according to the agent request information;If the agency service end is supported to handle the file according to the result that agent capability is assessed, file described in the client process is acted on behalf of at the agency service end.

Description

A kind of document handling method, agency service end and client
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of document handling method, agency service end and client.
Background technique
Network File System (full name in English: network file system, abbreviation: NFS) is the file that unix is supported One of system, it allows to pass through transmission control protocol (full name in English: transmission between the computer in network Control protocol, abbreviation: TCP) or network protocol (full name in English: internet irotocol, abbreviation: IP) is altogether Enjoy Internet resources.In the application of NFS, local NFS client can pellucidly read and write the text in the NFS server-side of distal end Part, just as access local file.As shown in Figure 1, one for NFS is applied networking diagram, NFS server-side A and NFS server-side A shares Internet resources by IP and NFS customer end A and NFS customer end B.In some NFS application scenarios, as shown in Fig. 2, example Such as: a file on NFS client copy NFS server-side A to NFS server-side B, existing procedure are as follows: NFS client is first led to It is shared by the file copy to NFS client on NFS server-side A to cross NFS, as shown in mark A, then, NFS client is led to again Cross that NFS is shared to be copied files on NFS server-side B, as marked shown in B.
As it can be seen that needing by network-copy could be by the file copy on NFS server-side A to NFS server-side B, net twice Network bandwidth consumption is big, copies low efficiency.
Summary of the invention
It is existing for solving the purpose of the present invention is to provide a kind of document handling method, agency service end and client The problem of existing network bandwidth consumption is big when NFS file process, copies low efficiency, passes through agency service end agent client File is handled, network bandwidth consumption is reduced, effectively improves file activity.
First aspect present invention provides a kind of document handling method, and this method is applied to Network File System NFS, client Can file as local IP access in access target server-side, realize file-sharing.Agency service termination receives client After the NFS explosion command request to file sent, wherein NFS explosion command request includes allowing agency service end for processing Event, such as: copy some file, delete some file etc., since agency service end and client have the mesh of preparatory agreement Style formula, then NFS explosion command request is that client is generated according to agent request information according to object format, in this way, generation Reason server-side can parse NFS explosion command request according to the analysis mode of the object format to obtain proxy requests letter Breath, then agency service end carries out agent capability assessment according to the agent request information, if the agency service end is according to acting on behalf of energy The result of force estimation supports processing this document, then agency service end agent client handles this document.
As it can be seen that directly handling file by agency service end agent client, pass through multiple flow processing without client File reduces network bandwidth consumption to mitigate the workload of client, effectively increases file activity.
In some possible implementations, which includes: the file of the NFS command word of file, file At least one of content, the file directory of file, the network protocol IP address at destination service end and port numbers, wherein should NFS command word is to the corresponding command word of the processing mode of file to be processed, and the destination service end is corresponding to handle file Server-side, such as: agency service end agent client is by some file copy on agency service end to destination service end, the mesh The IP address and port for marking server-side are used for agency service end and build on the communication connection between destination service end, to realize text Part is shared.
In some possible implementations, which carries out agent capability assessment packet according to agent request information Include a variety of modes, may include at least one of the following contents during specific implementation: whether detection agency service end Agent functionality is opened, if opening agent functionality, then it represents that generation processing file is supported at agency service end, if it is not, not supporting then;According to Whether the IP address detection agency service end at the destination service end for including in proxy requests can be realized the road at destination service end By whether i.e. routing between detection agency service end and destination service end is unobstructed, if so, indicating that generation is supported at agency service end File is handled, if it is not, not supporting then;Whether detection agency service end can be connected to destination service end by NFS protocol, due to Agency service end needs the file-sharing between realization and destination service end, then needs agency service end to pass through NFS protocol and connect To destination service end, if can connect, then it represents that support generation processing file not support if can not connect in agency service end.
In some possible implementations, agency service end carries out agent capability assessment according to the agent request information Later, the result that agent capability is assessed is sent to client by agency service end, in this way, if agency service end does not support processing should File, then client can handle this document according to normal process, so that the time of delay processing file is avoided, if the agency Server-side supports processing this document, then client can know the mode of processing file, and wait the result of file to be processed.
In some possible implementations, before agency service end agent client handles file, agency service end root The request of NFS carry, agency service end are sent to the destination service end according to the IP address at the destination service end for including in proxy requests The NFS carry confirmation message of destination service end transmission is received, and according to NFS carry confirmation message creation and destination service end Between NFS connection the shared of file is then carried out, to realize the deletion of file, copy, modification etc. after realizing NFS connection Access mode.
In some possible implementations, after agency service end agent client handles file, agency service end will The case where result of processing file is sent to client, and client is allowed to know processing file, if being not carried out success, can weigh It is new to execute, or this document is handled according to normal process, wherein the normal process is processing mode in the prior art.
Second aspect of the present invention provides a kind of document handling method, and this method is applied to Network File System NFS, if client End detects the instruction of the object run to file, and client obtains the agent request information of this document, and client is according to the agency Solicited message generates the request of NFS explosion command according to object format, wherein the object format is the client and agency service The format of preparatory agreement is held, the request of NFS explosion command is sent to agency service end by NFS protocol by client, so that generation It manages server-side to request according to the analysis mode parsing NFS explosion command of object format to obtain agent request information, and according to generation It manages solicited message and carries out agent capability assessment, if processing file is supported according to the result that agent capability is assessed in agency service end, Agency service end agent client handles file.As it can be seen that directly file is handled by agency service end agent client, without visitor Family end reduces network bandwidth consumption to mitigate the workload of client by multiple flow processing file, effectively improves File activity.
In some possible implementations, the request of NFS explosion command is sent to agency's clothes by NFS protocol by client Be engaged in end after, client receive agency service end transmission agent capability assessment as a result, if the client is according to agency The result of capability evaluation determines that processing file is not supported at agency service end, and client handles the file according to normal process, with Exempt from the waiting time of delay processing file, wherein the normal process is process flow in the prior art.
In some possible implementations, client receives the result of the agent capability assessment of agency service end transmission Later, client Receiving Agent server-side send processing file as a result, to know handle file the case where, if not holding It goes successfully, then can re-execute, or handle this document according to normal process.
In some possible implementations, which includes: the NFS command word of file, file content, text At least one of part catalogue, the network protocol IP address at destination service end and port numbers.Wherein, which is pair The corresponding command word of the processing mode of file to be processed, the destination service end be to handle the corresponding server-side of file, such as: generation Server-side agent client is managed by some file copy on agency service end to destination service end, the IP at the destination service end Location and port are used for agency service end and build on the communication connection between destination service end, to realize file-sharing.
Third aspect present invention provides a kind of agency service end, which is configured to realize that above-mentioned first aspect mentions The function of the method for confession.The function can also execute corresponding software realization, the hardware by hardware realization by hardware Or software includes one or more modules corresponding with above-mentioned function.
Fourth aspect present invention provides a kind of client, which is configured to realize the method that above-mentioned second aspect provides Function.The function can also execute corresponding software realization, the hardware or software package by hardware realization by hardware Include one or more modules corresponding with above-mentioned function.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is that one of NFS in the prior art applies networking diagram;
Fig. 2 is an application scenario diagram of middle NFS in the prior art;
Fig. 3 is an application scenario diagram of NFS in the embodiment of the present invention;
Fig. 4 is a structural schematic diagram at agency service end in the embodiment of the present invention;
Fig. 5 is a structural schematic diagram of client in the embodiment of the present invention;
Fig. 6 is one embodiment schematic diagram of document handling method in the embodiment of the present invention;
Fig. 7 is another structural schematic diagram at agency service end in the embodiment of the present invention;
Fig. 8 is another structural schematic diagram of client in the embodiment of the present invention.
Specific embodiment
It is existing for solving the purpose of the present invention is to provide a kind of document handling method, agency service end and client The problem of existing network bandwidth consumption is big when NFS file process, copies low efficiency, passes through agency service end agent client File is handled, network bandwidth consumption is reduced, effectively improves file activity.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Term " includes " and " having " and their any deformation of the invention, it is intended that cover non-exclusive packet Contain, for example, what the process, method, system, product or equipment for containing a series of steps or units were not necessarily limited to be clearly listed Those step or units, but may include be not clearly listed or it is intrinsic for these process, methods, product or equipment Other step or units.
Before introducing the embodiment of the present invention, NFS involved in the embodiment of the present invention is first introduced, NFS is to be based on The application of ICP/IP protocol mainly uses remote procedure call (full name in English: remote procedure call Protocol, abbreviation: RPC) mechanism, RPC provides one group of access unrelated with machine, operating system and low layer transportation protocol The operation of telefile, RPC use the support of XDR.XDR is a kind of agreement of machine-independent data description coding, with The data transmitted on the net are coded and decoded independently of the format of any machine architecture, are supported between heterogeneous system The transmission of data.
The system of NFS includes at least server-side and client, and NFS can make the file in client access server-side just as this Ground access is the same.Such as: the server-side is a nfs server, which is several client computer, and client computer passes through TCP/ IP network remotely accesses the data being stored on nfs server.Before nfs server formally enables, need according to actual environment And demand, configure some NFS parameters.
Referring to Fig. 3, NFS client is sent out to NFS server-side A for an application scenario diagram of NFS in the embodiment of the present invention Send proxy requests, wherein the proxy requests include allow NFS server-side A act on behalf of file and file processing mode, and The agent capability of itself is assessed after NFS server-side A receives the proxy requests in IP address, the port at destination service end etc., if It determines and supports agency, then NFS server-side A acts on behalf of NFS client and executes file process to NFS server-side B, however, it is determined that does not support generation Reason, then NFS server-side A sends the assessment result do not supported to NFS client so that NFS client according to normal process at Manage file.
Referring to Fig. 4, the specific structure at agency service end of the present invention is introduced, which can be seen Work is the server in NFS system, which includes: the portions such as transceiver 110, memory 120, processor 130 Part.It will be understood by those skilled in the art that the structure at the agency service end 100 shown in Fig. 4 is not constituted to agency service The restriction at end may include component more more or fewer than Fig. 4, perhaps combine certain components or different component layouts.
Transceiver 110 can be used for receiving and sending messages, such as: signal sends and receivees.Transceiver 110 passes through wireless or has Line is communicated with other equipment such as terminals, and any communication standard or agreement can be used in wireless communication, and including but not limited to the whole world is moved Dynamic communication system (full name in English: Global System of Mobile communication, abbreviation: GSM), general packet Wireless service (full name in English: General Packet Radio Service, abbreviation: GPRS), CDMA (full name in English: Code Division Multiple Access, abbreviation: CDMA), wideband code division multiple access (full name in English: Wideband Code Division Multiple Access, abbreviation: WCDMA), long term evolution (full name in English: Long Term Evolution, contracting Write: LTE), Email, short message service (full name in English: Short Messaging Service, abbreviation: SMS) etc..
Memory 120 can be used for storing software program and module, and processor 130 is stored in memory 120 by operation Software program and module, thereby executing the various function application and data processing at the agency service end 100.
Wherein, transceiver 110 is for executing following steps:
Receive requesting the NFS explosion command of file for client transmission, wherein the NFS explosion command request is The client is generated according to agent request information according to object format, and the object format is the client and the generation Manage the format of the preparatory agreement of server-side;
Processor 130 is for executing following steps:
The NFS explosion command request is parsed according to the analysis mode of the object format to obtain the proxy requests letter Breath carries out agent capability assessment according to the agent request information;If the knot that the agency service end is assessed according to agent capability Fruit supports the processing file, then acts on behalf of file described in the client process.
In some possible implementations, the agent request information includes: the NFS command word of the file, file At least one of content, file directory, the network protocol IP address at destination service end and port numbers.
In some possible implementations, processor 130 carries out agent capability assessment according to the agent request information Including at least one of the following contents:
Detect whether the agency service end opens agent functionality;
Whether the agency service end is detected according to the IP address at the destination service end for including in the proxy requests It can be realized the routing at the destination service end;
Detect whether the agency service end can be connected to the destination service end by NFS protocol.
In some possible implementations, transceiver 110 be also used to processor 130 according to the agent request information into After the assessment of row agent capability, the result that agent capability is assessed is sent to the client, so that if the agency service It holds and does not support to handle the file, the client handles the file according to normal process.
In some possible implementations, transceiver 110 is also used to processor 130 and acts on behalf of described in the client process Before file, sent according to the IP address at the destination service end for including in the proxy requests to the destination service end The request of NFS carry receives the NFS carry confirmation message that the destination service end is sent;
The processor 130 is also used to be created between the destination service end according to the NFS carry confirmation message NFS connection.
In some possible implementations, the transceiver 110 is also used to processor 130 and acts on behalf of the client process After the file, the result for handling the file is sent to the client.
Client of the present invention is described below, as shown in figure 5, for ease of description, illustrating only and present invention reality The relevant part of example is applied, it is disclosed by specific technical details, please refer to present invention method part.The client can be Including computer, mobile phone, tablet computer, personal digital assistant (full name in English: Personal Digital Assistant, contracting Write: PDA), any terminal device such as vehicle-mounted computer, take the mobile phone as an example:
Fig. 5 shows the block diagram of the part-structure of mobile phone relevant to client provided in an embodiment of the present invention.With reference to Fig. 5, mobile phone include: radio frequency (full name in English: Radio Frequency, abbreviation: RF) circuit 210, memory 220, input unit 230, the components such as processor 240.It will be understood by those skilled in the art that handset structure shown in Fig. 5 is not constituted to mobile phone Restriction, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Fig. 5 to mobile phone:
RF circuit 210 can be used for receiving and sending messages or communication process in, sending and receiving for signal is considered as transceiver, In general, RF circuit 210 includes but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (English Literary full name: Low Noise Amplifier, abbreviation: LNA), duplexer etc..In addition, RF circuit 210 can also pass through channel radio Letter is communicated with network and other equipment.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to entirely Ball mobile communcations system (full name in English: Global System of Mobile communication, abbreviation: GSM), it is general Grouping wireless service (full name in English: General Packet Radio Service, abbreviation: GPRS), (English is complete for CDMA Claim: Code Division Multiple Access, abbreviation: CDMA), wideband code division multiple access (full name in English: Wideband Code Division Multiple Access, abbreviation: WCDMA), long term evolution (full name in English: Long Term Evolution, abbreviation: LTE), Email, short message service (full name in English: Short Messaging Service, contracting Write: SMS) etc..
Memory 220 can be used for storing software program and module, and processor 240 is stored in memory 220 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 220 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for mobile phone Data (such as audio data, phone directory etc.) etc..It, can be in addition, memory 220 may include high-speed random access memory Including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Input unit 230 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 230 may include that touch panel 231 and other inputs are set Standby 232.Touch panel 231, also referred to as touch screen, collect user on it or nearby touch operation (such as user use The operation of any suitable object or attachment such as finger, stylus on touch panel 231 or near touch panel 231), and root Corresponding attachment device is driven according to preset formula.Optionally, touch panel 231 may include touch detecting apparatus and touch Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinate, then gives processor 240, and can receive order that processor 240 is sent and be executed.Furthermore, it is possible to using electricity The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 231.In addition to touch panel 231, input Unit 230 can also include other input equipments 232.Specifically, other input equipments 232 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Processor 240 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 220, and call and be stored in memory 220 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 240 can wrap Include one or more processing units;Preferably, processor 240 can integrate application processor and modem processor, wherein answer With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 240.
Although being not shown, mobile phone can also include voicefrequency circuit, sensor, display unit, camera, bluetooth module etc., Details are not described herein.
In embodiments of the present invention, it if processor 240 detects that the object run to file instructs for client, obtains The agent request information of the file generates the request of NFS explosion command according to object format according to the agent request information, In, the object format is the format of the preparatory agreement of the client and agency service end;
RF circuit 210 is used to that NFS explosion command request to be sent to the agency service end by NFS protocol, with So that the agency service end is described to obtain according to the analysis mode parsing NFS explosion command request of the object format Agent request information, and agent capability assessment is carried out according to the agent request information, if the agency service end is according to agency The result of capability evaluation supports the processing file, then file described in the client process is acted on behalf of at the agency service end.
In some possible implementations, RF circuit 210 is also used to ask the NFS explosion command by NFS protocol It asks and is sent to after the agency service end, receive the result for the agent capability assessment that the agency service end is sent;
If processor 240, which is also used to the client, determines the agency service according to the result that the agent capability is assessed End is not supported to handle the file, according to the normal process processing file.
In some possible implementations, RF circuit 210 is also used to receive the agency that the agency service end is sent After the result of capability evaluation, the result for the processing file that the agency service end is sent is received.
Referring to Fig. 6, for one embodiment schematic diagram of document handling method in the embodiment of the present invention, the tool of the embodiment Body process is as follows:
If step 601, client detect that the object run to file instructs, the agency that client obtains the file is asked Seek information.
In the embodiment of the present invention, client detect user to some operational orders of file, such as: by certain file from clothes Business end A is copied to server-side B, if it find that pending copy function is on the share directory of two different nfs servers, Determine the operational order then as object run instruction, in practical applications, object run instruction further includes deleting file, modification The instructions such as file, mobile file, are not specifically limited herein.
Unlike the prior art, after client detects the instruction of the object run to file, this article is obtained in time The agent request information of part, with the processing of request agency server-side agents document, wherein the agent request information includes: described The NFS command word of file, file content, file directory, in the network protocol IP address and port numbers at destination service end extremely It is one few.
Step 602, client generate the request of NFS explosion command according to object format according to the agent request information.
In the embodiment of the present invention, the object format is the format of the preparatory agreement of the client and agency service end, visitor Family end generates the request of NFS explosion command according to object format according to agent request information, and in practical applications, which is The communication codes format such as json, xdr, xml, is not specifically limited herein.
NFS explosion command request is sent to the agency service end by NFS protocol by step 603, client.
In the embodiment of the present invention, the request of NFS explosion command is sent to by agency service end by NFS protocol, wherein NFS Agreement is to operate in the agreement of application layer, and both can be used for local area network can be used for wide area network, and with operating system and hardware It is unrelated, it can be run on different computers or system, therefore, user does not need to have on each machine in a network Home catalogue, Home catalogue can be placed on nfs server and can be accessed on network use, common data are stored It can be accessed on NFS server-side (nfs server) and by network, then local client will reduce itself memory space It uses.
Step 604, agency service end according to the analysis mode of the object format parse NFS explosion command request with Obtain the agent request information.
In the embodiment of the present invention, since object format is the format of the preparatory agreement of client and agency service end, work as agency After server-side receives the NFS explosion command request of client transmission, the NFS is parsed according to the analysis mode of the object format Explosion command request, to obtain the agent request information for including in NFS explosion command request.
Step 605, agency service end carry out agent capability assessment according to the agent request information.
In the embodiment of the present invention, it includes many kinds which, which carries out agent capability assessment according to agent request information, Mode may include at least one of the following contents during specific implementation:
The agency service end detects whether the agency service end opens agent functionality, if opening agent functionality, table Show that generation processing file is supported at agency service end, if it is not, not supporting then.
The agency service end is according to the detection of the IP address at the destination service end for including in the proxy requests Whether agency service end can be realized the routing at the destination service end, i.e., between detection agency service end and destination service end Routing it is whether unobstructed, if so, indicate agency service end support generation processing file, if it is not, not supporting then.
The agency service end detects whether the agency service end can be connected to the destination service by NFS protocol End then needs agency service end to assist by NFS since agency service end needs to realize the file-sharing between destination service end View is connected to destination service end, if can connect, then it represents that and generation processing file is supported at agency service end, if can not connect, It does not support.
If step 606, agency service end are supported to handle the file, agency service according to the result that agent capability is assessed Act on behalf of file described in the client process in end.
In some possible implementations, before file described in the client process is acted on behalf of at the agency service end, The agency service end is according to the IP address at the destination service end for including in the proxy requests to the destination service end Send the request of NFS carry;The agency service termination receives the NFS carry confirmation message that the destination service end is sent;It is described Agency service end creates the NFS connection between the destination service end according to the NFS carry confirmation message.
As it can be seen that agency service end is sent out according to the IP address at the destination service end for including in proxy requests to the destination service end NFS carry is sent to request, agency service termination receives the NFS carry confirmation message of destination service end transmission, and according to the NFS carry NFS connection between confirmation message creation and destination service end then carries out the shared of file after realizing NFS connection, thus real The access modes such as deletion, copy, the modification of existing file.
The result for handling the file is sent to the client by step 607, agency service end.
In the embodiment of the present invention, the result for handling file is sent to client by agency service end, and client is allowed to know place The case where managing file, if being not carried out success, can re-execute, or handle this document according to normal process, wherein should Normal process is processing mode in the prior art.
In some possible implementations, agency's energy is carried out according to the agent request information at the agency service end After force estimation, the result that agent capability is assessed is sent to the client by the agency service end, so that if the generation It manages server-side not support to handle the file, the client handles the file according to normal process.
As it can be seen that agency service end will after agency service end carries out agent capability assessment according to the agent request information The result of agent capability assessment is sent to client, in this way, client can if processing this document is not supported at agency service end To handle this document according to normal process, so that the time of delay processing file is avoided, if the agency service end supports processing should File, then client can know the mode of processing file, and wait the result of file to be processed.
For the above-mentioned correlation technique convenient for the better implementation embodiment of the present invention, it is also provided below for cooperating the above method Relevant device.
Referring to Fig. 7, for a structural schematic diagram at agency service end in the embodiment of the present invention, the agency service end 700 For the server-side in Network File System NFS, which includes: receiving module 701, obtains module 702, assessment Module 703, processing module 704.In some possible implementations, the agency service end 700 further include: sending module 705, Creation module 706.
Receiving module 701, the NFS explosion command to file for receiving client transmission are requested, wherein described The request of NFS explosion command is that the client is generated according to agent request information according to object format, and the object format is The format of the client and the preparatory agreement in agency service end;
In some possible implementations, the agent request information includes: the NFS command word of the file, file At least one of content, file directory, the network protocol IP address at destination service end and port numbers.
Module 702 is obtained, the NFS explosion command is parsed for the analysis mode according to the object format and requests to obtain Take the agent request information;
Evaluation module 703, for carrying out agent capability assessment according to the agent request information;
In some possible implementations, the evaluation module is specifically used for executing at least one of the following contents:
Detect whether the agency service end opens agent functionality;
Whether the agency service end is detected according to the IP address at the destination service end for including in the proxy requests It can be realized the routing at the destination service end;
Detect whether the agency service end can be connected to the destination service end by NFS protocol.
In some possible implementations, the agency service end 700 further include:
Sending module 705 carries out agent capability according to the agent request information for the evaluation module 703 and assesses it Afterwards, the result that agent capability is assessed is sent to the client, so that if the agency service end is not supported described in processing File, the client handle the file according to normal process.
Processing module 704, if supporting to handle the text according to the result that agent capability is assessed for the agency service end Part, then file described in the acted on behalf of client process.
In some possible implementations, the agency service end 700 further include:
The sending module 705 is also used to before file described in the processing module agency client process, according to The IP address at the destination service end for including in the proxy requests sends the request of NFS carry to the destination service end;
The receiving module 701 is also used to receive the NFS carry confirmation message that the destination service end is sent;
Creation module 706, for according to the NFS between NFS carry confirmation message creation and the destination service end Connection.
In some possible implementations,
The sending module 705 is also used to after the processing module 704 acts on behalf of file described in the client process, The result for handling the file is sent to the client.
Referring to Fig. 8, the client 800 is network text for a structural schematic diagram of client in the embodiment of the present invention Client in part system NFS, the client 800 include: to obtain module 801, generation module 802, sending module 803, one In a little possible implementations, the client 800 further includes receiving module 804, processing module 805.
Module 801 is obtained, if detecting that the object run to file instructs for client, described in the client acquisition The agent request information of file;
In some possible implementations, the agent request information includes: the NFS command word of the file, file At least one of content, file directory, the network protocol IP address at destination service end and port numbers.
Generation module 802, for generating the request of NFS explosion command according to object format according to the agent request information, Wherein, the object format is the format of the preparatory agreement of the client and agency service end;
Sending module 803, for NFS explosion command request to be sent to the agency service end by NFS protocol, It requests so that the agency service end parses the NFS explosion command according to the analysis mode of the object format to obtain Agent request information is stated, and agent capability assessment is carried out according to the agent request information, if the agency service end is according to generation The result for managing capability evaluation supports the processing file, then file described in the client process is acted on behalf of at the agency service end.
In some possible implementations, the client 800 further include:
NFS explosion command request is sent to for the sending module 803 by NFS protocol by receiving module 804 After the agency service end, the result for the agent capability assessment that the agency service end is sent is received;
Processing module 805, if the client determines the agency service end according to the result that the agent capability is assessed It does not support to handle the file, handles the file according to normal process.
In some possible implementations,
The receiving module 804, be also used to receive the agent capability assessment that the agency service end is sent result it Afterwards, the result for the processing file that the agency service end is sent is received.
As it can be seen that directly handling file by agency service end agent client, pass through multiple flow processing without client File reduces network bandwidth consumption to mitigate the workload of client, effectively increases file activity.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server-side or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (22)

1. a kind of document handling method, which is characterized in that the method is applied to Network File System NFS, which comprises
The NFS explosion command to file that agency service termination receives client transmission is requested, wherein the NFS explosion command Request, which is the client, to be generated according to agent request information according to object format, the object format be the client and The format of the preparatory agreement in agency service end;
The agency service end is described to obtain according to the analysis mode parsing NFS explosion command request of the object format Agent request information;
The agency service end carries out agent capability assessment according to the agent request information;
If the agency service end is supported to handle the file, agency service end generation according to the result that agent capability is assessed Manage file described in the client process.
2. the method according to claim 1, wherein the agent request information includes: the NFS life of the file Enable at least one of word, file content, file directory, the network protocol IP address at destination service end and port numbers.
3. according to the method described in claim 2, it is characterized in that, the agency service end according to the agent request information into The assessment of row agent capability includes at least one of the following contents:
The agency service end detects whether the agency service end opens agent functionality;
The agency service end agency is detected according to the IP address at the destination service end for including in the proxy requests Whether server-side can be realized the routing at the destination service end;
The agency service end detects whether the agency service end can be connected to the destination service end by NFS protocol.
4. according to the method described in claim 3, it is characterized in that, the agency service end according to the agent request information into After the assessment of row agent capability, the method also includes:
The result that agent capability is assessed is sent to the client by the agency service end, so that if the agency service end It does not support to handle the file, the client is by the file copy on the agency service end to the client, then by institute File copy is stated to the destination service end.
5. according to the method described in claim 4, it is characterized in that, the agency service end is acted on behalf of described in the client process Before file, the method also includes:
The agency service end takes according to the IP address at the destination service end for including in the proxy requests to the target Business end sends the request of NFS carry;
The agency service termination receives the NFS carry confirmation message that the destination service end is sent;
The agency service end creates the NFS connection between the destination service end according to the NFS carry confirmation message.
6. method according to claim 4 or 5, which is characterized in that act on behalf of the client process in the agency service end After the file, the method also includes:
The result for handling the file is sent to the client by the agency service end.
7. a kind of document handling method, which is characterized in that the method is applied to Network File System NFS, which comprises
If client detects that the object run to file instructs, the client obtains the agent request information of the file;
The client generates the request of NFS explosion command according to object format according to the agent request information, wherein the mesh Style formula is the format of the preparatory agreement of the client and agency service end;
NFS explosion command request is sent to the agency service end by NFS protocol by the client, so that described Agency service end parses the NFS explosion command according to the analysis mode of the object format and requests to obtain the proxy requests Information, and agent capability assessment is carried out according to the agent request information, if the agency service end is assessed according to agent capability Result support to handle the file, then file described in the client process is acted on behalf of at the agency service end.
8. being ordered the method according to the description of claim 7 is characterized in that the client is extended the NFS by NFS protocol Request is enabled to be sent to after the agency service end, the method also includes:
The client receives the result for the agent capability assessment that the agency service end is sent;
If the client determines that the agency service end is not supported to handle the text according to the result that the agent capability is assessed Part, the client is by the file copy on the agency service end to the client, then by the file copy to target Server-side.
9. according to the method described in claim 8, it is characterized in that, the client receives what the agency service end was sent After the result of agent capability assessment, the method also includes:
The client receives the result for the processing file that the agency service end is sent.
10. method according to any one of claims 7 to 9, which is characterized in that the agent request information includes: described The NFS command word of file, file content, file directory, in the network protocol IP address and port numbers at destination service end extremely It is one few.
11. a kind of agency service end, which is characterized in that the agency service end is the server-side in Network File System NFS, institute Stating agency service end includes:
Receiving module, the NFS explosion command to file for receiving client transmission are requested, wherein the NFS extension life Enabling request is that the client is generated according to agent request information according to object format, and the object format is the client With the format of the preparatory agreement in agency service end;
Module is obtained, it is described to obtain to parse the NFS explosion command request for the analysis mode according to the object format Agent request information;
Evaluation module, for carrying out agent capability assessment according to the agent request information;
Processing module, if supporting to handle the file, institute according to the result that agent capability is assessed for the agency service end Act on behalf of file described in the client process.
12. agency service end according to claim 11, which is characterized in that the agent request information includes: the text The NFS command word of part, file content, file directory, in the network protocol IP address and port numbers at destination service end at least One.
13. agency service end according to claim 12, which is characterized in that the evaluation module is specifically used for executing following At least one of content:
Detect whether the agency service end opens agent functionality;
The agency service end is detected according to the IP address at the destination service end for including in the proxy requests whether can Realize the routing at the destination service end;
Detect whether the agency service end can be connected to the destination service end by NFS protocol.
14. agency service end according to claim 13, which is characterized in that the agency service end further include:
Sending module will be acted on behalf of after carrying out agent capability assessment according to the agent request information for the evaluation module The result of capability evaluation is sent to the client, so that if the agency service end is not supported to handle the file, it is described Client is by the file copy on the agency service end to the client, then by the file copy to the destination service End.
15. agency service end according to claim 14, which is characterized in that the agency service end further include:
The sending module was also used to before file described in the processing module agency client process, according to the generation The IP address at the destination service end for including in reason request sends the request of NFS carry to the destination service end;
The receiving module is also used to receive the NFS carry confirmation message that the destination service end is sent;
Creation module, for according to the NFS connection between NFS carry confirmation message creation and the destination service end.
16. agency service end according to claim 14 or 15, which is characterized in that
The sending module is also used to after file described in the processing module agency client process, will be described in processing The result of file is sent to the client.
17. a kind of client, which is characterized in that the client is the client in Network File System NFS, the client Include:
Module is obtained, if detecting that the object run to file instructs for client, the client obtains the file Agent request information;
Generation module, for generating the request of NFS explosion command according to object format according to the agent request information, wherein institute State the format that object format is the preparatory agreement of the client and agency service end;
Sending module, for NFS explosion command request to be sent to the agency service end by NFS protocol, so that The agency service end parses the NFS explosion command according to the analysis mode of the object format and requests to obtain the agency Solicited message, and agent capability assessment is carried out according to the agent request information, if the agency service end is according to agent capability The result of assessment supports the processing file, then file described in the client process is acted on behalf of at the agency service end.
18. client according to claim 17, which is characterized in that the client further include:
NFS explosion command request is sent to the agency by NFS protocol for the sending module and taken by receiving module It is engaged in after end, receives the result for the agent capability assessment that the agency service end is sent;
Processing module, if the client determines that the agency service end is not supported to locate according to the result that the agent capability is assessed The file is managed, is taken by the file copy on the agency service end to the client, then by the file copy to target Business end.
19. client according to claim 18, which is characterized in that
The receiving module receives after being also used to receive the result that the agent capability that the agency service end is sent is assessed The result for the processing file that the agency service end is sent.
20. 7 to 19 described in any item clients according to claim 1, which is characterized in that the agent request information includes: The NFS command word of the file, file content, file directory, in the network protocol IP address and port numbers at destination service end At least one.
21. a kind of agency service end characterized by comprising
Transceiver, memory and processor, wherein communicated between the transceiver, the memory and the processor Connection;
Wherein, one or more programs are stored in the memory, one or more of programs include instruction, and described instruction is worked as The agency service end is set to execute such as method as claimed in any one of claims 1 to 6 when being executed by the agency service end.
22. a kind of client characterized by comprising
Transceiver, memory and processor, wherein communicated between the transceiver, the memory and the processor Connection;
Wherein, one or more programs are stored in the memory, one or more of programs include instruction, and described instruction is worked as Make the client executing such as claim 7 to 10 described in any item methods when by the client executing.
CN201610957771.9A 2016-10-27 2016-10-27 A kind of document handling method, agency service end and client Active CN106357814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610957771.9A CN106357814B (en) 2016-10-27 2016-10-27 A kind of document handling method, agency service end and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610957771.9A CN106357814B (en) 2016-10-27 2016-10-27 A kind of document handling method, agency service end and client

Publications (2)

Publication Number Publication Date
CN106357814A CN106357814A (en) 2017-01-25
CN106357814B true CN106357814B (en) 2019-08-20

Family

ID=57865143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610957771.9A Active CN106357814B (en) 2016-10-27 2016-10-27 A kind of document handling method, agency service end and client

Country Status (1)

Country Link
CN (1) CN106357814B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107769996B (en) * 2017-10-24 2021-02-09 新华三云计算技术有限公司 Method and device for detecting working state of server
CN110086836B (en) * 2018-01-25 2020-12-15 华为技术有限公司 Method and device for acquiring metadata
CN112751870B (en) * 2020-12-30 2022-11-11 湖南麒麟信安科技股份有限公司 NFS (network file system) safety transmission device and method based on proxy forwarding
CN113672403B (en) * 2021-07-30 2024-03-29 北京数码大方科技股份有限公司 Interface calling method and device in information system and management information system
CN116450058B (en) * 2023-06-19 2023-09-19 浪潮电子信息产业股份有限公司 Data transfer method, device, heterogeneous platform, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101378411A (en) * 2008-09-28 2009-03-04 深圳华为通信技术有限公司 Mobile terminal, server and data access method
CN101459669A (en) * 2008-12-29 2009-06-17 成都市华为赛门铁克科技有限公司 Access method and apparatus for network file system
CN101699825A (en) * 2009-10-28 2010-04-28 成都市华为赛门铁克科技有限公司 Network file system access method, device and system
CN101841425A (en) * 2009-12-25 2010-09-22 创新科存储技术有限公司 Network backup method, device and system without proxy
CN103997528A (en) * 2014-05-26 2014-08-20 航天科工深圳(集团)有限公司 Distribution network automation terminal and achieving method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101378411A (en) * 2008-09-28 2009-03-04 深圳华为通信技术有限公司 Mobile terminal, server and data access method
CN101459669A (en) * 2008-12-29 2009-06-17 成都市华为赛门铁克科技有限公司 Access method and apparatus for network file system
CN101699825A (en) * 2009-10-28 2010-04-28 成都市华为赛门铁克科技有限公司 Network file system access method, device and system
CN101841425A (en) * 2009-12-25 2010-09-22 创新科存储技术有限公司 Network backup method, device and system without proxy
CN103997528A (en) * 2014-05-26 2014-08-20 航天科工深圳(集团)有限公司 Distribution network automation terminal and achieving method thereof

Also Published As

Publication number Publication date
CN106357814A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN106357814B (en) A kind of document handling method, agency service end and client
AU2002359483B2 (en) Servicing requests that are issued in a protocol other than the protocol expected by the service
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
CN107040609A (en) A kind of network request treating method and apparatus
CN111064713B (en) Node control method and related device in distributed system
JP2020532784A (en) Information transmission method and device
CN109815057A (en) A kind of data back up method and mobile terminal
CN104123686A (en) Method, equipment and system for handling business
CN104852919A (en) Method and apparatus for realizing portal authentication
US20170289243A1 (en) Domain name resolution method and electronic device
JP2013504806A (en) Method, apparatus and system for file transfer based on file directory
CN107645551A (en) Document transmission method and device
CN104679239B (en) A kind of terminal input method
CN109088844A (en) Information intercepting method, terminal, server and system
CN109388425B (en) Interface switching method, system, device and storage medium for front-end engineering
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN109561165A (en) Domain name system configuration method and relevant apparatus
CN107479985B (en) Remote procedure call method and device and computer equipment
US20140157290A1 (en) Method, system, and device for switching between network applications, and computer storage medium
CN106790915B (en) Number Reorganization control method, device and corresponding server and mobile terminal
CN109889468A (en) Transmission method, system, device, equipment and the storage medium of network data
CN104601448A (en) Method and device for handling virtual card
CN106970859B (en) Method and device for backing up and recovering offline mail
CN110633443B (en) Method, device, equipment and medium for intra-page data communication
CN110138887B (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant