Check Slide

DHCP

Automated IP address maintainer. Who will give IP address to a device and take it back when they do not renew the lease. Using DORA they obtain new IP address. But during renewal of lease it uses only RA

  1. Why DHCP Request is Broadcast during obtaining new IP address and unicast while renewal?
    1. One network can have multiple DHCP server, when the client obtaining IP address it will let every other DHCP server know that he is taking the IP address from that particular server, so that other DHCP server don't reply to it's query in the future. But while renewal every other DHCP server already knows that, this particular device is taking the IP address from that DHCP server. So sending broadcast message to let every other DHCP server know is unnecessary in this case.
  2. When DHCP server sends negative bit to the client?
    1. একেবারে টাইম লিমিটের শেষ মুহূর্তে, যখন ক্লায়েন্ট রিনিউয়ালের রিকুয়েস্ট পাঠাই, আর এই রিকুয়েস্ট সার্ভারে পৌছানোর আগেই যদি টাইম শেষ হয়ে যাই এবং ওই পার্টিকুলার আইপিটা অন্য কোনো ক্লায়েন্টকে দিয়ে দেওয়া হয়, তখন সার্ভার এই ক্লায়েন্টকে নেগেটিভ বিট পাঠায়ে, এই সেইম আইপি রিনিউ করতে পারবে না বলে জানাই, তখন ডিভাইস অন্য আরেকটা আইপি দিতে বলে আর সার্ভার আরেকটা আইপি দিয়ে দেয়।

DHCP Relay

If the client is on one network and DHCP server is on other network, then the IP obtaining broadcast won't pass through the router, as router do not pass broadcast message. To solve this issue, DHCP relay introduced. Here, if the router receive any broadcaset message then it will forward it to the DHCP server. To setup this use ip helper address command.

NAT

Private to public address. If you think of it, it does nothing by itself. Cause here multiple device can't access the internet at the same time.

PAT

Making NAT usable by changing the port. Our public ip address might be the same but as the port is different so multiple device can access the internet just by tweaking the port address

Port forwarding

বাকিগুলার জন্য ক্লায়েন্ট কানেকশন রিকু দিচ্ছিলো, আর সেটার রিপ্লাই পাচ্ছিলো, বাট কেউ যদি বাইরে থেকে ক্লায়েন্টকে এক্সেস করতে চাই, ক্লায়েন্টের কোনো ধরনের রিকুয়েস্ট পাঠানো ছাড়াই, তখন ইউজ হয় পোর্ট ফরোয়ার্ডিং।

Basically it tells the router explicitly that, if you receive any request in this port, then transfer that to PC ASAP.