March 24, 2020

Simple Introduction to Computer Network and the Internet

Table of Contents

0. Outline

This topic would like to show you from afar what a computer network looks like. We won't show you deep inside because that's where things tends to get difficult, for example subnets, network traffic, protocols, etc. Simply we want to Introduce what is the computer network, how today's people rely on it now, and how is it even or how we are able to use it. From afar The Internet looks complicated as on Figure A, but to explain it simply it's a connection of so many nodes consist of computer, servers, and other networking devices.
Figure A. Internet Illustrated


If some stranger asked you of what is The Internet and you can answer simply, then you got the gist of this course. If you can find the puzzle pieces and form the picture of The Internet puzzle, then you have fulfilled the learning objective of this course. For now we would like to list the following learning objective. Simulate Local Area Network (LAN). Simulate Wide Area Network (WAN). Common services of The Internet. Design your simple cloud (Figure B for example).
Figure B. Sample Network Simulation

Simulation Environment

If you have the hardwares to perform your experiment it's very suggested to make use of them, but here we will give the materials in simulations. My experiences in network simulators is that I found Cisco Packet Tracer the easiest to use (very recommended for beginners), but to obtain this software legally you need to enroll into Cisco Academy. We understand that not all have access to this software, so we decided to use alternatives. If you have a legal Cisco IOS image Gui Network Simulator 3 (GNS3) is your next alternative, if not then search for other free network simulator. Here we use Common Open Research Emulator (Core) Network

1. A tour around todays Network

1.1 Definition

This contains two words "computer" and "network" is a connection of computer devices in order to exchange data with each others refer to Figure 1.1. It doesn't matter how it is connected or what it is connected, whether we are using wired like serial cable, UTP, fiber optic, and usb, or wireless for as long as it's connected it is a computer network. A computer network is not limited to private computers (PCs), computer devices such as gadgets, mobile phones, printers, and gaming consoles are counted into computer network. The place where these devices interact with each other is the computer network.
Figure 1.1 Illustration of simple computer network

1.2 The Internet

On the previous Figure 1.1 there are lots of device connected and one Earth like planet. The Earth like planet is a very large network and who knows how much is inside, so we just referred it to The Internet. The Internet contains connection of computer devices around the world. The Google server which was first in Standford University, now had many server distributed around the world. It also goes for Yahoo and MSN. Facebook is in United State, Line is in Japan, and if you're accessing this course through Moodle cloud, the head quarter (HQ) is in Australia. They made these sites publicly available on the network called The Internet. There are many stuffs available thanks to The Internet, following are examples:

Search Engines on Figure 1.2.
Figure 1.2 Google

Wikis on Figure 1.3.
Figure 1.3 Wikipedia

Social Medias on Figure 1.4.
Figure 1.4 Facebook

Online Videos on Figure 1.5.
Figure 1.5 Youtube

Online Courses on Figure 1.6.
Figure 1.6 Coursera

Online Games on Figure 1.7.
Figure 1.7 Dota2

Personal Websites (blogs) on Figure 1.8.
Figure 1.8 Wordpress

Emails and Chats on Figure 1.9.
Figure 1.9 Yahoo Mail

Cloud Services on Figure 1.10.
Figure 1.10 Cloud9

2. A Computer Network

2.1 Types of Computer Network

Figure 2.1 is a summary of this topic.
Figure 2.1 Types of Computer Network Summary

2.1.1 Peer-Peer (P2P) Network

A peer to peer network is a network consist of only 2 device, whether it is wired or wireless. It's like a conversation between 2 people on Figure 2.2.
Figure 2.2 Peer-Peer Network

2.1.2 Local Area Network (LAN)

When another device joins with peer-peer network, it then becomes a local area network (LAN). A LAN consist of more than 2 device that can be connected through a bus cable, a layer 1 Hub, or a layer 2 switch. For this course we just show the simple part on Figure 2.3 is a LAN consist of PCs connected to a L2 switch.
Figure 2.3 Local Area Network (LAN)

Wide Area Network (WAN)

A wide area network (WAN) is network consist of 2 or more LAN which definitely larger than a peer-peer network and a LAN. It is said that The Internet is the largest WAN. On Figure 2.4 shows a minimal WAN consist of of 2 LAN where they are connected by a L3 router.
Figure 2.4 Wide Area Network (WAN)

2.2 Some Information

2.2.1 Internet Protocol Version 4

Each computer devices has 2 commonly known address. One is a hardware address (usually MAC: e0:3f:49:c3:36:dc) and network address which today use internet protocol version 4 (IPv4) and in the future will implement IPV6. The hardware address we judge as a later topic so we will only explain the correlation between hardware address and network address is they synchronize by a process called network address translation (NAT).
Today we still use IPv4 address to connect to the network. The IP address for example or is not on the computer itself, but assigned on the network interface (cable ethernet adapter, wireless adapter, etc). The last part of the IP address (, or is the subnet mask which the determines the networks it belongs to. On the network:
  • The first IP address is a network address.
  • The second IP address is usually assigned on the default gateway.
  • The last IP address is the broadcast address.
  • The remaining IP address is assigned to other devices or each PCs.
The subnet mask determines the class of the IP address. Class A network can store more IP address, class B is less than class A, and class C is the least. There are also classless IP address based on subnet mask, but it's regarded as advance topic, so it will not be discuss here. Here we only use class C private IP address from -
Class Subnet Total address
A or /8 16277215
B or /16 65535
C /24 255
After an IP address there is a slash (/) indicating the subnet mask based on the number of binary "1" containing on the subnet mask when converted to binary value. That's also advance topic but we would like you to remember the following: /8 /16 /24
You may write it like this or By the way a private IP address is an address we can use on the network outside The Internet and public IP address are other than private address that are registered on The Internet.
Class Private IP Address
C -
We will only be using class C private IP address. Back on the topic of network address, default gateway, broadcast address, and host address examples as follow:
Subnet Mask Network ID Default Gateway Host ID (Free Address) Broadcast ID or /24 - or /24 - or /16 - or /8 -
If you return to section 2.1 of an IP address assign, for example belongs to network, and belongs to network

2.2.2 Open Systems Interconnection Model

he Open Systems Interconnection had 7 layers or referred as OSI layer which a network technician must have heard at least once on Figure 2.5.
Figure 2.5 Osi Layer
It's also an advance topic so we cover only the outline. L1 Physical is on the physical transmission media site like the ethernet cable, fiber optic, or radio wave. L2 Data Link is on the hardware address MAC for example, this layer groups the bits received in transmission. L3 Network is on the network address, IP address for example and defines the routing mechanism. L4 Transport is the transport mechanism use, TCP or UDP for example. L5 Session creates a session. L6 Presentation and L7 Application is what we see on the screen, interfaces the we directly interact with.

3. Simple Routing

3.1 Default Gateway

On our PCs on everyday life we at least have 4 configuration that we need set which are (1) IP address (2) Subnet Mask (3) Default Gateway (4) Dns Server, as on Figure 3.1.
Figure 3.1 Common PC network configuration
If on the previous assignment you were using Core Network to simulate a simple WAN, the default gateway or route on each PCs are automatically set (also the IP address on the PCs and Router). What if we're on the situation to set it manually? Considering we have a PC and want to connect to the Internet on an available network that gives access to The Internet. Roughly a peer said "you may connect to our switch, our network is, and the router's inside IP address is, (psssst, for DNS just use Google's for now)". With that information we configure our PC as example on Figure 3.2:
Figure 3.2 Filled Manual Host Network Configuration
Now what is a default gateway? On this configuration a default gateway is the gate we go through to connect to another network, or a door to get out of our network. On our PC's configuration is the door to connect to The Internet. We can illustrate this as house, our house had many rooms with each room has its own address. Where do we go to go to another house? The answer is the "front door" which is equivalent to the "default gateway".
Next let's try connecting 2 LANs and manually configuring them. Say the previous network is and we want to connect it to a neighbor network of It's best we generate a table as in section 2, then to test whether we can go to our neighbor using "trace route" command on Figure 3.3. From To reach the neighboring network first must go through the interface of router that has the address of (default gateway), then it reaches the destination
Subnet Mask Network ID Default Gateway Host ID Broadcast ID or /24 - or /24 -
Figure 3.3 Trace routing on neighboring network on Core

3.2 Static Routing

You might need to properly install and configure Quagga to perform this simulation. Please search for tutorials (simulation setup coming soon).
The Internet is said to be the largest WAN in the World, so routing is not something we can ignore. The first form of routing is static routing where we form our path manually. If we have many connections (interface) on our PCs we can set its routing, but by default the only route is via default gateway. On the previous section when we set the default gateway means that to go anywhere else other than the local network we go through, or we can say it "default via", or " via", means "[to go anywhere] [via] []". This is a static route but a default one. Say that we want to connect to another WAN, our router must know the route. Manually we teach the router (static route) on Figure 3.4 and Figure 3.5.
Figure 3.4 Static routing configuration of R1
Figure 3.5 Static routing configuration of R2
Connecting R1 and R2 cost us another LAN, in other words connection of R1 and R2 is on LAN On Figure 3.4 we want to tell R1 that to go to network is through R2. So the command is ip route add via n Figure 3.4 we want to tell R2 that to go to network and is through R2. So 2 commands are involved because we want to define for 2 networks, are ip route add via and ip route add via Setting only one of the router will not do, since in reality we exchange informations 2 ways. We be able to send a message to other side, but the other side won't know which way to go to reply the message.
Figure 3.6 GIF Image to activate static route configuration
Figure 3.7 GIF image in trace routing from n1 to n10 and n11 to n6
On Figure 3.6 is a GIF image to set a static route on a router in Core-Network. Finally on Figure 3.7 we check whether the networks are connected using trace route. From n1 to n10 we see that it will go through the first router on gateway, then R1 routes it to R2 on gateway, which in the end reaches Next we tried from n11 to n6, we see that it will go through the first router on gateway, then R2 routes it to R1 on gateway, which in the end reaches

3.3 Dynamic Routing

Imagine how much static route you must configure on the scale of a network like The Internet. It'll still be better if The Internet is a fixed size but in reality is growing larger every second, on top of that configurations may changes every time. Static route is inefficient to implement, instead why not let the router search for the route for themselves? With us only teaching them the method of how to find a route. As the headline of the section, that is dynamic routing which is an automatic/self update routing based on the defined method. We will cover only the way to configure a router information protocol (RIP) dynamic routing (not even the theory behind it), as further is out the syllabus.
Figure 3.8 RIP configuration on R1
Figure 3.9 RIP configuration on R2
On Figure 3.8 is the RIP configuration of R1 where we add the networks,,, and on Figure 3.9 is the RIP configuration of R2 where we add the networks, Basically we give the information of the networks that is directly connected to router on the RIP configuration. If I'm correct, using RIP will make routers exchange informations with each other of which networks are attached to them. If we want to add another network then we just need to add the network ID, unlike static routing which we must manually define the gateway. Without doubt on that the networks will be connected as on Figure 3.10.
Figure 3.10 GIF image of trace routing
How to open configuration of RIP on Core-Network is on Figure 3.11. Lastly, on this section this might be RIPv1 (I haven't check) and if it so it will not support classless networks (other than /8, /16, /24), so try the RIPv2 or other dynamic routing protocols.
Figure 3.11 GIF image of configuring RIP on Core-Network

4. Common Features on The Internet

4.1 Dynamic Host Configuration Protocol (DHCP)

The DHCP service lets automatic IP configuration on a client. The client simply ask around the LAN whether a server can give the client an identity. As on the following figures the server may give an IP address, DNS, and default gateway, which depends on the server's and client's configuration. Below are figures of example DHCP on Core-Network.
Figure 4.1 Disabling manual IP and activate DHCP
Figure 4.2 DHCP server configuration
Figure 4.3 Client receives configuration
On Figure 4.1 we activate DHCP and disable manual IP assigning on all clients. On Figure 4.2 we configure the DHCP server with pool of IP address from - and the DNS server is itself, the option router equivalent to the default gateway, and on FIgure 4.3 is the configuration obtained on a client. On the real PC most configuration are DHCP as default as on Figure 4.4.
Figure 4.4 Default DHCP setting for Network Manager

4.2 Domain Name Service (DNS)

A DNS server may contain list of domain names of addresses. For example I have a web server on, without DNS I have to type to access the web page through my browser. For me it's too hard to remember, instead I'd to give my server a domain name or register a domain name to my server. Say I would like to give to Whenever I write will correspond to DNS translated an IP address to domain name and vice versa.
Figure 4.5 Dig the domain name
I tried to simulate DNS on Core-Network but cannot find the feature. So I have to manually define a DNS server on the simulator by installing and connecting a real DNS server on my machine. I used bind9, I'm not familiar with the configuration, so I skip the explanation here and show that I have configured as on Figure 4.5.
Figure 4.6 Try DNS on Core-Network
I made a DNS server on the Core-Network using the userdefined feature (connecting Bind9 to it) and successfully ping using the domain name on Figure 4.6. If you look closely it's like a picture of a mini version of The Internet considering a PC wants to connect to (this is my mini version of The Internet). If we install a web browser on then we access it on the browser. To check a domain name on real network use dig or nslookup.

4.3 Web Server

A web page uses Hyper Text Transfer Protocol to display the page on the browser. To be honest it's very wide and the only thing we can show you here is this example web page use to develop this content. Installing a web server on a machine allows information exchange using the web browser. A free web browser is Apache2, for beginners may use bundles like XAMPP or LAMPP. Lastly on section 4, if we combine everything up till now, we can create a tiny version of The Internet.
Figure 4.7 Apache2
Figure 4.8 Elearning Moodle

March 18, 2020

The Deals of Going to School

As a businessman, entrepreneur, or investor it is important to know of how to find deals, how to evaluate deals, how to make deals, and how to seal deals. Looking from certain lenses, going to school can also be seen as a deal. Here I will state my deals perspective of going to school based on different variables and evaluated in likert scale.


School can either cost or pay you.

  1. Student loan is the worst deal. To study, you need to be in bad debt.
  2. Expensive cost is a bad deal. It cost you a lot of money to study.
  3. Affordable cost is an okay deal. Most people are here.
  4. Conditional scholarship is a good deal. Eventhough you have to work for few years afterwards but you are still paid during both studying and working.
  5. Unconditional scholarship is the best deal. You get paid for studying and you are free after that.


If you are forced to go to school or chose the wrong field, you need free time to do your passion.

  1. Enslavement is the worst deal. You are exploited to do this and to do that for example, you are being treated as a paper machine.
  2. Busy is a bad deal. You barely have enough time for yourself, when are you going to start doing what you want to do?
  3. Balance is an okay deal. Put just enough effort to finish school but do what you are passionate about on your free time.
  4. Leisure is a good deal. You will have the time to do your passion or main goal, don't waste it.
  5. Freedom is the best deal. This happens during my PhD, I am in charge of my own schedule of when I should work and when I should not and only obligated to report every week and I performed well with minimum effort while the rest of the time I used them to catch up with the history of the world, the economy, news, and learn what I am passionate about such as investing.


  1. Being forced to school is the worst deal. Almost all the time being forced never turns right or at the very least a bad affect in the long run.
  2. Want to go to school but found out later that the field doesn't suit is a bad deal. Quickly change or get out.
  3. The school is below your expectation is an okay deal.
  4. The school is in line with your passion is a good deal.
  5. The school is beyond your expectation is the best deal.

Education Quality


  1. Worst quality = worst deal.
  2. Bad quality = bad deal.
  3. Okay quality = okay deal.
  4. Good quality = good deal.
  5. Best quality = best deal.

Social Network

If the school is:

  1. Filled with hostile students is the worst deal. If you can convert them into friends is a great thing, great skill to learn, great experience but very risky because they can destroy you.
  2. Filled with unsocial students doesn't suit is a bad deal. It means nothing if you can't befriend them.
  3. Filled with friendly students is an okay deal. Why you should go to school instead of homeschooling is to make friends.
  4. Filled with achieving students is a good deal. They are potentially great partners in the future.
  5. Filled with friendly achieving students is the best deal. Less effort to find great partners.

My Schools' Perspective

I'm not going to mention the schools, you may do a background check on me, here are my opinions:


Finance: affordable

Freedom: leisure

Passion: inline

Quality: okay

Social: friendly

Average: okay

Primary School

Finance: affordable

Freedom: balance

Passion: inline

Quality: best

Social: friendly

Average: okay

Junior High School

Finance: affordable

Freedom: balance

Passion: below expectation

Quality: okay

Social: friendly

Average: okay

Senior High School

Finance: affordable

Freedom: enslavement

Passion: below expectation

Quality: good

Social: achieving

Average: okay

Undergraduate School

Finance: affordable

Freedom: busy

Passion: below expectation

Quality: good

Social: friendly and achieving

Average: okay

Master's Graduate School

Finance: unconditional scholarship

Freedom: leisure

Passion: inline

Quality: good

Social: friendly and achieving

Average: good

Doctoral Graduate School

Finance: unconditional scholarship

Freedom: free

Passion: beyond expectation

Quality: good

Social: friendly and achieving

Average: almost best

Considering going to school?

Souce Code


March 14, 2020

Question Checklist Before You Buy Bitcoin

Table of Contents

You May / Actually Highly Recommended

  • Download a bitcoin wallet and note your public and private keys.
  • Mine bitcoin.
  • Participate in airdrops, faucets, giveaways, and other free stuffs.
  • Become a merchant that accepts bitcoin.
  • Have channels for exchanging bitcoin whether peer-to-peer, centralized exchange, or decentralized exchange.
  • Buy maximum $10 of bitcoin.

The Risk of Rushing into Bitcoin

The risk is from yourself. If you are not mentally strong enough, you will not able to handle the volatile market. Tomorrow, it may rise by a thousand dollars but the next day may drop by two thousand dollars. You will become like the FOMO losers who buy when the price is high and sell when the price is low especially if you are here to get rich quick. When people asks you why you buy bitcoin and you only answer "to get rich" they will eat you alive.

Question Checklist Before Buying More Bitcoin

The bitcoin March 2020 crash.
In 2 days the bitcoin price crashed from around $9000 to $5000. Have you learned your lesson? This is a question directed not to professional traders, supporter, or technologist, but to you who are only here to get rich quick. Therefore, here are some questions I recommended you to answer before diving into the market again especially for you who haven't dive into the market but considering.

1. Do you know how the current global monetary system is created and how it works?

  • To understand the significance of bitcoin, you need to know how the current monetary system works.
  • How is your money created?
  • Where does it come from?
  • Who controls it?

  • You at least need to know the Bretton woods system in 70s and how it was replaced by the freely floating fiat currencies. I learned this from Mike Meloney.
  • Dollar purchasing power chart.

2. Have you studied some previous monetary crisis'?

3. Do you know why bitcoin was created?

  • Other than its innovation, early bitcoin was created to free the monetary system from the monopoly of the central banks.
  • At least from what I think based on the early message on the genesis block "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks".
  • Genesis block 2009 second bail out.
  • Go back to the past and go the inventors shoes and think why they decided to build bitcoin in the first place. Andreas Antonopoulos explains very well in his book and talk the Internet of Money, this is where my stance in bitcoin changes.

4. Do you know what bitcoin is and how it works?

At least watch a short video how bitcoin works.

5. Do you know the benefit of bitcoin?

6. Do you know the challenges of bitcoin?

Until you understand them, you should not buy more bitcoin because not only you are leaving yourself vulnerable, your future actions will burden the entire cryptocurrency community and those who really needs cryptocurrency like the unbanks, the discriminated, etc. The best approach is to educate yourself first.