Fundamentals of Computer Organization and Networks
Welcome to this comprehensive module on the core concepts of computer organization and networking. This course is designed for students and professionals who want to deepen their…

Given the 8‑bit two's complement representation, which binary pattern corresponds to –12?
A subnet is defined as 172.22.20.159/21. Which of the following is the correct network address?
Which layer of the TCP/IP model is responsible for translating a private IP address to a public IP address?
A CPU with a 3 GHz clock and a single core runs a program that cannot be parallelised. Which change will most directly increase its execution speed?
In a network frame, which address is replaced at each hop while the other remains unchanged?
A hub and a switch are both connected to four devices. Which statement best explains why the switch provides higher effective bandwidth?
If a 4‑bit two's complement adder adds 0101 (+5) and 1101 (‑3), what is the resulting binary value and does overflow occur?
A device with IP 192.168.1.45 wants to send a packet to 8.8.8.8. Which address will it use as the destination for the first hop?
When converting the decimal number 156 to binary, which step is performed first?
Which of the following best describes why a router does not forward broadcast frames by default?
Fundamentals of Computer Organization and Networks
Welcome to this comprehensive module on the core concepts of computer organization and networking. This course is designed for students and professionals who want to deepen their understanding of how data moves inside a CPU, how binary numbers represent signed values, and how modern networks route traffic efficiently. Each section expands on a quiz question, providing clear explanations, practical examples, and SEO‑friendly keywords to help you master the material.
1. Understanding Data Flow in a Simple Instruction
When a program executes the instruction "load value from memory address A into register R2, add the content of register R3, and store the result at address C", the processor follows a well‑defined data path:
- Fetch: The value at memory address A is transferred onto the data bus and loaded into R2.
- Read Operand: The content of R3 is simultaneously read from the register file.
- Execute: Both operands (R2 and R3) are fed into the Arithmetic Logic Unit (ALU) where the addition occurs.
- Store: The ALU result is written back to R2 (or a temporary register) and then written to memory address C via the write‑back stage.
This flow matches the correct answer in the quiz: "Data moves from memory to R2, then R2 to ALU, R3 to ALU, result to R2 and written to memory C." Understanding this pipeline is essential for topics such as instruction‑level parallelism and CPU micro‑architecture.
2. Two’s Complement Representation of Negative Numbers
Two’s complement is the dominant method for encoding signed integers in binary. To find the 8‑bit two’s complement of a negative decimal number, follow these steps:
- Write the absolute value in binary.
- Invert all bits (one’s complement).
- Add 1 to the inverted result.
For –12:
- 12 in binary =
00001100. - One’s complement =
11110011. - Add 1 →
11110100.
The correct 8‑bit pattern is 11110100. This concept is crucial for low‑level programming, digital circuit design, and error‑checking algorithms.
3. Subnetting a Class B Network: Finding the Network Address
Subnetting divides a larger IP block into smaller, more manageable networks. The notation 172.22.20.159/21 indicates:
- Base address:
172.22.0.0(Class B). - Subnet mask:
255.255.248.0(21 leading 1 bits).
To calculate the network address, apply the mask to the host address:
- Convert the third octet (20) to binary:
00010100. - Mask the third octet with
11111000→00010000(decimal 16). - Keep the first two octets unchanged (172.22) and set the fourth octet to 0.
Thus the network address is 172.22.16.0. Mastery of subnet calculations is vital for network design, routing, and security policies.
4. NAT (Network Address Translation) and the TCP/IP Model
Translating a private IP address to a public IP address is performed by Network Address Translation (NAT). In the TCP/IP model, NAT operates at the Internet Layer, which handles IP addressing and routing. The Internet Layer is responsible for encapsulating data into IP packets and performing address translation when packets cross a boundary between private and public networks.
Key terms for SEO: Network Address Translation, Internet Layer, private to public IP conversion.
5. Improving Execution Speed for a Non‑Parallelizable Program
When a program cannot be parallelized, the only way to increase its execution speed on a single core is to raise the clock frequency. A higher clock speed means more instruction cycles per second, directly reducing runtime for sequential code. While larger caches or hyper‑threading can improve performance for memory‑bound or multi‑threaded workloads, they do not affect the fundamental speed of a strictly serial program.
Relevant keywords: CPU clock speed, single‑core performance, Amdahl’s Law.
6. MAC vs. IP Addresses: What Changes at Each Hop?
In a routed network, the MAC (Media Access Control) address is a link‑layer identifier that is rewritten by each router for the outgoing interface. The IP address remains unchanged as the packet traverses the network, allowing end‑to‑end communication.
Therefore, at each hop:
- MAC address – updated to reflect the next hop’s hardware.
- IP address – stays constant from source to destination.
Understanding this distinction is essential for troubleshooting, network design, and security monitoring.
7. Switches vs. Hubs: Why Switches Offer Higher Effective Bandwidth
Both hubs and switches connect multiple devices, but they differ fundamentally in how they handle frames:
- Hub: Operates at the physical layer, broadcasting incoming frames to all ports. This creates a single collision domain, limiting effective bandwidth.
- Switch: Works at the data link layer, maintaining a MAC address table. It forwards frames only to the destination port, eliminating unnecessary collisions and allowing simultaneous full‑duplex communication on multiple ports.
Consequently, a switch provides higher effective bandwidth because it isolates traffic and reduces contention.
8. Detecting Overflow in a 4‑Bit Two’s Complement Adder
When adding two 4‑bit two’s complement numbers, overflow occurs if the carry into the sign bit differs from the carry out of the sign bit. Example:
- Operand A:
0101(+5) - Operand B:
1101(‑3) - Binary addition:
0101 +1101 ------ 10010The 5‑bit result is10010. Discarding the overflow bit yields0010(+2), and the carry into and out of the sign bit are identical, so no overflow occurs.
The correct result is 0010 with no overflow. Mastery of overflow detection is vital for designing reliable arithmetic circuits and for low‑level software debugging.
9. Summary of Key Concepts
By reviewing each quiz item, we have covered:
- CPU data flow for load‑add‑store instructions.
- Two’s complement conversion for negative numbers.
- Subnet calculation using CIDR notation.
- NAT operation within the TCP/IP Internet Layer.
- Performance impact of clock speed on non‑parallelizable code.
- MAC address rewriting versus static IP addressing across hops.
- Why switches outperform hubs in bandwidth efficiency.
- Overflow detection in limited‑bit two’s complement addition.
These foundational topics form the backbone of computer organization and networking curricula. Mastery will enable you to design efficient hardware, troubleshoot network issues, and optimize system performance.
