<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Akshat Chandekar Btech on Medium]]></title>
        <description><![CDATA[Stories by Akshat Chandekar Btech on Medium]]></description>
        <link>https://medium.com/@akshat.chandekar.btech2024?source=rss-f28b1f529076------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*sZnHLKoePqamN3Fs</url>
            <title>Stories by Akshat Chandekar Btech on Medium</title>
            <link>https://medium.com/@akshat.chandekar.btech2024?source=rss-f28b1f529076------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:55:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akshat.chandekar.btech2024/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Sales Analysis Dashboard in Power BI: From Raw Data to Business Insights]]></title>
            <link>https://medium.com/@akshat.chandekar.btech2024/building-a-sales-analysis-dashboard-in-power-bi-from-raw-data-to-business-insights-733ffb8907b6?source=rss-f28b1f529076------2</link>
            <guid isPermaLink="false">https://medium.com/p/733ffb8907b6</guid>
            <dc:creator><![CDATA[Akshat Chandekar Btech]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 15:14:07 GMT</pubDate>
            <atom:updated>2026-10-24T15:14:07.374Z</atom:updated>
            <content:encoded><![CDATA[<p>Raw sales data doesn’t tell you much until you shape it. For this project I took the AdventureWorks dataset and built a single-page Sales Analysis Dashboard in Microsoft Power BI Desktop. The work had three parts: cleaning and reshaping the data in Power Query, writing DAX measures for the key business numbers, and designing a dashboard that a manager can read at a glance.</p><h3>The Dataset</h3><p>AdventureWorks is a sample dataset for a fictional company that sells bicycles and outdoor gear. It has a sales fact table plus lookup tables for products, customers, territories and dates. That makes it good practice, because it is set up like a real star schema.</p><h3>Step 1: Grouping Customers in Power Query</h3><p>Sales data is recorded one transaction per row, but business questions are usually about customers. In Power Query I used <strong>Transform → Group By</strong> on the customer key to produce three summaries:</p><ul><li><strong>Distinct customer count:</strong> counts each customer only once</li><li><strong>Average sales per customer:</strong> the average of the sales amount</li><li><strong>Order count per customer:</strong> a count of rows on the order number</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzRS9UzRdqORxV37gGSckg.png" /></figure><p><em>Caption: Grouping transactions by CustomerKey in Power Query</em></p><h3>Step 2: Pivoting and Unpivoting</h3><p>To practise reshaping data, I built a small student marks table in a wide format: Name, Math and Science, with one column per subject.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MnEkCKyZvxLjLD4z9-_7MA.png" /></figure><p><em>Caption: Original wide-format table</em></p><p>I selected the Math and Science columns and clicked <strong>Transform → Unpivot Columns</strong>. This turned the subject columns into rows, giving a tall table with Name, Subject and Value. Tall data like this is what most charts and DAX formulas work best with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-5-3AxczbX9WWzCHwUQpg.png" /></figure><p><em>Caption: After unpivoting, each subject is a row</em></p><p>Then I selected Subject and used <strong>Pivot Column</strong>, with Value as the values column. The table went back to its original layout, which shows that the two operations reverse each other.</p><h3>Step 3: Appending and Merging Queries</h3><p>These two operations are often confused:</p><ul><li><strong>Append</strong> stacks rows from tables with the same structure. I combined <em>JanuarySales</em> and <em>FebruarySales</em> into one table using <strong>Append Queries as New</strong>.</li><li><strong>Merge</strong> joins two tables side by side on a shared key, like a SQL join. I merged the sales table with a <em>ProductID</em> table using a <strong>Left Outer Join</strong>, which keeps every sales row and adds the matching product details.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j7N-k8Gv49yhn6cBhqDk3A.png" /></figure><p><em>Caption: January and February sales appended into one table</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BL3lUySp1VPQpmzhgnsQSQ.png" /></figure><p><em>Caption: Merging sales with the ProductID table using a Left Outer Join</em></p><p>After loading the data, I checked the relationships in <strong>Manage Relationships</strong>. Filters need to flow from the lookup tables (one side) to the sales table (many side) for the slicers to work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5NE4tXrbfg0gLWezW4JXDw.png" /></figure><p><em>Caption: Model relationships between the fact and lookup tables</em></p><h3>Step 4: DAX Measures</h3><p>Every visual on the dashboard is built on a small set of measures:</p><pre>Total Sales =<br>SUMX(&#39;Sales Data&#39;,<br>     RELATED(&#39;AdventureWorks Product Lookup&#39;[ProductPrice]) * &#39;Sales Data&#39;[OrderQuantity])</pre><pre>Total Cost =<br>SUMX(&#39;Sales Data&#39;,<br>     RELATED(&#39;AdventureWorks Product Lookup&#39;[ProductCost]) * &#39;Sales Data&#39;[OrderQuantity])</pre><pre>Total Profit = [Total Sales] - [Total Cost]</pre><pre>Total Orders = DISTINCTCOUNT(&#39;Sales Data&#39;[OrderNumber])</pre><pre>Total Customers = DISTINCTCOUNT(&#39;Sales Data&#39;[CustomerKey])</pre><pre>Total Quantity = SUM(&#39;Sales Data&#39;[OrderQuantity])</pre><p>The sales table only stores quantities, and prices live in the product lookup table. So SUMX goes row by row, uses RELATED to fetch the price, multiplies it by the quantity, and then adds up the results. Profit is defined as Sales minus Cost, so the three numbers always stay consistent with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KbkQiRZZe_g39-zVMElt3Q.png" /></figure><p><em>Caption: DAX measures for the headline KPIs</em></p><h3>Step 5: The First Dashboard</h3><p>My first version placed the KPI cards down the left side. The rest of the page had:</p><ul><li>sales by product</li><li>sales by territory</li><li>monthly sales</li><li>a top-customers table</li><li>Region and Category slicers</li></ul><p>It worked, but reviewing it showed several problems:</p><ul><li>The territory donut used <strong>TerritoryKey numbers</strong> instead of region names, so readers couldn’t tell which slice was which.</li><li>The <strong>ProductKey column chart</strong> had hundreds of thin bars and was hard to read.</li><li>The <strong>top-customers table showed the same values in every row</strong>. That points to a relationship or field-binding problem.</li><li>The KPI layout didn’t give the page a clear visual order.</li></ul><h3>Step 6: Redesigning the Dashboard</h3><p>For the final version I rebuilt the layout and swapped several visuals for ones that answer each business question more clearly:</p><ul><li><strong>KPI cards across the top:</strong> Total Sales, Profit, Orders, Customers, Quantity and Cost are now the first thing the reader sees. Each has a coloured accent bar, and Cost is in coral so it stands out.</li><li><strong>Sales Trend by Month:</strong> a line chart with an <strong>average reference line</strong> and the <strong>peak month labelled</strong>, so the reader can see straight away which months are above or below normal.</li><li><strong>Share of Sales by Category:</strong> a donut chart with direct labels. Four categories is few enough for a donut to work.</li><li><strong>Sales by Region:</strong> horizontal bars with the <strong>top region highlighted</strong> and the others muted.</li><li><strong>Top 5 Products:</strong> horizontal bars, so long product names stay readable, with an <strong>average line</strong> to show which products sell above average.</li><li><strong>Sales by Day of Week:</strong> compares weekday and weekend sales. A <em>Day Type</em> column was added in Power Query from OrderDate.</li><li><strong>Sales Breakdown by Month: Cost + Profit:</strong> a stacked column chart where each bar adds up to total sales. The margin labels show profitability without needing a confusing second axis.</li><li><strong>Top 5 Customers:</strong> a table with <strong>data bars</strong> and a dark header row.</li><li><strong>New theme (Slate Teal):</strong> a slate header with a teal accent strip, rounded white tiles on a soft grey background, and a Day Type slicer added to the filter panel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYWhQ0L26paX1bNt1DF8bg.png" /></figure><p><em>Caption: Final redesigned Sales Analysis Dashboard</em></p><h3>Key Insights</h3><ul><li><strong>Total sales of 24.91M</strong> produced <strong>10.46M in profit</strong>, from about <strong>25K orders</strong> and <strong>17K customers</strong>.</li><li><strong>Bikes</strong> contribute about <strong>44%</strong> of revenue, making them the company’s core product line.</li><li>The <strong>United States</strong> is the strongest territory at <strong>9.33M</strong>, followed by <strong>Australia</strong> at <strong>6.07M</strong>.</li><li>Sales <strong>peak in May–June</strong> and rise again in <strong>December</strong>, which suggests seasonal demand.</li><li><strong>Road-250</strong> models lead the top-products list.</li></ul><h3>What I Learned</h3><p>Most of the real work happens in <strong>Power Query</strong>. When the tables are clean and the relationships are correct, the DAX stays simple. Good dashboard design comes down to picking the right chart for each question and removing anything that repeats the same information. Comparing the first and final versions showed me how much clarity comes from those choices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=733ffb8907b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Interactive Sports Analytics Dashboard with 115,000 Batting Records]]></title>
            <link>https://medium.com/@akshat.chandekar.btech2024/building-an-interactive-sports-analytics-dashboard-with-115-000-batting-records-fdb0b5998555?source=rss-f28b1f529076------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdb0b5998555</guid>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Akshat Chandekar Btech]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 08:07:57 GMT</pubDate>
            <atom:updated>2026-10-22T08:07:57.759Z</atom:updated>
            <content:encoded><![CDATA[<h3>How R and Power BI turned 150 years of baseball data into a dashboard that answers questions in seconds, plus a regression that predicts RBI</h3><p><em>Tags to add on Medium: Data Visualization, Power BI, R Programming, Sports Analytics, Data Science</em></p><p>Baseball keeps better records than almost any other sport. The Lahman Baseball Database has every batting season since 1871, which makes it a perfect playground for a dashboard. The catch is that, in raw form, it is a table of about 115,000 rows, one for each player, season and team. Nobody can read that and tell you what a normal season looks like.</p><p>For my Data Visualization Lab at Symbiosis Institute of Technology, Pune, I set myself one question: <strong>can a hitter’s runs batted in (RBI) be predicted from his hits, home runs and walks?</strong> To answer it, I connected R to Power BI and let each tool do what it is best at. Power BI handles the clicking: slicers, cross-filtering and drill-down. R handles the statistics: summaries, distributions, correlations and a regression model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zzBEV4B0uCORge1LOQAxHg.png" /></figure><p><em>The finished dashboard: 6 KPI cards, 3 slicers, 4 Power BI visuals and 4 R visuals.</em></p><h3>The data</h3><p>I used the Lahman Baseball Database (1871 to 2024), created by Sean Lahman and maintained by SABR, the Society for American Baseball Research. It is free and public at sabr.org/lahman-database. Two tables did most of the work: <strong>Batting</strong> (about 115,000 rows) and <strong>People</strong> (player names), linked on playerID.</p><h3>Cleaning it once, in one place</h3><p>Instead of patching each chart, I cleaned the data once in a single calculated table, PlayerSeason, so every visual reads from the same trusted source:</p><ul><li>Blank numbers became 0.</li><li>Duplicates were removed, with a unique key of player + year + stint so each real season stays its own row.</li><li>Only seasons with <strong>at least 100 at-bats</strong> were kept, so a pitcher with three at-bats cannot distort the averages.</li><li>I added a full player name, a Decade column for drill-down, and full league names.</li></ul><p>The result: about 42,000 qualified player-seasons covering 7,407 players. The heart of the cleaning step looks like this:</p><pre>PlayerSeason =<br>DISTINCT(<br>  SELECTCOLUMNS(<br>    FILTER(Batting, COALESCE(Batting[AB], 0) &gt;= 100),<br>    &quot;RowKey&quot;, Batting[playerID] &amp; &quot;|&quot; &amp; Batting[yearID] &amp; &quot;|&quot; &amp; Batting[stint],<br>    &quot;Player&quot;, TRIM(RELATED(People[nameFirst]) &amp; &quot; &quot; &amp; RELATED(People[nameLast])),<br>    &quot;Decade&quot;, INT(Batting[yearID] / 10) * 10,<br>    &quot;HR&quot;, COALESCE(Batting[HR], 0),<br>    ... ))</pre><h3>Six numbers that react to every click</h3><p>Six KPI cards sit across the top, each one a DAX measure. Pick one player in a slicer and every card switches to that player’s own totals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IqUiMYyMqdnoBelhYjKP4A.png" /></figure><p>KPI Value Total Players 7,407 Total HR 318,188 Total RBI 1,770,427 Batting Avg 0.268 Avg HR per Player-Season 7.6</p><p>(Total Hits comes to roughly 3.8 million.)</p><h3>What the Power BI visuals show</h3><p><strong>Home runs by decade</strong> climb from the 1920s and peak in the 2000s and 2010s at roughly 45 to 50 thousand each. The 2020s bar is shorter only because the data stops in 2024. Click a bar and it drills down to individual years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*TR6r4zjOoba3YOxBwSKQyw.png" /></figure><p><strong>Batting average</strong> swings within a band of roughly 0.24 to 0.32 and dips in the late 1960s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*APQg13RJgiqqdvUH0VMyHQ.png" /></figure><p><strong>League share:</strong> the American League (50.01%) and National League (49.05%) hit almost exactly half of all home runs each. The older leagues add less than 1%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*SQzcL6J7k4BCqvNfcoWANQ.png" /></figure><p><strong>Career leaders</strong> by home runs in qualified seasons: Barry Bonds (757), Hank Aaron (755), Babe Ruth (704), Albert Pujols (698) and Alex Rodriguez (696).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*DWYkwzHI2vP2VbF2agqSiw.png" /></figure><h3>What R adds: the statistics behind the picture</h3><p>Power BI passes the currently selected rows to each R visual as a data frame, so the statistics re-run on every filter change.</p><p><strong>Descriptive statistics.</strong> The typical qualified season has about 340 at-bats and 91 hits. The interesting number is home runs: a mean of 7.6 but a median of only 4. A few big sluggers pull the average up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*vnFBZh4MTXeLZW8p1fWmnA.png" /></figure><p><em>The same statistics drawn as ranges: grey line = min to max, blue bar = mean ± 1 SD, white tick = median, diamond = mean.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_1_WfnH_09zrI1lm8bnlQ.png" /></figure><p><strong>The home-run distribution</strong> shows it clearly. Most seasons have fewer than 10 home runs, and very few go past 40.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*OTjcu_alh0fvsZbHRIUxtA.png" /></figure><p><strong>The correlation heatmap</strong> shows which numbers travel together. Hits and at-bats are almost locked together (0.97). Home runs and RBI move strongly together (0.78). Home runs and strikeouts correlate at 0.72, so power hitters swing big and miss more. And home runs barely relate to stolen bases (0.02).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*bOQ3UQ_dm4fadrlEH7fHJg.png" /></figure><h3>The model: can we predict RBI?</h3><p>The advanced analytics step is a multiple linear regression in R, one line of code:</p><pre>fit &lt;- lm(RBI ~ H + HR + BB, data = dataset)</pre><p>Measure Value Meaning R-squared 0.866 Hits, home runs and walks explain about 87% of the differences in RBI RMSE 10.4 A typical prediction misses the real RBI by about 10</p><p>Each dot below is one season. The closer the dots sit to the red line, the better the prediction, and they hug it closely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*qNhwVj21cyRGvby9KqPC2w.png" /></figure><h3>What it means</h3><ul><li><strong>Power and speed are different skills.</strong> With a 0.02 correlation, a team has to recruit for each separately.</li><li><strong>Power has a price.</strong> Home runs and strikeouts go together (0.72), so teams should budget for strikeouts instead of punishing them.</li><li><strong>Stars are scarce.</strong> The median hitter hits 4 home runs against a mean of 7.6, so one elite slugger shifts a team’s total a lot.</li><li><strong>RBI can be forecast,</strong> so scouts can flag players who consistently beat or miss the estimate.</li><li><strong>Compare players with their own era,</strong> because home-run output changed so much by decade.</li></ul><h3>Honest limitations</h3><p>The model is scored on the same data it was fitted on, so 0.866 describes fit, not proven prediction on unseen seasons. Hits, walks and home runs all grow with playing time, so part of the high R-squared is simply volume. RBI also depends on how many teammates are on base, which the model cannot see. Next, I want to add Decade as a predictor, try a random forest, and test both on a hold-out set.</p><h3>Final thoughts</h3><p>R handled the statistics. Power BI handled the clicking, filtering and drilling. Together they turned a table nobody would read into answers you can find in seconds.</p><p><em>Data: Lahman Baseball Database by Sean Lahman, published by SABR (sabr.org/lahman-database). Built with Power BI Desktop, R and ggplot2 at Symbiosis Institute of Technology, Pune.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdb0b5998555" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Data Link Layer Explained: Error Detection, CRC, and Multiple Access Protocols]]></title>
            <link>https://medium.com/@akshat.chandekar.btech2024/the-data-link-layer-explained-error-detection-crc-and-multiple-access-protocols-5f61e515894a?source=rss-f28b1f529076------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f61e515894a</guid>
            <dc:creator><![CDATA[Akshat Chandekar Btech]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 05:00:30 GMT</pubDate>
            <atom:updated>2026-10-21T05:05:14.193Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Every time we browse a website, stream a video, or send a message, data travels through communication networks. But how does a network ensure that data can travel across a physical connection in an organized way? And what happens when interference changes bits during transmission?</p><p>An important part of the answer is the <strong>Data Link Layer</strong>, the second layer of the OSI model.</p><p>The Data Link Layer provides communication between devices connected through the same network link. It organizes data into frames, manages link-layer addressing, helps detect transmission errors, and coordinates access to shared communication media.</p><p>This article explores the Data Link Layer’s main functions, error-detection techniques, multiple-access protocols, and the role of DOCSIS in cable broadband networks.</p><h3>1. Understanding the Data Link Layer</h3><p>The Data Link Layer receives packets from the Network Layer and encapsulates them into frames. These frames are then passed to the Physical Layer for transmission as signals.</p><p>At the receiving end, the process works in reverse: signals are interpreted, frames are reconstructed, and their contents are passed to the appropriate upper layer.</p><p>The Data Link Layer has two important sublayers:</p><ul><li><strong>Logical Link Control (LLC):</strong> Associated with protocol functions, flow control, and error control.</li><li><strong>Media Access Control (MAC):</strong> Responsible for controlling access to the transmission medium.</li></ul><p>Its major functions include framing, link-layer addressing, synchronization, error control, flow control, and medium access.</p><h3>Real-World Example</h3><p>The Data Link Layer plays an important role in everyday networking. For example, when a laptop connects to a Wi-Fi network, the Data Link Layer helps organize data into frames and manage communication over the wireless link. Ethernet also uses frames to transfer data between devices on a local network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEl5WvEsMLfOXaJKObBDOg.png" /><figcaption>Visual 1: Data encapsulation across the Network, Data Link, and Physical Layers.</figcaption></figure><h3>Why is framing important?</h3><p>Imagine sending several messages over the same communication link. Without a way to identify where one unit of data ends and another begins, the receiver could struggle to interpret the incoming stream correctly.</p><p>Framing organizes transmitted data into identifiable units. Depending on the technology, a frame may contain addressing information, control information, a payload, and error-detection information.</p><h3>2. Understanding Transmission Errors</h3><p>Data transmission is not always perfect. Noise, interference, or other physical effects can alter transmitted bits.</p><p>Three common error types are:</p><p><strong>Single-bit error:</strong> Only one bit changes from 0 to 1 or from 1 to 0.</p><p><strong>Multiple-bit error:</strong> More than one bit is corrupted within the transmitted data unit.</p><p><strong>Burst error:</strong> A sequence of bits is affected. The burst length is measured from the first corrupted bit to the last corrupted bit, even if some bits between them remain correct.</p><p>Error detection techniques add redundant information to transmitted data so the receiver can check whether corruption may have occurred.</p><h3>3. Error-Detection Techniques</h3><h3>Simple parity check</h3><p>A parity check adds one extra bit to a data unit.</p><p>In <strong>even parity</strong>, the parity bit is selected so the total number of 1s in the data and parity bit is even.</p><p>For example:</p><ul><li>Original data: 1011</li><li>Number of 1s: 3</li><li>Even-parity bit: 1</li><li>Transmitted data: 10111</li></ul><p>The receiver checks whether the total number of 1s is even. If a single bit flips, the parity check fails.</p><p>However, parity has an important limitation: it cannot detect every possible error. If an even number of bits changes, the parity condition may still appear correct.</p><h3>Example of Error Detection Using Even Parity</h3><p>Suppose the sender transmits 10111 using even parity. The data contains four 1s, so the parity condition is satisfied.</p><p>If one bit changes during transmission and the receiver gets 10011, the received sequence contains three 1s. Since the number of 1s is odd, the receiver detects a parity error.</p><p>This example shows how parity checking can detect a single-bit error, although it cannot detect every possible combination of errors.</p><h3>Two-dimensional parity</h3><p>Two-dimensional parity extends the parity-check approach by arranging bits into rows and columns.</p><p>Parity bits are calculated for both dimensions. If exactly one data bit changes, the corresponding row and column checks fail, allowing the receiver to identify the bit at their intersection.</p><p>This provides better error detection than a single parity bit and can correct a single-bit error under the standard arrangement. However, it cannot reliably correct arbitrary multiple-bit errors.</p><h3>Checksum</h3><p>A checksum divides data into fixed-size words and adds them using one’s-complement arithmetic.</p><p>The sender complements the sum to generate the checksum and transmits it alongside the data. The receiver repeats the calculation to check whether the received information is consistent.</p><p>Checksums are useful for detecting many transmission errors, but different corrupted messages can sometimes produce the same checksum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k2PXMMhRW16FdFbMy8BMIg.png" /><figcaption>Visual 5: Comparison of Error-Detection Techniques Used in the Data Link Layer.</figcaption></figure><h3>Cyclic Redundancy Check (CRC)</h3><p>The <strong>Cyclic Redundancy Check (CRC)</strong> is an error-detection technique based on modulo-2 binary division.</p><p>The sender follows these steps:</p><ol><li>Select a generator bit pattern.</li><li>Append zeros to the data word. The number of zeros equals the degree of the generator polynomial.</li><li>Divide the extended data word by the generator using XOR-based binary division.</li><li>Append the resulting remainder to the original dataword.</li><li>Transmit the resulting codeword.</li></ol><p>The receiver divides the received codeword by the same generator. A non-zero remainder indicates an error. A zero remainder means that no error was detected, although it does not guarantee that the data is completely free from corruption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*XecftXacKo6LtVPaGURAIA.jpeg" /></figure><p>CRC is especially useful because appropriately selected generators can detect many common error patterns, including many burst errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRGfTaAVkB8fPmd2MvnZ9w.png" /><figcaption>Comparison of Error-Detection Techniques Used in the Data Link Layer.</figcaption></figure><h3>4. Multiple-Access Protocols</h3><p>When several devices share a communication channel, they need rules governing when they can transmit. Otherwise, simultaneous transmissions may collide.</p><p>Multiple-access protocols coordinate how devices use shared media. The broad categories covered in your lecture slides are:</p><ul><li>Random access</li><li>Controlled access</li><li>Channelization</li></ul><p>The following techniques are particularly important.</p><h3>Pure ALOHA</h3><p>In Pure ALOHA, a station transmits whenever it has data to send.</p><p>It waits for an acknowledgement. If the acknowledgement does not arrive within the expected time, the station waits for a random back-off interval and retransmits.</p><p>Because transmissions can begin at any time, collisions are possible.</p><h3>Slotted ALOHA</h3><p>Slotted ALOHA divides time into slots. Stations may begin transmitting only at the start of a slot.</p><p>This restriction reduces the time during which transmissions can overlap, improving efficiency compared with Pure ALOHA under comparable conditions.</p><h3>Carrier Sense Multiple Access (CSMA)</h3><p>CSMA requires a station to listen to the communication channel before transmitting.</p><p>If the channel appears idle, the station may transmit. If the channel is busy, it waits according to the protocol’s rules.</p><p>Collisions can still happen because of propagation delay. Two stations may each sense an apparently idle channel before the other’s signal reaches them.</p><h3>CSMA/CD and CSMA/CA</h3><p><strong>CSMA/CD — Collision Detection</strong></p><p>In classic shared, half-duplex Ethernet, a station monitors the medium while transmitting. If a collision is detected, it stops transmitting and follows the collision-recovery procedure.</p><p><strong>CSMA/CA — Collision Avoidance</strong></p><p>CSMA/CA attempts to reduce the probability of collisions before they occur. It is associated with wireless LAN communication, where collision detection is generally not practical in the same way as it is in classic shared Ethernet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*XOOUEAkHnZVTDp6KXTCbuQ.jpeg" /><figcaption>Caption: Visual 3: Comparison of multiple-access protocols used to coordinate communication over shared channels</figcaption></figure><h3>5. DOCSIS: Broadband Communication over Cable</h3><p>DOCSIS stands for <strong>Data Over Cable Service Interface Specification</strong>.</p><p>It enables broadband data communication over cable networks, using infrastructure historically associated with cable television.</p><p>Your lecture slides describe the evolution of DOCSIS through several versions: The capabilities and performance of a DOCSIS network depend on the specification, implementation, and network configuration.</p><p>DOCSIS demonstrates how communication technologies evolve to meet increasing demands for bandwidth and more efficient network access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFat216djUbldrgPPVv0Cg.png" /><figcaption>Visual 4: Evolution of DOCSIS Technology for Cable Broadband Communication (DOCSIS 1.0 to DOCSIS 4.0).</figcaption></figure><h3>6. Why the Data Link Layer Matters</h3><p>The Data Link Layer is essential because it organizes data for transmission over individual network links.</p><p>Framing provides structure. Addressing supports delivery across a local link. Error-detection techniques help identify corrupted data. Flow control helps coordinate devices with different processing or transmission capabilities. Multiple-access protocols allow devices to share a communication medium.</p><p>Together, these functions help networks communicate more effectively.</p><p>Although higher layers handle additional responsibilities, the Data Link Layer provides important mechanisms for transmitting data between directly connected devices.</p><h3>Conclusion</h3><p>The Data Link Layer is a fundamental part of computer networking. Its responsibilities include framing, link-layer addressing, error detection, flow control, and access to shared communication media.</p><p>Parity checks, checksums, and CRC demonstrate different ways to detect transmission errors. ALOHA and CSMA illustrate how protocols coordinate access to shared channels. DOCSIS shows how communication standards have developed to support modern broadband requirements.</p><p>Understanding these concepts provides a foundation for studying Ethernet, wireless networking, and the broader architecture of computer networks.</p><h3>References</h3><ol><li>IEEE 802.3 Ethernet Working Group: <a href="https://www.ieee802.org/3/">https://www.ieee802.org/3/</a></li><li>IEEE 802.11 Wireless LAN Working Group: <a href="https://www.ieee802.org/11/">https://www.ieee802.org/11/</a></li><li>CableLabs DOCSIS Technology: <a href="https://www.cablelabs.com/technologies/docsis">https://www.cablelabs.com/technologies/docsis</a></li><li>Primary course material: Unit 5 lecture slides, <em>The Link Layer</em>.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f61e515894a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>