Network
Network
Socket - Processes on different machines send messages to each other through the
network. Socket is an interface between process and network.
It's a combination of ip address and port number
Cookies - unique string identifiers that can be stored on the client’s browser.
set by the server through HTTP headers when the client first visits
the website.
After the cookie is set, it’s sent along with subsequent HTTP
requests to the same server
Uses set-cookie header to store a cookie in browser
Zone File: A zone file is a simple text file that contains a mapping between the
domain name and IP Address. This is how DNS system finally find out which IP should
contact when a user requests a certain domain name.
2. Route Internet traffic to the resources for the domain: When user open browser
and enter domain name then DNS connect browser with website or web application.
3. Check Helth of resources: Automated Route 53 send a request to the resource over
the internet to test the health of resource, also chose to set a notification when
resource get unavailable.
-----------------------------------------------------------------------------------
------
Subnet Mask - It is used to distinguish the subnet part and host part of the IP
address
Class Default subnet mask No. of networks No. of host per network
A 255.0.0.0 127 16,777,214
B 255.255.0.0 16,000 65,534
C 255.255.255.0 2 million 126
Gateway - It's an entrypoint from one network to others. host sends all packets
directed to other hosts outside the local network to the default gateway
Router - Connects different network to each other. Hardware that connects a local
network to internet
Routers connect a modem (like fiber, cable, DSL modem) to connect to other devices
and enables connectivity to internet
Used to find the shortest path for a packet.
Switch - Switches allow two computers on a network to talk to each other privately.
connects devices in a single network. Switch recognizes each device using MAC
Address. Switch matches IP address to MAC Address using Address Resolution Protocol
(ARP)
Computer 1 wants to talk to Computer 5. Computer 1 first sends an ARP frame to the
switch asking for the IP of the router, 10.1.1.1. The switch broadcasts this
message to all devices, and the router returns the message with its MAC address.
Now computer 1 knows the router’s MAC address.
Computer 1 now sends a packet to the router with the IP address of computer 5. The
router sends an ARP frame to the switch on Network 2, who broadcasts it to find out
what MAC address belongs to that IP. Computer 5 responds with its MAC address.
Computer 1 now knows Computer 5’s IP and MAC address. It sends a packet to Computer
5 and Computer 5 responds back with a message.