Docsity

Computer Network Explained All Concepts Thoroughly In 29 Pages, Summaries of Computer Networks

Toggle sidebar
bg1
COMPUTER NETWORKS
MOST ASKED INTERVIEW QUESTIONS
MUST SAVE AND SHARE
By- ILMA KHAN
QUESTIONS COVERED: -
1. Explain TCP model
2. Name layers of the OSI
Model with protocols
belonging to the layers
3. What is the significance of
Data Link Layer
4. What is Access Point?
5. What does the network
layer do
6. In which layer are the
Routers?
7. What are the different types
of delays?
8. Explain Firewalls?
9. What are the different types
of firewall?
10.What does transport layer
do?
11.Differentiate between
IPv4 and IPv6
12.Difference between Private
and Public IP addresses
13.Explain in detail 3 way
Handshaking
14.What is Cryptography and
what are the Encryption
Methods?
15.What are the Application
layer protocols?
16.Explain DNS
17.What happens when you
type URL in your browser?
18.Explain server-side load
balancer
19.What is FTP? How is FTP
different from Secure FTP?
20.What is SMTP
21.Explain the Working of
HTTP and HTTPs
22.Where are ports? What are
the Port numbers of some
common protocols?
23. How to prevent SYN DDoS
attack?
pg. 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35

Partial preview of the text

Download Computer Network Explained All Concepts Thoroughly In 29 Pages and more Summaries Computer Networks in PDF only on Docsity!

COMPUTER NETWORKS

MOST ASKED INTERVIEW QUESTIONS

MUST SAVE AND SHARE

By- ILMA KHAN

QUESTIONS COVERED: -

1. Explain TCP model

2. Name layers of the OSI

Model with protocols

belonging to the layers

3. What is the significance of

Data Link Layer

4. What is Access Point?

5. What does the network

layer do

6. In which layer are the

Routers?

7. What are the different types

of delays?

8. Explain Firewalls?

9. What are the different types

of firewall?

10.What does transport layer

do?

11.Differentiate between

IPv4 and IPv

12.Difference between Private

and Public IP addresses

13.Explain in detail 3 way

Handshaking

14.What is Cryptography and

what are the Encryption

Methods?

15.What are the Application

layer protocols?

16.Explain DNS

17.What happens when you

type URL in your browser?

18.Explain server-side load

balancer

19.What is FTP? How is FTP

different from Secure FTP?

20.What is SMTP

21.Explain the Working of

HTTP and HTTPs

22.Where are ports? What are

the Port numbers of some

common protocols?

23. How to prevent SYN DDoS

attack?

pg. 1

Explain TCP model The TCP/IP model is a concise version of the OSI model. It contains four layers, unlike seven layers in the OSI model. The layers are:

  1. Process/Application Layer
  2. Host-to-Host/Transport Layer
  3. Internet Layer
  4. Network Access/Link Layer
  5. Network Access Layer This layer corresponds to the combination of the Data Link Layer and Physical Layer of the OSI model. It looks out for hardware addressing and the protocols present in this layer allows for the physical transmission of data. We just talked about ARP being a protocol of Internet layer, but there is a conflict about declaring it as a protocol of Internet Layer or Network access layer. It is described as residing in layer 3, being encapsulated by layer 2 protocols.
  6. Internet Layer This layer parallels the functions of OSI's Network layer. It defines the protocols which are responsible for the logical transmission of data over the entire network. The main protocols residing at this layer are : 0. IP - stands for Internet Protocol and it is responsible for delivering packets from the source host to the destination host by looking at the IP addresses in the packet headers. IP has 2 versions: IPv4 and IPv6. IPv4 is the one that most of the websites are using currently. But IPv6 is growing as the number of IPv4 addresses are limited in number when compared to the number of users. 1. ICMP - stands for Internet Control Message Protocol. It is encapsulated within IP datagrams and is responsible for providing hosts with information about network problems. 2. ARP - stands for Address Resolution Protocol. Its job is to find the hardware address of a host from a known IP address. ARP has several types: Reverse ARP, Proxy ARP, Gratuitous ARP and Inverse ARP.
  1. Host-to-Host Layer This layer is analogous to the transport layer of the OSI model. It is responsible for end-to-end communication and error-free delivery of data. It shields the upper-layer applications from the complexities of data. The two main protocols present in this layer are : 0. Transmission Control Protocol (TCP) - It is known to provide reliable and error-free communication between end systems. It performs sequencing and segmentation of data. It also has an acknowledgment feature and controls the flow of the data through the flow control mechanism. It is a very effective protocol but has a lot of overhead due to such features. Increased overhead leads to increased cost. 1. User Datagram Protocol (UDP) - On the other hand does not provide any such features. It is the go-to protocol if your application does not require reliable transport as it is very cost-effective. Unlike TCP, which is connection-oriented protocol, UDP is connectionless.
  2. Process Layer This layer performs the functions of the top three layers of the OSI model: Application, Presentation and Session Layer. It is responsible for node-to- node communication and controls user-interface specifications. Some of the protocols present in this layer are HTTP, HTTPS, FTP, TFTP, Telnet, SSH, SMTP, SNMP, NTP, DNS, DHCP, NFS, X Window, LPD. Have a look at Protocols in Application Layer for some information about these protocols. Protocols other than those present in the linked article are : 0. HTTP and HTTPS - HTTP stands for Hypertext transfer protocol. It is used by the World Wide Web to manage communications between web browsers and servers. HTTPS stands for HTTP-Secure. It is a combination of HTTP with SSL(Secure Socket Layer). It is efficient in cases where the browser need to fill out forms, sign in, authenticate and carry out bank transactions. 1. SSH - SSH stands for Secure Shell. It is a terminal emulations software similar to Telnet. The reason SSH is more preferred is because of its ability to maintain an encrypted connection. It sets up a secure session over a TCP/IP connection. 2. NTP - NTP stands for Network Time Protocol. It is used to synchronize the clocks on our computer to one standard time source. It is very useful in situations like bank transactions. Assume the following situation without the presence of NTP. Suppose you carry out a transaction, where your computer reads the time at 2:30 PM while the server records it at 2:28 PM. The server can crash very badly if it's out of sync.

Layer Name of the Layer Protocols in the Layer Layer 7 Application Layer WWW browsers, NFS, SNMP, Telnet, HTTP, FTP Layer 6 Presentation Layer

ASCII, EBCDIC, TIFF, GIF, PICT, JPEG, MPEG, MIDI

Layer 5 Session Layer NFS, NetBios names, RPC, SQL Layer 4 Transport Layer SPX, TCP, UDP Layer 3 Network Layer DDP, IP, IPX Layer 2 Data Link Layer

PPP, FDDI, ATM, IEEE 802.5/ 802.2, IEEE 802.3/802.2, HDLC,

Frame Relay Layer 1 Physical Layer Ethernet, FDDI, B8ZS, V.35, V.24, RJ What is the significance of Data Link Layer

The data link layer is responsible for the node to node delivery of the

message. The main function of this layer is to make sure data transfer is

error-free from one node to another, over the physical layer. When a

packet arrives in a network, it is the responsibility of DLL to transmit it

to the Host using its MAC address.

Data Link Layer is divided into two sub layers :

1. Logical Link Control (LLC)

2. Media Access Control (MAC)

The packet received from the Network layer is further divided into

frames depending on the frame size of NIC(Network Interface Card). DLL

also encapsulates Sender and Receiver’s MAC address in the header.

The Receiver’s MAC address is obtained by placing an ARP(Address

Resolution Protocol) request onto the wire asking "Who has that IP

address?" and the destination host will reply with its MAC address.

The functions of the data Link layer are :

1. Framing: Framing is a function of the data link layer. It provides a

way for a sender to transmit a set of bits that are meaningful to

the receiver. This can be accomplished by attaching special bit

patterns to the beginning and end of the frame.

Transmission Delay = Data size / bandwidth = (L/B) second

Propagation delay = distance/transmission speed = d/s

In which layer are the Routers? A router is a device like a switch that routes data packets based on their IP addresses. A router is mainly a Network Layer device. Routers normally connect LANs and WANs together and have a dynamically updating routing table based on which they make decisions on routing the data packets. Router divide broadcast domains of hosts connected through it. What are the different types of delays?

Types of Delays in Packet switching:

1. Transmission Delay

2. Propagation Delay

3. Queuing Delay

4. Processing Delay

1. Transmission Delay :

Time taken to put a packet onto link. In other words, it is simply

time required to put data bits on the wire/communication

medium. It depends on length of packet and bandwidth of

network.

2. Propagation delay : Time taken by the first bit to travel from

sender to receiver end of the link. In other words, it is simply

the time required for bits to reach the destination from the start

point. Factors on which Propagation delay depends are Distance

and propagation speed.

3. Queuing Delay : Queuing delay is the time a job waits in a queue

until it can be executed. It depends on congestion. It is the time

difference between when the packet arrived Destination and

when the packet data was processed or executed. It may be

caused by mainly three reasons i.e. originating switches,

intermediate switches or call receiver servicing switches.

4. Average Queuing delay = (N-1)L/(2*R)

5. where N = no. of packets

6. L=size of packet

7. R=bandwidth

8. Processing Delay : Processing delay is the time it takes routers to

process the packet header. Processing of packets helps in

detecting bit-level errors that occur during transmission of a packet

to the destination. Processing delays in high-speed routers are

typically on the order of microseconds or less.

In simple words, it is just the time taken to process packets.

Total time or End-to-End time

= Transmission delay + Propagation delay+ Queuing delay

+ Processing delay

pg. 8

Explain Firewalls? A firewall is a network security device, either hardware or software-based, which monitors all incoming and outgoing traffic and based on a defined set of security rules it accepts, rejects or drops that specific traffic. Accept : allow the traffic Reject : block the traffic but reply with an “unreachable error” Drop : block the traffic with no reply A firewall establishes a barrier between secured internal networks and outside untrusted network, such as the Internet. What are the different types of firewall?

Firewalls are generally of two types: Host-based and Network-based.

1. Host- based Firewalls : Host-based firewall is installed on each

network node which controls each incoming and outgoing packet.

It is a software application or suite of applications, comes as a part

of the operating system. Host-based firewalls are needed because

network firewalls cannot provide protection inside a trusted

network. Host firewall protects each host from attacks and

unauthorized access.

2. Network-based Firewalls : Network firewall function on network

level. In other words, these firewalls filter all incoming and

outgoing traffic across the network. It protects the internal network

by filtering the traffic using rules defined on the firewall. A

Network firewall might have two or more network interface cards

(NICs). A network-based firewall is usually a dedicated system with

proprietary software installed.

What does transport layer do?

The functions of the transport layer are :

1. Segmentation and Reassembly: This layer accepts the message from

the (session) layer , breaks the message into smaller units. Each of

the segment produced has a header associated with it. The

transport layer at the destination station reassembles the

message.

2. Service Point Addressing: In order to deliver the message to correct

process, transport layer header includes a type of address called

service point address or port address. Thus by specifying this

address, transport layer makes sure that the message is delivered

to the correct process.

The services provided by the transport layer :

1. Connection Oriented Service: It is a three-phase process which include

  • Connection Establishment
  • Data Transfer
  • Termination / disconnection

In this type of transmission, the receiving device sends an

acknowledgement, back to the source after a packet or group of the

packet is received. This type of transmission is reliable and secure.

2. Connection less service: It is a one-phase process and includes

Data Transfer. In this type of transmission, the receiver does

not acknowledge receipt of a packet. This approach allows for

much faster communication between devices. Connection-

oriented service is more reliable than connectionless Service.

* Data in the Transport Layer is called as Segments.

** Transport layer is operated by the Operating System. It is a part of the OS

and communicates with the Application Layer by making system calls.

  • pg.
  • pg.
  • pg.
  • pg.
  • pg.
  • pg.
  • pg.
  • pg.

Difference between Private and Public IP address: PRIVATE IP ADDRESS PUBLIC IP ADDRESS Scope is local. Scope is global. It is used to communicate within the network. It is used to communicate outside the network. Private IP addresses of the systems connected in a network differ in a uniform manner. Public IP may differ in uniform or non- uniform manner. It works only in LAN. It is used to get internet service. It is used to load network operating system. It is controlled by ISP. It is available in free of cost. It is not free of cost. Private IP can be known by entering “ipconfig” on command prompt. Public IP can be known by searching “what is my ip” on google. Range:

Range: Besides private IP addresses, rest are public. Example: 192.168.1.10 Example: 17.5.7. Explain in detail 3 way Handshaking

of OSI reference model). The Application layer is a top pile of a stack of

TCP/IP model from where network referenced application like a web

browser on the client- side establishes a connection with the server. From

the application layer, the information is transferred to the transport layer

where our topic comes into the picture. The two important protocols of

this layer are - TCP, UDP(User Datagram Protocol) out of which TCP is

prevalent(since it provides reliability for the connection established).

However, you can find the application of UDP in querying the DNS server

to get the binary equivalent of the Domain Name used for the website.

pg. 12