Professional Documents
Culture Documents
Acn - Dec 2018
Acn - Dec 2018
Given length = 50 km = 50X1000 = 50000 metres, and speed = 2x10^8 m/s, packet
length = 100x8 = 800 bits
Now assuming if both propagation delay and transmission delay are equal we get,
800/ts = 0.25
So, ts = 800/0.25 = 3200 bits/milisecond
Congestion in networking refers to a situation where the demand for network resources
exceeds their availability, leading to reduced performance. The receive window in TCP
(Transmission Control Protocol) represents the amount of data that can be sent by the
sender and held in the receiver's buffer before an acknowledgment is required.
Sender Receiver
| |
|----[2001-5000]-------->|
| |
After transmission:
Sender Receiver
| |
|--------[2001-5000]----->|
| |
|<---[5001-11000]----|
The sender's window has shifted to accommodate the new acknowledgment number (5001),
and the updated window size advertisement (6000) allows for a larger window, now ranging
from 5001 to 11000 bytes.
Q. 2.B) What is UDP? Give differences between TCP and UDP. Also give three names of
typical applications in which UDP is used as transport protocol.
What is UDP?
User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of the
Internet Protocol suite, referred to as UDP/IP suite. Unlike TCP, it is an unreliable and
connectionless protocol. So, there is no need to establish a connection prior to data
transfer. The UDP helps to establish low-latency and loss-tolerating connections
establish over the network.The UDP enables process to process communication.
Though Transmission Control Protocol (TCP) is the dominant transport layer protocol
used with most of the Internet services; provides assured delivery, reliability, and much
more but all these services cost us additional overhead and latency. Here, UDP comes
into the picture. For real-time services like computer gaming, voice or video
communication, live conferences; we need UDP. Since high performance is needed, UDP
permits packets to be dropped instead of processing delayed packets. There is no error
checking in UDP, so it also saves bandwidth.
User Datagram Protocol (UDP) is more efficient in terms of both latency and bandwidth.
UDP Header –
UDP header is an 8-bytes fixed and simple header, while for TCP it may vary from 20
bytes to 60 bytes. The first 8 Bytes contains all necessary header information and the
remaining part consist of data. UDP port number fields are each 16 bits long, therefore
the range for port numbers is defined from 0 to 65535; port number 0 is reserved. Port
numbers help to distinguish different user requests or processes.
Give differences between TCP and UDP.
Transmission Control Protocol (TCP)
TCP (Transmission Control Protocol) is one of the main protocols of the Internet protocol
suite. It lies between the Application and Network Layers which are used in providing
reliable delivery services. It is a connection-oriented protocol for communications that
helps in the exchange of messages between different devices over a network. The
Internet Protocol (IP), which establishes the technique for sending data packets between
computers, works with TCP.
Features of TCP
Advantages of TCP
Disadvantages of TCP
Advantages of UDP
Disadvantages of UDP
• We can not have any way to acknowledge the successful transfer of data.
• UDP cannot have the mechanism to track the sequence of data.
• UDP is connectionless, and due to this, it is unreliable to transfer data.
• In case of a Collision, UDP packets are dropped by Routers in
comparison to TCP.
• UDP can drop packets in case of detection of errors.
Differences between TCP and UDP
The main differences between TCP (Transmission Control Protocol) and UDP (User
Datagram Protocol) are:
An
No
acknowledgment
Acknowledgment acknowledgment
segment is
segment.
present.
Sequencing of
data is a feature of
Transmission There is no
Control sequencing of data
in UDP. If the order
Sequence Protocol (TCP). is required, it has to
this means that be managed by the
packets arrive in application layer.
order at the
receiver.
There is no
retransmission of lost
Retransmission of lost packets is
Retransmission packets in the User
possible in TCP, but not in UDP.
Datagram Protocol
(UDP).
TCP has a (20-60) bytes variable UDP has an 8 bytes
Header Length
length header. fixed-length header.
It’s a connectionless
Handshaking Uses handshakes such as SYN,
protocol i.e. No
Techniques ACK, SYN-ACK
handshake
UDP is used
TCP is used by HTTP, by DNS, DHCP,
Protocols
HTTPs, FTP, SMTP and Telnet. TFTP, SNMP, RIP,
and VoIP.
give three names of typical applications in which UDP is used as transport protocol.
Applications of UDP:
• Used for simple request-response communication when the size of data
is less and hence there is lesser concern about flow and error control.
• It is a suitable protocol for multicasting as UDP supports packet
switching.
• UDP is used for some routing update protocols like RIP(Routing
Information Protocol).
• Normally used for real-time applications which can not tolerate uneven
delays between sections of a received message.
• UDP is widely used in online gaming, where low latency and high-speed
communication is essential for a good gaming experience. Game
servers often send small, frequent packets of data to clients, and UDP
is well suited for this type of communication as it is fast and
lightweight.
• Streaming media applications, such as IPTV, online radio, and video
conferencing, use UDP to transmit real-time audio and video data.
The loss of some packets can be tolerated in these applications, as
the data is continuously flowing and does not require retransmission.
• VoIP (Voice over Internet Protocol) services, such as Skype and
WhatsApp, use UDP for real-time voice communication. The delay in
voice communication can be noticeable if packets are delayed due to
congestion control, so UDP is used to ensure fast and efficient data
transmission.
• DNS (Domain Name System) also uses UDP for its query/response
messages. DNS queries are typically small and require a quick
response time, making UDP a suitable protocol for this application.
• DHCP (Dynamic Host Configuration Protocol) uses UDP to dynamically
assign IP addresses to devices on a network. DHCP messages are
typically small, and the delay caused by packet loss or retransmission
is generally not critical for this application.
• Following implementations uses UDP as a transport layer protocol:
o NTP (Network Time Protocol)
o DNS (Domain Name Service)
o BOOTP, DHCP.
o NNP (Network News Protocol)
o Quote of the day protocol
o TFTP, RTSP, RIP.
• The application layer can do some of the tasks through UDP-
o Trace Route
o Record Route
o Timestamp
• UDP takes a datagram from Network Layer, attaches its header, and
sends it to the user. So, it works fast.
• Actually, UDP is a null protocol if you remove the checksum field.
1. Reduce the requirement of computer resources.
2. When using the Multicast or Broadcast to transfer.
3. The transmission of Real-time packets, mainly in multimedia
applications
After a particular message is broken down into bundles, these bundles may travel along
multiple routes if one route is jammed but the destination remains the same.
Advantages
• It is a reliable protocol.
• It provides an error-checking mechanism as well as one for recovery.
• It gives flow control.
• It makes sure that the data reaches the proper destination in the exact
order that it was sent.
• Open Protocol, not owned by any organization or individual.
• It assigns an IP address to each computer on the network and a domain
name to each site thus making each device site to be distinguishable
over the network.
Disadvantages
• TCP is made for Wide Area Networks, thus its size can become an issue
for small networks with low resources.
• TCP runs several layers so it can slow down the speed of the network.
• It is not generic in nature. Meaning, it cannot represent any protocol stack
other than the TCP/IP suite. E.g., it cannot work with a Bluetooth
connection.
• No modifications since their development around 30 years ago.
A TCP connection goes through a series of states during its lifetime. Figure 8.28 shows
the state transition diagram. Each state transition is indicated by an arrow, and the
associated label indicates associated events and actions. Connection establishment
begins in the CLOSED state and proceeds to the ESTABLISHED state. Connection
termination goes from the ESTABLISHED state to the CLOSED state. The normal
transitions for a client are indicated by thick solid lines, and the normal transitions for a
server are denoted by dashed lines. Thus when a client does an active open, it goes
from the CLOSED state, to SYN_SENT, and then to ESTABLISHED. The server carrying
out a passive open goes from the CLOSED state, to LISTEN, SYN_RCVD, and then to
ESTABLISHED.
The client normally initiates the termination of the connection by sending a FIN. The
associated state trajectory goes from the ESTABLISHED state, to FIN_WAIT_1 while it
waits for an ACK, to FIN_WAIT_2 while it waits for the other side's FIN, and then to TIME
WAIT after it sends the final ACK. When the TIME_WAIT 2MSL period expires, the
connection is closed and the
FIGURE 8.28 TCP state transition diagram
Q. 3.B) What are the advantages of fiber optic technology in communications systems?
• The data density per optical fiber is much greater than traditional conductor
transmission and has more data packets.
• Optical fiber communication has advantages such as high-speed data
transmission, data security, and data reliability.
• Optical fiber cables have higher bandwidth than copper conductor cables.
Internet communication, cable TV, and television broadcasting systems benefit from the
use of fiber optics technologies in signal transmission. The advantages of optical fiber
communications include:
• Data reliability
Types of Domain
There are various kinds of domain:
Advantages of WDM:
• Easier to reconfigure
• Full duplex transmission is possible
• It provides higher bandwidth
• Optical component are similar and more reliable
• High security
• This could be the best approach as it is simple to implement
Disadvantages of WDM:
• Signals cannot be very close
• Lightwave carrying while using WDM are limited to 2 point circuit
• Cost of the system increases with the addition of optical components
• Scalability is a concern as OLT has to have transmitter array with one
transmitter for each ONU. Adding a new ONU could be a problem unless the
transmitter were provisioned in advance. Each ONU must have a wavelength specific
laser
• Difficulty in wavelength tuning
• Inefficiency in BW utilization
• Difficulty in a cascaded topology
Q. 5.B) What do you mean by MPLS technology? What are the benefits of using MPLS?
Multi Protocol Label Switching (MPLS) is an IP packet routing technique that routes
IP packet through paths via labels instead of looking at complex routing tables of
routers. This feature helps in increasing the delivery rate of IP packets.
MPLS uses layer 3 service i.e, Internet Protocol, and uses router as forwarding device.
The traffic of different customers is separated from each other because MPLS works
somewhat like VPN. It does not work like regular VPN that encrypts the data but it
ensures packet from one customer cannot be received by another customer. An MPLS
header is added to packet that lies between layers 2 and 3. Hence, it is also considers
to be Layer 2.5 protocol.
MPLS Header –
The MPLS Header is 32 bit long and is divided into four parts –
1. Label – This field is 20 bit long and can take value b/w 0 & 220 – 1.
2. Exp – They are 3 bits long and used for Quality of Service(QoS).
3. Bottom of stack (S) – It is of size 1 bit. MPLS labels are stacked one
over other. If there is only one label remained in MPLS header, then
its value is 1 otherwise 0.
4. Time to Live (TTL) – It is 8 bit long and its value is decreased by one
at each hop to prevent packet to get stuck in network.
Figure – MPLS Header
Create Scalable IP VPNs - with MPLS it's easy to add an additional site to the VPN.
There is no need to configure a complex mesh of tunnels, as is common with some
traditional approaches.
A) What are the differences between single – mode and multi -mode fiber?
Single-mode fiber has a smaller core diameter, allowing only one mode of light to propagate. This
results in higher bandwidth and longer distances but requires more precise light sources. Multi-
mode fiber has a larger core, allowing multiple light modes, offering lower bandwidth and shorter
distances, but it's more tolerant of less precise light sources. Single-mode is commonly used for
long-distance communication, while multi-mode is suitable for shorter distances within buildings
or campuses.
Q. 6.B) What is SONET? Enlist the different SONET electrical transport signals and their
bit rates.
Key Points:
• Developed by Bellcore
• Used in North America
• Standardized by ANSI (American National Standards Institute)
• Similar to SDH (Synchronous Digital Hierarchy) which is used in
Europe and Japan.
• Why SONET is called a Synchronous Network?
A single clock (Primary Reference Clock, PRC) handles the timing of
transmission of signals & equipments across the entire network.
•
STS Multiplexer:
o Performs multiplexing of signals
o Converts electrical signal to optical signal
• STS Demultiplexer:
o Performs demultiplexing of signals
o Converts optical signal to electrical signal
• Regenerator:
• Add/Drop Multiplexer:
SONET Connections:
SONET Layers:
1. Path Layer:
o It is responsible for the movement of signals from its optical
source to its optical destination.
o STS Mux/Demux provides path layer functions.
2. Line Layer:
o It is responsible for the movement of signal across a physical
line.
o STS Mux/Demux and Add/Drop Mux provides Line layer
functions.
3. Section Layer:
o It is responsible for the movement of signal across a physical
section.
o Each device of network provides section layer functions.
4. Photonic Layer:
o It corresponds to the physical layer of the OSI model.
o It includes physical specifications for the optical fibre channel
(presence of light = 1 and absence of light = 0).
Advantages of SONET: