Computer Science  ·  Level 6
Networking And Distributed Systems
Chapter 3: Distributed processing and file management
📚 4 Topics

Distributed processing and file management are foundational concepts in computer science, especially in designing scalable and efficient systems. For Kenyan IT professionals working in sectors such as banking, education, or government digital services, understanding how distributed processing enhances computational power and how file systems manage data across multiple machines is critical. This chapter explores the different types of distributed processing and the variety of file systems that support distributed environments, equipping learners with knowledge to optimize system performance and data accessibility in real-world applications.

3.1 Types of Distributed Processing

Distributed processing refers to the division of computational tasks across multiple processors or computers connected through a network. This approach is essential in Kenya’s growing digital economy, where institutions like banks and universities require reliable and scalable systems to handle large volumes of transactions and data processing simultaneously. Understanding the types of distributed processing enables IT professionals to design systems that improve efficiency, fault tolerance, and resource utilization.

3.1.1 Distributed Processing

Distributed processing involves multiple interconnected computers working together to complete a task that a single machine cannot efficiently handle alone. In Kenyan financial institutions, for example, distributed processing enables real-time transaction processing by spreading workload across branch servers and central systems to reduce latency and improve responsiveness.

Characteristics of Distributed Processing

  • Decentralization of Tasks: Tasks are divided among multiple nodes, preventing bottlenecks associated with single-processor systems.
  • Fault Tolerance: The system can continue functioning even if one or more nodes fail, enhancing reliability.
  • Resource Sharing: Distributed systems pool computational and storage resources across different machines.
  • Concurrent Processing: Multiple tasks or subtasks run simultaneously, speeding up overall processing time.
  • Scalability: New nodes can be added to the system to increase processing power as demands grow, such as in expanding county government IT infrastructures.

Advantages of Distributed Processing

  • Improved Performance: By dividing tasks, systems process data faster than single-computer setups.
  • Enhanced Reliability: Failures in one node do not cripple the entire system.
  • Cost Efficiency: Distributed systems can use commodity hardware rather than expensive high-performance machines.
  • Flexibility: Systems can be adapted or expanded without major overhauls.
  • Load Balancing: Workloads are distributed to avoid overloading any single node, maintaining system responsiveness.

Challenges in Distributed Processing

  • Complexity in Coordination: Managing communication and task synchronization across nodes can be difficult.
  • Network Dependency: System performance depends on network speed and reliability, which can vary in some Kenyan regions.
  • Security Risks: Increased attack surfaces require robust security measures.
  • Data Consistency: Ensuring all nodes have synchronized data is challenging.
  • Resource Management: Allocating tasks efficiently requires sophisticated algorithms.

3.1.2 Parallel Processing

Parallel processing is a specialized form of distributed processing where multiple processors execute parts of a single program simultaneously. This technique is common in research institutions and universities in Kenya, where complex computations, such as simulations or data analytics, demand high processing power.

Distinguishing Features of Parallel Processing

  • Single Program Execution: Unlike distributed processing, parallel processing runs parts of the same program concurrently.
  • Tightly Coupled Processors: Processors usually share memory and are closely connected.
  • Synchronous Operation: Processors work in coordinated steps to complete tasks.
  • High-Speed Computation: Parallelism reduces execution time significantly.
  • Shared Memory Architecture: Processors access a common memory space for faster communication.

Benefits of Parallel Processing

  • Faster Computations: Tasks complete quicker due to simultaneous execution.
  • Efficient Use of Multi-Core Systems: Modern processors with multiple cores leverage parallel processing naturally.
  • Improved Throughput: Enables processing of large data sets, like those in Kenya’s agricultural research centers.
  • Energy Efficiency: Parallel tasks can reduce power consumption by completing work faster.
  • Scalability within Single Machines: Adding cores increases processing capability without network overhead.

Limitations of Parallel Processing

  • Programming Complexity: Writing parallel algorithms requires specialized skills.
  • Overhead in Coordination: Synchronization and communication can reduce performance gains.
  • Hardware Constraints: Limited by the number of cores/processors on a single machine.
  • Memory Bottlenecks: Shared memory access can become a performance limiter.
  • Applicability Limits: Not all problems can be parallelized effectively.
The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒3.2 Types of File Systems

File systems are crucial in determining how data is stored, organized, and accessed on storage devices. In distributed environments, file systems must efficiently manage data across multiple machines to ensure availability, consistency, and reliability. Kenyan…

🔒3.3 File Accessing

In distributed systems, accessing files efficiently and securely across multiple nodes is critical for seamless collaboration and data sharing. Kenyan organizations such as county government offices and universities rely on distributed file systems to enable s…

🔒3.4 Distributed File Sharing and Access

Distributed file sharing enables multiple users and applications to read and write files stored across different nodes, facilitating collaboration and resource utilization. Kenyan SACCOs and county offices utilize distributed file sharing to synchronize record…

🔒4 Network Set Up in a Distributed Environment

Setting up a network in a distributed environment requires careful planning to ensure reliable communication, security, and scalability. Kenyan organizations such as banks and large universities often deploy distributed networks to connect branch offices and c…

Chapter Summary

This chapter explored the fundamental concepts of distributed processing, distinguishing it from parallel processing by highlighting how tasks are divided across multiple systems versus simultaneous execution on multiple processors. It then examined various types of file systems that support distributed environments, focusing on their structures and management techniques. The discussion on file accessing covered methods such as remote access and data caching that enhance efficiency and performance when working with distributed files. The chapter also addressed distributed file sharing and access, emphasizing the mechanisms and protocols that enable seamless collaboration across networked systems. Finally, it outlined the essential considerations for setting up a network in a distributed environment, detailing the infrastructure and configurations necessary to support distributed processing and file management effectively. Together, these topics provide a comprehensive understanding of how distributed systems manage processing and file operations to achieve scalability and resource optimization.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Define distributed processing and explain how it differs from parallel processing. (4 marks)
  2. Identify and describe three types of distributed processing architectures. (6 marks)
🔒25 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Explain the main difference between distributed processing and parallel processing, illustrating your answer with an example from a Kenyan financial institution. (4 marks)
  2. Identify and describe three types of distributed processing architectures commonly used in computer science. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Implement a Simple Distributed Processing System Using Two Networked Computers

Computer Science · Level 6
Networking And Distributed Systems
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Pairs

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Set up and configure two networked computers with IP addresses 192.168.10.1 and 192.168.10.2 respectively, connected via Cat6 cables, to demonstrate distributed processing and file sharing.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
RJ45 crimping toolCat6 Ethernet cable
Cable testerRJ45 connectors
Working computerWireshark software
Masking tape / Labels
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Cat6 Ethernet cable2 Pcs per Candidate
2RJ45 connectors4 Pcs per Candidate
3RJ45 crimping tool1 Pc per 3 Candidates
4Cable tester1 Pc per 3 Candidates
5Working computer2 Pcs per Candidate
6Masking tape / Labels5 Pcs per Candidate
7Wireshark software installed2 Pcs per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Cable Preparation and Testing
Observed computer laboratory rules and safety procedures
(Award 2 marks or 0)
2
Unsheathed Cat6 cable and cut wires to correct length
(Award 2 marks or 0)
2
Arranged wires according to T568B wiring standard and crimped one end correctly
(Award 3 marks or 0)
3
Arranged wires according to T568B wiring standard and crimped the other end correctly
(Award 3 marks or 0)
3
Tested the terminated cable using a cable tester and verified continuity
(Award 3 marks or 0)
3
Sub-Total13
TASK 2: Network Configuration and Verification
Configured Computer A with IP address 192.168.10.1, subnet mask 255.255.255.0, and gateway 192.168.10.254
(Award 2 marks each for IP, subnet mask, gateway or 0)
6
Configured Computer B with IP address 192.168.10.2, subnet mask 255.255.255.0, and gateway 192.168.10.254
(Award 2 marks each for IP, subnet mask, gateway or 0)
6
Verified network connectivity between Computer A and Computer B using ping command
(Award 3 marks or 0)
3
Shared the 'Documents' folder on Computer A with read/write permissions
(Award 3 marks or 0)
3
Shared the 'Documents' folder on Computer B with read/write permissions
(Award 3 marks or 0)
3
Created a text file named 'Test1.txt' in the shared Documents folder on Computer A
(Award 3 marks or 0)
3
Accessed the shared Documents folder from Computer B and opened 'Test1.txt'
(Award 3 marks or 0)
3
Verified ability to create, modify, and delete files in the shared folders from both computers
(Award 3 marks or 0)
3
Sub-Total30
TASK 3: Security and Network Traffic Monitoring
Created strong user passwords on Computer A complying with uppercase, lowercase, numbers, and symbols
(Award 4 marks or 0)
4
Created strong user passwords on Computer B complying with uppercase, lowercase, numbers, and symbols
(Award 4 marks or 0)
4
Verified password strength compliance on both computers
(Award 3 marks or 0)
3
Launched Wireshark software successfully on Computer A
(Award 2 marks or 0)
2
Selected the correct active network interface for packet capture in Wireshark
(Award 2 marks or 0)
2
Initiated packet capture and let it run for approximately 1 minute
(Award 2 marks or 0)
2
Monitored live network traffic and ensured packets were captured during the session
(Award 3 marks or 0)
3
Captured screenshot of network traffic and saved it on the desktop of Computer A
(Award 4 marks or 0)
4
Sub-Total24
PRODUCT CHECKLIST
Network connectivity verified between two computers with correct IP configuration
(Award 6 marks or 0)
6
Shared folders accessible with correct permissions and file operations verified
(Award 6 marks or 0)
6
Strong passwords created and validated on both computers
(Award 6 marks or 0)
6
Wireshark capture successfully performed with screenshot saved
(Award 6 marks or 0)
6
Sub-Total24
GRAND TOTAL91
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Configure and Execute a Parallel Processing Environment Using Hadoop

Computer Science · Level 6
Networking And Distributed Systems
PRACTICAL ASSESSMENT
TIME: 5 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Install and configure a Hadoop parallel processing cluster with 3 nodes, each node having IP addresses 192.168.100.101, 192.168.100.102, and 192.168.100.103, and execute a MapReduce job to count word frequency in a 10MB text file.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Computer with Ubuntu 22.04 LTS installedHadoop 3.3.4 software package
Ethernet cable Cat6Java JDK 11 installed
Network switch 8 ports
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1Computer with Ubuntu 22.04 LTS installed1 Pc per Candidate
2Hadoop 3.3.4 software package1 Pc per Candidate
3Java JDK 11 installed1 Pc per Candidate
4Ethernet cable Cat61 Pc per Candidate
5Network switch 8 ports1 Pc per 5 Candidates
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
TASK 1: Installation and Configuration
Observed computer laboratory rules and safety procedures
(Award 2 marks or 0)
2
Installed Java JDK 11 correctly on all nodes
(Award 5 marks or 0)
5
Installed Hadoop 3.3.4 on all nodes following official documentation
(Award 6 marks or 0)
6
Configured core-site.xml, hdfs-site.xml, mapred-site.xml, and yarn-site.xml files correctly on all nodes
(Award 2 marks each file configured correctly, else 0)
8
Set up SSH passwordless login between master node and slave nodes
(Award 5 marks or 0)
5
Formatted the HDFS filesystem on the master node successfully
(Award 4 marks or 0)
4
Started HDFS and YARN daemons on all nodes successfully
(Award 5 marks or 0)
5
Sub-Total35
TASK 2: Network Configuration and Connectivity
Configured static IP addresses 192.168.100.101, 192.168.100.102, and 192.168.100.103 on respective nodes with subnet mask 255.255.255.0
(Award 2 marks per node configured correctly, else 0)
6
Connected all nodes to the network switch using Cat6 Ethernet cables
(Award 3 marks or 0)
3
Verified network connectivity by successfully pinging all nodes from the master node
(Award 4 marks or 0)
4
Sub-Total13
TASK 3: Execution and Verification of Parallel Processing
Uploaded a 10MB text file into HDFS input directory
(Award 4 marks or 0)
4
Executed a MapReduce job to count word frequency using Hadoop’s example jar
(Award 6 marks or 0)
6
Monitored job progress and verified successful completion
(Award 4 marks or 0)
4
Retrieved and displayed output results from HDFS output directory
(Award 5 marks or 0)
5
Sub-Total19
PRODUCT CHECKLIST
Hadoop cluster configured with 3 nodes having correct IP addresses and services running
(Award 10 marks or 0)
10
MapReduce job output correctly generated showing word count results
(Award 10 marks or 0)
10
Sub-Total20
GRAND TOTAL87
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒Format, mount, and verify NTFS and ext4 file systems on a computerPractical 3
🔒Demonstrate sequential and direct file access methods on text filesPractical 4
🔒Configure Remote Access to a Server Using SSH and Verify ConnectionPractical 5
🔒Implementing Data Caching on a Client-Server SetupPractical 6
🔒Set up a distributed file sharing system for dual-user accessPractical 7
🔒Setup of a Local Area Network for Distributed Processing and File SharingPractical 8
🔒Integration of Distributed Processing with Distributed File ManagementPractical 9
🔒Troubleshoot and resolve distributed file access issues on a peer-to-peer networkPractical 10
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 14 questions Start quiz ▾
0%
0 / 2
🔒

12 more in this section.

Create a free account