Bangladesh Bank
Post: Assistant maintenance engineer (AME),
Exam Date: 04.02.2023, Exam Taker: BIBM
In direct mapping physical address is divided into three parts i.e., Tag bits, Cache Line Number and Byte offset.
| Tag | Number of Cache Lines/Index bit | Offset Bit |
Given:-
Cache size: 16 KB
Block size: 4 words
Word size: 4 bytes (assuming a typical 32-bit architecture where each word is 4 bytes)
Address size: 32 bits
Calculate the Block Size in Bytes:
Since each block contains 4 words and each word is 4 bytes:
Block size = \( 4 \text{ words} \times 4 \text{ bytes/word} = 16 = 2^4 \text{ bytes} \)
Number of offset bits = \( \log_2 2^4 \) = 4 bits
Calculate the Number of Cache Blocks:
Block size = Line size = \( 2^4 \text{ bytes} \)
The total cache size is 16 KB = \( 2^{14} \text{ bytes} \) [ 1 KB = 210B]
Number of Lines = \( \frac{\text{Total cache size}}{\text{Line size}} = \frac{2^{14}}{2^4} = 2^{10} \text{ lines} \)
Number of Lines in the cache:
Number of index bits = \( \log_2 \text{(Number of lines)} = \log_2 2^{10} = \) 10 bits
Number of tag bits = Total Address bit − (Index bits + Offset bits) = \( 32 – (10 + 4) = \) 18 bits.
Parity Bit and Error Detection
During data transmission, electrical noise may change the logic level of a signal, causing errors. To detect such errors, a parity bit (an extra bit 0 or 1) is added to the original data.
Even Parity Method: The sender counts the number of 1s in the data. If the count is odd, the parity bit is set to 1 to make the total number of 1s even. If the count is already even, the parity bit is set to 0. The receiver again counts the number of 1s (including the parity bit). If the total is even, the data is assumed correct; otherwise, an error is detected.
Example: Suppose the data 1101 is transmitted with parity bit 1. If due to noise the receiver gets 1111, the total number of 1s becomes odd. Hence, the receiver detects an error and may request retransmission.
ASCII Code for “Delta”
| Character | Decimal ASCII | 8-bit Binary |
|---|---|---|
| D | 68 | 01000100 |
| e | 101 | 01100101 |
| l | 108 | 01101100 |
| t | 116 | 01110100 |
| a | 97 | 01100001 |
The complete binary bit stream for “Delta” is:
01000100 01100101 01101100 01110100 01100001
Parity Bit এবং Error Detection
Data transmission-এর সময় electrical noise signal-এর logic level পরিবর্তন করতে পারে, ফলে error তৈরি হয়। এই error শনাক্ত করার জন্য মূল data-এর সাথে একটি অতিরিক্ত bit যোগ করা হয়, যাকে parity bit বলা হয়।
Even Parity পদ্ধতি: Sender data-এর মধ্যে কতগুলো 1 আছে তা গণনা করে। যদি 1-এর সংখ্যা odd হয়, তাহলে parity bit = 1 দেওয়া হয় যাতে মোট সংখ্যা even হয়। Receiver আবার parity bit সহ 1-এর সংখ্যা গণনা করে। যদি মোট সংখ্যা even হয়, data সঠিক ধরা হয়; নাহলে error ধরা পড়ে।
উদাহরণ: ধরা যাক 1101 data parity bit 1 সহ পাঠানো হলো। Noise-এর কারণে receiver যদি 1111 পায়, তাহলে মোট 1-এর সংখ্যা odd হবে। তাই receiver বুঝবে যে error হয়েছে।
“Delta” শব্দের ASCII Code
| Character | Decimal ASCII | 8-bit Binary |
|---|---|---|
| D | 68 | 01000100 |
| e | 101 | 01100101 |
| l | 108 | 01101100 |
| t | 116 | 01110100 |
| a | 97 | 01100001 |
“Delta”-এর সম্পূর্ণ binary bit string হলো:
01000100 01100101 01101100 01110100 01100001
Solution: Here, The source uses 480 x 500 pixels/picture And, 30 pictures are sent per second.
So, we can find the source rate in pixels/s as:
\[ (30 \, \text{pictures/s}) \times (480 \times 500 \, \text{pixels/picture})\] \[= 7.2 \times 10^6 \, \text{pixels/s} \]
Now, each pixel can take on one of 32 intensity values and these 32 intensity values can be represented by:
\[ \log_2 32 = \log_2 2^5 = 5 \, \text{bits} \] We can find the source rate in bits/s (bps) as:
R = \( 7.2 \times 10^6 \, \text{pixels/s} \times 5 \, \text{bits/pixel} \)
\[ = 36 \times 10^6 \, \text{bps} = 36 \, \text{Mbps} \]
source:[brainly.in]
Determine the Payload Size
The payload size is the part of a packet that excludes the header.
Payload Size = Total Packet Size − Header Size
Given:
Total Packet Size = 1500 bytes
Header Size = 5 bytes
Payload Size = 1500 − 5 = 1495 bytes
Convert Payload Size to Bits
Since data rate is given in bits per second, payload size must be converted to bits.
Payload Size (bits) = 1495 × 8 = 11,960 bits
Calculate Packetization Delay
Packetization delay is the time needed to fill a packet with data.
Packetization Delay = Packet Length (bits) / Source Data Rate
Packet Length = 12,000 bits
Source Data Rate = 128,000 bps
Packetization Delay = 12,000 / 128,000 = 0.09375 s = 93.75 ms
Calculate Transmission Time
Transmission time is the time required to send the payload over the network.
Transmission Time = Payload Size (bits) / Data Rate
Transmission Time = 11,960 / 128,000 = 0.0934375 s = 93.4375 ms
- Payload Size: 11,960 bits
- Packetization Delay: 93.75 milliseconds
- Transmission Time: 93.4375 milliseconds
Payload Size নির্ধারণ
Payload size হলো packet-এর সেই অংশ যেখানে header বাদ দেওয়া হয়।
Payload Size = Total Packet Size − Header Size
প্রদত্ত:
Total Packet Size = 1500 bytes
Header Size = 5 bytes
Payload Size = 1500 − 5 = 1495 bytes
Payload Size কে Bits-এ রূপান্তর
Data rate bits per second-এ দেওয়া থাকায় payload size bits-এ রূপান্তর করতে হবে।
Payload Size (bits) = 1495 × 8 = 11,960 bits
Packetization Delay নির্ণয়
Packetization delay হলো packet পূর্ণ হতে যে সময় লাগে।
Packetization Delay = Packet Length (bits) / Source Data Rate
Packet Length = 12,000 bits
Source Data Rate = 128,000 bps
Packetization Delay = 12,000 / 128,000 = 0.09375 s = 93.75 ms
Transmission Time নির্ণয়
Transmission time হলো payload network দিয়ে পাঠাতে যে সময় লাগে।
Transmission Time = Payload Size (bits) / Data Rate
Transmission Time = 11,960 / 128,000 = 0.0934375 s = 93.4375 ms
- Payload Size: 11,960 bits
- Packetization Delay: 93.75 milliseconds
- Transmission Time: 93.4375 milliseconds
Infrastructure as a Service (IaaS)
IaaS provides the most basic level of cloud services by offering virtualized computing resources over the internet. Organizations can rent servers, storage, and networking resources on a pay-as-you-go basis, reducing the need for physical hardware.
Examples: Amazon Web Services (AWS EC2), Microsoft Azure Virtual Machines, Google Compute Engine (GCE)
Platform as a Service (PaaS)
PaaS provides a complete development platform that allows developers to build, deploy, and manage applications without managing the underlying infrastructure. It includes operating systems, databases, and development tools.
Examples: Google App Engine, Microsoft Azure App Service, Heroku
Software as a Service (SaaS)
SaaS delivers software applications over the internet. Users can access these applications through a web browser without installing or maintaining software locally.
Examples: Google Workspace, Microsoft 365, Salesforce
Infrastructure as a Service (IaaS)
IaaS হলো cloud computing-এর সবচেয়ে মৌলিক service model, যেখানে internet-এর মাধ্যমে virtualized computing resource প্রদান করা হয়। এতে server, storage ও networking ভাড়া নিয়ে ব্যবহার করা যায়।
Examples: Amazon Web Services (AWS EC2), Microsoft Azure Virtual Machines, Google Compute Engine (GCE)
Platform as a Service (PaaS)
PaaS এমন একটি platform সরবরাহ করে যার মাধ্যমে developer-রা infrastructure পরিচালনা না করেই application তৈরি, deploy ও manage করতে পারে। এতে operating system, database ও development tools অন্তর্ভুক্ত থাকে।
Examples: Google App Engine, Microsoft Azure App Service, Heroku
Software as a Service (SaaS)
SaaS হলো এমন একটি model যেখানে software application internet-এর মাধ্যমে ব্যবহারকারীদের কাছে সরবরাহ করা হয়। ব্যবহারকারীদের আলাদা করে software install করতে হয় না।
Examples: Google Workspace, Microsoft 365, Salesforce
