DEV Community

Cover image for Computer Networking
Akashnani-star
Akashnani-star

Posted on

Computer Networking

Today let's discuss about networking which is still essential for any technology we learn.

What is Computer Networking ?

We all know Computer Networking is all about creating communication between computers to share resources.

Let's see what google definition of computer networking is

A computer network is a set of computers sharing resources located on or provided by network nodes.

So here network nodes means computers, switches, routers etc..
Let's see what are switches and routers in soon.

How Networking is possible ?

So to get our network establish, we have to make sure of having some steps

  1. Connection between computers (using wired/wireless).
  2. Unique IP Address to computers.
  3. Same Network Address for basic communication (we can also have different network addresses but we have to use router to communicate, let's see that in future posts).
  • We all know about creating connection between two computers using WIFI / Ethernet Lan

  • So Let's see about IP Address

  • So IP address is used to uniquely identify the computer in a
    network. For example we can imagine our phone numbers as IP
    addresses which are unique.

  • What is IP address format?
    Actually an IP address is any positive integer having 4 bytes of
    size.

  • So for example 100 is an valid IP address and 212021241 is also
    an valid IP address.

  • But In real life we won't see IP addresses as 212021241 and 100
    because we use some format which is easy to remember our IP
    addresses.

  • So let's see how 212021241 is formatted into an IP address
    format.
    convert 212021241 into 32 bit binary number
    00001100101000110010111111111001
    Here is the binary representation.

  • Let's make it four parts
    00001100
    10100011
    00101111
    11111001

  • Convert each part into decimal
    00001100 -> 12
    10100011 -> 163
    00101111 -> 47
    11111001 -> 249

  • so we will use 12.163.47.249 instead of 212021241 this large
    number.

  • so what is the proof right ?
    open your chrome browser and type http://212021241 in search bar

Image description
it will automatically converts that into http://12.163.47.249

Image description

So Let's see about Network Address in next post...

Top comments (0)