Skip to content

librity/ft_netwhat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

42 São Paulo - NetWhat?

42 São Paulo License Code size in bytes Lines of code Top language Last commit

Putting the FUN in networking fundamentals.


📜 Table of Contents

🧐 About

In this project we learn the basics of networking and th Internet Protocol. Most of the questions use the IP calculator.

📝 Notes

TCP

TCP sends information to a single known host. The information's integrity is pretty much guaranteed by extensive error-checking. All packets arrive in order, and it's slower than UDP. It's used by SMTP, HTTP, FTP and many others.

UDP

UPD listens and broadcasts data to and from anything else that's broadcasting and listening. The only error-checking it has is a checksum in each package. It's used by DHCP (if you don't have an IP you can't use TCP), Voice over IP, DNS, some streaming protocols, and more.

DHCP

It's what assigns dynamic IPs to devices in a network. Supports IPv4 and IPv6.

ping

A common networking tool that checks if a host is turned on and connected. Uses ICMP.

IP classes

Class A is the largest, with almost 17 million assignable IP addresses. Used by very large organizations.

Hosts in a Network

The ammount of assignable IPs in a subnet is always pow(2, ip_bits_available) - 2

Network and Broadcast IPs

The Network IP address always ends with a 0. The Broadcast IP address is always the last IP in the subnet. Any package sent to the broadcast address relayed to all hosts in the subnet.

DNS

It's a program running on a server somewhere that tells you which IP belongs to google.com. You can talk to those servers with nslookup:

$ nslookup google.com

Private IP

They all start with 192, 172 and 10.

🛸 42 São Paulo

Part of the larger 42 Network, 42 São Paulo is a software engineering school that offers a healthy alternative to traditional education:

  • It doesn't have any teachers and classes.
  • Students learn by cooperating and correcting each other's work (peer-to-peer learning).
  • Its focus is as much on social skills as it is on technical skills.
  • It's completely free to anyone that passes its selection process - The Piscine

It's an amazing school, and I'm grateful for the opportunity.

🏫 References

📚 Resources

Testers

IP Mask Calculators