

{"id":104165,"date":"2021-11-25T09:00:35","date_gmt":"2021-11-25T03:30:35","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=104165"},"modified":"2021-11-25T12:11:52","modified_gmt":"2021-11-25T06:41:52","slug":"network-file-system-in-computer-network","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/","title":{"rendered":"Network File System (NFS) in Computer Network"},"content":{"rendered":"<p><span style=\"font-weight: 400\">The Network File System is abbreviated as NFS. It is a distributed file system protocol. Sun Microsystems created this protocol in 1984. <\/span><span style=\"font-weight: 400\">It is based on a client\/server architecture.<\/span><\/p>\n<p><span style=\"font-weight: 400\">It is this protocol that enables users to access data and files remotely through the network. Because the NFS protocol is an open standard, it is simple to implement. Any user can manipulate files in the same way as they would if they were on another protocol. This protocol is based on the ONC RPC system as well.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This protocol is mostly used in computer settings where centralised resource and data management is important. It handles data transmission using the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP).<\/span><\/p>\n<p><span style=\"font-weight: 400\">Network File System can operate on all IP-based networks. It is implemented in a client\/server application in which the NFS server handles authorization, authentication, and client management. This protocol is supported by Apple Mac OS, Unix and Unix-like operating systems such as Solaris, Linux, FreeBSD, and AIX.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">NFS as a Distributed System:<\/span><\/h3>\n<p><span style=\"font-weight: 400\">Sun&#8217;s Network File System: Sun Microsystems developed the Network File System, which was the first successful distributed system (NFS). NFSv2 was built with the objective of easy and quick server crash recovery. This objective is critical in multi-client and single-server network systems since a single server crash means that all clients are unserviced. The entire system fails.<\/span><\/p>\n<p><span style=\"font-weight: 400\">When it comes to crashes, stateful protocols complicate matters. Consider client A attempting to obtain data from the server. However, the site failed shortly after the first read. When the server is ready, client A sends the second read request. The server, on the other hand, has no idea which files the client is referring to because all of that information was transient and destroyed after the crash.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Here, stateless protocols come to our aid. Such protocols are designed such that no state information is stored on the server. The server has no idea what the clients are doing, such as which blocks they are caching, which files they are opening, or where their current file pointers are. The server simply provides all of the information needed to satisfy a client request. If the server crashes, the client must simply retry the request. NFS employs a stateless protocol due to its simplicity.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">File Handles for NFS:<\/span><\/h3>\n<p><span style=\"font-weight: 400\">NFS employs file handles to uniquely identify a file or directory that is the subject of the current operation. This is made up of the following elements:<\/span><\/p>\n<h4><span style=\"font-weight: 400\">1. Volume Identifier:<\/span><\/h4>\n<p><span style=\"font-weight: 400\">\u00a0A file system or partition on an NFS server may contain numerous file systems or partitions. The volume identification informs the server about the file system being referenced to.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">2. Inode number:\u00a0<\/span><\/h4>\n<p><span style=\"font-weight: 400\">The inode number identifies the file within the partition.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">3. Generation Number:\u00a0<\/span><\/h4>\n<p><span style=\"font-weight: 400\">When reusing an inode number, this value is utilised as the generation number.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">Attributes of the File:<\/span><\/h3>\n<p><span style=\"font-weight: 400\">In NFS terminology, \u201cfile attributes\u201d is a phrase that is often used. This is a catch-all word for a file&#8217;s monitored metadata, which includes file creation time, last updated time, size, ownership rights, and so on. By running stat() on the file, you can get at this information.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">Difference between NFS and CIFS:<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<td><b>Network File System<\/b><b>(NFS)<\/b><\/td>\n<td><b>Common Internet File System<\/b><b>(CIFS)<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">NFS is short for Network File System.<\/span><\/td>\n<td><span style=\"font-weight: 400\">The Common Internet File System is abbreviated as CIFS.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Unix and Linux operating systems utilise this protocol to share files.<\/span><\/td>\n<td><span style=\"font-weight: 400\">Windows operating systems utilise this protocol to share files.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">It is quite scalable.<\/span><\/td>\n<td><span style=\"font-weight: 400\">It has a lower scalability.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Communication moves at a breakneck pace.<\/span><\/td>\n<td><span style=\"font-weight: 400\">The communication speed is medium.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">The Network File System protocol is not secure.<\/span><\/td>\n<td><span style=\"font-weight: 400\">The Network File System is less secure than the Common Internet File System.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">NFS is an unreliable protocol.<\/span><\/td>\n<td><span style=\"font-weight: 400\">CIFS is a reliable protocol.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Sessions are not provided by this protocol.<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sessions are provided by this protocol.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">This protocol is simple to implement and configure.<\/span><\/td>\n<td><span style=\"font-weight: 400\">Its implementation is difficult.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">TCP and UDP are both used on port 111 in this protocol.<\/span><\/td>\n<td><span style=\"font-weight: 400\">This protocol employs 139 and 445 TCP ports, as well as 137 and 138 UDP ports.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span style=\"font-weight: 400\">Summary:<\/span><\/h3>\n<p><span style=\"font-weight: 400\">In this article, we looked at the history and functioning of the Network File System (NFS). We looked at the various terminologies involved in the file handling process of NFS, and also the differences between NFS (Network File System) and CIFS (Common Internet File System).<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Network File System is abbreviated as NFS. It is a distributed file system protocol. Sun Microsystems created this protocol in 1984. It is based on a client\/server architecture. It is this protocol that&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":104239,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24974],"tags":[25875,25873,25874],"class_list":["post-104165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-network","tag-difference-between-nfs-and-cifs","tag-network-file-system","tag-nfs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Network File System (NFS) in Computer Network - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what is Network File System (NFS) in Computer Network. See NFS File Handles, their attributes &amp; Difference between NFS and CIFS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Network File System (NFS) in Computer Network - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what is Network File System (NFS) in Computer Network. See NFS File Handles, their attributes &amp; Difference between NFS and CIFS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-25T03:30:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-25T06:41:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/network-file-systemnfs.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Network File System (NFS) in Computer Network - DataFlair","description":"Learn what is Network File System (NFS) in Computer Network. See NFS File Handles, their attributes & Difference between NFS and CIFS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/","og_locale":"en_US","og_type":"article","og_title":"Network File System (NFS) in Computer Network - DataFlair","og_description":"Learn what is Network File System (NFS) in Computer Network. See NFS File Handles, their attributes & Difference between NFS and CIFS.","og_url":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2021-11-25T03:30:35+00:00","article_modified_time":"2021-11-25T06:41:52+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/network-file-systemnfs.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Network File System (NFS) in Computer Network","datePublished":"2021-11-25T03:30:35+00:00","dateModified":"2021-11-25T06:41:52+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/"},"wordCount":725,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/network-file-systemnfs.webp","keywords":["Difference between NFS and CIFS","Network File System","NFS"],"articleSection":["computer network tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/","url":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/","name":"Network File System (NFS) in Computer Network - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/network-file-systemnfs.webp","datePublished":"2021-11-25T03:30:35+00:00","dateModified":"2021-11-25T06:41:52+00:00","description":"Learn what is Network File System (NFS) in Computer Network. See NFS File Handles, their attributes & Difference between NFS and CIFS.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/network-file-systemnfs.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/network-file-systemnfs.webp","width":1200,"height":628,"caption":"network file system(nfs)"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/network-file-system-in-computer-network\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"computer network tutorial","item":"https:\/\/data-flair.training\/blogs\/category\/computer-network\/"},{"@type":"ListItem","position":3,"name":"Network File System (NFS) in Computer Network"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/104165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=104165"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/104165\/revisions"}],"predecessor-version":[{"id":104386,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/104165\/revisions\/104386"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/104239"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=104165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=104165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=104165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}