<?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 Apurva Satkar Btech on Medium]]></title>
        <description><![CDATA[Stories by Apurva Satkar Btech on Medium]]></description>
        <link>https://medium.com/@apurva.satkar.btech2024?source=rss-964ad8f35426------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yXPGelY5czJm7Ar2</url>
            <title>Stories by Apurva Satkar Btech on Medium</title>
            <link>https://medium.com/@apurva.satkar.btech2024?source=rss-964ad8f35426------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:17:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@apurva.satkar.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[The Link Layer: Understanding the Technology Behind Network Communication]]></title>
            <link>https://medium.com/@apurva.satkar.btech2024/the-link-layer-understanding-the-technology-behind-network-communication-bc9d7bbb8af2?source=rss-964ad8f35426------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc9d7bbb8af2</guid>
            <category><![CDATA[mpls]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[ethernet]]></category>
            <category><![CDATA[docsis]]></category>
            <category><![CDATA[cable-internet]]></category>
            <dc:creator><![CDATA[Apurva Satkar Btech]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 09:15:18 GMT</pubDate>
            <atom:updated>2026-10-20T09:15:18.418Z</atom:updated>
            <content:encoded><![CDATA[<p>Computer network CA 3 component</p><p>Apurva Satkar PRN 25070126512</p><p>When a web page loads, the interesting parts of the story usually belong to the layers above: HTTP requests, TCP connections, IP routing across continents. Yet none of those layers ever touches a wire or a radio wave. Every packet that crosses the Internet is handed, hop by hop, to a technology that actually moves bits between two directly connected machines. That technology is the <strong>link layer</strong>, and it is far more varied than the uniform picture of “the network” suggests. In a single trip from a laptop to a server, one packet may be carried by Wi-Fi, by a cable-TV coaxial plant, by switched Ethernet, and by an MPLS path inside an ISP, and each of these solves the same problem in a different way.</p><p>This article walks through that problem and its solutions. It starts with what the link layer is responsible for, then covers error detection, the two great families of medium access control (random access and taking turns), the cable-broadband standard DOCSIS, link virtualization, and MPLS. It ends by tracing one connection end to end to see where each technology sits. Throughout, I try to explain not just what each mechanism is but why it exists and what it costs. Examples that use made-up numbers are labelled as illustrations; there are no measurements here, only arithmetic you can check by hand.</p><h3>1. Link-layer basics</h3><p>1.1 Where it sits and what it does</p><p>In the five-layer Internet model used by most textbooks, the link layer sits between the network layer and the physical layer. In the seven-layer OSI model it corresponds to layer 2, the <em>*data link layer*</em>, with the physical layer below it [1][2][3]. The network layer (IP) decides <em>*which path*</em> a datagram should take across many links; the link layer is only responsible for moving that datagram across <strong>one</strong> link, from a node to its physically adjacent neighbour. A “link” here might be a point-to-point fiber, an Ethernet segment, a Wi-Fi cell, or a shared cable plant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MlSSe1oBMO9cjtvyipZiVQ.png" /><figcaption><strong>Figure 1 Position of the link layer.</strong></figcaption></figure><p>A useful way to read Figure 1 is by the <em>*name of the data unit*</em>. Applications produce messages, transport protocols cut them into segments, the network layer wraps segments into datagrams, and the link layer wraps datagrams into <strong>frames</strong>. The frame is the link layer’s unit of work, and almost every service it offers is defined in terms of it [1].</p><p>The services that a link-layer protocol may provide are:</p><p>- <strong>Framing.</strong> Marking where one frame begins and ends in a stream of bits, and adding header and trailer fields around the network-layer payload.</p><p>- <strong>Link-layer addressing.</strong> Identifying the sending and receiving interfaces <em>*on this link*</em> with MAC addresses.</p><p>- <strong>Medium access control (MAC).</strong> Deciding who may transmit when several nodes share one medium.</p><p>- <strong>Error detection</strong> (and sometimes correction). Noticing, and occasionally repairing, bits that were damaged in transit.</p><p>- <strong>Reliable delivery.</strong> Retransmitting lost frames. This is common on error-prone links such as Wi-Fi, but is usually left out on low-error wired links like Ethernet, where TCP deals with loss end to end [1].</p><p>- <strong>Flow control.</strong> Stopping a fast sender from overwhelming a slow receiver at the other end of the link.</p><p>Not every protocol offers every service. That is exactly why the layer is interesting: Ethernet, Wi-Fi and DOCSIS look different because they make different choices about these responsibilities.</p><p><strong>1.2 Frames, framing and encapsulation</strong></p><p>Before a receiver can check anything, it has to know where a frame starts and stops. Ethernet precedes each frame with a short preamble and start-of-frame delimiter that let the receiver synchronize its clock. Older protocols such as HDLC use a special flag pattern, `01111110`, to mark frame boundaries. To prevent that pattern from appearing accidentally inside the data, the sender uses <em>*bit stuffing*</em>: after any five consecutive 1s in the data it inserts an extra 0. The data `01111110` therefore goes out as `011111010`, and the receiver removes the inserted 0 [1][3].</p><p>Figure 2 shows the encapsulation step for Ethernet, which is the most familiar frame format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zV1sngaBPdZEL2yC6d9vxQ.png" /><figcaption><strong>Figure 2 Frame transmission.</strong></figcaption></figure><p>Three details in this figure matter more than they first appear.</p><p>First, the <strong>MAC addresses</strong> are 48-bit identifiers, written as six hexadecimal bytes, and they identify <em>*network interfaces on the same link*</em>, not machines on the Internet. Destination and source MAC addresses in a frame name the next hop and the current hop; when a router forwards the datagram onto the next link, it builds a new frame with new MAC addresses. The IP addresses inside the payload stay the same end to end (apart from address translation at a home gateway), while the MAC addresses are rewritten at every hop. To learn the MAC address that belongs to a next-hop IP address on the same link, hosts use ARP [1][20]. The first half of a MAC address is an organizationally unique identifier assigned by the IEEE, and the address `FF:FF:FF:FF:FF:FF` means “every interface on this link” [1].</p><p>Second, the <strong>type field</strong> tells the receiver which network-layer protocol is inside, so it knows where to deliver the payload. The value `0x0800` denotes IPv4.</p><p>Third, the <strong>frame check sequence (FCS)</strong> is the error-detecting code, and it sits in a <em>*trailer*</em> because the sender can only compute it after seeing every preceding bit. The next section explains how it works.</p><p><strong>1.3 Where the link layer lives</strong></p><p>For a wired Ethernet connection most of this functionality is implemented in the network adapter, partly in hardware and partly in firmware and driver software. Hardware implementation matters for speed: computing a 32-bit CRC over every frame of a multi-gigabit link is an easy job for dedicated circuits and an expensive one for general software [1].</p><p><strong>2. Error detection and correction</strong></p><p>Bits are damaged by noise, interference and signal attenuation, and the damage is not uniform: wireless links corrupt many more bits than a short fiber run. Link-layer protocols therefore add redundant bits, which the receiver uses to test whether the frame arrived intact. Three schemes show the range of trade-offs between cost and strength.</p><p><strong>2.1 Parity</strong></p><p>The simplest scheme appends one extra bit so that the total number of 1s is even (even parity) or odd. For the 7-bit block `1011001`, which has four 1s, the even-parity bit is `0`, giving `10110010`. If a single bit flips in transit, the count of 1s becomes odd and the receiver knows something is wrong.</p><p>The weakness is that parity only detects an <em>*odd*</em> number of flipped bits. Flip two bits of `10110010`, for example the second and third, and you get `11010010`, which still has four 1s and passes the check. Parity also gives no hint about <em>*which*</em> bit changed.</p><p>A two-dimensional extension fixes part of this. Arrange the data in a grid and add a parity bit to every row and every column. For the 4×4 block below (even parity everywhere):</p><p>If the bit at row 2, column 3 flips from 1 to 0, the parity of row 2 fails and so does the parity of column 3. Their intersection <em>*locates*</em> the damaged bit, and the receiver can flip it back [1]. This is the cleanest illustration of the difference between the two goals:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*g1F5Ba68VAO2VR6liSfC_w.png" /></figure><p><strong>Detection</strong> tells you that the received data is not what was sent. <strong>Correction</strong> uses enough extra redundancy to work out what <em>*was*</em> sent, without asking for it again.</p><p>More generally, a code whose codewords differ in at least <em>*d*</em> bit positions (the minimum Hamming distance) can detect up to <em>*d − 1*</em> bit errors and correct up to ⌊(<em>*d*</em> − 1)/2⌋ [12]. Correction is therefore more expensive: it needs a larger <em>*d*</em>. That is why links that are mostly reliable (Ethernet) detect and discard, while very noisy ones (radio, cable) add forward error correction at the physical layer and often retransmit too.</p><p><strong>2.2 The Internet checksum</strong></p><p>Checksums treat the data as a sequence of 16-bit words, add them using one’s-complement arithmetic (any carry out of the top bit is added back in at the bottom), and send the complement of the sum. RFC 1071 describes the method [10]. A worked example with two words:</p><p>1. `0x1234 + 0xF0F0 = 0x10324`</p><p>2. The carry wraps around: `0x0324 + 1 = 0x0325`</p><p>3. The checksum is the complement: `~0x0325 = 0xFCDA`</p><p>The receiver adds all words <em>*including*</em> the checksum: `0x1234 + 0xF0F0 + 0xFCDA` wraps to `0xFFFF`, which means no error was detected. A checksum is cheap to compute in software, which is why IP, TCP and UDP use it. But it is weaker than a CRC: it cannot notice two words swapping places, or two errors that cancel in the sum.</p><p><strong>2.3 Cyclic redundancy check (CRC)</strong></p><p>Link layers use CRCs because they are strong and cheap in hardware [11]. The idea is to treat the bit string <em>*D*</em> as a polynomial and divide it by an agreed <strong>generator</strong> <em>*G*</em> of <em>*r*</em> + 1 bits, using modulo-2 arithmetic, where addition and subtraction are both XOR. The sender appends <em>*r*</em> zero bits to <em>*D*</em> and divides; the remainder <em>*R*</em> (<em>*r*</em> bits) is placed in the trailer. The transmitted bit string is then exactly divisible by <em>*G*</em>, so the receiver divides the whole frame by <em>*G*</em>: a zero remainder means no error was detected.</p><p>In symbols, with <em>*D*</em> followed by <em>*r*</em> zeros written as <em>*D*</em>·2^<em>*r*</em>:</p><p><em>*R*</em> = remainder of (<em>*D*</em>·2^<em>*r*</em>) / <em>*G*</em>, <em>*T*</em> = <em>*D*</em>·2^<em>*r*</em> XOR <em>*R*</em>, and <em>*T*</em> mod <em>*G*</em> = 0.</p><p><strong>Worked example.</strong> Let <em>*D*</em> = `1101011011` and <em>*G*</em> = `10011` (the polynomial x⁴ + x + 1, so <em>*r*</em> = 4). Append four zeros: `11010110110000`. Each step below XORs <em>*G*</em> under the current leading 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*aqnAavtVOpxJS-yZfUK5cg.png" /></figure><p>The transmitted string is `1101011011` followed by `1110`. The receiver divides the 14-bit string by `10011` and gets remainder `0000`. Now suppose the fourth bit is flipped in transit and `11000110111110` arrives. Dividing it gives remainder `0111`, which is non-zero, so the frame is rejected. I checked both divisions by running them through a short script rather than trusting hand arithmetic, since a single slipped XOR changes the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYDOwlYSpjvhePdCP1CWwA.png" /><figcaption><strong>Figure 3 Error detection techniques.</strong></figcaption></figure><p>The strength of a CRC depends on the generator. A CRC with <em>*r*</em> check bits detects all burst errors of length up to <em>*r*</em>, and a random corrupted frame slips through with probability about 2^−<em>*r*</em>. Ethernet uses a 32-bit CRC with generator polynomial x³² + x²⁶ + x²³ + x²² + x¹⁶ + x¹² + x¹¹ + x¹⁰ + x⁸ + x⁷ + x⁵ + x⁴ + x² + x + 1 [7]. For <em>*r*</em> = 32, 2^−32 is about one in 4.3 billion.</p><p>There is one more point about why both a link-layer CRC and a transport-layer checksum exist. Link-layer protection covers only one hop. A bit can be flipped inside a router’s memory <em>*after*</em> the incoming CRC passed and <em>*before*</em> a new CRC is computed for the outgoing frame. The end-to-end checksum catches this. This is a small instance of the end-to-end argument in system design [24].</p><p><strong>3. Random access protocols</strong></p><p>Now the central link-layer problem: what if many nodes share one broadcast channel? If two transmit at the same time, their signals overlap at the receiver and both frames are lost; this is a <strong>collision</strong>. Medium access control protocols are rules to keep that from wasting the channel. <em>*Random access*</em> protocols let every node transmit whenever it has data, and define how to recover from collisions.</p><p><strong>3.1 ALOHA and slotted ALOHA</strong></p><p>ALOHA was developed at the University of Hawaii in the early 1970s to connect terminals over radio [4]. In <strong>pure ALOHA</strong> a node transmits immediately. If it does not receive an acknowledgment, it assumes a collision and retransmits after a random delay. The random delay is the key: if both nodes waited the same fixed time, they would collide again forever.</p><p>A frame is vulnerable to a collision for twice its duration (any node that starts within one frame time before or after it overlaps). With an offered load of <em>*G*</em> frames per frame time, the useful throughput is</p><p><em>*S*</em> = <em>*G*</em>·e^(−2<em>*G*</em>),</p><p>which peaks at <em>*G*</em> = 0.5 with <em>*S*</em> = 1/(2e) ≈ 0.184. At best, about 18% of the channel carries successful frames [5].</p><p><strong>Slotted ALOHA</strong> divides time into slots one frame long and lets nodes begin transmission only at slot boundaries. That halves the vulnerable period, so <em>*S*</em> = <em>*G*</em>·e^(−<em>*G*</em>), peaking at 1/e ≈ 0.368 [5]. For a small illustration, take <em>*N*</em> = 5 nodes, each transmitting in a slot with probability <em>*p*</em> = 1/5. A slot succeeds only if exactly one node transmits: 5 · (1/5) · (4/5)⁴ = 0.4096. As <em>*N*</em> grows, this approaches 1/e.</p><p><strong>3.2 CSMA: listen before talking</strong></p><p>ALOHA transmits without regard for what others are doing. <strong>Carrier sense multiple access (CSMA)</strong> adds a human rule of conversation: listen first, and don’t interrupt if someone else is already talking [22]. A node senses the channel and defers if it is busy. Collisions still occur, because of propagation delay: two nodes can both sense an idle channel in the short interval before the other’s signal reaches them. So listening reduces collisions but cannot remove them, and what the protocol does <em>*after*</em> a collision is what separates the two variants used in practice.</p><p><strong>3.3 CSMA/CD: Ethernet’s answer</strong></p><p>In <strong>CSMA with collision detection</strong>, a node keeps listening <em>*while it transmits*</em>. If it notices another signal, it stops immediately, sends a brief jam signal so everyone knows, and waits a random time before trying again. Aborting early saves the channel from being occupied by a frame that is already doomed [6].</p><p>How long to wait? Ethernet uses <strong>binary exponential backoff</strong>. After the <em>*n*</em>-th consecutive collision for the same frame, the node picks <em>*K*</em> uniformly from {0, 1, …, 2^min(<em>*n*</em>,10) − 1} and waits <em>*K*</em> × 512 bit times before sensing the channel again [1][7]. This adapts to load: with two colliding nodes, the chance they pick the same <em>*K*</em> is 1/2 after the first collision, 1/4 after the second, and 1/8 after the third. Under heavier contention the window keeps growing until the chosen delays spread out. At 10 Mb/s, 512 bit times is 51.2 µs, so after a third collision <em>*K*</em> is drawn from {0,…,7} and the average wait is 3.5 × 51.2 µs ≈ 179 µs. (This is arithmetic on the standard’s parameters, not a measurement.)</p><p>The scheme has a physical constraint. For a sender to learn about a collision, it must still be transmitting when the corrupted signal returns from the far end of the cable. That is the reason Ethernet has a minimum frame size of 64 bytes: 512 bits is long enough that the sender is still sending when the news of a collision arrives, over the maximum cable length the standard allows [1][6].</p><p><strong>3.4 CSMA/CA: Wi-Fi’s answer</strong></p><p>Wireless networks cannot simply copy this. There are two problems [1][8]:</p><p>1. <strong>A radio cannot hear while it transmits.</strong> Its own signal is vastly stronger than anything it could receive, so collision <em>*detection*</em> is impractical.</p><p>2. <strong>The hidden terminal problem.</strong> Two stations A and C may both be within range of an access point B but out of range of each other. Neither senses the other’s transmission, yet their frames collide at B. A collision is a fact about the <em>*receiver*</em>, which the sender cannot observe.</p><p>IEEE 802.11 therefore uses <strong>CSMA with collision avoidance</strong> (its basic mode is the distributed coordination function, DCF). A station that wants to send senses the channel; once it has been idle for a short interframe period, it picks a random backoff counter and counts it down one slot at a time, pausing whenever it detects activity. When the counter reaches zero it transmits. The receiver sends a link-layer <strong>acknowledgment</strong>, and a missing ACK is how the sender learns that a collision (or some other loss) happened, at which point the contention window is roughly doubled and the process repeats [8]. For stations that suffer from hidden terminals, 802.11 offers an optional <strong>RTS/CTS</strong> handshake: a short request-to-send is answered by a clear-to-send that neighbours of the <em>*receiver*</em> overhear and respect, reserving the channel for the data frame.</p><p>The random backoff is performed <em>*before*</em> transmitting because collisions cannot be detected afterwards; avoidance replaces detection. The cost is overhead: every frame pays for idle waiting and an ACK, even when nobody else is competing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_w_ulnHfrPyL8k9otyhvw.png" /><figcaption><strong>Figure 4 Random access protocols.</strong></figcaption></figure><p><strong>3.5 Why Ethernet and Wi-Fi differ</strong></p><p>Putting the pieces together, the two technologies differ because their media behave differently:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*CJxtHkp-C6X-PIJvVqvzRQ.png" /></figure><p>A final historical note matters for understanding modern Ethernet: today most Ethernet links are full-duplex connections between a host and a switch. Each link has exactly two ends and separate paths for each direction, so there is no shared medium and no collision. CSMA/CD remains in the standard but is rarely exercised [1][7]. The random-access problem has largely moved from wires to the air.</p><p><strong>4. Taking-turns protocols</strong></p><p>Random access is simple but wastes capacity on collisions or idle backoff, and it gives no guarantee about delay. The alternative is to remove contention by controlling <em>*who may transmit and when*</em>. Two classic designs are polling and token passing [1].</p><p><strong>Polling.</strong> One node is the <em>*master*</em>. It invites each other node in turn to transmit, usually by sending a poll message. A station that has data replies with a frame; a station that does not replies with nothing (or a short “nothing to send”), and the master moves on. Since only the polled station may speak, there are no collisions, and delays are predictable. The costs are the <em>*polling overhead*</em> (a poll is sent even to idle stations), the latency of waiting for one’s turn in the cycle, and the fact that the master is a single point of failure. Bluetooth is a familiar example of a master-driven scheme [1].</p><p><strong>Token passing.</strong> There is no master. A small special frame, the <em>*token*</em>, circulates among the nodes in a fixed order. A node may transmit only while it holds the token; when it has finished (or has nothing to send) it passes the token to its successor. Token ring (IEEE 802.5) and FDDI used this idea [1]. Token passing is decentralized and fair, and it performs well under heavy load. The problems are operational: if the token is lost or duplicated, or the station holding it fails, the ring needs a recovery procedure; and the token adds delay even when the network is idle, because a station has to wait for it to arrive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRlEMrpQT7iikqG3A4N-0g.png" /><figcaption><strong>Figure 5 Taking-turns protocols.</strong></figcaption></figure><p>A rough illustration of the overhead (hypothetical numbers): suppose 10 stations, each frame takes 1 ms to send, and each poll costs 0.1 ms. If every station has a frame, one polling cycle takes 10 × (0.1 + 1) = 11 ms and the channel carries data for 10 of those 11 ms, about 91% efficiency. If only one station has data, the cycle is still 10 × 0.1 + 1 = 2 ms, so the master has spent half the time polling idle stations. Taking turns is excellent when the load is high and steady and wasteful when it is sparse; random access is the reverse.</p><p><strong>5. DOCSIS: cable broadband</strong></p><p>Cable operators already had a coaxial network to every home for television. <strong>DOCSIS</strong> (Data Over Cable Service Interface Specification), developed by CableLabs, reuses it to carry Internet traffic [13]. It is a good case study because it combines several ideas we have just seen.</p><p><strong>5.1 Architecture</strong></p><p>A <strong>cable modem (CM)</strong> at the customer’s premises connects, through a hybrid fiber-coax (HFC) network, to a <strong>cable modem termination system (CMTS)</strong> at the operator’s headend. Fiber carries the signal most of the way, an optical node converts between light and radio-frequency signals, and the last stretch is a shared coaxial segment serving many homes. The CMTS connects this access network to the ISP’s IP network, and customers sharing the same radio channels form a <em>*service group*</em> [13][21]. Newer designs move parts of the CMTS functionality out to the optical node (distributed access architectures), but the roles of modem, shared plant and scheduler remain the same.</p><p><strong>5.2 Downstream and upstream</strong></p><p>The two directions behave differently.</p><p>- <strong>Downstream</strong> (CMTS to modems) is one-to-many: the CMTS transmits on downstream channels that every modem in the service group receives, and each modem keeps what is addressed to it. Since only one transmitter is involved, there is no contention.</p><p>- <strong>Upstream</strong> (modems to CMTS) is many-to-one: all modems share the same upstream channels, so access has to be arbitrated. Kurose and Ross describe each upstream channel as divided into time intervals with minislots; the CMTS periodically broadcasts <strong>MAP messages</strong> that say which modem may transmit in which minislots in an upcoming interval [1]. A modem that wants to send first needs a grant. It asks for bandwidth by sending a request in a designated <em>*contention*</em> interval where any modem may transmit, so requests can collide and are retried after a random backoff. The CMTS then allocates data slots in a MAP [1][13].</p><p>So DOCSIS is a <em>*hybrid*</em>: random access (with backoff) is used only for the small request frames, and the bulky data uses scheduled, collision-free slots. This follows from the traffic: reservations are cheap relative to data, and the scheduling lets the operator enforce service levels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6v1ipVtU89z_v3DyWUTbHQ.png" /><figcaption><strong>Figure 6 DOCSIS architecture.</strong></figcaption></figure><p><strong>5.3 Shared bandwidth</strong></p><p>Because the plant is shred, the capacity a household sees depends on how many neighbours are active. The headline numbers in the specifications are for the whole channel set, not per customer. DOCSIS 3.0 introduced <em>*channel bonding*</em>, letting a modem use several channels at once; DOCSIS 3.1 moved to OFDM and OFDMA with narrow subcarriers and higher-order modulation, with a stated capability of up to 10 Gb/s downstream and about 1 Gb/s upstream; and DOCSIS 4.0 targets up to 10 Gb/s downstream and 6 Gb/s upstream [13][14][21]. These are specification maxima, and deployed rates vary. To see why sharing matters, consider an illustration with invented numbers: if a service group has 2 Gb/s of usable downstream capacity and 200 homes, then even in the unlikely event that every home is active at once, the fair share is 10 Mb/s each. In practice, most homes are idle at any moment, so statistical multiplexing makes a much higher peak rate possible, which is why operators engineer service groups by expected demand rather than by the sum of the advertised rates.</p><p><strong>6. Link virtualization</strong></p><p>The word “virtualization” is used for many things, so it is worth being precise. <strong>Server virtualization</strong> shares one machine’s CPU and memory among virtual machines. <strong>Link virtualization</strong> is about <em>*connectivity*</em>: making one physical infrastructure present itself as several logical links or networks, or making an entire network look like a single link to the layer above.</p><p>The second meaning is the textbook one [1]. IP treats everything below it as “a link”, and this abstraction is generous. Two IP routers may believe they share a direct link when in fact that link is an entire network, such as a provider’s switched or label-switched network, running its own protocols inside. To IP, such a network is just a link. MPLS (Section 7) is an example.</p><p>The first meaning, carving logical networks out of shared physical ones, is easiest to see with <strong>VLANs</strong>. A group of hosts (say, an Engineering department) and another group (Finance) may be spread across several buildings and connected through the same switches. A VLAN-capable switch assigns every port, and every frame, to a virtual LAN. Frames belonging to one VLAN are never forwarded to ports in another at layer 2, so each VLAN is its own broadcast domain, and traffic between them must go through a router. When VLANs span multiple switches, the switches connect over a <strong>trunk</strong> link, and each frame crossing it carries a 4-byte IEEE 802.1Q tag with a 12-bit VLAN identifier [9]. Twelve bits allow 4094 usable VLANs; data-center overlays such as VXLAN (RFC 7348) use a 24-bit network identifier and carry layer-2 frames inside UDP/IP packets, which scales much further [25].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVac_T0YbZQou5mE8KExyA.png" /><figcaption><strong>Figure 7 Link virtualization.</strong></figcaption></figure><p>Other forms of the same idea include VPN tunnels, which create a logical point-to-point link across a network using IPsec, GRE or similar encapsulation. What they share is the principle that the connectivity a host <em>*sees*</em> is defined by configuration and encapsulation, not by the cabling. And it is important to notice what this does <em>*not*</em> mean: a VLAN is not encrypted, and isolation here comes from forwarding rules, not cryptography. Misconfiguration (for example a mis-tagged trunk port) can break the separation.</p><p><strong>7. Multiprotocol Label Switching (MPLS)</strong></p><p><strong>7.1 Why labels?</strong></p><p>An IP router forwards by looking up the destination address in a table using <em>*longest-prefix matching*</em>, a more elaborate operation than a simple lookup. MPLS, standardized by the IETF in the early 2000s, avoids this inside a provider’s network: packets are forwarded by a short fixed-length <strong>label</strong>, using an exact-match lookup [15]. It also decouples the path taken from the destination address alone: the operator can choose paths for traffic based on policy. Its name reflects that it works with many network-layer protocols, though IP is by far the most common.</p><p><strong>7.2 The label and the vocabulary</strong></p><p>An MPLS label is carried in a 32-bit <em>*label stack entry*</em>, inserted between the link-layer header and the IP header (informally, “layer 2.5”). Its fields are a 20-bit label, a 3-bit field originally called Exp and later renamed Traffic Class (used for quality of service), a 1-bit bottom-of-stack flag, and an 8-bit TTL [16][26].</p><p>The key terms are:</p><p>- <strong>Label Edge Router (LER).</strong> Sits at the boundary of the MPLS domain. The <em>*ingress*</em> LER classifies an arriving IP packet into a forwarding equivalence class (for example, “destination prefix 203.0.113.0/24”) and <strong>pushes</strong> a label. The <em>*egress*</em> LER <strong>pops</strong> it and forwards the packet using ordinary IP.</p><p>- <strong>Label Switching Router (LSR).</strong> A router inside the domain. It looks only at the top label, finds the matching entry in its label forwarding table, <strong>swaps</strong> it for the outgoing label and sends the packet out of the entry’s interface.</p><p>- <strong>Label Switched Path (LSP).</strong> The one-way path through the domain that packets in one class follow, from ingress to egress.</p><p>Labels have only <em>*local significance*</em>: a label is meaningful between two adjacent routers and may change at each hop. That is exactly why labels are <em>*swapped*</em> rather than kept: each router can choose labels from its own number space without coordinating network-wide. The labels are installed by signalling protocols such as LDP [19] or RSVP-TE [18].</p><p><strong>7.3 A packet’s journey</strong></p><p>Figure 8 follows one packet through four routers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wz1rkvTerx6clMfrbUIelQ.png" /><figcaption><strong>Figure 8 MPLS packet journey.</strong></figcaption></figure><p>In many real deployments the router <em>*before*</em> the egress removes the label itself, a behaviour called <em>*penultimate hop popping*</em>, so that the egress router does a single lookup rather than two [15]. The figure shows the simplest version.</p><p><strong>7.4 What MPLS is used for</strong></p><p>- <strong>VPNs.</strong> In BGP/MPLS IP VPNs, an ISP carries several customers’ traffic, possibly with overlapping private address spaces, across one shared backbone. Edge routers keep a separate routing table per customer, and each packet carries a stack of labels: an inner label identifying the customer’s VPN and an outer label that steers it across the backbone [17]. The isolation comes from separate forwarding state, not from encryption.</p><p>- <strong>Traffic engineering.</strong> Plain IP routing sends every flow to a destination over the single shortest path, which can leave one link overloaded and an alternative idle. MPLS lets an operator set up explicit LSPs along chosen routes [18]. As a hypothetical illustration: if the shortest path between two cities is carrying 9 Gb/s on a 10 Gb/s link while a longer path is empty, an operator could move part of the traffic to an explicit LSP on the longer path.</p><p>- <strong>Fast reroute and QoS</strong>, using backup LSPs prepared in advance, and the Traffic Class bits for priority.</p><p>MPLS’s data plane is also reused by newer approaches such as Segment Routing [23]. It is not a security mechanism by itself, and, as the case study will show, a customer typically never sees it.</p><p><strong>8. Case study: from a Wi-Fi laptop to a web server</strong></p><p>Let’s follow a request from a laptop in a home with cable broadband to a web server. The addresses and path below are illustrative, and the exact technologies depend on the ISP; the point is to see how the layers’ roles change on each hop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuWFMGOI9eVN58XOhgTYNQ.png" /><figcaption><strong>Figure 9 End-to-end path.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*yfhO1_9pJyF3v5D9o7c0mg.png" /></figure><p><strong>Step by step.</strong></p><p>The laptop builds an IP datagram and gives it to its Wi-Fi interface, which waits out CSMA/CA backoff, transmits an 802.11 frame, and expects an ACK. The home gateway is several devices in one box: the access point strips the 802.11 framing, the router function forwards the datagram and typically rewrites the private source address with network address translation, and the cable modem function sends it upstream. Because upstream is scheduled, the modem first needs a grant from the CMTS; the data then goes in assigned slots, travels over coax, an optical node and fiber, and reaches the CMTS [1][13]. The CMTS hands the datagram to the ISP’s router in an ordinary Ethernet frame. If the ISP core uses MPLS, the ingress LER pushes a label, the core LSRs swap it, and the egress LER removes it, after which routing continues normally. Eventually a last Ethernet frame delivers the datagram to the server. The reply makes the return trip in the other direction: broadcast downstream by the CMTS, un-translated by the gateway, and transmitted over Wi-Fi to the laptop, again with CSMA/CA.</p><p>What I find instructive is how many different answers to the <em>*same*</em> medium-access question appear along a single path. Wi-Fi uses random access with collision avoidance, DOCSIS uses reservation (with random access only for requests), and switched Ethernet needs no access control at all because there is no sharing. The IP datagram is unchanged by all of this, apart from address translation and the TTL, which is exactly the benefit of layering.</p><p><strong>9. Conclusion and key takeaways</strong></p><p>The link layer is a family of solutions to one problem: getting a datagram across one hop reliably enough, and sharing the medium fairly when there is one. The main points:</p><p>- <strong>Frames and MAC addresses are hop-local.</strong> IP addresses name endpoints; MAC addresses name the interfaces on the current link, and are rewritten at every router.</p><p>- <strong>Error detection is a trade-off between cost and strength.</strong> Parity is cheap but weak, checksums are software-friendly, and CRCs give hardware-friendly guarantees. Detection tells you to discard or retransmit; correction needs more redundancy.</p><p>- <strong>Medium access follows the physics of the medium.</strong> CSMA/CD relies on hearing collisions on a wire; CSMA/CA exists because a radio cannot. Taking-turns schemes trade overhead for predictability, and DOCSIS combines scheduling with a little random access.</p><p>- <strong>Virtualization separates what the hosts see from what is installed.</strong> VLANs, tunnels and label-switched paths are all logical links on shared physical infrastructure.</p><p>- <strong>MPLS speeds up and steers forwarding inside a provider network</strong>, enabling VPNs and traffic engineering by labels that are local to each link.</p><p>These ideas matter because every application depends on them without noticing. The behaviour of a video call over Wi-Fi, or of a cable connection at the busiest hour, is largely determined by decisions made at this layer: how collisions are avoided, how upstream slots are granted, how errors are caught, and how traffic is steered through a provider’s network.</p><h3>References</h3><p>[1] J. F. Kurose and K. W. Ross, <em>*Computer Networking: A Top-Down Approach*</em>, 8th ed. Pearson, 2021. (Chapter 6, “The Link Layer and LANs”.)</p><p>[2] L. L. Peterson and B. S. Davie, <em>*Computer Networks: A Systems Approach*</em>, 6th ed. Morgan Kaufmann, 2021. (Background reading on framing, error detection and access protocols.)</p><p>[3] A. S. Tanenbaum and D. J. Wetherall, <em>*Computer Networks*</em>, 5th ed. Pearson, 2011. (Chapters 3 and 4: the data link layer and the medium access control sublayer.)</p><p>[4] N. Abramson, “The ALOHA System: Another Alternative for Computer Communications,” in <em>*Proc. AFIPS Fall Joint Computer Conference*</em>, 1970, pp. 281–285.</p><p>[5] L. G. Roberts, “ALOHA Packet System With and Without Slots and Capture,” <em>*ACM SIGCOMM Computer Communication Review*</em>, vol. 5, no. 2, pp. 28–42, 1975.</p><p>[6] R. M. Metcalfe and D. R. Boggs, “Ethernet: Distributed Packet Switching for Local Computer Networks,” <em>*Communications of the ACM*</em>, vol. 19, no. 7, pp. 395–404, 1976.</p><p>[7] IEEE Std 802.3–2022, <em>*IEEE Standard for Ethernet*</em>.</p><p>[8] IEEE Std 802.11–2020, <em>*IEEE Standard for Information Technology: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications*</em>.</p><p>[9] IEEE Std 802.1Q-2022, <em>*IEEE Standard for Local and Metropolitan Area Networks: Bridges and Bridged Networks*</em>.</p><p>[10] R. Braden, D. Borman and C. Partridge, “Computing the Internet Checksum,” RFC 1071, IETF, 1988.</p><p>[11] W. W. Peterson and D. T. Brown, “Cyclic Codes for Error Detection,” <em>*Proceedings of the IRE*</em>, vol. 49, no. 1, pp. 228–235, 1961.</p><p>[12] R. W. Hamming, “Error Detecting and Error Correcting Codes,” <em>*Bell System Technical Journal*</em>, vol. 29, no. 2, pp. 147–160, 1950.</p><p>[13] CableLabs, <em>*DOCSIS 3.1 MAC and Upper Layer Protocols Interface Specification*</em> (MULPI).<a href="https://www.cablelabs.com/"> https://www.cablelabs.com</a></p><p>[14] CableLabs, “10G Technology” (DOCSIS 4.0).<a href="https://www.cablelabs.com/technologies/docsis-4-0-technology"> https://www.cablelabs.com/technologies/docsis-4-0-technology</a></p><p>[15] E. Rosen, A. Viswanathan and R. Callon, “Multiprotocol Label Switching Architecture,” RFC 3031, IETF, 2001.</p><p>[16] E. Rosen et al., “MPLS Label Stack Encoding,” RFC 3032, IETF, 2001.<a href="https://www.rfc-editor.org/rfc/rfc3032"> https://www.rfc-editor.org/rfc/rfc3032</a></p><p>[17] E. Rosen and Y. Rekhter, “BGP/MPLS IP Virtual Private Networks (VPNs),” RFC 4364, IETF, 2006.</p><p>[18] D. Awduche et al., “RSVP-TE: Extensions to RSVP for LSP Tunnels,” RFC 3209, IETF, 2001; and D. Awduche et al., “Requirements for Traffic Engineering Over MPLS,” RFC 2702, IETF, 1999.</p><p>[19] L. Andersson, I. Minei and B. Thomas, “LDP Specification,” RFC 5036, IETF, 2007.</p><p>[20] D. C. Plummer, “An Ethernet Address Resolution Protocol,” RFC 826, IETF, 1982.</p><p>[21] “DOCSIS,” Wikipedia (secondary source used to cross-check the DOCSIS architecture, service groups, channel bonding and DOCSIS 3.1 summary).<a href="https://en.wikipedia.org/wiki/DOCSIS"> https://en.wikipedia.org/wiki/DOCSIS</a></p><p>[22] L. Kleinrock and F. A. Tobagi, “Packet Switching in Radio Channels: Part I Carrier Sense Multiple-Access Modes and Their Throughput-Delay Characteristics,” <em>*IEEE Transactions on Communications*</em>, vol. 23, no. 12, pp. 1400–1416, 1975.</p><p>[23] C. Filsfils et al., “Segment Routing Architecture,” RFC 8402, IETF, 2018.</p><p>[24] J. H. Saltzer, D. P. Reed and D. D. Clark, “End-to-End Arguments in System Design,” <em>*ACM Transactions on Computer Systems*</em>, vol. 2, no. 4, pp. 277–288, 1984.</p><p>[25] M. Mahalingam et al., “Virtual eXtensible Local Area Network (VXLAN),” RFC 7348, IETF, 2014.</p><p>[26] B. Thomas et al., “Multiprotocol Label Switching (MPLS) Label Stack Entry: ‘EXP’ Field Renamed to ‘Traffic Class’ Field,” RFC 5462, IETF, 2009.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc9d7bbb8af2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DATA VISUALIZATION USING POWER BI]]></title>
            <link>https://medium.com/@apurva.satkar.btech2024/data-visualization-using-power-bi-7137835d61e9?source=rss-964ad8f35426------2</link>
            <guid isPermaLink="false">https://medium.com/p/7137835d61e9</guid>
            <dc:creator><![CDATA[Apurva Satkar Btech]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 19:19:09 GMT</pubDate>
            <atom:updated>2026-07-28T19:19:09.228Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>DATA VISUALIZATION: ASSIGNMENT 1</strong></p><p><strong><em>Analysis of AdventureWorks Customer Lookup (CSV)</em></strong></p><h3>1. Introduction</h3><p>Data visualization plays a vital role in transforming raw datasets into meaningful business insights. In this assignment, Power BI was used to analyze the AdventureWorks Customer Lookup dataset, exploring customer demographics, income distribution, education, occupation, and household characteristics. Power Query was used for data cleaning prior to building the visualizations.</p><h3>2. Dataset Overview</h3><p><strong>Attribute</strong></p><p><strong>Details</strong></p><p><strong>Domain</strong></p><p>Customer Demographics</p><p><strong>File Type</strong></p><p>CSV</p><p><strong>Number of Rows</strong></p><p>18,154</p><p><strong>Number of Columns</strong></p><p>13</p><p><strong>Objective</strong></p><p>Analyze customer demographics, income distribution, education, occupation, and household characteristics.</p><h3>3. Data Cleaning Using Power Query</h3><p>Before building the dashboard, the dataset was cleaned using Power Query. The following transformations were applied:</p><ul><li>Removed duplicate records</li><li>Filtered unnecessary rows</li><li>Trimmed extra spaces</li><li>Cleaned inconsistent text</li><li>Standardized capitalization</li><li>Replaced incorrect values</li><li>Renamed columns</li><li>Corrected data types</li><li>Extracted text where required</li></ul><p>These preprocessing steps ensured accurate and reliable visualizations while improving overall data quality.</p><p><em>Figure 1: Applied Steps in Power Query — AdventureWorks Customer Lookup</em></p><h3>4. Visualizations and Insights</h3><h3>4.1 Customer Distribution by Gender (Donut Chart)</h3><p><em>Figure 2: Customer Distribution by Gender</em></p><p>The donut chart illustrates the proportion of male and female customers within the dataset.</p><p><strong>Key Insights:</strong></p><ul><li>The customer base is almost evenly divided between males and females (50.29% female, 49% male).</li><li>Only a very small percentage (0.72%) contains missing gender values.</li><li>A balanced dataset enables fair demographic analysis.</li></ul><p>Business Value: Understanding gender distribution helps businesses design targeted marketing campaigns and evaluate whether products appeal equally to different customer segments.</p><h3>4.2 Education Level Distribution (Pie Chart)</h3><p><em>Figure 3: Education Level Distribution</em></p><p>This visualization presents customers grouped by their highest educational qualification.</p><p><strong>Key Insights:</strong></p><ul><li>Bachelor’s degree holders form the largest customer group (29.99%).</li><li>Partial College customers also represent a significant portion (27.36%).</li><li>High School (17.22%) and Graduate Degree (17.86%) groups follow, while Partial High School (8.57%) has the smallest share.</li></ul><p>Business Value: Educational background helps businesses understand customer profiles and develop personalized marketing strategies.</p><h3>4.3 Average Annual Income by Education Level (Clustered Column Chart)</h3><p><em>Figure 4: Average Annual Income by Education Level</em></p><p>This chart compares average annual income across different education levels.</p><p><strong>Key Insights:</strong></p><ul><li>Graduate Degree holders earn the highest average income.</li><li>Bachelor’s degree customers also have relatively high incomes.</li><li>Income gradually decreases across Partial College, High School, and Partial High School categories.</li><li>Higher education generally correlates with higher earning potential.</li></ul><p>Business Value: Businesses can identify customer purchasing power and develop premium product offerings for higher-income groups.</p><h3>4.4 Homeowner Distribution (Donut Chart)</h3><p><em>Figure 5: Homeowner Distribution</em></p><p>This visualization compares homeowners with non-homeowners.</p><p><strong>Key Insights:</strong></p><ul><li>A majority of customers own homes (67.56%).</li><li>Non-homeowners still represent a significant market segment (32.44%).</li></ul><p>Business Value: Home ownership provides valuable demographic information for customer segmentation, financial product recommendations, and housing-related marketing.</p><h3>4.5 Average Annual Income by Occupation (Clustered Bar Chart)</h3><p><em>Figure 6: Average Annual Income by Occupation</em></p><p>The chart compares average income among different occupations.</p><p><strong>Key Insights:</strong></p><ul><li>Management professionals have the highest average income.</li><li>Professional occupations rank second.</li><li>Skilled Manual workers occupy the middle range.</li><li>Clerical and Manual occupations report comparatively lower incomes.</li></ul><p>Business Value: Occupation-based segmentation enables organizations to recommend products based on customer affordability and spending capacity.</p><h3>4.6 Average Number of Children by Education Level</h3><p>This visualization compares family size across educational groups.</p><p><strong>Key Insights:</strong></p><ul><li>Family sizes remain relatively consistent across education levels.</li><li>Slight differences exist but no major variation is observed.</li></ul><p>Business Value: Family demographics help businesses personalize products and promotional campaigns for households of different sizes.</p><h3>5. Overall Insights</h3><p>The customer demographic analysis of the AdventureWorks dataset reveals several meaningful patterns:</p><ul><li>Education positively influences annual income.</li><li>Gender distribution is well balanced.</li><li>Most customers own homes.</li><li>Higher-paying occupations generally correspond to higher education.</li><li>Customer demographics provide valuable information for segmentation and personalized marketing.</li></ul><h3>6. Conclusion</h3><p>Power BI enables organizations to convert raw data into meaningful visual insights through interactive dashboards and powerful analytics. In the AdventureWorks Customer Lookup dataset, demographic analysis revealed how education, occupation, income, and home ownership influence customer characteristics and purchasing potential. By combining Power Query for data preparation with Power BI’s rich visualization capabilities, businesses can uncover trends, improve decision-making, and create data-driven strategies that enhance operational performance and customer engagement.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7137835d61e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>