<?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 Tomiwa A. on Medium]]></title>
        <description><![CDATA[Stories by Tomiwa A. on Medium]]></description>
        <link>https://medium.com/@tomiwaaribisala?source=rss-3944ad7bbdf6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*30YIprwxf-XNm5EJ2GFp1A.png</url>
            <title>Stories by Tomiwa A. on Medium</title>
            <link>https://medium.com/@tomiwaaribisala?source=rss-3944ad7bbdf6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:04:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomiwaaribisala/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[Deploying a Simple NginxDemos Image on an AWS ECS Cluster(ECS Fargate Launch Type)]]></title>
            <link>https://medium.com/@tomiwaaribisala/deploying-a-simple-nginxdemos-image-on-an-aws-ecs-cluster-ecs-fargate-launch-type-2185f9413424?source=rss-3944ad7bbdf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2185f9413424</guid>
            <dc:creator><![CDATA[Tomiwa A.]]></dc:creator>
            <pubDate>Tue, 28 Nov 2023 03:54:28 GMT</pubDate>
            <atom:updated>2023-11-28T03:54:28.976Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is a step-by-step guide on how to deploy a simple <em>nginxdemos/hello</em> image on an AWS ECS Cluster. AWS ECS is Amazon’s native container platform, Elastic Container Service, where one can deploy containerized applications as ECS Service/Tasks on the platform. This guide involves creating an ECS Cluster, an ECS Service, and the task definition which defines the image/container configuration for the ECS Service, and a Load Balancer that serves as an endpoint to access the ECS Service; all steps are done via the AWS Management Console, let’s get started.</p><p>0. <strong>Create an ECS Cluster</strong></p><ul><li>Navigate to the ECS service via the AWS Console by searching the term “ecs” in the console, then click the Elastic Container Service, you are onto the ECS dashboard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xajctNWowk0qPrpw4VNgdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjhWOvpgL1a2VEacOvmVDg.png" /></figure><ul><li>Click on the “Create Cluster” button, the cluster name for this guide is “HelloWorldCluster” as indicated via the console below, and choose a launch type(either AWS Fargate, AWS EC2 Instances, or External Instances using ECS anywhere). For this guide, we will use the AWS Fargate(Serverless) launch type, this launch type allows AWS to provision and fully manage the infrastructure of the ECS Cluster on-demand meaning we don’t have to worry about the maintenance overhead of the cluster servers. The Monitoring and Tags configurations of the Create Cluster section are optional so we leave that as it is, click on “Create” for ECS to create the ECS cluster, the cluster creation takes a few minutes and it’s live.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZLbc3htGqP6CZoJQiVf0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwnaTlsnWwOql_pUJPnqeg.png" /></figure><ul><li>By checking out the cluster’s features, one can see that there are no existing services/tasks in the cluster that will be created in the next steps, the infrastructure capacity providers of the cluster indicate one can launch FARGATE and FARGATE_TASKS in spot mode in the ECS Cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWhUMcAYwDYiQmxmepCVaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NIkgrrP-YaUiciDJHMjrvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I8QvXMxtsl4imgwV1pnkRg.png" /></figure><ol><li><strong>Create a Task Definition</strong></li></ol><ul><li>The follow-up step is to create a task definition, a task definition defines the service/task <em>nginxdemos-hello </em>image<em> </em>we want to deploy in the ECS Cluster. Click on the <em>task definitions </em>button in the lefthand panel, and create a <em>nginxdemos-hello </em>task definition from the<em> </em>public<em> nginxdemos/hello </em>image, select AWS Fargate as the Launch Type for the task definition, for the simple image we are deploying — we could use a CPU and memory size of 1vCPU and 2GB. The task role for this task definition is left blank as the container/image we are deploying does not make any API calls to AWS services, also leave the task execution role as default.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcptURcJWn5gOQJmqtEo9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZlbOfkJXk3_qO728zVp2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmqYNUT-e82xsntaJ0Kxqw.png" /></figure><ul><li>Specify an image and image URL as <em>nginxdemos-hello</em> and <em>nginxdemos/hello </em>in the container section,<em> </em>this specification allows ECS to pull the public <em>nginxdemos/hello</em> image from Dockerhub, a library of container images. The port mappings show the container port at 80 by default which we can use for the<em> nginxdemos/hello</em> image. Leave the Storage, Monitoring, and Tag sections as default, and create the task definition.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1CgS1zAduRJsMk8HN4FL7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hErTbWCm15mvuarlncGWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvPTzMKwgxviZkUd2le4NA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGqZHT1zjuksDLqLCKv15w.png" /></figure><p>2. <strong>Launch Task Definition as a Service</strong></p><ul><li>Next, we want to launch the defined task definition as a Service in the ECS Cluster created earlier. Click on the HelloWorldCluster, in the Services section — create a Service, choose Launch Type as a compute option, choose FARGATE as the launch type, and leave the Platform Version as default.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxKfsUlLQ9iwSCU6Tw5Cag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cx9lfAdehi9NOKdA2DWVUQ.png" /></figure><ul><li>In the Deployment configuration, select the Application Type as Service, select the <em>nginxdemos-hello</em> family of the task definition, assign a Service name such as <em>nginxdemos-hello</em>, select Replica as the Service Type and the Desired tasks for this service as 1 — tasks implies the number of deployed containers which runs on the HelloWorldCluster, if we need to run multiple containers in the cluster — increase the number of tasks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxKfsUlLQ9iwSCU6Tw5Cag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cx9lfAdehi9NOKdA2DWVUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x-1UY1-v_oYJ9qTm2xpTdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxiKeDicXKUELrC1jzAGCw.png" /></figure><ul><li>Check the networking section of the Service, the Service launches in the default VPC and subnets of the AWS account, create a security group to allow traffic from anywhere to port 80 of the Service via the HTTP protocol.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pUBZ5fnRGbOKS8vsP03hA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0mN3QQVC6rcPsiBAiGimA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0mN3QQVC6rcPsiBAiGimA.png" /></figure><ul><li>In the LoadBalancing section, create a Load Balancer for the Service by choosing an Application Load Balancer. The Load Balancer servers as the endpoint to reach the Service running in the HelloWorldCluster, it’s not advisable to access the Service directly. We use <em>nginxdemos-hello</em> as the load balancer name, review other tabs, and set the load balancer target group name as <em>tg-nginxdemos-hello</em>, leave other sections as default, and create the Service.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-2yJrkC3_h2yeHXYeTiJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pH4UQL0xVpD3F_N6ytXFuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCLo7df_ildcRrJd65d86Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zb2XPtgxsqAysizupxh4qw.png" /></figure><ul><li>The Service is created, click on the target group of the service, and you will notice the target group is attached to the Load Balancer and a Registered Target(running container with an IP Address) is deployed in the Service. Open the Load Balancer in a new tab, copy the Load Balancer endpoint(DNS Name), and paste it to a new tab of your browser, and we see the <em>nginxdemos</em> page. We have successfully deployed a <em>nginxdemos/hello</em> image as a Service in an ECS Cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WhrmFcd3N-fM5odR-uCzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z1BqiMShrWaGMmHVLgzECA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GBf9lrorKiGaS20cqZ8shA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ryVXbyc9N6RCJwk0CSx7Zg.png" /></figure><p>3.<strong> Clean-Up</strong></p><ul><li>Having completed the guide, clean up the resources to avoid unnecessary charges in your AWS account, delete the ECS Cluster first, delete the Cluster namespace, and deregister the task definition. Then delete the Load Balancer and Target Group in the EC2 service console of your AWS account.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2185f9413424" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Project #1, Serverless Sending Application]]></title>
            <link>https://medium.com/@tomiwaaribisala/cloud-project-1-serverless-sending-application-8e0514ccca73?source=rss-3944ad7bbdf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e0514ccca73</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[lambda-function]]></category>
            <dc:creator><![CDATA[Tomiwa A.]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 08:06:23 GMT</pubDate>
            <atom:updated>2023-03-22T08:06:23.582Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is a beginner’s guide to my exploring opportunities around building mini-cloud projects. This first project entails building a serverless SMS/Email sending application for sending Email and SMS from a website(hosted on Amazon S3) using AWS serverless services(SES and SNS).</p><p><strong>The Project</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wAMsXga4ZpQuU0PidAnAzg.png" /></figure><p>0. This project employs AWS Lambda — a serverless, event/response driven compute service that lets you run code for any type of application or service without provisioning or managing servers. Lambda’s strength lies in its ability to interact with other AWS services. In this project, Lambda interacts with Amazon Simple Notification Service(SNS) for sending SMS, Amazon Simple Email Service(SES) for sending email, and StepFunctions to send data received from an API. For Lambda to talk to these services, it needs permission to use them.</p><ol><li>I created a Lambda Role via Identity Access Management(IAM) which contains full access permissions for Lambda functions(deployed in a later phase) to interact with SNS for sending SMS, SES for sending email, and StepFunctions to send data received from an API.</li><li>Two Lambda python functions were created via AWS Lambda; both of which use the Lambda Role created earlier. The first Lambada function(<em>email.py</em>) configures an SES identity(a source email address) with an instruction to send an email message to a recipient email address input from a website page. The second Lambda function(<em>sms.py</em>) configures an SNS identity(a source phone number) to send an SMS message to a recipient phone number input from a website page. Both Lambda functions send a return message to a StepFunctions state machine to confirm they are been activated.</li><li>StepFunctions was used to create a state machine; a state machine confirms the type of sending — either SMS or Email(whichever input from the website page) to a recipient&#39;s email address or phone number. The state machine(written in JSON) embodies two states: an Email State which holds the ARN of the <em>email.py</em> Lambda function; and an SMS State which holds the ARN of the <em>sms.py</em> Lambda function.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8vW4EBMKikjJrgpSezCARg.png" /></figure><p>4. I created a third Lambda python function(<em>restapiHandler.py</em>) which uses the existing Lambda Role; this function captures the StepFunctions state machine <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> created earlier, it receives data sent by a REST API, and returns the data to the StepFunctions state machine.</p><p>5. Amazon API Gateway was used to create a REST API; an API act as a front door for applications to access data, business logic, or functionality from its backend services. The REST API(which uses a POST method) captures the <em>restapiHandler.py</em> Lambda function created earlier; such that for every POST method(data published from the website page to the API), the REST API will receive the data and pass it to the <em>restapiHanlder.py</em> function. The REST API is deployed to a website&#39;s Javascript code via an API URL. I verified the REST API Invoked URL with the <a href="https://www.postman.com/">Postman</a> API platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIYMReLF8Vw9QcUHOGomXQ.png" /></figure><p>6. I created a website page(<em>index.html</em>) which is a form to fill in a message and the recipient&#39;s phone number/email address; the HTML website page is linked to a script(<em>formToApi.js</em>) capable of sending the data filled on the website page to the REST API URL. I uploaded the html and script files to an S3 bucket which uses a static website hosting configuration and a bucket policy to make the website page publicly accessible <a href="http://cif-project2-sending.s3-website-us-east-1.amazonaws.com/">online</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e0514ccca73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WRITING SHELL SCRIPTS: A BEGINNER’S GUIDE]]></title>
            <link>https://medium.com/@tomiwaaribisala/writing-shell-scripts-a-beginners-guide-c55a126ded7f?source=rss-3944ad7bbdf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c55a126ded7f</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash-scripting]]></category>
            <category><![CDATA[shellscripting]]></category>
            <dc:creator><![CDATA[Tomiwa A.]]></dc:creator>
            <pubDate>Mon, 12 Sep 2022 16:52:06 GMT</pubDate>
            <atom:updated>2022-09-13T13:37:38.422Z</atom:updated>
            <content:encoded><![CDATA[<p>***I assume you are familiar with a Linux distribution, the command line, the terminal, the bash shell, and basic shell commands****</p><p>In the simplest terms, a shell script is a file containing a series of commands. The shell reads this file and carries out commands as though they have been entered directly on the command line. To successfully create and run a shell script, we need to do five things:</p><ol><li>Put our script somewhere the shell can find it.</li><li>A text editor to write our script.</li><li>Save our script.</li><li>Make our script executable.</li><li>Run our script.</li></ol><p>For locations where the shell can find our script, I advise you to create a directory(preferably <strong>bin</strong>) in your <strong>home(~) directory(via your terminal) </strong>and store your scripts in the bin directory.</p><p>Good locations for scripts:</p><p>Personal use: ~/bin</p><p>Everyone use: /usr/local/bin</p><p>Sysadmin: /usr/local/sbin</p><p>Locally compiled software: /usr/local.</p><p>I use Kali Linux OS, the Mousepad text editor comes default with the operating system, below is an image of my text editor(opened via the ~/bin directory).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IokcQdNiiper7MXuG__MSw.png" /></figure><ul><li><strong>Writing your first Shell Script:</strong></li></ul><ol><li>a) To begin with, start a new file in your editor. You need to tell your OS which interpreter you want to use for the script. To do this on your text editor, enter a shebang — a combination of a hash mark and an exclamation mark. You also want to use the OG — Bash shell interpreter alongside the shebang.</li></ol><ul><li>#!/bin/bash</li></ul><p>b) Next, we write a comment for our script. The bash shell knows a line is a comment if it starts with the # character, the shell does not run a comment, a comment is only an indication of the information our script entails.</p><ul><li># This is our first script</li></ul><p>c) We use the <strong>echo</strong> command alongside a text we want to run in our script.</p><ul><li>echo “Hello World”</li><li>exit</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBMQMdDlxON9E0U8fGSAZA.png" /></figure><p>2. We save our script file using the common(Ctrl-S) save mode. You can save your script file with any name you prefer and preferably with a <strong>.sh, </strong>saved mine as <strong>hello_world.sh</strong>. Remember your script was opened via an editor in your ~/bin directory, your script should be saved in the ~/bin directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*st0t9pgovoBuyoWS8ny06A.png" /></figure><p>3. By default, a newly created script file is not executable by you, the owner. There are two common permission settings for scripts; 755 for scripts that everyone can execute and 700 for scripts that only the owner can execute. Scripts must be readable to be executed. We give ourselves permissions as the script owner in order to run the script, let’s exit our text editor interface temporarily and use the <strong>chmod</strong> command to make our script readable via our terminal, in the ~/bin directory.</p><ul><li>chmod 700 hello_world.sh</li></ul><p>We check if our script file is readable using the <strong>ls -l</strong> list command; by default our script file has the<strong> read-write(rw)</strong> permissions enabled for the owner, after using the chmod above, we see below our script file has the <strong>read-write-execute(rwx)</strong> permissions enabled. Our script is ready to execute!</p><ul><li>ls -l</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2rpRfOzFd86EJQ5_8zBLoQ.png" /></figure><p>4. We run our script in the terminal in our ~/bin directory by putting a ./ before the filename, this tells the system that we want to execute this script in the file hello_world; it also tells the system that if there is another file in another directory named hello_world — please ignore it and only run hello_world in the current directory.</p><ul><li>./hello_world.sh</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bShnz5EiNNKkBN_PLBr-4A.png" /></figure><p>There you have it, you just wrote your first shell script!</p><ul><li><strong>Writing Advanced Shell Scripts:</strong></li></ul><p>To write more scripts, we add more functionality by including variables, constants, user input, and functions. We open a file in our text editor for each script, save the script in the ~/bin directory, make the script executable and run the script.</p><ol><li>The bash script below highlights the use of variables and user input.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QQ_PrS52VfSA9xF0uWi2bQ.png" /></figure><p>2. The bash script below highlights the use of <strong>nmap</strong>(a tool in Linux used to probe a system to see whether it is connected to a network and find out which ports are open/closed in a network) for scanning public IPs with port(3306) — MySQL installed in a local area network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LG70D-qT4EnjQTerT4jM5Q.png" /></figure><p>3. The bash script below highlights checks on our system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u15Za1WZjSLvxEfvE_tMSQ.png" /></figure><p>4. The bash script below highlights our system information, the script employs <strong>variables, constants, and shell functions</strong>. The word variable implies a value that changes, and in many applications, variables are used this way. A constant is like a variable in that it has a name and contains a variable; the difference is that the value of a constant does not change. A common convention is to use uppercase letters to designate constants and lowercase letters for the variables. Shell functions are mini scripts located in a script or inside another script and can act as autonomous programs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11e6GmNkF-Hkxz6eEchf0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUA8fkp7knFoFhHaxtxauw.png" /></figure><p>Shell function format:</p><p>name () {</p><p>commands</p><p>return</p><p>}</p><p>where name is the name of the function and commands is a series of commands contained within the function.</p><p>You can find the above scripts via my GitHub <a href="https://github.com/TomiwaAribisala-git/Shell-Scripts">repository</a>, happy shell scripting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c55a126ded7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IP, IP ADDRESSING: A BEGINNER’S GUIDE]]></title>
            <link>https://medium.com/@tomiwaaribisala/ip-ip-addressing-a-definitive-guide-2022-7c0db5bff2ec?source=rss-3944ad7bbdf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c0db5bff2ec</guid>
            <category><![CDATA[ip-addressing]]></category>
            <category><![CDATA[dhcp]]></category>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <dc:creator><![CDATA[Tomiwa A.]]></dc:creator>
            <pubDate>Sun, 03 Jul 2022 12:03:10 GMT</pubDate>
            <atom:updated>2022-09-09T21:44:14.902Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you want to send a parcel to a friend living abroad, you’ll need his address so that the postal service can deliver it. Similarly, your computer needs to know the location of a website on the internet or a computer on a <a href="http://fcit.usf.edu/network/chap1/chap1.htm)">network</a> to contact it. This is where the IP address (often called IP) comes into the picture. IP is a unique identifier for machines in a network. IP addressing provides a logical addressing scheme for computers to communicate on networks, being logical means an IP address can be changed with minimal fuss at any time, unlike a MAC(media access control) address, which is physically embedded in devices.</p><p>In layman’s language, an IP address tells the exact location of a website on the internet or a computer in a network, it’s one of the parameters that devices need to talk to each other. Likewise, without a standardized protocol, your computer cannot talk to a website on the internet. This protocol is called TCP/IP.</p><p><strong>TCP/IP: </strong>TCP/IP is a communication protocol that powers the internet. It allows computers to speak with each other via the internet. TCP/IP has two layers: TCP and IP.</p><p><strong>TCP: </strong>which stands for Transmission Control Protocol is the upper layer. It breaks information-data packets or simply packets and sends data packets on their way(to another TCP/IP protocol suite at the destination suite). Data packets are passed through multiple in-between stations called gateways, once packets reach their destination, it is the job of the receiving TCP/IP protocol suite to collate data correctly.</p><p><strong>IP: </strong>known as Internet Protocol, it forms the lower layer of the Internet Protocol Suite. It has the primary function of tagging each data packet with information regarding its source and destination. If the internet address of the destination is missing, a data packet will not be delivered. In summary, TCP takes care of how data is packetized, while IP ensures these packets reach their correct destination.</p><p><strong>IP versions(IPv4 and IPv6)</strong></p><p><strong>IPv4: </strong>Released in 1981, IPv4 is the original internet addressing system. It follows a 32-bit binary number, the IP address format, in this case, has four sets of 8-bit octets with numbers ranging from 0 to 255 and separated by a period. To determine the portion of network/node an IP address belongs to, we implement a <a href="http://avinetwork.com/glossary/subnetmask">subnet mask</a>.</p><p>IP Address: 192.168.1.9</p><p>Subnet Mask: 255.255.255.0</p><p>To show the above IP address in bits-size(binary representation), we use the IP logic table below:</p><p><a href="https://sheetsu.com/tables/dadda3ef5b">https://sheetsu.com/tables/dadda3ef5b</a></p><p>We divide each octet of the IP address by the IP logic table, the first octet for instance;</p><p>128 out of 192: 1 remainder 64</p><p>64 out of 64: 1 remainder 0</p><p>32 out of 0: 0 remainder 0</p><p>16 out of 0: 0 remainder 0</p><p>8 out of 0: 0 remainder 0</p><p>4 out of 0: 0 remainder 0</p><p>2 out of 0: 0 remainder 0</p><p>1 out of 0: 0 remainder 0</p><p>Applying this division rule across other octets, you derive the bits size(binary representation) of the IP address as stated below:</p><p>192: 11000000</p><p>168: 10101000</p><p>1: 00000001</p><p>9: 00001011</p><p><strong>Classes of IPv4 address:</strong></p><ul><li><strong>Class A network address:</strong></li></ul><ol><li><strong>Address Range: </strong>0 to 126 in the first octet, 0.0.0.0 to 126.255.255.255., 127.0.0.1 to 127.255.255.255 is reserved for loopback functions.</li><li><strong>Binary Representation:</strong> 0XXXXX</li><li><strong>Nodes address available: </strong>16,777,214</li><li><strong>Subnet mask:</strong> 255.0.0.0</li><li><strong>Example: </strong>102.168.212.226, 102. (8bits) represents the network octet, 168.212.226(24bits) represents the host&#39;s octet.</li><li><strong>Used for a large number of hosts.</strong></li></ol><ul><li><strong>Class B network address:</strong></li></ul><ol><li><strong>Address Range: </strong>128 to 191 in the first octet, 128.0.0.0 to 191.255.255.255.</li><li><strong>Binary Representation:</strong> 10XXXXX</li><li><strong>Nodes address available: </strong>65,534</li><li><strong>Subnet mask:</strong> 255.255.0.0</li><li><strong>Example: </strong>168.212.226.204, 168.212(16bits) represents the network octet, and 226.204(16bits) represents the host&#39;s octet.</li><li><strong>Used for medium-sized networks.</strong></li></ol><ul><li><strong>Class C network address:</strong></li></ul><ol><li><strong>Address Range: </strong>192 to 223 in the first octet, 192.0.0.0 to 223.255.255.255.</li><li><strong>Binary Representation:</strong> 110XXXX</li><li><strong>Nodes address available: </strong>254</li><li><strong>Subnet mask:</strong> 255.255.255.0</li><li><strong>Example: </strong>192.168.178.1, 192.168.178(24bits) represents the network octet, and .1(8bits) represents the host&#39;s octet.</li><li><strong>Used for local area networks.</strong></li></ol><ul><li><strong>Class D network address:</strong></li></ul><ol><li><strong>Address Range: </strong>224 to 239 in the first octet, 224.0.0.0 to 239.255.255.255.</li><li><strong>Binary Representation:</strong> 1110XXXX</li><li><strong>Subnet mask: Not Defined. Class D addresses are 32-bit network addresses, all the values within the range are used to identify multicast groups, therefore, there is no requirement to extract the host address from the IP address. Thus, Class D does not have any subnet mask.</strong></li><li><strong>Used for multicast communication.</strong></li></ol><ul><li><strong>Class E network address:</strong></li></ul><ol><li><strong>Address Range: </strong>240 to 255 in the first octet, 240.0.0.0 to 255.255.255.255.</li><li><strong>Binary Representation:</strong> 11110XXXX</li><li><strong>Class E addresses are reserved for research and development purposes. Therefore, many network implementations discard these addresses as undefined or illegal.</strong></li></ol><p><strong>Classless IPv4 Addressing: </strong>This topic addresses Classless Inter-Domain Routing(CIDR) Notation, IP Subnetting, identifying your network IP, broadcast IP, and usable IP ranges in a network.</p><p>I recommend this Youtube <a href="https://www.youtube.com/watch?v=POPoAjWFkGg&amp;t=623s">video</a> to help you learn it.</p><p><strong>IPv6:</strong></p><p>IPv6 is the answer to the question “What do we do about running out of IPv4 addresses? IPv6 and IPv4 work at Layer 3 of the OSI Model; its major focus is logical network and host addressing. IPv6 is a 128-bit binary addressing scheme, an IPv6 address is eight sets of four hexadecimal numbers with each set separated by colons, an example below.</p><p>IPv6 address: 2001:0db8:0000:0000:ff00:0042:8329</p><p><strong>IP Addressing: </strong>A computer will receive its configuration in one of two ways; statically set or automatically(through a service like DHCP). No two computers can have the same IP.</p><ul><li><strong>Static IP Addressing: </strong>If network administrators have to assign IP addresses manually, they would have to do a lot of cross-checking to avoid duplication and this is where a DHCP server proves handy.</li><li><strong>Dynamic IP Addressing:</strong> Here, an administrator configures a DHCP server; DHCP stands for Dynamic Host Configuration Protocol and it runs at the application layer of TCP/IP. DHCP issues unique IP addresses and configures network information. In large networks, a single Linux or Windows network server could perform the role of a DHCP server.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c0db5bff2ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>