What are all the things that happen whe you send information over the internet?
This is a shameless AI explanation, but good and succinct.
Class brainstorm/memory test - What has to happen for a cat picture to get uploaded to instagram?
These are the software layers. These layers are where software developers do their stuff. Usually these get lumped together. They all happen before any networking takes place.
(Geek humor: An error on layer 8 is a user error - Same as a PEBCAK error)
This is where the interesting stuff happens. We will examine this by looking at how the data is encapsulated.
Data sent from the application to the operating system to be sent over the network
Usually via TCP or UDP - Both of these remember which application the data was from by creating a port (an identifying number)
TCP guarantees delivery of all the packets in order so it includes a sequence number and an acknowledgement, it has a checksum to detect corruption and ask for a re-send.
UDP is designed for speed. The header is tiny, it includes a checksum to detect corruption but if the packet is bad it is just discarded.
The data is ready to send. It just needs to know where to go. This is where the IP address is added. Of course it will look different depending on whether you are using IPv4 or IPv6
IPv4 header:
Variable length, up to 60 bytes
IPv6 header:
Fixed length 40 bytes
Now your computer needs to send on the data, unfortunately your computer can only talk directly to machines on it's network. To do this it adds a header with the hardware (MAC) address of the next router*.
*The protocol for working out which router is next is the Border Gateway Protocol
Now you're dealing with physics. Electricity, light, radio. This is the place where things actually move.
And a quiz on the OSI model
Internet Control Message Protocol
A very handy layer 3 protocol. It's the mechanism behind ping and tracert.
A good article that describes ICMP very well in points 1 & 2 then goes into lots of detail about how it can be misused.
Review of everything we've done with network layers.
If you didn't like the one above, try this
Another more in-depth description of DNS of DNS
DNS nuaghtyness
If you encounter the issue below like this one....
You can use this command below to fix it, it will add the keys for the linux distro.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 49023CD01DE21A7B
(you may just need to change the key value to correspond with your error)
traceroute is used to display the physical routing path between 2 internet devices communicating with each other. It maps out the journey from one router to another - sometimes called a hop. Using traceroute to diagnose network problems can help administrators locate the source of a network delay.
ping is a simpler traceroute. It sends out pings -- also referred to as echo request message -- and the measures the amount of time it takes the message to reach its destination and return the source. These replies are called echo reply messages. Pings are useful for gathering latency information about a specific device. Unlike traceroute, ping does not provide a picture map of the routing layout.
The Internet Engineering Task Force (IETF) is an open standards organization, which develops and promotes voluntary Internet standards, in particular the standards that comprise the Internet protocol suite (TCP/IP).
The International Standards Organisation (OSI) is a multinational organization that tries to standardize network communication protocols at the international level. OSI (Open System Interconnection) is a model that ISO put together as a networking communication standard.
The Internet Consortium for Assigned Names and Numbers (ICANN) controls the DNS hierarchy and the allocation of IP addresses
A bit more in-depth than the video at the top of the web page
The 5 layer network model is the TCP/IP model.
Goes into detail with UDP and TCP protocols.
From: APNIC - Internet protocols are changing
When the Internet started to become widely used in the 1990s, most traffic used just a few protocols: IPv4 routed packets, TCP turned those packets into connections, SSL (later TLS) encrypted those connections, DNS named hosts to connect to, and HTTP was often the application protocol using it all.
For many years, there were negligible changes to these core Internet protocols.
As a result, network operators, vendors, and policymakers that want to improve (and sometimes, control) the Internet have adopted a number of practices based upon the official protocol to tweak things, whether intended to debug issues, improve quality of service, or impose policy.
Now, significant changes to the core Internet protocols are underway. While they are intended to be compatible with the Internet at large (since they won’t get adoption otherwise), they might be disruptive to those who have taken liberties with undocumented aspects of protocols or made an assumption that things won’t change.
There are a number of factors driving these changes.
The limits of the core Internet protocols have become apparent, especially regarding performance. Because of structural problems in the application and transport protocols, the network was not being used as efficiently as it could be, leading to end-user perceived performance (in particular, latency).
This translates into a strong motivation to evolve or replace those protocols because there is a large body of experience showing the impact of even small performance gains.
The ability to evolve Internet protocols — at any layer — has become more difficult over time, largely thanks to the unintended uses by networks discussed above. For example, HTTP proxies that tried to compress responses made it more difficult to deploy new compression techniques; TCP optimization in middleboxes made it more difficult to deploy improvements to TCP.
Finally, we are in the midst of a shift towards more use of encryption on the Internet. Encryption is one of best tools we have to ensure that protocols can evolve and many protocols have been developed to insist on encryption.
You can read about these further by going to the APNIC site referenced above.
Determining the best path involves the evaluation of multiple paths to the same destination network and selecting the optimum or shortest path to reach that network. Whenever multiple paths to the same network exist, each path uses a different exit interface on the router to reach that network.
The best path is selected by a routing protocol based on the value or metric it uses to determine the distance to reach a network. A metric is the quantitative value used to measure the distance to a given network. The best path to a network is the path with the lowest metric.
Dynamic routing protocols typically use their own rules and metrics to build and update routing tables. The routing algorithm generates a value, or a metric, for each path through the network. Metrics can be based on either a single characteristic or several characteristics of a path. Some routing protocols can base route selection on multiple metrics, combining them into a single metric.
The following lists some dynamic protocols and the metrics they use:
Routing Information Protocol (RIP): Hop count
Open Shortest Path First (OSPF): Cisco routers use a cost based on cumulative bandwidth from source to destination
Enhanced Interior Gateway Routing Protocol (EIGRP): Bandwidth, delay, load, reliability
INTRODUCTION TO NETWORKS
Networks connect devices, devices share information
To share information, they must speak the same language - this language is called a protocol.
Network types: SOHO network, enterprise network, LAN, WAN
Detail on copper & fibre cabling
Mentions that Ethernet protocol is specified by Institute of Electrical and Electronics Engineers (IEEE). Ethernet standard is: IEEE_802.3
Network protocols - several need to interact to send data over a network.
How they interact can be complicated and that is why we have Network models:.
This video is on the OSI model - owned by the International Standards Organisation (ISO)
VLSM - Variable Length Subnet Masks
unicast, broadcast & multicast.
IP addresses are assigned by the Internet Assigned Numbers Authority (IANA).
Static, dynamic IP Addresses and IPAPA addressing.
WORTH WHILE WATCHING
TCP/IP model - in competition to the OSI model.
Developed by the US Department of Defense. and become the most popular network model. Actively took into account existing protocols.
This model is in competition to the OSI model.
Covers http and therefore TCP and IP protocls.