0% found this document useful (0 votes)
36 views2 pages

File Models and Replication Explained

The document discusses different file models, including unstructured and structured files, as well as mutable and immutable files. It explains file replication and its distinction from file caching, highlighting the importance of high availability in distributed file systems. Additionally, it covers Unix semantics and provides an overview of Novell Netware as a network operating system, detailing its features and architecture.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

File Models and Replication Explained

The document discusses different file models, including unstructured and structured files, as well as mutable and immutable files. It explains file replication and its distinction from file caching, highlighting the importance of high availability in distributed file systems. Additionally, it covers Unix semantics and provides an overview of Novell Netware as a network operating system, detailing its features and architecture.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Veerendra kadganchi (MCA 2).

Roll no 31
Assignment 4
Q.1) Explain different file model in detalle File Model :-"

unstructured & structured files: - Two types for file modeling are structure &

modifiability.

Files models based on these criteria are described below. In unstructured model, there is no
substructure known to the file serves & the contents of each file of the file system, appeaes
to the file serves as an uninterpretedsequence of byte.
-In structured model, a record in the a file appeaks to the file served as an eed sequence of
records. Records of difint files of the same file system can be diffet size.

-In structured model, a record is the smallest unit of file data that can be accessed, and the
file system. read of write operations ace caccied out on a set of becords.

-structured files are again of two-types with non indexed records & files with indexed
decoecks. In the non-indexed record model, a file record is accessed by specifying its
position withing the file.
-In the indexed recoed model second have one or more key fields & can be addressed by
specifying the values. of the key fields.

In the file systems that allow indexed records, a le is maintained as a B-tree or other suitable
data structure of a hash table is used to locate beconds quickly.
[Link] & Immutable files :

According to the madifiability criteria, files are of two types ::


mutable &immutable.
Most existing system use the mutable file model. In this model, an update performed on a
file overwrites on its old contents to produce the new contents.

eg.a file is represented as a single stoced sequence the altered by each update opecation.

In immutable model, a file can not be modified once it has been created except to be
deleted. The file vessioning apptech is normally used to implement file updates, & each file
is represented by a history of Immutable versions

Q.2 What is file Replication & Distinguish between file Replication & file cachinge?

File Replication:
High availability is a desirable feature of a good distributed file system & file.. ceplication is
the primary mechanism for improving tile availability. A seplicated the is the multiple copies,
with each ropy located on a seperate file secuess.
Difference between Replication & caching & -

i) A ceplica is associated with a seeven, whereas a cached copy is normally associated with
a client.
Veerendra kadganchi (MCA 2).
Roll no 31
2 The existence of a cached copy is primarily dependent on the locality in a access patterns,
whereas the existence of a seplica normally depends on availability Land performance
requirements.

3) As compared to a cached copy, a replica more peast stent, widely known, secuce,
Nailable, complete & accurate.

4) A cached copy is contingent upon a replica only by peciodic devalidation with respect to a
replica can a cached copy by useful.

Q3) Waite Short note on Unix semantics--


A)Unix semantics--

In particulas, weites to an open file by a used immediately become visible to othes useds
who have this file open at the same time.

This semantics can be achieved in a distributed system by disallowing files to be cached at


client Dodes & allowing a shated file to be managed by only one file seovers that processes
all read & white requests for the file strictly in the order in which it receives them.
There is a active & possibility that, due to network delays. client requests from different
nodes may get processed at the served node in an different from the actual orded in which
the request where content made
B) Novel Netware

Novel Netware is type of network operating system. It provides wide networking Services
tanging from easy & simple file to the network uses, data, security, & even desquece
manage ment.
-It is generally designed for networks of LAN operating system.
-Novell netwate is most populas & widely used networksystem in PC world.
-It only needs low hardware requirements & has memory protection. It keeps safe & protects
single [Link] each other.
-Novell Netware is discontinued network operating system basically developed by Novell,
Inc.

Layers
Application SAP FILE SERVER ---

Transport NCP | SPX

Network IPX

Data link Ethernet Token Ring ARCnet

Physical Ethernet Token Ring ARCnet

tig. The Novell Netware Reference model

Common questions

Powered by AI

The unstructured file model treats the contents of each file as an uninterpreted sequence of bytes. In contrast, the structured file model organizes data into records, which are the smallest units of file data that can be accessed. In structured files, read or write operations are conducted on a set of records. Additionally, structured files may use non-indexed or indexed records, allowing access either by specifying the record's position or by key fields. Indexed records make use of structures like B-trees or hash tables for faster access .

Implementing file replication in distributed file systems involves challenges such as ensuring data consistency across replicas, managing synchronization delays, and maintaining high availability. Trade-offs include additional storage requirements for replicas and increased network traffic for synchronization. However, replication improves fault tolerance and load balancing. The complexity in managing consistency and the impact of network latency on performance further complicates effective replication implementation .

Unix semantics make writes to an open file immediately visible to other users who have the file open simultaneously. To implement this in distributed systems, files are not cached at client nodes but managed by a single file server processing all read and write requests in order. A challenge in this setup is network delays, potentially causing requests from different nodes to be processed out of sequence, affecting the file consistency perceived by users .

File replication involves creating multiple copies of a file, each located on separate servers, enhancing availability and reliability. In contrast, file caching associates a copy of the file with a client, mainly to leverage locality in access patterns. While replicas are more persistent, secure, and accurate, cached copies depend on replicas and require periodic validation. Replication aims to improve availability and performance, whereas caching focuses on efficient access speed for clients .

Network delays can disrupt the sequence of operations in distributed systems, leading to inconsistencies with Unix semantics where immediate visibility of file changes is expected. Delays might cause client requests to be processed out of order, creating conflicts or stale data perceptions among users. This challenge necessitates either sophisticated order management systems or alternative semantic models to ensure expected behavior, complicating implementation .

Non-indexed record models allow access by specifying record positions, which can be straightforward but inefficient for large datasets. Indexed record models enhance access speed by using key fields and structures like B-trees, facilitating efficient search and retrieval. However, maintaining these indices incurs additional overhead and complexity. Despite these costs, indexed models significantly improve performance in large-scale data environments .

File versioning in immutable file models requires maintaining multiple file versions, potentially increasing storage needs significantly. Each update results in a new file version, conserving the original along with changes. While this increases storage demand, it enhances data recovery options, provides an audit trail, and ensures data integrity against unauthorized modifications, beneficial in systems demanding high data fidelity .

The structured file model enhances data management in databases by organizing data into records that offer efficient access and modification. This model simplifies data indexing and retrieval, improving query performance through structures like B-trees or hash tables used for indexed records. In contrast, an unstructured model lacks organization, limiting optimization in accessing and managing entries, thus resulting in decreased database efficiency .

In mutable file models, updates to a file overwrite the existing content to produce new content, aligning with traditional file system operations. This is efficient for frequently updated files. Immutable file models prevent modification post-creation, implementing changes through versioning, where each file is represented by its history of versions. This provides advantages in traceability and data integrity, as previous versions remain accessible .

Novell Netware serves as a type of network operating system that provides a range of networking services such as file sharing, data management, security, and resource management. It is particularly designed for LAN networks with low hardware requirements and includes memory protection to safeguard processes. Despite being discontinued, it was popular for its ease and comprehensive network service management .

You might also like