Computer Networks
Computer Networks
@bzlearnin
3.What is TCP/IP?
● Answer: TCP/IP is a set of communication protocols used to connect network devices
on the internet, consisting of four layers: Network Interface, Internet, Transport, and
Application.
Link: A link or edge refers to the connectivity between two nodes in the network. It
includes the type of connectivity (wired or wireless) between the nodes and protocols
used for one node to be able to communicate with the other.
Nodes and Links
Bus Topology:
Bus
Topology
● All the nodes are connected using the central link known as the bus.
● It is useful to connect a smaller number of devices.
● If the main cable gets damaged, it will damage the whole network.
Star Topology:
Star Topology
● All the nodes are connected to one single node known as the central node.
● It is more robust.
● If the central node fails the complete network is damaged.
● Easy to troubleshoot.
● Mainly used in home and office networks.
Ring Topology:
Ring Topology
● Each node is connected to exactly two nodes forming a ring structure
● If one of the nodes are damaged, it will damage the whole network
● It is used very rarely as it is expensive and hard to install and manage
Mesh Topology:
IPv4 Class Private IPv4 Start Address Private IPv4 End Address
A 10.0.0.0 10.255.255.255
B 172.16.0.0 172.31.255.255
C 192.168.0.0 192.168.255.255
The OSI model has seven layers. The principles used to arrive at the seven layers can
be summarized briefly as below:
OSI
Vs TCP/IP
TCP/IP UDP
Subnet
Hub Switch
12. What is the difference between the ipconfig and the ifconfig?
ipconfig ifconfig
Firewall
15. What happens when you enter google.com in the web browser?
Below are the steps that are being followed:
● Check the browser cache first if the content is fresh and present in cache display
the same.
● If not, the browser checks if the IP of the URL is present in the cache (browser
and OS) if not then request the OS to do a DNS lookup using UDP to get the
corresponding IP address of the URL from the DNS server to establish a new
TCP connection.
● A new TCP connection is set between the browser and the server using
three-way handshaking.
● An HTTP request is sent to the server using the TCP connection.
● The web servers running on the Servers handle the incoming HTTP request and
send the HTTP response.
● The browser process the HTTP response sent by the server and may close the
TCP connection or reuse the same for future requests.
● If the response data is cacheable then browsers cache the same.
● Browser decodes the response and renders the content.