Computer Networking Mid
Computer Networking Mid
➢ Service: host-to-host
❖ IP fragmentation, reassembly
Network links have MTU (max.transfer size) - largest possible link-
level frame
IP address
❖ Introduction
IP address: 32-bit identifier for host, router interface
❖ Types of addresses
OSI model.
assigned to a device.
OSI model).
DHCP server).
❖ IP addressing schemes
address
Classful networks (Traditional, not commonly used for public IP
allocation):
● Structure:
○ The remaining three octets (bytes) identify the hosts within the
communication)
2. Class B Networks (128.0.0.0 - 191.255.255.255):
● Structure:
○ The remaining two octets identify the hosts within the network.
(16 bits)
● Structure:
○ The last octet identifies the hosts within the network. (8 bits)
It's calculated by setting all host bits to 1 (e.g., for Class C network
networks.
Public Addresses:
designated for use on private networks and are not routable on the global
with each other within the same network but cannot be directly accessed
DHCP overview:
ICMP message: type, code plus first 8 bytes of IP datagram causing error
❖ IPv6:
Initial motivation: 32-bit address space soon to be completely allocated.
Additional motivation:
➢ no fragmentation allowed
Subnet
IP address:
What’s a subnet ?
Subneting:
portion)
Explanation:
● Borrowing bits from the host portion of the subnet mask essentially
❖ 5 steps to remember
1) Identify the class of the IP address and note the Default Subnet
Mask.
3) Note the number of hosts required per subnet and find the Subnet
Notation:
➢ LS packet dissemination
For each link, multiple cost metrics for different TOS (e.g., satellite
link cost set “low” for best effort ToS; high for real time ToS)
❖ Hierarchical OSPF
Two-level hierarchy: local area, backbone.
➢ no “message boundaries”
Pipelined:
Connection-oriented:
Flow controlled:
2. TCP Operations:
Fast Retransmit: When TCP detects the loss of one or more packets
due to congestion, it retransmits the missing packets immediately without
waiting for a timeout event. Fast retransmit helps reduce the delay caused
by timeouts and speeds up the recovery process.
Timeout: In TCP, a timeout occurs when the sender does not receive
an acknowledgment (ACK) for a transmitted segment within a certain
period, known as the retransmission timeout (RTO). The RTO is
dynamically adjusted based on network conditions and typically increases
after each timeout event. When a timeout occurs, the sender assumes that
the segment was lost in transit and retransmits it, along with subsequent
unacknowledged segments. Timeouts are crucial for TCP reliability,
ensuring that lost or delayed packets are eventually retransmitted to
maintain data integrity and flow control.
Triple Duplicate ACKs: Triple duplicate ACKs occur when the
sender receives three consecutive duplicate acknowledgments for the
same sequence number from the receiver. This indicates that the receiver
has received out-of-order segments and is able to process them but is
missing one specific segment, which is presumed lost. Upon detecting
triple duplicate ACKs, the sender performs a fast retransmit of the missing
segment without waiting for the retransmission timeout (RTO) to expire.
This mechanism helps expedite the recovery from packet loss and
minimizes the delay caused by timeouts, enhancing the efficiency of TCP
congestion control algorithms.
in TCP congestion control, defining the point at which TCP switches from
i) Identify the “transmission rounds” at which the “Slow Start” phase of TCP
Reno takes place?
iii) After 16th transmission round, is packet loss detected based on “Triple
duplicate ACKs” or “Timeout”?
iv) After 22th transmission round, is packet loss detected based on “Triple
duplicate ACKs” or “Timeout”?
viii) Suppose there is 01 packet loss (segment loss) detected at the 26th
transmission round due to "Triple duplicate ACKs". Determine the value of
the congestion window and SSthreshold.
Answers:
1) (1:6), (23:26)
2) (6:16), (17:22)
4) Timeout
5) around 32
6) around 21
7) at transmission round 7
8) SSthreshold = 4,cwin = 7
Explain the operations of tcp Reno at the points A, B, C, D in above figure!
Answers:
Question:
Answer:
Question:
Answer:
a) Because it sended 100 packets and receiveed 100 ACKs, It's 100%
success .so Cwin is 33000 and threshold is still 32000
b) Because it sended 100 packets and receiveed 100 ACKs It's 100%
success and cwin is much exceed threshold(32000<36000). So it start a
Congestion Avoidance phase. So CWIN is 36500 and threshold is still
32000