Basics of Computer Networking
What is Networking:
Networking in the world of Computing refers to the Interconnection of more than one node. These nodes can be physical or virtual (VMs) computers, smart phones, IOT(Internet of Things) enabled devices such as gadgets, smart watches, and so on. The prerequisite for a node to participate in networking is that it needs to have a network interface card (NIC) on it that helps it connect to the network either wirelessly(WiFi) or in wired(RJ45 cable) mode. The second prerequisite for the node is that it needs to have an IP(Internet Protocol) address assigned to it either statically or dynamically. Note that one node can have multiple wired or wireless NICs and hence multiple IP addresses.
OSI Model:
The Open Systems Interconnect model lays a foundation to understand the concepts of networking. It helps the understanding of communication between two nodes in a layered fashion. An alternative to OSI is the TCP/IP model which uses only 5 layers.
OSI Model Layers: Application | Presentation | Session | Transport | Network | Data Link | Physical.
TCP/IP Stack:
The TCP/IP protocol suite defines a set of protocols for each of the seven layers of the model OSI. For example, it has Ethernet for Layer-2, IP for Layer-3. TCP and UDP for Layer-4. The name of the protocol suite may tend to be confusing at times as it only uses TCP and IP which are the two most important protocols of the stack, however it's not just two protocols but a lot of them, and the list is growing.
Ethernet:
Ethernet is the widely used Layer-2 standard and the addressing used with Ethernet is termed as a MAC(Media Access Control) address. Each Ethernet NIC will have a unique MAC.
IP:
IP is the defacto standard for assigning logical (layer 3) addresses to a node, IP comes in two flavors - version 4 and 6. IPv4 is used widely however IPv6 is also used extensively in big hyperscale networks. A key point to note is that IPv6 has a big network address space as it's 128 bits long and can help massive scaling where as IPv4 with 32 bits has a comparatively very less address space.
Internet:
Internet is the biggest and public IP network available today and BGP (Border Gateway Protocol) is the defacto protocol running the internet or exchanging IP routes among nodes in the Internet.
Types of networks:
LAN(Local Area Network): A term used to refer to a private network which can either be small such as home networks, or could span across multiple locations such as enterprise networks.
WAN(Wide Area Network): A term used to refer mostly a public network such as Internet that helps interconnecting various LANs. Note that a private network such as MPLS(Multi Protocol Labeling Service) can also be termed as WAN.
Security:
The security of the network relies on the protocols used at each of the layers, and on how well they are implemented. Most of the security is offered by Layer-3 and Layer-4. For example IPSEC is a popular VPN technique which uses TCP and IP, it provides a choice of various encryption and authentication algorithms to enhance security of data exchange.
--end-of-post--