DataComms For Quiz
DataComms For Quiz
2ND SEMESTER | 2023 - 2024 | Sir Ian Cris Luna [email protected] Consultation: Monday - Friday, 8AM - 5PM
ARP Overview
MAC and IP
A device uses ARP to determine the destination
Destination on Same Network
MAC address of a local device when it knows its
There are two primary addresses assigned to a IPv4 address.
device on an Ethernet LAN:
ARP provides two basic functions:
- Layer 2 physical address (the MAC address)
- Resolving IPv4 addresses to MAC addresses.
Used for NIC to NIC communications on the
- Maintaining an ARP table of IPv4 to MAC
same Ethernet network.
address mappings.
- Layer 3 logical address (the IP address)
Used to send the packet from the source device
to the destination device.
Destination on Remote Network To send a frame, a device will search its ARP
table for a destination IPv4 address and a
When the destination IP address is on a remote corresponding MAC address.
network, the destination MAC address is that of - If the packet’s destination IPv4 address is on
the default gateway. the same network, the device will search the
- ARP is used by IPv4 to associate the IPv4 ARP table for the destination IPv4 address.
address of a device with the MAC address of - If the destination IPv4 address is on a different
the device NIC. network, the device will search the ARP table
- ICMPv6 is used by IPv6 to associate the IPv6 for the IPv4 address of the default gateway.
address of a device with the MAC address of - If the device locates the IPv4 address, its
the device NIC. corresponding MAC address is used as the
destination MAC address in the frame.
- If there is no ARP table entry is found, then the
device sends an ARP request.
?
Legend:
Lesson | Header | Main Notes | Example | Extra Notes
?
Legend:
Lesson | Header | Main Notes | Example | Extra Notes
The ping command is an IPv4 and IPv6 testing Ping a Remote Host
utility that uses ICMP echo request and echo
reply Ping can also be used to test the ability of a
messages to test connectivity between hosts and local host to communicate across an
provides a summary that includes the success internetwork.
rate A local host can ping a host on a remote
and average round-trip time to the destination. network. A successful ping across the
• If a reply is not received within the timeout, ping internetwork confirms communication on the
provides a message indicating that a response local network.
was Note: Many network administrators limit or
not received. prohibit the entry of ICMP messages therefore,
• It is common for the first ping to timeout if the lack of a ping response could be due to
address security restrictions
resolution (ARP or ND) needs to be performed
before sending the ICMP Echo Request. Traceroute - Test the Path
?
Applications that use TCP
TCP Header The UDP header is far simpler than the TCP
header because it only has four fields and
TCP is a stateful protocol which requires 8
means it keeps track of the state of bytes (i.e. 64 bits).
the communication session.
TCP records which information it
has sent, and which information
has been acknowledged
The table identifies and describes the four fields within an IP packet.
in a UDP header. • The combination of the source IP address
and source port number, or the
destination IP address and destination
port number is known as a socket.
• Sockets enable multiple processes,
running on a client, to distinguish
themselves from each other, and multiple
connections to a server process to be
Applications that use UDP distinguished from each other.
Port Numbers
Socket Pairs
Session Termination
No matter how well designed a network TCP Flow Control - Congestion Avoidance
is, data loss occasionally occurs.
TCP provides methods of managing When congestion occurs on a network, it results
these segment losses. Among these is in packets being discarded by the overloaded
a mechanism to retransmit segments for router.
unacknowledged data To avoid and control congestion, TCP employs
several congestion handling mechanisms, timers,
Host operating systems today typically and algorithms.
employ an optional TCP feature called
selective acknowledgment (SACK),
negotiated during the three-way
handshake. ?
If both hosts support SACK, the receiver
can explicitly acknowledge which
segments (bytes) were received including UDP Communication
any discontinuous segments
UDP Low Overhead versus Reliability
TCP Flow Control - Window Size and
Acknowledgements UDP does not establish a connection. UDP
provides low overhead data transport because
TCP also provides mechanisms for it has a small datagram header and no network
flow control as follows: management traffic.
• Flow control is the amount of data
that the destination can receive and
process reliably. UDP Datagram Reassembly
• Flow control helps maintain the
reliability of TCP transmission by • UDP does not track
adjusting the rate of data flow sequence numbers the way
between source and destination for TCP does.
a given session. • UDP has no way to reorder
the datagrams into their
TCP Flow Control - Maximum Segment Size transmission order.
• UDP simply reassembles the
Maximum Segment Size (MSS) is the data in the order that it was
maximum amount of data that the received and forwards it to
destination device can receive. the application.
Legend:
Lesson | Header | Main Notes | Example | Extra Notes