2026-07-15 13:29
Status:
Tags: Coursera Bits and Bytes of Computer Networking Google IT Certificate - Technical Support & Fundamentals Internet Network Software Linux Commands Debugging Windows Commands Command Line Terminal
BBCN - Module 6 - Troubleshooting and the Future
==Verifying Connectivity
-
Ping: Internet Control Message Protocol:
-
The most common issue you will encounter is not being able to connect to something
-
Basically, if data is failing to send over, say a port is closed, an IP address is not recognized, or even the TTL number is going down to zero
-
Basically, you use the PING command, or the Internet Control Message Protocol
-
ICMP is mainly used by a router or host to communicate why data failed to send over the internet
-
ICMP Packet
-
-
It consists of a header with a few different fields, and a main little data/payload field which holds the actual error information
-
It holds the type, which is 8 bits and specifies which kind of message is being delivered, destination unreachable
-
After that is the code field which has more information that just the type, like destination network unreachable, and destination port unreachable
-
Then is a check sum value which basically is just used for the correct data
-
Then there is a 32 bit field called Rest of Header which is just, the rest of the header, it is optionally used to fill out more fields
-
After this is the given Data payload section, it exists entirely so that the recipient of the message knows which of their transmissions caused the error being reported
-
It holds the ENTIRE IP header, and then also 8 bytes of the offending IP packet
-
There are two messages that are very useful to people, and also a tool called Ping, which allows you to test your connection rate with another computer
-
It exists on almost every single OS, and sends a special kind of ICMP message called an Echo Request
-
It basically asks if the destination is up and running, and if it is, it will send back an Echo Reply Message
-
You just type in ping x. x. x. x or whatever a valid host IP is, it sends back the replying address, as well as the time it took to send, and the TTL for it as well
-
-
Traceroute:
-
Traceroute- a utility that lets you discover the path between two nodes, and gives you information about each hop along the way
-
This basically helps you determine where in the chain of router hops that the real problem would occur
-
-
It manipulates the TTL field so it counts up the chain of reach router, being discarded and sent back after every single router, basically allowing for it to check each one
-
Basically sends out 3 identical packets for each of these router hops
-
-
This is output for traceroute on my current router to the google test server
-
Basically, on line, you see the number of the hop, the round trip time for that hop to occur for all three of the packets send, and you will also see the IP of each of the devices you hop to, as well as a possible host name (the dns.google)
-
On windows, this command has a different name called tracert and instead of using UDP messages like linux or mac, it instead uses echo requests, like ping does
-
Other tools include mtr for linux and pathping for windows, and act as sort of long running traceroute
-
-
Testing Port Connectivity:
-
-
These two commands, netcat, and test-netconnection are both used in order to test connection at the transport layer of the TCP/IP protocol
-
-
netcat is ran through the nc command which takes in two arguments, a host, and a port
-
So basically
nc google.com 80(the http port), will try to connect to the open port on google -
If the command fails, then you will see an error message, if it just does nothing and the cursor blinks then that means it has worked and it waiting for more argument, and this is how you can send more data to the application from your own keyboard
-
You can also just use the -z flag in order to test pure connection
-
The -v flag can also do this
-
Test-NetConnection basically does the same thing, but it needs the -port flag in order to check if can connect to a specific port
-
These tools are also much more powerful than just this though, and have lots of other functionality
-
-
Supplemental Reading for Testing Port Connectivity:
==Digging into DNS
-
Name Resolution Tools:
-
Sometimes you might want to try and resolve DNS issues, and this can be done via a tool called nslookup
-
-
It is a tool that is accessible to all of the OS systems you can probably think of
-
You execute
nsloopup <hostname> -
And then the output displays what server was used, and the look up result
-
-
Although it is much more powerful than just that though, you can enter in a nslookup ‘session’ and basically type in all of the names you want to look up possible
-
It will give you the standard output, however, if you want to test out a certain server, then that it will do is after using server and then the designated server, it will try to do all possible look ups via that server
-
If you want to see exactly what is going on, then you can type in ‘set debug’ which will give you the full response packets, all intermediary requests, and their full contents
-
-
Public DNS servers:
-
An ISP almost always gives you access to a recursive name server as part of the service that it provides
-
Most businesses also run their own DNS servers, which are generally needed in order to resolve internal host issues
-
Things like calling printers by a name instead of an IP, or calling laptops specific things requires given DNS servers
-
You can also use DNS as a service provider, and it can be useful to have a backup DNS just in case
-
Public DNS servers- name servers specifically set up so that anyone can use them, for free
-
It can be useful for troubleshooting any kind of issue that you might have
-
Some people also just use these as a means of their main DNS server
-
The following are the most popular public DNS servers
- 4.2.2.1
- 4.2.2.2
- 4.2.2.3
- 4.2.2.4
- 4.2.2.5
- 4.2.2.6
-
Google also has some public DNS servers, like 8.8.8.8 and 8.8.4.4
-
Most public DNS servers are available globally through anycast
-
-
DNS Registration and Expiration:
-
DNS is a global system with the 13 main top level servers (there is more than 13 now but still, root is root) owned by ICANN
-
Domain names need to be globally unique for a system like this to work
-
You cannot have someone use the same domain name as someone else
-
Registrar- an organization responsible for assigning individual domain names to other organizations or individuals
-
-
Basically, to get your own domain you go to the domain name registrar, select a domain that is open for use still, and then agree upon a price that you want to pay for that domain
-
Once you own the domain name, you can have the registrar’s name servers act as the registration name for the domain, or you can set up your own if you so wish
-
Domains can also be purchased from person to person, and in some cases from registrar to registrar, done using a key that proves you own the domain
-
You typically only own a given domain name for a certain number of years, and therefore need to make sure that you keep up with how long you own a domain name for
-
-
Host Files:
-
Before DNS existed, people needed a name based system for representing numbers like IP addresses
-
The original way that numbered network addresses were correlated with words was through host files
-
Host File- a flat file that contains, on each line, a network address followed by the host name it can be referred to as such as
1.2.3.4 webserver.comin a flat file -
These were basically on the OS level, and therefore are still sort of in use today, a DNS server is better, but host files are still used
-
Loop back address- basically a way of sending network traffic to yourself, it always points to itself
-
This bypasses the whole network infrastructure, and that data never leaves the node
-
The loop back IP for IPv4 is 127.0.0.1
-
Almost every host file in existence will contain a line that reads
127.0.0.1 localhostfollowed by::1 localhostwhere the ::1 is the loop back for the IPv6 -
Some software requires specific host file set up to work properly
-
Host files are also a popular way for computer viruses to disrupt and redirect user’s traffic, by just changing the files, you’re basically fucked
-
==The Cloud
-
What is The Cloud?:
-
The Cloud is just a concept.
-
Cloud Computing- a technological approach where computing resources are provisioned in a shareable way so that lots of users get what they need, when they need it
-
Hardware Virtualization- allows a physics a machine, called a host, to run basically many individual virtual instances at once, called guests, think of the server OS i have that runs like a Virtual Machine
-
Hypervisor- a piece of software that runs and manages virtual machines, while also offering these guests a virtual operating platform that’s indistinguishable from actual hardware
-
Basically, think proxmox
-
Whenever you have a large connection of this hardware sort of in one place, you have a system that lets you share these resources among a large number of these instances
-
Say you need 4 servers
-
An email server that needs 8 gigs of ram that needs to run on windows
-
A DNS server that needs to run on linux, and doesnt need too many real resources
-
A financial database server that needs 32 gigs of ram and a crap ton of storage, with a special version of linux as well
-
Then another one of those servers as a backup
-
Basically, this is 4 different physical servers that you would need to buy and set up, where instead you can just get a single server that runs a hypervisor that you can connect to virtually, and manage all 4 different instances that are running on the same machine
-
Or, even if you don’t want a physical server, you can pay to rent out a server that another company is hosting in order to accomplish all of the tasks that you would need, for cheap as well
-
This is a Public Cloud- a large cluster of machines run by another company
-
Private Cloud- used by a single large corporation and generally physically hosted on its own premises
-
Hybrid Cloud- a term used to describe situations where companies might run things like their most sensitive technologies or info on a private cloud, and the less sensitive stuff on a public cloud
-
-
Everything as a Service:
-
With the up rise of cloud computing, the term ‘x as a service’ has become more popular, where x can stand for a lot of different things
-
The topic described above would be described as Infrastructure as a Service (IaaS) which means you shouldn’t have to worry about building your own private networks or your own servers, you just pay for someone else
-
Platform as a Service (PaaS)- is a subset of cloud computing where a platform is provided for customers to run their services. Basically gives the consumer a place to run their application, like a web developer wanting to host a website or run in
-
Software as a Service (SaaS)- is basically a way of licensing the use of software to others while keeping that software centrally hosted and managed, think of maybe cloud gaming for example, or even things like gmail
-
-
Cloud Storage:
-
In a cloud storage system, a customer contracts a provider to keep their data secure and avaliable
-
This can include things like photos or basic documents, like one drive or something, to basically really big data bases, even github for things like coding projects
-
Without cloud storage, you have to worry about dealing with things like harddrives, but with cloud storage you don’t have to worry about the hardware, and cloud storage makes it really easy to access your data because you don’t need the drive, just an internet connection
-
It also provides pretty good safety, since companies like google are much safer than whatever you be able to do
-
==IPv6
-
IPv6 Addressing and Subnetting:
-
When IPv4 was first developed, a 32 bit number was chosen to represent the IP address for a node on a network, however, we have slowly run out of those
-
IPv 6 was developed because of this, and holds a lot more data
-
IPv 5 was an experimental protocol that introduced the concept of connections, it never really saw wide adoption, and connection was later better taken over by TCP and the transport layer
-
IPv 6 is much larger than IPv 4, as it is instead of the possible addresses (a whole fuck ton more)
-
Basically an undecillion over 4 billion
-
IPv 6 addresses are written out in 8 groups of 16 bits each, with each group being made out of 4 hexadecimal numbers, basically meaning they go up to a base value of 16, with the numbers after 9 being alphabetical numbers
-
Every single IPv 6 address that begins with 2001: 0 db 8 has been reserved for documentation and education, basically over 18 quintilian addresses
-
When shorting an IPv 6 address, you can leave out any of the leading zeros in a given group, and any consecutive groups of all zeros can be simply replaced with colons, only happening once for each
-
How to shorten down an IPv6 address
- So
2001:0db8:0000:0000:0000:ff00:0012:3456 - becomes
2001:db8:0:0:0:ff00:12:3456 - And apply the second rule:
2001:db8::ff00:12;3456
- So
-
Any address that begins with FF00: is reserved for multicast
-
Any address that beings with
FF80::are reserved for Link-Local unicast which allow for local network segment communications and are configured based up a host’s MAC address -
These are used by the IPv 6 addresses in order to get an establishment with the host, much in the same way that DHCP might operate
-
The first 64 bits of a IPv 6 address are it’s network ID and then the last 64 bits are the host ID
-
Meaning, any given IPv 6 network has access for 1.6 quintillion hosts
-
Subnetting uses the same CIDR notation as it would for IPv 4 in case the IPv 6 addresses want to be switched more
-
-
IPv6 Headers:
-
IPv 6 addresses also have extra header information as an improvement from old IPv 4 systems
-
-
The first Field in an IPv 6 header is the version field, which defines the version of what IP is being used
-
The next field is the traffic class field, it defines the type of traffic contained within the IP datagram, and allows for different classes of traffic to receive different priorities
-
The next field is the Flow Label field, which is used in conjunction with the traffic class field for routers to make decisions about the quality of service level for a specific datagram
-
Payload length is basically just a short that defines the size, in bits, of the payload for the IP datagram
-
Next Header field it is a unique concept of IPv 6, because IPv 6 addresses are larger than standard ones, they take longer to transmit over a copper wire, and so the headers were built to be as small as possible to reduce this, this basically allows for an optional pointer to a ‘next header’ that holds extra data about the IPv 6 datagram
-
Hop limit field- it is basically the exact same as a TTL inside of an IPv 4 header
-
Then are the Source and Destination address fields which are VERY big because they are also IPv 6 addresses
-
Then lastly is the Data payload itself
-
-
IPv6 and IPv4 Harmony:
-
There needs to be some interplay between the two different versions for the internet to work
-
-
IPv 4 mapped address space, which are set aside IPv 6 addresses that are basically mapped over to an IPv 4 address. So any address that has the first 4 groups be zeros, can be mapped over to an IP address
-
Basically, you zero out the first 96 bits of the IPv 6 address and the following 32 bits are correspondent over to the IPv 4 equivalent, allowing for the two to be able to translate to one another
-
This lets IPv 4 traffic move over an IPv 6 network
-
-
As for IPv 6 traffic moving over an IPv 4 network, this is done via IPv 6 tunnels
-
IPv 6 tunnels- servers that take incoming IPv 6 traffic and encapsulate it within the traditional IPv 4 datagram, basically just servers that are able to translate IPv 6 into IPv 4 instead of a direct translation like the one above
-
IPv 6 tunnel broker- companies that provide IPv 6 tunneling endpoints for you, so you don’t have to introduce additional equipment to your network, basically, translators you can hire instead of build
-
There are a large number of protocols that want to be added into this, but the technology is new, and it will change throughout time
-
==Glossary
Cloud computing: The concept and technological approach of accessing data, using applications, storing files, etc. from anywhere in the world as long as you have an internet connection
Error detection: The ability for a protocol or program to determine that something went wrong
Error recovery: The ability for a protocol or program to attempt to fix an error
Flow label field: 20-bit field that’s used in conjunction with the traffic class field for routers to make decisions about the quality of service level for a specific datagram
Hop limit field: An 8-bit field that’s identical in purpose to the TTL field in an IPv4 header
Host file: A simple text file that consists of one or more lines, each of which contains a hostname and an IP address
Hybrid cloud: A cloud computing environment that combines on-premises private cloud resources with public cloud resources
Hypervisor: A piece of software that runs and manages virtual machines while also
offering guests a virtual operating platform that’s indistinguishable from actual hardware
ICMP: Internet control message protocol is used by router or remote hosts to communicate error messages when network problems prevent delivery of IP packets
ICMP payload: Piece of the packet which lets the recipient of the message know which of their transmissions caused the error being reported
Infrastructure as a Service (IaaS): A subset of cloud computing where a network and servers are provided for customers to run their services
IPv6 tunnel brokers: Companies that provide IPv6 tunneling endpoints for you, so you don’t have to introduce additional equipment to your network
IPv6 tunnel: IPv6 tunnel servers on either end of a connection take incoming IPv6 traffic and encapsulate it within traditional IPv4 datagrams
Link-local unicast address: Allow for local network segment communications and are configured based upon a host’s MAC address
Loopback address: An IP address that always points to itself. This type of address is used to test internal pathing through the TCP/IP protocols
Multicast: A way of addressing groups of hosts all at once
Next header field: Defines what kind of header is immediately after this current one
Payload length field: 16-bit field that defines how long the data payload section of the datagram is
Platform as a service: A subset of cloud computing where a platform is provided for customers to run their services
Private cloud: When a company owns the services and the rest of the cloud infrastructure, whether on-site or in a remote data center
Public cloud: The cloud services provided by a third party
Public DNS servers: Name servers specifically set up so that anyone can use them for free
Registrar: An organization responsible for assigning individual domain names to other organizations or individuals
Software as a Service (SaaS): A way of licensing the use of software to others while keeping that software centrally hosted and managed
Traffic class field: An 8-bit field that defines the type of traffic contained within the IP datagram and allows for different classes of traffic to receive different priorities
Version field: First field in an IP header that specifies the version of IP
Virtualization: A single physical machine called a host runs many individual virtual instances called guests











