{"id":21031951,"url":"https://github.com/bima42/netpractice","last_synced_at":"2025-10-11T17:41:17.505Z","repository":{"id":37432942,"uuid":"503660904","full_name":"Bima42/NetPractice","owner":"Bima42","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-21T11:18:38.000Z","size":543,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T15:32:04.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bima42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-15T07:28:20.000Z","updated_at":"2022-06-15T07:30:11.000Z","dependencies_parsed_at":"2022-07-27T16:18:30.286Z","dependency_job_id":null,"html_url":"https://github.com/Bima42/NetPractice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bima42%2FNetPractice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bima42%2FNetPractice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bima42%2FNetPractice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bima42%2FNetPractice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bima42","download_url":"https://codeload.github.com/Bima42/NetPractice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243473895,"owners_count":20296656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T12:39:07.361Z","updated_at":"2025-10-11T17:41:12.476Z","avatar_url":"https://github.com/Bima42.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetPractice\nProject made to learn basics of networking\nPretty simple but you have to be confortable with some concept like IP address and mask\n\n## IP address\n- allows elaboration and transport of IP datagrams (data packet) WITHOUT ENSURING THE DELIVERY\n- process packets independently of each other by defining their representation, routing and forwarding\n![[IP_address]](/readme_doc/ip_address.png)\n---\nComposed of 4 bytes, each composed of 8 bits\n- a part reserved for the machine | part of the network\n- Two IP addresses belong to the same subnet if they have the **subnet mask bits in common.**\n- **There are unavailable addresses:**\n  - **From 10.0.0.0 to 10.255.255.255.**\n  - **From 172.16.0.0 to 172.31.255.255**\n  - **From 192.168.0.0 to 192.168.255.255**\nThey are **not unique**: they are reserved for naming machines in a local network. Most of the time, the first machine connected to a Box will have the address 192.168.0.1. It is therefore **not a routable address on the Internet at all.**\n---\n\n## Mask\n- Special feature: the masks include a sequence of bits of 1 then 0\n- Number of machines that can be put on a network are defined by mask (right part or upper part)\n![[Mask]](/readme_doc/masque_sous_reseau.png)\n\nExample :\n- **IP address: 192.168.0.0**\n- **Subnet mask: 255.255.255.0**\n- Takes the upper part: image above, represents a byte which is 0. Can go from 0 to 255, or 256 numbers.\n- Can code 256 addresses, but 2 addresses are reserved (0 and 255)\n- **0: identifies the network** (see image: _192.168.0.0_)\n- **255: broadcast address** -\u003e used to send a message to all network addresses (see image: _192.168.0.255_)\n- 256 - 2 = 254 usable addresses\n\n![[Plage]](/readme_doc/plage_adressable.png)\n\n### CIDR\n= Classless Inter-Domain Routing\n- Another way to describe a mask\n- gives the network number followed by a slash (or slash, “/”) and the number of bits at 1 in the binary notation of the subnet mask.\n- /32 designates a network that has only one IP address, ie an individual IP address.\n- _Example: The mask 255.255.224.0, equivalent in binary to 11111111.11111111.11100000.00000000, will therefore be represented by **/19** (19 bits at the value 1, followed by 13 bits 0)._\n\n---\n## Routing\n- network path selection mechanism for routing data from a sender to one or more recipients\n\n### Routing table\n= data structure used by a router or networked computer\n- associates prefixes with ways to route packets to their destination\n- In NetPractice, the use of routes is mainly used to direct unwanted packets (default or 0.0.0.0/0) to the nearest interface. Or direct incoming packets from the internet to the nearest interface\n\n---\n## Example (Level 06)\n![[Level_06]](/readme_doc/NetPractice-level06.png)\n\n---\n## Sources\n- [Tuto : IP and Mask](https://www.youtube.com/watch?v=RnpSaDSSjR4)\n- [Route](https://infoforall.fr/reseau/reseau-act030.html#:~:text=Etape%202%20%3A%20le%20switch%20va,de%20sa%20table%20de%20routage.)\n- [Calculator](https://cric.grenoble.cnrs.fr/Administrateurs/Outils/CalculMasque/ \"https://cric.grenoble.cnrs.fr/Administrateurs/Outils/CalculMasque/\") \n- [Other Calculator](https://www.calculator.net/ip-subnet-calculator.html \"https://www.calculator.net/ip-subnet-calculator.html\") \n- [Routage](https://fr.wikipedia.org/wiki/Routage)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbima42%2Fnetpractice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbima42%2Fnetpractice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbima42%2Fnetpractice/lists"}