Networking – Programmerbay https://programmerbay.com A Tech Bay for Tech Savvy Mon, 05 Apr 2021 11:39:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://programmerbay.com/wp-content/uploads/2019/09/cropped-without-transparent-32x32.jpg Networking – Programmerbay https://programmerbay.com 32 32 Difference Between RISC And CISC Machine in Tabular Form https://programmerbay.com/difference-between-risc-and-cisc-machine/ https://programmerbay.com/difference-between-risc-and-cisc-machine/#respond Sun, 14 Mar 2021 16:35:15 +0000 https://www.programmerbay.com/?p=2622 A processor, or say more precisely CPU (Central Processing Unit ) can be defined as an integrated circuit that is responsible for processing stored instructions. The primary operations of a CPU are:
– Fetch : Receiving instructions from memory
– Decode – Convert it into binary instructions
– Execute – Operation is performed
– Store – Saving output to memory

CISC Vs RISC

It can have two types of CPU architecture, CISC and RISC. Both provides communication between hardware and software.

These CPU architectures are capable of carrying out primary CPU tasks, though, they follow different approaches. The main difference between them is, CISC supports more instruction sets than RISC.

Difference between RISC AND CISC in Tabular Form

BasisRISCCISC
Stands forReduced Instruction Set ComputerComplex Instruction Set Computer
Size of instructionsSmaller and simpler instructionsLarger and Complex instructions
Execution Time1 cycle per instructionMultiple number of cycles per instruction
Emphasis On SoftwareOn hardware
Instruction FormatsFixed (4 bytes)Variable Length (2-6 bytes)
Control UnitHardwired Control UnitMicroprogrammed Control Unit
Data and Instruction CacheSeparateCombined
Example of processorsARM processor and Qualcomm processor are some examplesAMD, VAX and Intel x86 CPUs are some examples
CPU sizeSmallerLarger as they have larger instruction libraries
Addressing ModesFewerMany
ArrayNot SupportedSupported
PipelineEasyHard
Power consumptionLessMore
Referred asMachine OrientedProgrammer Oriented
Register setsHas multiple register setsHas Single register set
Memory unit Doesn't have memory unit Have memory unit

RISC (Reduced Instruction Set Computer)

It stands for Reduced Instruction Set Computer.

It is basically conceptualized on the fact of making hardware simpler and less complex. And this is done by implementation of the Instruction set which reduces the load on processes like loading, storing and evaluating data.

risc

In other words, it has an assembly language that enables each and every task to be split into simpler instructions which are then executed for each clock cycle. Its instructions are efficient but due to simplicity it processes more lines of code.

It focuses on reducing execution time by optimising and simplifying instruction set. It requires only single clock cycle to process results in uniform execution time. However, it reduces efficiency in case of large program size which leads to need of more RAM for storing instruction.

RISC architecture is often used in portable devices such as mobile phones.

CISC (Complex Instruction Set Computer)

It stands for Complex Instruction Set Computer.

It is basically based on complex hardware and all the importance is given to that always. This is done by implementing complex hardware which serves as a single instruction for all the processes like loading, storing and evaluating data.

In other words, It processes larger and more complex assembly instructions each time. One CISC instruction can do the task of multiple RISC instructions.

CISC

It focuses on reducing the number of instructions per program without considering the number of cycles per instruction. It relatively requires less RAM to store instructions. It is mainly used in desktops or laptops computer.

RISC and CISC example :

Multiplying two variables X*Y:

  • CISC approach can be viewed as
    MULT X, Y
  • RISC approach can be viewed as
    LOAD R1, X
    LOAD R2, Y
    PROD X, Y
    STORE R3, X

Key Differences:

  1. RISC machine focuses more on software and less on hardware, whereas; CISC machine focuses more on hardware and less on software.
  2. RISC machine has greater use of registers so, they use transistors for more registers, whereas; CISC machine uses a greater number of complex instructions, so they use transistors to store all their complex instructions.
  3. In RISC machine, as it follows a software-based approach that is why, the code part is large, whereas; in CISC machine, as it is complex hardware driven, this makes the code part much smaller.
  4. In RISC machine, due to its great and reliable software approach, an instruction can execute in a single clock cycle, whereas; in CISC machine, due to its more hardware driven approach, an instruction lags a little bit and takes more than one clock cycle.
  5. The RISC instructions are quite handy and easy as they can fit in a single word, whereas; the CISC instructions are quite larger than a typical word.

]]>
https://programmerbay.com/difference-between-risc-and-cisc-machine/feed/ 0
Difference Between Subnetting And Supernetting https://programmerbay.com/difference-between-subnetting-and-supernetting/ https://programmerbay.com/difference-between-subnetting-and-supernetting/#respond Fri, 22 Mar 2019 10:05:57 +0000 https://www.programmerbay.com/?p=2633 A network can be defined as a group of two or more computers that can communicate with each other in order to share data and resources. A device in the network is uniquely identified by IP addresses.

Subnetting and Supernetting are the two ways to organise these IP addresses. The main difference between them is, Subnetting is a technique of dividing a network into smaller ones, on other hand, Supernetting is a technique of combining several networks to a large network. Both techniques has their own advantages and disadvantages

Difference Between Subnetting And Supernetting:

BasisSubnetting Supernetting
DefinitionIt is a technique to split a network into smaller subnetworksIt is the technique of merging various networks to form one single network
Number of addresses’s bits DecreaseIncrease
Movement of Mask bits Right of the default maskLeft of the default mask
Designed byVariable-Length Subnet MaskingClassless Inter-domain Masking
ObjectiveDeals with network congestion and increase performanceReducing the number of entries in a routing table that simplify the routing process

 

SUBNETTING

The technique of dividing the Physical network into various smaller subnetworks which are essentially logical and known as Subnetting. “Subnets” is the nomenclature given to these smaller and downsized subnetworks. There is a combination of the host segment and the network segment to form the IP address of these subnetworks. The major objective of the subnetting is to convert all the host related bits into the network bits.

SUPERNETTING

The technique which is completely opposite to the process of Subnetting; this means that various other networks are merged and joined to form one single network, this is known as Supernetting.

There are various other names of Supernetting like aggregation and Router summarization. The major objective of Supernetting is to convert all the network related bits into the host bits.

 

Key Differences:

  1. The subnetting is the technique to divide the network into smaller subnetworks. The Supernetting is the technique of uniting various other networks to form one single network.
  1. In subnetting, the network address’s numbers of bits are dramatically increased whereas, in Supernetting the host address’s numbers of bits are dramatically increased.
  1. In subnetting, the movement of the masked bits is towards the right of the default mask. While, in Supernetting the movement of the masked bits is towards the left of the default mask.
  1. In subnetting, the technique of masking used is Variable-Length Subnet Masking. In Supernetting, the technique of masking used is Classless Interdomain Masking.

 

]]>
https://programmerbay.com/difference-between-subnetting-and-supernetting/feed/ 0