Ipconfig
- ipconfig/ifconfig - is to know your IP address in windows and linux.
- IPV4 : -192.168.12.11
- IPV6 : -fe80::ccae:baba:6fd8:5551%9
- eight 1s and 0s in each part of the IP address.
- due to the limitations of IPv4 address, IPv6 introduced.
- IPv4 got introduced in 1980s on that time nobody thought to have these many IP address on computers.
- When they thought about the problem with the extensive use of the computers then developed IPv6.
- IPv4 addresses were 2 power 32 only because it is 32 bit addresses.
- IPV6 address were 2 power 128 because these are 128 bit addresses.
- NAT : -
- when we have a home network with 15 devices connected to internet then all 15 devices will not get addresses from IPv4.
- only the router will have the main address from IPv4 and 15 devices will have private IP assigned by router.
- requests going from 15 devices to router
- router will put its IP and send it to internet then servers.
- router receives the response back and serves required response to related request with the help of NAT (network address translation)
----------------------------------------------------------------------------------------------------------------
MAC Address
- MAC addresses/physical address uses at layer 2. - switching
- IP addresses are used at layer 3. - routing
- Media access control - MAC
- use ipconfig/ifconfig to check.
- 00:0c:29:0a:42:05
- first three payer of above MAC address = identifier.
- copy those and find in MAC lookup, we will be able to find out.
----------------------------------------------------------------------------------------------------------------
TCP vs UDP
- Transmission control Protocol
- Connection Oriented
- High reliability.
- HTTP, HTTPS, SSH, FTP.
- 3 WAY handshake
- SYN >> SYN ACK >> ACK.
- hello to neighbor = syn
- neigbor hello back = syn ACK
- Acknowledge for good to go = ACK
- Common Ports: -
- ftp 21
- ssh 22
- telnet 23
- smtp 25
- dns 53
- http 80
- https 443
- pop3 110
- smb 139 , 445
- imap 143
- User datagram protocol
- Connection less
- less reliable.
- video streamimg, VOIP, DNS
- Common ports
- DNS 53
- dhcp 67, 68
- tftp 69
- snmp 161
----------------------------------------------------------------------------------------------------------------
OSI Model
- P (Please) - PHYSICAL - data cables, cat6 (LAN cables)
- D ( Do ) - DATA - switching, MAC address
- N ( Not ) - NETWORK - IP addresses, routing
- T ( Throw) - TRANSPORT - TCP, UDP
- S ( Sausage) - SESSION - session management
- P ( Pizza) - PRESENTATION - WMV, jpeg, HTML
- A ( Away) - APPLICATION - HTTP, SMTP, FTP
All People Seems To Need Data Processing
----------------------------------------------------------------------------------------------------------------
Subnetting
- Subnet - 255.255.255.0
- eight bits in every octet, like IP address
Comments
Post a Comment