CN102801768A - Data processing method and system and network device - Google Patents

Data processing method and system and network device Download PDF

Info

Publication number
CN102801768A
CN102801768A CN2012100188793A CN201210018879A CN102801768A CN 102801768 A CN102801768 A CN 102801768A CN 2012100188793 A CN2012100188793 A CN 2012100188793A CN 201210018879 A CN201210018879 A CN 201210018879A CN 102801768 A CN102801768 A CN 102801768A
Authority
CN
China
Prior art keywords
file system
network equipment
data
action type
type based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012100188793A
Other languages
Chinese (zh)
Inventor
唐创奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2012100188793A priority Critical patent/CN102801768A/en
Publication of CN102801768A publication Critical patent/CN102801768A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a data processing method and system and a network device. In the embodiment of the invention, the operation type based on a file system is determined through the network device, thus, the network device can perform operations corresponding to the operation type based on the file system, to the corresponding data in the storage server according to the determined operation type based on the file system; the network device can realize read operation or write operation based on the file system to the data through the storage server without creating the file system and the storage space for storing the data of the file system, so that the hardware cost and the development and maintenance cost of the network device can be reduced.

Description

Data processing method and system, the network equipment
Technical field
The present invention relates to file system technology, relate in particular to a kind of data processing method and system, the network equipment.
Background technology
The network equipment is for example: equipment such as home gateway, router or switch; Generally need to support storage medium and file system; Be that the network equipment wants to create file system and the memory space that is used for the data of memory file system, can carry out read operation or write operation data based on file system.In order to satisfy the client to multiple storage medium; For example: flash memory (Flash), USB flash disk, portable hard drive etc., and file system, for example: file allocation table (File Allocation Table; Abbreviation FAT) 32 file system, third generation extension file system (Third extended file system; Be called for short Ext3), the demand that waits of unix filesystem (UNIX File System is called for short UFS), network equipment needs can be supported multiple storage medium and multiple file system.
Yet the network equipment causes the hardware cost of the network equipment and development and maintenance cost to increase in order to support multiple storage medium and multiple file system.
Summary of the invention
The present invention provides a kind of data processing method and system, the network equipment, in order to reduce the hardware cost and the development and maintenance cost of the network equipment.
On the one hand a kind of data processing method is provided, has comprised:
The network equipment is confirmed the action type based on file system, and said action type based on file system comprises write operation or read operation;
The said network equipment is operated data corresponding in the storage server according to said action type based on file system.
A kind of network equipment is provided on the other hand, has comprised:
Confirm the unit, be used for confirming action type that said action type based on file system comprises write operation or read operation based on file system;
Operating unit is used for the said action type based on file system definite according to said definite unit, and data corresponding in the storage server are operated.
A kind of data handling system is provided on the other hand, has comprised the storage server and the aforesaid network equipment; Said storage server is used to create file system, and stores said data based on said file system.
Can know by technique scheme; The embodiment of the invention is confirmed the action type based on file system through the network equipment; Make that the network equipment can be according to the above-mentioned action type of confirming based on file system; Data corresponding in the storage server are carried out above-mentioned based on the corresponding operation of the action type of file system; Because the network equipment need not created file system and just can realize through storage server data being carried out read operation or write operation based on file system with the memory space that is used for the data of memory file system, so can reduce the hardware cost and the development and maintenance cost of the network equipment.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the data processing method that Fig. 1 provides for the embodiment of the invention;
The structural representation of the network equipment that Fig. 2 provides for the embodiment of the invention;
The structural representation of the network equipment that Fig. 3 provides for the embodiment of the invention;
The structural representation of the network equipment that Fig. 4 provides for the embodiment of the invention;
The structural representation of the data handling system that Fig. 5 provides for the embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Need to prove: the storage server in the present embodiment can be the on-site data center of the network equipment, perhaps can also be the cloud storage server of network side, and the embodiment of the invention does not limit this.
The schematic flow sheet of the data processing method that Fig. 1 provides for the embodiment of the invention, as shown in Figure 1, the data processing method of present embodiment can comprise:
101, the network equipment is confirmed the action type based on file system, and above-mentioned action type based on file system comprises write operation or read operation;
Alternatively, before 101, the above-mentioned network equipment can utilize boot and host-host protocol, obtains startup file from above-mentioned storage server, and utilizes above-mentioned startup file, carries out initialization operation.For example: the network equipment can utilize boot and FTP (File Transfer Protocol; Abbreviation FTP), TFTP (Trivial File Transfer Protocol is called for short TFTP) or HTTP (HyperText Transfer Protocol is called for short HTTP); Obtain startup file from above-mentioned storage server; Be loaded in the internal memory of the network equipment, and directly from internal memory, move above-mentioned startup file, carry out initialization operation.
It is understandable that: in the upgrading of the network equipment is disposed; Only need the startup file in the storage server be upgraded getting final product, like this, after the network equipment is restarted; Can utilize boot and host-host protocol; Obtain the startup file after upgrading from above-mentioned storage server, and utilize the startup file after the above-mentioned renewal, carry out initialization operation.Accomplish in storage server owing to upgrade operation, thus the upgrading of a plurality of network equipments can be accomplished in batches, thus effectively improved the deployment efficient of upgrading network equipment.
102, the above-mentioned network equipment is operated data corresponding in the storage server according to above-mentioned action type based on file system.
In an application scenarios of the embodiment of the invention; The above-mentioned network equipment can be according to above-mentioned action type based on file system; And utilize Network File System protocol that data corresponding in the above-mentioned storage server are mounted to the above-mentioned network equipment, and the above-mentioned data of carry are operated.In this execution mode, realized in above-mentioned storage server, data being operated.For example: the network equipment can be according to above-mentioned action type based on file system; And utilize NFS (Network File System; Be called for short NFS) agreement or universal network file system (Common Internet File System; Be called for short CIFS) agreement etc., in storage server, data corresponding in the above-mentioned storage server are carried out above-mentioned based on the corresponding operation of the action type of file system.
In the Another application scene of the embodiment of the invention, the above-mentioned network equipment can also be according to above-mentioned action type based on file system, and utilizes the metadata that is kept at local above-mentioned data, and above-mentioned data are operated.For example: a meta data server can be set in the network equipment; This meta data server is used for making up based on object storage (Object-based Storage; Abbreviation OBS) metadata, the i.e. growth data of file system directories structure, file permission and the file of this meta data server place network equipment.When network equipment operating data; After the network equipment is confirmed the action type based on file system; Accesses meta-data server at first; Obtain the metadata of data, directly communicate with storage server then, the data that read in the memory space of storage server perhaps write data in the memory space of storage server.
In the Another application scene of the embodiment of the invention; The above-mentioned network equipment can also be according to above-mentioned action type based on file system; With the memory space of above-mentioned data (is the relevant information of memory space; Comprise the structure of memory space and the data in the memory space) be mapped in the above-mentioned network equipment, and the data that are mapped to the above-mentioned memory space in the above-mentioned network equipment are operated, and the operating result of aforesaid operations is synchronized to above-mentioned memory space.In this execution mode, realized in the above-mentioned network equipment, data being operated, the network equipment just can be operated data in this locality like this.In this scene, owing to the network equipment is operated data in this locality, so can further improve operating efficiency.
In order to solve at synchronous above-mentioned network appliance power-down before; Cause above-mentioned network equipment data not to be synchronized to the problem of storage server; The network equipment can adopt nonvolatile random access memory (Non-Volatile Random Access Memory; Abbreviation NVRAM) operating result of buffer memory network equipment aforesaid operations; Even above-mentioned network appliance power-down before being synchronized to storage server waits device start can also the operating result of aforesaid operations be synchronized to above-mentioned memory space afterwards like this.
It is understandable that: it is too big that above-mentioned synchronous synchronization granularity is selected, if network appliance power-down can cause losing of the preceding operating result of power down so; It is too little that above-mentioned synchronous synchronization granularity is selected, and can cause frequently carrying out synchronously, thereby take more Internet resources.Therefore, can select suitable synchronization granularity through test of many times.
In the present embodiment; Confirm action type through the network equipment based on file system; Make that the network equipment can be according to the above-mentioned action type of confirming based on file system; Data corresponding in the storage server are carried out above-mentioned based on the corresponding operation of the action type of file system; Because the network equipment need not created file system and just can realize through storage server data being carried out read operation or write operation based on file system with the memory space that is used for the data of memory file system, so can reduce the hardware cost and the development and maintenance cost of the network equipment.
Need to prove: for aforesaid each method embodiment; For simple description; So it all is expressed as a series of combination of actions, but those skilled in the art should know that the present invention does not receive the restriction of described sequence of movement; Because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that details among certain embodiment, can be referring to the associated description of other embodiment.
The structural representation of the network equipment that Fig. 2 provides for the embodiment of the invention, as shown in Figure 2, the network equipment of present embodiment can comprise confirms unit 21 and operating unit 22.Wherein, confirm that unit 21 is used for confirming the action type based on file system, above-mentioned action type based on file system comprises write operation or read operation; Operating unit 22 is used for according to the above-mentioned action type based on file system of confirming that unit 21 is confirmed data corresponding in the storage server being operated.
The function of the network equipment can be realized by the network equipment that present embodiment provides among the embodiment of above-mentioned Fig. 1 correspondence.
In an application scenarios of the embodiment of the invention, operating unit 22 specifically can utilize Network File System protocol that above-mentioned data are mounted to the above-mentioned network equipment according to above-mentioned action type based on file system, and the above-mentioned data of carry are operated.
In the Another application scene of the embodiment of the invention, operating unit 22 specifically can also utilize the metadata that is kept at local above-mentioned data according to above-mentioned action type based on file system, and above-mentioned data are operated.
In the Another application scene of the embodiment of the invention; Operating unit 22 specifically can also be according to above-mentioned action type based on file system; The memory space of above-mentioned data is mapped in the above-mentioned network equipment; And the data that are mapped to the above-mentioned memory space in the above-mentioned network equipment are operated, and the operating result of aforesaid operations is synchronized to above-mentioned memory space.Correspondingly, as shown in Figure 3, the network equipment that embodiment provides can further include map unit 31, is used for the above-mentioned memory space of above-mentioned storage server is mapped in the above-mentioned network equipment.
Alternatively, as shown in Figure 4, the network equipment that embodiment provides is initialization unit 41 further, is used to utilize boot and host-host protocol, obtains startup file from above-mentioned storage server, and utilizes above-mentioned startup file, carries out initialization operation.
In the present embodiment; The network equipment is confirmed the action type based on file system through confirming the unit; Make that operating unit can be according to the above-mentioned action type based on file system of confirming that the unit is confirmed; Data corresponding in the storage server are carried out above-mentioned based on the corresponding operation of the action type of file system; Because the network equipment need not created file system and just can realize through storage server data being carried out read operation or write operation based on file system with the memory space that is used for the data of memory file system, so can reduce the hardware cost and the development and maintenance cost of the network equipment.
The embodiment of the invention also provides a kind of data handling system, and is as shown in Figure 5, and the data handling system of present embodiment can comprise the network equipment 52 among storage server 51 and the corresponding embodiment of Fig. 2, Fig. 3 or Fig. 4.
Said storage server 51 is used to create file system, and stores above-mentioned data based on the above-mentioned file system of being created.
In an application scenarios of the embodiment of the invention, data handling system can further include cloud network or data center, and storage server 51 can be arranged on said cloud network or said data center.
The those skilled in the art can be well understood to, for the convenience described with succinct, the system of foregoing description, the concrete course of work of device and unit can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
In several embodiment that the application provided, should be understood that, the system that is disclosed, apparatus and method can realize through other mode.For example, device embodiment described above only is schematically, for example; The division of said unit; Only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can combine or can be integrated into another system; Or some characteristics can ignore, or do not carry out.Another point, the coupling each other that shows or discuss or directly coupling or communication to connect can be through some interfaces, the INDIRECT COUPLING of device or unit or communication connect, and can be electrically, machinery or other form.
Said unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of unit wherein of reality.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, the form that also can adopt hardware to add SFU software functional unit realizes.
The above-mentioned integrated unit of realizing with the form of SFU software functional unit can be stored in the computer read/write memory medium.Above-mentioned SFU software functional unit is stored in the storage medium, comprise some instructions with so that computer equipment (can be personal computer, storage server, the perhaps network equipment etc.) carry out the part steps of the said method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read-Only Memory; Abbreviation ROM), various media that can be program code stored such as random access memory (Random Access Memory is called for short RAM), magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (8)

1. a data processing method is characterized in that, comprising:
The network equipment is confirmed the action type based on file system, and said action type based on file system comprises write operation or read operation;
The said network equipment is operated data corresponding in the storage server according to said action type based on file system.
2. method according to claim 1 is characterized in that, the said network equipment is operated data corresponding in the storage server according to said action type based on file system, specifically comprises:
The said network equipment utilizes Network File System protocol that said data are mounted to the said network equipment according to said action type based on file system, and the said data of carry are operated; Perhaps
The said network equipment utilizes the metadata that is kept at local said data according to said action type based on file system, and said data are operated; Perhaps
The said network equipment is according to said action type based on file system; The memory space of said data is mapped in the said network equipment; And the data that are mapped to the said memory space in the said network equipment are operated, and the operating result of said operation is synchronized to said memory space.
3. method according to claim 1 and 2 is characterized in that, the said network equipment is confirmed also to comprise before the action type based on file system:
The said network equipment utilizes boot and host-host protocol, obtains startup file from said storage server;
The said network equipment utilizes said startup file, carries out initialization operation.
4. a network equipment is characterized in that, comprising:
Confirm the unit, be used for confirming action type that said action type based on file system comprises write operation or read operation based on file system;
Operating unit is used for the said action type based on file system definite according to said definite unit, and data corresponding in the storage server are operated.
5. the network equipment according to claim 4 is characterized in that said operating unit specifically is used for
According to said action type, utilize Network File System protocol that said data are mounted to the said network equipment, and the said data of carry are operated based on file system; Perhaps
According to said action type based on file system, utilize the metadata that is kept at local said data, said data are operated; Perhaps
According to said action type based on file system; The memory space of said data is mapped in the said network equipment; And the data that are mapped to the said memory space in the said network equipment are operated, and the operating result of said operation is synchronized to said memory space.
6. according to the claim 4 or the 5 described network equipments, it is characterized in that the said network equipment also comprises initialization unit, is used for
Utilize boot and host-host protocol, obtain startup file, and utilize said startup file, carry out initialization operation from said storage server.
7. a data handling system is characterized in that, comprises storage server and like the described network equipment of the arbitrary claim of claim 4~6;
Said storage server is used to create file system, and stores said data based on said file system.
8. system according to claim 7 is characterized in that, also comprises cloud network or data center, and said storage server is arranged on said cloud network or said data center.
CN2012100188793A 2012-01-20 2012-01-20 Data processing method and system and network device Pending CN102801768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100188793A CN102801768A (en) 2012-01-20 2012-01-20 Data processing method and system and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100188793A CN102801768A (en) 2012-01-20 2012-01-20 Data processing method and system and network device

Publications (1)

Publication Number Publication Date
CN102801768A true CN102801768A (en) 2012-11-28

Family

ID=47200730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100188793A Pending CN102801768A (en) 2012-01-20 2012-01-20 Data processing method and system and network device

Country Status (1)

Country Link
CN (1) CN102801768A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077063A (en) * 2012-12-18 2013-05-01 中兴通讯股份有限公司 Microcode compiling method and device
WO2015139202A1 (en) * 2014-03-18 2015-09-24 华为技术有限公司 Data processing method, apparatus and system
CN112395463A (en) * 2020-11-16 2021-02-23 深信服科技股份有限公司 Data storage method, device, equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558321A (en) * 2003-07-02 2004-12-29 普安科技股份有限公司 Storage virtualization computer system and external controller therefor
CN1722677A (en) * 2004-11-02 2006-01-18 杭州华为三康技术有限公司 Method of initial configuration for network equipment
CN101014929A (en) * 2004-07-30 2007-08-08 美国联合包裹服务公司 Systems, methods, computer readable medium and apparatus for memory management using nvram
CN101115246A (en) * 2006-07-25 2008-01-30 中兴通讯股份有限公司 Data storage method of mobile terminal
CN101419535A (en) * 2008-11-19 2009-04-29 北京航空航天大学 Distributed virtual magnetic disc system of virtual machine
CN101873342A (en) * 2010-06-02 2010-10-27 深圳市迪菲特科技股份有限公司 Data access method, data access system and disk array storage system
CN101986655A (en) * 2010-10-21 2011-03-16 浪潮(北京)电子信息产业有限公司 Storage network and data reading and writing method thereof
CN102214127A (en) * 2010-11-15 2011-10-12 上海安纵信息科技有限公司 Method for intensively storing and backing up data based on operating system virtualization theory

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558321A (en) * 2003-07-02 2004-12-29 普安科技股份有限公司 Storage virtualization computer system and external controller therefor
CN101014929A (en) * 2004-07-30 2007-08-08 美国联合包裹服务公司 Systems, methods, computer readable medium and apparatus for memory management using nvram
CN1722677A (en) * 2004-11-02 2006-01-18 杭州华为三康技术有限公司 Method of initial configuration for network equipment
CN101115246A (en) * 2006-07-25 2008-01-30 中兴通讯股份有限公司 Data storage method of mobile terminal
CN101419535A (en) * 2008-11-19 2009-04-29 北京航空航天大学 Distributed virtual magnetic disc system of virtual machine
CN101873342A (en) * 2010-06-02 2010-10-27 深圳市迪菲特科技股份有限公司 Data access method, data access system and disk array storage system
CN101986655A (en) * 2010-10-21 2011-03-16 浪潮(北京)电子信息产业有限公司 Storage network and data reading and writing method thereof
CN102214127A (en) * 2010-11-15 2011-10-12 上海安纵信息科技有限公司 Method for intensively storing and backing up data based on operating system virtualization theory

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077063A (en) * 2012-12-18 2013-05-01 中兴通讯股份有限公司 Microcode compiling method and device
CN103077063B (en) * 2012-12-18 2019-02-19 中兴通讯股份有限公司 Microcode Compilation Method and device
WO2015139202A1 (en) * 2014-03-18 2015-09-24 华为技术有限公司 Data processing method, apparatus and system
CN112395463A (en) * 2020-11-16 2021-02-23 深信服科技股份有限公司 Data storage method, device, equipment and computer readable storage medium
CN112395463B (en) * 2020-11-16 2024-02-23 深信服科技股份有限公司 Data storage method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11741046B2 (en) Method and apparatus for creating system disk snapshot of virtual machine
CN104885055A (en) Method and device for application data synchronization
CN102799464A (en) Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN105373404A (en) Software mirror image burning method and equipment
CN101944129B (en) Diskless system, workstation thereof, and building method of local root file by workstation
CN103838573A (en) Application program generation method and device
CN102938784A (en) Method and system used for data storage and used in distributed storage system
CN102937909B (en) A kind of method of disposing and upgrading linux system
CN105824678A (en) Method and device for installing operating system
CN103902347A (en) Deploying method and system of virtual machine system
CN105450759A (en) System mirror image management method and device
CN105205143A (en) File storage and processing method, device and system
CN111104201A (en) System migration method and device, electronic equipment and storage medium
CN104461687A (en) Virtual machine configuration information storage method and device
CN103731489A (en) Data storage method, system and equipment
CN105474177A (en) Distributed processing system, distributed processing device, distributed processing method, and distributed processing program
CN103440111A (en) Method for expanding disk space of virtual machines, host machines and platform
CN102664922A (en) High-speed network starting method based on Linux system
CN102801768A (en) Data processing method and system and network device
CN104517067A (en) Method, device and system for data access
CN104079610A (en) Cloud server, and method and system for cloud synchronization of application software
CN104063234A (en) Compatible method and device
CN105162833A (en) Client computer management system and method applied to diskless workstation
CN104778048B (en) The method and apparatus that server web environment is built in installation based on linux system
CN105653566B (en) A kind of method and device for realizing database write access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121128