IP Addresses
Every letter needs an address on the envelope, or the post office cannot deliver it. On a network, the IP address is that address. Each message is split into small packets, and each packet carries the address of the sender and the address of the receiver.
5 min read5 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 4 sources4টি সোর্স · updated Nov 2026আপডেট: Nov 2026
A packet counts down its TTLএকটা প্যাকেট তার TTL গুনে নামে
Send a packet across three routers and watch the TTL drop. Lower the start value and see where it dies.তিনটা রাউটারের ভেতর দিয়ে একটা প্যাকেট পাঠান আর TTL কমতে দেখুন। শুরুর মান কমান আর দেখুন সে কোথায় মরে।
You’ll learnআপনি শিখবেন
- Each router lowers the TTLপ্রতিটা রাউটার TTL কমায়
- The sender sets the start TTLশুরুর TTL ঠিক করে সেন্ডার✓
- A small TTL can die on the wayছোট TTL পথেই মরতে পারে
- Why a lost packet cannot loop foreverহারানো প্যাকেট কেন চিরকাল ঘোরে না
In plain words
An IP address is a number that names a device on a network, so that other devices can send packets to it. The Internet Protocol puts a source address and a destination address in the header of each packet Source 1সোর্স 1.
There are two versions in use:
- IPv4 uses 32 bits (four octets) for an address Source 1সোর্স 1. In this tutorial's own words, people usually write the four octets as decimal numbers with dots, for example
192.168.1.10. RFC 1918 writes its ranges in this form Source 3সোর্স 3. - IPv6 uses 128 bits Source 2সোর্স 2. People write it as eight groups of one to four hexadecimal digits with colons, for example
2001:db8:0:0:8:800:200c:417aSource 4সোর্স 4.
An IPv6 address is long, so the notation has two short forms. You can drop the leading zeros in a group Source 4সোর্স 4. You can also write :: for one or more groups of zeros, but only once in an address Source 4সোর্স 4. So 2001:db8:0:0:8:800:200c:417a can become 2001:db8::8:800:200c:417a.
One device can have more than one address. A host can use several addresses, and it can have several network interfaces Source 1সোর্স 1.
সহজ English
An IP address is a number that names a device on a network. Other devices use it to send packets to that device. The Internet Protocol puts a source address and a destination address in the header of each packet Source 1সোর্স 1.
Two versions are in use:
- IPv4 uses 32 bits (four octets) for an address Source 1সোর্স 1. In this tutorial's own words, people usually write the four octets as decimal numbers with dots, for example
192.168.1.10. RFC 1918 writes its ranges in this form Source 3সোর্স 3. - IPv6 uses 128 bits Source 2সোর্স 2. People write it as eight groups of one to four hexadecimal digits with colons, for example
2001:db8:0:0:8:800:200c:417aSource 4সোর্স 4.
An IPv6 address is long, so the notation has two short forms. You can drop the leading zeros in a group Source 4সোর্স 4. You can also write :: for one or more groups of zeros. You can do this only once in an address Source 4সোর্স 4. So 2001:db8:0:0:8:800:200c:417a can become 2001:db8::8:800:200c:417a.
One device can have more than one address. A host can use several addresses, and it can have several network interfaces Source 1সোর্স 1.
বাংলা ব্যাখ্যা
IP অ্যাড্রেস (IP address) হলো একটি সংখ্যা, যা নেটওয়ার্কে একটি ডিভাইসকে চিহ্নিত করে। অন্য ডিভাইস এটি ব্যবহার করে সেই ডিভাইসে প্যাকেট পাঠায়। Internet Protocol প্রতিটি প্যাকেটের হেডারে একটি সোর্স অ্যাড্রেস আর একটি ডেস্টিনেশন অ্যাড্রেস রাখে Source 1সোর্স 1।
দুটি ভার্সন ব্যবহার হয়:
- IPv4 একটি অ্যাড্রেসের জন্য 32 বিট (চারটি অক্টেট, octet) ব্যবহার করে Source 1সোর্স 1। এই টিউটোরিয়ালের নিজের কথায়, মানুষ সাধারণত চারটি অক্টেটকে ডট দিয়ে দশমিক সংখ্যা হিসেবে লেখে, যেমন
192.168.1.10। RFC 1918 তার রেঞ্জগুলো এই রূপেই লেখে Source 3সোর্স 3। - IPv6 128 বিট ব্যবহার করে Source 2সোর্স 2। মানুষ এটি কোলন দিয়ে আলাদা করা আটটি গ্রুপ হিসেবে লেখে, প্রতিটি গ্রুপে এক থেকে চারটি হেক্সাডেসিমাল অঙ্ক থাকে, যেমন
2001:db8:0:0:8:800:200c:417aSource 4সোর্স 4।
IPv6 অ্যাড্রেস লম্বা, তাই এর নোটেশনে দুটি সংক্ষিপ্ত রূপ আছে। একটি গ্রুপের শুরুর শূন্য বাদ দেওয়া যায় Source 4সোর্স 4। এক বা একাধিক শূন্য গ্রুপের জায়গায় :: লেখা যায়, কিন্তু একটি অ্যাড্রেসে মাত্র একবার Source 4সোর্স 4। তাই 2001:db8:0:0:8:800:200c:417a হতে পারে 2001:db8::8:800:200c:417a।
একটি ডিভাইসের একাধিক অ্যাড্রেস থাকতে পারে। একটি হোস্ট কয়েকটি অ্যাড্রেস ব্যবহার করতে পারে, আর তার কয়েকটি নেটওয়ার্ক ইন্টারফেস থাকতে পারে Source 1সোর্স 1।
When you need it
You meet IP addresses every time one machine must find another one: a browser that calls a web server, a test runner that calls an API, or a service that calls a database. People usually type a name, and the system turns the name into an address before it sends the first packet.
সহজ English
You meet IP addresses every time one machine must find another one. Examples are a browser that calls a web server, a test runner that calls an API, or a service that calls a database. People usually type a name. The system turns the name into an address before it sends the first packet.
বাংলা ব্যাখ্যা
যতবার একটি মেশিনকে আরেকটি মেশিন খুঁজে নিতে হয়, ততবার আপনি IP অ্যাড্রেসের সামনে পড়েন। যেমন ওয়েব সার্ভারকে কল করা ব্রাউজার, API-কে কল করা টেস্ট রানার, বা ডেটাবেসকে কল করা সার্ভিস। মানুষ সাধারণত একটি নাম লেখে। প্রথম প্যাকেট পাঠানোর আগে সিস্টেম সেই নামকে অ্যাড্রেসে বদলে নেয়।
How it works
An address has two jobs. It says who the device is on the network, and it gives routers a way to decide where to send the packet next.
Each router that forwards a packet lowers a counter in the header. In IPv4 this field is the Time to Live (TTL). A packet is destroyed when the TTL reaches zero Source 1সোর্স 1. In IPv6 the same field is the Hop Limit. Each forwarding node lowers it by one, and the packet is discarded when it reaches zero Source 2সোর্স 2. IPv6 renamed the field, because it does not need to count time Source 2সোর্স 2. The counter stops a lost packet from travelling forever.
Test runner Web server
10.0.1.15 --> router --> router --> router --> 203.0.113.20
TTL 63 TTL 62 TTL 61The numbers in the diagram are examples. The sender sets the TTL Source 1সোর্স 1.
IPv6 has three kinds of address. A unicast address names one interface Source 4সোর্স 4. A multicast address names a group of interfaces Source 4সোর্স 4. An anycast address names a group too, but a packet goes to only one of them, the nearest one Source 4সোর্স 4. IPv6 has no broadcast address, because multicast does that job Source 4সোর্স 4.
সহজ English
An address has two jobs. It says who the device is on the network. It also gives routers a way to decide where to send the packet next.
Each router that forwards a packet lowers a counter in the header. In IPv4 this field is the Time to Live (TTL). A packet is destroyed when the TTL reaches zero Source 1সোর্স 1. In IPv6 the same field is the Hop Limit. Each forwarding node lowers it by one. The packet is discarded when it reaches zero Source 2সোর্স 2. IPv6 renamed the field, because it does not need to count time Source 2সোর্স 2. The counter stops a lost packet from travelling forever.
For example, a packet goes from a test runner at 10.0.1.15 through three routers to a web server at 203.0.113.20. The TTL goes down at each router. The numbers in this example are only examples. The sender sets the TTL Source 1সোর্স 1.
IPv6 has three kinds of address. A unicast address names one interface Source 4সোর্স 4. A multicast address names a group of interfaces Source 4সোর্স 4. An anycast address names a group too. But a packet goes to only one of them, the nearest one Source 4সোর্স 4. IPv6 has no broadcast address, because multicast does that job Source 4সোর্স 4.
বাংলা ব্যাখ্যা
একটি অ্যাড্রেসের দুটি কাজ। এটি বলে নেটওয়ার্কে ডিভাইসটি কে। আর এটি রাউটারকে সিদ্ধান্ত নিতে সাহায্য করে যে প্যাকেট পরে কোথায় পাঠাতে হবে।
যে রাউটার একটি প্যাকেট ফরওয়ার্ড করে, সে হেডারের একটি কাউন্টার কমায়। IPv4-এ এই ফিল্ড হলো Time to Live (TTL)। TTL শূন্য হলে প্যাকেট নষ্ট করে দেওয়া হয় Source 1সোর্স 1। IPv6-এ একই ফিল্ড হলো Hop Limit। প্রতিটি ফরওয়ার্ডিং নোড এটি এক করে কমায়, আর শূন্য হলে প্যাকেট বাতিল হয় Source 2সোর্স 2। IPv6 ফিল্ডটির নাম বদলেছে, কারণ এর সময় গোনার দরকার নেই Source 2সোর্স 2। এই কাউন্টার একটি হারিয়ে যাওয়া প্যাকেটকে চিরকাল ঘুরতে দেয় না।
উদাহরণ হিসেবে, একটি প্যাকেট 10.0.1.15-এর টেস্ট রানার থেকে তিনটি রাউটার পার হয়ে 203.0.113.20-এর ওয়েব সার্ভারে যায়। প্রতিটি রাউটারে TTL কমে। এই উদাহরণের সংখ্যাগুলো শুধু উদাহরণ। TTL ঠিক করে সেন্ডার (sender) Source 1সোর্স 1।
IPv6-এ তিন ধরনের অ্যাড্রেস আছে। Unicast অ্যাড্রেস একটি ইন্টারফেসকে চিহ্নিত করে Source 4সোর্স 4। Multicast অ্যাড্রেস একদল ইন্টারফেসকে চিহ্নিত করে Source 4সোর্স 4। Anycast অ্যাড্রেসও একদলকে চিহ্নিত করে, কিন্তু প্যাকেট যায় তাদের মধ্যে শুধু একটির কাছে, যেটি সবচেয়ে কাছে Source 4সোর্স 4। IPv6-এ broadcast অ্যাড্রেস নেই, কারণ multicast সেই কাজটি করে Source 4সোর্স 4।
A real-life example
A learning platform runs a web server and a database in a company network. The database server has the address 10.0.2.30. The whole 10.0.0.0 to 10.255.255.255 range is reserved for private networks, and so are 172.16.0.0 to 172.31.255.255 and 192.168.0.0 to 192.168.255.255 Source 3সোর্স 3. An organization can use these ranges without asking anybody Source 3সোর্স 3. The same private address can exist in many different companies, because it must be unique only inside one organization or a group of organizations that agree to share the space Source 3সোর্স 3.
This suits the database, because a host that does not need access to the Internet at large can use a private address Source 3সোর্স 3. A host that must talk to the outside needs a globally unique address Source 3সোর্স 3. So the web server gets a public address, and the database keeps its private one.
সহজ English
A learning platform runs a web server and a database in a company network. The database server has the address 10.0.2.30. Three ranges are reserved for private networks: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255 Source 3সোর্স 3. An organization can use these ranges without asking anybody Source 3সোর্স 3. The same private address can exist in many different companies. It must be unique only inside one organization or a group of organizations that agree to share the space Source 3সোর্স 3.
This suits the database. A host that does not need access to the Internet at large can use a private address Source 3সোর্স 3. A host that must talk to the outside needs a globally unique address Source 3সোর্স 3. So the web server gets a public address, and the database keeps its private one.
বাংলা ব্যাখ্যা
একটি লার্নিং প্ল্যাটফর্ম একটি কোম্পানির নেটওয়ার্কে একটি ওয়েব সার্ভার আর একটি ডেটাবেস চালায়। ডেটাবেস সার্ভারের অ্যাড্রেস 10.0.2.30। তিনটি রেঞ্জ প্রাইভেট নেটওয়ার্কের জন্য সংরক্ষিত: 10.0.0.0 থেকে 10.255.255.255, 172.16.0.0 থেকে 172.31.255.255, এবং 192.168.0.0 থেকে 192.168.255.255 Source 3সোর্স 3। কোনো প্রতিষ্ঠান কাউকে জিজ্ঞেস না করেই এই রেঞ্জগুলো ব্যবহার করতে পারে Source 3সোর্স 3। একই প্রাইভেট অ্যাড্রেস অনেক ভিন্ন কোম্পানিতে থাকতে পারে। এটি শুধু একটি প্রতিষ্ঠানের ভেতরে, বা যেসব প্রতিষ্ঠান স্পেসটি ভাগ করতে রাজি তাদের গোষ্ঠীর ভেতরে, ইউনিক হলেই চলে Source 3সোর্স 3।
এটি ডেটাবেসের জন্য মানানসই। যে হোস্টকে পুরো ইন্টারনেটে অ্যাক্সেস পেতে হয় না, সে প্রাইভেট অ্যাড্রেস ব্যবহার করতে পারে Source 3সোর্স 3। যে হোস্টকে বাইরের সাথে কথা বলতে হয়, তার গ্লোবালি ইউনিক অ্যাড্রেস লাগে Source 3সোর্স 3। তাই ওয়েব সার্ভার একটি পাবলিক অ্যাড্রেস পায়, আর ডেটাবেস তার প্রাইভেট অ্যাড্রেসই রাখে।
Common mistakes
- Treating an address as a name. An address can change when a server moves. Use the name in configuration, and let the system find the address.
- Mixing up the two versions. A test that checks an address with a pattern for four dotted numbers fails on IPv6, which has colons and up to 128 bits Source 2সোর্স 2.
- Writing an IPv6 address in one way only.
2001:db8::1and2001:db8:0:0:0:0:0:1are the same address. Compare addresses after you convert them to one form, not as plain text Source 4সোর্স 4. - Using
::twice. The short form is allowed only once in an address, so2001::db8::1is not valid Source 4সোর্স 4. - Sending a private address to the outside. A private range is unique only inside one organization or a group of organizations that agree to share the space, so a public service cannot use it to find your machine Source 3সোর্স 3.
- Thinking that localhost can reach other machines. The IPv6 loopback address
::1is for a node that talks to itself. A packet to it never leaves the node Source 4সোর্স 4.
সহজ English
- Treating an address as a name. An address can change when a server moves. Use the name in configuration. Let the system find the address.
- Mixing up the two versions. A test that checks an address with a pattern for four dotted numbers fails on IPv6. IPv6 has colons and up to 128 bits Source 2সোর্স 2.
- Writing an IPv6 address in one way only.
2001:db8::1and2001:db8:0:0:0:0:0:1are the same address. Convert addresses to one form before you compare them. Do not compare plain text Source 4সোর্স 4. - Using
::twice. The short form is allowed only once in an address. So2001::db8::1is not valid Source 4সোর্স 4. - Sending a private address to the outside. A private range is unique only inside one organization or a group of organizations that agree to share the space. So a public service cannot use it to find your machine Source 3সোর্স 3.
- Thinking that localhost can reach other machines. The IPv6 loopback address
::1is for a node that talks to itself. A packet to it never leaves the node Source 4সোর্স 4.
বাংলা ব্যাখ্যা
- অ্যাড্রেসকে নাম মনে করা। সার্ভার সরলে অ্যাড্রেস বদলাতে পারে। কনফিগারেশনে নাম ব্যবহার করুন, আর সিস্টেমকে অ্যাড্রেস খুঁজে নিতে দিন।
- দুটি ভার্সন গুলিয়ে ফেলা। যে টেস্ট চারটি ডট-দেওয়া সংখ্যার প্যাটার্ন দিয়ে অ্যাড্রেস যাচাই করে, সেটি IPv6-এ ফেইল করে। IPv6-এ কোলন আছে আর 128 বিট পর্যন্ত থাকে Source 2সোর্স 2।
- IPv6 অ্যাড্রেস শুধু একভাবে লেখা।
2001:db8::1আর2001:db8:0:0:0:0:0:1একই অ্যাড্রেস। অ্যাড্রেস তুলনা করার আগে সেগুলোকে একই রূপে বদলে নিন, সাধারণ টেক্সট হিসেবে তুলনা করবেন না Source 4সোর্স 4। ::দুবার ব্যবহার করা। সংক্ষিপ্ত রূপ একটি অ্যাড্রেসে মাত্র একবার অনুমোদিত। তাই2001::db8::1বৈধ নয় Source 4সোর্স 4।- প্রাইভেট অ্যাড্রেস বাইরে পাঠানো। প্রাইভেট রেঞ্জ শুধু একটি প্রতিষ্ঠানের ভেতরে, বা যেসব প্রতিষ্ঠান স্পেসটি ভাগ করতে রাজি তাদের গোষ্ঠীর ভেতরে, ইউনিক। তাই কোনো পাবলিক সার্ভিস সেটি দিয়ে আপনার মেশিন খুঁজে পেতে পারে না Source 3সোর্স 3।
- ভাবা যে localhost অন্য মেশিনে পৌঁছাতে পারে। IPv6 loopback অ্যাড্রেস
::1সেই নোডের জন্য, যে নিজের সাথে কথা বলে। এতে পাঠানো প্যাকেট কখনো নোড ছেড়ে বের হয় না Source 4সোর্স 4।
What a tester can check
Tutorial advice
This advice is the tutorial's own. It does not come from the sources.
- Test an input field for an address with valid and invalid values: a short IPv4 value, a number above 255, an IPv6 value with
::and one with two::. - Run the same test on IPv4 and on IPv6, if the system supports both.
- Check that logs, reports, and database columns can store a long IPv6 address.
- Never use a private address as a public link in an email or a report.
- If a request fails, check the address first: is it the right one, and is the network path open?
সহজ English
This advice is the tutorial's own. It does not come from the sources.
- Test an input field for an address with valid and invalid values. Use a short IPv4 value, a number above 255, an IPv6 value with
::, and one with two::. - Run the same test on IPv4 and on IPv6, if the system supports both.
- Check that logs, reports, and database columns can store a long IPv6 address.
- Never use a private address as a public link in an email or a report.
- If a request fails, check the address first. Is it the right one? Is the network path open?
বাংলা ব্যাখ্যা
এই পরামর্শ টিউটোরিয়ালের নিজস্ব। এটি সোর্স থেকে আসেনি।
- অ্যাড্রেসের একটি ইনপুট ফিল্ড ভ্যালিড আর ইনভ্যালিড মান দিয়ে টেস্ট করুন। একটি ছোট IPv4 মান, 255-এর বেশি একটি সংখ্যা,
::সহ একটি IPv6 মান এবং দুটি::সহ একটি মান ব্যবহার করুন। - সিস্টেম দুটি ভার্সনই সাপোর্ট করলে একই টেস্ট IPv4 আর IPv6 দুটিতেই চালান।
- লগ, রিপোর্ট আর ডেটাবেস কলাম একটি লম্বা IPv6 অ্যাড্রেস রাখতে পারে কি না যাচাই করুন।
- ইমেইল বা রিপোর্টে কখনো প্রাইভেট অ্যাড্রেসকে পাবলিক লিংক হিসেবে ব্যবহার করবেন না।
- কোনো রিকুয়েস্ট ফেইল করলে আগে অ্যাড্রেস দেখুন। এটি কি সঠিক অ্যাড্রেস? নেটওয়ার্কের পথ কি খোলা?
Key words
| Word | Meaning |
|---|---|
| IP address | A number that names a device on a network |
| IPv4 | The version with 32-bit addresses Source 1সোর্স 1 |
| IPv6 | The version with 128-bit addresses Source 2সোর্স 2 |
| Private address | An address from a reserved range that is unique only inside one organization or a group of organizations that agree to share the space Source 3সোর্স 3 |
| TTL / Hop Limit | A counter in the packet header. Each router lowers it, and the packet is dropped at zero Source 1সোর্স 1 Source 2সোর্স 2 |
| Loopback | An address that a node uses to send a packet to itself, ::1 in IPv6 Source 4সোর্স 4 |
| Link-local | An IPv6 address, from FE80::/10, that is valid on one link only. Routers do not forward its packets Source 4সোর্স 4 |
| Unicast, anycast, multicast | IPv6 kinds of address for one interface, the nearest of a group, and a whole group Source 4সোর্স 4 |