Juan Ortega 9/23/09 NTW412. A block is a sequence of bytes or bits having a nominal length (block size). Blocking is used to facilitate the handling of.

Slides:



Advertisements
Similar presentations
RAID (redundant array of inexpensive disks) The basic idea behind RAID is to combine multiple small, inexpensive disk drives into an array which is more.
Advertisements

So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –
By Rakshith Venkatesh Outline What is RAID? RAID configurations used. Performance of each configuration. Implementations. Way.
Chapter 12: File System Implementation
COEN 252 Computer Forensics Hard Drive Geometry. Drive Geometry Basic Definitions: Track Sector Floppy.
Presented to CUGG by Jamie Leben 10/9/10 IT-Works Computer Services
Categories of I/O Devices
Part IV: Memory Management
TCP/IP MODEL Maninder Kaur
NAS vs. SAN 10/2010 Palestinian Land Authority IT Department By Nahreen Ameen 1.
CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
Storing Data: Disks and Files: Chapter 9
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 36 Virtual Memory Read.
SEMINAR ON FILE SLACK AND DISK SLACK
Operating-System Structures
Chapter 3 Internet. Physical Components of the Internet Servers Networks Routers.
File System Implementation
Jacob Boston Josh Pfeifer. Definition of HyperText Transfer Protocol How HTTP works How Websites work GoDaddy.com OSI Model Networking.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Operating Systems.
Web Proxy Server Anagh Pathak Jesus Cervantes Henry Tjhen Luis Luna.
Storage Area Networks The Basics. Storage Area Networks SANS are designed to give you: More disk space Multiple server access to a single disk pool Better.
Process-to-Process Delivery:
Types of Addresses in IPv4 Network Range
Chapter 16 – DNS. DNS Domain Name Service This service allows client machines to resolve computer names (domain names) to IP addresses DNS works at the.
Networked File System CS Introduction to Operating Systems.
© 2011 University of StirlingLecture Review/Slide 1CSC931 Computing Science I CSC931 Review.
CMPE 421 Parallel Computer Architecture
Distributed File Systems
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
Chapter 2 Working with Disks and Other Removable Media 2.
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Data and Computer Communications Chapter 10 – Circuit Switching and Packet Switching (Wide Area Networks)
OSes: 11. FS Impl. 1 Operating Systems v Objectives –discuss file storage and access on secondary storage (a hard disk) Certificate Program in Software.
The Socket Interface Chapter 21. Application Program Interface (API) Interface used between application programs and TCP/IP protocols Interface used between.
1 Kyung Hee University Chapter 18 Domain Name System.
Memory Management COSC 513 Presentation Jun Tian 08/17/2000.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 11-2: File System Implementation Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Chapter 11: File System Implementation Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 11: File System Implementation Chapter.
Web Server.
File Systems cs550 Operating Systems David Monismith.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Review CS File Systems - Partitions What is a hard disk partition?
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
FILE SYSTEM IMPLEMENTATION 1. 2 File-System Structure File structure Logical storage unit Collection of related information File system resides on secondary.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 5.
1 Network Communications A Brief Introduction. 2 Network Communications.
Distributed Computing & Embedded Systems Chapter 4: Remote Method Invocation Dr. Umair Ali Khan.
Lecture 3 Secondary Storage and System Software I
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Tiny http client and server
Networks Problem Set 1 Due Oct 3 Bonus Date Oct 2
Local secondary storage (local disks)
CSI 400/500 Operating Systems Spring 2009
Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin
O.S Lecture 13 Virtual Memory.
Process-to-Process Delivery:
TCP/IP Protocol Suite: Review
Chapter 2: The Linux System Part 5
Chapter 16 File Management
Follow the Data Data (and information) move from place to place in computer systems and networks. As it moves it changes form frequently. This story.
Internet Applications & Programming
Introduction to Operating Systems
Presentation transcript:

Juan Ortega 9/23/09 NTW412

A block is a sequence of bytes or bits having a nominal length (block size). Blocking is used to facilitate the handling of the data-stream by the computer program receiving the data. Blocked data are normally read a block at a time. Blocking is employed in storage devices such as floppy disks, hard disks, optical discs, and flash memory.

The actual arrangement of information on the surface of a disk platter is referred to as a physical block. The Physical Block Number (PBN) is an address used for identifying a particular block on the surface of the disk. (Usually 512 bytes)

When the blocks on a disk are considered from a programming point of view, they are viewed as logical blocks. The address of a logical block on a disk is its Logical Block Number (LBN). LBN 0 (zero) is the first LBN on a disk. Logical blocks correspond one-for-one to physical blocks, but the logical block number might not correspond directly to the same physical block numbers.

The block size specifies size that the filesystem will use to read and write data. Larger block sizes will help improve disk I/O performance when using large files, such as databases. This happens because the disk can read or write data for a longer period of time before having to search for the next block. On the downside, if you are going to have a lot of smaller files on that filesystem, like the /etc, there the potential for a lot of wasted disk space. In classical file systems, a single block may only contain a part of a single file. This leads to space inefficiency due to internal fragmentation, since file lengths are often not multiples of block size, and thus the last block of files will remain partially empty. This will create slack space, which averages half a block per file. Some newer file systems attempt to solve this through techniques called block suballocation and tail merging.

Doing block I/O means that the application or file system is sending blocks to the disk drive to be written or asking for blocks using a logical block address (LBA). File systems turn file requests into block I/O. Applications (including databases) can do file I/O or they can bypass the filesystem and do block I/O (this is usually called raw I/O). Obviously it's easier to do file I/O, and you can do file sharing much easier that way. Doing block I/O may have performance advantages (in control of the buffering/caching and not having the file system overhead).

NAS does file I/O while SANs typically do block I/O. File I/O is referencing data as a file entity from a remote file system. When referencing a file, an application uses a "file handle:offset" which really is the name of the file and the number of bytes into the file for access to data. For NAS, a redirector diverts the access from a local file system to a remote file system that is accessed across a network usually through TCP/IP over Ethernet. The NAS device turns the remote file system access into its own local file system access that results in a block I/O (raw I/O) to attached devices.

1) The I/O request is intercepted by a network redirector, also referred to simply as a redirector, on the local computer. 2) The redirector constructs a data packet containing all of the information about the request, and sends it to the server where the file is located. 3) The redirector on the server receives the packet from the client, authenticates the access to the file required by the I/O request, and, if authenticated, executes the request on behalf of the client. If not, it returns an error code to the redirector on the client. 4) When the request has been executed, the redirector on the server sends any data resulting from the I/O request to the redirector on the client along with a success notification. 5) The redirector on the client receives the packet from the server and passes the data in the packet to the application along with a success notification.

For a SAN access, usually a block I/O is done where the application will access the file, the file system on the local server will turn that into a request for a block on a particular device (LUN - logical unit) and then block I/O is done over an interface such as Fibre Channel. The bottom line is that file I/O eventually (and always) turns into a block I/O -- locally it's done through the file system, for NAS it's redirected to a NAS device to do it on a remote system.

Basically, a SAN does block I/O just like having a disk directly attached to a server. A NAS is really remote file system I/O where the file request is redirected over a network to a device (really a processing entity with its own file system) where the file I/O is actually performed. Deciding whether to use a SAN or NAS has many factors to consider so there's not a specific answer. In general if your application requires block I/O or there is a significant performance requirement, use a SAN. If it's file based I/O for the application or you need to share files and you want simple administration, use NAS.

2, 5) Block (data storage). Retrieved September 23, 2009 from Wikipedia Web site: 3, 4) Fragmentation: Chapter 1. Retrieved September 23, 2009 from diskeeper Web site: 6)Kerns, R.(2005). What is block I/O?. Retrieved September 23, 2009 from techtarget Web site: 25,sid5_gci ,00.html 25,sid5_gci ,00.html 7, 9) Kerns, R.(2001). Block I/O and I/O transfer. Retrieved September 23, 2009 from techtarget Web site: 25,sid5_gci750396_mem1,00.html 25,sid5_gci750396_mem1,00.html 6)A Windows File system Win32 library functions reference and info used in Windows system programming. Retrieved September 23, 2009 from tunouk Web site:

10-12) Kern, R.(2005). SAN vs. NAS: A diagram of the differences. Retrieved September 23, 2009 from techtarget Web site: id5_gci _mem1,00.html id5_gci _mem1,00.html