From b33b741cece547792aceaf4e0c3948591aff23bc Mon Sep 17 00:00:00 2001 From: LeakedByteBuster <115739322+LeakedByteBuster@users.noreply.github.com> Date: Tue, 25 Jul 2023 04:04:57 +0100 Subject: [PATCH] Update README.md - Change Links - refractor README.md - Corrected some typing errors --- README.md | 241 +++++++++++++++++++++++------------------------------- 1 file changed, 101 insertions(+), 140 deletions(-) diff --git a/README.md b/README.md index fcfae16..8993354 100644 --- a/README.md +++ b/README.md @@ -3,34 +3,33 @@
## Content -- [What Is TCP/IP?](https://github.com/Mushigarou/NetPractice#what-is-tcpip) -- [Terminology](https://github.com/Mushigarou/NetPractice/tree/main#terminology) -- [What TCP/IP Can be Used For?](https://github.com/Mushigarou/NetPractice/tree/main#what-tcpip-can-be-used-for-non-exhaustive-list) -- [TCP/IP Model](https://github.com/Mushigarou/NetPractice/tree/main#tcpip-model) -- [IPv4 Subnetting](https://github.com/Mushigarou/NetPractice/tree/main#ipv4-subnetting) - - [What is subnetting](https://github.com/Mushigarou/NetPractice/tree/main#what-is-subnetting) - - [How To Write A CheatSheet?](https://github.com/Mushigarou/NetPractice/tree/main#how-to-write-a-cheatsheet) - - [How To Find The 7 Attributes of a Given IP Address?](https://github.com/Mushigarou/NetPractice/tree/main#how-to-find-the-7-attributes-of-a-given-ip-address) - - [Tips For Solving The 7 Attributes Faster](https://github.com/Mushigarou/NetPractice/tree/main#tips-for-solving-the-7-attributes-faster) - - [Subnetting In /17 - /24 Range](https://github.com/Mushigarou/NetPractice/tree/main#subnetting-in-17---24-range) - - [Subnetting In /1 - /16 Range](https://github.com/Mushigarou/NetPractice/tree/main#subnetting-in-1---16-range) -- [Network Devices](https://github.com/Mushigarou/NetPractice/tree/main#Network-Devices) - - [How Data Flows Through The Internet](https://github.com/Mushigarou/NetPractice/tree/main#How-Data-Flows-Through-The-Internet) - - [Hosts](https://github.com/Mushigarou/NetPractice/tree/main#Hosts) - - [Ip Addresses](https://github.com/Mushigarou/NetPractice/tree/main#Ip-Addresses) - - [Network](https://github.com/Mushigarou/NetPractice/tree/main#Network) - - [Repeater](https://github.com/Mushigarou/NetPractice/tree/main#Repeater) - - [Hub](https://github.com/Mushigarou/NetPractice/tree/main#Hub) - - [Switch](https://github.com/Mushigarou/NetPractice/tree/main#Switch) - - [Router](https://github.com/Mushigarou/NetPractice/tree/main#Router) - - [Other Network Devices](https://github.com/Mushigarou/NetPractice/tree/main#Other-Network-Devices) -- [OSI Model](https://github.com/Mushigarou/NetPractice/tree/main#) +- [What Is TCP/IP?](https://github.com/LeakedByteBuster/NetPractice#what-is-tcpip) +- [Terminology](https://github.com/LeakedByteBuster/NetPractice/tree/main#terminology) +- [What TCP/IP Can be Used For?](https://github.com/LeakedByteBuster/NetPractice/tree/main#what-tcpip-can-be-used-for-non-exhaustive-list) +- [A Brief Look at TCP/IP Model](https://github.com/LeakedByteBuster/NetPractice/tree/main#tcpip-model) +- [OSI Model](https://github.com/LeakedByteBuster/NetPractice/tree/main#) - [Physical Layer - Transporting Bits]() - [Data Link Layer - Hop to Hop]() - [Network Layer - End to End]() - - [IP Addresses and MAC addresses](https://github.com/Mushigarou/NetPractice/tree/main#IP-Addresses-and-MAC-addresses) - - [Overview of OSI Model]() - + - [IP Addresses and MAC addresses](https://github.com/LeakedByteBuster/NetPractice/tree/main#IP-Addresses-and-MAC-addresses) + - [Overview Of The OSI Model]() +- [IPv4 Subnetting](https://github.com/LeakedByteBuster/NetPractice/tree/main#ipv4-subnetting) + - [What is subnetting](https://github.com/LeakedByteBuster/NetPractice/tree/main#what-is-subnetting) + - [How To Write A CheatSheet?](https://github.com/LeakedByteBuster/NetPractice/tree/main#how-to-write-a-cheatsheet) + - [How To Find The 7 Attributes of a Given IP Address?](https://github.com/LeakedByteBuster/NetPractice/tree/main#how-to-find-the-7-attributes-of-a-given-ip-address) + - [Tips For Solving The 7 Attributes Faster](https://github.com/LeakedByteBuster/NetPractice/tree/main#tips-for-solving-the-7-attributes-faster) + - [Subnetting In /17 - /24 Range](https://github.com/LeakedByteBuster/NetPractice/tree/main#subnetting-in-17---24-range) + - [Subnetting In /1 - /16 Range](https://github.com/LeakedByteBuster/NetPractice/tree/main#subnetting-in-1---16-range) +- [Network Devices](https://github.com/LeakedByteBuster/NetPractice/tree/main#Network-Devices) + - [How Data Flows Through The Internet](https://github.com/LeakedByteBuster/NetPractice/tree/main#How-Data-Flows-Through-The-Internet) + - [Hosts](https://github.com/LeakedByteBuster/NetPractice/tree/main#Hosts) + - [Ip Addresses](https://github.com/LeakedByteBuster/NetPractice/tree/main#Ip-Addresses) + - [Network](https://github.com/LeakedByteBuster/NetPractice/tree/main#Network) + - [Repeater](https://github.com/LeakedByteBuster/NetPractice/tree/main#Repeater) + - [Hub](https://github.com/LeakedByteBuster/NetPractice/tree/main#Hub) + - [Switch](https://github.com/LeakedByteBuster/NetPractice/tree/main#Switch) + - [Router](https://github.com/LeakedByteBuster/NetPractice/tree/main#Router) + - [Other Network Devices](https://github.com/LeakedByteBuster/NetPractice/tree/main#Other-Network-Devices) ## What Is TCP/IP? ⭐ ***The Transmission Control Protocol/Internet Protocol** is a **set of protocols** (communication standards) that describe how two or more computers can **communicate over a network**.* @@ -61,14 +60,16 @@ ↥ back to top -## TCP/IP Model +## A Brief Look at TCP/IP Model + +The following table shows the protocols used at each layer of the TCP/IP Model -Layers | Short Explanation | Protocols | -------------------------|-------------------------|---------------------| -Application layer | Applications or processes create user data and communicate it on another or the same host (Make use of the Transport layer) | SMTP, SSH, FTP, HTTPS, HTTP, DHCP...| -Transport layer | Provides a channel for host-to-host communication on the same network or remote network separated by routers | TCP (connection-oriented), UDP (connectionless), SCTP (connection-oriented)...| -Internet layer | Provides unreliable datagram transmission between hosts, and the IP (Primary Protocol) establishes the basis for internetworking. its function in routing is to transport datagrams to the next closer host (IP router) to the final destination. | IP(IPv4, IPv6), ICMP, IGMP...| -Link + Physical layer | Defines the networking methods (protocols) within the scope of the local network link on which hosts communicate without intervening routers | Mac Address, Fiber, Wireless, Ethernet Cables... | +Layers | Protocols Used | +------------------------|---------------------| +Application layer | SMTP, SSH, FTP, HTTPS, HTTP, DHCP...| +Transport layer | TCP (connection-oriented), UDP (connectionless), SCTP (connection-oriented)...| +Internet layer | IP(IPv4, IPv6), ICMP, IGMP...| +Link + Physical layer | Mac Address, Fiber, Wireless, Ethernet Cables... | - ⭐ **Connection-oriented Protocol (TCP, SCTP...):** - requires both devices to be able to communicate with each other @@ -87,6 +88,69 @@ Link + Physical layer | Defines the networking methods (protocols) within the ↥ back to top +## OSI Model +⭐ ***Networking Goal** is to allow two hosts to share data between them* + +### Physical Layer - Transporting Bits +- Transporting bits by using an L1 technology + +### Data Link Layer - Hop to Hop +- Interact with the wire (i.e., L1) + - **NIC** Network Interface Cards / Wi-Fi Access Cards + - 🧮 Addressing Scheme - **MAC addresses** + + - **48 bits**, represented as **12 hex digits** + - 94-65-4c-3d-65-e5 (Windows) / 94\:65:4c\:3d\:65:e5 (Linux) / 9465.4c3d.65e5 (CISCO) + +💡 **Every NIC has a unique MAC address** + +💡 **ARP: Address Resolution Protocol Links a L3 address to a L2 address** + +### Network Layer - End to End +- 🧮 Addressing scheme - **IP Addresses** + +#### IP Addresses and MAC addresses +💡 *Takeaway: **L2 and L3 work together** to move **data across the internet*** + +