How Does UDP Work
How Does UDP Work
How Does UDP Work
ABOUT US (HTTP://SLASHROOT.IN/ABOUT-US)
CONTACT US (/CONTACT)
ARCHIVE (HTTP://SLASHROOT.IN/ARCHIVE)
ARCHIVES (/TAXONOMY/TERM/2)
NETWORKING (/NETWORKING)
Home (/) › Networking (/networking) › How Does UDP Work ? › How Does
UDP Work ?
Tweet
1
Like
0 (#)
Share
(#)
Layer Functionalities
Application Here is where application layer protocols like HTTP, FTP,
Send Me Article Updates Via E-mail SignUp
Layer SMTP sits. Application programs uses the supported
protocol to initiate communication
Adds a lot of features for proper delivery of messages.
Transport Basically it ads reliability with TCP(in some cases
Layer unreliable - not so complex option is also available by
using UDP).
Network This is where IP addresses comes into picture. This layer
Layer does not provide any sort of reliability as such.
Data Link Adds MAC address details of Source and
Layer Destination(gateway)
Physical
This is where networking hardware comes into picture.
Layer
Let's bring tcpdump into the picture and see what happens when
we make a UDP connection. Tcpdump is a tool to capture
network packets coming in and leaving out of the system. Its
available on almost all Linux distro.
Tcpdump will help us see the details and contents of the network
traffic. To understand this, we need to first simulate a UDP
request to somewhere, and during the same time let's capture
the network packets.
Remember the fact that UDP and its details along with
application data is encapsulated inside IP packet(as we
discussed earlier, the destination will peel every bit of
data associated with each layer, and submit it to the
next layer moving upwards towards the application
layer).
Now let's get to our main topic. UDP. That is the second line in
the tcpdump output shown (192.168.40.27.55625 > 8.8.8.8.53:
[udp sum ok] 63851+ A? google.com. (28))
UDP does not care about packets that are dropped &
packets that are delivered out of order. But one thing
UDP cares about is the integrity of the packets that are
received(although optional, there is a provision for
integrity verification). But still, what is the use of having
an integrity verification mechanism using checksum, if it
can't correct an integrity problem?.
Add a comment...
Your name
Subject
Comment *
(/curl-command-tutorial-linux-
example-usage)
CURL command
Tutorial in Linux with
Example Usage (/curl-
command-tutorial-linux-
example-usage)
Archives (/taxonomy/term/2) -
16 comment(s)
(https://www.slashroot.in/curl-
command-tutorial-linux-
example-
usage#comments#comments)
(/iperf-how-test-network-
speedperformancebandwidth)
IPERF: How to test
network
Speed,Performance,B
andwidth (/iperf-how-
test-network-
speedperformanceband
width)
Archives (/taxonomy/term/2) -
18 comment(s)
(https://www.slashroot.in/iperf-
how-test-network-
speedperformancebandwidth#c
omments#comments)
(/difference-between-iterative-
and-recursive-dns-query)
difference between
iterative and recursive
dns query (/difference-
Send Me Article Updates Via E-mail SignUp
between-iterative-and-
recursive-dns-query)
Archives (/taxonomy/term/2) -
43 comment(s)
(https://www.slashroot.in/differe
nce-between-iterative-and-
recursive-dns-
query#comments#comments)
(/how-does-traceroute-work-
and-examples-using-traceroute-
command)
How Does Traceroute
Work and Example's
of using traceroute
command (/how-does-
traceroute-work-and-
examples-using-
traceroute-command)
Networking (/networking) - 72
comment(s)
(https://www.slashroot.in/how-
does-traceroute-work-and-
examples-using-traceroute-
command#comments#comment
s)
(/how-does-traceroute-work- (/fingerprinting-detect-remote-
and-examples-using-traceroute- operating-system)
command) fingerprinting-detect
How Does Traceroute remote operating
Work and Example's system (/fingerprinting-
of using traceroute detect-remote-operating-
command (/how-does- system)
traceroute-work-and-
examples-using- Average: 5 (9 votes)
traceroute-command)
Networking (/networking) - 72
comment(s)
(https://www.slashroot.in/how-
does-traceroute-work-and- (/what-is-port-knocking-and-
examples-using-traceroute- how-to-configure-it-in-linux)
command#comments#comment What is Port knocking
s) and how to configure
it in Linux (/what-is-
port-knocking-and-how-
SAN vs NAS -
Send Me Article
Difference Updates
between a Via E-mail SignUp
to-configure-it-in-linux)
Average: 5 (4 votes)
(/san-vs-nas-difference-
between-storage-area-network-and-
network-attached-storage) how to add an init
Storage Area Network script for nginx
and Network Attached service (/how-add-init-
Storage (/san-vs-nas- script-nginx-service)
difference-between-
storage-area-network- Average: 5 (5 votes)
and-network-attached-
storage)
Archives (/taxonomy/term/2) -
54 comment(s)
(/software-raid-1-configuration-
(https://www.slashroot.in/san-
linux)
vs-nas-difference-between-
storage-area-network-and- Software RAID 1
network-attached- Configuration in Linux
storage#comments#comments) (/software-raid-1-
configuration-linux)
(/linux-booting-process-step- (/httperf-web-server-
step-tutorial-understanding-linux-boot- performance-test)
sequence) httperf web server
Linux Booting performance test
Process: A step by (/httperf-web-server-
step tutorial for performance-test)
understanding Linux
boot sequence (/linux-
Average: 5 (1 vote)
booting-process-step-
step-tutorial-
understanding-linux-
boot-sequence)
(/how-to-configure-split-
Archives (/taxonomy/term/2) - horizon-dns-in-bind)
40 comment(s)
How To Configure
(https://www.slashroot.in/linux-
booting-process-step-step-
Split Horizon DNS in
tutorial-understanding-linux- BIND (/how-to-
Send Me Article Updates Via E-mail SignUp
boot-
sequence#comments#comment configure-split-horizon-
s)
dns-in-bind)
Ch
an
(/changing-timezone-linux)
gin
g Timezone in Linux
(/changing-timezone-
linux)
Average: 5 (1 vote)
Be a fan on Facebook
sarath@slashroot.in (http://www.facebook.com/pages/Slashrootin-
(mailto:sarath@slashroot.in) A-technical-
Blog/101642306662299)
Satish Tiwary
Ph: +919509452488
Email:
satish@slashroot.in
(mailto:satish@slashroot.in)
(/what-is-system-call-in-unix- (/iperf-how-test-network-
and-linux) speedperformancebandwidth)
What is a System Call in IPERF: How to test network
Unix/Linux (/what-is-system- Speed,Performance,Bandwidth
Send Me Article Updates Via E-mail
call-in-unix-and-linux) SignUp
Archives (/taxonomy/term/2) - 2 (/iperf-how-test-network-
weeks 4 days ago speedperformancebandwidth)
Archives (/taxonomy/term/2) -
last view 10 sec ago
(/how-configure-mysql-cluster-
multiple-masters-ubuntu-1604)
How To Configure MySQL
Cluster with Multiple Masters (/which-is-the-fastest-method-
on Ubuntu 16.04 (/how- to-delete-files-in-linux)
configure-mysql-cluster- Which is the fastest method
multiple-masters-ubuntu-1604) to delete files in Linux
(/which-is-the-fastest-method-to-
Archives (/taxonomy/term/2) - 3 delete-files-in-linux)
weeks 3 days ago
Archives (/taxonomy/term/2) -
last view 27 sec ago
(/how-run-multiple-commands-
parallel-linux)
How To Run Multiple (/dns-root-servers-most-critical-
Commands In Parallel on infrastructure-internet)
Linux (/how-run-multiple- DNS Root Servers: The most
commands-parallel-linux) critical infrastructure on the
internet (/dns-root-servers-
Archives (/taxonomy/term/2) - 2 most-critical-infrastructure-
months 4 weeks ago internet)
Archives (/taxonomy/term/2) -
last view 29 sec ago
(/how-increase-size-root-
volume-google-cloud-platform-gcp)
How to Increase the Size of
Root Volume in Google (/yum-repository-and-package-
Cloud Platform - GCP (/how- management-complete-tutorial)
increase-size-root-volume- YUM repository and package
google-cloud-platform-gcp) management: Complete
Tutorial (/yum-repository-and-
Archives (/taxonomy/term/2) - 3 package-management-complete-
months 1 day ago tutorial)
Archives (/taxonomy/term/2) -
last view 47 sec ago