<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nayantha Hansajith on Medium]]></title>
        <description><![CDATA[Stories by Nayantha Hansajith on Medium]]></description>
        <link>https://medium.com/@nayanthahansajith?source=rss-8f871711b6bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VqltyH2PyfHO3lFtaDiGQA.png</url>
            <title>Stories by Nayantha Hansajith on Medium</title>
            <link>https://medium.com/@nayanthahansajith?source=rss-8f871711b6bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:30:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nayanthahansajith/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Subnetting in Computer Networking | A Simple Practical Explanation.]]></title>
            <link>https://medium.com/@nayanthahansajith/understanding-subnetting-in-computer-networking-a-simple-practical-explanation-f664bc06f7e3?source=rss-8f871711b6bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f664bc06f7e3</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[subnetting]]></category>
            <category><![CDATA[ip-address]]></category>
            <dc:creator><![CDATA[Nayantha Hansajith]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 18:04:21 GMT</pubDate>
            <atom:updated>2026-08-13T18:04:21.737Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ysoFSGmz7P3aJzCOnOMOQQ.png" /></figure><p>What would happen if a large building had no separate rooms and was just one huge hall? Everyone’s sounds and activities would mix together, creating a big mess, and no one would be able to work freely. However, if walls were built in the middle of that hall and it was divided into several smaller rooms, the work inside each room could be carried out in a much more organized, controlled, and secure manner. In computer networking, Subnetting is something similar to this. Simply put, Subnetting is the technique of dividing a large computer network (IP Network) into several smaller sub-networks (Subnets) so that the network can be managed more efficiently, securely, and easily. By doing this, unnecessary data traffic within the network can be reduced and speed can be improved, while also preventing IP addresses from being wasted and increasing network security. For example, in a large company, the network can be divided into separate networks for departments such as IT, HR, Finance, Admin, and Marketing.</p><p>Let’s take a sample IP address: 192.168.1.25. This clearly has four parts. They are the 192 part, the 168 part, the 1 part, and the 25 part. Each of these parts is made up of 8 bits, making a total of 32 bits. In 192.168.1.25 / 24, which is an IPv4 address, 192.168.1 is the network portion. The last part, .25, is the host portion. /24 is called CIDR notation. Here, its value is 24. This means that out of the total 32 bits, 24 bits belong to the network portion. Therefore, the remaining 8 bits belong to the host portion. That means 28 = 256 addresses are available for this IP address. This means that the network ranges from 192.168.1.0 to 192.168.1.255, giving a total of 256 IP addresses. However, we cannot actually use all of them for devices. This is because two IP addresses are reserved for two special purposes. They are:</p><p>192.168.1.0 — Network IP</p><p>192.168.1.255 — Broadcast IP</p><p>After removing those two addresses, 254 hosts can be connected using 192.168.1.1 to 192.168.1.254.</p><p>The difference between a Subnet and a Subnet Mask is that a Subnet is a particular portion of a network, while a Subnet Mask is the value used to identify the boundary of that network. In the 192.168.1.0/24 subnet, the subnet mask is 255.255.255.0. Similarly, the CIDR Notation is the value placed at the end of an IP address. Here, CIDR stands for Classless Inter-Domain Routing. In the IP address 192.168.1.0 / 24, the /24 part indicates that 24 bits of this IP address belong to the network portion. Therefore, only the remaining 8 bits belong to the host portion. That means 254 devices can be connected to that network. Two more IP addresses are reserved for the Network Address and Broadcast Address. As another example, in 192.168.1.0 / 28, out of the 32 bits, the first 28 bits belong to the Network Portion, while only 4 bits belong to the Host Portion. 2⁴ = 16. This means that 14 devices can be connected to this network (however, practically, all 14 cannot be connected because one address is reserved for the Gateway). Two more IP addresses are reserved for the Network Address and Broadcast Address.</p><p>Let’s look at this using an example. A company has 4 departments and one LAB. The IT department has 6 PCs, the Finance Department has 8 PCs, the HR Department has 12 PCs, the Admin department has 8 PCs, and the LAB has 30 PCs. For this, let’s use 5 VLANs and 5 subnets for these five sections.</p><p>First, let’s look at the LAB. It has 30 PCs. First, let’s determine how many Host Bits are required to connect 30 PCs. Let’s initially take 4 Host Bits. Then, 2⁴ = 16. This means we cannot connect 30 PCs. Next, let’s look at 5 Host Bits. Then, 25 = 32. This provides enough IP addresses for 30 PCs, the Network Address, and the Broadcast Address. However, there will not be enough addresses for the Gateway. Next, let’s look at 6 Host Bits. Then, 2⁶ = 64. This means there are enough IP addresses for 30 PCs, the Gateway, the Network Address, and the Broadcast Address. Additional PCs can also be connected if required. Therefore, 6 Host Bits are required for this network. 32–6 = 26. That means 26 bits are allocated to the Network Portion. Therefore, we can assign the 192.168.1.0 / 26 network to this. 2⁶ = 64. The maximum value of one octet in a subnet mask is 256. 256–64 = 192. Therefore, the subnet mask of this network is 255.255.255.192. This allows us to find the Block Size. The Block Size is 256–192 = 64. Now, when assigning IP addresses to this network, we can use the range from 192.168.1.0 to 192.168.1.63. From this:</p><p>192.168.1.0 — Network Address</p><p>192.168.1.1 — First IP</p><p>192.168.1.62 — Last IP</p><p>192.168.1.63 — Broadcast Address</p><p>Next, let’s look at the HR Department. It has 12 PCs. First, let’s determine how many Host Bits are required to connect 12 PCs. Let’s initially take 3 Host Bits. Then, 2³ = 8. This means we cannot connect 12 PCs. Next, let’s look at 4 Host Bits. Then, 2⁴ = 16. This provides enough IP addresses for 12 PCs, the Gateway, the Network Address, and the Broadcast Address. Additional 2 PCs can be connected if required (Usable IPs = 16–2 = 14). Therefore, 4 Host Bits are required for this. 32–4 = 28. That means 28 bits are allocated to the Network Portion. Therefore, we can assign the 192.168.1.64 / 28 network to this. 2⁴ = 16. The maximum value of one octet in a subnet mask is 256. 256–16 = 240. Therefore, the subnet mask of this network is 255.255.255.240. This also allows us to find the Block Size. The Block Size is 256–240 = 16. Now, when assigning IP addresses to this network, we can use the range from 192.168.1.64 to 192.168.1.79. From this:</p><p>192.168.1.64 — Network Address</p><p>192.168.1.65 — First IP</p><p>192.168.1.78 — Last IP</p><p>192.168.1.79 — Broadcast Address</p><p>Next, let’s look at the Finance Department. It has 8 PCs. First, let’s determine how many Host Bits are required to connect 8 PCs. Let’s initially look at 4 Host Bits. Then, 2⁴ = 16. This provides enough IP addresses for 8 PCs, the Gateway, the Network Address, and the Broadcast Address. Therefore, 4 Host Bits are required for this. 32–4 = 28. That means 28 bits are allocated to the Network Portion. Therefore, we can assign the 192.168.1.80 / 28 network to this. 2⁴ = 16. The maximum value of one octet in a subnet mask is 256. 256–16 = 240. Therefore, the subnet mask of this network is 255.255.255.240. This also allows us to find the Block Size. The Block Size is 256–240 = 16. Now, when assigning IP addresses to this network, we can use the range from 192.168.1.80 to 192.168.1.95. From this:</p><p>192.168.1.80 — Network Address</p><p>192.168.1.81 — First IP</p><p>192.168.1.94 — Last IP</p><p>192.168.1.95 — Broadcast Address</p><p>Next, let’s look at the Admin department, which has 8 PCs. First, let’s determine how many Host Bits are required to connect 8 PCs. Let’s look at 4 Host Bits. Then, 2⁴ = 16. This provides enough IP addresses for 8 PCs, the Gateway, the Network Address, and the Broadcast Address. Therefore, 4 Host Bits are required for this. 32–4 = 28. That means 28 bits are allocated to the Network Portion. Therefore, we can assign the 192.168.1.96 / 28 network to this. 2⁴ = 16. The maximum value of one octet in a subnet mask is 256. 256–16 = 240. Therefore, the subnet mask of this network is 255.255.255.240. The Block Size is 256–240 = 16. Now, when assigning IP addresses to this network, we can use the range from 192.168.1.96 to 192.168.1.111. From this:</p><p>192.168.1.96 — Network Address</p><p>192.168.1.97 — First IP</p><p>192.168.1.110 — Last IP</p><p>192.168.1.111 — Broadcast Address</p><p>The IT Department has 6 PCs. First, let’s determine how many Host Bits are required to connect 6 PCs. Let’s initially take 3 Host Bits. Then, 2³ = 8. This provides enough IP addresses for 6 PCs, the Network Address, and the Broadcast Address. However, there will not be enough addresses for the Gateway (8–2 = 6 Usable IPs). Next, let’s look at 4 Host Bits. Then, 2⁴ = 16. This means there are enough IP addresses for 6 PCs, the Gateway, the Network Address, and the Broadcast Address. Therefore, 4 Host Bits are required for this. 32–4 = 28. That means 28 bits are allocated to the Network Portion. Therefore, we can assign the 192.168.1.112 / 28 network to this. 2⁴ = 16. The maximum value of one octet in a subnet mask is 256. 256–16 = 240. Therefore, the subnet mask of this network is 255.255.255.240. This allows us to find the Block Size. The Block Size is 256–240 = 16. Now, when assigning IP addresses to this network, we can use the range from 192.168.1.112 to 192.168.1.127. From this:</p><p>192.168.1.112 — Network Address</p><p>192.168.1.113 — First IP</p><p>192.168.1.126 — Last IP</p><p>192.168.1.127 — Broadcast Address</p><p>By using Subnetting technology correctly in this way, an organization’s computer network can be divided and organized in a very systematic, simple, secure, and efficient manner. By minimizing the wastage of IP addresses, controlling unnecessary traffic, and improving the overall speed and performance of the entire network, this practical method provides significant support for achieving an efficient and well-organized network.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f664bc06f7e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Actually Happens When You Connect to a Wi-Fi Network?]]></title>
            <link>https://medium.com/@nayanthahansajith/what-actually-happens-when-you-connect-to-a-wi-fi-network-99b4cfb23f59?source=rss-8f871711b6bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/99b4cfb23f59</guid>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[it]]></category>
            <dc:creator><![CDATA[Nayantha Hansajith]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 14:46:10 GMT</pubDate>
            <atom:updated>2026-08-01T14:46:10.848Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What Actually Happens When You Connect to a Wi-Fi Network? — Understanding the 4-Way Handshake Simply</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVXGLVT-1J3bMBiZcTmeOw.png" /></figure><p>All of us connect to Wi-Fi networks several times a day. Connecting to a home Wi-Fi router, an office network, a university Wi-Fi, or a public hotspot has become a normal thing today. But something many people don’t know is how our data actually gets protected after we connect to a Wi-Fi network.</p><p>Let’s imagine a Laptop, a Phone, a Smart TV, and several other Devices are connected to the same Wi-Fi Router. Since the Router uses a Wireless Signal, when it sends a Data Packet, that Signal reaches every Device within the Router’s Range. This raises a question.</p><p><strong>If the Data going to one Device within the same router also reaches another Device, why can’t they read it?</strong></p><p>The answer to this question is Wi-Fi Encryption, and the process used for it, the 4-Way Handshake.</p><p><strong>What is a 4-Way Handshake?</strong></p><p>Simply put, the 4-Way Handshake is the Key Exchange and Authentication process carried out between a Wi-Fi Router and a Device trying to connect to it, before starting secure communication. This process has two main purposes.</p><p>• Confirming that the Device knows the correct Wi-Fi Password.</p><p>• Creating an Encryption Key known only to both parties.</p><p>The most important thing is that the Wi-Fi Password is never sent through the air at any point. So the Password cannot be found simply by capturing a Packet and looking at it directly.</p><p><strong>Does the Encryption Key get created directly from the Wi-Fi Password?</strong></p><p>Many people think the Encryption Key is created directly using the Wi-Fi Password. But what actually happens is a bit different from that. First, the Wi-Fi Password entered by the User and the Network Name (SSID) are used to create a Master Key called the PMK (Pairwise Master Key). The specific process of deriving the PMK from the Wi-Fi Password is called PBKDF2 (Password-Based Key Derivation Function 2). Using your Wi-Fi password + the Router’s name (SSID), the PBKDF2 mechanism applies the HMAC-SHA1 Hash algorithm and puts the password through 4,096 iterations of hashing. The resulting complex Key of 64 characters (256 Bits) is called the PMK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*09IlWvzIYz7jRaGGQVa86w.png" /></figure><p>This PMK can be generated in the same way by both the Router and the Device trying to connect. From there, the 4-Way Handshake begins.</p><p><strong>What are PMK, PTK, and GTK?</strong></p><p>To understand the 4-Way Handshake, you need a little understanding of these three Keys.</p><ol><li>PMK (Pairwise Master Key)</li></ol><p>This is the Master Key obtained from the Wi-Fi Password. It’s used to create the other Keys during the Handshake.</p><ol><li>PTK (Pairwise Transient Key)</li></ol><p>This is a Unique Encryption Key used only between the Router and one specific Device. For example,</p><p>• Router ↔ Phone = PTK 1</p><p>• Router ↔ Laptop = PTK 2</p><p>• Router ↔ Smart TV = PTK 3</p><p>All three of these Keys are different from each other. So Data sent to the Phone can’t be read by the Laptop. Data sent to the Laptop can’t be read by the Smart TV either.</p><ol><li>GTK (Group Temporal Key)</li></ol><p>This is a Key used in common by all Devices connected to the Router. That is, this is the Key the Router uses to Encrypt messages it sends in common to all Devices connected to that router. This is mainly used to Encrypt data that needs to go to all Devices, such as:</p><p>• Broadcast Traffic</p><p>• Multicast Traffic</p><p>• ARP Messages</p><p>• Some Network Announcements</p><p><strong>What is used to create the PTK?</strong></p><p>The PTK is not created from the Password alone. The following data is used to create the PTK.</p><p>• PMK</p><p>• ANonce (a Random Number created by the Router)</p><p>• SNonce (a Random Number created by the Device)</p><p>• Router MAC Address</p><p>• Device MAC Address</p><p>That is, the PTK (Pairwise Transient Key) is created by combining the PMK, the ANonce, the SNonce, the AP MAC Address, and the Client MAC Address. Because of this, even for two Devices using the same Wi-Fi Password, the PTK will not be the same. Even if a Phone and a Laptop connect to the same Wi-Fi using the same Password, the Encryption Keys they receive are different. That is a very important security feature in Wi-Fi Security.</p><p><strong>Why is the 4-Way Handshake necessary?</strong></p><p>If we started sending Data the moment we connected to the Router, that Data could potentially be read by someone else. So before starting Data Communication, the Router and the Device need to confirm between them:</p><p>• Is the Password correct?</p><p>• Do both parties know the same PMK?</p><p>• Has the Encryption Key been created correctly?</p><p>This confirmation is carried out by the 4-Way Handshake. Once the Handshake is complete, a secure Channel is created between the Router and the Device. From that point on, the Data Packets sent are Encrypted using the PTK. So even though the Router broadcasts the Signal across its entire Range, that Data can only be read by the Device that knows the relevant Encryption Key.</p><p>Now let’s look at what actually happens from Message 1 to Message 4 of the Handshake.</p><p><strong>The 4 Steps of the 4-Way Handshake.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ld-UOqlim6oqj1iftko2Q.png" /></figure><p><strong>Message 1 — The Router sends the ANonce</strong></p><p>When a Device tries to connect to a Wi-Fi Network, the Router first creates a Random Number called the ANonce (Authenticator Nonce). A Nonce is a random value used only for one Session. Once a Handshake is complete, a new Nonce is created for the next Connection. After that, the Router sends the ANonce to the Device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBr8C-2lW98djAs3UE8xwg.png" /></figure><p>At this point, no Password is sent at all. No Encryption Key is sent either. All that is sent here is the Random Number called the ANonce.</p><p><strong>Message 2 — The Device calculates the PTK</strong></p><p>Now the Device receives the ANonce sent by the Router, and on its own side, creates another Random Number. The specific mechanism used to create this Random Number is called CSPRNG (Cryptographically Secure Pseudorandom Number Generator). This is a set of Random bits (usually a value of 256 bits) generated by the Client device (Mobile/Laptop) as a response to the ANonce (Authenticator Nonce) received from the Access Point / Router. This isn’t just an ordinary Random Number Generator — this value is created using a cryptographic algorithm specifically designed for security systems. This is a random value that can never be predicted by anyone else. This is called the SNonce (Supplicant Nonce).</p><p>Now the Device has the following five pieces of data.</p><p>• PMK</p><p>• ANonce</p><p>• SNonce</p><p>• Router MAC Address</p><p>• Its own MAC Address</p><p>Using these five pieces of data, the Device calculates the PTK (Pairwise Transient Key).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtxOUo8yVZNy0cRWmkmL1w.png" /></figure><p>There is one important point. The PTK itself is not sent to the Router. A wrong idea many people have is that the Device sends the PTK to the Router. That’s actually not what happens. What the Device sends to the Router is,</p><p>• SNonce</p><p>• MIC (Message Integrity Code)</p><p>only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7O7-ccZlanFaQ1fJJMTlQ.png" /></figure><p><strong>What is a MIC?</strong></p><p>The MIC (Message Integrity Code) is something like a Cryptographic Signature that proves the Device has correctly calculated the PTK. Here, the PTK itself is not sent through the air. Instead, the PTK is used to create a MIC, which is sent to the Router. The specific mechanism used for this is called HMAC (Hash-based Message Authentication Code) or CMAC (Cipher-based Message Authentication Code). You can think of this like a normal signature. Just because you gave your signature doesn’t reveal the method used to create your signature. Similarly, seeing the MIC doesn’t let you find the PTK either.</p><p><strong>Message 3 — The Router confirms whether the Password is correct</strong></p><p>Now the Router has received the SNonce and the MIC. The Router already has the PMK. It also already created the ANonce itself. Now the Router also uses these five pieces of data to calculate the PTK on its own side again. That is, it creates the PTK using the PMK, the ANonce, the SNonce, and the AP MAC. Now the Router uses the PTK it calculated to Verify the MIC sent by the Device. If the MIC is correct, the Router understands that the Device also knows the same PMK as it does.</p><p>That means the Wi-Fi Password entered by the User is also correct.</p><p>Here too, the Password never went through the air. The PTK never went through the air either. Both the Router and the Device calculated the PTK separately on their own, and confirmed through the MIC whether both arrived at the same Key.</p><p><strong>Why is the GTK sent?</strong></p><p>Now the Router trusts that the Device knows the correct Password. Next, the Router sends the GTK (Group Temporal Key) to the Device. But the GTK isn’t sent in Plain Text either. It’s Encrypted using the KEK (Key Encryption Key) portion of the PTK before being sent. So even if the Packet is captured along the way, the GTK cannot be read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5SnIcPU6QBDLARPtJoLy-A.png" /></figure><p><strong>Message 4 — The Handshake is completed</strong></p><p>After the Device correctly receives the GTK, it sends a final Acknowledgement Message to the Router. This Message says,</p><p>“I received the GTK. Secure Communication can now begin.”</p><p>With that, the 4-Way Handshake is complete.</p><p><strong>What happens after the Handshake is complete?</strong></p><p>After the Handshake is complete,</p><p>• The Router has the PTK.</p><p>• The Device also has the same PTK.</p><p>• Both also have the GTK.</p><p>From now on, Data Packets are Encrypted and exchanged. In this,</p><p>• Unicast Data going between the Router and one Device is Encrypted using the PTK.</p><p>• Broadcast and Multicast Data going from the Router to all Devices is Encrypted using the GTK.</p><p>Because of this, even though the Router broadcasts the Wireless Signal in every direction, the data inside a Packet can only be read by the Device that has the relevant Encryption Key. So even if ten Devices are connected to the same Wi-Fi Network, the private Data going to one Phone cannot be read by a Laptop or any other Device.</p><p>Now the 4-Way Handshake is complete. But there’s another important question.</p><p><strong>If the same PTK is used, does every Packet get Encrypted the same way? Can’t a Replay Attack be carried out?</strong> <strong>Can’t a Packet be captured and Decrypted later</strong>?</p><p>• If the same PTK keeps being used, does every Packet get Encrypted the same way?</p><p>• Why can’t a Hacker capture a Packet and read it later?</p><p>• What happens if a Packet is copied and sent back (Replay Attack)?</p><p>• Can someone else who knows the same Wi-Fi Password read my Data?</p><p>The answers to all of these lie within the Wi-Fi Encryption method itself.</p><p>Even though the PTK stays the same, every Packet is Encrypted differently Many people think that because the PTK is the same, every Packet is Encrypted in the same way. That’s wrong.</p><p>WPA2 uses the AES-CCMP (Counter Mode with CBC-MAC Protocol) Encryption Algorithm.</p><p>Here, the PTK alone is not used. A value called the Packet Number (PN) is also used for every Packet. The Packet Number increases with every Packet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pV0FCw-CVCxGt2F63BwY6g.png" /></figure><p>For example,</p><p>Packet 1 → PN = 1</p><p>Packet 2 → PN = 2</p><p>Packet 3 → PN = 3</p><p>Packet 4 → PN = 4</p><p>Because of this, even if the same Message is sent twice, its Ciphertext will be different.</p><p>For example, even if the Message “Hello” is sent twice, the Encrypted Data received over the Network will be completely different each time. So it’s very difficult for a Hacker to compare two Ciphertexts and find the Encryption Key.</p><p><strong>How are Replay Attacks prevented?</strong></p><p>A Replay Attack is an attack where a Packet travelling through the Network is captured and then sent again to the Router or the Device. But this doesn’t succeed on Wi-Fi. The reason for that is the Packet Number (PN). Both the Router and the Device remember the last Packet Number they received.</p><p>For example,</p><p>PN = 101</p><p>PN = 102</p><p>PN = 103</p><p>Now if a Hacker sends back the Packet that had PN = 101, the Router says, “I have already received this Packet Number.” So that Packet is immediately discarded. Because of this method, Replay Attacks can largely be prevented.</p><p><strong>The difference between PTK and</strong></p><p>GTK After the Handshake, the Router uses two Keys.</p><p><strong>PTK (Pairwise Transient Key) :</strong></p><p>This is a Key used only between the Router and one Device. For example,</p><p>Router ↔ Phone</p><p>Router ↔ Laptop</p><p>Router ↔ Smart TV</p><p>There are three separate PTKs for these three. The PTK belonging to one Device is not known by another Device.</p><p><strong>GTK (Group Temporal Key</strong>)</p><p>The GTK is a Key given to all Devices connected to the Router. This is used to Encrypt,</p><p>• Broadcast Packets</p><p>• Multicast Packets</p><p>• ARP Messages</p><p>• Some Network Discovery Messages</p><p>So, Unicast Data → PTK</p><p>Broadcast / Multicast Data → GTK</p><p>The Router sends Data to everyone. But only one Device can read it. A Wireless Signal is a Radio Signal. When the Router sends a Data Packet, that Signal physically reaches every Device within the Router’s Range. But the Packet is Encrypted using the PTK. That PTK exists only for the relevant Device and the Router. So even though the Packet reaches another Device,</p><p>• the Data cannot be Decrypted.</p><p>• the information inside the Packet cannot be read.</p><p>• the Packet cannot be modified and resent either.</p><p>This is the basic idea behind Wi-Fi Security.</p><p><strong>Can someone who knows the Wi-Fi Password read my Traffic?</strong></p><p>This is a question many people ask. Under normal circumstances, the answer is no. Even if all Devices know the same Wi-Fi Password, a separate PTK is created for each individual Device during the Handshake. So, The Laptop doesn’t know the Phone’s PTK. The Smart TV doesn’t know the Laptop’s PTK. Because of this, Unicast Traffic going to one Device cannot be Decrypted by another Device. However, if someone captures the Handshake and successfully finds the Password through an Offline Dictionary Attack, they can attempt to calculate the Key relevant to that Session. This weakness is one characteristic of the WPA2-PSK system. That’s why it’s very important to use a strong, long, and hard-to-guess Password.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99b4cfb23f59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How VPNs Bypass ISP Speed Limits: The Networking Science Behind Faster Internet]]></title>
            <link>https://medium.com/@nayanthahansajith/how-vpns-bypass-isp-speed-limits-the-networking-science-behind-faster-internet-5725ad07f75d?source=rss-8f871711b6bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5725ad07f75d</guid>
            <category><![CDATA[internet-speed]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[vpn-service]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[network-vpn]]></category>
            <dc:creator><![CDATA[Nayantha Hansajith]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 15:45:04 GMT</pubDate>
            <atom:updated>2026-06-17T15:45:04.061Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLk-V2K4gWOkUyVWwVO6Hw.png" /></figure><p>Today, the internet has become an indispensable part of our lives. From the moment we wake up in the morning until we go to sleep at night, we use countless websites and applications for various purposes. On some days, we enjoy an incredibly fast internet experience beyond anything we could have imagined, while on other days, we struggle to watch even a video at 480p resolution after setting it to 1080p because the connection becomes painfully slow. The primary reason behind this is that our Internet Service Providers (ISPs) regulate our connection speeds through different service packages. However, recently, a particular VPN application and server technology has become extremely popular among technology enthusiasts, enabling some users to bypass these limitations and utilize the internet at maximum speeds. While this may appear to be pure “magic” to the average person, what lies behind it is actually a fascinating collection of computer networking principles.</p><p>To understand how this process works, we must first examine the fundamental steps involved when we normally connect to the internet through a router and exchange data. The entire process is remarkably similar to a postal delivery system.</p><p>The moment we connect our phone or computer to the router in our home or office, a special communication protocol begins operating in the background. This protocol is known as DHCP (Dynamic Host Configuration Protocol). Its purpose is to automatically assign a unique internal IP address to our device so that it can be identified within that particular router system, or Local Network. Once our device receives this IP address, it gains the basic ability to communicate both with other devices on the same network and with the outside world.</p><p>For example, let us imagine that we use our phone to visit YouTube and watch a video. In such a situation, the video cannot simply appear directly on our device. Instead, our device must establish communication with a server system located somewhere in the world where YouTube’s data is stored. The moment we click on a video, our device generates a data request intended for that server.</p><p>Before this request can be sent across the internet, it must first be organized into a “data packet.” During this process, an IP Header is created by combining the IP address assigned to our device through DHCP with the port number through which data from the YouTube server will be delivered back to our device. Since most major websites today, including YouTube, operate through the highly secure HTTPS communication protocol, the standard port number used in this case is Port 443.</p><p>Before leaving our device, this data packet passes through the seven layers of the OSI Model (Open Systems Interconnection Model), which forms the foundation of modern computer networking. The data travels sequentially through the Application, Presentation, Session, Transport, Network, Data Link, and finally the Physical layer. During this journey, the requested data is assembled, securely encoded, and ultimately transformed into physical signals or waves that travel toward our router.</p><p>As soon as the router in our home receives this data packet, it examines the IP Header. The router recognizes that the packet originated from a particular internal IP address and is destined for the YouTube server through Port 443. However, a technical challenge arises at this stage. The IP address assigned to our phone by the router may also exist on devices connected to countless other routers around the world. This is because it is a Private IP address. Such an address cannot directly access the global Public Internet.</p><p>For this reason, the router performs a highly important function. Using its own internal mechanisms, it maps the packet to a globally unique Public IP Address that has been allocated to the ISP by the regional internet registry responsible for the Asia-Pacific region. The router then transmits the packet via radio signals to the nearest cellular tower belonging to the ISP. The cell tower receives the data and forwards it to the ISP’s primary data centers, from where it is transported through submarine cable systems or satellite technologies to the nearest YouTube server available.</p><p>Once the packet reaches the YouTube server, the server processes the request and sends back the requested video data along the same path. When the router receives these incoming packets from the external network, it consults its NAT (Network Address Translation) table to determine which device should receive them. By referring to the NAT records, the router identifies the original internal IP address of the phone or computer that initiated the request. It then forwards the packet to the correct device, allowing the YouTube video to load successfully on our screen.</p><p>However, throughout this entire process, our Internet Service Provider is carefully observing the traffic. As the data packets pass through the ISP’s infrastructure, their systems and firewalls can clearly identify that we are communicating with YouTube and utilizing Port 443. At that point, they check which internet package we have subscribed to. Based on the limitations configured for that package, they apply bandwidth restrictions through a process known as data throttling. As a result, we may not receive the maximum speed available, causing the internet connection to feel slow.</p><p>This is precisely where VPN (Virtual Private Network) technology provides a highly effective technical solution. When we install a specialized VPN application on our device, configure it with a server located in a foreign country, and activate it, the entire data communication process changes dramatically.</p><p>When a VPN is active, the operating system creates a Virtual Network Interface, commonly referred to as a TUN Interface, which operates at Layer 3 of the OSI model, the Network Layer. Now, when we attempt to watch a YouTube video, the data packet is created exactly as before and arrives at the Network Layer. However, instead of sending it directly toward the router, the operating system redirects it to this newly created virtual network interface.</p><p>At this stage, the VPN application takes complete control of the original YouTube packet and encrypts it so thoroughly that no unauthorized party can read its contents. The application then creates an additional outer wrapper around the packet through a process known as encapsulation. Within the outer IP Header of this new packet, the destination is no longer YouTube but rather the IP address of the foreign VPN server, for example, one located in Malaysia. Furthermore, the VPN also chooses to transmit the traffic through Port 443, the same standard port used globally for secure HTTPS communications.</p><p>This newly disguised packet then leaves the virtual interface and travels through the device’s physical network connection toward the router. The router performs its normal NAT operations and forwards the packet through the ISP’s cellular towers and data centers.</p><p>At this point, the ISP’s traffic-shaping and speed-limiting systems become largely ineffective. To the ISP, it does not appear that we are connecting to YouTube. Instead, it appears that we are merely communicating with an ordinary secure HTTPS server located in another country through Port 443. Since the actual YouTube request is encrypted within the packet, the ISP cannot inspect its contents. Moreover, because Port 443 is the primary gateway used for internet banking, e-commerce, and virtually all modern secure websites, it is neither technically nor legally practical for an ISP to block it entirely. Doing so would effectively cripple internet access across an entire country.</p><p>As a result, the ISP forwards the packet through its network without applying service-specific restrictions, allowing it to utilize the maximum available bandwidth and transport it through submarine cables to the designated foreign VPN server.</p><p>When the packet arrives at the server located in the foreign country, the VPN software running there removes the outer encapsulation layer and extracts the original YouTube request hidden inside. The server then establishes a legitimate connection with YouTube on our behalf and retrieves the required video data at high speed. Finally, the VPN server re-encrypts the returning data and sends it back through Port 443 toward our ISP. The data subsequently travels through the ISP, reaches our router, and is delivered to our device through the router’s NAT system. This is the technical reason why even 1080p videos can sometimes load almost instantly without experiencing the speed restrictions that would normally apply.</p><p>Although this method is technically clever and highly effective, there is another side to the coin that carries significant risks. The foreign servers used for these VPN setups are often rented from the data centers of major cloud providers such as Amazon, Google, or Microsoft, either through paid subscriptions or through temporary free trial accounts.</p><p>Whenever we access the internet through a free server or a privately operated server provided by someone else, all of our internet traffic ultimately passes through infrastructure controlled by that server owner. If the individual who created the server happens to be a malicious hacker, there is a serious possibility that they may attempt to collect information about the websites we visit, intercept sensitive credentials, harvest passwords, or gather other personal data.</p><p>In conclusion, VPN tunneling technology is undoubtedly an intelligent and powerful method for bypassing certain forms of ISP traffic management and achieving a faster internet experience. However, it must be used wisely and responsibly. While it can provide tremendous benefits for entertainment purposes such as streaming videos, users should avoid performing online banking transactions, financial payments, or logging into highly sensitive social media accounts while connected to untrusted VPN services. True technical knowledge comes not merely from understanding how a technology works, but also from recognizing its limitations, risks, and responsibilities before using it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5725ad07f75d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Mobile Network Bands: A Technical Guide to Connectivity in Sri Lanka]]></title>
            <link>https://medium.com/@nayanthahansajith/demystifying-mobile-network-bands-a-technical-guide-to-connectivity-in-sri-lanka-db14e2c7e2bd?source=rss-8f871711b6bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/db14e2c7e2bd</guid>
            <category><![CDATA[telecommunication]]></category>
            <category><![CDATA[sri-lanka]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[4g-lte]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nayantha Hansajith]]></dc:creator>
            <pubDate>Sat, 16 May 2026 04:09:51 GMT</pubDate>
            <atom:updated>2026-05-16T04:09:51.537Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyI9zS5sH5pMl4k00ZqJhA.png" /></figure><p><strong>1. What Are Mobile Network Bands?</strong></p><p>Mobile network bands refer to specific ranges of radio frequencies used for mobile communication. These frequencies are measured in MHz (Megahertz) or GHz (Gigahertz) and are essential for establishing mobile network connections. Different mobile technologies use different frequency bands to provide communication services.</p><p>For example:</p><ul><li><strong>2G technology</strong> typically uses 900MHz and 1800MHz.</li><li><strong>3G technology</strong> generally uses the 2100MHz band.</li><li><strong>4G LTE</strong> commonly uses bands like 1800MHz (Band 3), 2100MHz (Band 1), and 2300MHz (Band 40).</li><li><strong>5G technology</strong> uses higher-frequency bands like 2600MHz (Band n41).</li></ul><p>When a network band is named, it is identified as “Band 1,” “Band 3,” “Band 8,” and so on. Along with the band number, the specific frequency range it operates on can also be identified. For example:</p><ul><li><strong>Band 1</strong> = 2100MHz</li><li><strong>Band 3</strong> = 1800MHz</li><li><strong>Band 8</strong> = 900MHz</li><li><strong>Band 40</strong> = 2300MHz (TDD)</li></ul><p>These bands are divided into two types: <strong>FDD (Frequency Division Duplexing)</strong> and <strong>TDD (Time Division Duplexing)</strong>.</p><ul><li><strong>FDD</strong> uses separate frequency ranges for uplink and downlink transmissions.</li><li><strong>TDD</strong>, on the other hand, uses a single frequency range and allocates time slots for uplink and downlink transmission.</li></ul><p>While some operators use TDD, most use FDD systems. FDD systems are generally better for coverage, whereas TDD systems offer lower latency and higher data speeds.</p><p><strong>Why Are Mobile Network Bands Important?</strong></p><p>Mobile network bands play a crucial role in determining the quality and performance of the mobile network. The frequency bands used by a network influence factors like signal strength, data speed, coverage, and reliability.</p><p>For example, networks with higher-frequency bands, such as those used for 4G and 5G, tend to offer faster speeds but may have limited coverage compared to lower-frequency bands used for older technologies like 2G or 3G. On the other hand, 2G and 3G networks are more reliable for wider coverage but offer slower data speeds.</p><p>In summary, understanding mobile network bands is essential for both consumers and mobile operators. It directly impacts the speed, coverage, and reliability of mobile communication, making it a key factor in modern mobile networking technologies.</p><p><strong>2. Major Mobile Operators in Sri Lanka and Their Band Usage</strong></p><p>Sri Lanka’s major mobile service providers include Dialog, Mobitel, Airtel, and Hutch. These operators use various frequency bands for their mobile network connections. The primary LTE bands they use are:</p><ul><li><strong>Band 1 (2100 MHz)</strong></li><li><strong>Band 3 (1800 MHz)</strong></li><li><strong>Band 8 (900 MHz)</strong></li><li><strong>Band 40 (2300 MHz — TDD LTE)</strong></li></ul><p>Each of these bands has different propagation characteristics, meaning they behave differently in terms of signal strength and coverage. For example, <strong>Band 8 (900 MHz)</strong>, which is a lower frequency band, is well-suited for rural coverage. It has better penetration, meaning the signal can reach inside buildings more effectively. On the other hand, <strong>Band 40 (2300 MHz)</strong>, which is a higher frequency band, provides higher data speeds but has limited coverage.</p><p>Using online tools like <strong>CellMapper</strong>, it’s clear that even the same operator may use different bands across various towers. For instance, <strong>Dialog</strong> widely uses <strong>Band 1</strong>, <strong>Band 3</strong>, and <strong>Band 8</strong> for its services. <strong>Mobitel</strong> often uses <strong>Band 3</strong> for 2G services, while <strong>Airtel</strong> uses it for 4G LTE.</p><p>In short, the same band can be used for different network types (2G/4G) by different operators. This is done according to the <strong>TRCSL</strong>-regulated frequency allocation plan. When this happens, concepts like <strong>band overlap</strong> and <strong>inter-operator reuse</strong> come into play.</p><p><strong>Band sharing</strong> allows the same frequency band to be used by one or more operators, but this is done under strict supervision to minimize interference. This approach helps optimize the available spectrum and improves the overall quality of mobile services.</p><h3>📌 3. Differences in Performance Across Various Bands</h3><p>The performance of a mobile network is heavily dependent on the frequency band it operates under. The frequency value of a band — whether low, mid, or high — directly affects its signal coverage and data speed.</p><p>🔹 <strong>Low-Frequency Bands (e.g., Band 8–900 MHz):</strong><br> Low-frequency bands, such as <strong>Band 8 (900 MHz)</strong>, have a lower frequency, which allows the signal to travel longer distances and penetrate obstacles like buildings more effectively. This makes them ideal for rural areas and regions where network coverage needs to extend over vast distances. However, the trade-off is that the data speed tends to be slower on these bands. They are commonly used for basic services such as voice calls and simple internet browsing.</p><p>🔹 <strong>Mid-Frequency Bands (e.g., Band 3–1800 MHz):</strong><br> Mid-frequency bands like <strong>Band 3 (1800 MHz)</strong> strike a balance between coverage and speed. These bands are commonly used in urban and densely populated areas. They offer moderate coverage and faster data speeds compared to low-frequency bands. <strong>Band 3</strong> is widely deployed for LTE/4G services, as it provides a good balance for mobile users in busy metropolitan environments.</p><p>🔹 <strong>High-Frequency Bands (e.g., Band 40–2300 MHz):</strong><br> High-frequency bands, such as <strong>Band 40 (2300 MHz)</strong>, offer very high data speeds but have limited coverage. The signals do not travel as far, and their ability to penetrate obstacles like walls is significantly reduced. High-frequency bands are more suited for environments with clear line-of-sight, such as in open areas or near the tower. In places like apartments or areas with thick walls, the signal strength tends to decrease. These bands are typically used for high-speed data applications like video streaming and heavy internet use.</p><p>In reality, the performance of any band is determined by several factors, including its frequency, bandwidth, and modulation technique. Common modulation techniques like <strong>QPSK</strong>, <strong>16QAM</strong>, and <strong>64QAM</strong> play a crucial role in determining the speed and efficiency of data transmission. Additionally, a larger <strong>bandwidth</strong> allows for higher data throughput, improving the overall performance of the network.</p><p>Understanding these differences between bands helps consumers and network engineers make informed decisions about which frequency bands are best suited for their specific needs, whether for rural coverage, high-speed internet, or urban connectivity.</p><p><strong>📌 4. What is Bandwidth?</strong></p><p>In simple terms, <strong>Bandwidth</strong> refers to the capacity of a communication system to transmit data. It can also be referred to as the maximum data transfer rate. Bandwidth is commonly measured in <strong>bps (bits per second)</strong> or <strong>Mbps (megabits per second)</strong> and indicates how much data can flow through a network or communication channel within a given time period.</p><h4>Frequency Bandwidth and Data Bandwidth</h4><p>There are two types of bandwidth: <strong>Frequency Bandwidth</strong> and <strong>Data Bandwidth</strong>.</p><h3>Frequency Bandwidth</h3><p><strong>Frequency Bandwidth</strong> refers to the range of frequencies a signal occupies. This range is determined by the difference between the highest and lowest frequency of the signal. The wider the frequency range, the more data can travel through it.</p><p><strong>Example:</strong><br> Let’s say you have a frequency band in the <strong>1800 MHz range</strong>:</p><ul><li><strong>Upper frequency</strong>: 1820 MHz</li><li><strong>Lower frequency</strong>: 1780 MHz</li><li><strong>Bandwidth</strong>: 1820 MHz — 1780 MHz = <strong>40 MHz</strong></li></ul><p>If the frequency bandwidth is greater, more data can be transmitted. The greater the bandwidth, the faster the data transfer.</p><h3>Data Bandwidth</h3><p><strong>Data Bandwidth</strong>, also known as <strong>data rate</strong>, refers to the speed at which data is transmitted through the network. It determines how quickly data like internet, voice, and video travel between devices.</p><p><strong>Example:</strong></p><ul><li><strong>Dial-up internet</strong>: 56 kbps (kilobits per second)</li><li><strong>4G LTE</strong>: 10–100 Mbps (megabits per second)</li><li><strong>5G</strong>: 100 Mbps — 1 Gbps+ (gigabits per second)</li></ul><p>Higher bandwidth allows for faster data speeds, making it essential for tasks like high-definition video streaming, quick downloads, and lag-free gaming.</p><h3>Bandwidth and Throughput Relationship</h3><p>While <strong>Bandwidth</strong> represents the maximum capability of a network, <strong>Throughput</strong> is the actual amount of data that is successfully transmitted. While higher bandwidth enables higher throughput, it is also affected by factors like <strong>network congestion</strong> and <strong>interference</strong>.</p><p>In other words:</p><ul><li><strong>Bandwidth</strong> = Maximum potential data transfer rate.</li><li><strong>Throughput</strong> = Actual data transferred.</li></ul><p>A network with high bandwidth allows for more data to pass through, but factors like interference and congestion can reduce the actual throughput.</p><h3>Bandwidth and Modulation Techniques</h3><p>The way data is encoded within a given bandwidth is dependent on the modulation technique. The more advanced the modulation method, the more data can be packed into the same bandwidth.</p><p><strong>Examples of modulation techniques:</strong></p><ul><li><strong>QPSK (Quadrature Phase Shift Keying)</strong>: Lower throughput</li><li><strong>16QAM (Quadrature Amplitude Modulation)</strong>: Moderate throughput</li><li><strong>64QAM (Quadrature Amplitude Modulation)</strong>: High throughput</li></ul><p>The more advanced the modulation technique, the more efficient the use of bandwidth becomes, enabling faster data transmission within the same frequency range.</p><h3>Why Bandwidth Matters?</h3><ol><li><strong>Network Capacity:</strong><br> Higher bandwidth allows a network to serve more users simultaneously. This is crucial for large networks where many devices are connected at the same time, such as during peak usage periods. The greater the bandwidth, the more users can be supported without compromising service quality.</li><li><strong>Service Quality (QoS):</strong><br> Bandwidth directly impacts the quality of services like video calls, HD streaming, and online gaming. With higher bandwidth, video calls are clearer, streaming is smoother, and gaming experiences are lag-free. Insufficient bandwidth can result in buffering, poor video quality, or dropped calls.</li><li><strong>Reduced Latency and Delay:</strong><br> Increased bandwidth leads to lower latency, meaning the time delay between sending and receiving data is reduced. This is especially important for real-time applications such as video conferencing, online gaming, and VoIP (Voice over Internet Protocol) services. Reduced latency helps to maintain a seamless experience for users.</li></ol><p><strong>📌 5. TRCSL and Band Allocation: The Government’s Role</strong></p><p>In Sri Lanka, the telecommunications sector is legally regulated by the <strong>Telecommunications Regulatory Commission of Sri Lanka (TRCSL)</strong>. This is the official governmental body responsible for overseeing and managing the network spectrum in a way that allows mobile operators, internet service providers, and other entities to operate within the country. TRCSL plays a pivotal role in ensuring the effective allocation and management of frequency bands, ensuring that telecommunications services are provided efficiently and fairly.</p><h3>Bandwidth Allocation and Usage Rights</h3><p>One of the primary functions of <strong>TRCSL</strong> is to allocate bandwidth to telecommunications companies. This process involves providing mobile operators and internet service providers with the required frequency bands that are essential for their operations. These frequency bands are provided along with <strong>usage rights</strong>, meaning that once a frequency band is assigned to a particular operator, it cannot be used by any other operator at the same time. This allocation system is vital for preventing interference and ensuring that each operator has a dedicated portion of the spectrum for their services.</p><h3>Spectrum as a Limited Resource</h3><p>The <strong>spectrum</strong> refers to the range of electromagnetic frequencies used for transmitting data and communications. It is considered a <strong>limited and valuable resource</strong> because there is only a finite amount of frequencies available for use. Not every frequency range can be used for communication, and thus, <strong>TRCSL</strong> must manage it carefully. The commission allocates specific frequency bands to telecommunications companies based on a well-organized and detailed <strong>spectrum plan</strong>. This plan ensures that the available spectrum is divided and distributed among different operators efficiently, using a <strong>transparent and legal framework</strong>. By doing so, TRCSL ensures that communication services are provided fairly, and companies are able to operate without unnecessary conflicts over frequency usage.</p><h3>Interference Control and Public Fairness</h3><p>One of the critical responsibilities of <strong>TRCSL</strong> is to <strong>control interference</strong> in the telecommunications sector. When multiple operators are assigned the same frequency, there is a risk of interference, which can lead to signal instability. Such interference can significantly impact the quality of service, making it crucial for <strong>TRCSL</strong> to implement effective interference management strategies.</p><p>In addition to managing interference, <strong>TRCSL</strong> is also responsible for ensuring <strong>public fairness</strong> in the distribution of spectrum. This means that spectrum allocation is done in such a way that all citizens have access to high-quality services, irrespective of which provider they choose. TRCSL makes sure that spectrum is allocated in a manner that ensures <strong>equal opportunities</strong> for all operators to provide competitive services to the public. By doing this, <strong>TRCSL</strong> helps to maintain a balanced market and ensures that consumers receive the best possible services.</p><p><strong>6. Band Bidding Process: How Do Operators Obtain a Band?</strong></p><p>In Sri Lanka, mobile operators like Dialog, Mobitel, and Hutch require spectrum bands to provide their services. The process through which these bands are acquired is called the Band Bidding Process, and it is regulated by the Telecommunications Regulatory Commission of Sri Lanka (TRCSL).</p><h3>Auction (Bidding) System</h3><p>TRCSL allocates spectrum bands through an auction system. In this system, operators compete by placing bids to obtain the spectrum they need. The auction can be held in two main forms: a fixed price model or a competitive auction, where the price is determined by the operators’ bids.</p><h3>Demand and Band Value</h3><p>High-performance bands, which generally feature lower frequencies and greater bandwidth, are in high demand. These bands, due to their ability to cover larger areas and provide better signal strength, often come with a higher price. For example, a low-frequency band like 700 MHz is highly valued because it provides excellent rural coverage and strong indoor signals. The high demand for such bands naturally leads to higher bid prices.</p><h3>Competitive Advantage</h3><p>When an operator successfully bids for a good spectrum band, it can significantly improve its service quality and network speed. This becomes a competitive advantage, as having access to better spectrum allows the operator to provide faster and more reliable services, giving them an edge in the market.</p><p>By participating in the band bidding process, operators strive to secure the best possible spectrum to enhance their network performance and stay ahead of the competition.</p><p><strong>7. Different Bands on a Tower in Sri Lanka</strong></p><p>In Sri Lanka, a telecommunications tower (cell tower) often supports multiple frequency bands simultaneously. This is known as a multi-band configuration, where a single tower can operate several bands at once, enhancing network efficiency and service quality.</p><h3>Multi-Band Antennas</h3><p>Many tower systems in Sri Lanka use multi-band antennas. This means that a single tower can support two or more frequency bands. For example, a single tower might operate 900 MHz, 1800 MHz, and 2300 MHz bands simultaneously, allowing different services and technologies to function effectively within the same infrastructure.</p><h3>Benefits for Operators</h3><p>One of the major advantages of this multi-band setup is that it allows multiple operators to share a single tower. For example, operators like Dialog, Airtel, and Hutch can all use the same tower, which leads to infrastructure sharing. This setup not only reduces costs but also allows operators to share specific frequency ranges, improving overall network coverage.</p><p>For instance, Band 8 (900 MHz) might be shared between Hutch and Dialog. This sharing boosts network coverage and helps reduce infrastructure expenses for both operators.</p><h3>Spectrum Re-Farming</h3><p>Another key aspect of tower band usage is spectrum re-farming. Older 2G and 3G bands are often reallocated for use with newer technologies like 4G and 5G. This process is called spectrum re-farming, and it allows previously used frequency bands to be repurposed to meet the demand for faster and more efficient networks.</p><p>For example, the 2100 MHz band, once used primarily for 3G networks, is now commonly repurposed for 4G networks. This reallocation helps improve the efficiency and performance of modern cellular networks while making the best use of existing resources.</p><p>8. Global Band Compatibility and Its Impact on Consumers</p><p>In the world of mobile phone usage, band compatibility is a crucial factor that many consumers tend to overlook. The frequency bands supported by your phone play a significant role in your signal strength, data speeds, and even your ability to access networks when traveling between different countries. Understanding band compatibility is essential to ensure that your mobile device works efficiently across different networks and regions.</p><p>Your Phone and Band Support</p><p>Each mobile phone comes with its own list of supported frequency bands. For example, some phones may not support Band 40 (2300 MHz TDD), which is used by Dialog for 4G LTE in Sri Lanka. If your phone does not support Band 40, you might experience weak or no signal when attempting to connect to Dialog’s 4G network.</p><p>Before purchasing a phone, it’s advisable to check the device’s specifications for supported bands. Websites like GSM Arena provide detailed information about the supported frequency bands for each model. By reviewing this data, you can ensure that your phone will work well with local networks in Sri Lanka.</p><p>Importing Phones and Compatibility Issues</p><p>Many consumers in Sri Lanka often import phones from marketplaces like AliExpress, eBay, or Amazon, where devices are primarily manufactured in countries like China, the USA, Japan, or India. The frequency bands used in these countries might differ from those used in Sri Lanka.</p><p>For example, if a phone imported from the USA does not support Band 3 (1800 MHz), you may not be able to connect to Sri Lanka’s 4G network. This could result in weak signal strength, slower data speeds, or even an inability to connect to the network. To avoid such issues, it’s important to check the LTE bands, UMTS bands, and GSM bands supported by the phone before importing it.</p><p>Roaming and Global Compatibility</p><p>When you travel abroad, roaming becomes an essential service. Roaming allows your SIM card to connect to a foreign network temporarily. In these situations, band compatibility becomes critical. For instance, if your phone does not support Band 20 (800 MHz), which is commonly used in the UK, you will not be able to receive a 4G signal while in that country. Instead, your phone will fall back to slower 3G or 2G networks.</p><p>Thus, it’s important to always check your phone’s band compatibility before traveling to ensure that you will have access to fast and reliable mobile data in other countries.</p><p>Consumer Impact of Band Compatibility Issues</p><p>The lack of band compatibility can have significant consequences for consumers. Some of the most common issues include:</p><ul><li>Low or no signal coverage: If your phone does not support the local frequency bands, you may struggle to find a stable signal, leading to dropped calls or poor connectivity.</li><li>Slow data speeds: Incompatible bands can result in slower data transfer rates, making browsing and streaming a frustrating experience.</li><li>Call drop issues: Without proper band support, calls may drop unexpectedly, disrupting communication.</li><li>No access to 4G/5G networks: A phone that doesn’t support 4G or 5G bands will limit your access to faster internet speeds.</li><li>Roaming problems: If you travel abroad, compatibility issues with roaming networks can prevent you from using mobile data altogether.</li></ul><p>These problems can significantly affect the performance of your phone, even if it’s a brand-new device. In some cases, you might not be able to connect to any network at all, rendering your phone useless in certain situations.</p><p>Conclusion</p><p>Band compatibility may seem like a simple issue, but it can have serious implications for mobile phone performance. Whether you are importing a phone, using it locally, or traveling internationally, it’s essential to check if your device supports the frequency bands used in your region or destination. Without this knowledge, your investment in a new phone could go to waste.</p><p>Tip: To check if your phone supports the necessary bands, you can use websites like willmyphonework.net, which provide detailed compatibility information for various devices across different countries. By ensuring that your phone is compatible with the required frequency bands, you can avoid connectivity issues and enjoy optimal performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db14e2c7e2bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Blueprint of Modern Networking: A Deep Dive into the OSI Model]]></title>
            <link>https://medium.com/@nayanthahansajith/the-blueprint-of-modern-networking-a-deep-dive-into-the-osi-model-1fc3512b70c4?source=rss-8f871711b6bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fc3512b70c4</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nayantha Hansajith]]></dc:creator>
            <pubDate>Mon, 11 May 2026 15:46:46 GMT</pubDate>
            <atom:updated>2026-05-11T15:46:46.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jE9Ngj8UPgQJLbnNDEnlMQ.png" /></figure><p>The OSI (Open Systems Interconnection) Model is considered one of the most fundamental and important concepts in Computer Networking. It is a reference framework used to systematically understand how any computer, mobile phone, server, or other network device in the world communicates with one another. Every digital service we use today, such as the Internet, Wi-Fi, Email, Social Media, Video Streaming, and Online Gaming, is in some way based on the functionality of these layers. The special feature of this model is that it divides the entire communication process into seven (7) layers and assigns a separate responsibility to each layer. Because of this, troubleshooting, adding new technologies, and designing networks become much easier.</p><p>The highest layer in the OSI Model is the Application Layer (Layer 7). This can be identified as the layer that creates the direct connection between the user and the network. Applications such as Facebook, YouTube, WhatsApp, Gmail, Zoom, and Web Browsers all interact with this layer. When a user types a URL, sends an email, or uploads a file, this layer converts that request into a form of data request that can be transmitted through the network. For example, when accessing a website, HTTP or HTTPS protocols are used, while SMTP, POP3, and IMAP protocols are used for email communication. FTP and SFTP are used for file transfer, and DNS protocol is used for DNS lookups. The primary responsibility of this layer is to provide network services to the user. In addition, the Application Layer determines the service and provides the relevant port number to the Transport Layer.</p><p>The Presentation Layer (Layer 6) can also be called the “Translator Layer.” Its main function is to convert data from one system into a common format that another system can understand. Since different operating systems, devices, and applications handle data in different ways, a common format is required during communication. Text encodings such as ASCII and Unicode, image formats such as JPEG and PNG, audio formats such as MP3, and video formats such as MP4 are handled here. Another important task of this layer is Encryption and Decryption. When HTTPS is used, TLS/SSL protocols encrypt and secure the data at the Presentation Layer. As a result, even if a hacker intercepts the data, it cannot be read. Data Compression is also an important responsibility of this layer. By using ZIP files, video compression, and streaming technologies, the amount of data is reduced, which helps save bandwidth.</p><p>The Session Layer (Layer 5) is the layer that controls communication sessions. Establishing, maintaining, and terminating a communication session between two devices takes place here. For example, when you log into an online banking system, a session is created. If you remain inactive for a long period of time, the message “Session Expired” appears because of the Session Timeout Mechanism in this layer. The Session Layer also uses checkpoints. When downloading a large file, if the connection is interrupted midway, the download can continue from where it stopped instead of restarting from the beginning. APIs, Remote Procedure Calls (RPC), NetBIOS, and PPTP are technologies related to this layer.</p><p>The Transport Layer (Layer 4) is the layer responsible for controlling reliability in communication. Here, large data streams are divided into smaller segments or datagrams before transmission. TCP and UDP are the two primary protocols used in this layer. TCP (Transmission Control Protocol) is a connection-oriented protocol. It establishes a connection using a Three-Way Handshake process. The special feature of TCP is that it ensures data reliability. Sequence numbers are used to reassemble packets in the correct order. ACK (Acknowledgment) messages confirm that the data has been received. If packet loss occurs, retransmission is used to send the data again. TCP is used for web browsing, email, and file transfer. UDP (User Datagram Protocol), on the other hand, is a connectionless protocol. In this case, speed is more important, while reliability is lower. UDP is used for live streaming, VoIP calls, online gaming, and DNS queries. The Transport Layer also uses mechanisms such as Flow Control, Error Control, and Congestion Control to manage network efficiency.</p><p>The Network Layer (Layer 3) is responsible for sending data to the correct destination. IP Addressing and Routing are performed here. An IP Header is added to the TCP Segment received from the Transport Layer to create an IP Packet. This packet contains both the Source IP Address and the Destination IP Address. The Router is the main device associated with this layer. Routers use Routing Tables to determine the best possible path for a packet to travel. IPv4 and IPv6 are the primary protocols used in this layer, and IPv6 was created to solve the problem of IPv4 address exhaustion. The ICMP protocol is used for diagnostic tools such as Ping and Traceroute. BGP (Border Gateway Protocol) is used for routing between large internet networks. Dynamic routing protocols such as OSPF, RIP, and EIGRP exchange routing information between routers and determine network paths.</p><p>The Data Link Layer (Layer 2) is responsible for local network communication. Here, a MAC Header and Trailer are added to the IP Packet received from the Network Layer to create a Data Frame. A MAC Address is a unique physical address assigned to a Network Interface Card (NIC). The Switch is the most important device associated with this layer. A switch uses a MAC Address Table to send data to the correct device. Ethernet protocols and Wi-Fi standards operate at this layer. CRC (Cyclic Redundancy Check) and FCS (Frame Check Sequence) are used to check whether errors exist within a frame. If an error is detected, the frame is discarded. ARP (Address Resolution Protocol) is used to convert an IP Address into a MAC Address. VLAN (Virtual LAN) technology is also an important part of this layer.</p><p>The Physical Layer (Layer 1) is the lowest and most physical layer of the OSI Model. Here, bits (1s and 0s) are converted into physical signals. When copper cables are used, data travels as electrical pulses; when fiber optic cables are used, data travels as light pulses; and in wireless communication, data travels as radio waves. This layer defines technical factors such as voltage levels, timing, data rates, and physical connectors between network devices. Ethernet cables (Cat5e, Cat6), fiber optic cables, repeaters, hubs, and wireless access points are associated with this layer. Modulation techniques are used for long-distance communication. Methods such as AM, FM, PM, and QAM modify the nature of the signal in order to carry data. In Wi-Fi, Bluetooth, 4G, and 5G technologies, highly advanced digital modulation techniques are used.</p><p>Another important concept in the OSI Model is the process of Encapsulation and Decapsulation. As data travels downward through the layers from the user, each layer adds its own corresponding header. The data that begins at the Application Layer is eventually converted into bits at the Physical Layer and transmitted through the network. On the receiving side, this process occurs in reverse. In other words, the Physical Layer receives the bits, and the headers are removed one by one until the original data is delivered to the Application Layer.</p><p>The relationship between the OSI Model and the TCP/IP Model is also important. Although the practical internet operates based on the TCP/IP Model, the OSI Model is extremely useful for learning network concepts and troubleshooting. In the TCP/IP Model, the Application Layer covers the Application, Presentation, and Session Layers of the OSI Model. The Transport Layer and Internet Layer function similarly to the OSI Model, while the Network Access Layer covers the Data Link and Physical Layers.</p><p>In today’s world, technologies such as Cloud Computing, IoT (Internet of Things), Artificial Intelligence, and Cyber Security are all based on network communication. Therefore, having a deep understanding of the OSI Model is extremely important for a Network Engineer, a Cyber Security Analyst, or even a general IT student. The OSI Model provides the essential foundation for understanding how packets travel through networks, how data is secured, how errors are detected, and how devices communicate with each other.</p><p>Finally, it can be said that the OSI Model is not simply a table of seven layers; rather, it is the primary blueprint for understanding communication in the modern digital world. Whenever we send a WhatsApp message, watch a YouTube video, or perform a Google search, every one of those processes travels systematically through these seven layers. Therefore, understanding the OSI Model properly can be considered the strongest gateway into the world of networking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fc3512b70c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>