<?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 Cher Don on Medium]]></title>
        <description><![CDATA[Stories by Cher Don on Medium]]></description>
        <link>https://medium.com/@liewcherdon?source=rss-44668a3eb6d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QW5h7-jTeEM8TrFnJ5fR5Q.png</url>
            <title>Stories by Cher Don on Medium</title>
            <link>https://medium.com/@liewcherdon?source=rss-44668a3eb6d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:40:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@liewcherdon/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[An introduction to HTTP: Exploring Telecommunication in Computer Systems]]></title>
            <link>https://medium.com/free-code-camp/an-introduction-to-http-understanding-the-open-systems-interconnection-model-9dd06233d30e?source=rss-44668a3eb6d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dd06233d30e</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Cher Don]]></dc:creator>
            <pubDate>Mon, 10 Sep 2018 16:29:27 GMT</pubDate>
            <atom:updated>2019-02-12T13:26:14.549Z</atom:updated>
            <content:encoded><![CDATA[<h4>Get to know the Open Systems Interconnection model</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7pzeTboIfH5UxaFnVnGhnA.jpeg" /></figure><h3>Overview</h3><p>Throughout this series, we will be tackling the basics such as: <br><a href="https://medium.freecodecamp.org/an-introduction-to-http-domain-name-system-servers-b3e7060eca98">(Part 1) How does DNS work? </a><br>(Part 2) Network Stack, OSI Model <em>[You are here!]</em><br>(Part 3) HTTP Methods and Formats <br>(Part 4) Client Identification <br>(Part 5) Basic/Digest Authentication <br>(Part 6) HTTPS working with SSL/TLS</p><h3>OSI Model</h3><p>The Open Systems Interconnection (OSI) Model is a standardized model for telecommunication in computer systems. It does not regard the underlying technology, but instead the layers involved in communication. Let us explore the different layers within the OSI Model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aViJVCrNxe76xeTNcsGQkQ.png" /><figcaption>Typical 5-layered OSI Model</figcaption></figure><h3>1. Application Layer</h3><p>This layer allows applications to communicate over the network once the connection has been established, such as from the Web Browser (Application) to the Server. Examples of protocols in this layer include HTTP and TELNET.</p><h4>HyperText Transfer Protocol (HTTP)</h4><p>A set of rules for transferring files over the Internet. For example, when you enter the URL into the browser, the browser sends an HTTP request for the webpage. The host would then return the webpage, together with all the elements that are within, such as images, text, videos, styling fonts, etc.</p><h3>2. Transport Layer</h3><p>This layer is responsible for the host-to-host communication of messages. Examples of protocols in this layer include TCP and UDP.</p><h4>Transmission Control Protocol (TCP)</h4><p>The most common connection-oriented protocol. It defines how to establish and maintain a network conversation. It is responsible for establishing a connection (called a <em>socket</em>) between the client and the host in a 3-way handshake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*9XQl7jmDgvzYpzA3tHvkMg.png" /></figure><p>The user requesting the data will send a SYN data packet to the server, requesting <em>synchronization</em>. The server will then respond with a SYN-ACK to the user, indicating that it has <em>acknowledged</em> the data packet, and would like to connect as well. The connection is hence established when the user sends the last ACK to the server.</p><p>TCP is the most common due to its elegance, in which it is able to offer the following:</p><p><strong>Connection-oriented communication<br></strong> Establish a handshake protocol between end-points to ensure connection before data is exchanged, and transmit as a data stream (data packets).</p><p><strong>Reliability</strong><br>Using checksums, it ensures that the data packets transmitted and received are the same. If there are missing/corrupted packets, it will request for re-transmission of the data packets by sending a NACK message to the sender.</p><p><strong>Order</strong><br>The data packets are numbered and transmitted. As such, TCP will ensure that the received packets are re-ordered before delivering the application.</p><p><strong>Flow Control</strong><br>The rate of data transmission is regulated to improve efficiency while preventing buffer overruns/underruns, where data is sent faster than the receiver is able to process it, and vice versa.<br>The mechanics behind it are explained below in the <a href="#c804">TCP Slow Start</a> section.</p><p><strong>Multiplexing<br></strong>Basically, it is able to send over multiple streams of information concurrently over the same socket. These are done through different ports on the socket. We will discuss the differences between <a href="#8aeb">Multiplexing and Pipelining</a> further along in the article.</p><h4>User Datagram Protocol (UDP)</h4><p>While similar to TCP, it is a connection-less protocol. It is the complete opposite of TCP, making it unreliable and unordered. Dropped packets will not be re-transmitted, causing gaps in the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*zFiP4Sw-7rY8eazN.png" /></figure><p>However, that makes it best for time-sensitive applications, such as voice calls over the internet (VoIP). This is because it does not require the 3-way handshake before transmitting, making it fast. In addition, dropped data packets are not a problem in VoIP, as the human ear is very good at handling the short gaps that are typical with dropped packets.</p><h3>3. Network Layer</h3><p>This layer is responsible for providing data routing paths for network connections. Basically, it moves data packets across the network with the most logical path.</p><h4>Internet Protocol (IP)</h4><p>Defines the structure of the data packets, as well as labeling it with the source and destination information.</p><p>The source and destination information are in the form of IP Addresses, in which can be in the form 104.16.121.127(IPv4), or 2001:db8:0:1234:0:567:8:1(IPv6).</p><h3>4. Link/ Physical Layer</h3><p>This layer is the root of the OSI model, where information is transmitted either in the Local Area Network (LAN) for the Link Layer, and a physical signal such as electrical, mechanical medium in the form of code words or symbols in the Physical Layer.</p><h3>Visualising Routes</h3><p>Using tracert google.com, the route can be traced from the client-side (your computer) to the host (google.com).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*j8mKZE0U-xFse05JISIaeA.png" /></figure><p>From above, you can see the route starting from my device 192.168.1.254 to the router 10.243.128.1, before passing through the Internet Service Provider (ISP) located in Portugal, and so forth.</p><h3>Complementary Layers</h3><h4>TCP/IP Model</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*HfT5UXYqe-HS8VZYms3jyw.png" /><figcaption>TCP will request for re-transmission of dropped data packets, and re-order them</figcaption></figure><p>IP is only responsible for the structure of the data packet. As such, it will not make amends if the data packet is corrupted, or dropped. This is where TCP comes into play, numbering the data packets before sending over to the client. At the client’s side, TCP will request for re-transmission of lost/corrupted packets, and then rearrange the packets of data.</p><h4>HTTP/TCP Model</h4><p>As we have mentioned earlier, HTTP can now make requests via the connection made by <a href="#259f">TCP Handshake</a>. But how do they complement each other?</p><p><strong>HTTP Persistent Connections</strong> <br>This would allow multiple HTTP request/response on a single TCP connection, as opposed to opening a new connection upon every request/response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*qQQxQIvkHhriR7So68OkAg.png" /><figcaption>Sample response for Persistent Connection</figcaption></figure><p>This is done through the HTTP Header, where Connection: Keep-Alive. On default, the connection will only close upon another response where Connection: Close is sent after 30 seconds of idle.</p><p><strong>TCP Slow Start</strong><br>As mentioned before, TCP supports <a href="#e64e">flow control</a>. This is done through TCP Slow Start, which is a form of prevention for network congestion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0KltoAVdBIMRQfOaTNQYng.png" /></figure><p>The sender has a congestion window (CWND) and the receiver has a receiver window (RWND). If the data is larger than the congestion/receiver window, there would be a buffer under/overrun respectively.</p><p>To prevent that, the sender will begin by sending a data packet with a small congestion window (CWND = 1), to slowly probe the receiver for its receiver window.</p><p>The receiver will respond with an acknowledge, prompting the sender to double the data packets each time until no acknowledge is received. At this point, the optimum number of data packets has been discovered, allowing other congestion control algorithms to keep the connection at this speed.</p><p><strong>Working Together<br></strong>Hence, TCP Slow Start is able to figure out the optimum number of data packets to send before the connection is closed. This will allow the amount of data sent from the host to the client to be optimized without the risk of buffer overrun (data is sent faster than it can be received).</p><h3>Other HTTP Features</h3><h4>HTTP Pipelining</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ktE3SaJdxcogxyPcFk-XyQ.png" /></figure><p>This feature in version HTTP/1.1 allows multiple requests to be sent at once on the same socket, without waiting for a response. However, it has been replaced by TCP Multiplexing in the newer version of HTTP/2.</p><p>The key difference is that although both allow for multiple requests all at once on the same socket, Pipelining would still require responses to be sent in order. It means that if the items requested are in the order (A, B, C), the client would not receive item C if item B has not been delivered properly.</p><p>In Multiplexing, the order does not matter. This would allow quicker delivery time.</p><p>These methods are best used for the idempotent method, which are methods that respond independently of the number of times requested — for example, requesting a web page multiple times will respond to the same web page.</p><h4>Parallel Connections</h4><p>Ever opened a webpage and seen multiple components of the webpage (video bar, thumbnails, buttons) load simultaneously?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*qGq8OZBSTQrigI-z0KMsCA.gif" /><figcaption>Multiple components loading simultaneously | Photo courtesy of <a href="https://www.cloudflare.com/products/mobile-sdk/">Cloudflare Mobile SDK</a></figcaption></figure><p>This is made possible with Parallel Connections, where there is more than one TCP Connection established at the same time, allowing these components to load concurrently instead of one after another.</p><p>However, although it might seem to load faster, it might be held back by the client’s limited bandwidth. If all Parallel Connections are competing for the limited bandwidth, each component will load proportionately slower, resulting in zero advantage in total loading speed.</p><h3>Conclusion</h3><p>With the OSI Model, we can easily understand the big picture of networks, and how they interact with each other from hardware to software.</p><p>In general, it is a great teaching tool as well as a reference for troubleshooting. The model is also useful for design, as it investigates the functions at every layer, forcing one to ponder over the design layer by layer.</p><p>What I have gone through so far is the OSI 5-Layer Model, whereas there is also the <a href="https://www.webopedia.com/quick_ref/OSI_Layers.asp">OSI 7-Layer Model</a> which also deals with Identification, Authentication and Data Encryption.</p><p>This is Part 2 of the HTTP Introductions Series. You can read the first article about the importance of DNS Servers in <a href="https://medium.freecodecamp.org/an-introduction-to-http-domain-name-system-servers-b3e7060eca98">Part 1</a>. Let’s explore the structure of HTTP Requests next in Part 3!</p><p>Hi! I’m <a href="https://medium.com/u/44668a3eb6d6">Cher Don</a>, currently pursuing a Major in Data Science. I’m the CTO of <a href="https://www.linkedin.com/company/paralegal-bot/">Paralegal Bot</a>, and you can find my website below. Thanks for reading!</p><p><a href="http://www.piqued.co/">Piqued;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dd06233d30e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/an-introduction-to-http-understanding-the-open-systems-interconnection-model-9dd06233d30e">An introduction to HTTP: Exploring Telecommunication in Computer Systems</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An introduction to HTTP: Domain Name System servers]]></title>
            <link>https://medium.com/free-code-camp/an-introduction-to-http-domain-name-system-servers-b3e7060eca98?source=rss-44668a3eb6d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3e7060eca98</guid>
            <category><![CDATA[https]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Cher Don]]></dc:creator>
            <pubDate>Tue, 28 Aug 2018 15:59:23 GMT</pubDate>
            <atom:updated>2018-09-11T06:23:45.977Z</atom:updated>
            <content:encoded><![CDATA[<h4>How does the DNS work, and why is it important?</h4><h3>Overview</h3><p>Throughout this series, we will be tackling the basics such as:</p><ul><li>How does DNS work? <em>[You are here!]</em></li><li><a href="https://medium.freecodecamp.org/an-introduction-to-http-understanding-the-open-systems-interconnection-model-9dd06233d30e">Network Stack, OSI Model</a></li><li>HTTP Methods and Formats</li><li>Client Identification</li><li>Basic/Digest Authentication</li><li>HTTPS working with SSL/TLS</li></ul><h3>What is HTTP?</h3><p>HyperText Transfer Protocol (HTTP) is a protocol devised by Sir Tim Berners Lee in 1989. It forms the basis for how web pages communicate from the web server to the client’s browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*juhGNSLIb0gL6loT" /><figcaption>Sir Tim Berners Lee, the Father of World Wide Web. Photo courtesy of <a href="https://www.cnet.com/pictures/images-berners-lee-and-the-dawn-of-the-web/">CNET</a></figcaption></figure><h3>DNS Servers</h3><p>Is the connection to the webpage established immediately after typing in the Domain Name, such as medium.com? <strong>Definitely not!</strong></p><p>Machines, unlike us, recognize the location of webpages by <em>IP Addresses</em>. These string of numbers, such as 104.16.121.127, are more machine friendly especially since there are <em>millions</em> of domain names on the Web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*yC9oY647Pggg817o.png" /></figure><p>The Domain Name System (DNS) plays a crucial role in the whole HTTP request process, as it allows us to call a webpage by typing a simple domain name, www.medium.com instead of 104.16.121.127 every time you want to access the site.</p><p>Without DNS, your brain would be filled with numbers just trying to remember the IP Addresses for every <em>single</em> website you use!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84ioYpHlaCpuDW-Lmjg6TA.png" /><figcaption>Flow of DNS Resolution, maintained by a distributed database system</figcaption></figure><p>Now that we know that an IP Address is requested every time we type in the domain name, let’s find out where this request searches for the correct IP Address.</p><h4>Local Cache</h4><p>A cache is a block of memory for temporary storage of data that has a high probability of being used again. The first thing that happens is the DNS Resolver (residing in your computer) will check the browser’s cache, followed by the computer’s DNS cache. If you accessed the website recently, it would have the IP address cached in the system.</p><p>In that case, the browser can immediately call the IP Address to retrieve the webpage!</p><p>One thing to note here is that every cache has an expiry date, called the <em>“Time to Live” setting. </em>This setting<em> </em>determines how long the cache may be stored when the website is accessed. We will address how that works later on.</p><h4>DNS Recursor</h4><p>If the IP Address can’t be found in the local cache, it will then request from the DNS Recursor. The DNS Recursor is often the DNS Server of your Internet Service Provider (ISP).</p><p>These Internal DNS Servers have caches from websites that their clients have visited recently. Again, if the IP Address can’t be found here, it will be passed on to the next Domain Server.</p><h4>Root-Level Domain Server</h4><p>The Root-Level Domain Server (RLDS), or sometimes called the ‘ . ’ Name Server, is simply a <em>gatekeeper</em> for requests. It reads the request and locates the appropriate domain server to redirect to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*9nQ9K4CYoOl4DGAd.gif" /></figure><p>As such, it plays an important role in redirection to the next layer of Domain Servers. They are dispersed all around the world to prevent malicious attacks from bringing down the World Wide Web by targeting the RLDS.</p><h4>Top-Level Domain Server</h4><p>The Top-Level Domain Server (TLDS) is the name server for domains that end with their specific domain suffixes such as .com, .org or .io. After being passed down by RLDS, this layer works in the same way as the second gatekeeper. It takes the requests and runs through its DNS Server to redirect the request to the last and final stop, the Second-Level Domain Server.</p><p>The number of domain names are increasing exponentially. It is impossible for the RLDS to be able to store or redirect such a sheer amount of IP Addresses. As such, it is redirected to the TLDS to diversify the processing power and memory required.</p><h4>Second-Level Domain Server</h4><p>This layer is where all the information is stored about the domain is accessible. This DNS Server is usually owned by the institute that is responsible for hosting your website.</p><p>As such, a request for the record of the domain is sent to this DNS Server. It returns the IP Address, along with other important information such as the server it is on, and the alias it has.</p><h4>Success!</h4><p>The browser now receives the IP Address. It uses it to establish a connection with the host server using TCP/IP and retrieve the webpage via HTTP. We will discuss this in <a href="https://medium.freecodecamp.org/an-introduction-to-http-understanding-the-open-systems-interconnection-model-9dd06233d30e">Part 2</a>.</p><h3>“Time to Live” Setting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q6AyjN624PTPktBq.jpg" /></figure><p>DNS Records have a Time to Live (TTL) Setting. This determines the amount of time that any of the domain servers can cache the record.</p><p>Caching is important. It reduces the loading time for the page, since the DNS information will have to be reacquired every time the domain name is requested. Hence, a high TTL would allow the DNS records to stay alive for a longer period of time. This allow webpages to load faster.</p><p><strong>Why don’t all DNS Records have a high TTL then?</strong></p><p>By having a high TTL, it would mean that visitors would not see changes to the DNS immediately. Visitors only see the change after the DNS Record has expired.</p><p>For example, if we were to change the host for this webpage, and have a high TTL, the changes would not appear on the visitors browser immediately. This might result in broken links and users not being able to access the webpage.</p><h3>Hostname — IP Address Relationship</h3><p>So a single domain name is attached to one IP Address?</p><p>The answer is yes… and no. It can be, but doesn’t have to be a one-to-one relationship.</p><h4>Single Hostname, Multiple IP Addresses</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*sxNggFNv7PGJ0xp-DLkgUg.jpeg" /></figure><p>A single hostname such as www.google.com can correspond to multiple IP Addresses, to balance the load on the server since there is a significant amount of users calling on the same webpage at any one given point in time.</p><p>DNS Servers use a “Round Robin” method, such that all IP Addresses are equally utilized.</p><h4>Multiple Hostname, Single IP Address</h4><p>The purpose for this might be for referral links. For example, searching amazon.com/products/pc will show the product screen for PCs. Although amazon.com/products/pc?user=cherdon will also show the same webpage, any purchase would tell Amazon that I was the referrer, allowing me to gain commission from it.</p><p>Companies often buy multiple domains that link to the same webpage as well. For example, google.com and google.net would link you to the same search engine webpage.</p><h3>Conclusion</h3><p>The DNS Server is very important as it stores a database for machine-friendly IP Addresses under user-friendly Domain Names. Now that we have learnt how DNS Servers work together in a distributed database, let us explore how the connection with the host server is established with the IP Address in <a href="https://medium.freecodecamp.org/an-introduction-to-http-understanding-the-open-systems-interconnection-model-9dd06233d30e">Part 2</a>!</p><p>Hi! I’m <a href="https://medium.com/u/44668a3eb6d6">Cher Don</a>, currently pursuing a Major in Data Science. I’m the CTO of <a href="https://www.linkedin.com/company/paralegal-bot/">Paralegal Bot</a>, and you can find my website below. Thanks for reading!</p><p><a href="https://www.piqued.co/">Piqued;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3e7060eca98" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/an-introduction-to-http-domain-name-system-servers-b3e7060eca98">An introduction to HTTP: Domain Name System servers</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>