Networking
- Lets try to understand home network with internet access
* Every device connected to the network gets an unique ip address
* IP Address:
* unique number to identify a device on the network
* Network interface:
* This device enables network connectivity to the system
* The number of network interfaces can be multiple
* Networking Priciple: A device in a network can communicate to any other device in the same network
IP Address
- IP Address = Network Id + Host Id
- execute ipconfig
ip: 192.168.0.102
sm: 255.255.255.0
dg: 192.168.0.1
* Lets look at IPV4. This is a 32 bit number.
* IP is broken into 4 octets x.x.x.x
* Range is 0.0.0.0 to 255.255.255.255
* Subnet mask also helps in identifying size of network
Router
- Router is a device which forwards packets from one network to another.
- Router is shown as default gateway in ipconfig
- Routers have route tables which generally have rules for forwarding packets.
DNS
- Network packets dont understand names.
- Network interfaces tries to resolve the name by its ip address and generally this information (name to ip) is present in DNS servers
References
- 2 Power table Refer Here
