Combined 3 Bank (SBL,JBL,RBL)
Post: AE(IT)/ AHME/ SO
Exam Date: 24/12/2021, Exam Taker: ANZA
(i) What is Net id and Host id?
(ii) What is network address and broadcast address?
(ii) What is network size?
(iv) If this classless IP address is used to classfull IP address what will be the class?
(i) Net ID and Host ID:
The CIDR notation /20 means the first 20 bits are for the Net ID and the remaining 12 bits are for the Host ID.
Net ID (first 20 bits): 105.38.80.0/20
Host ID (remaining 12 bits) represents the specific host in the network.
(ii) Network Address and Broadcast Address:
Network Address: Set all host bits to 0.
=>105.38.80.0 (first 20 bits).
Broadcast Address: Set all host bits to 1.
=>105.38.95.255 (last 12 bits as 1).
(iii) Network Size:
12 host bits: 2^12 = 4096 total addresses.
Usable addresses: 4096 – 2 = 4094 (since network and broadcast are reserved).
(iv) Classful IP Address:
The first octet 105 in binary is 01101001, which starts with 0.
This indicates the address is Class A (1.0.0.0 to 127.255.255.255).
Gantt Chart:


Average Time: 25/4 = 6.25

Examples
Impact: Dot matrix printer, Daisy wheel printer,
Non Impact: Inkjet printer, Laser printer

NAT (Network Address Translation) is a networking technique used in routers to translate private IP addresses into a public IP address before sending data to the Internet.
It allows multiple devices in a private network to access the Internet using a single public IP address.
Why NAT is Used
- IP Address Conservation: NAT helps save public IPv4 addresses by allowing many devices to share one public IP.
- Security: Internal private IP addresses are hidden from external networks, which increases network security.
- Internet Access: It allows devices in a private network to communicate with external networks like the Internet.
How NAT Translation Works
- A device in a private network sends a request to the Internet using its private IP address.
- The router replaces the private IP address with its own public IP address.
- The request is sent to the destination server on the Internet.
- When the response comes back, the router converts the public IP address back to the original private IP address and sends the data to the correct device.
NAT (Network Address Translation) হলো একটি networking প্রযুক্তি যা router ব্যবহার করে private IP address কে public IP address-এ রূপান্তর করে Internet-এ data পাঠানোর আগে।
এটি একটি private network-এর একাধিক device-কে একটি public IP ব্যবহার করে Internet ব্যবহার করার সুযোগ দেয়।
NAT কেন ব্যবহার করা হয়
- IP Address সংরক্ষণ: অনেক device একটি public IPv4 address ব্যবহার করতে পারে, ফলে public IP address সংরক্ষণ করা যায়।
- Security: Internal private IP address বাইরে থেকে দেখা যায় না, ফলে network-এর নিরাপত্তা বৃদ্ধি পায়।
- Internet Access: Private network-এর device গুলো Internet-এর সাথে যোগাযোগ করতে পারে।
NAT Translation কীভাবে কাজ করে
- Private network-এর একটি device তার private IP address ব্যবহার করে Internet-এ request পাঠায়।
- Router সেই private IP address-কে নিজের public IP address দিয়ে প্রতিস্থাপন করে।
- Request Internet-এর destination server-এ পাঠানো হয়।
- Server থেকে response এলে router আবার public IP-কে মূল private IP address-এ পরিবর্তন করে এবং সঠিক device-এ পাঠিয়ে দেয়।

Swapping in Operating System
Swapping is a memory management technique used by an operating system to efficiently manage the limited primary memory (RAM) and the larger but slower secondary memory such as a hard disk or SSD.
What is Swapping?
Swapping is the process of moving entire processes between primary memory (RAM) and secondary memory. When the RAM becomes full and the system needs memory to run active programs, the operating system moves some inactive or low-priority processes from RAM to secondary memory. This process is called swapping out.
Later, when the swapped-out process is required again, the operating system brings the process back into RAM from secondary memory. This process is called swapping in.
Through this back-and-forth movement of processes between RAM and secondary memory, the operating system can run more processes than the physical memory can normally support.
Operating System-এ Swapping
Swapping হলো একটি memory management technique যা operating system ব্যবহার করে সীমিত primary memory (RAM) এবং তুলনামূলক বড় কিন্তু ধীর secondary memory (hard disk বা SSD) দক্ষভাবে পরিচালনা করতে।
Swapping কী?
Swapping হলো এমন একটি প্রক্রিয়া যেখানে সম্পূর্ণ process-কে primary memory (RAM) এবং secondary memory-এর মধ্যে স্থানান্তর করা হয়। যখন RAM পূর্ণ হয়ে যায় এবং নতুন program চালানোর জন্য memory প্রয়োজন হয়, তখন operating system কিছু inactive বা কম গুরুত্বপূর্ণ process-কে RAM থেকে secondary memory-তে সরিয়ে দেয়। এই প্রক্রিয়াকে swapping out বলা হয়।
পরে যখন সেই process আবার প্রয়োজন হয়, তখন operating system সেটিকে secondary memory থেকে আবার RAM-এ নিয়ে আসে। এই প্রক্রিয়াকে swapping in বলা হয়।
এইভাবে RAM এবং secondary memory-এর মধ্যে process আদান-প্রদানের মাধ্যমে operating system একসাথে অনেকগুলো process পরিচালনা করতে পারে।

