Handshake - A request send to a destination to access it

IP Adress

  • IP v4 shows your IP address in decimals
  • IP v6 shows your IP address in hexadecimal
  • IPv4 starting from 192.168 are all private IP addresses
  • Large corporations use IP address starting from 10.0

MAC adress

The first 3 octets of MAC dress tell you about the vendor/company

To know how IP adress and MAC adress play a role in networking see OSI Canvas

TCP

  • This is the main information transfer protocol and secure
  • Used by almost all connections (browser, internet traffic, HTTP, FTP, telnet)
  • Uses 3 way - handshake
  • For 3 way - handshake usually the messages request is SYN and response is SYN/ACK and then you send an ACK to establish connections
  • So basically TCP will know if data gets stolen is the middle

UDP

  • Used for instant/fast connection (DNS etc..)
  • Does not use handshake
  • UDP doesn’t care about what happens to the data midway

Common Ports

TCP :

ProtocolPortFunction
FTP21Uploads or access file in a server
Telnet23Used to log-in remotely
SSH22Same as Telnet but crypted
DNS53Converts domain name to IP adress
HTTP80Web adress
HTTPS443HTTP but crypted
SMB139 / 445File sharing

UDP :

ProtocolPortFunction
DNS53Converts domain name to IP adress
DHCP67 / 68It provides the IP addresses to devices across the network

OSI MODEL

LevelPropertyDevices
Level 1PhysicalWires, cables
Level 2Data LinkMAC address, Switches, Router, Wifi Access cards
Level 3NetworkIP address, Router, Hosts, IOT devices
Level 4TransportPorts, TCP, UDP
Level 5SessionSession Management
Level 6 & 7————————————————————————————

GET and POST request

GET requestPOST request
This request usually modifies the URLThis request doesn’t change the URL
Parameters are visible in the URL, making it less secure for sensitive dataParameters are not visible in the URL, making it more secure for sensitive data
Used to retrieve data from a serverUsed to send data to the server to create or update resources
Usually used in search pagesUsually used to store usernames and passwords

Other Protocols :

  • DNS - It converts Domain Names into IP addresses       Ex - www.google.com —> 121.29.8.9

  • ARP - It is used to get a computers MAC address through its IP address by sending a ARP packet to every device in that network and only the particular device responds back telling its MAC address

  • Subnet mask - It is used to divide a IP address into 2 parts :                     Its network address and host address

   Ex - IP address 121.29.8.9 subnet mask 255.255.255.0 means Network address is 121.29.8.0 and host address is .9