Computer Networks (PRELIUM)
Computer Networks (PRELIUM)
Section-A
Que.1) Difference between TCP and UDP header.
Ans:
The main differences between TCP (Transmission Control Protocol) and UDP (User Datagram
Protocol) are:
Que.2) What is Connection Less and Connection oriented.
Ans:
Connection-oriented Service:
o Connection-oriented service is related to the telephone system. For example,
TCP(Transmission Control Protocol)
o Connection-oriented service is preferred by long and steady communication.
o Connection-oriented Service is necessary.
o Connection-oriented Service is feasible.
o In connection-oriented Service, Congestion is not possible.
o Connection-oriented Service gives the guarantee of reliability.
o In connection-oriented Service, Packets follow the same route.
o Connection-oriented services require a bandwidth of a high range.
Connection-Less Service:
o Connection-less service is related to the postal system. For example, UDP(User
Datagram Protocol)
o Connection-less Service is preferred by bursty communication.
o Connection-less Service is not compulsory.
o Connection-less Service is not feasible.
o In connection-less Service, Congestion is possible.
o Connection-less Service does not give a guarantee of reliability.
o In connection-less Service, Packets do not follow the same route.
o Connection-less Service requires a bandwidth of low range.
Que.3) Difference between HTTP and HTTPs
Ans:
The main differences between HTTP and HTTPs:
2) Message Switching:
o In message switching, the whole message is treated as a data unit and is switching /
transferred in its entirety.
o A switch working on message switching, first receives the whole message and
buffers it until there are resources available to transfer it to the next hop.
o If the next hop is not having enough resource to accommodate large size message,
the message is stored and switch waits.
o This technique was considered substitute to circuit switching. As in circuit switching
the whole path is blocked for two entities only.
3) Packet Switching:
o Shortcomings of message switching gave birth to an idea of packet switching. The
entire message is broken down into smaller chunks called packets.
o The switching information is added in the header of each packet and transmitted
independently.
o Packet switching enhances line efficiency as packets from multiple applications can
be multiplexed over the carrier. The internet uses packet switching technique.
o Packet switching enables the user to differentiate data streams based on priorities.
Section-B
Que.1) What is IP addressing in brief and its types.
Ans:
IP Addressing:
o An IP address represents an Internet Protocol address. A unique address that
identifies the device over the network.
o It is almost like a set of rules governing the structure of data sent over the Internet
or through a local network.
o An IP address helps the Internet to distinguish between different routers,
computers, and websites.
o It serves as a specific machine identifier in a specific network and helps to improve
visual communication between source and destination.
Types of IP Addressing:
- Private IP addresses:
o Each device connected to a home network or a private network carries a private IP
address.
o Private IP addresses are non-internet facing and are only used on an internal
network.
o Devices with private IP addresses might include computers, tablets,
smartphones, Bluetooth devices, smart TVs and printers.
o With the increasing popularity of internet of things products, the use of private IP
addressing is likely to keep growing.
- Public IP addressing:
o An ISP assigns these addresses, which enable a router to communicate with the
internet or an outside network.
o Public IP addresses cover the entire network, meaning multiple devices sharing the
same internet connection will also share the same public IP address.
- Static IP Address:
o All public and private addresses are defined as static or dynamic.
o An IP address that a person manually configures and fixes to their device’s network
is referred to as a static IP address.
o A static IP address cannot be changed automatically.
- Dynamic IP Address:
o A dynamic IP address is automatically assigned to a network when a router is set up.
o The Dynamic Host Configuration Protocol (DHCP) assigns the distribution of this
dynamic set of IP addresses.
o The DHCP can be the router that provides IP addresses to networks across a home
or an organization.
OSI Model:
o This layer deals with the physical connection between devices and the
transmission of raw data bits over a communication channel.
o It defines characteristics such as voltage levels, cable types, data rates, and
physical connectors.
Ans:
FTP:
SMIP:
SET-‘B’
Section-A
Ans:
Switching:
o Switching is the process of transferring data packets from one device to another in a
network, or from one network to another, using specific devices called switches. A
computer user experiences switching all the time.
o For example, accessing the Internet from your computer device, whenever a user
requests a webpage to open, the request is processed through switching of data
packets only.
o Switching takes place at the Data Link layer of the OSI Model. This means that after
the generation of data packets in the Physical Layer, switching is the immediate next
process in data communication.
Types of Switching:
4) Circuit Switching:
o When two nodes communicate with each other over a dedicated
communication path, it is called circuit switching.
o There 'is a need of pre-specified route from which data will travels and no
other data is permitted.
o In circuit switching, to transfer the data, circuit must be established so that
the data transfer can take place.
o Circuits can be permanent or temporary.
5) Message Switching:
o In message switching, the whole message is treated as a data unit and is switching /
transferred in its entirety.
o A switch working on message switching, first receives the whole message and
buffers it until there are resources available to transfer it to the next hop.
o If the next hop is not having enough resource to accommodate large size message,
the message is stored and switch waits.
o This technique was considered substitute to circuit switching. As in circuit switching
the whole path is blocked for two entities only.
6) Packet Switching:
o Shortcomings of message switching gave birth to an idea of packet switching. The
entire message is broken down into smaller chunks called packets.
o The switching information is added in the header of each packet and transmitted
independently.
o Packet switching enhances line efficiency as packets from multiple applications can
be multiplexed over the carrier. The internet uses packet switching technique.
o Packet switching enables the user to differentiate data streams based on priorities.
Que.2) What is P to P
Ans:
Section-B
Ans:
TCP/IP model:
• Transport Layer:
- The transport layer is responsible for the reliability, flow control, and correction of
data which is being sent over the network.
- The two protocols used in the transport layer are User Datagram protocol and
Transmission control protocol.
- The data link layer is the second layer from the bottom in the OSI (Open System
Interconnection) network architecture model.
- It is responsible for the node-to-node delivery of data. Its major role is to ensure
error-free transmission of information.
• Physical Layer:
- Physical layer of TCP/IP model is responsible for physical connectivity of two devices.
Que.2) What is routing and Objectives of routing.
Ans:
Routing:
o A Router is a process of selecting path along which the data can be transferred
from source to the destination. Routing is performed by a special device known
as a router.
o A Router works at the network layer in the OSI model and internet layer in
TCP/IP model
o A router is a networking device that forwards the packet based on the
information available in the packet header and forwarding table.
o The routing algorithms are used for routing the packets. The routing algorithm
is nothing but a software responsible for deciding the optimal path through
which packet can be transmitted.
o The routing protocols use the metric to determine the best path for the packet
delivery. The metric is the standard of measurement such as hop count,
bandwidth, delay, current load on the path, etc. used by the routing algorithm
to determine the optimal path to the destination.
Objectives of Routing:
Ans:
1) Hub:
o Hub is a central device that splits the network connection into multiple devices.
o When computer requests for information from a computer, it sends the request to
the Hub.
o Hub distributes this request to all the interconnected computers.
2) Switches:
o Switch is a networking device that groups all the devices over the network to
transfer the data to another device.
o A switch is better than Hub as it does not broadcast the message over the network,
i.e., it sends the message to the device for which it belongs to. Therefore, we can
say that switch sends the message directly from source to the destination.
3) National interface card:
o NIC is a device that helps the computer to communicate with another device.
o The network interface card contains the hardware addresses, the data-link layer
protocol use this address to identify the system on the network so that it transfers
the data to the correct destination.
o There are two types of NIC:
- Wireless NIC: All the modern laptops use the wireless NIC. In Wireless NIC, a
connection is made using the antenna that employs the radio wave
technology.
- Wired NIC: Cables use the wired NIC to transfer the data over the medium.
4) Cables and connectors:
- Cable is a transmission media that transmits the communication signals.
- There are three types of cables:
Twisted pair cable: It is a high-speed cable that transmits the data
over 1Gbps or more.
Coaxial cable: Coaxial cable resembles like a TV installation cable. Coaxial
cable is more expensive than twisted pair cable, but it provides the high
data transmission speed.
Fibre optic cable: Fibre optic cable is a high-speed cable that transmits the
data using light beams. It provides high data transmission speed as
compared to other cables. It is more expensive as compared to other
cables, so it is installed at the government level.
5) Router:
- Router is a device that connects the LAN to the internet.
- The router is mainly used to connect the distinct networks or connect the internet to
multiple computers.
6) Modem:
- Modem connects the computer to the internet over the existing telephone line.
- A modem is not integrated with the computer motherboard.
- A modem is a separate part on the PC slot found on the motherboard