<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Karthik Kadambi | Blog</title>
  <subtitle>Learn about web development, and more by Karthik Kadambi, full stack web developer</subtitle>
  <link href="https://karthikkadambi.com/feed/feed.xml" rel="self" />
  <link href="https://karthikkadambi.com/" />
  <updated>2026-03-01T00:00:00Z</updated>
  <id>https://karthikkadambi.com/</id>
  <author>
    <name>Karthik Kadambi</name>
    <email>ramens.regress_8l@icloud.com</email>
  </author>
  <entry>
    <title>Essential Grocery Apps | Instacart, Weee!, and More</title>
    <link href="https://karthikkadambi.com/notes/us-grocery-apps/" />
    <updated>2026-03-01T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-grocery-apps/</id>
    <content type="html">&lt;p&gt;Grocery shopping in the US can be done entirely from your phone.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Apps&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Instacart:&lt;/strong&gt; Delivery from almost any store (Safeway, Costco, Sprouts).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Walmart:&lt;/strong&gt; Great for budget-friendly household items and groceries.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Weee!:&lt;/strong&gt; The best for Asian and Indian groceries (very popular among the immigrant community).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Safeway/Kroger:&lt;/strong&gt; Download the specific store app for digital coupons and rewards.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Too Good To Go:&lt;/strong&gt; An app for buying surplus food from restaurants and bakeries at a fraction of the cost.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Pro-tip:&lt;/strong&gt; Use &lt;strong&gt;Rakuten&lt;/strong&gt; or &lt;strong&gt;Ibotta&lt;/strong&gt; to get cashback on your grocery purchases.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>SF Bay Area Transit Clipper | BART, MUNI, Caltrain, and VTA</title>
    <link href="https://karthikkadambi.com/notes/us-clipper-card/" />
    <updated>2026-03-01T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-clipper-card/</id>
    <content type="html">&lt;p&gt;If you live in the SF Bay Area, the &lt;strong&gt;Clipper card&lt;/strong&gt; is your ticket to everything.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;One Card, All Agencies&lt;/h3&gt;
&lt;p&gt;Whether you are taking the &lt;strong&gt;BART&lt;/strong&gt;, &lt;strong&gt;MUNI&lt;/strong&gt; buses/trains, &lt;strong&gt;Caltrain&lt;/strong&gt;, or &lt;strong&gt;VTA&lt;/strong&gt;, you only need one Clipper card.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How to Use&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Digital Card:&lt;/strong&gt; You can add a Clipper card directly to your Apple Wallet or Google Pay. You don&#39;t even need a physical card anymore!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Autoload:&lt;/strong&gt; Set up &amp;quot;Autoload&amp;quot; so your card never runs out of funds.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Employer Benefits:&lt;/strong&gt; Check if your employer offers &amp;quot;Commuter Benefits.&amp;quot; If they do, you can load your Clipper card using pre-tax dollars from your paycheck.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Remember:&lt;/strong&gt; On systems like Caltrain and BART, you must &amp;quot;Tag On&amp;quot; &lt;em&gt;and&lt;/em&gt; &amp;quot;Tag Off&amp;quot; to pay the correct far based on distance.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Clipper Card:&lt;/strong&gt; Manage your card and set up Autoload at the &lt;a href=&quot;https://www.clippercard.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Official Clipper Site&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>Is Costco Worth It? | Bulk Shopping and Membership Tiers</title>
    <link href="https://karthikkadambi.com/notes/us-costco/" />
    <updated>2026-02-28T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-costco/</id>
    <content type="html">&lt;p&gt;&lt;strong&gt;Costco&lt;/strong&gt; is a US institution. It&#39;s a warehouse-style store where items are sold in bulk.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Membership Levels&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Gold Star ($65/year):&lt;/strong&gt; The basic membership.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Executive ($130/year):&lt;/strong&gt; Gives you 2% cashback on most purchases. If you spend more than $3,250 a year, it pays for itself.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Draw&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Gas:&lt;/strong&gt; Their gas is almost always the cheapest in town.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rotisserie Chicken:&lt;/strong&gt; A $4.99 staple.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Kirkland Signature:&lt;/strong&gt; Their house brand is legendary for high quality at low prices.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tires &amp;amp; Optical:&lt;/strong&gt; Great deals on car maintenance and glasses.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Go on a weekday evening to avoid the weekend crowds!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Best ways to send Money home | Remitly, Wise, Xoom, Crobo</title>
    <link href="https://karthikkadambi.com/notes/us-money-transfer/" />
    <updated>2026-02-25T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-money-transfer/</id>
    <content type="html">&lt;p&gt;As an H1B holder, you&#39;ll inevitably need to send money back home (e.g., to India) for family, savings, or investments. While traditional bank wires are an option, digital platforms usually offer much better exchange rates and lower fees.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Choosing the Right Service&lt;/h3&gt;
&lt;p&gt;The &amp;quot;best&amp;quot; service often depends on whether you prioritize speed, exchange rates, or convenience.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;For Speed:&lt;/strong&gt; &lt;strong&gt;Remitly&lt;/strong&gt; (Express) and &lt;strong&gt;Xoom&lt;/strong&gt; are usually the fastest, often delivering funds within minutes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;For Best Rates:&lt;/strong&gt; &lt;strong&gt;Wise&lt;/strong&gt; (formerly TransferWise) is famous for using the mid-market rate, while newer players like &lt;strong&gt;Crobo&lt;/strong&gt; often provide extremely competitive, fee-free rates to gain market share.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;For Convenience:&lt;/strong&gt; If you already use &lt;strong&gt;Bank of America&lt;/strong&gt; or &lt;strong&gt;PayPal&lt;/strong&gt; (which owns Xoom), using their integrated services can be the most seamless option.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Tips&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Compare Every Time:&lt;/strong&gt; Exchange rates fluctuate daily. It pays to check 2-3 apps before hitting &amp;quot;send.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Watch the Fees:&lt;/strong&gt; Some services have no upfront fees but &amp;quot;hide&amp;quot; their cost in a lower exchange rate. Always look at the total amount the recipient receives.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Verification:&lt;/strong&gt; For large transfers, you might need to provide extra documentation (like a pay stub) to comply with anti-money laundering regulations.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Compare and Transfer:&lt;/strong&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;https://www.remitly.com/r/tqlfo6k8&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Remitly&lt;/a&gt; - Fast and reliable with an excellent app.&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://wise.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Wise&lt;/a&gt; - Transparent fees and mid-market exchange rates.&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://www.xoom.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Xoom&lt;/a&gt; - A PayPal service perfect for quick, integrated transfers.&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://crobo.money&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Crobo&lt;/a&gt; - Zero-fee transfers with highly competitive rates for India.&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://www.bankofamerica.com/mobilebanking/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Bank of America Mobile&lt;/a&gt; - Securely manage your accounts and transfers.&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;</content>
  </entry>
  <entry>
    <title>US Health Insurance | PPO, HMO, and HDHP Explained</title>
    <link href="https://karthikkadambi.com/notes/us-health-insurance/" />
    <updated>2026-02-22T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-health-insurance/</id>
    <content type="html">&lt;p&gt;The US healthcare system is notoriously complex. Here&#39;s a quick primer on the terms you&#39;ll see during your company&#39;s &amp;quot;Open Enrollment.&amp;quot;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Terms&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Premium:&lt;/strong&gt; What you pay every month (usually deducted from your paycheck).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Deductible:&lt;/strong&gt; What you pay out-of-pocket before insurance kicks in.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Copay:&lt;/strong&gt; A flat fee you pay for a doctor&#39;s visit (e.g., $20).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Out-of-Pocket Max:&lt;/strong&gt; The most you&#39;ll ever have to pay in one year.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Plan Types&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;PPO (Preferred Provider Organization):&lt;/strong&gt; Most flexible; you can see any doctor, but &amp;quot;in-network&amp;quot; is cheaper. No referrals needed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HMO (Health Maintenance Organization):&lt;/strong&gt; You must pick a Primary Care Physician (PCP) and get referrals to see specialists. Usually cheaper premiums.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HDHP (High Deductible Health Plan):&lt;/strong&gt; Low premiums, high deductible. Often comes with an HSA (see next note).&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>The Magic of the HSA | Triple Tax-Advantaged Investing</title>
    <link href="https://karthikkadambi.com/notes/us-hsa/" />
    <updated>2026-02-21T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-hsa/</id>
    <content type="html">&lt;p&gt;A &lt;strong&gt;Health Savings Account (HSA)&lt;/strong&gt; is one of the best financial tools available in the US if you have a High Deductible Health Plan (HDHP).&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Triple Tax Advantage&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Tax-free contributions:&lt;/strong&gt; Money goes in before taxes (lowering your taxable income).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tax-free growth:&lt;/strong&gt; Any investments made within the HSA grow without being taxed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tax-free withdrawals:&lt;/strong&gt; As long as you use the money for qualified medical expenses, you never pay taxes on it.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Strategy&lt;/h3&gt;
&lt;p&gt;Many people use the HSA as a &amp;quot;super retirement account.&amp;quot; They pay for medical expenses out-of-pocket, keep the receipts, and let the HSA money stay invested for decades. After age 65, you can withdraw the money for any reason (though it&#39;s taxed as income if not used for medical, similar to a traditional IRA).&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>401(k) Investing | Employer Match &amp; Tax Savings</title>
    <link href="https://karthikkadambi.com/notes/us-401k/" />
    <updated>2026-02-18T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-401k/</id>
    <content type="html">&lt;p&gt;The &lt;strong&gt;401(k)&lt;/strong&gt; is the standard employer-sponsored retirement plan in the US.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The &quot;Free Money&quot; Match&lt;/h3&gt;
&lt;p&gt;Most companies offer a &amp;quot;match&amp;quot; (e.g., if you contribute 6%, they also give you 6%). This is literally free money and is the first thing you should maximize.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Traditional vs. Roth&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Traditional 401(k):&lt;/strong&gt; Contributions are made pre-tax (lowers today&#39;s taxes). You pay taxes when you withdraw in retirement.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Roth 401(k):&lt;/strong&gt; Contributions are made after-tax. You pay &lt;em&gt;no&lt;/em&gt; taxes when you withdraw in retirement.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Wait for Vesting:&lt;/strong&gt; Check your company&#39;s &amp;quot;vesting schedule.&amp;quot; If you leave the company too early, you might not get to keep all of the employer&#39;s matching contributions.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>The Power of a Library Card | Free Books, Movies, and More</title>
    <link href="https://karthikkadambi.com/notes/us-library/" />
    <updated>2026-02-15T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-library/</id>
    <content type="html">&lt;p&gt;One of the best values in the US is the &lt;strong&gt;Public Library&lt;/strong&gt;. It&#39;s not just about books!&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How to Join&lt;/h3&gt;
&lt;p&gt;Just walk into your local library with a proof of residency (like a utility bill or lease) and your ID. Membership is free.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Perks&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Digital Content:&lt;/strong&gt; Use the &lt;strong&gt;Libby&lt;/strong&gt; app for free ebooks and audiobooks.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Movies:&lt;/strong&gt; Use &lt;strong&gt;Kanopy&lt;/strong&gt; or &lt;strong&gt;Hoopla&lt;/strong&gt; for free streaming of documentaries and films.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Museum Passes:&lt;/strong&gt; Many libraries offer free or discounted passes to local museums (like the Exploratorium in SF).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Work Spaces:&lt;/strong&gt; Great quiet places to work or study with free Wi-Fi.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tool Libraries:&lt;/strong&gt; Some locations even lend out tools, seeds, or kitchen gadgets!&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Furnishing on a Budget | OfferUp</title>
    <link href="https://karthikkadambi.com/notes/us-offerup/" />
    <updated>2026-02-14T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-offerup/</id>
    <content type="html">&lt;p&gt;When you first move, you likely need a lot of furniture. &lt;strong&gt;OfferUp&lt;/strong&gt; (and Facebook Marketplace) are the best places to find high-quality used items at a fraction of the retail price.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Tips for Success&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Safety First:&lt;/strong&gt; Always meet in a public place. Many police departments have &amp;quot;Safe Exchange Zones&amp;quot; for this purpose.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Negotiate:&lt;/strong&gt; Don&#39;t be afraid to offer a slightly lower price, but be respectful.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check Ratings:&lt;/strong&gt; Buy from users with good ratings and multiple sales.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cash vs. Digital:&lt;/strong&gt; Most people use Venmo or Zelle, but having cash is sometimes preferred for smaller items.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It&#39;s a great way to furnish your first apartment sustainably and affordably.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Marketplaces:&lt;/strong&gt; Browse for local deals on &lt;a href=&quot;https://offerup.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;OfferUp&lt;/a&gt; and &lt;a href=&quot;https://www.facebook.com/marketplace/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Facebook Marketplace&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>4 Years in the USA | A Milestone and a Guide</title>
    <link href="https://karthikkadambi.com/posts/four-years-in-usa/" />
    <updated>2026-02-13T00:00:00Z</updated>
    <id>https://karthikkadambi.com/posts/four-years-in-usa/</id>
    <content type="html">&lt;p&gt;Today marks exactly four years since I landed in the United States. It’s been a journey filled with growth, challenges, and a lot of paperwork.&lt;/p&gt;
&lt;p&gt;Looking back, the first few months were a blur of &amp;quot;firsts&amp;quot;—my first SSN, my first bank account, my first apartment. Transitioning to life in the US, especially on an H1B visa, involves navigating a complex web of systems.&lt;/p&gt;
&lt;p&gt;To commemorate this milestone, I’ve put together a series of notes covering everything from setting up your first credit card to understanding the nuances of US health insurance. If you are just starting your journey or planning to move soon, I hope these guides make your transition a little smoother.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Essential Setup Guide&lt;/h3&gt;
&lt;p&gt;I&#39;ve broken down the essentials into a few key areas. You can dive into each one for more details.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Interactive Roadmap:&lt;/strong&gt; Check out the comprehensive &lt;a href=&quot;https://roadmap.sh/r/h-1b&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;H-1B Visa Roadmap&lt;/a&gt; for a visual guide to the entire process.
&lt;/div&gt;
&lt;h4&gt;1. Financial Foundations&lt;/h4&gt;
&lt;p&gt;Setting up your financial life is the highest priority. You need a way to receive your salary and start building your &amp;quot;US identity&amp;quot; through credit history.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-zolve-cc/&quot;&gt;Zolve CC&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-bofa-bank-account/&quot;&gt;Opening a Bank Account&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-ssn/&quot;&gt;Social Security Number (SSN)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-bofa-cc/&quot;&gt;Bank of America CC&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-bilt-cc/&quot;&gt;Bilt 2.0 for Rent&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-money-transfer/&quot;&gt;Best Ways to Send Money Home&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;2. Connectivity &amp;amp; Communication&lt;/h4&gt;
&lt;p&gt;Getting connected is the first thing you&#39;ll do after stepping off the plane.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-sim-card/&quot;&gt;Getting Your First US SIM Card&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-internet-setup/&quot;&gt;Setting Up Home Internet&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;3. Settling Into Your Home&lt;/h4&gt;
&lt;p&gt;Once you have a roof over your head, there are several utilities and services to manage.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-housing/&quot;&gt;Finding and Setting Up Your Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-pge-utility/&quot;&gt;Gas and Electric (PG&amp;amp;E)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-grocery-apps/&quot;&gt;Essential Grocery Apps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-offerup/&quot;&gt;Furnishing on a Budget&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-library/&quot;&gt;The Hidden Perks of a Library Card&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-costco/&quot;&gt;Navigating Costco Bulk Shopping&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;4. Legal &amp;amp; Identification&lt;/h4&gt;
&lt;p&gt;Keeping your status legal and having valid US-issued ID is crucial for travel and daily life.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-uscis/&quot;&gt;USCIS and i-94&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-ssa/&quot;&gt;Understanding the SSA&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-state-id-real-id/&quot;&gt;State ID / Real ID&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-driver-license/&quot;&gt;US Driver&#39;s License&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;5. Healthcare &amp;amp; Future Planning&lt;/h4&gt;
&lt;p&gt;The US retirement and healthcare systems are unique. Starting early is key to long-term success.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-health-insurance/&quot;&gt;Demystifying US Health Insurance&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-hsa/&quot;&gt;Maximizing the HSA &amp;quot;Triple Tax Advantage&amp;quot;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-401k/&quot;&gt;Investing in Your Future with a 401(k)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;6. Getting Around&lt;/h4&gt;
&lt;p&gt;If you&#39;re in a major metropolitan area, understanding public transit is a must.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/us-clipper-card/&quot;&gt;SF Bay Area Transit Clipper&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Closing Thoughts&lt;/h3&gt;
&lt;p&gt;Four years sounds like a long time, but in the grand scheme of an immigrant&#39;s journey, it’s just the beginning. I&#39;ve learned that the &amp;quot;American Dream&amp;quot; isn&#39;t just about what you achieve, but also about the systems you learn to master and the communities you build along the way.&lt;/p&gt;
&lt;p&gt;Here’s to many more years of exploration, learning, and growth. If you found these notes helpful, feel free to share them with anyone embarking on their own US journey!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Bilt 2.0 for Rent | Earn Points on Rent Without Fees</title>
    <link href="https://karthikkadambi.com/notes/us-bilt-cc/" />
    <updated>2026-02-11T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-bilt-cc/</id>
    <content type="html">&lt;p&gt;Rent is usually the largest expense for any new immigrant. While most landlords charge a 3% fee for credit card payments, &lt;strong&gt;Bilt 2.0&lt;/strong&gt; solves this while letting you earn valuable travel points and cash back.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Bilt 2.0 Works&lt;/h3&gt;
&lt;p&gt;With the 2.0 update, Bilt has shifted how it handles payments to be even more seamless:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;ACH Direct Pull:&lt;/strong&gt; Bilt pulls funds directly from your linked bank account via ACH. This avoids &amp;quot;convenience fees&amp;quot; while still qualifying you for rewards.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No Transaction Minimums:&lt;/strong&gt; The previous requirement to make 5 transactions per month has been phased out in Bilt 2.0. You now earn on rent based on your spending thresholds.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Routing &amp;amp; Account Numbers:&lt;/strong&gt; Bilt provides unique numbers to enter into your landlord&#39;s portal, making it look like a standard bank transfer.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Double Currency: Points &amp; Bilt Cash&lt;/h3&gt;
&lt;p&gt;Bilt 2.0 introduces a flexible rewards ecosystem where you can choose how you get paid:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Tiered Bilt Points:&lt;/strong&gt; Earn between &lt;strong&gt;0.5x and 1.25x&lt;/strong&gt; points on rent based on your card usage. To get the maximum 1.25x, your everyday spending should match or exceed your rent.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bilt Cash:&lt;/strong&gt; A new currency that offers &lt;strong&gt;4% back&lt;/strong&gt; on everyday purchases. You can use Bilt Cash to &amp;quot;boost&amp;quot; your rent points or redeem it dollar-for-dollar for travel, dining, or shopping.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transfer Partners:&lt;/strong&gt; Points still transfer 1:1 to premium partners like &lt;strong&gt;Hyatt&lt;/strong&gt;, &lt;strong&gt;United&lt;/strong&gt;, and &lt;strong&gt;American Airlines&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Pro-Tip:&lt;/strong&gt; You can toggle between earning Bilt Points or Bilt Cash in the app depending on whether you want to save for a big flight or get immediate value back on your spending.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Start Earning on Rent:&lt;/strong&gt; Explore the new Bilt Cash system and apply at the &lt;a href=&quot;https://www.bilt.com/card?invite=ATACUF8C&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Bilt Rewards Official Site&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>Bank of America CC | Customized Cash Rewards</title>
    <link href="https://karthikkadambi.com/notes/us-bofa-cc/" />
    <updated>2026-02-08T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-bofa-cc/</id>
    <content type="html">&lt;p&gt;Once you&#39;ve had your BoFA checking account for a few months and your credit score (started by Zolve) is appearing, you can apply for a &lt;strong&gt;Bank of America Credit Card&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Opportunity&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No SSN (Initially):&lt;/strong&gt; If you still don&#39;t have your SSN card but have your bank account, BoFA is often willing to issue a card based on your internal banking history with them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Customized Cash Rewards:&lt;/strong&gt; Their most popular card allows you to choose a category (like Online Shopping) to get 3% cashback.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Pro-tip:&lt;/strong&gt; If you keep a high balance in your BoFA accounts, you might qualify for their &amp;quot;Preferred Rewards&amp;quot; program, which boosts your credit card cashback even further.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Apply Online:&lt;/strong&gt; Learn more about the &lt;a href=&quot;https://www.bankofamerica.com/credit-cards/products/cash-back-credit-card/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Customized Cash Rewards Credit Card&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>How Internet Works | Connecting the Dots</title>
    <link href="https://karthikkadambi.com/posts/how-the-internet-works/" />
    <updated>2026-02-08T00:00:00Z</updated>
    <id>https://karthikkadambi.com/posts/how-the-internet-works/</id>
    <content type="html">&lt;div class=&quot;grid&quot; data-layout=&quot;50-50&quot;&gt;
    &lt;div class=&quot;flow&quot;&gt;
        &lt;p&gt;The internet isn&#39;t a single thing, it&#39;s a series of handshakes, lookups, and translations that happen in milliseconds. Let&#39;s trace a single request from your keyboard to a database halfway across the world.&lt;/p&gt;
        &lt;p&gt;Most of us take it for granted: you type a URL, hit enter, and a fraction of a second later, a world of information appears. But between that keystroke and the rendered page lies a complex, multi-layered choreography of protocols and hardware.&lt;/p&gt;
        &lt;p&gt;This post deconstructs that journey. We&#39;ll follow a single request as it exits your browser, traverses your home Wi-Fi, navigates the sprawling infrastructure of your ISP, and finally reaches the &quot;edge&quot; and data centers that host the modern web. Every step from local ARP lookups to global BGP routing plays a vital role in the mosaic of global communication.&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class=&quot;flow&quot;&gt;
        &lt;img src=&quot;https://karthikkadambi.com/assets/images/posts/request-journey-detailed.png&quot; alt=&quot;The Detailed Journey of a Web Request&quot; width=&quot;640&quot; height=&quot;640&quot;&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Phase 1: The Local Network (LAN)&lt;/h3&gt;
The journey begins on your device before you even touch the &quot;real&quot; internet.
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Identity &amp;amp; Configuration&lt;/strong&gt;: Your computer needs an address. It uses &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/dhcp/&quot;&gt;DHCP&lt;/a&gt;&lt;/strong&gt; to automatically lease an &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/ip-address/&quot;&gt;IP Address&lt;/a&gt;&lt;/strong&gt; (or an &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/ipv6/&quot;&gt;IPv6&lt;/a&gt;&lt;/strong&gt; address) from your router.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hardware Handshakes&lt;/strong&gt;: To talk to your router, your computer needs to find its physical hardware address using &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/arp/&quot;&gt;ARP (Address Resolution Protocol)&lt;/a&gt;&lt;/strong&gt; to map the IP to a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/mac-address/&quot;&gt;MAC Address&lt;/a&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Local Gateway&lt;/strong&gt;: Your request hits the router. Because your home uses private IPs, the router uses &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/nat/&quot;&gt;NAT (Network Address Translation)&lt;/a&gt;&lt;/strong&gt; to &amp;quot;cloak&amp;quot; your device. The router also manages your local &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/subnet/&quot;&gt;Subnet&lt;/a&gt;&lt;/strong&gt;, ensuring that traffic meant for your printer doesn&#39;t leak out to the internet and that your internal home network is logically divided.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Exit&lt;/strong&gt;: The data is chopped into &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/packet/&quot;&gt;Packets&lt;/a&gt;&lt;/strong&gt;, which are sent out through a specific &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/ports/&quot;&gt;Port&lt;/a&gt;&lt;/strong&gt;. Depending on the application, it will use either &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/tcp-ip/&quot;&gt;TCP/IP&lt;/a&gt;&lt;/strong&gt; for reliability or &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/udp/&quot;&gt;UDP&lt;/a&gt;&lt;/strong&gt; for raw speed (common in gaming, video calls, or DNS). These packets travel onto the ISP&#39;s fiber lines.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Phase 2: The Core Internet (WAN)&lt;/h3&gt;
Now your request is in the &quot;wild,&quot; traveling across the global backbone.
&lt;ol start=&quot;5&quot;&gt;
&lt;li&gt;&lt;strong&gt;Finding the Destination&lt;/strong&gt;: Your browser doesn&#39;t know where &lt;code&gt;google.com&lt;/code&gt; is. It performs a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/dns/&quot;&gt;DNS (Domain Name System)&lt;/a&gt;&lt;/strong&gt; lookup. If the domain was recently bought, it might still be propagating through &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/domain-name-registration/&quot;&gt;Domain Name Registration&lt;/a&gt;&lt;/strong&gt; servers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Establishing Trust&lt;/strong&gt;: Once the IP is found, your browser starts a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/tcp-ip/&quot;&gt;TCP/IP&lt;/a&gt;&lt;/strong&gt; handshake. To make it secure, it layers on &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/ssl-tls/&quot;&gt;SSL/TLS&lt;/a&gt;&lt;/strong&gt; to create an &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/https/&quot;&gt;HTTPS&lt;/a&gt;&lt;/strong&gt; connection. If it&#39;s a modern site, it might use &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/http-3/&quot;&gt;HTTP/3 &amp;amp; QUIC&lt;/a&gt;&lt;/strong&gt; to bypass TCP&#39;s speed limits.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Global Routing&lt;/strong&gt;: Your packets don&#39;t take a straight line. They are moved by &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/switching/&quot;&gt;Switching&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/routing/&quot;&gt;Routing&lt;/a&gt;&lt;/strong&gt; equipment. The global path is determined by &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/bgp/&quot;&gt;BGP (Border Gateway Protocol)&lt;/a&gt;&lt;/strong&gt;, which acts as the internet&#39;s GPS, navigating through different Autonomous Systems.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Phase 3: The Edge &amp; Security&lt;/h3&gt;
Before reaching the server, the request is inspected and optimized.
&lt;ol start=&quot;8&quot;&gt;
&lt;li&gt;&lt;strong&gt;The Front Line&lt;/strong&gt;: Most big sites use a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/cdn/&quot;&gt;CDN (Content Delivery Network)&lt;/a&gt;&lt;/strong&gt;. If the content is already in the &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/caching/&quot;&gt;Cache&lt;/a&gt;&lt;/strong&gt; at an edge server near you, the journey ends here—saving thousands of miles of travel.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Gatekeeper&lt;/strong&gt;: If not cached, the request hits a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/firewall/&quot;&gt;Firewall&lt;/a&gt;&lt;/strong&gt; and possibly a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/firewall/&quot;&gt;WAF (Web Application Firewall)&lt;/a&gt;&lt;/strong&gt; to check for malicious patterns.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Anonymizer&lt;/strong&gt;: If you are using a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/vpn/&quot;&gt;VPN&lt;/a&gt;&lt;/strong&gt; or a &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/proxy-servers/&quot;&gt;Proxy Server&lt;/a&gt;&lt;/strong&gt;, your request is further encapsulated or forwarded to hide your original location and identity.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Phase 4: The Data Center&lt;/h3&gt;
The request has finally arrived at the destination&#39;s home.
&lt;ol start=&quot;11&quot;&gt;
&lt;li&gt;&lt;strong&gt;The Traffic Cop&lt;/strong&gt;: A &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/load-balancing/&quot;&gt;Load Balancer&lt;/a&gt;&lt;/strong&gt; receives the request and decides which specific server in the data center is least busy and should handle it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Web Server&lt;/strong&gt;: The request hits a program like Nginx or Apache (&lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/hosting/&quot;&gt;Hosting&lt;/a&gt;&lt;/strong&gt;). It interprets the &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/http/&quot;&gt;HTTP&lt;/a&gt;&lt;/strong&gt; headers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Real-Time Data&lt;/strong&gt;: If the page needs live updates (like a chat or stock price), it might upgrade the connection to &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/websockets/&quot;&gt;WebSockets&lt;/a&gt;&lt;/strong&gt; for a persistent two-way pipe.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Communication &amp;amp; Response&lt;/strong&gt;: The server processes the request (often involving &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/data-communication/&quot;&gt;Data Communication&lt;/a&gt;&lt;/strong&gt; with internal databases) and sends a response packet back through the same layers of the &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/networking/&quot;&gt;Networking&lt;/a&gt;&lt;/strong&gt; stack.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How it all connects&lt;/h3&gt;
&lt;p&gt;This entire process—from ARP at home to BGP in the core to Load Balancing in the cloud—is what defines modern &lt;strong&gt;&lt;a href=&quot;https://karthikkadambi.com/notes/what-is-communication/&quot;&gt;Communication&lt;/a&gt;&lt;/strong&gt;. Every note in this collection is a tile in the mosaic of the global internet.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Setting Up Home Internet | Xfinity, AT&amp;T Fiber, and More</title>
    <link href="https://karthikkadambi.com/notes/us-internet-setup/" />
    <updated>2026-02-07T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-internet-setup/</id>
    <content type="html">&lt;p&gt;In today&#39;s world, internet is as vital as water and electricity. In the US, the provider you choose often depends on your specific apartment builder&#39;s wiring.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Main Providers&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Xfinity (Comcast):&lt;/strong&gt; Very common, easy self-install kits.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AT&amp;amp;T Fiber:&lt;/strong&gt; Extremely fast if available in your area.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sonic:&lt;/strong&gt; Great local provider in parts of the Bay Area.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Self-Install vs. Technician&lt;/h3&gt;
&lt;p&gt;Most providers offer a &amp;quot;Self-Install Kit&amp;quot; which they mail to you. You simply plug in the modem to the coax or fiber port in your wall. If it doesn&#39;t work, you&#39;ll need to schedule a technician visit, which might have a fee.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Always check for &amp;quot;new customer&amp;quot; deals or student/low-income programs if applicable.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>US Driver&#39;s License | DMV, Written Test, and Driving Test</title>
    <link href="https://karthikkadambi.com/notes/us-driver-license/" />
    <updated>2026-02-04T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-driver-license/</id>
    <content type="html">&lt;p&gt;In most of the US, a &lt;strong&gt;Driver&#39;s License (DL)&lt;/strong&gt; is essential for daily life. Even if you have an international license, it&#39;s usually only valid for a few months after you establish residency.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Process&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Written Test:&lt;/strong&gt; Take a knowledge test at the DMV. You can study using the handbook available on the DMV website.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Behind-the-Wheel Test:&lt;/strong&gt; Once you pass the written test, you&#39;ll get a permit to practice. Then, you&#39;ll need to schedule a driving test.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Documents:&lt;/strong&gt; Similar to the State ID, you&#39;ll need proof of identity, SSN, and residency.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; You must provide your own car for the test, and it must have valid registration and insurance. Many people use a car from a driving school for the test.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;DMV Portal:&lt;/strong&gt; Start your application and schedule your tests at the &lt;a href=&quot;https://www.dmv.ca.gov/portal/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;California DMV Official Site&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>Understanding the SSA | Your Lifelong Financial Partner</title>
    <link href="https://karthikkadambi.com/notes/us-ssa/" />
    <updated>2026-02-01T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-ssa/</id>
    <content type="html">&lt;p&gt;The &lt;strong&gt;Social Security Administration (SSA)&lt;/strong&gt; is not just where you get your card; it&#39;s a lifelong agency you&#39;ll interact with.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Your SSA Account&lt;/h3&gt;
&lt;p&gt;Once you have your SSN, you should create an account online. This allows you to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Verify your yearly earnings (important for future retirement benefits).&lt;/li&gt;
&lt;li&gt;Update your contact info.&lt;/li&gt;
&lt;li&gt;Get estimates for retirement or disability benefits.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Crucial Note:&lt;/strong&gt; Errors in your reported income can take years to fix, so check your statement once a year after you file your taxes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Credits Needed for Retirement:&lt;/strong&gt; You need 40 credits (typically earned over 10 years of work) to qualify for retirement benefits. You can earn up to 4 credits per year, and each credit requires a set amount of earnings that adjusts annually.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Access Your Records:&lt;/strong&gt; Create or log in to your personal account at the &lt;a href=&quot;https://www.ssa.gov/myaccount/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Official SSA MyAccount Portal&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>USCIS and i-94 | Tracking Your Status</title>
    <link href="https://karthikkadambi.com/notes/us-uscis/" />
    <updated>2026-01-31T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-uscis/</id>
    <content type="html">&lt;p&gt;&lt;strong&gt;USCIS (United States Citizenship and Immigration Services)&lt;/strong&gt; is the agency that handles your legal status in the US.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Tasks&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;i-94 Travel History:&lt;/strong&gt; Whenever you enter or leave the US, check your i-94 to ensure the &amp;quot;Admit Until&amp;quot; date is correct. This is your official record of admission.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Change of Address (AR-11):&lt;/strong&gt; You are legally required to notify USCIS within 10 days of moving to a new address. This can be done easily online through your USCIS account.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Case Status:&lt;/strong&gt; Keep your receipt numbers handy to track any pending petitions (like EAD or Green Card).&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Official Resources:&lt;/strong&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;https://i94.cbp.dhs.gov/I94/#/home&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;CBP i-94 Website&lt;/a&gt; - Check your travel history and admission record.&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://www.uscis.gov/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;USCIS Official Site&lt;/a&gt; - Track cases and file address changes (AR-11).&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>State ID / Real ID | Getting Your First ID</title>
    <link href="https://karthikkadambi.com/notes/us-state-id-real-id/" />
    <updated>2026-01-28T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-state-id-real-id/</id>
    <content type="html">&lt;p&gt;If you don&#39;t plan on driving immediately, a &lt;strong&gt;State ID&lt;/strong&gt; is a great way to have a US-issued photo ID without carrying your passport everywhere.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a REAL ID?&lt;/h3&gt;
&lt;p&gt;Starting May 7, 2025 (check current dates), you&#39;ll need a &amp;quot;Real ID&amp;quot; compliant license or ID to board domestic flights or enter certain federal buildings. It&#39;s marked with a gold star.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If your visa stamp is expired, you will not be able to get a Real ID, even if your underlying status is still valid. A regular (non-Real ID) State ID is not affected by this and can still be obtained.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How to Get One&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Location:&lt;/strong&gt; Visit your local DMV (Department of Motor Vehicles).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Documents:&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Proof of Identity (Passport/Visa)&lt;/li&gt;
&lt;li&gt;Proof of SSN (SSN Card)&lt;/li&gt;
&lt;li&gt;Two proofs of residency (Utility bill, lease agreement)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fee:&lt;/strong&gt; There is usually a small processing fee.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Appointments at the DMV are highly recommended!&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;DMV ID Services:&lt;/strong&gt; Learn more about requirements and start your application at the &lt;a href=&quot;https://www.dmv.ca.gov/portal/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;California DMV Official Site&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>Social Security Number | Getting Your SSN</title>
    <link href="https://karthikkadambi.com/notes/us-ssn/" />
    <updated>2026-01-25T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-ssn/</id>
    <content type="html">&lt;p&gt;The &lt;strong&gt;Social Security Number (SSN)&lt;/strong&gt; is your primary identifier for almost everything in the US—from getting paid to opening bank accounts and renting.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Timeline&lt;/h3&gt;
&lt;p&gt;You usually need to wait about 10 days after landing in the US before applying, to ensure your arrival status has been updated in the SAVE system.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How to Apply&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Start Online:&lt;/strong&gt; It is much faster to start your application online at the official SSA website.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Visit the Office:&lt;/strong&gt; After submitting online, you have 45 days to visit your nearest SSA office to show your original documents.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Documents:&lt;/strong&gt; Bring your Passport, Visa, i-94 (fetch it online), and i-797.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Card:&lt;/strong&gt; After the in-person verification, your card will be mailed to your US address within 2-4 weeks. &lt;strong&gt;Keep it safe!&lt;/strong&gt; Do not carry it in your wallet.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;SSA Portal:&lt;/strong&gt; Apply for your first-time number and find office locations at the &lt;a href=&quot;https://www.ssa.gov/number-card/request-number-first-time&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Official SSA Website&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>Gas and Electric | Setting Up PG&amp;E</title>
    <link href="https://karthikkadambi.com/notes/us-pge-utility/" />
    <updated>2026-01-24T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-pge-utility/</id>
    <content type="html">&lt;p&gt;If you are living in Northern or Central California, &lt;strong&gt;PG&amp;amp;E (Pacific Gas and Electric)&lt;/strong&gt; will likely be your utility provider.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How to Setup&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Online:&lt;/strong&gt; Visit the PG&amp;amp;E website and select &amp;quot;Start Service.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Details:&lt;/strong&gt; You&#39;ll need your new address and the date you want the service to begin (usually your move-in date).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Identification:&lt;/strong&gt; You might be asked for an SSN. If you don&#39;t have one yet, you may need to call their customer service and provide alternative ID or pay a deposit.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Pro-tip:&lt;/strong&gt; Check if your apartment manager handles the setup for you. Some &amp;quot;all-inclusive&amp;quot; utilities might exist, but usually, PG&amp;amp;E is separate.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;PG&amp;E Portal:&lt;/strong&gt; Start, stop, or move your service at the &lt;a href=&quot;https://www.pge.com/en.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Official PG&amp;E Site&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>Opening Your US Bank Account | BoFA Guide</title>
    <link href="https://karthikkadambi.com/notes/us-bofa-bank-account/" />
    <updated>2026-01-21T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-bofa-bank-account/</id>
    <content type="html">&lt;p&gt;Bank of America (BoFA) is often the preferred choice for new H1B arrivals because they are generally more accommodating to those without an SSN yet.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Requirements&lt;/h3&gt;
&lt;p&gt;To open an account, you usually need:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Passport:&lt;/strong&gt; Your primary identification.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;i797B (Approval Notice):&lt;/strong&gt; Proof of your legal status and authorization to work.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;US Address:&lt;/strong&gt; To receive your debit card and statements.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Process&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Walk into a local branch (it&#39;s better to make an appointment online).&lt;/li&gt;
&lt;li&gt;Tell them you are new to the country and want to open a checking account.&lt;/li&gt;
&lt;li&gt;Provide your documents. They will use your passport and visa details in lieu of an SSN.&lt;/li&gt;
&lt;li&gt;Once you get your SSN, remember to go back and update your profile!&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Schedule an Appointment:&lt;/strong&gt; Skip the line by booking a visit to your local branch at the &lt;a href=&quot;https://secure.bankofamerica.com/secure-mycommunications/public/appointments/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;BoFA Appointment Portal&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>Finding Your Home | Renting Your First US Apartment</title>
    <link href="https://karthikkadambi.com/notes/us-housing/" />
    <updated>2026-01-18T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-housing/</id>
    <content type="html">&lt;p&gt;Finding a place to live is one of the most stressful parts of moving. Without credit history, it can be challenging, but not impossible.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Search&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Apps:&lt;/strong&gt; Zillow, Apartments.com, and Redfin are your best friends.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Leasing Offices:&lt;/strong&gt; In the US, most large apartment complexes have on-site leasing offices. You can walk in for a tour.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Requirements for Newcomers&lt;/h3&gt;
&lt;p&gt;Since you won&#39;t have a credit score yet, landlords often ask for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your offer letter (proof of income).&lt;/li&gt;
&lt;li&gt;A copy of your visa and passport.&lt;/li&gt;
&lt;li&gt;A higher security deposit (sometimes 1-2 months&#39; rent) or you can get a guarantor who has a good credit score and income in the US and this helps reduce the security deposit.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Setting Up Utilities&lt;/h3&gt;
&lt;p&gt;Once you sign a lease, you&#39;ll need to set up utilities like electricity (PG&amp;amp;E in Cali), water, and trash before you move in.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Getting Your First US SIM Card | Staying Connected</title>
    <link href="https://karthikkadambi.com/notes/us-sim-card/" />
    <updated>2026-01-17T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-sim-card/</id>
    <content type="html">&lt;p&gt;Communication is the first thing you need after landing. Getting a local SIM card is essential for everything from calling a cab to filling out forms that require a US phone number.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Popular Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;T-Mobile:&lt;/strong&gt; Often has great plans for newcomers and good international roaming features.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AT&amp;amp;T:&lt;/strong&gt; Reliable coverage across most states.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mint Mobile:&lt;/strong&gt; A great budget-friendly option that uses T-Mobile&#39;s network.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How to Get One&lt;/h3&gt;
&lt;p&gt;You can ask your employer to provide you with a temporary US phone number until you get your own and this number helps when you are getting your bank account or SSN, you can then port the same number to network of your choice later.&lt;/p&gt;
&lt;p&gt;Also, most airports have kiosks, but it&#39;s often better to visit a store in the city for better deals. You&#39;ll need your passport and a US address (even if temporary). Some providers might require an SSN for post-paid plans, but pre-paid plans are always an option without one.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Starting Credit History | Zolve CC</title>
    <link href="https://karthikkadambi.com/notes/us-zolve-cc/" />
    <updated>2026-01-14T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/us-zolve-cc/</id>
    <content type="html">&lt;p&gt;When moving to the US, one of the biggest &amp;quot;chicken and egg&amp;quot; problems is credit history. You need credit history to get a credit card, but you need a credit card to build history.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Zolve&lt;/strong&gt; is a great solution for this. They allow you to apply for a US credit card and bank account while you are still in your home country (like India) using your visa and passport.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why Zolve?&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No SSN required initially:&lt;/strong&gt; You can apply with just your passport and H1B visa.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pre-arrival setup:&lt;/strong&gt; You can have your card ready by the time you land.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Credit Building:&lt;/strong&gt; It starts reporting to US credit bureaus from day one, helping you build that crucial score early.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For many H1B holders, this is the first financial step before even stepping foot on US soil.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Start Your Credit Journey:&lt;/strong&gt; Apply for your US account before you land at the &lt;a href=&quot;https://zolve.com/referral?referral_code=ZOLVE-0R526OWY&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Official Zolve Site&lt;/a&gt;.
&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>BGP Explained | How the Global Internet Stays Connected</title>
    <link href="https://karthikkadambi.com/notes/bgp/" />
    <updated>2026-01-11T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/bgp/</id>
    <content type="html">&lt;p&gt;The &lt;strong&gt;Border Gateway Protocol (BGP)&lt;/strong&gt; is the postal service of the Internet. When someone drops a letter into a mailbox, the Postal Service looks at the address and chooses a fast, efficient route to deliver that letter. BGP does the same for the Internet.&lt;/p&gt;
&lt;p&gt;The Internet is a network of networks. It’s made up of hundreds of thousands of individual networks known as &lt;strong&gt;Autonomous Systems (AS)&lt;/strong&gt;. BGP is the protocol that allows these ASes to communicate with each other, sharing information about which IP addresses they &amp;quot;own&amp;quot; and which other networks they are connected to.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How BGP Works&lt;/h3&gt;
&lt;p&gt;BGP doesn&#39;t just look at the shortest physical distance. It considers a variety of factors, including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Path Attributes:&lt;/strong&gt; The number of networks (AS hops) the data must pass through.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Policy-based Routing:&lt;/strong&gt; Organizations can set rules based on cost, performance, or trust.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stability:&lt;/strong&gt; BGP favors routes that are stable and haven&#39;t &amp;quot;flapped&amp;quot; (gone up and down) recently.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;BGP uses &lt;strong&gt;TCP (Port 179)&lt;/strong&gt; to establish a connection between &amp;quot;neighbors&amp;quot; or &amp;quot;peers.&amp;quot; Once connected, they exchange their entire routing tables and then only send updates when something changes.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Concepts&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Autonomous System (AS):&lt;/strong&gt; A large network or group of networks managed by a single organization (like an ISP, a university, or a large tech company). Each AS is assigned a unique &lt;strong&gt;AS Number (ASN)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Peering vs. Transit:&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Peering:&lt;/strong&gt; Two networks exchange traffic directly for mutual benefit, often without exchanging money.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transit:&lt;/strong&gt; A smaller network pays a larger network (a Tier-1 ISP) to carry its traffic to the rest of the global Internet.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;EBGP vs. IBGP:&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;External BGP (EBGP):&lt;/strong&gt; Used to route traffic between different ASes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Internal BGP (IBGP):&lt;/strong&gt; Used to route traffic within a single AS.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why BGP is Fragile (BGP Hijacking)&lt;/h3&gt;
&lt;p&gt;BGP was designed in an era when the Internet was small and based on trust. Because there is no built-in mechanism to verify that a network actually &amp;quot;owns&amp;quot; the IP addresses it claims to own, a network can accidentally (or maliciously) broadcast that it has a better route to a certain destination.&lt;/p&gt;
&lt;p&gt;This is known as &lt;strong&gt;BGP Hijacking&lt;/strong&gt;. It can lead to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Traffic Redirection:&lt;/strong&gt; Data is sent to the wrong place, where it can be inspected or dropped.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DDoS Attacks:&lt;/strong&gt; Traffic is overwhelmed by being funneled into a network that can&#39;t handle it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Outages:&lt;/strong&gt; Large sections of the Internet can become unreachable (e.g., the famous Facebook outage of 2021 was caused by a BGP configuration error).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Modern Improvements&lt;/h3&gt;
&lt;p&gt;To fix these security gaps, the industry is moving toward &lt;strong&gt;RPKI (Resource Public Key Infrastructure)&lt;/strong&gt;, which uses cryptographic signatures to prove that a network is authorized to announce specific IP address blocks.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>IPv6 Explained | The Future of Internet Addressing</title>
    <link href="https://karthikkadambi.com/notes/ipv6/" />
    <updated>2026-01-10T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/ipv6/</id>
    <content type="html">&lt;p&gt;The primary driver for IPv6 was the exhaustion of IPv4 addresses. IPv4 uses 32-bit addresses, allowing for about 4.3 billion unique addresses. In the early days of the Internet, this seemed like plenty. However, with the explosion of mobile devices, IoT, and always-on servers, we ran out.&lt;/p&gt;
&lt;p&gt;IPv6 uses &lt;strong&gt;128-bit addresses&lt;/strong&gt;, which allows for approximately 340 undecillion ($3.4 &#92;times 10^{38}$) addresses. This is enough to assign a unique address to every atom on the surface of the Earth and still have plenty left over.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Addressing Format&lt;/h3&gt;
IPv6 addresses are written in **hexadecimal** and separated by colons. 
Example: `2001:0db8:85a3:0000:0000:8a2e:0370:7334`
&lt;h4&gt;Sorthand Rules:&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Omit Leading Zeros:&lt;/strong&gt; &lt;code&gt;0db8&lt;/code&gt; becomes &lt;code&gt;db8&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Double Colon (&lt;code&gt;::&lt;/code&gt;):&lt;/strong&gt; A single sequence of groups containing only zeros can be replaced by &lt;code&gt;::&lt;/code&gt;. This can only be done once per address to avoid ambiguity.
&lt;ul&gt;
&lt;li&gt;Refined Example: &lt;code&gt;2001:db8:85a3::8a2e:370:7334&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Features of IPv6&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No More NAT:&lt;/strong&gt; Because addresses are so abundant, every device can have a public, globally unique IP address. This simplifies peer-to-peer communication and end-to-end security.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Improved Header Efficiency:&lt;/strong&gt; The IPv6 header is simpler and more streamlined than IPv4, reducing the processing load on routers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Autoconfiguration (SLAAC):&lt;/strong&gt; Devices can automatically generate their own IPv6 address using the &lt;strong&gt;Stateless Address Autoconfiguration&lt;/strong&gt; protocol, often based on their MAC address.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Built-in Security:&lt;/strong&gt; IPv6 was designed with IPsec (Internet Protocol Security) in mind, though its use is still optional in many implementations.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multicasting:&lt;/strong&gt; IPv6 eliminates &amp;quot;broadcast&amp;quot; traffic (which bothers every device on a network) and replaces it with efficient multicasting (which only goes to devices that want it).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Coexistence with IPv4&lt;/h3&gt;
&lt;p&gt;Since we can&#39;t switch the whole world to IPv6 overnight, several mechanisms allow them to coexist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Dual Stack:&lt;/strong&gt; Devices run both IPv4 and IPv6 protocols simultaneously.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tunneling:&lt;/strong&gt; IPv6 packets are encapsulated inside IPv4 packets to travel across IPv4-only networks.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;NAT64:&lt;/strong&gt; Allows IPv6-only devices to communicate with IPv4-only services through a translation gateway.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>WebSockets Explained | Real-Time Communication on the Web</title>
    <link href="https://karthikkadambi.com/notes/websockets/" />
    <updated>2026-01-07T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/websockets/</id>
    <content type="html">&lt;p&gt;&lt;strong&gt;WebSockets&lt;/strong&gt; is a communication protocol that provides full-duplex communication channels over a single TCP connection. Unlike HTTP, which is strictly &amp;quot;request-response,&amp;quot; WebSockets allow both the client and the server to send data at any time without waiting for the other party to ask for it.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How WebSockets Work&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;The Handshake:&lt;/strong&gt; A WebSocket connection starts as a standard HTTP request. The client sends a &amp;quot;Switching Protocols&amp;quot; request to the server.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Upgrade:&lt;/strong&gt; If the server supports WebSockets, it agrees to &amp;quot;upgrade&amp;quot; the connection.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Persistent Connection:&lt;/strong&gt; The underlying TCP connection is kept open. Now, data can flow back and forth in a lightweight format (frames) without the overhead of HTTP headers for every message.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;WebSockets vs. HTTP&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style=&quot;text-align:left&quot;&gt;Feature&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;HTTP&lt;/th&gt;
&lt;th style=&quot;text-align:left&quot;&gt;WebSockets&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;Communication&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Half-duplex (One-way at a time)&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Full-duplex (Two-way simultaneously)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;Connection&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Usually closed after each request&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Stays open (Persistent)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;Overhead&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;High (Headers in every request)&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Low (Lightweight frames)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align:left&quot;&gt;&lt;strong&gt;Efficiency&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Best for static content or one-off data&lt;/td&gt;
&lt;td style=&quot;text-align:left&quot;&gt;Best for real-time, high-frequency updates&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Use Cases for WebSockets&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Chat Applications:&lt;/strong&gt; Instant messaging where messages need to appear as soon as they are sent.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Financial Tickers:&lt;/strong&gt; Real-time stock prices or cryptocurrency exchange data.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Collaborative Editing:&lt;/strong&gt; Think Google Docs, where you see other people&#39;s cursors moving in real-time.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multiplayer Gaming:&lt;/strong&gt; Fast-paced games where low latency is critical.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Live Notifications:&lt;/strong&gt; Alerts for new emails, social media mentions, or system status updates.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Alternatives to WebSockets&lt;/h3&gt;
&lt;p&gt;If full bi-directional communication isn&#39;t needed, there are other options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Long Polling:&lt;/strong&gt; The client makes a request and the server &amp;quot;holds&amp;quot; it until it has new data. It&#39;s an older technique.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Server-Sent Events (SSE):&lt;/strong&gt; A one-way channel where the server can push updates to the client (but the client can&#39;t push back). This is simpler than WebSockets if you only need server-to-client updates (like a live news feed).&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Caching Explained |  How the Internet Avoids Repeated Work</title>
    <link href="https://karthikkadambi.com/notes/caching/" />
    <updated>2026-01-04T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/caching/</id>
    <content type="html">&lt;p&gt;&lt;strong&gt;Caching&lt;/strong&gt; is the process of storing copies of data in a temporary storage location (a cache) so that future requests for that data can be served faster. In the context of the web, caching happens at many different layers between the user and the server.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Layers of Caching&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Browser Caching:&lt;/strong&gt; Your web browser (Chrome, Firefox, Safari) stores images, scripts, and stylesheets on your local hard drive. When you revisit a site, the browser loads these files from your disk instead of downloading them again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CDN Caching:&lt;/strong&gt; Content Delivery Networks store copies of your website&#39;s files on servers located close to your users.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reverse Proxy/Load Balancer Caching:&lt;/strong&gt; Tools like Nginx or Varnish can sit in front of your web server and cache entire pages or API responses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Application/Database Caching:&lt;/strong&gt; Developers use tools like &lt;strong&gt;Redis&lt;/strong&gt; or &lt;strong&gt;Memcached&lt;/strong&gt; to store the results of expensive database queries or complex calculations in memory (RAM).&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Cache Invalidation: The Hard Part&lt;/h3&gt;
The biggest challenge in caching is knowing when to delete or update the cached data. This is called **cache invalidation**. If you cache a profile picture forever, and the user changes it, they will keep seeing the old one.
&lt;p&gt;Common strategies include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;TTL (Time to Live):&lt;/strong&gt; Giving the cached data an expiration date (e.g., &amp;quot;cache this for 1 hour&amp;quot;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Purging:&lt;/strong&gt; Explicitly telling the cache to delete a specific file because it has changed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cache Busting:&lt;/strong&gt; Adding a unique version number or hash to the filename (e.g., &lt;code&gt;style.v2.css&lt;/code&gt;). If the file changes, the name changes, and the cache treats it as a brand-new file.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Cache-Control Headers&lt;/h3&gt;
Web servers use HTTP headers to tell browsers and CDNs how to cache content:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cache-Control: public, max-age=31536000&lt;/strong&gt;: Anyone can cache this for 1 year. (Good for static images).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cache-Control: no-store&lt;/strong&gt;: Do not cache this at all. (Good for sensitive bank account info).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cache-Control: no-cache&lt;/strong&gt;: You can cache this, but you must check with the server before using it to see if it&#39;s still valid.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Metrics&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cache Hit:&lt;/strong&gt; The requested data was found in the cache. This is fast!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cache Miss:&lt;/strong&gt; The data was not in the cache and had to be fetched from the original source. This is slower.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hit Ratio:&lt;/strong&gt; The percentage of requests served from the cache (e.g., a 95% hit ratio means the cache is very effective).&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Proxy Servers Explained | Security and Anonymity</title>
    <link href="https://karthikkadambi.com/notes/proxy-servers/" />
    <updated>2026-01-03T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/proxy-servers/</id>
    <content type="html">&lt;p&gt;A &lt;strong&gt;proxy server&lt;/strong&gt; acts as a gateway between you and the internet. It’s an intermediate server separating end users from the websites they browse. When you use a proxy server, internet traffic flows through the proxy server on its way to the address you requested. The request then comes back through that same proxy server, and then the proxy server forwards the data received from the website to you.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Core Types of Proxies&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Forward Proxy (The &amp;quot;Standard&amp;quot; Proxy)
A forward proxy is used by a client (like your computer) to access resources on the internet.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Use Case:&lt;/strong&gt; A company uses a forward proxy to filter what websites employees can visit (e.g., blocking social media).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Benefits:&lt;/strong&gt; Anonymity (the destination website only sees the proxy&#39;s IP, not yours) and content filtering.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;Reverse Proxy
A reverse proxy sits in front of one or more web servers and intercepts requests from clients.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Use Case:&lt;/strong&gt; Websites use reverse proxies (like Nginx) to handle incoming traffic before it hits the actual application server.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Benefits:&lt;/strong&gt; Load balancing, SSL termination, and caching. The user thinks they are communicating directly with the website, but the reverse proxy is handling the &amp;quot;front desk&amp;quot; work.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;Transparent Proxy
A transparent proxy tells the destination website that it is a proxy server and it still passes along your original IP address.&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Use Case:&lt;/strong&gt; Public Wi-Fi networks (like in airports) often use these to authenticate users or cache content without requiring any configuration on the user&#39;s device.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why Use a Proxy Server?&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Anonymity:&lt;/strong&gt; Proxies can hide your true IP address, making it harder for websites to track you.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Improved Performance:&lt;/strong&gt; By caching frequently requested websites, a proxy can deliver content faster to many users simultaneously.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Security:&lt;/strong&gt; Modern proxies do more than just forward requests. They can encrypt traffic, block malware, and prevent data leaks.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Accessing Restricted Content:&lt;/strong&gt; Proxies can be used to bypass &amp;quot;geoblocking&amp;quot; or office/school firewalls by making it look like your traffic is coming from a different location.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Proxy vs. VPN&lt;/h3&gt;
While both hide your IP, they work differently:
- **Proxy:** Usually works at the **application level** (e.g., just for your web browser). It only reroutes the traffic of a specific app.
- **VPN:** Works at the **operating system level**. It encrypts and reroutes *all* traffic from your device, including background system updates and every app you use. VPNs are generally more secure but can be slower.
</content>
  </entry>
  <entry>
    <title>Load Balancing Explained | Distributing Traffic Efficiently</title>
    <link href="https://karthikkadambi.com/notes/load-balancing/" />
    <updated>2025-12-31T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/load-balancing/</id>
    <content type="html">&lt;p&gt;&lt;strong&gt;Load balancing&lt;/strong&gt; is the process of distributing incoming network traffic across a group of backend servers, also known as a &lt;em&gt;server farm&lt;/em&gt; or &lt;em&gt;server pool&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Imagine a popular website that gets millions of visits a day. A single server wouldn&#39;t be able to handle all that traffic. A load balancer sits in front of the servers and acts as a &amp;quot;traffic cop,&amp;quot; routing client requests to all servers capable of fulfilling those requests.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Load Balancers Work&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Request Arrival:&lt;/strong&gt; A user sends a request to your website.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Intercept:&lt;/strong&gt; The load balancer intercepts the request.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Selection:&lt;/strong&gt; The load balancer chooses a server from the pool based on a specific algorithm.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Forwarding:&lt;/strong&gt; The request is forwarded to the chosen server.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Response:&lt;/strong&gt; The server processes the request and sends the response back to the load balancer (or directly to the client, depending on the configuration).&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Load-Balancing Algorithms&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Round Robin:&lt;/strong&gt; Requests are distributed sequentially (Server A, then B, then C). Simple but doesn&#39;t account for server load.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Least Connections:&lt;/strong&gt; Requests are sent to the server with the fewest active connections. Good for sessions that vary in length.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;IP Hash:&lt;/strong&gt; The client&#39;s IP address is used to determine which server receives the request, ensuring a user always goes to the same server (session persistence).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Weighted Round Robin:&lt;/strong&gt; Servers with more capacity are assigned a higher weight and receive more traffic.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Layer 4 vs. Layer 7 Balancing&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Layer 4 (Transport Layer):&lt;/strong&gt; Makes routing decisions based on network information (IP addresses and TCP ports). It doesn&#39;t look at the content of the traffic. It&#39;s very fast and efficient.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Layer 7 (Application Layer):&lt;/strong&gt; Makes routing decisions based on the content of the request (HTTP headers, cookies, URL paths). This allows for much smarter routing, such as sending images to one server and video to another.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Benefits of Load Balancing&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;High Availability:&lt;/strong&gt; If one server fails, the load balancer automatically redirects traffic to the remaining healthy servers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scalability:&lt;/strong&gt; You can easily add or remove servers from the pool as traffic demand changes without any downtime.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Health Checks:&lt;/strong&gt; Load balancers constantly &amp;quot;ping&amp;quot; servers to make sure they are still working correctly. If a server stops responding, it&#39;s removed from the rotation.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SSL Offloading:&lt;/strong&gt; The load balancer can handle the expensive task of decrypting HTTPS traffic, freeing up the backend servers to focus on application logic.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>VPN Explained | How Secure Tunnels Work</title>
    <link href="https://karthikkadambi.com/notes/vpn/" />
    <updated>2025-12-28T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/vpn/</id>
    <content type="html">&lt;p&gt;A &lt;strong&gt;Virtual Private Network (VPN)&lt;/strong&gt; extends a private network across a public network and enables users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network.&lt;/p&gt;
&lt;p&gt;In simpler terms, it creates a secure, encrypted &amp;quot;tunnel&amp;quot; through which your data travels, making your online activities much harder to track or intercept.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How a VPN Works&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Encryption:&lt;/strong&gt; When you connect to a VPN service, it encrypts your data before it even leaves your device. This means that even if a hacker (or your ISP) intercepts your data, they only see garbled code.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tunneling:&lt;/strong&gt; Your encrypted data is &amp;quot;encapsulated&amp;quot; within another data packet. This process is called tunneling.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;IP Masking:&lt;/strong&gt; Your data travels to the VPN server, which then sends the request to the website you want to visit. To the website, the request looks like it’s coming from the VPN server&#39;s IP address, not yours.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key VPN Protocols&lt;/h3&gt;
&lt;p&gt;The speed and security of a VPN depend on the protocol it uses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;OpenVPN:&lt;/strong&gt; An open-source protocol that is highly secure and configurable. It’s the industry standard but can be slightly slower on some devices.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;WireGuard:&lt;/strong&gt; A newer, much faster, and more efficient protocol that uses modern cryptography. It is rapidly becoming the preferred choice for most users.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;IKEv2:&lt;/strong&gt; Known for its ability to quickly reconnect when a connection is dropped, making it ideal for mobile devices switching between Wi-Fi and cellular data.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Use Cases for a VPN&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Working from Home:&lt;/strong&gt; Securely access files and software on your company&#39;s internal server as if you were sitting in the office.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Privacy from ISPs:&lt;/strong&gt; ISPs often track and sell your browsing history. A VPN prevents them from seeing which sites you visit.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Safe Public Wi-Fi:&lt;/strong&gt; Public Wi-Fi (in cafes, hotels, etc.) is often unencrypted and dangerous. A VPN ensures that other people on that same network can&#39;t steal your login credentials or see your activity.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bypassing Censorship:&lt;/strong&gt; In countries with strict internet censorship, users use VPNs to access the free and open web.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Important Note: Trust&lt;/h3&gt;
&lt;p&gt;When you use a VPN, you are essentially shifting your trust from your ISP to your VPN provider. It’s important to choose a provider with a strict &lt;strong&gt;no-logs policy&lt;/strong&gt;, meaning they don&#39;t keep records of your browsing activity.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>CDN Explained | How Content Loads Faster Globally</title>
    <link href="https://karthikkadambi.com/notes/cdn/" />
    <updated>2025-12-27T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/cdn/</id>
    <content type="html">&lt;p&gt;A &lt;strong&gt;Content Delivery Network (CDN)&lt;/strong&gt; is a geographically distributed group of servers that work together to provide fast delivery of Internet content.&lt;/p&gt;
&lt;p&gt;Most of the web&#39;s traffic is served through CDNs, including traffic from major sites like Facebook, Netflix, and Amazon.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How a CDN Works&lt;/h3&gt;
&lt;p&gt;The main goal of a CDN is to reduce &lt;strong&gt;latency&lt;/strong&gt;—the delay between submitting a request for a web page and the page fully loading on your device.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Origin Server:&lt;/strong&gt; This is where the original version of your website lives. If you don&#39;t use a CDN, every user in the world has to fetch data from this one location.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Edge Servers (PoPs):&lt;/strong&gt; CDNs place servers at &amp;quot;Points of Presence&amp;quot; (PoPs) all around the world. These servers cache (store) a copy of your website&#39;s static content (images, CSS, JS, videos).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Request Routing:&lt;/strong&gt; When a user visits your site, the CDN automatically routes their request to the nearest edge server. Instead of a user in Sydney fetching an image from a server in New York, they fetch it from a server in Sydney.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Benefits of Using a CDN&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Improved Load Times:&lt;/strong&gt; By bringing content closer to the user, websites load significantly faster.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reduced Bandwidth Costs:&lt;/strong&gt; CDNs handle the majority of the traffic, so the origin server doesn&#39;t have to serve as much data, saving money on hosting.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Improved Content Availability:&lt;/strong&gt; If the origin server goes down, the CDN can often continue serving cached content to users.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Enhanced Security:&lt;/strong&gt; CDNs can mitigate &lt;strong&gt;DDoS (Distributed Denial of Service) attacks&lt;/strong&gt; by absorbing the massive influx of traffic across their global network of servers. They also often provide Web Application Firewalls (WAF) and SSL/TLS optimization.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Static vs. Dynamic Content&lt;/h3&gt;
- **Static Content:** Images, stylesheets, and scripts that don&#39;t change frequently. CDNs are perfect for this.
- **Dynamic Content:** Content generated on-the-fly (like a user&#39;s profile page). Modern CDNs can also speed up dynamic content by optimizing the connection between the edge server and the origin.
</content>
  </entry>
  <entry>
    <title>Firewall Explained | How Networks Control Traffic</title>
    <link href="https://karthikkadambi.com/notes/firewall/" />
    <updated>2025-12-24T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/firewall/</id>
    <content type="html">&lt;p&gt;A &lt;strong&gt;firewall&lt;/strong&gt; is a security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. It acts as a barrier between a trusted network (like an internal office network) and an untrusted network (like the Internet).&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Firewalls Work&lt;/h3&gt;
&lt;p&gt;Firewalls can be implemented in either hardware or software (or both). They inspect &amp;quot;packets&amp;quot; of data to see if they should be allowed through or blocked.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Types of Firewalls&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Packet Filtering (Stateless):&lt;/strong&gt; The simplest form. It looks at the source and destination IP addresses, protocol, and port numbers of each individual packet. It doesn&#39;t know the context of the connection (e.g., it doesn&#39;t know if a packet is part of an ongoing conversation).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stateful Inspection:&lt;/strong&gt; A more advanced type that tracks the &amp;quot;state&amp;quot; of active connections. It knows if an incoming packet is a response to a request you sent out, making it much harder for attackers to &amp;quot;spoof&amp;quot; their way in.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Application Layer Firewalls (WAF):&lt;/strong&gt; These focus on specific types of traffic, like HTTP. They can &amp;quot;look inside&amp;quot; the data to block specific types of attacks like SQL injection or Cross-Site Scripting (XSS).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Next-Generation Firewalls (NGFW):&lt;/strong&gt; These combine traditional firewalls with other network security functions, such as deep packet inspection (DPI), Intrusion Prevention Systems (IPS), and malware filtering.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Firewall Rules: The &quot;Allow&quot; and &quot;Deny&quot;&lt;/h3&gt;
Administrators create rules to define what is permitted.
- **Rule Example:** &quot;Allow all traffic from the internal network to access the web (Port 80/443), but block all incoming traffic from the Internet to the internal database (Port 1433).&quot;
- **Default Deny:** The most secure configuration. It blocks *everything* by default and only allows specific, trusted traffic that has been explicitly defined.
&lt;h3 class=&quot;header-branding&quot;&gt;Why Firewalls are Essential&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Access Control:&lt;/strong&gt; Prevents unauthorized users from accessing private network resources.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Threat Blocking:&lt;/strong&gt; Stops known malicious IPs and common attack patterns.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Privacy:&lt;/strong&gt; Can be used to hide internal IP addresses from the outside world (using NAT).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Compliance:&lt;/strong&gt; Many security standards (like PCI-DSS for credit cards) require the use of firewalls to protect sensitive data.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>DHCP Explained | How Devices Get IP Addresses Automatically</title>
    <link href="https://karthikkadambi.com/notes/dhcp/" />
    <updated>2025-12-21T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/dhcp/</id>
    <content type="html">&lt;p&gt;The &lt;strong&gt;Dynamic Host Configuration Protocol (DHCP)&lt;/strong&gt; is a network management protocol used on IP networks. A DHCP server dynamically assigns an IP address and other network configuration parameters to each device on a network so they can communicate with other IP networks.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The DORA Process&lt;/h3&gt;
When a device (client) joins a network, it goes through a four-step process to get an IP address, often remembered by the acronym **DORA**:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;D - Discover:&lt;/strong&gt; The client broadcasts a message on the network to find any available DHCP servers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;O - Offer:&lt;/strong&gt; A DHCP server receives the request and &amp;quot;offers&amp;quot; an available IP address to the client.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;R - Request:&lt;/strong&gt; The client accepts the offer and &amp;quot;requests&amp;quot; the specific IP address from the server.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A - Acknowledge:&lt;/strong&gt; The server confirms the assignment and provides the final configuration (subnet mask, gateway, DNS).&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Components of DHCP&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;DHCP Pools:&lt;/strong&gt; The range of IP addresses that the server is allowed to hand out.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lease Time:&lt;/strong&gt; IP addresses are not given forever. They are &amp;quot;leased&amp;quot; for a specific period (e.g., 24 hours). The client must renew the lease before it expires.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reservations (Static DHCP):&lt;/strong&gt; You can tell the DHCP server to always give a specific IP address to a specific device (identified by its MAC address). This is useful for printers or servers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DHCP Relay Agent:&lt;/strong&gt; In large networks with multiple subnets, a &amp;quot;relay agent&amp;quot; can sit on a router and forward DHCP requests to a central server on a different subnet.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why DHCP Matters&lt;/h3&gt;
&lt;p&gt;Without DHCP, a network administrator would have to manually configure every single device that joins the network. This would be:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Time-consuming:&lt;/strong&gt; Imagine manually configuring thousands of laptops and phones in a coffee shop or office.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error-prone:&lt;/strong&gt; It’s easy to accidentally assign the same IP address to two different devices (an IP conflict), which blocks both from the network.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Inflexible:&lt;/strong&gt; If the network structure changes (e.g., the DNS server moves), you would have to update every device manually. With DHCP, you just change the setting on the server.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>NAT Explained | How Multiple Devices Share One Public IP</title>
    <link href="https://karthikkadambi.com/notes/nat/" />
    <updated>2025-12-20T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/nat/</id>
    <content type="html">&lt;p&gt;&lt;strong&gt;Network Address Translation (NAT)&lt;/strong&gt; is a method used to remap one IP address space into another. In a typical home or office network, NAT allows multiple devices (laptops, phones, consoles) with &amp;quot;private&amp;quot; IP addresses to share a single &amp;quot;public&amp;quot; IP address provided by an ISP.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why NAT Exists&lt;/h3&gt;
&lt;p&gt;The main reason for NAT is &lt;strong&gt;IPv4 address exhaustion&lt;/strong&gt;. There are only about 4 billion IPv4 addresses. Without NAT, every device in every home would need a unique public IP, and we would have run out of addresses decades ago.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How NAT Works (The Airport Analogy)&lt;/h3&gt;
Imagine a large office building (Private Network) with many employees (Devices), but only one main receptionist (Router) who handles all the mail (Data).
- When you send a letter out, the receptionist swaps your internal desk number with the building&#39;s main address.
- The receptionist keeps a log of who sent what.
- When a reply arrives at the main address, the receptionist looks at the log and sends it to your specific desk.
&lt;h3 class=&quot;header-branding&quot;&gt;Common Types of NAT&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;PAT (Port Address Translation):&lt;/strong&gt; This is the most common form (often just called &amp;quot;NAT&amp;quot; in home routers). It uses unique &lt;strong&gt;port numbers&lt;/strong&gt; to distinguish which internal device should receive which incoming packet. This allows thousands of devices to share one IP.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Static NAT (One-to-One):&lt;/strong&gt; Maps one private IP to one public IP. Often used for hosting a server inside a private network that needs to be accessible from the outside.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dynamic NAT (Pooled):&lt;/strong&gt; Maps private IPs to a &amp;quot;pool&amp;quot; of public IPs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SNAT (Source NAT):&lt;/strong&gt; Changes the source address of the packets (used for outgoing traffic).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DNAT (Destination NAT / Port Forwarding):&lt;/strong&gt; Changes the destination address of incoming packets. This is what you use when you want to host a game server or a webcam and need people from the &amp;quot;outside&amp;quot; to be able to reach a specific &amp;quot;inside&amp;quot; device.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Benefits of NAT&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Address Conservation:&lt;/strong&gt; Allows millions of devices to exist behind a handful of public IPs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Security through Obscurity:&lt;/strong&gt; Since your private IP isn&#39;t visible on the internet, it’s much harder for an attacker to initiate a direct connection to your laptop.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Flexibility:&lt;/strong&gt; You can change your internal network structure (IP ranges) without needing to change your public IP address or notify your ISP.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Downside: NAT Traversal&lt;/h3&gt;
NAT can make things difficult for peer-to-peer applications (like VOIP or gaming) where two devices behind different NATs need to talk directly to each other. This often requires complex solutions like **STUN**, **TURN**, or **UPnP**.
</content>
  </entry>
  <entry>
    <title>Switching Explained | How Network Switches Move Data</title>
    <link href="https://karthikkadambi.com/notes/switching/" />
    <updated>2025-12-17T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/switching/</id>
    <content type="html">&lt;p&gt;Inside homes, offices and data centers, most communication does not go directly to the internet. It happens within local networks. Network switches are the devices that make this internal communication fast and efficient.&lt;/p&gt;
&lt;p&gt;Switching is about moving data between devices on the same network. It works at a lower level than routing and focuses on MAC addresses rather than IP addresses.&lt;/p&gt;
&lt;p&gt;This article explains what switching is, how switches work and why they are essential.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is switching&lt;/h3&gt;
&lt;p&gt;Switching is the process of forwarding data frames between devices within the same local network.&lt;/p&gt;
&lt;p&gt;A switch connects multiple devices such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Computers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Phones&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Printers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Servers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Access points&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Its job is simple. When a frame arrives, the switch decides which port should receive it and forwards it there.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why switches exist&lt;/h3&gt;
&lt;p&gt;Early networks used hubs. Hubs sent every packet to every device. This caused congestion and security issues.&lt;/p&gt;
&lt;p&gt;Switches improved this by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Sending data only where it needs to go&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reducing unnecessary traffic&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Increasing performance&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Improving privacy&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Switches made modern local networks possible.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Switch vs hub&lt;/h3&gt;
&lt;p&gt;Hub&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Broadcasts data to all ports&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No intelligence&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Slow&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Insecure&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Switch&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Learns device locations&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sends data only to destination&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Fast&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Efficient&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hubs are now obsolete. Switches are everywhere.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How a switch works step by step&lt;/h3&gt;
&lt;p&gt;Switches operate using MAC addresses.&lt;/p&gt;
&lt;p&gt;Step 1. Frame arrives at a port&lt;/p&gt;
&lt;p&gt;A device sends an Ethernet frame to the switch.&lt;/p&gt;
&lt;p&gt;Step 2. Switch reads source MAC&lt;/p&gt;
&lt;p&gt;The switch notes which port the source MAC address came from.&lt;/p&gt;
&lt;p&gt;Step 3. Switch updates MAC table&lt;/p&gt;
&lt;p&gt;The switch builds a table that maps MAC addresses to ports.&lt;/p&gt;
&lt;p&gt;Step 4. Switch checks destination MAC&lt;/p&gt;
&lt;p&gt;If the destination MAC is known, the frame is sent only to that port.&lt;/p&gt;
&lt;p&gt;Step 5. If destination is unknown&lt;/p&gt;
&lt;p&gt;The switch floods the frame to all ports except the incoming one.&lt;/p&gt;
&lt;p&gt;Once the destination replies, the switch learns its MAC address and updates the table.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;MAC address table explained&lt;/h3&gt;
&lt;p&gt;The MAC address table is the switch’s memory.&lt;/p&gt;
&lt;p&gt;It stores:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;MAC address&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Associated port&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Timestamp&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Entries expire if the device is inactive. This keeps the table accurate.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What happens during broadcast traffic&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Some traffic must reach all devices.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ARP requests&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;DHCP discovery&lt;/p&gt;
&lt;p&gt;Switches broadcast these frames to all ports in the same network segment.&lt;/p&gt;
&lt;p&gt;This is normal and necessary.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Broadcast domains&lt;/h3&gt;
&lt;p&gt;A broadcast domain is a group of devices that receive broadcast traffic.&lt;/p&gt;
&lt;p&gt;By default:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One switch equals one broadcast domain&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Large networks use VLANs or routers to split broadcast domains and reduce noise.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Switching and performance&lt;/h3&gt;
&lt;p&gt;Switches improve performance by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Reducing collisions&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Supporting full duplex communication&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Allowing multiple conversations simultaneously&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each port is its own collision domain. This means devices do not interfere with each other.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Switching vs routing&lt;/h3&gt;
&lt;p&gt;This is a common confusion.&lt;/p&gt;
&lt;p&gt;Switching&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Uses MAC addresses&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Works within a local network&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Fast and hardware optimized&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Routing&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Uses IP addresses&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Connects different networks&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Makes path decisions&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Switching handles local delivery. Routing handles inter network delivery.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;VLANs and switching&lt;/h3&gt;
&lt;p&gt;VLANs allow one physical switch to act like multiple logical networks.&lt;/p&gt;
&lt;p&gt;Benefits:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Traffic isolation&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Improved security&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reduced broadcast traffic&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Better organization&lt;/p&gt;
&lt;p&gt;Devices in different VLANs cannot talk directly without a router.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Switch security basics&lt;/h3&gt;
&lt;p&gt;Switches support basic security features such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Port security&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;MAC address limits&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Disabling unused ports&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These features prevent unauthorized devices from connecting.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Common misconceptions&lt;/h3&gt;
&lt;p&gt;Misconception 1&lt;/p&gt;
&lt;p&gt;Switches use IP addresses.
No. They use MAC addresses.&lt;/p&gt;
&lt;p&gt;Misconception 2&lt;/p&gt;
&lt;p&gt;Switches connect to the internet.
No. Routers do that.&lt;/p&gt;
&lt;p&gt;Misconception 3&lt;/p&gt;
&lt;p&gt;All switches are smart.
Unmanaged switches are simple. Managed switches provide advanced control.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Switching is the foundation of local networking. Switches intelligently forward frames using MAC addresses and make communication efficient and fast. Without switches, modern networks would be noisy, slow and insecure. Understanding switching prepares you perfectly for routing, VLANs and network segmentation.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>ARP Explained | How IP Addresses Find MAC Addresses</title>
    <link href="https://karthikkadambi.com/notes/arp/" />
    <updated>2025-12-14T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/arp/</id>
    <content type="html">&lt;p&gt;IP addresses tell us where a device is on a network.
MAC addresses tell us who the device is locally.&lt;/p&gt;
&lt;p&gt;But there is a problem.
When your computer wants to send data to another device on the same network, it knows the destination IP address but it does not know the destination MAC address. Ethernet and Wi-Fi require MAC addresses to deliver frames.&lt;/p&gt;
&lt;p&gt;ARP exists to solve this exact problem.&lt;/p&gt;
&lt;p&gt;This article explains what ARP is, why it exists, and how it quietly enables almost every network communication you use.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is ARP&lt;/h3&gt;
&lt;p&gt;ARP stands for Address Resolution Protocol.&lt;/p&gt;
&lt;p&gt;ARP is a protocol used to map an IP address to a MAC address inside a local network.&lt;/p&gt;
&lt;p&gt;It answers one simple question:&lt;/p&gt;
&lt;p&gt;“Which MAC address belongs to this IP address?”&lt;/p&gt;
&lt;p&gt;Without ARP, IP communication on local networks would not work.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why ARP is needed&lt;/h3&gt;
&lt;p&gt;IP operates at a logical level.
Ethernet and Wi-Fi operate at a physical delivery level.&lt;/p&gt;
&lt;p&gt;IP can say:&lt;/p&gt;
&lt;p&gt;“Send this packet to 192.168.1.10”&lt;/p&gt;
&lt;p&gt;But the network card asks:&lt;/p&gt;
&lt;p&gt;“What MAC address should I send this frame to?”&lt;/p&gt;
&lt;p&gt;ARP bridges this gap between IP and MAC.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Where ARP operates&lt;/h3&gt;
&lt;p&gt;ARP works only inside a local network segment.&lt;/p&gt;
&lt;p&gt;Important limitations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;ARP does not cross routers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ARP works only within a broadcast domain&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ARP is used before sending Ethernet or Wi-Fi frames&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the destination is outside your network, ARP resolves the MAC of the router, not the final destination.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How ARP works step by step&lt;/h3&gt;
&lt;p&gt;Let’s walk through a simple example.&lt;/p&gt;
&lt;p&gt;Scenario&lt;/p&gt;
&lt;p&gt;Your laptop wants to send data to 192.168.1.20 on the same Wi-Fi network.&lt;/p&gt;
&lt;p&gt;Step 1. Check ARP cache&lt;/p&gt;
&lt;p&gt;Your laptop checks its ARP table to see if it already knows the MAC address.&lt;/p&gt;
&lt;p&gt;If found, communication continues immediately.&lt;/p&gt;
&lt;p&gt;Step 2. Broadcast ARP request&lt;/p&gt;
&lt;p&gt;If not found, your laptop sends an ARP request:&lt;/p&gt;
&lt;p&gt;“Who has IP 192.168.1.20?”&lt;/p&gt;
&lt;p&gt;This request is broadcast to all devices on the local network.&lt;/p&gt;
&lt;p&gt;Step 3. Target device responds&lt;/p&gt;
&lt;p&gt;The device with IP 192.168.1.20 replies:&lt;/p&gt;
&lt;p&gt;“I am 192.168.1.20 and my MAC address is AA:BB:CC:DD:EE:FF”&lt;/p&gt;
&lt;p&gt;Step 4. ARP cache is updated&lt;/p&gt;
&lt;p&gt;Your laptop stores this mapping in its ARP table.&lt;/p&gt;
&lt;p&gt;Step 5. Data transmission begins&lt;/p&gt;
&lt;p&gt;Now your laptop can send Ethernet frames directly to that MAC address.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What an ARP packet contains&lt;/h3&gt;
&lt;p&gt;An ARP message includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Sender IP address&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sender MAC address&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Target IP address&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Target MAC address (empty in request)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;ARP packets are simple and lightweight.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;ARP cache explained&lt;/h3&gt;
&lt;p&gt;An ARP cache is a temporary table that stores IP-to-MAC mappings.&lt;/p&gt;
&lt;p&gt;Why caching matters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Avoids repeated broadcasts&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Improves network performance&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reduces latency&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;ARP entries expire after a short time to stay accurate.&lt;/p&gt;
&lt;p&gt;You can view this table using commands like:&lt;/p&gt;
&lt;p&gt;arp -a&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;ARP and routers&lt;/h3&gt;
&lt;p&gt;When sending data to the internet:&lt;/p&gt;
&lt;p&gt;Your device resolves the MAC address of the default gateway&lt;/p&gt;
&lt;p&gt;The router then handles ARP on the next network&lt;/p&gt;
&lt;p&gt;MAC addresses change at every hop&lt;/p&gt;
&lt;p&gt;This is why MAC addresses never travel across the internet.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;ARP vs DNS&lt;/h3&gt;
&lt;p&gt;People often confuse ARP with DNS.&lt;/p&gt;
&lt;p&gt;ARP&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Resolves IP to MAC&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Works locally&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Uses broadcast&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;DNS&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Resolves domain names to IP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Works globally&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Uses servers&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both perform resolution but at different layers.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;ARP security issues&lt;/h3&gt;
&lt;p&gt;ARP has no authentication.&lt;/p&gt;
&lt;p&gt;This allows attacks like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;ARP spoofing&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ARP poisoning&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Man in the middle attacks&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Attackers send fake ARP replies to intercept traffic.&lt;/p&gt;
&lt;p&gt;Mitigation methods include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Static ARP entries&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Switch security features&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Encrypted protocols like HTTPS&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;ARP itself is not secure by design.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why ARP still exists today&lt;/h3&gt;
&lt;p&gt;Despite being old and insecure, ARP remains because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;It is simple&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is fast&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It works reliably in trusted local networks&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Modern networks rely on encryption at higher layers instead of fixing ARP itself.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Common misconceptions&lt;/h3&gt;
&lt;p&gt;Misconception 1&lt;/p&gt;
&lt;p&gt;ARP finds IP addresses on the internet.
No. It works only locally.&lt;/p&gt;
&lt;p&gt;Misconception 2&lt;/p&gt;
&lt;p&gt;ARP replaces DNS.
No. They solve different problems.&lt;/p&gt;
&lt;p&gt;Misconception 3&lt;/p&gt;
&lt;p&gt;ARP is optional.
No. Ethernet IP communication depends on it.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;ARP is a silent helper of networking. It maps IP addresses to MAC addresses so data can move across local networks. Every web page load, every file transfer, every ping depends on ARP. Understanding ARP completes the picture of how IP and Ethernet work together.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>MAC Addresses | How Local Devices Identify Each Other</title>
    <link href="https://karthikkadambi.com/notes/mac-address/" />
    <updated>2025-12-13T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/mac-address/</id>
    <content type="html">&lt;p&gt;An IP address identifies a device on a network logically. But before IP can work, devices need a way to identify each other physically on the local network. That role is handled by MAC addresses.&lt;/p&gt;
&lt;p&gt;Every network device has a MAC address. It operates at a lower level than IP and plays a critical role in how data moves inside local networks like your home Wi-Fi or office LAN.&lt;/p&gt;
&lt;p&gt;This article explains what a MAC address is, why it exists, and how it works with IP.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a MAC address&lt;/h3&gt;
&lt;p&gt;MAC stands for Media Access Control.&lt;/p&gt;
&lt;p&gt;A MAC address is a unique identifier assigned to a network interface. It is usually hardcoded by the manufacturer into the network card.&lt;/p&gt;
&lt;p&gt;Examples of network interfaces:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Ethernet card&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Wi-Fi adapter&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Bluetooth adapter&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Virtual network interface&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A MAC address looks like this:&lt;/p&gt;
&lt;p&gt;00:1A:2B:3C:4D:5E&lt;/p&gt;
&lt;p&gt;It is written in hexadecimal format and is 48 bits long.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why MAC addresses exist&lt;/h3&gt;
&lt;p&gt;IP addresses can change.
MAC addresses are meant to be stable.&lt;/p&gt;
&lt;p&gt;MAC addresses exist to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Identify devices inside a local network&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Allow switches to deliver frames correctly&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable IP communication to function&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Without MAC addresses, devices on the same network would not know how to reach each other at the physical level.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;MAC address vs IP address&lt;/h3&gt;
&lt;p&gt;This distinction is very important.&lt;/p&gt;
&lt;p&gt;MAC address&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Works at the data link layer&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Used only inside local networks&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Identifies network interfaces&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Not routable across the internet&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;IP address&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Works at the network layer&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Used across different networks&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Identifies logical location&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Routable globally&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can think of it this way:&lt;/p&gt;
&lt;p&gt;IP address answers where a device is&lt;/p&gt;
&lt;p&gt;MAC address answers who the device is locally&lt;/p&gt;
&lt;p&gt;Both are required for communication to succeed.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Structure of a MAC address&lt;/h3&gt;
&lt;p&gt;A MAC address has two parts.&lt;/p&gt;
&lt;h4&gt;Organizationally Unique Identifier (OUI)&lt;/h4&gt;
&lt;p&gt;The first 24 bits identify the manufacturer.
Examples:&lt;/p&gt;
&lt;p&gt;Apple&lt;/p&gt;
&lt;p&gt;Intel&lt;/p&gt;
&lt;p&gt;Samsung&lt;/p&gt;
&lt;p&gt;Realtek&lt;/p&gt;
&lt;h4&gt;Device Identifier&lt;/h4&gt;
&lt;p&gt;The remaining 24 bits uniquely identify the device made by that manufacturer.&lt;/p&gt;
&lt;p&gt;This structure helps ensure global uniqueness.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How MAC addresses are used in communication&lt;/h3&gt;
&lt;p&gt;When a device wants to send data to another device on the same local network it must know the destination MAC address.&lt;/p&gt;
&lt;p&gt;The flow looks like this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Application generates data&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;TCP or UDP prepares the segment&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;IP determines the destination IP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;MAC address is needed to send the frame&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ethernet or Wi-Fi frame is created&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Frame is delivered using MAC addresses&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Switches use MAC addresses to forward frames efficiently.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;MAC addresses and switches&lt;/h3&gt;
&lt;p&gt;Switches operate using MAC addresses.&lt;/p&gt;
&lt;p&gt;A switch:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Listens to incoming frames&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Learns which MAC address is on which port&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Builds a MAC address table&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Forwards frames only to the correct port&lt;/p&gt;
&lt;p&gt;This makes switches far more efficient than hubs, which broadcast everything.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What happens when the MAC address is unknown&lt;/h3&gt;
&lt;p&gt;If a device does not know the destination MAC address it cannot send the frame.&lt;/p&gt;
&lt;p&gt;This is where ARP comes in.&lt;/p&gt;
&lt;p&gt;The device asks:
“Who has this IP address?”&lt;/p&gt;
&lt;p&gt;The device with that IP replies with its MAC address.&lt;/p&gt;
&lt;p&gt;This process is called Address Resolution Protocol and it is the bridge between IP and MAC.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;MAC address scope and limitations&lt;/h3&gt;
&lt;p&gt;MAC addresses are valid only inside a local network.&lt;/p&gt;
&lt;p&gt;Routers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Strip the original MAC addresses&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Replace them with new MAC addresses for the next hop&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This means MAC addresses never cross routers.
Only IP addresses travel across networks.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;MAC address spoofing&lt;/h3&gt;
&lt;p&gt;MAC addresses can be changed in software.
This is called MAC spoofing.&lt;/p&gt;
&lt;p&gt;Reasons people spoof MAC addresses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Privacy protection&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Bypassing MAC based access controls&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Testing network security&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Because MAC addresses are not encrypted or authenticated they should not be used as a security mechanism.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;MAC addresses and privacy&lt;/h3&gt;
&lt;p&gt;Modern devices use MAC randomization.&lt;/p&gt;
&lt;p&gt;This prevents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Wi-Fi tracking&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Device fingerprinting&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Location correlation&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Your real MAC address is hidden when scanning for networks.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Common misconceptions&lt;/h3&gt;
&lt;p&gt;Misconception 1&lt;/p&gt;
&lt;p&gt;MAC addresses are globally visible.
No. They are visible only on the local network.&lt;/p&gt;
&lt;p&gt;Misconception 2&lt;/p&gt;
&lt;p&gt;MAC addresses are secret.
No. They are sent in plain text on the network.&lt;/p&gt;
&lt;p&gt;Misconception 3&lt;/p&gt;
&lt;p&gt;MAC addresses provide security.
They do not. They are identifiers, not security controls.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;MAC addresses are the foundation of local network communication. They allow devices to identify each other and enable switches to forward traffic efficiently. While IP handles global routing, MAC addresses handle local delivery. Understanding MAC addresses makes ARP, switching and routing much easier to understand.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Network Ports Explained | Addressing Applications</title>
    <link href="https://karthikkadambi.com/notes/ports/" />
    <updated>2025-12-10T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/ports/</id>
    <content type="html">&lt;p&gt;Ports and Protocol Numbers Explained. How One IP Address Serves Many Applications
Introduction&lt;/p&gt;
&lt;p&gt;An IP address identifies a device on a network. But one device can run many applications at the same time. You might be browsing the web, listening to music, syncing files, running a local server and chatting on messaging apps. If all those applications shared the same IP without a way to distinguish them your computer would not know which incoming data belongs to which app.&lt;/p&gt;
&lt;p&gt;Ports solve this problem. They allow multiple applications to send and receive data over one IP address. Ports are essential to how the internet operates.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a Port&lt;/h3&gt;
&lt;p&gt;A port is a logical number used by applications to send and receive data.
Think of an IP address as an apartment building and ports as apartment numbers.
The building is the device. The apartments are the individual applications.&lt;/p&gt;
&lt;p&gt;Ports help identify which application should receive incoming packets.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why do Ports exist&lt;/h3&gt;
&lt;p&gt;Ports allow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Multiple apps to run on a single device&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Each app to communicate independently&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Browsers to load multiple sites at the same time&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Servers to run multiple services on one machine&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Without ports every incoming packet would look identical.
Your computer would not know whether a packet is meant for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The browser&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The chat app&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The game&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The update service&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ports bring order to network communication.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How ports work with TCP and UDP&lt;/h3&gt;
&lt;p&gt;Both TCP and UDP use ports.
Every connection contains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Source IP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Source port&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Destination IP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Destination port&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Protocol (TCP or UDP)&lt;/p&gt;
&lt;p&gt;This combination ensures that data flows to the correct process.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;When you visit a website:&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Browser uses a random source port like 52634&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Server listens on port 80 for HTTP or 443 for HTTPS&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This pairing uniquely identifies the connection.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Types of ports&lt;/h3&gt;
&lt;p&gt;Ports range from 0 to 65535.
They fall into three categories.&lt;/p&gt;
&lt;h4&gt;Well known ports (0–1023)&lt;/h4&gt;
&lt;p&gt;Used by widely used protocols and reserved for standard services.&lt;/p&gt;
&lt;p&gt;Common ones:&lt;/p&gt;
&lt;p&gt;20 21: FTP&lt;/p&gt;
&lt;p&gt;22: SSH&lt;/p&gt;
&lt;p&gt;23: Telnet&lt;/p&gt;
&lt;p&gt;25: SMTP&lt;/p&gt;
&lt;p&gt;53: DNS&lt;/p&gt;
&lt;p&gt;67 68: DHCP&lt;/p&gt;
&lt;p&gt;80: HTTP&lt;/p&gt;
&lt;p&gt;110: POP3&lt;/p&gt;
&lt;p&gt;123: NTP&lt;/p&gt;
&lt;p&gt;143: IMAP&lt;/p&gt;
&lt;p&gt;443: HTTPS&lt;/p&gt;
&lt;p&gt;636: LDAPS&lt;/p&gt;
&lt;p&gt;Servers usually run on these ports.
Clients connect using high ports.&lt;/p&gt;
&lt;h4&gt;Registered ports (1024–49151)&lt;/h4&gt;
&lt;p&gt;Used by applications, vendors and frameworks.&lt;/p&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;p&gt;1433: Microsoft SQL Server&lt;/p&gt;
&lt;p&gt;3306: MySQL&lt;/p&gt;
&lt;p&gt;3389: Remote Desktop (RDP)&lt;/p&gt;
&lt;p&gt;5432: PostgreSQL&lt;/p&gt;
&lt;p&gt;27017: MongoDB&lt;/p&gt;
&lt;p&gt;Companies often reserve these ports for their software.&lt;/p&gt;
&lt;h4&gt;Dynamic or private ports (49152–65535)&lt;/h4&gt;
&lt;p&gt;Used temporarily by client applications.&lt;/p&gt;
&lt;p&gt;When your browser opens a new page it picks a random port in this range.
That port helps identify that specific connection.
This allows a browser to open dozens of tabs without conflict.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What “listening on a port” means&lt;/h3&gt;
&lt;p&gt;When a server runs a service it waits for connections on a specific port.&lt;/p&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;p&gt;A web server listens on port 80 or 443&lt;/p&gt;
&lt;p&gt;A DNS server listens on port 53&lt;/p&gt;
&lt;p&gt;A game server might listen on port 5000&lt;/p&gt;
&lt;p&gt;Listening means the server is ready to accept incoming data for that application.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How ports appear in URLs&lt;/h3&gt;
&lt;p&gt;Sometimes you see a port number in a URL.&lt;/p&gt;
&lt;p&gt;Example:
http://localhost:3000&lt;/p&gt;
&lt;p&gt;This means the browser will connect using port 3000 instead of the default port 80.
Developers use custom ports for local servers.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How firewalls use ports&lt;/h3&gt;
&lt;p&gt;Firewalls allow or block traffic using ports.
For example:&lt;/p&gt;
&lt;p&gt;Allow port 443 for secure web traffic&lt;/p&gt;
&lt;p&gt;Block port 22 or 23 to prevent unauthorized access&lt;/p&gt;
&lt;p&gt;Open port 5432 only to a database subnet&lt;/p&gt;
&lt;p&gt;Ports help firewalls control what enters or leaves a system.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why some ports feel “blocked”&lt;/h3&gt;
&lt;p&gt;On home networks:&lt;/p&gt;
&lt;p&gt;ISPs often block port 25 to prevent spam&lt;/p&gt;
&lt;p&gt;Routers block incoming ports for safety&lt;/p&gt;
&lt;p&gt;NAT hides internal ports from the public internet&lt;/p&gt;
&lt;p&gt;This protects users from unsolicited attacks.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How ports relate to NAT&lt;/h3&gt;
&lt;p&gt;In home networks multiple devices share one public IP.
NAT uses port mapping to differentiate connections.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;Laptop uses port 50500&lt;/p&gt;
&lt;p&gt;Phone uses port 50501&lt;/p&gt;
&lt;p&gt;TV uses port 50502&lt;/p&gt;
&lt;p&gt;NAT ties each public port back to the correct device and application.&lt;/p&gt;
&lt;p&gt;This is why port forwarding exists when hosting services from home.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Common misconceptions&lt;/h3&gt;
&lt;h4&gt;Misconception 1&lt;/h4&gt;
&lt;p&gt;“Ports are physical.”
No. They are software constructs.&lt;/p&gt;
&lt;h4&gt;Misconception 2&lt;/h4&gt;
&lt;p&gt;“Port 80 is always open.”
It is only open if a web server is listening.&lt;/p&gt;
&lt;h4&gt;Misconception 3&lt;/h4&gt;
&lt;p&gt;“All ports are dangerous.”
Only open ports exposed to the public pose risk.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Ports let multiple applications use the same IP. They help identify which program should receive which packets. They are essential for web browsing, servers, NAT, firewalls and almost every networked application. Understanding ports makes it easier to learn NAT, firewalls and application level protocols like HTTP or DNS.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>UDP Explained | The Fast Transport Protocol</title>
    <link href="https://karthikkadambi.com/notes/udp/" />
    <updated>2025-12-07T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/udp/</id>
    <content type="html">&lt;p&gt;Most people learn TCP first because it handles reliable delivery. But the internet needs a second transport protocol that focuses on speed. That protocol is UDP. It is simple. It is fast. It is used everywhere communication must be real time. Many modern applications rely on UDP to deliver data quickly even if some packets get lost.&lt;/p&gt;
&lt;p&gt;This article explains what UDP is, why it exists and where it is used.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is UDP&lt;/h3&gt;
&lt;p&gt;UDP stands for User Datagram Protocol. It is a transport layer protocol that sends data without waiting for confirmations or creating a connection. It works like postal mail without delivery guarantees. You drop the letters into a box and assume they will arrive. There is no tracking or acknowledgment. This design means UDP has very low overhead and latency.&lt;/p&gt;
&lt;p&gt;UDP is lightweight and fast.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why UDP exists&lt;/h3&gt;
&lt;p&gt;TCP is reliable but slow.
UDP is unreliable but fast.&lt;/p&gt;
&lt;p&gt;Modern applications need both. Some need guaranteed delivery. Some need speed. If your video call or gaming traffic waited for every dropped packet to be resent you would experience lag and interruptions. UDP solves that by sending data continuously without waiting.&lt;/p&gt;
&lt;p&gt;UDP exists because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Some applications value speed over perfection&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Some data becomes useless if delayed&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Some real time systems cannot afford retransmissions&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It is a perfect tool for scenarios where timing matters more than accuracy.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How UDP works, in simple steps&lt;/h3&gt;
&lt;p&gt;UDP is extremely simple. Here is the basic flow.&lt;/p&gt;
&lt;p&gt;Step 1. Application gives data to UDP&lt;/p&gt;
&lt;p&gt;For example a video call frame or a DNS request.&lt;/p&gt;
&lt;p&gt;Step 2. UDP wraps it in a datagram&lt;/p&gt;
&lt;p&gt;A datagram is similar to a packet but without sequencing or reliability mechanisms.&lt;/p&gt;
&lt;p&gt;Step 3. IP sends the datagram to the destination&lt;/p&gt;
&lt;p&gt;Routers forward it like any other IP packet.&lt;/p&gt;
&lt;p&gt;Step 4. The destination application receives it&lt;/p&gt;
&lt;p&gt;If some datagrams are missing or out of order the application decides how to handle it.&lt;/p&gt;
&lt;p&gt;No handshake.
No connection setup.
No waiting for acknowledgments.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What UDP does not do&lt;/h3&gt;
&lt;p&gt;Understanding what UDP does not do is the key to understanding why it is fast.&lt;/p&gt;
&lt;p&gt;UDP does not:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Guarantee packet delivery&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Guarantee packet order&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Retry lost packets&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Prevent duplicates&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Control flow&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Adjust speed based on congestion&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It delivers raw datagrams as is.&lt;/p&gt;
&lt;p&gt;TCP handles all of the above. UDP leaves it to the application.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What UDP does handle&lt;/h3&gt;
&lt;p&gt;Even though UDP is simple it still provides essential functions.&lt;/p&gt;
&lt;h4&gt;Ports&lt;/h4&gt;
&lt;p&gt;UDP uses port numbers so multiple applications on the same device can communicate independently.&lt;/p&gt;
&lt;h4&gt;Basic checksum&lt;/h4&gt;
&lt;p&gt;It includes an optional checksum to detect corrupted data.&lt;/p&gt;
&lt;h4&gt;Multiplexing&lt;/h4&gt;
&lt;p&gt;Different apps can receive different datagrams using different port numbers.&lt;/p&gt;
&lt;p&gt;This keeps UDP minimal but useful.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why some applications prefer UDP&lt;/h3&gt;
&lt;p&gt;UDP is used when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Speed is more important than perfect accuracy&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Delayed data is worse than missing data&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Applications can tolerate small packet loss&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;In a video call the frame that arrived late is useless. It is better to drop it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In online gaming a delayed position update is worse than a missing one.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For DNS queries the overhead of TCP is unnecessary.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;UDP fits these use cases perfectly.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Real world use cases of UDP&lt;/h3&gt;
&lt;h4&gt;Video calls and conferencing&lt;/h4&gt;
&lt;p&gt;Zoom. Teams. Meet. FaceTime. All rely heavily on UDP.
UDP keeps audio and video flowing even when network conditions are not perfect.&lt;/p&gt;
&lt;h4&gt;Online multiplayer gaming&lt;/h4&gt;
&lt;p&gt;Games need real time movement and action.
Lag kills user experience.
UDP provides the speed needed to keep play smooth.&lt;/p&gt;
&lt;h4&gt;Live streaming&lt;/h4&gt;
&lt;p&gt;Streaming platforms use UDP for low latency protocols so the viewer sees content as quickly as possible.&lt;/p&gt;
&lt;h4&gt;DNS&lt;/h4&gt;
&lt;p&gt;DNS queries are small and simple.
UDP keeps DNS fast.
TCP is used only when responses are too large.&lt;/p&gt;
&lt;h4&gt;QUIC&lt;/h4&gt;
&lt;p&gt;The modern protocol behind HTTP 3 is built on UDP.
QUIC adds reliability and security on top of UDP while staying fast.&lt;/p&gt;
&lt;h4&gt;IoT devices&lt;/h4&gt;
&lt;p&gt;Lightweight communication makes UDP ideal for low power devices like sensors.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How applications handle reliability when needed&lt;/h3&gt;
&lt;p&gt;Some UDP based applications add their own reliability mechanism.
For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;They add sequence numbers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;They detect missing packets&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;They decide whether to request a resend&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This allows them to build custom reliability without the overhead of TCP.&lt;/p&gt;
&lt;p&gt;For example video meetings might:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Ignore old frames&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Rebuild missing audio segments using interpolation&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Lower video quality when packet loss increases&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This flexibility is why UDP is powerful.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;UDP and NAT traversal&lt;/h3&gt;
&lt;p&gt;Many ISPs and home routers use NAT.
UDP works well with NAT because:&lt;/p&gt;
&lt;p&gt;NAT devices can easily track connection mappings&lt;/p&gt;
&lt;p&gt;UDP hole punching allows peer to peer connections&lt;/p&gt;
&lt;p&gt;This is why WebRTC video calls work even behind firewalls and home routers.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;UDP limitations&lt;/h3&gt;
&lt;h4&gt;Not reliable&lt;/h4&gt;
&lt;p&gt;If the network is congested UDP cannot guarantee delivery.&lt;/p&gt;
&lt;h4&gt;Not ordered&lt;/h4&gt;
&lt;p&gt;Applications might receive packets out of order.&lt;/p&gt;
&lt;h4&gt;No congestion control&lt;/h4&gt;
&lt;p&gt;UDP traffic can overload a network if not managed by the app.&lt;/p&gt;
&lt;h4&gt;No built in security&lt;/h4&gt;
&lt;p&gt;UDP is often paired with DTLS or QUIC for encryption.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;UDP is fast. It is simple. It is perfect for real time communication and lightweight tasks. It avoids the overhead of TCP by skipping connection setup and reliability features. Modern protocols like QUIC and applications like video calls, gaming and streaming depend on it.&lt;/p&gt;
&lt;p&gt;Understanding UDP gives you a complete picture of how modern internet communication balances speed with reliability.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>TCP/IP Explained | The Foundation of the Internet</title>
    <link href="https://karthikkadambi.com/notes/tcp-ip/" />
    <updated>2025-12-06T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/tcp-ip/</id>
    <content type="html">&lt;p&gt;TCP and IP are the two most critical protocols that define how data moves across the internet. Together they form the TCP IP model that almost every network uses. One handles addressing. The other handles reliable delivery.&lt;/p&gt;
&lt;p&gt;This article explains their roles and how they work together to move data across billions of devices.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What IP does&lt;/h3&gt;
&lt;p&gt;IP stands for Internet Protocol.
It handles addressing and routing.&lt;/p&gt;
&lt;p&gt;IP responsibilities&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Assigning IP addresses to devices&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Splitting data into packets&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sending packets across networks&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Choosing the best route&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Handling packet delivery without guarantees&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;IP does not guarantee order or reliability.
Its only job is to get each packet closer to its destination.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What TCP does&lt;/h3&gt;
&lt;p&gt;TCP stands for Transmission Control Protocol.
It ensures data is delivered reliably and in the correct order.&lt;/p&gt;
&lt;p&gt;TCP responsibilities:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Splitting data into segments&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Numbering each segment&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ensuring segments arrive in order&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Detecting lost segments&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Retransmitting lost data&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Managing flow control&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Avoiding network congestion&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;TCP is what makes web browsing, email and file transfers reliable.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How TCP and IP work together&lt;/h3&gt;
&lt;p&gt;TCP and IP divide responsibilities.&lt;/p&gt;
&lt;p&gt;IP is like a postal service.
It handles routing envelopes.
It does not care about whether they arrive intact or in order.&lt;/p&gt;
&lt;p&gt;TCP is like a package tracking system.
It ensures every box is accounted for.
It checks contents on arrival.
It requests resending when needed.&lt;/p&gt;
&lt;p&gt;Together they create:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Reliable&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ordered&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Efficient global communication.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why TCP IP is powerful&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Works across all networks&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Fiber, Wi Fi, satellite and mobile networks all use TCP IP.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scales globally&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Billions of devices communicate simultaneously.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Supports many applications&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Web browsing, video calls, databases, APIs, streaming, gaming.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Robust under failure&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Even if parts of the network break packets still find alternate routes.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;When TCP is not used&lt;/h3&gt;
&lt;p&gt;Some applications use UDP instead of TCP.
UDP is faster and simpler but less reliable.
Useful for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Video calls&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Live streams&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Online games&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DNS&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These apps care about speed more than perfect reliability.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;TCP IP forms the backbone of internet communication. IP routes packets. TCP ensures reliability. Together they enable every major internet technology from email to cloud computing.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>2025 Year in Review | Gratitude, Growth, and Next Steps</title>
    <link href="https://karthikkadambi.com/posts/reflection-2025/" />
    <updated>2025-12-06T01:48:30Z</updated>
    <id>https://karthikkadambi.com/posts/reflection-2025/</id>
    <content type="html">&lt;p&gt;As 2025 comes to a close, I find myself sitting with a profound sense of gratitude. It’s been a year of immense learning, some hard truths, and ultimately, a clearer vision for what comes next.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Gratitude and Reflection&lt;/h3&gt;
&lt;p&gt;First and foremost, I am incredibly grateful for this year. Despite its ups and downs, 2025 has been a teacher. It taught me resilience, it showed me the value of patience, and it highlighted the importance of simply showing up—even when things aren&#39;t perfect. I’m thankful for the moments of joy, the challenges that forced me to grow, and the simple fact that I’m here, ready to take on another year.&lt;/p&gt;
&lt;p&gt;Looking back, 2025 feels like a transition year. It wasn&#39;t just about achieving goals, it was about understanding &lt;em&gt;why&lt;/em&gt; I was pursuing them in the first place.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;My Rock and Partner in Crime&lt;/h3&gt;
&lt;p&gt;None of this journey would be possible without my spouse. We are celebrating &lt;strong&gt;8 years of marriage&lt;/strong&gt;—eight years of growing up together, figuring life out, and supporting each other through every twist and turn.&lt;/p&gt;
&lt;p&gt;She is more than just a partner, she is my greatest support system and my best friend. Whether we are exploring new cuisines (yes, she’s a total foodie!) or planning our next travel adventure, life is simply better with her by my side. Having someone who witnesses your life, who understands your quirks, and who pushes you to be better is a rare gift, and I am endlessly grateful for it.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Four Years in the USA&lt;/h3&gt;
&lt;p&gt;In a couple of months, it will be four years of living in the USA. These past few years have been a masterclass in perspective. Living away from India, my home, has taught me independence in a way I never understood before.&lt;/p&gt;
&lt;p&gt;It has given me the opportunity to travel, to explore landscapes I’d only seen in movies, and to learn how things work in a completely different part of the world. It’s widened my lens on life, teaching me that there isn&#39;t just one &amp;quot;right&amp;quot; way to live. Every culture, every system, and every person has something to teach if you’re willing to listen.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Changing Nature of Relationships&lt;/h3&gt;
&lt;p&gt;One of the more bittersweet realizations I’ve had this year is about the people in my life. I’ve noticed a subtle but distinct shift: close friends are becoming acquaintances. There is a growing imbalance where I offer a window into my life, hoping for connection, while others are content to just watch from the outside.&lt;/p&gt;
&lt;p&gt;It’s a strange feeling to watch circles expand in number but perhaps contract in depth. Life gets busy, priorities shift, and we all drift into our own lanes. While it’s natural, it’s also a reminder to cherish the deep connections that remain and to be intentional about who I invest my energy in. It’s not necessarily a bad thing—just a different season of life where boundaries become clearer and time becomes the most precious currency.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Path Not Taken&lt;/h3&gt;
&lt;p&gt;On a more personal and vulnerable note, this year has forced me to confront the pain of certain life aspirations not coming to fruition. It’s a topic often swept under the rug, but the silence doesn&#39;t make the feelings any less real.&lt;/p&gt;
&lt;p&gt;For a long time, there was a question mark hanging over this part of our lives. But this year, I’ve started to move from questioning to accepting. It’s a journey of grief, yes, but also one of redefining what truly matters. Accepting that this might be our path allows us to stop waiting for a future that might not happen and start fully embracing the life we &lt;em&gt;do&lt;/em&gt; have right now. It is about finding peace in the &amp;quot;what is&amp;quot; rather than the &amp;quot;what if.&amp;quot;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Living with AI&lt;/h3&gt;
&lt;p&gt;AI has cut through everything this year. Work, creativity, even how we think. It’s a double-edged sword, bringing both incredible efficiency and a quiet anxiety about our own relevance. But ignoring it isn&#39;t an option. The challenge now is to learn the art of delegation: defining what is best left to algorithms and what requires the human touch. It&#39;s not about being replaced, it&#39;s about partnership. We need to embrace it as a tool, not neglect it as a fad, because the future belongs to those who can effectively collaborate with it.&lt;/p&gt;
&lt;p&gt;Beyond its immediate impact, this year has also brought a stark realization about the environmental footprint of AI. The immense computational power required for training and operating these models consumes significant energy and resources. As we integrate AI more deeply into our lives, it becomes imperative to address this challenge. We must actively seek and develop more energy-efficient algorithms, sustainable data centers, and responsible hardware lifecycles to ensure that our technological progress doesn&#39;t come at an irreversible cost to our planet. It&#39;s about finding a better way to innovate, one that harmonizes with our environmental responsibilities.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Health&lt;/h3&gt;
&lt;p&gt;I’ll be honest—I discarded my health and fitness this year. It’s easy to let it slide when other things take center stage, but I’ve felt the toll it takes. The energy dips, the lack of focus, the feeling of not being fully &amp;quot;in&amp;quot; my body.&lt;/p&gt;
&lt;p&gt;Acknowledging this is the first step. I’m not beating myself up about it, but I am marking it as a critical area for change. Getting back into fitness isn&#39;t just about vanity or numbers on a scale, it’s about reclaiming the vitality and discipline that fuels everything else. That is a non-negotiable priority for me moving forward.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Mistakes and the Path Forward&lt;/h3&gt;
&lt;p&gt;Mistakes were made. Plenty of them. By me, by others, by all of us. But dwelling on them serves no one. What matters is the clarity they have provided.&lt;/p&gt;
&lt;p&gt;I feel clearer now than I have in a long time about the path for next year. The missteps of 2025 and previous years have acted as guardrails, guiding me back to what truly matters. I know what I need to focus on, what I need to let go of, and where I want to steer this ship.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;From Talk to Action&lt;/h3&gt;
&lt;p&gt;If there is one victory I am claiming this year, it is the shift from &amp;quot;talking&amp;quot; to &amp;quot;doing.&amp;quot; For too long, I’ve been a planner, a dreamer, a &amp;quot;one day I’ll do this&amp;quot; kind of person.&lt;/p&gt;
&lt;p&gt;But this year, I started. This blog you are reading? It’s proof. I stopped waiting for the perfect time or the perfect words and just put myself out there. It’s a small step, but it represents a massive mindset shift. I am learning that imperfect action is infinitely better than perfect inaction. In 2026, I plan to double down on this—less planning, more shipping.&lt;/p&gt;
&lt;p&gt;So, here’s to 2025—thank you for the lessons. And here’s to 2026—I’m ready for you.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>HTTP/3 Explained | The Future of Web Speed</title>
    <link href="https://karthikkadambi.com/notes/http-3/" />
    <updated>2025-12-03T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/http-3/</id>
    <content type="html">&lt;p&gt;HTTP/3 is the newest version of the HTTP protocol. It solves long standing performance issues by moving from TCP to QUIC. This makes web browsing faster especially on mobile and unstable networks.&lt;/p&gt;
&lt;p&gt;This article explains what HTTP/3 changes and why it matters.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why HTTP/3 was created&lt;/h3&gt;
&lt;p&gt;HTTP/1.1 and HTTP/2 both use TCP.
TCP is reliable but slow to recover from packet loss.
TCP also suffers from head of line blocking.
When one packet is delayed all streams wait.&lt;/p&gt;
&lt;p&gt;Mobile networks and Wi Fi often drop packets.
This makes websites feel slow.&lt;/p&gt;
&lt;p&gt;HTTP/3 fixes these issues.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;HTTP/3 uses QUIC instead of TCP&lt;/h3&gt;
&lt;p&gt;QUIC is a modern transport protocol built on UDP.
It provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Faster connection setup&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No head of line blocking&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Better performance on lossy networks&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Built in encryption&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;QUIC includes features that earlier versions needed multiple layers to achieve.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key benefits of HTTP/3&lt;/h3&gt;
&lt;h4&gt;Faster handshake&lt;/h4&gt;
&lt;p&gt;TCP+TLS required multiple round trips.
QUIC requires fewer meaning pages load faster.&lt;/p&gt;
&lt;h4&gt;Independent streams&lt;/h4&gt;
&lt;p&gt;If one packet is delayed only that stream waits.
Other streams continue unaffected.&lt;/p&gt;
&lt;h4&gt;Mobile friendly&lt;/h4&gt;
&lt;p&gt;If your IP changes (switching from Wi Fi to mobile data) HTTP/3 connections survive.
TCP connections would break.&lt;/p&gt;
&lt;h4&gt;Lower latency&lt;/h4&gt;
&lt;p&gt;Modern cloud and CDN networks see major speed boosts.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Where HTTP/3 is used today&lt;/h3&gt;
&lt;p&gt;Google&lt;/p&gt;
&lt;p&gt;YouTube&lt;/p&gt;
&lt;p&gt;Facebook&lt;/p&gt;
&lt;p&gt;Instagram&lt;/p&gt;
&lt;p&gt;Cloudflare&lt;/p&gt;
&lt;p&gt;Fastly&lt;/p&gt;
&lt;p&gt;Most modern browsers&lt;/p&gt;
&lt;p&gt;HTTP/3 adoption is growing steadily.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How HTTP/3 improves user experience&lt;/h3&gt;
&lt;p&gt;You feel the benefits through:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Faster first page load&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Smoother video streaming&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;More reliable gaming sessions&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Better performance on 4G or crowded Wi Fi&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Faster API responses&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It improves real world performance not just theoretical metrics.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;HTTP/3 brings speed, reliability and modern transport features. It is designed for how people use the internet today. It makes the web faster even when networks are unstable.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>HTTPS Explained | Secure Browsing</title>
    <link href="https://karthikkadambi.com/notes/https/" />
    <updated>2025-11-30T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/https/</id>
    <content type="html">&lt;p&gt;HTTPS is simply HTTP running inside a secure TLS connection. It provides safety, privacy and integrity. Every major website uses HTTPS because it protects users and builds trust.&lt;/p&gt;
&lt;p&gt;This article explains how HTTPS works, how it connects with TLS and why it is the default for every modern website.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is HTTPS&lt;/h3&gt;
&lt;p&gt;HTTPS stands for Hypertext Transfer Protocol Secure.
It adds encryption and authentication to normal HTTP.&lt;/p&gt;
&lt;p&gt;HTTP handles communication.
TLS handles security.
Together they form HTTPS.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How HTTPS works internally&lt;/h3&gt;
Step 1. Browser requests an HTTPS connection
&lt;p&gt;When you type a URL starting with https the browser initiates secure communication.&lt;/p&gt;
&lt;p&gt;Step 2. TLS handshake occurs&lt;/p&gt;
&lt;p&gt;Certificate is exchanged and verified.&lt;/p&gt;
&lt;p&gt;Step 3. Encryption keys are created&lt;/p&gt;
&lt;p&gt;Only your browser and the server know these keys.&lt;/p&gt;
&lt;p&gt;Step 4. HTTP rides inside the encrypted tunnel&lt;/p&gt;
&lt;p&gt;All request and response data is protected.&lt;/p&gt;
&lt;p&gt;No one in between can see your:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Passwords&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Cookies&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Web content&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;API calls&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Visual Guide:&lt;/strong&gt; For a visual explanation, check out &lt;a href=&quot;https://howhttps.works&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;How HTTPS Works&lt;/a&gt;
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why HTTPS is important now&lt;/h3&gt;
&lt;h4&gt;Protects user privacy&lt;/h4&gt;
&lt;p&gt;ISP or network admin cannot see which pages you load.&lt;/p&gt;
&lt;h4&gt;Prevents tampering&lt;/h4&gt;
&lt;p&gt;Attackers cannot inject ads, scripts or malware.&lt;/p&gt;
&lt;h4&gt;Protects session cookies&lt;/h4&gt;
&lt;p&gt;Stops account hijacking.&lt;/p&gt;
&lt;h4&gt;Required for modern browser features&lt;/h4&gt;
&lt;p&gt;Service workers, PWAs, geolocation and many APIs require HTTPS.&lt;/p&gt;
&lt;h4&gt;Google prioritizes HTTPS for SEO&lt;/h4&gt;
&lt;p&gt;Search ranking improves when a site uses HTTPS.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What does the browser’s padlock icon mean&lt;/h3&gt;
&lt;p&gt;The padlock means:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;TLS certificate validated&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Connection encrypted&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Website identity verified&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It does not guarantee that the website content is honest but it ensures the link between you and the website is safe.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Misconceptions about HTTPS&lt;/h3&gt;
&lt;h4&gt;Misconception 1&lt;/h4&gt;
&lt;p&gt;“HTTPS means the website is trustworthy.”
No. It only means the connection is secure.&lt;/p&gt;
&lt;h4&gt;Misconception 2&lt;/h4&gt;
&lt;p&gt;“HTTPS slows websites.”
Modern TLS is extremely fast. Often HTTPS is faster than HTTP due to HTTP/2 or HTTP/3.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;HTTPS is the backbone of secure browsing. It protects your data and ensures safe communication. Without HTTPS the modern web could not function.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>SSL and TLS Explained | Web Encryption</title>
    <link href="https://karthikkadambi.com/notes/ssl-tls/" />
    <updated>2025-11-29T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/ssl-tls/</id>
    <content type="html">&lt;p&gt;When you enter a password or make an online payment you are trusting the website to keep your information safe. SSL and TLS are the technologies that protect your data while it travels across networks. Without them anyone on the path between you and the website could intercept or modify your information.&lt;/p&gt;
&lt;p&gt;This article explains what SSL and TLS are, how they work and why they matter.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What SSL and TLS are&lt;/h3&gt;
&lt;p&gt;SSL stands for Secure Sockets Layer.
TLS stands for Transport Layer Security.&lt;/p&gt;
&lt;p&gt;SSL was the original security protocol for the web. TLS is the modern upgraded version. Today when people say “SSL” they almost always mean TLS.
Browsers no longer support the old SSL versions.&lt;/p&gt;
&lt;p&gt;SSL was the foundation.
TLS is the evolution.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The goals of TLS&lt;/h3&gt;
&lt;p&gt;TLS provides three essential protections.&lt;/p&gt;
&lt;h4&gt;Encryption&lt;/h4&gt;
&lt;p&gt;Data is scrambled so no one can read it.&lt;/p&gt;
&lt;h4&gt;Authentication&lt;/h4&gt;
&lt;p&gt;The browser verifies that you are talking to the real website and not a fake server.&lt;/p&gt;
&lt;h4&gt;Integrity&lt;/h4&gt;
&lt;p&gt;The data cannot be changed during transmission. If someone tries to tamper with it the browser detects it.&lt;/p&gt;
&lt;p&gt;These three protections create a secure channel.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How TLS works step by step&lt;/h3&gt;
&lt;p&gt;TLS sounds complicated but it follows a simple structure.&lt;/p&gt;
&lt;p&gt;Step 1. Browser connects to the server&lt;/p&gt;
&lt;p&gt;The browser says “I want to create a secure connection”.&lt;/p&gt;
&lt;p&gt;Step 2. Server sends its certificate&lt;/p&gt;
&lt;p&gt;This certificate contains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The domain name&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The server’s public key&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The certificate authority signature&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Step 3. Browser verifies the certificate&lt;/p&gt;
&lt;p&gt;The browser checks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Is the certificate from a trusted authority&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Is the certificate expired&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Does the domain match&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If any check fails you get a warning.&lt;/p&gt;
&lt;p&gt;Step 4. Both sides generate encryption keys&lt;/p&gt;
&lt;p&gt;These keys are temporary and unique for every session.&lt;/p&gt;
&lt;p&gt;Step 5. Secure communication begins&lt;/p&gt;
&lt;p&gt;Now HTTP flows inside the encrypted TLS tunnel.&lt;/p&gt;
&lt;p&gt;Your data is safe from snooping, tampering and impersonation.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a TLS certificate?&lt;/h3&gt;
&lt;p&gt;A certificate is like an ID card for a website.
It is issued by a trusted third party called a Certificate Authority.&lt;/p&gt;
&lt;p&gt;The certificate proves:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The website owns the domain&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The server controls the private key&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The website is legitimate&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Browsers trust only well known authorities.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Types of TLS certificates&lt;/h3&gt;
&lt;h4&gt;Domain Validated (DV)&lt;/h4&gt;
&lt;p&gt;Basic certificate. Validates only domain ownership.&lt;/p&gt;
&lt;h4&gt;Organization Validated (OV)&lt;/h4&gt;
&lt;p&gt;Validates the organization behind the domain.&lt;/p&gt;
&lt;h4&gt;Extended Validation (EV)&lt;/h4&gt;
&lt;p&gt;Stronger business verification. Useful for high trust sites.&lt;/p&gt;
&lt;p&gt;DV is enough for most websites today.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why TLS matters&lt;/h3&gt;
&lt;p&gt;TLS protects:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Passwords&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Personal data&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Credit card numbers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Cookies&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;API traffic&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Login sessions&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Without TLS:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Anyone on public Wi Fi could intercept your data&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Attackers could redirect you to fake sites&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Session hijacking would be common&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sensitive data would leak everywhere&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;TLS is mandatory for modern web applications.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;SSL started the web security revolution. TLS continues it with stronger encryption and modern protections. It creates trust between browsers and websites and keeps users safe every time they connect.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>HTTP Explained | How Browsers Talk to Servers</title>
    <link href="https://karthikkadambi.com/notes/http/" />
    <updated>2025-11-26T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/http/</id>
    <content type="html">&lt;p&gt;Every time you open a web page your browser talks to a web server using a protocol called HTTP. This communication defines how requests are sent and how responses are received. It is the language of the web. Understanding HTTP helps you understand how the internet delivers content, runs applications and loads websites.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is HTTP&lt;/h3&gt;
&lt;p&gt;HTTP stands for Hypertext Transfer Protocol. It is a set of rules that browsers and servers follow to communicate. HTTP is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Simple&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Text based&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stateless&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Stateless means the server does not remember previous requests unless the application uses cookies or sessions.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How HTTP works step by step&lt;/h3&gt;
&lt;p&gt;Step 1. You type a URL&lt;/p&gt;
&lt;p&gt;Example:
https://example.com/products&lt;/p&gt;
&lt;p&gt;Step 2. Browser resolves the domain name to an IP address&lt;/p&gt;
&lt;p&gt;DNS gives the browser the server’s IP address.&lt;/p&gt;
&lt;p&gt;Step 3. Browser connects to the server&lt;/p&gt;
&lt;p&gt;This connection may use TCP or QUIC depending on HTTP version.&lt;/p&gt;
&lt;p&gt;Step 4. Browser sends an HTTP request&lt;/p&gt;
&lt;p&gt;The request includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Method&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Headers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Path&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Optional body&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Step 5. Server processes the request&lt;/p&gt;
&lt;p&gt;Server application checks routing, logic and data.&lt;/p&gt;
&lt;p&gt;Step 6. Server sends an HTTP response&lt;/p&gt;
&lt;p&gt;The response includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Status code&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Headers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Body (HTML, JSON, images)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Step 7. Browser displays the page&lt;/p&gt;
&lt;p&gt;The browser interprets HTML and loads additional resources.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;HTTP methods explained&lt;/h3&gt;
&lt;h4&gt;GET&lt;/h4&gt;
&lt;p&gt;Retrieve a resource.
Used for loading pages or fetching data.&lt;/p&gt;
&lt;h4&gt;POST&lt;/h4&gt;
&lt;p&gt;Send data to the server.
Used in forms and APIs.&lt;/p&gt;
&lt;h4&gt;PUT&lt;/h4&gt;
&lt;p&gt;Update an existing resource.&lt;/p&gt;
&lt;h4&gt;DELETE&lt;/h4&gt;
&lt;p&gt;Remove a resource.&lt;/p&gt;
&lt;h4&gt;PATCH&lt;/h4&gt;
&lt;p&gt;Partially update data.&lt;/p&gt;
&lt;p&gt;These methods help create predictable APIs.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;HTTP status codes explained&lt;/h3&gt;
&lt;h4&gt;2xx Success&lt;/h4&gt;
&lt;p&gt;200 OK
201 Created&lt;/p&gt;
&lt;h4&gt;3xx Redirection&lt;/h4&gt;
&lt;p&gt;301 Permanent redirect
302 Temporary redirect&lt;/p&gt;
&lt;h4&gt;4xx Client errors&lt;/h4&gt;
&lt;p&gt;400 Bad request
404 Not found
429 Too many requests&lt;/p&gt;
&lt;h4&gt;5xx Server errors&lt;/h4&gt;
&lt;p&gt;500 Server error
503 Service unavailable&lt;/p&gt;
&lt;p&gt;These codes help browsers and developers understand what happened.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;HTTP headers explained&lt;/h3&gt;
&lt;p&gt;Headers carry metadata.&lt;/p&gt;
&lt;p&gt;Common request headers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;User Agent&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Accept&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Authorization&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Common response headers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Content Type&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Cache Control&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set Cookie&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Headers influence caching, security and behavior.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why HTTP is important&lt;/h3&gt;
&lt;p&gt;HTTP powers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Websites&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;APIs&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Mobile apps&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Browser communication&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Web services&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CDNs&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Cloud applications&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Any modern internet application uses HTTP or HTTPS.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Evolution of HTTP&lt;/h3&gt;
&lt;p&gt;HTTP evolved many times.&lt;/p&gt;
&lt;p&gt;HTTP 1.0&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One request per connection.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;HTTP 1.1&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Persistent connections and caching.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;HTTP 2&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Multiplexing and faster loading.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;HTTP 3&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Uses QUIC and UDP for even better performance.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each upgrade focused on performance and reliability.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Visual &amp; Interactive Guides:&lt;/strong&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;a href=&quot;https://http.cat/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;HTTP Cats&lt;/a&gt; - A fun, visual way to remember HTTP status codes.&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;https://http.dev/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;http.dev&lt;/a&gt; - A clean, modern reference for methods and headers.&lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;HTTP defines how browsers request resources and how servers respond. It is simple yet powerful. It forms the core of modern web communication. A solid understanding of HTTP makes learning HTTPS, TLS, routing and APIs easier.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Network Packets Explained | Digital Data chunks</title>
    <link href="https://karthikkadambi.com/notes/packet/" />
    <updated>2025-11-23T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/packet/</id>
    <content type="html">&lt;p&gt;Everything that travels across the internet moves in small pieces called packets. A packet is the most fundamental part of digital communication. Even large files like movies or software downloads do not travel as a single unit. Instead, they are divided into thousands or millions of packets. This design makes the internet fast. It also makes it fault tolerant and scalable.&lt;/p&gt;
&lt;p&gt;This article breaks down what a packet is, why it exists, what it contains and how it travels across networks.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a Packet&lt;/h3&gt;
&lt;p&gt;A packet is a small container of data that includes two things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The actual data being transmitted&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The information needed to deliver it&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Think of sending a long letter by cutting it into many small envelopes. Each envelope contains part of the message and carries the delivery address. The receiver collects all envelopes and assembles the message.&lt;/p&gt;
&lt;p&gt;Packets work the same way. They make digital communication:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Efficient&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Robust&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Flexible&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why the Internet uses Packets&lt;/h3&gt;
&lt;h4&gt;Prevents congestion&lt;/h4&gt;
&lt;p&gt;If large messages were sent as a single block they could easily clog the network. Packets let the network interleave data from many users. This keeps the internet responsive for everyone.&lt;/p&gt;
&lt;h4&gt;Supports multiple simultaneous users&lt;/h4&gt;
&lt;p&gt;Routers can forward packets from thousands of devices at the same time. Packets help share network capacity fairly.&lt;/p&gt;
&lt;h4&gt;Allows different paths&lt;/h4&gt;
&lt;p&gt;Packets do not need to follow the same route. If one path is slow or broken routers send some packets through alternative paths.&lt;/p&gt;
&lt;h4&gt;Supports retransmission&lt;/h4&gt;
&lt;p&gt;If a packet is lost only that single packet is resent. You never have to resend the entire file.&lt;/p&gt;
&lt;h4&gt;Enables streaming&lt;/h4&gt;
&lt;p&gt;You can start watching a video before all packets arrive. Packets make real time communication possible.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What a Packet contains&lt;/h3&gt;
&lt;p&gt;A packet usually has two major sections.&lt;/p&gt;
&lt;h4 class=&quot;header-branding&quot;&gt;Header&lt;/h4&gt;
&lt;p&gt;The header contains control information that routers and devices use to deliver the packet.
Typical fields include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Source IP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Destination IP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Length&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Packet number&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Error detection code&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Protocol information&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Routing hints&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The header does not contain user data. It contains instructions that tell the network how to handle that data.&lt;/p&gt;
&lt;h4 class=&quot;header-branding&quot;&gt;Payload&lt;/h4&gt;
&lt;p&gt;This is the actual user data.
Example payloads:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Part of an HTML page&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A chunk of an image&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A piece of a video&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A segment of an email&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Payloads are usually small. Most packets on the internet are between 500 and 1500 bytes.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Visual Reference:&lt;/strong&gt; For detailed diagrams of IP, TCP, and UDP packet headers, check out the &lt;a href=&quot;https://nmap.org/book/tcpip-ref.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Nmap TCP/IP Reference&lt;/a&gt; or use &lt;a href=&quot;https://packetor.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Packetor&lt;/a&gt; to decode raw packets.
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Packets are created and sent&lt;/h3&gt;
&lt;p&gt;Here is the simplified flow.&lt;/p&gt;
&lt;p&gt;Step 1. Application generates data&lt;/p&gt;
&lt;p&gt;For example you click a link or load a video.&lt;/p&gt;
&lt;p&gt;Step 2. Operating system passes data to transport layer&lt;/p&gt;
&lt;p&gt;TCP or UDP decide how to package it.&lt;/p&gt;
&lt;p&gt;Step 3. Data is split into segments&lt;/p&gt;
&lt;p&gt;Large data is broken into multiple smaller pieces.&lt;/p&gt;
&lt;p&gt;Step 4. IP layer wraps each segment into a packet&lt;/p&gt;
&lt;p&gt;This adds addressing and routing information.&lt;/p&gt;
&lt;p&gt;Step 5. Packet is transmitted over the network&lt;/p&gt;
&lt;p&gt;It moves through network interfaces and routers.&lt;/p&gt;
&lt;p&gt;Step 6. Routers forward packets closer to the destination&lt;/p&gt;
&lt;p&gt;Routers do not understand the entire message. They simply forward each packet based on its destination IP.&lt;/p&gt;
&lt;p&gt;Step 7. Packets arrive at the destination&lt;/p&gt;
&lt;p&gt;TCP reorders them and reassembles the original data.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Packets move across the Internet&lt;/h3&gt;
&lt;p&gt;Packets hop between devices.
A typical path might look like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Your laptop&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Your Wi Fi router&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Your ISP&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Internet backbone routers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Destination network&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Destination server&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each hop reads the header and forwards the packet. No hop needs to understand the content. This design makes networks modular.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What happens if Packets arrive out of order&lt;/h3&gt;
&lt;p&gt;This happens often.
Routers may choose different paths. Some paths are faster. Some are slower.&lt;/p&gt;
&lt;p&gt;TCP fixes this by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Numbering packets&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reordering them&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Detecting missing packets&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Requesting retransmission&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To you the user everything looks seamless.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What happens when packets get lost&lt;/h3&gt;
&lt;p&gt;On Wi Fi or mobile networks packets may be dropped.
TCP handles this by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Detecting missing acknowledgements&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Resending missing packets&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This keeps communication reliable.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Packets make the internet scale&lt;/h3&gt;
&lt;p&gt;Packets allow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Billions of devices&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Multiple applications per device&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Real time communication&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Large scale video streaming&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Global networks that never have to “shut down”&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The packet switching idea is one of the greatest inventions in networking.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Packets form the backbone of the internet. They carry data efficiently. They allow networks to scale. They support reliability and flexibility. Understanding packets builds a strong foundation for learning IP, TCP, DNS and routing.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Domain Registration | How to Register and Manage</title>
    <link href="https://karthikkadambi.com/notes/domain-name-registration/" />
    <updated>2025-11-22T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/domain-name-registration/</id>
    <content type="html">&lt;p&gt;Every website begins with a domain name. Before DNS can map a domain to an IP address, the domain must be registered. This article explains how domain names are created, bought, owned, and managed.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a Domain Name&lt;/h3&gt;
&lt;p&gt;A domain name is a unique, human-readable label used to identify websites.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;google.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;karthikkadambi.com&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A domain name points to the servers that host your website.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Who Controls Domain Names Worldwide&lt;/h3&gt;
&lt;p&gt;Domain names are managed through an international system.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ICANN:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Internet Corporation for Assigned Names and Numbers.
It oversees domain name policies globally.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Learn More:&lt;/strong&gt; New to domain names? Read the &lt;a href=&quot;https://www.icann.org/en/beginners&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;ICANN Beginners Guide&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Registries:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Organizations that manage specific TLDs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Verisign manages &lt;code&gt;.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Public Interest Registry manages &lt;code&gt;.org&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Google manages &lt;code&gt;.app&lt;/code&gt; and &lt;code&gt;.dev&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Registry Operators:&lt;/strong&gt; View the complete list of TLD registry operators at &lt;a href=&quot;https://www.icann.org/en/contracted-parties/registry-operators/resources/listings&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;ICANN Registry Listings&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Registrars:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Companies where you buy domains.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Porkbun&lt;/li&gt;
&lt;li&gt;Namecheap&lt;/li&gt;
&lt;li&gt;GoDaddy&lt;/li&gt;
&lt;li&gt;Cloudflare&lt;/li&gt;
&lt;li&gt;Google Domains&lt;/li&gt;
&lt;li&gt;Squarespace&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Registrars interact with registries on your behalf.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Accredited Registrars:&lt;/strong&gt; View the full list of ICANN accredited registrars at &lt;a href=&quot;https://www.icann.org/en/contracted-parties/accredited-registrars/list-of-accredited-registrars&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;ICANN Registrar Listings&lt;/a&gt;
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How a Domain Name is Structured&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;
&lt;code&gt;blog.example.com&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Breaking it down:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;com&lt;/code&gt; is the top-level domain (TLD)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;example&lt;/code&gt; is the second-level domain&lt;/li&gt;
&lt;li&gt;&lt;code&gt;blog&lt;/code&gt; is a subdomain&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You register only the second-level domain under a TLD.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How to Register a Domain Name&lt;/h3&gt;
&lt;p&gt;Registering a domain is simple.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1: Search for availability&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Use a registrar to check if the name is free.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Domain Search:&lt;/strong&gt; Search and register domains at &lt;a href=&quot;https://porkbun.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Porkbun&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Step 2: Choose the TLD&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.net&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.org&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.dev&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.app&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each TLD has different pricing and rules.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3: Purchase the domain&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Registration is usually for one to ten years.
You must renew periodically to maintain ownership.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4: Assign DNS&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You set:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nameservers&lt;/li&gt;
&lt;li&gt;DNS provider&lt;/li&gt;
&lt;li&gt;DNS records&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This connects the domain to your hosting server.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What are Nameservers&lt;/h3&gt;
&lt;p&gt;Nameservers are DNS servers responsible for your domain.
They store DNS records that define where your website lives.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;ns1.cloudflare.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;ns2.cloudflare.com&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You set nameservers at your registrar.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Domains point to Websites&lt;/h3&gt;
&lt;p&gt;After registering a domain, you configure DNS.&lt;/p&gt;
&lt;p&gt;The most important records are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A record:&lt;/strong&gt; for IPv4&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AAAA record:&lt;/strong&gt; for IPv6&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CNAME:&lt;/strong&gt; for aliases&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MX record:&lt;/strong&gt; for email&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These records tell the world where your website or services are hosted.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Domain Expiration and Renewal&lt;/h3&gt;
&lt;p&gt;Domains must be renewed.
If you forget to renew:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The domain enters a grace period&lt;/li&gt;
&lt;li&gt;Then it enters redemption period&lt;/li&gt;
&lt;li&gt;It may finally become available for others to buy&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Large companies often enable auto-renew to avoid losing domains.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Difference between Domain Name and Hosting&lt;/h3&gt;
&lt;p&gt;People often confuse the two.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Domain Name&lt;/th&gt;
&lt;th&gt;Hosting&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Your website address&lt;/td&gt;
&lt;td&gt;Where your website files live&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bought from a registrar&lt;/td&gt;
&lt;td&gt;Bought from a hosting provider&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does not store data&lt;/td&gt;
&lt;td&gt;Stores website content&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Both are needed to build a website.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Domain names are registered through a global system involving registrars, registries, and DNS. Once purchased, you configure DNS records to point your domain to a server. Understanding domain registration helps you build and manage websites confidently.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>How Hosting Works | Web Servers and Hosting Explained</title>
    <link href="https://karthikkadambi.com/notes/hosting/" />
    <updated>2025-11-19T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/hosting/</id>
    <content type="html">&lt;p&gt;A website needs a place to store files, images, code, and databases. Hosting is the service that stores these files on a server and delivers them to visitors through the internet.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Core Idea&lt;/h3&gt;
&lt;p&gt;You rent space on a server. When users type your domain, the server sends your website to their browser.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Main Hosting Types&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;1. Shared Hosting:&lt;/strong&gt;
Many websites share one server. Cheap and basic.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. VPS Hosting:&lt;/strong&gt;
Virtual Private Server. More power and better performance.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Dedicated Hosting:&lt;/strong&gt;
You get an entire physical server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Cloud Hosting:&lt;/strong&gt;
Runs on distributed servers. Auto-scaling. Used by AWS, GCP, Azure.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5. Static Hosting:&lt;/strong&gt;
For static sites. Examples: GitHub Pages, Netlify, Vercel, Cloudflare Pages.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What Hosting Provides&lt;/h3&gt;
&lt;p&gt;Hosting provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Storage for your files&lt;/li&gt;
&lt;li&gt;A public IP address&lt;/li&gt;
&lt;li&gt;A web server program&lt;/li&gt;
&lt;li&gt;Bandwidth&lt;/li&gt;
&lt;li&gt;Security updates&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Hosting Connects to Your Domain&lt;/h3&gt;
&lt;p&gt;You point DNS records to your hosting server IP using A or AAAA records. When visitors type your domain, DNS finds your hosting server and the server sends back your site.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What Is a Web Server&lt;/h3&gt;
&lt;p&gt;A web server is software that listens for HTTP requests and sends back responses like HTML, CSS, JS, images, or API output.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples of web servers:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nginx&lt;/li&gt;
&lt;li&gt;Apache&lt;/li&gt;
&lt;li&gt;Caddy&lt;/li&gt;
&lt;li&gt;IIS&lt;/li&gt;
&lt;li&gt;Node.js based servers&lt;/li&gt;
&lt;li&gt;Python servers like Gunicorn or Uvicorn&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;What a web server does:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Listens on port 80 (HTTP) or 443 (HTTPS)&lt;/li&gt;
&lt;li&gt;Accepts HTTP or HTTPS requests&lt;/li&gt;
&lt;li&gt;Finds the correct file or application&lt;/li&gt;
&lt;li&gt;Sends the response&lt;/li&gt;
&lt;li&gt;Logs activity&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Static vs Dynamic Content&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Static content:&lt;/strong&gt;
HTML files, images, CSS, JavaScript files served directly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dynamic content:&lt;/strong&gt;
Pages generated by code like Node.js, Python, PHP, or Ruby.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Hosting Providers&lt;/h3&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Popular Hosting Service:&lt;/strong&gt; Explore hosting and CDN services from &lt;a href=&quot;https://www.cloudflare.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Cloudflare&lt;/a&gt;
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Hosting provides the infrastructure to store and serve your website. A web server is the software that handles requests and delivers content. Together with DNS, hosting makes your website accessible to the world through a domain name.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>DNS Explained | Domain Names to IP Addresses</title>
    <link href="https://karthikkadambi.com/notes/dns/" />
    <updated>2025-11-16T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/dns/</id>
    <content type="html">&lt;p&gt;Every website on the Internet is hosted on a server that has an IP address. Humans are not good at remembering long numbers. So the internet uses DNS, also called the Domain Name System. DNS converts human-readable names into machine-friendly IP addresses.&lt;/p&gt;
&lt;p&gt;When you type &lt;code&gt;google.com&lt;/code&gt; or &lt;code&gt;youtube.com&lt;/code&gt;, DNS finds the correct IP address and sends it back to your device. Without DNS, the internet would not be usable.&lt;/p&gt;
&lt;p&gt;This article explains DNS in a simple and practical way, from domain names to DNS servers to the entire lookup process.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is DNS&lt;/h3&gt;
&lt;p&gt;DNS stands for Domain Name System.
It is a global directory system that maps domain names to IP addresses.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Domain name: &lt;code&gt;google.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;IP address: &lt;code&gt;142.250.72.14&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;DNS is the internet&#39;s phonebook. It makes it possible to use names instead of numbers.&lt;/p&gt;
&lt;p&gt;Without domain names, we would need to type IP addresses like &lt;code&gt;142.250.72.14&lt;/code&gt; or &lt;code&gt;2607:f8b0:4007:80a::200e&lt;/code&gt; into browsers every time we want to visit a website.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why DNS Exists&lt;/h3&gt;
&lt;p&gt;Humans prefer names. Computers prefer numbers.&lt;/p&gt;
&lt;p&gt;Imagine remembering:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;142.250.72.14&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;198.41.0.4&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;23.216.147.64&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It is impossible for daily use.&lt;/p&gt;
&lt;p&gt;DNS solves this problem by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Allowing websites to have friendly names.&lt;/li&gt;
&lt;li&gt;Handling IP changes without affecting users.&lt;/li&gt;
&lt;li&gt;Providing a global, distributed system to manage domains.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;DNS makes the web convenient and user-friendly.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How a Domain Name Works&lt;/h3&gt;
&lt;p&gt;A domain name is split into levels.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;
&lt;code&gt;www.example.com&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;com&lt;/code&gt; is the Top-Level Domain (TLD)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;example&lt;/code&gt; is the Second-Level Domain&lt;/li&gt;
&lt;li&gt;&lt;code&gt;www&lt;/code&gt; is a subdomain&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The full name is read from right to left, starting with the top-level domain.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Types of DNS Servers&lt;/h3&gt;
&lt;p&gt;DNS is not a single server. It is a hierarchy of multiple server types.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Root DNS Servers&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;These are the highest level.&lt;/li&gt;
&lt;li&gt;There are 13 root server clusters around the world.&lt;/li&gt;
&lt;li&gt;They know where to find Top-Level Domain servers.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Root Servers:&lt;/strong&gt; View the official list of root DNS servers at &lt;a href=&quot;https://www.iana.org/domains/root/servers&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;IANA Root Servers&lt;/a&gt; and learn more at &lt;a href=&quot;https://root-servers.org/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Root Servers Organization&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;2. TLD Servers&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;They manage domains based on extension.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;.com&lt;/code&gt; servers&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.net&lt;/code&gt; servers&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.org&lt;/code&gt; servers&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They know where the authoritative servers for each domain are located.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Authoritative DNS Servers&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These hold the actual DNS records for a specific domain.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;
If you own &lt;code&gt;example.com&lt;/code&gt;, the authoritative server stores your site&#39;s IP address.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Recursive Resolver&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the DNS server your device talks to first.
It might be your ISP DNS, or public DNS like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Comcast ISP DNS&lt;/li&gt;
&lt;li&gt;Google DNS: &lt;code&gt;8.8.8.8&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Cloudflare DNS: &lt;code&gt;1.1.1.1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Recursive resolver does the full lookup on your behalf.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;DNS Records Explained&lt;/h3&gt;
&lt;p&gt;DNS stores information using records.
Different records serve different purposes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A Record:&lt;/strong&gt;
Maps a domain name to an IPv4 address.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AAAA Record:&lt;/strong&gt;
Maps a domain name to an IPv6 address.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CNAME:&lt;/strong&gt;
Alias record. Points one domain to another domain.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;MX Record:&lt;/strong&gt;
Mail exchange record. Defines mail server for the domain.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TXT Record:&lt;/strong&gt;
Stores plain text. Used for verification and authentication.&lt;/p&gt;
&lt;p&gt;You do not need all records now. Start with A, AAAA, and CNAME.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How DNS Lookup Works&lt;/h3&gt;
&lt;p&gt;Here is the exact flow when you type a domain name.&lt;/p&gt;
&lt;p&gt;Let us use &lt;code&gt;www.example.com&lt;/code&gt; as an example.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1. Your browser checks local cache:&lt;/strong&gt;
If it was visited recently, the answer is returned instantly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2. Your device asks the recursive DNS resolver:&lt;/strong&gt;
This is usually your router or ISP DNS.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3. Resolver checks its cache:&lt;/strong&gt;
If cached, it returns the IP quickly.
If not, the resolver performs a full lookup.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4. Resolver asks a Root Server:&lt;/strong&gt;
The root server does not know the IP.
It tells the resolver: go ask the &lt;code&gt;.com&lt;/code&gt; TLD server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 5. Resolver asks the TLD Server:&lt;/strong&gt;
The TLD server does not know the IP. It tells the resolver, go ask the authoritative server for &lt;code&gt;example.com&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 6. Resolver asks the Authoritative Server:&lt;/strong&gt;
The authoritative server gives the actual IP address.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 7. Resolver returns the IP to your device:&lt;/strong&gt;
Your device uses this IP to contact the website.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 8. Browser connects directly to the server:&lt;/strong&gt;
The DNS process is finished.
Your device now knows exactly where to send packets.&lt;/p&gt;
&lt;p&gt;This entire flow usually takes a few milliseconds.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Visual Guide:&lt;/strong&gt; For a visual explanation, check out &lt;a href=&quot;https://howdns.works/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;How DNS Works&lt;/a&gt;
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;DNS Caching&lt;/h3&gt;
&lt;p&gt;DNS results are stored temporarily for faster performance.
Caching happens in multiple places:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Browser cache&lt;/li&gt;
&lt;li&gt;Operating system cache&lt;/li&gt;
&lt;li&gt;Router cache&lt;/li&gt;
&lt;li&gt;ISP DNS resolver cache&lt;/li&gt;
&lt;li&gt;Cloud DNS cache (Cloudflare, Google DNS)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Caching reduces lookup time and reduces DNS traffic.&lt;/p&gt;
&lt;p&gt;TTL (Time To Live) controls how long DNS results stay in cache.&lt;/p&gt;
&lt;p&gt;This is why websites load faster after the first visit. Once the IP is found, DNS stores the result for a short time to avoid repeating the entire lookup.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Dynamic IP Changes do not break Websites&lt;/h3&gt;
&lt;p&gt;A website can change its server IP address without affecting users.
Only the DNS record needs to be updated.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;A website originally points to &lt;code&gt;192.0.2.10&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The server migrates to a new IP &lt;code&gt;198.51.100.50&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The DNS A record is updated to the new IP&lt;/li&gt;
&lt;li&gt;Users still type the same domain name&lt;/li&gt;
&lt;li&gt;DNS now returns the new IP address&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This makes domain names extremely flexible and allows websites to move between servers, data centers, or cloud providers without users noticing any change.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What Happens if DNS Fails&lt;/h3&gt;
&lt;p&gt;If DNS stops working:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Websites cannot be found&lt;/li&gt;
&lt;li&gt;Apps cannot reach servers&lt;/li&gt;
&lt;li&gt;Emails stop&lt;/li&gt;
&lt;li&gt;Login systems break&lt;/li&gt;
&lt;li&gt;Streaming fails&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The internet becomes unreachable even though the physical network works. This shows how important DNS is.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;DNS over HTTPS and DNS over TLS&lt;/h3&gt;
&lt;p&gt;Modern DNS supports encryption.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DNS over HTTPS (DoH):&lt;/strong&gt;
Sends DNS queries inside HTTPS to prevent spying.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DNS over TLS (DoT):&lt;/strong&gt;
Encrypts DNS traffic at a lower level.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Privacy protection&lt;/li&gt;
&lt;li&gt;Prevents attackers from snooping DNS queries&lt;/li&gt;
&lt;li&gt;More secure browsing&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Services like Cloudflare and Google provide encrypted DNS.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Learn More:&lt;/strong&gt; Explore DNS services from &lt;a href=&quot;https://one.one.one.one/dns/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Cloudflare DNS&lt;/a&gt; and &lt;a href=&quot;https://developers.google.com/speed/public-dns&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;Google Public DNS&lt;/a&gt;
&lt;/div&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;DNS is the naming system of the internet. It converts human-friendly domain names into machine-friendly IP addresses. DNS uses a hierarchy of servers, caching, and efficient lookup processes to make browsing fast and reliable.&lt;/p&gt;
&lt;p&gt;Without DNS, the web would be a complex network of IPs that humans cannot remember. DNS makes the internet accessible and user-friendly.&lt;/p&gt;
&lt;p&gt;You now understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Domain names and why they exist&lt;/li&gt;
&lt;li&gt;DNS record types (A, AAAA, CNAME, MX, TXT)&lt;/li&gt;
&lt;li&gt;Root, TLD, and authoritative servers&lt;/li&gt;
&lt;li&gt;How DNS lookup works step by step&lt;/li&gt;
&lt;li&gt;DNS caching and performance optimization&lt;/li&gt;
&lt;li&gt;DNS security with DoH and DoT&lt;/li&gt;
&lt;li&gt;How dynamic IP changes work seamlessly&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Routing Basics | How Packets Find Their Path</title>
    <link href="https://karthikkadambi.com/notes/routing/" />
    <updated>2025-11-15T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/routing/</id>
    <content type="html">&lt;p&gt;Routing is one of the most important ideas in networking. When you send a message across the internet, the message does not travel in a straight line. It passes through multiple routers that guide the packet to the correct destination. This process is called routing.&lt;/p&gt;
&lt;p&gt;Routing ensures that data can travel between networks, across cities, across countries, and across the world. Without routing, the internet would not exist.&lt;/p&gt;
&lt;p&gt;This article explains routing in a simple way that connects directly with what you learned about IP addresses and subnetting.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is Routing&lt;/h3&gt;
&lt;p&gt;Routing is the process of selecting a path for data to travel across one or more networks.&lt;/p&gt;
&lt;p&gt;Routers are devices that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Read the destination IP in a packet.&lt;/li&gt;
&lt;li&gt;Decide the best path to reach the destination.&lt;/li&gt;
&lt;li&gt;Forward the packet to the next router in the path.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Routing is the reason devices in your home can talk to servers anywhere on the internet.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why Routing Exists&lt;/h3&gt;
&lt;p&gt;Inside one subnet, devices communicate directly.
Across different subnets, direct communication does not work because devices are in different networks.&lt;/p&gt;
&lt;p&gt;Routing exists because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The world has millions of networks.&lt;/li&gt;
&lt;li&gt;Packets must cross many networks to reach destinations.&lt;/li&gt;
&lt;li&gt;Routers act as guides for packets.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Routing turns isolated networks into one global system called the Internet.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What a Router Actually Does&lt;/h3&gt;
&lt;p&gt;Every time a router receives a packet, it performs three steps:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Reads the destination IP:&lt;/strong&gt;
The router checks the IP address inside the packet header.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Looks up the routing table:&lt;/strong&gt;
A routing table tells the router which path to use for each network.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Forwards the packet:&lt;/strong&gt;
The router sends the packet to the next router on the path. This next router is called the next hop.&lt;/p&gt;
&lt;p&gt;Routers do this many millions of times per second.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Routing Table Explained&lt;/h3&gt;
&lt;p&gt;A routing table is a list of network entries.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Destination network    Next hop       Interface
192.168.1.0/24         Direct         LAN port
10.0.0.0/8             Router A       eth0
0.0.0.0/0              Router B       WAN port
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Each entry includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The destination network&lt;/li&gt;
&lt;li&gt;The next hop router&lt;/li&gt;
&lt;li&gt;The outgoing interface&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Routers choose the most specific matching network.
That means the longest prefix match wins.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;
&lt;code&gt;192.168.1.0/24&lt;/code&gt; is more specific than &lt;code&gt;0.0.0.0/0&lt;/code&gt;.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Default Route: The Internet Shortcut&lt;/h3&gt;
&lt;p&gt;A default route is used when the router does not know where to send a packet.
It is written as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;0.0.0.0/0&lt;/code&gt; for IPv4&lt;/li&gt;
&lt;li&gt;&lt;code&gt;::/0&lt;/code&gt; for IPv6&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In home networks, your router sends unknown traffic to your ISP using the default route. Your ISP then routes it to the global internet.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Types of Routing&lt;/h3&gt;
&lt;p&gt;There are two main routing methods:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Static Routing&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In static routing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Routes are manually configured.&lt;/li&gt;
&lt;li&gt;Routers do not change paths automatically.&lt;/li&gt;
&lt;li&gt;Useful in small networks.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;
You tell a router that &lt;code&gt;10.0.0.0/24&lt;/code&gt; is behind Router B.&lt;/p&gt;
&lt;p&gt;Static routing is simple and predictable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Dynamic Routing&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In dynamic routing:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Routers share routing information automatically.&lt;/li&gt;
&lt;li&gt;Paths update when networks change.&lt;/li&gt;
&lt;li&gt;Used by ISPs and large companies.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Dynamic routing uses protocols such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;OSPF&lt;/li&gt;
&lt;li&gt;BGP&lt;/li&gt;
&lt;li&gt;RIP&lt;/li&gt;
&lt;li&gt;EIGRP&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You do not need deep detail now. Just know that dynamic routing handles large and constantly changing networks.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Packets Travel Across the Internet&lt;/h3&gt;
&lt;p&gt;Here is the high-level flow when you access a website:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1. Your device sends the packet:&lt;/strong&gt;
Destination IP is the server address.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2. Packet goes to your router:&lt;/strong&gt;
Your router checks its routing table.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3. Packet goes to your ISP:&lt;/strong&gt;
Your ISP router has hundreds of routes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4. ISP sends it to bigger networks:&lt;/strong&gt;
The packet hops between routers, each with its own table.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 5. Packet arrives at the server network:&lt;/strong&gt;
The server router knows exactly where the server is located.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 6. Response flows back:&lt;/strong&gt;
Packets return through a similar path.
Paths do not have to be identical. Routing is dynamic.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What Is BGP&lt;/h3&gt;
&lt;p&gt;BGP is the protocol that ISPs use to exchange routes.
It connects thousands of independent networks called Autonomous Systems.&lt;/p&gt;
&lt;p&gt;BGP decides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which ISP your traffic goes through&lt;/li&gt;
&lt;li&gt;Which paths are reliable&lt;/li&gt;
&lt;li&gt;Which networks are reachable&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;BGP is why you can reach any website, even if it is across the world.&lt;/p&gt;
&lt;p&gt;You do not need deep BGP knowledge as a beginner.
Just know that BGP makes worldwide routing possible.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Routing vs Switching&lt;/h3&gt;
&lt;p&gt;Routing and switching are closely related but different.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Switching&lt;/th&gt;
&lt;th&gt;Routing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Works inside one network&lt;/td&gt;
&lt;td&gt;Works between networks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uses MAC addresses&lt;/td&gt;
&lt;td&gt;Uses IP addresses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Faster because it is local&lt;/td&gt;
&lt;td&gt;Slower because it is global&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Used by switches&lt;/td&gt;
&lt;td&gt;Used by routers&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Switching moves frames.
Routing moves packets.&lt;/p&gt;
&lt;p&gt;You need both for the internet to work.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Real-World Routing Example&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Example: You connect to google.com.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Your laptop creates a packet with destination IP &lt;code&gt;142.250.72.14&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Your router checks if the IP is on the same subnet&lt;/li&gt;
&lt;li&gt;It is not, so router uses the default route&lt;/li&gt;
&lt;li&gt;ISP router receives the packet and checks global routes&lt;/li&gt;
&lt;li&gt;Router forwards packet to a larger backbone network&lt;/li&gt;
&lt;li&gt;Packet moves through multiple Tier 1 ISPs&lt;/li&gt;
&lt;li&gt;It reaches Google&#39;s nearest data center&lt;/li&gt;
&lt;li&gt;The server processes your request and sends the response back&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;All of this happens in milliseconds.&lt;/p&gt;
&lt;p&gt;Routing makes long-distance communication possible.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Routing is the system that guides packets across networks, across countries, and across the world. Routers read destination IPs, check routing tables, choose paths, and forward packets to the next hop. With routing, small home networks connect to large ISP networks and eventually to the global internet.&lt;/p&gt;
&lt;p&gt;You now understand routing tables, static and dynamic routes, default routes, packet flow, and how global routing works.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Subnetting | How Networks are Divided and Organized</title>
    <link href="https://karthikkadambi.com/notes/subnet/" />
    <updated>2025-11-12T00:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/subnet/</id>
    <content type="html">&lt;p&gt;Subnetting is one of the most important concepts in networking. It explains how a single large network can be divided into smaller and more organized networks. This helps with security, performance, and efficient use of IP addresses.&lt;/p&gt;
&lt;p&gt;You do not need advanced math to understand subnetting. You only need to know how networks are split into two parts: one part identifies the network, the other part identifies the device inside that network.&lt;/p&gt;
&lt;p&gt;This article explains subnetting simply and visually.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a Subnet&lt;/h3&gt;
&lt;p&gt;A subnet is a smaller part of a larger network. When you subnet, you divide a large network into multiple smaller ones.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You have the network &lt;code&gt;192.168.1.0/24&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;It contains 256 addresses.&lt;/p&gt;
&lt;p&gt;You can split it into two smaller networks, each containing 128 addresses.&lt;/p&gt;
&lt;p&gt;Subnetting helps networks stay organized and reduces congestion.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why Subnetting exists&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Subnetting provides several benefits:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Better security:&lt;/strong&gt;
Devices in one subnet cannot reach another subnet unless rules allow it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Better performance:&lt;/strong&gt;
Reduces broadcast traffic and improves speed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Better organization:&lt;/strong&gt;
You can group devices logically. Example: one subnet for servers, one subnet for cameras, one subnet for employees.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Efficient use of IPs:&lt;/strong&gt;
You avoid wasting large blocks of addresses when only a few devices are needed.&lt;/p&gt;
&lt;p&gt;Subnetting is the foundation of modern network design.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Understanding Network Bits and Host Bits&lt;/h3&gt;
&lt;p&gt;An IP address has two sections:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Network part:&lt;/strong&gt;
Identifies the network.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Host part:&lt;/strong&gt;
Identifies the device inside that network.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;192.168.1.0/24&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First 24 bits are the network part.&lt;/li&gt;
&lt;li&gt;Last 8 bits are the host part.&lt;/li&gt;
&lt;li&gt;Total hosts possible: 256.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When you change the subnet mask, you change how many bits belong to the network and how many belong to the hosts.&lt;/p&gt;
&lt;p&gt;That is the entire logic behind subnetting.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;CIDR Notation&lt;/h3&gt;
&lt;p&gt;CIDR means Classless Inter-Domain Routing.&lt;/p&gt;
&lt;p&gt;It represents the network with a slash value. Examples: &lt;code&gt;/24&lt;/code&gt;, &lt;code&gt;/25&lt;/code&gt;, &lt;code&gt;/26&lt;/code&gt;, &lt;code&gt;/16&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This number tells how many bits belong to the network part.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/24&lt;/code&gt; means 24 bits for network.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/25&lt;/code&gt; means 25 bits for network.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/26&lt;/code&gt; means 26 bits for network.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;More network bits means fewer host bits.
Fewer network bits means more hosts per subnet.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;A Simple Example of Subnetting&lt;/h3&gt;
&lt;p&gt;Start with a common network:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;192.168.1.0/24&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This network has:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;256 IPs (from &lt;code&gt;192.168.1.0&lt;/code&gt; to &lt;code&gt;192.168.1.255&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;254 usable IPs for devices&lt;/li&gt;
&lt;li&gt;1 network address&lt;/li&gt;
&lt;li&gt;1 broadcast address&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now, split this network into two sub-networks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Two subnets of 128 IPs each:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;192.168.1.0/25&lt;/code&gt;
Range: &lt;code&gt;192.168.1.0&lt;/code&gt; to &lt;code&gt;192.168.1.127&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;192.168.1.128/25&lt;/code&gt;
Range: &lt;code&gt;192.168.1.128&lt;/code&gt; to &lt;code&gt;192.168.1.255&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This is subnetting. You took a &lt;code&gt;/24&lt;/code&gt; and turned it into two &lt;code&gt;/25&lt;/code&gt; networks.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Subnet Mask Explained&lt;/h3&gt;
&lt;p&gt;Subnet mask shows which bits are network bits.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/24&lt;/code&gt; means mask is &lt;code&gt;255.255.255.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/25&lt;/code&gt; means mask is &lt;code&gt;255.255.255.128&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/26&lt;/code&gt; means mask is &lt;code&gt;255.255.255.192&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mask values grow larger as the network portion grows.&lt;/p&gt;
&lt;p&gt;Subnet mask helps devices know if another device is inside the same subnet or in a different one. If both devices share the same network address, routing is not needed. If not, the packet goes to a router.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Routers Use Subnets&lt;/h3&gt;
&lt;p&gt;Routers use subnet boundaries to decide where to send packets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If both devices are in the same subnet:&lt;/strong&gt;
Packet is sent directly.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If devices are in different subnets:&lt;/strong&gt;
Packet goes to router, which forwards it to the correct network.&lt;/p&gt;
&lt;p&gt;Subnetting helps routers make faster decisions.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Real-World Subnetting Use Cases&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Home networks:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Many routers use:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;192.168.0.0/24&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;192.168.1.0/24&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Offices:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Networks are divided for departments.&lt;/p&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;10.0.1.0/24&lt;/code&gt; for HR&lt;/li&gt;
&lt;li&gt;&lt;code&gt;10.0.2.0/24&lt;/code&gt; for Engineering&lt;/li&gt;
&lt;li&gt;&lt;code&gt;10.0.3.0/24&lt;/code&gt; for Guests&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Data centers:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Subnets isolate servers and improve security.&lt;/p&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One subnet for web servers&lt;/li&gt;
&lt;li&gt;One for database servers&lt;/li&gt;
&lt;li&gt;One for backup systems&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Subnetting is everywhere.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;The Simplest Way to Think About Subnetting&lt;/h3&gt;
&lt;p&gt;Subnetting is just splitting and grouping.&lt;/p&gt;
&lt;p&gt;If you remember three rules, you understand subnetting:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;A subnet mask decides how many bits belong to the network.&lt;/li&gt;
&lt;li&gt;More network bits means smaller subnets.&lt;/li&gt;
&lt;li&gt;Routers use subnet boundaries to forward packets.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Everything else is math on top of this idea.
You do not need deep math unless you take certifications like CCNA.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Subnetting is a method to divide networks into smaller and more manageable parts. It makes networks more secure, more organized, and more efficient. You now understand what network bits and host bits are, how CIDR works, how subnets are created, and why subnetting is essential for routing.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>IP Address | How Devices are identified on the Internet</title>
    <link href="https://karthikkadambi.com/notes/ip-address/" />
    <updated>2025-11-09T12:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/ip-address/</id>
    <content type="html">&lt;p&gt;Now that you understand &lt;a href=&quot;https://karthikkadambi.com/notes/networking/&quot;&gt;networking&lt;/a&gt; and how devices connect, the next question is: how does data know where to go?&lt;/p&gt;
&lt;p&gt;Every device on a network needs a unique way to identify itself. Without an identifier, data would not know where to go. This identifier is called an IP address.&lt;/p&gt;
&lt;p&gt;An IP address works like a digital home address for devices. It helps computers, phones, servers, and routers send data to the correct destination.&lt;/p&gt;
&lt;p&gt;In this article, you will learn what an IP address is, how it works, why we have IPv4 and IPv6, how private IPs differ from public IPs, and how subnetting groups devices together.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is an IP Address?&lt;/h3&gt;
&lt;p&gt;An IP (Internet Protocol) address is a numerical label given to every device that connects to a network. It has two primary functions:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Identification:&lt;/strong&gt;
Identifies a device on the network.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Location:&lt;/strong&gt;
Shows where the device is located within a network. This helps routers forward packets in the correct direction.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;
When you visit a website, your device and the server exchange data using their IP addresses.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What IP Addresses look like&lt;/h3&gt;
&lt;p&gt;There are two versions of IP in use today.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. IPv4 (Internet Protocol version 4)&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Property&lt;/th&gt;
&lt;th&gt;Details&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Format&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Four numbers separated by dots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;192.168.1.10&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Range&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Each number ranges from 0 to 255&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total IPs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Around 4.3 billion addresses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Status&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Running out of available addresses&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;2. IPv6 (Internet Protocol version 6)&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Property&lt;/th&gt;
&lt;th&gt;Details&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Format&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Eight groups of hexadecimal numbers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;2601:646:a200:be90:35ba:a263:a5b5:fd42&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total IPs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;340 undecillion addresses (practically unlimited)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Status&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Designed to replace IPv4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;IPv6 exists because IPv4 ran out of addresses. IPv6 provides a massive address space that can support every device for many decades.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How devices get an IP Address&lt;/h3&gt;
&lt;p&gt;There are two main ways a device can obtain an IP address:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Static IP&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Manually assigned by an administrator&lt;/li&gt;
&lt;li&gt;Never changes&lt;/li&gt;
&lt;li&gt;Used by servers, cameras, routers, and services that must always be reachable at the same address&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;2. Dynamic IP&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Automatically assigned by DHCP (Dynamic Host Configuration Protocol)&lt;/li&gt;
&lt;li&gt;Used by most home devices&lt;/li&gt;
&lt;li&gt;Can change when you reconnect&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;
When your phone connects to Wi-Fi, the router&#39;s DHCP server gives it a temporary IP address. It may get a different IP the next time you reconnect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Public vs Private IP addresses&lt;/h3&gt;
&lt;p&gt;Not all IP addresses are the same. Some are visible on the Internet, others are hidden inside local networks.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Visibility&lt;/th&gt;
&lt;th&gt;Assigned By&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Used For&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Public IP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Visible on Internet&lt;/td&gt;
&lt;td&gt;Internet Service Provider (ISP)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;13.228.29.42&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your router, servers, websites&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Private IP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Only inside local network&lt;/td&gt;
&lt;td&gt;Router (via DHCP)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;192.168.1.10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your laptop, phone, smart TV&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Reserved private IP ranges:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;10.0.0.0&lt;/code&gt; to &lt;code&gt;10.255.255.255&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;172.16.0.0&lt;/code&gt; to &lt;code&gt;172.31.255.255&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How data travels using IP: High Level Flow&lt;/h3&gt;
&lt;p&gt;You request a website.&lt;/p&gt;
&lt;p&gt;Your device sends the request to your router.&lt;/p&gt;
&lt;p&gt;Router uses your public IP to communicate with the internet.&lt;/p&gt;
&lt;p&gt;Packets travel through multiple routers.&lt;/p&gt;
&lt;p&gt;Destination server receives your packet because it matches the server IP.&lt;/p&gt;
&lt;p&gt;The server sends response packets back to your public IP.&lt;/p&gt;
&lt;p&gt;Your router forwards the response to your private IP inside your network.&lt;/p&gt;
&lt;p&gt;Every packet contains the source IP and destination IP.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What Is CIDR and why it matters&lt;/h3&gt;
&lt;p&gt;CIDR stands for Classless Inter Domain Routing.
It defines how many IP addresses belong to a network.&lt;/p&gt;
&lt;p&gt;Example:
192.168.1.0/24&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This means:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Network portion:&lt;/strong&gt; 24 bits&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Host portion:&lt;/strong&gt; 8 bits&lt;/p&gt;
&lt;p&gt;There are 256 addresses in this network&lt;/p&gt;
&lt;p&gt;CIDR is important for &lt;strong&gt;subnetting&lt;/strong&gt; and &lt;strong&gt;routing&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Subnetting: organizing a Network&lt;/h3&gt;
&lt;p&gt;Subnetting divides a large network into smaller groups.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Better security&lt;/li&gt;
&lt;li&gt;Reduced congestion&lt;/li&gt;
&lt;li&gt;Organized grouping of devices&lt;/li&gt;
&lt;li&gt;Efficient use of IPs&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example.
192.168.1.0/24 can be split into two smaller networks.&lt;/p&gt;
&lt;p&gt;192.168.1.0/25&lt;/p&gt;
&lt;p&gt;192.168.1.128/25&lt;/p&gt;
&lt;p&gt;Each subnet has 128 addresses.&lt;/p&gt;
&lt;p&gt;You do not need to calculate manually now. You only need to understand the idea that subnetting groups devices so they stay organized and manageable.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;IP vs MAC Address&lt;/h3&gt;
&lt;p&gt;IP address identifies a device on a network.
MAC address identifies a device on the network interface card.&lt;/p&gt;
&lt;p&gt;IP is logical and can change.
MAC is physical and fixed in hardware.&lt;/p&gt;
&lt;p&gt;Together, they make routing and delivery possible.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Routers Use IP&lt;/h3&gt;
&lt;p&gt;Routers read the destination IP in each packet.
They forward the packet to the next best router until it reaches the final device.
This process is called routing.&lt;/p&gt;
&lt;p&gt;Routing uses the network portion of the IP to decide which direction to send packets.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;NAT: How many devices share one Public IP&lt;/h3&gt;
&lt;p&gt;At home, many devices share a single public IP using a technique called NAT.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Your router has one public IP from ISP.&lt;/p&gt;
&lt;p&gt;Your laptop, phone, TV get private IPs.&lt;/p&gt;
&lt;p&gt;NAT maps private IPs to the single public IP.
This is why the whole house can use the internet at the same time.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;IPv4 vs IPv6: why both exist&lt;/h3&gt;
&lt;p&gt;IPv4 is almost exhausted.
IPv6 fixes the shortage with a huge address space and better efficiency.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Key differences:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;IPv6 is faster to route in many cases.&lt;/p&gt;
&lt;p&gt;IPv6 has built in security features.&lt;/p&gt;
&lt;p&gt;IPv6 supports auto configuration without DHCP.&lt;/p&gt;
&lt;p&gt;Both will coexist for a long time.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Real World Examples&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Example 1. Your home network&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Router public IP: 104.18.210.55&lt;/p&gt;
&lt;p&gt;Laptop private IP: 192.168.1.20&lt;/p&gt;
&lt;p&gt;Phone private IP: 192.168.1.12&lt;/p&gt;
&lt;p&gt;TV private IP: 192.168.1.52&lt;/p&gt;
&lt;p&gt;All use NAT through router.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example 2. Website server&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Public IP: 172.66.43.102&lt;/p&gt;
&lt;p&gt;Used so anyone on internet can reach it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example 3. DNS resolving&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You type google.com.&lt;/p&gt;
&lt;p&gt;DNS converts that name to an IP.&lt;/p&gt;
&lt;p&gt;Browser uses that IP to connect to Google servers.&lt;/p&gt;
&lt;p&gt;Names are for humans. IPs are for computers.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;IP addresses are the foundation of the internet. They identify devices, guide packets, organize networks, allow routing, and let billions of devices communicate every second.&lt;/p&gt;
&lt;p&gt;You now understand the basics of IPv4 and IPv6, public and private IPs, subnetting, NAT, and how routers use IP to move data.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>What is Networking | Connecting Multiple Devices</title>
    <link href="https://karthikkadambi.com/notes/networking/" />
    <updated>2025-11-08T12:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/networking/</id>
    <content type="html">&lt;p&gt;Now that you understand &lt;a href=&quot;https://karthikkadambi.com/notes/what-is-communication/&quot;&gt;communication&lt;/a&gt; and &lt;a href=&quot;https://karthikkadambi.com/notes/data-communication/&quot;&gt;data communication&lt;/a&gt;, the next step is learning how multiple devices connect together. That is where networking begins.&lt;/p&gt;
&lt;p&gt;Networking is the system that allows computers, phones, routers, and servers to communicate in an organized and scalable way. It decides how data should travel, how devices are identified, and how information reaches the right destination.&lt;/p&gt;
&lt;p&gt;This article explains networking at a beginner-friendly level without going too deep.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is a Network?&lt;/h3&gt;
&lt;p&gt;A network is a group of two or more devices connected together so they can share data and resources.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Your home Wi-Fi:&lt;/strong&gt; Phones, laptops, TV, and router talking to each other.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Office network:&lt;/strong&gt; Multiple computers connected through switches and routers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Internet:&lt;/strong&gt; Billions of devices connected globally.&lt;/p&gt;
&lt;p&gt;A network turns simple point-to-point communication into structured communication among many devices.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Why Networks exist&lt;/h3&gt;
&lt;p&gt;Without networks, each pair of devices would need a dedicated link. This is not scalable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; If five devices needed to talk to each other directly, they would require ten separate links.&lt;/p&gt;
&lt;p&gt;Networks solve this problem by having devices connect to a central system that forwards data intelligently. This reduces complexity and allows thousands of devices to communicate through fewer connections.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Networking brings:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Easy sharing of data&lt;/li&gt;
&lt;li&gt;Shared access to printers and storage&lt;/li&gt;
&lt;li&gt;Internet connectivity&lt;/li&gt;
&lt;li&gt;Faster communication between systems&lt;/li&gt;
&lt;li&gt;Resource pooling and efficiency&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Switching methods in Networking&lt;/h3&gt;
&lt;p&gt;Switching determines how data travels inside a network. There are three main switching techniques used historically.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Message Switching&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Used in old telegraph networks.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Complete message is sent to a station.&lt;/li&gt;
&lt;li&gt;Station stores the message and forwards it to the next station.&lt;/li&gt;
&lt;li&gt;Slow, since the whole message must arrive before forwarding.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;2. Circuit Switching&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Used in telephone networks.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A dedicated path is created between sender and receiver.&lt;/li&gt;
&lt;li&gt;The path stays open until communication ends.&lt;/li&gt;
&lt;li&gt;Great for voice calls, but inefficient for data.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;3. Packet Switching&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Used in modern computer networks and the Internet.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Data is broken into small pieces called packets.&lt;/li&gt;
&lt;li&gt;Each packet travels independently.&lt;/li&gt;
&lt;li&gt;If one path is busy, packets take an alternate route.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Packet switching is the foundation of the Internet because it is efficient, fast, and fault-tolerant.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Types of Networks by size&lt;/h3&gt;
&lt;p&gt;Networks can be classified based on geographic coverage.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Coverage&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LAN (Local Area Network)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Small area (home, office)&lt;/td&gt;
&lt;td&gt;Fast, low cost, controlled by one organization&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MAN (Metropolitan Area Network)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;City or campus&lt;/td&gt;
&lt;td&gt;Used by service providers and large campuses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;WAN (Wide Area Network)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Large region, country, continent&lt;/td&gt;
&lt;td&gt;Internet Service Providers operate WANs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;The Internet&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Global&lt;/td&gt;
&lt;td&gt;Network of networks, no single owner&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Network Topologies&lt;/h3&gt;
&lt;p&gt;Topology explains how devices are physically or logically arranged in a network.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Topology&lt;/th&gt;
&lt;th&gt;Structure&lt;/th&gt;
&lt;th&gt;Pros/Cons&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bus&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;All devices share a single cable&lt;/td&gt;
&lt;td&gt;Simple but outdated, single point of failure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Star&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;All devices connect to a central switch&lt;/td&gt;
&lt;td&gt;Common in homes/offices, easy to troubleshoot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ring&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Each device connected to two others (circle)&lt;/td&gt;
&lt;td&gt;Redundant, but break in ring disrupts network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mesh&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Every device connected to every other device&lt;/td&gt;
&lt;td&gt;Highly reliable, expensive and complex&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Hybrid&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Combination of two or more topologies&lt;/td&gt;
&lt;td&gt;Used in large, complex networks&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Common Networking Devices&lt;/h3&gt;
&lt;p&gt;Understanding these devices helps you understand how networks are built.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hub:&lt;/strong&gt;
A basic device that sends incoming data to all ports. Inefficient and rare today.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Switch:&lt;/strong&gt;
Intelligent device that sends data only to the target device. Core of modern LANs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Router:&lt;/strong&gt;
Connects different networks together. Your home router connects your LAN to the Internet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Modem:&lt;/strong&gt;
Converts digital signals to a format suitable for telephone or cable lines (and vice versa).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Access Point:&lt;/strong&gt;
Provides wireless connectivity. Used in Wi-Fi networks.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Firewall:&lt;/strong&gt;
Security device that monitors and controls network traffic based on rules.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What Are Protocols?&lt;/h3&gt;
&lt;p&gt;A protocol is a set of rules that defines how data is transmitted and received.&lt;/p&gt;
&lt;p&gt;Without protocols, devices from different manufacturers could not communicate.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;HTTP/HTTPS:&lt;/strong&gt; Web browsing&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TCP:&lt;/strong&gt; Reliable data transfer&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UDP:&lt;/strong&gt; Fast, connectionless transfer (used in video streaming, gaming)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;IP:&lt;/strong&gt; Addressing and routing&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DNS:&lt;/strong&gt; Converting domain names into IP addresses&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FTP:&lt;/strong&gt; File transfer&lt;/p&gt;
&lt;p&gt;Protocols ensure standardization and interoperability across the entire Internet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Introduction to the OSI Model&lt;/h3&gt;
&lt;p&gt;The OSI (Open Systems Interconnection) model is a conceptual framework that explains how data moves from one device to another through seven layers.&lt;/p&gt;
&lt;p&gt;You do not need deep detail at this stage. This is just an overview.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Function&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;7. Application&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Used by applications like browsers and email&lt;/td&gt;
&lt;td&gt;HTTP, FTP, DNS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;6. Presentation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Translates data formats; handles encryption&lt;/td&gt;
&lt;td&gt;SSL/TLS, JPEG, MPEG&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;5. Session&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Manages sessions and connections&lt;/td&gt;
&lt;td&gt;NetBIOS, RPC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;4. Transport&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Ensures reliable or fast delivery&lt;/td&gt;
&lt;td&gt;TCP, UDP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;3. Network&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Handles routing between networks&lt;/td&gt;
&lt;td&gt;IP, ICMP, routers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;2. Data Link&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Moves frames within a single network&lt;/td&gt;
&lt;td&gt;Ethernet, MAC addresses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1. Physical&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Carries bits as electrical, optical, or radio signals&lt;/td&gt;
&lt;td&gt;Cables, Wi-Fi, hubs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The OSI model helps us understand networks step by step and troubleshoot problems by isolating which layer is failing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Real-World Example: Your Home Network&lt;/h3&gt;
&lt;p&gt;Here is how networking works in a simple home environment:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Your laptop connects to your Wi-Fi access point.&lt;/li&gt;
&lt;li&gt;The access point sends data to your router.&lt;/li&gt;
&lt;li&gt;The router checks the destination IP address.&lt;/li&gt;
&lt;li&gt;Router forwards data to your ISP&#39;s network.&lt;/li&gt;
&lt;li&gt;Internet routers guide your packets to the destination server.&lt;/li&gt;
&lt;li&gt;The server responds and packets travel back through the same structure.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Your laptop never connects directly to a website. It uses a chain of networking devices that forward your packets correctly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Networking is the foundation of modern communication. It explains how devices connect, how data is transferred, how traffic is managed, and how the Internet functions at scale.&lt;/p&gt;
&lt;p&gt;You have now learned:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Why networks exist and how they solve scalability problems&lt;/li&gt;
&lt;li&gt;Different switching methods (packet switching powers the Internet)&lt;/li&gt;
&lt;li&gt;Network types (LAN, WAN, Internet)&lt;/li&gt;
&lt;li&gt;Common topologies and devices&lt;/li&gt;
&lt;li&gt;The role of protocols in standardization&lt;/li&gt;
&lt;li&gt;A high-level view of the OSI model&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Understanding networking prepares you to dive deeper into topics like IP addressing, routing, TCP/IP, and how the Internet actually works.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Data Communication | How Computers Exchange Information</title>
    <link href="https://karthikkadambi.com/notes/data-communication/" />
    <updated>2025-11-05T20:25:00Z</updated>
    <id>https://karthikkadambi.com/notes/data-communication/</id>
    <content type="html">&lt;p&gt;Before computers can form networks and before the Internet can exist, the most important question is: how does data travel from one device to another. That process is called data communication.&lt;/p&gt;
&lt;p&gt;Data communication is the exchange of digital information between two devices using a transmission medium such as wire, fiber, or wireless radio signals.&lt;/p&gt;
&lt;p&gt;If you want to understand general communication theory first, read &lt;a href=&quot;https://karthikkadambi.com/notes/what-is-communication/&quot;&gt;What is Communication&lt;/a&gt;. This article focuses specifically on how computers exchange digital data.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What is Data Communication&lt;/h3&gt;
&lt;p&gt;Data communication is the process where two devices send and receive data using signals. In data communication, both devices agree on the rules of communication called protocols.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Components of Data Communication&lt;/h3&gt;
&lt;p&gt;For communication to work successfully, there are five essential components.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sender:&lt;/strong&gt;
The device that initiates the message. Example: your laptop.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Receiver:&lt;/strong&gt;
The device that receives the message. Example: your router or a server.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Message:&lt;/strong&gt;
The data being transferred. Example: a web request or image.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Medium:&lt;/strong&gt;
The physical path the data uses. Example: Ethernet cable, fiber, Wi Fi radio waves.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Protocol:&lt;/strong&gt;
The agreed rules that define how the communication happens. Without protocols, both ends would talk different languages. Example: TCP, HTTP.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Data Representation: Bits and Bytes&lt;/h3&gt;
&lt;p&gt;All digital information, no matter how large or complex, eventually becomes bits.&lt;/p&gt;
&lt;p&gt;A bit is the smallest unit of data. It can be 0 or 1. A byte is 8 bits.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Data communication is simply moving bits over a medium.&lt;/strong&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Digital Encoding: Turning Bits into Signals&lt;/h3&gt;
&lt;p&gt;Computers store bits, but wires and airwaves carry signals.&lt;/p&gt;
&lt;p&gt;Encoding converts bits into electrical, optical, or radio signals so they can travel.&lt;/p&gt;
&lt;p&gt;Encoding ensures the receiver understands what 0 and 1 look like on that medium.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Data Transmission Methods: Serial vs Parallel&lt;/h3&gt;
&lt;p&gt;How are bits physically moved in a medium.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Parallel transmission:&lt;/strong&gt; Multiple bits sent at the same time. Used inside computer motherboards.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Serial transmission:&lt;/strong&gt; Bits travel one after another, in sequence. Used in Ethernet, USB, Wi Fi, fiber.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Even though parallel seems faster, serial is more reliable and has less noise. That is why modern networking is serial.&lt;/strong&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;How Data Flows: Direction of Data Transfer&lt;/h3&gt;
&lt;p&gt;There are three basic modes:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Direction&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Simplex&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;One way only.&lt;/td&gt;
&lt;td&gt;Display monitor.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Half Duplex&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Both ways, but not at the same time.&lt;/td&gt;
&lt;td&gt;Walkie talkies.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Full Duplex&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Both ways simultaneously.&lt;/td&gt;
&lt;td&gt;Internet communication, phone calls.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The internet works on full duplex. Data can be sent and received at the same time.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Quality of Data Transmission&lt;/h3&gt;
&lt;p&gt;Data quality is measured by four important concepts.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concept&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bandwidth&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Maximum amount of data per second.&lt;/td&gt;
&lt;td&gt;100 Mbps internet plan.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Time delay for data to reach destination.&lt;/td&gt;
&lt;td&gt;Lag in video calls.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Throughput&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Actual speed you get.&lt;/td&gt;
&lt;td&gt;You may get 70 Mbps on a 100 Mbps plan.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Jitter&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Variation in delay.&lt;/td&gt;
&lt;td&gt;Voice breaking on calls.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Bandwidth is size of the pipe. Latency is how fast water flows.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Errors and Error Detection&lt;/h3&gt;
&lt;p&gt;Noise, interference, and weak signals can corrupt bits. So techniques exist to detect errors.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Parity bit:&lt;/strong&gt; Adds a bit that indicates if the number of 1s is odd or even.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Checksum:&lt;/strong&gt; Adds up the data and sends that value along with the packet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CRC (Cyclic Redundancy Check):&lt;/strong&gt; More advanced math used in Ethernet frames.&lt;/p&gt;
&lt;p&gt;If the receiver detects a mismatch, it requests the sender to retransmit.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Flow Control: Preventing Data Overload&lt;/h3&gt;
&lt;p&gt;What if a fast device sends data to a slower device. The slower one may get overwhelmed. Flow control solves that.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Stop and Wait:&lt;/strong&gt;
Sender sends one chunk of data and waits for acknowledgment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sliding Window:&lt;/strong&gt;
Sender can send multiple chunks before receiving acknowledgment. Used in TCP. Sliding window increases performance and reduces waiting time.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Putting It All Together&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;When you open a website:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Your laptop converts bits (the web request) into Wi Fi radio waves using encoding and modulation.&lt;/p&gt;
&lt;p&gt;Router receives the signal and converts it back into bits.&lt;/p&gt;
&lt;p&gt;Router sends bits to your ISP through fiber or cable.&lt;/p&gt;
&lt;p&gt;The web server receives the request, processes it, and sends back the webpage data.&lt;/p&gt;
&lt;p&gt;Each step: bits → encode into signals → travel through medium → decode back to bits.&lt;/p&gt;
&lt;p&gt;That is data communication.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Data communication is the foundation of networking. It explains how digital bits turn into signals, how they travel, how errors are detected, and how communication stays reliable.&lt;/p&gt;
&lt;p&gt;Understanding data communication prepares you to learn about computer networks, where multiple devices communicate simultaneously using protocols and addressing.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>What is Communication | The Foundation of Networking</title>
    <link href="https://karthikkadambi.com/notes/what-is-communication/" />
    <updated>2025-11-02T12:00:00Z</updated>
    <id>https://karthikkadambi.com/notes/what-is-communication/</id>
    <content type="html">&lt;p&gt;Communication is the process of transferring information from one point to another.&lt;/p&gt;
&lt;p&gt;In human communication, we share information through speech, writing or gestures, all using sound waves, text or body language as our medium.&lt;/p&gt;
&lt;p&gt;In technological communication, devices exchange information through electrical (wires), optical (fiber) or radio (wireless) signals, translating digital data into physical energy that can travel across distances.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Basic Communication Model&lt;/h3&gt;
&lt;p&gt;Every communication system has these elements.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sender (Transmitter)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Creates and sends the message.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Receiver&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Accepts and interprets it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Message&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The actual information to be sent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Medium (Channel)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The path through which the message travels (wire, air, fiber).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Encoder/Decoder&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Converts message into signals and back.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Noise&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Anything that distorts the signal.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Feedback&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Response from receiver (optional, in two-way systems).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Signals&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;How it works&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Used in&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Analog signal&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Continuous wave (varies smoothly)&lt;/td&gt;
&lt;td&gt;Continuous wave carries info (amplitude, frequency, phase)&lt;/td&gt;
&lt;td&gt;Sound, radio&lt;/td&gt;
&lt;td&gt;Old telephones, radio, TV&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Digital signal&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Discrete 0s and 1s (on/off)&lt;/td&gt;
&lt;td&gt;Discrete bits; noise-resistant; easily encrypted and stored&lt;/td&gt;
&lt;td&gt;Computer data&lt;/td&gt;
&lt;td&gt;Computers, Internet, VoIP&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Analog signals vary continuously (like a sine wave), while digital signals have discrete states (on/off, high/low).&lt;/p&gt;
&lt;p&gt;The move from analog → digital made modern networking possible because digital data can be compressed, corrected, and routed easily.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Encoding &amp; Modulation&lt;/h3&gt;
&lt;p&gt;To send information over a medium, it must be converted into a signal:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Encoding&lt;/strong&gt; transforms data into a signal format suitable for the medium (e.g., voltage levels, light pulses).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Modulation&lt;/strong&gt; changes properties of a carrier wave to represent data (AM/FM for analog, QAM for digital).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When your phone sends data over Wi-Fi or 5G, it modulates radio waves to carry information.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Communication Mediums&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Medium&lt;/th&gt;
&lt;th&gt;Used in&lt;/th&gt;
&lt;th&gt;Characteristic&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Copper cables (electrical)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Ethernet, telephone&lt;/td&gt;
&lt;td&gt;Cheap, short range&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Optical fiber (light)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Long-distance Internet backbone&lt;/td&gt;
&lt;td&gt;Very high speed, low loss&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Wireless (radio, microwave)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Wi-Fi, 4G/5G, satellite&lt;/td&gt;
&lt;td&gt;Mobility, but interference-prone&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Types of Communication&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Simplex&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;One way only&lt;/td&gt;
&lt;td&gt;Monitor displaying output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Half-duplex&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Two way, but one at a time&lt;/td&gt;
&lt;td&gt;Walkie-talkie&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Full-duplex&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Two way simultaneously&lt;/td&gt;
&lt;td&gt;Phone call, Internet data&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Synchronization&lt;/h3&gt;
&lt;p&gt;How do sender and receiver stay &amp;quot;in rhythm&amp;quot;?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Synchronous communication:&lt;/strong&gt; continuous stream with a shared clock (Ethernet, video calls).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Asynchronous communication:&lt;/strong&gt; independent timing, with start/stop markers (serial ports, email).&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;Key Performance Terms&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Term&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bandwidth&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Maximum amount of data that can be transmitted per second (e.g., 100 Mbps).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Time delay for data to reach destination.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Throughput&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Actual data rate achieved.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Noise&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unwanted interference that distorts signals.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Error rate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Percentage of bits that get corrupted.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Every medium and technology balances these trade-offs.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;What&#39;s Next?&lt;/h3&gt;
&lt;p&gt;This article covered the fundamentals of communication that apply to all systems—human, technological, analog, and digital.&lt;/p&gt;
&lt;p&gt;To understand how computers specifically exchange digital information, read about &lt;a href=&quot;https://karthikkadambi.com/notes/data-communication/&quot;&gt;Data Communication&lt;/a&gt;, which focuses on bits, bytes, protocols, and computer networking.&lt;/p&gt;
&lt;blockquote&gt;
    Communication is the universal concept.&lt;br&gt;
    Data communication is its application to computers.
&lt;/blockquote&gt;</content>
  </entry>
  <entry>
    <title>Car Leasing Explained | Understand and Calculate your Quote</title>
    <link href="https://karthikkadambi.com/posts/car-lease-explained/" />
    <updated>2025-10-26T23:49:00Z</updated>
    <id>https://karthikkadambi.com/posts/car-lease-explained/</id>
    <content type="html">&lt;p&gt;So you have decided to lease your car in U.S. and have an established credit score. Let&#39;s explore in detail what a car lease is, understand its core concepts and learn how to get the best deal.&lt;/p&gt;
&lt;p&gt;If you want to learn more about the difference between buying and leasing, please check this article: &lt;a href=&quot;https://karthikkadambi.com/posts/car-buy-vs-lease/&quot;&gt;Buy vs Lease&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; The core concept of leasing is the same everywhere. But the rules, taxes, popularity and financial structure vary a lot depending on the country or region. You can still use this guide and correlate how the same concepts apply in your region with a few practical differences.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;🚘 What Is a Car Lease?&lt;/h3&gt;
&lt;p&gt;A car lease is essentially a long-term rental agreement, usually 2 to 4 years, where you pay to use a car rather than own it.
You&#39;re paying for the car&#39;s depreciation (the value it loses while you drive it), plus finance charges and fees.&lt;/p&gt;
&lt;p&gt;At the end of the lease, you return the car, unless you choose to buy it out at its residual value.&lt;/p&gt;
&lt;p&gt;Leasing a car often feels confusing, especially when you see a quote full of terms like money factor, residual value, and cap cost. But once you understand what each number means, you can tell if you&#39;re getting a good deal or overpaying for your lease.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;🚗 MSRP: The Lease Starting Point&lt;/h3&gt;
&lt;p&gt;MSRP is the sticker price, the manufacturer&#39;s suggested price for the car before any negotiation, dealer discounts, or incentives.&lt;/p&gt;
&lt;p&gt;It&#39;s mainly used for two key purposes in a lease:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Residual value calculation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The &lt;strong&gt;residual value&lt;/strong&gt; (what the car will be worth at lease end) is &lt;em&gt;always a percentage of MSRP&lt;/em&gt; not the negotiated price. &lt;br&gt;→ Example: If residual = 63% and MSRP = $32,665 → Residual = $20,579.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Benchmark for negotiation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dealers start from MSRP but you negotiate down to the &lt;strong&gt;selling price&lt;/strong&gt; (also called “agreed-upon value”). That lower number becomes the &lt;strong&gt;basis for your cap cost&lt;/strong&gt;, which determines your payment.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;💰 Selling Price&lt;/h3&gt;
&lt;p&gt;The selling price in a car lease is the negotiated price of the car, just like when you buy one outright.
It&#39;s what you and the dealer agree the car is worth before any taxes, fees or reductions are applied.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;💵 Gross Capitalized Cost&lt;/h3&gt;
&lt;p&gt;The Gross Capitalized Cost is the starting total amount the lease company uses before subtracting any down payment or credits.&lt;/p&gt;
&lt;p&gt;Think of it as &amp;quot;Everything you&#39;re choosing to finance through the lease.&amp;quot;&lt;/p&gt;
&lt;p&gt;It includes the negotiated vehicle price (selling price) plus any extra costs you decide to roll into the lease.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;↘️ Cap Cost Reductions&lt;/h3&gt;
&lt;p&gt;Once you subtract any Cap Cost Reductions (down payment, trade-in, or rebates), you get your Adjusted/Net Cap Cost, the number actually used in your lease math.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;🧾 Net Capitalized Cost&lt;/h3&gt;
&lt;p&gt;Net capitalized cost, also called adjusted cap cost, is the final amount you&#39;re financing in your lease after all additions and reductions.&lt;/p&gt;
&lt;p&gt;It&#39;s basically the loan amount for a lease.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;📋 Net Capitalized Cost Summary&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1️⃣&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;MSRP – Dealer Discount = Selling Price&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;You negotiate this part.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2️⃣&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Selling Price + Rolled-In Fees/Add-Ons = Gross Cap Cost&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;This is what you&#39;re choosing to finance.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3️⃣&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Gross Cap Cost – Cap Cost Reduction = Net Cap Cost&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Final amount used for lease calculations.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Lets talk about fees:&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;1️⃣ DMV / License Fees&lt;/h3&gt;
&lt;p&gt;These are government registration fees for your car and not dealer markups. They cover:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Vehicle registration&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Title transfer&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;License plates&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Local county fees (sometimes emissions or tire fees in California).&lt;/p&gt;
&lt;p&gt;Typical cost (CA example): $400–$700 depending on the car’s value.&lt;/p&gt;
&lt;p&gt;When paid:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Usually part of your drive-off amount (paid upfront).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;But you can choose to roll it into the lease (then you pay interest on it).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;2️⃣ Total Upfront Fees&lt;/h3&gt;
&lt;p&gt;All the miscellaneous small charges that are paid at signing (not financed).&lt;/p&gt;
&lt;p&gt;Examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Doc fee (dealer paperwork charge)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Tire/battery fee&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Electronic filing fee&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Tax on upfront items&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;3️⃣ Capped Fees (Capitalized Fees)&lt;/h3&gt;
&lt;p&gt;Fees that you choose to “capitalize” (roll in), meaning they get added to your gross cap cost and financed over the term.&lt;/p&gt;
&lt;p&gt;Common examples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Bank acquisition fee (often $650–$995)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Dealer service fees&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Any optional protection add-ons (if rolled in)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;💸 Fees Summary&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Fee type&lt;/th&gt;
&lt;th&gt;What it covers&lt;/th&gt;
&lt;th&gt;Typical amount&lt;/th&gt;
&lt;th&gt;How it’s paid&lt;/th&gt;
&lt;th&gt;Impact on lease&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DMV / License Fees&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Vehicle registration, title transfer, plates&lt;/td&gt;
&lt;td&gt;$400–$700&lt;/td&gt;
&lt;td&gt;Usually upfront&lt;/td&gt;
&lt;td&gt;No interest if paid upfront&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total Upfront Fees&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Doc, tire, and small admin fees&lt;/td&gt;
&lt;td&gt;$100–$300&lt;/td&gt;
&lt;td&gt;Paid upfront&lt;/td&gt;
&lt;td&gt;No effect on cap cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Capped Fees (Capitalized Fees)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bank acquisition fee or rolled-in dealer costs&lt;/td&gt;
&lt;td&gt;$650–$995&lt;/td&gt;
&lt;td&gt;Rolled into the lease&lt;/td&gt;
&lt;td&gt;Raises monthly payment (financed)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Disposition Fee – charged when you return the car, typically $300–$500.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;🤨 Caveats&lt;/h3&gt;
&lt;p&gt;There are 3 ways in which car lease tax is calculated:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Based on total lease payment -  NY, NJ, MN, OH, or GA - Usually uprfont at signing.&lt;/li&gt;
&lt;li&gt;Gross Capitalized cost - VA, MD, or TX - Usually upfront at signing.&lt;/li&gt;
&lt;li&gt;Monthly payment - Most states - Spread over the least.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; If you are viewing this article as part of RSS feed reader, then you wouldnt be able to see the calculator below as it may cause issues to feed reader. Visit &lt;a href=&quot;https://karthikkadambi.com/posts/car-lease-explained/&quot;&gt;Car lease explained&lt;/a&gt; to access the calculator.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Buy vs Lease a Car | Guide for New U.S. Movers</title>
    <link href="https://karthikkadambi.com/posts/car-buy-vs-lease/" />
    <updated>2025-10-25T23:43:00Z</updated>
    <id>https://karthikkadambi.com/posts/car-buy-vs-lease/</id>
    <content type="html">&lt;p&gt;Maybe you come from a country where leasing doesn&#39;t exist. You either buy a car or use public transport.
But in the U.S., leasing is a huge part of how people drive new cars without buying them outright.&lt;/p&gt;
&lt;p&gt;You&#39;ve arrived in the U.S., settled into your new apartment, started your job and are learning how everything works.
Then it hits you: getting anywhere without a car is really hard.&lt;/p&gt;
&lt;p&gt;Public transport isn&#39;t always reliable, Uber gets expensive and even grocery runs can be a hassle.
So now you&#39;re faced with one of your first big American decisions:&lt;/p&gt;
&lt;blockquote&gt;Do you buy or lease your first car?&lt;/blockquote&gt;
&lt;p&gt;Already decided that you want to lease? Check this out: &lt;a href=&quot;https://karthikkadambi.com/posts/car-lease-explained/&quot;&gt;Leasing explained&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Let&#39;s walk through what both mean and what&#39;s smarter when you&#39;re just getting started in the U.S.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; The core concept of buying and leasing is the same everywhere. But the rules, taxes, popularity and financial structure vary a lot depending on the country or region. You can still use this guide and correlate how the same concepts apply in your region just with a few practical differences.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;💰 Option 1: Buying a Car&lt;/h3&gt;
&lt;p&gt;Buying means you&#39;re purchasing the car, either with cash or through a loan. Once the loan is paid off, the car is fully yours.&lt;/p&gt;
&lt;p&gt;✅ Pros&lt;/p&gt;
&lt;p&gt;You own it, keep it, sell it, or trade it later.&lt;/p&gt;
&lt;p&gt;Unlimited miles, drive as much as you want.&lt;/p&gt;
&lt;p&gt;Good for long-term stays, pays off if you plan to stay several years.&lt;/p&gt;
&lt;p&gt;Builds U.S. credit, loan payments count toward your credit score.&lt;/p&gt;
&lt;p&gt;❌ Cons&lt;/p&gt;
&lt;p&gt;Higher monthly payments, you’re paying the full car price plus interest.&lt;/p&gt;
&lt;p&gt;Bigger upfront cost, down payment, sales tax, registration, etc.&lt;/p&gt;
&lt;p&gt;Maintenance after warranty, older cars can bring surprise costs.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;🚘 Option 2: Leasing a Car&lt;/h3&gt;
&lt;p&gt;Leasing means you&#39;re renting a new car long-term, usually for 2 to 4 years.
You&#39;re paying for the car&#39;s depreciation, not the full price.&lt;/p&gt;
&lt;p&gt;✅ Pros&lt;/p&gt;
&lt;p&gt;Lower monthly payments. You only pay for the value the car loses.&lt;/p&gt;
&lt;p&gt;New car, less hassle. Always under warranty and usually maintenance-free.&lt;/p&gt;
&lt;p&gt;Smaller upfront cost. Often just the first month and registration.&lt;/p&gt;
&lt;p&gt;Easier budget planning. Fixed monthly payments.&lt;/p&gt;
&lt;p&gt;❌ Cons&lt;/p&gt;
&lt;p&gt;No ownership. You return it at the end (or buy it for its &amp;quot;residual value&amp;quot;).&lt;/p&gt;
&lt;p&gt;Mileage limits. Most leases allow 10k–12k miles per year; extra costs for more.&lt;/p&gt;
&lt;p&gt;Fees for damage. Scratches, dents, or worn tires can add up.&lt;/p&gt;
&lt;p&gt;Credit requirement. Newcomers may need a co-signer or higher deposit.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;🧭 Which Makes Sense for New Immigrants?&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Better option&lt;/th&gt;
&lt;th&gt;Why?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;You just arrived and have little or no U.S. credit&lt;/td&gt;
&lt;td&gt;Lease (if approved) or buy used&lt;/td&gt;
&lt;td&gt;Leasing may need a co-signer, but used cars are easier to finance.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You’re not sure how long you’ll stay&lt;/td&gt;
&lt;td&gt;Lease&lt;/td&gt;
&lt;td&gt;Return it when you leave, no resale stress.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You plan to settle long-term (4+ years)&lt;/td&gt;
&lt;td&gt;Buy&lt;/td&gt;
&lt;td&gt;Build equity and credit history.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You drive a lot (15k+ miles/year)&lt;/td&gt;
&lt;td&gt;Buy&lt;/td&gt;
&lt;td&gt;Avoid mileage penalties.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You like driving new cars every few years&lt;/td&gt;
&lt;td&gt;Lease&lt;/td&gt;
&lt;td&gt;Always under warranty with newer features.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;💡 Example Scenario&lt;/h3&gt;
&lt;p&gt;Let&#39;s say you&#39;re looking at a car with a price of $30,000.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Leasing it for 3 years:&lt;/strong&gt; about $450/month, and you simply return it when done.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Buying it:&lt;/strong&gt; around $600/month, but after 3 years, it&#39;s worth about $20,000 which you can sell or trade in.&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;⚖️ Comparison Matrix&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concept&lt;/th&gt;
&lt;th&gt;Buying&lt;/th&gt;
&lt;th&gt;Leasing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ownership&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;You own the car once you finish paying off your loan.&lt;/td&gt;
&lt;td&gt;You never own the car, you’re paying to use it for a set time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Payments Cover&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Full cost of the car + interest.&lt;/td&gt;
&lt;td&gt;Only depreciation + interest + fees.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Upfront Cost&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Often higher (down payment, taxes).&lt;/td&gt;
&lt;td&gt;Usually lower (first month, registration, small cap reduction).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;End of Term&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;You keep or sell the car.&lt;/td&gt;
&lt;td&gt;You return it or buy it at a preset price (residual value).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mileage Limits&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Unlimited.&lt;/td&gt;
&lt;td&gt;Limited (usually 10k–15k miles per year). Extra miles cost more.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Customization&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free to modify.&lt;/td&gt;
&lt;td&gt;Usually not allowed, must return in near-original condition.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Maintenance&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;All on you.&lt;/td&gt;
&lt;td&gt;Sometimes included in the lease package.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Best For&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Long-term use, equity building.&lt;/td&gt;
&lt;td&gt;Short-term use, new cars, lower payments.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3 class=&quot;header-branding&quot;&gt;🛣️ The Bottom Line&lt;/h3&gt;
&lt;p&gt;For most immigrants, your first car isn&#39;t just transportation, it&#39;s independence.
Leasing gives flexibility and lower payments. Buying builds ownership and financial foundation.&lt;/p&gt;
&lt;p&gt;Once your credit and plans are stable, go ahead and buy your dream ride.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Hello World | Fresh Start in Tech, Travel, Finance, Life</title>
    <link href="https://karthikkadambi.com/posts/hello-world/" />
    <updated>2025-10-22T11:43:00Z</updated>
    <id>https://karthikkadambi.com/posts/hello-world/</id>
    <content type="html">&lt;p&gt;Every great journey online begins with a simple Hello.&lt;/p&gt;
&lt;p&gt;I&#39;m Karthik Kadambi, and this post marks the start of my personal website, a place where I&#39;ll share insights, experiments and reflections across the things I care about most: technology, travel, finance and life optimization.&lt;/p&gt;
&lt;p&gt;For years, I&#39;ve been working at the intersection of tech, design and systems thinking, building open source projects, exploring ideas and learning how technology quietly shapes our daily lives. But beyond the screen, I&#39;ve also been fascinated by how travel expands perspective, how financial literacy empowers freedom and how small life hacks can make a big difference in how we live and work.&lt;/p&gt;
&lt;p&gt;This site is my attempt to connect all those threads, part digital journal, part idea lab.&lt;/p&gt;
&lt;p&gt;Expect to find:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;🧠 Tech deep dives on tools, workflows and problem-solving.&lt;/li&gt;
&lt;li&gt;🌍 Travel stories and lessons from the road.&lt;/li&gt;
&lt;li&gt;💰 Personal finance insights for modern, intentional living.&lt;/li&gt;
&lt;li&gt;⚙️ Productivity tips and life hacks to simplify complexity.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I like to think of this as a long-term experiment: learning in public, exploring openly and hopefully adding value to anyone who stops by.&lt;/p&gt;
&lt;p&gt;As I start this new journey, I want to take a moment to thank my wife, Neha Pradeep, for being my biggest supporter and creative inspiration. Her passion for food and storytelling brings so much color to our lives.&lt;/p&gt;
&lt;div class=&quot;external-link-box&quot;&gt;
  &lt;strong&gt;Check It Out:&lt;/strong&gt; Experience Neha&#39;s culinary recipes and experiments on her YouTube channel &lt;a href=&quot;https://www.youtube.com/@Veggiedelicacies&quot; rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot;&gt;Veggie Delicacies&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;So, consider this post my first footprint:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;✅ Site&#39;s live.&lt;/li&gt;
&lt;li&gt;✅ Words are flowing.&lt;/li&gt;
&lt;li&gt;✅ The adventure begins.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If any of this resonates, you can follow along or reach out through the links in the footer.&lt;/p&gt;
&lt;p&gt;Thanks for reading, and hello again, world.&lt;/p&gt;
&lt;p&gt;Karthik Kadambi&lt;/p&gt;
</content>
  </entry>
</feed>