Networks must be able to transfer data from one device to another with acceptable
accuracy. For most applications, a system must guarantee that the data received are
identical to the data transmitted. Any time data are transmitted from one node to the
next, they can become corrupted in passage. Many factors can alter one or more bits of
a message. Some applications require a mechanism for detecting and correcting errors.
Some applications can tolerate a small level of error. For example, random errors
in audio or video transmissions may be tolerable, but when we transfer text, we expect
a very high level of accuracy.
At the data-link layer, if a frame is corrupted between the two nodes, it needs to be
corrected before it continues its journey to other nodes. However, most link-layer protocols
simply discard the frame and let the upper-layer protocols handle the retransmission
of the frame. Some multimedia applications, however, try to correct the corrupted frame.
This chapter is divided into five sections.
❑ The first section introduces types of errors, the concept of redundancy, and distinguishes
between error detection and correction.
❑ The second section discusses block coding. It shows how error can be detected
using block coding and also introduces the concept of Hamming distance.
❑ The third section discusses cyclic codes. It discusses a subset of cyclic code, CRC,
that is very common in the data-link layer. The section shows how CRC can be
easily implemented in hardware and represented by polynomials.
❑ The fourth section discusses checksums. It shows how a checksum is calculated for
a set of data words. It also gives some other approaches to traditional checksum.
❑ The fifth section discusses forward error correction. It shows how Hamming distance
can also be used for this purpose. The section also describes cheaper methods
to achieve the same goal, such as XORing of packets, interleaving chunks, or
compounding high and low resolutions packets.
The data link layer, or layer 2, is the second layer of the seven-layer OSI model of computer networking. This layer is the protocol layer that transfers data between adjacent network nodes in a wide area network (WAN) or between nodes on the same local area network (LAN) segment.
The sender initializes the checksum to 0 and adds all data items and the checksum. However, 36 cannot be expressed in 4 bits. The extra two bits are wrapped and added with the sum to create the wrapped sum value 6. The sum is then complemented, resulting in the checksum value 9 (15 − 6 = 9).
switching techniques in data communication and networkingHarshita Yadav
it is a detailed presentation on switching techniques. it includes the three types of switching technique. it is described in such manner that you can learn switching without any difficulties.
The data link layer, or layer 2, is the second layer of the seven-layer OSI model of computer networking. This layer is the protocol layer that transfers data between adjacent network nodes in a wide area network (WAN) or between nodes on the same local area network (LAN) segment.
The sender initializes the checksum to 0 and adds all data items and the checksum. However, 36 cannot be expressed in 4 bits. The extra two bits are wrapped and added with the sum to create the wrapped sum value 6. The sum is then complemented, resulting in the checksum value 9 (15 − 6 = 9).
switching techniques in data communication and networkingHarshita Yadav
it is a detailed presentation on switching techniques. it includes the three types of switching technique. it is described in such manner that you can learn switching without any difficulties.
Error Detection and correction concepts in Data communication and networksNt Arvind
single bit , burst error detection and correction in data communication networks , block coding ( hamming code , simple parity check code , Cyclic redundancy check-CRC , checksum , internet checksum etc
power point presentation regarding the number system conversions, representation of negative numbers and various codes of representations and error detection and correction codes.
Service performance and analysis in cloud computing extened 2Abdullaziz Tagawy
This is a study to the research paper (Service Performance and Analysis in Cloud Computing) by Kaiqi Xiong and Harry Perros in the class related to the course of EC636 Stochastic and Random Process in Tripoli University-Engineering faculty-Computer Engineering Department.
You can find this paper in (https://ieeexplore.ieee.org/document/5190711)
A solar cell (photovoltaic devices) is a pn junction device with no voltage directly applied across the junction (used with zero bias).
A photodiode is a pn junction diode operated with an applied reverse-biased voltage.
Managing enterprise networks with cisco prime infrastructure_ 1 of 2Abdullaziz Tagawy
Network Management is define as monitoring, testing, configuring, and troubleshooting network components to meet a set of requirements defined by an organization.
The requirements include the smooth, efficient operation of the network that provides the predefined quality of service for users.
To accomplish this task, a network management system uses hardware, software, and humans.
IPsec provides the capability to secure communications across a LAN, across private and public WANs, and across the Internet. Examples of its use include:
Secure branch office connectivity over the Internet
Secure remote access over the Internet
Establishing extranet and intranet connectivity with partners
Enhancing electronic commerce security
A second important technique in error-control coding is that of convolutional coding . In this type of coding the encoder output is not in block form, but is in the form of an encoded
sequence generated from an input information sequence.
convolutional encoding is designed so that its decoding can be performed in some structured and simplified way. One of the design assumptions that simplifies decoding
is linearity of the code. For this reason, linear convolutional codes are preferred. The source alphabet is taken from a finite field or Galois field GF(q).
Convolution coding is a popular error-correcting coding method used in digital communications.
The convolution operation encodes some redundant information into the transmitted signal, thereby improving the data capacity of the channel.
Convolution Encoding with Viterbi decoding is a powerful FEC technique that is particularly suited to a channel in which the transmitted signal is corrupted mainly by AWGN.
It is simple and has good performance with low implementation cost.
OFDM allows tightly packed carriers to convey information orthogonally and with high bandwidth efficiency
Objectives Description:
Concepts
Basic idea
Introduction to OFDM
Implementation
Advantages and Drawbacks.
FDMA
Solving QoS multicast routing problem using ACO algorithmAbdullaziz Tagawy
Many Internet multicast applications have stringent Quality-of-Service (QoS) requirements that include delay, loss rate, bandwidth, and delay jitter. In this paper, we present a Swarm intelligence based on Ant Colony Optimization (ACO) technique to optimize the multicast tree
Solving QoS multicast routing problem using aco algorithm Abdullaziz Tagawy
In IP multicasting messages are sent from the source node to all destination nodes. In order to meet QoS requirements an optimizing algorithm is needed. We propose an Ant Colony Optimization algorithm to do so. Ants release a chemical called pheromone while searching for food. They are capable of finding shortest path to their target. This can give an effective optimal solution to our Multicast Routing Problem.
Snapdragon is a family of mobile systems on a chip (SoC) by Qualcomm. Qualcomm considers Snapdragon a "platform" for use in smartphones, tablets, and smartbook devices.
ARM is a family of RISC-based microprocessors and microcontrollers designed by ARM Inc., Cambridge, England.
ARM chips are high-speed processors that are known for their small die size and low power requirements.
The TCP/IP protocol suite does not define any protocol in the data-link layer or
physical layer. These two layers are territories of networks that when connected
make up the Internet. These networks, wired or wireless, provide services to the upper
three layers of the TCP/IP suite. This may give us a clue that there are several standard
protocols in the market today. For this reason, we discuss the data-link layer in several
chapters. This chapter is an introduction that gives the general idea and common issues
in the data-link layer that relate to all networks.
❑ The first section introduces the data-link layer. It starts with defining the concept
of links and nodes. The section then lists and briefly describes the services provided
by the data-link layer. It next defines two categories of links: point-to-point
and broadcast links. The section finally defines two sublayers at the data-link layer
that will be elaborated on in the next few chapters.
❑ The second section discusses link-layer addressing. It first explains the rationale
behind the existence of an addressing mechanism at the data-link layer. It then
describes three types of link-layer addresses to be found in some link-layer protocols.
The section discusses the Address Resolution Protocol (ARP), which maps
the addresses at the network layer to addresses at the data-link layer. This protocol
helps a packet at the network layer find the link-layer address of the next node for
delivery of the frame that encapsulates the packet. To show how the network layer
helps us to find the data-link-layer addresses, a long example is included in this
section that shows what happens at each node when a packet is travelling through
the Internet.
1.Wireless Communication System_Wireless communication is a broad term that i...JeyaPerumal1
Wireless communication involves the transmission of information over a distance without the help of wires, cables or any other forms of electrical conductors.
Wireless communication is a broad term that incorporates all procedures and forms of connecting and communicating between two or more devices using a wireless signal through wireless communication technologies and devices.
Features of Wireless Communication
The evolution of wireless technology has brought many advancements with its effective features.
The transmitted distance can be anywhere between a few meters (for example, a television's remote control) and thousands of kilometers (for example, radio communication).
Wireless communication can be used for cellular telephony, wireless access to the internet, wireless home networking, and so on.
Understanding User Behavior with Google Analytics.pdfSEO Article Boost
Unlocking the full potential of Google Analytics is crucial for understanding and optimizing your website’s performance. This guide dives deep into the essential aspects of Google Analytics, from analyzing traffic sources to understanding user demographics and tracking user engagement.
Traffic Sources Analysis:
Discover where your website traffic originates. By examining the Acquisition section, you can identify whether visitors come from organic search, paid campaigns, direct visits, social media, or referral links. This knowledge helps in refining marketing strategies and optimizing resource allocation.
User Demographics Insights:
Gain a comprehensive view of your audience by exploring demographic data in the Audience section. Understand age, gender, and interests to tailor your marketing strategies effectively. Leverage this information to create personalized content and improve user engagement and conversion rates.
Tracking User Engagement:
Learn how to measure user interaction with your site through key metrics like bounce rate, average session duration, and pages per session. Enhance user experience by analyzing engagement metrics and implementing strategies to keep visitors engaged.
Conversion Rate Optimization:
Understand the importance of conversion rates and how to track them using Google Analytics. Set up Goals, analyze conversion funnels, segment your audience, and employ A/B testing to optimize your website for higher conversions. Utilize ecommerce tracking and multi-channel funnels for a detailed view of your sales performance and marketing channel contributions.
Custom Reports and Dashboards:
Create custom reports and dashboards to visualize and interpret data relevant to your business goals. Use advanced filters, segments, and visualization options to gain deeper insights. Incorporate custom dimensions and metrics for tailored data analysis. Integrate external data sources to enrich your analytics and make well-informed decisions.
This guide is designed to help you harness the power of Google Analytics for making data-driven decisions that enhance website performance and achieve your digital marketing objectives. Whether you are looking to improve SEO, refine your social media strategy, or boost conversion rates, understanding and utilizing Google Analytics is essential for your success.
Italy Agriculture Equipment Market Outlook to 2027harveenkaur52
Agriculture and Animal Care
Ken Research has an expertise in Agriculture and Animal Care sector and offer vast collection of information related to all major aspects such as Agriculture equipment, Crop Protection, Seed, Agriculture Chemical, Fertilizers, Protected Cultivators, Palm Oil, Hybrid Seed, Animal Feed additives and many more.
Our continuous study and findings in agriculture sector provide better insights to companies dealing with related product and services, government and agriculture associations, researchers and students to well understand the present and expected scenario.
Our Animal care category provides solutions on Animal Healthcare and related products and services, including, animal feed additives, vaccination
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfFlorence Consulting
Quattordicesimo Meetup di Milano, tenutosi a Milano il 23 Maggio 2024 dalle ore 17:00 alle ore 18:30 in presenza e da remoto.
Abbiamo parlato di come Axpo Italia S.p.A. ha ridotto il technical debt migrando le proprie APIs da Mule 3.9 a Mule 4.4 passando anche da on-premises a CloudHub 1.0.
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBrad Spiegel Macon GA
Brad Spiegel Macon GA’s journey exemplifies the profound impact that one individual can have on their community. Through his unwavering dedication to digital inclusion, he’s not only bridging the gap in Macon but also setting an example for others to follow.
Gen Z and the marketplaces - let's translate their needsLaura Szabó
The product workshop focused on exploring the requirements of Generation Z in relation to marketplace dynamics. We delved into their specific needs, examined the specifics in their shopping preferences, and analyzed their preferred methods for accessing information and making purchases within a marketplace. Through the study of real-life cases , we tried to gain valuable insights into enhancing the marketplace experience for Generation Z.
The workshop was held on the DMA Conference in Vienna June 2024.
2. INTRODUCTION
O Types of Errors
Whenever bits flow from one point to
another, they are subject to unpredictable
changes because of interference. This
interference can change the shape of the
signal.
3. INTRODUCTION
Types of Errors
O The term single-bit
error means that
only 1 bit of a given
data unit (such as a
byte,
O character, or
packet) is changed
from 1 to 0 or from 0
to 1.
4. INTRODUCTION
Types of Errors
O The term burst
error means
O that 2 or more bits
in the data unit have
changed from 1 to 0
or from 0 to 1.
5. INTRODUCTION
O Redundancy
The central concept in detecting or
correcting errors is redundancy. To be able
to detect or correct errors, we need to send
some extra bits with our data. These
redundant bits are added by the sender and
removed by the receiver. Their presence
allows the receiver to detect or correct
corrupted bits.
6. INTRODUCTION
O Detection versus Correction
O The correction of errors is more difficult
than the detection.
O In error detection, we are
only looking to see if any error has occurred.
The answer is a simple yes or no. We are
not
even interested in the number of corrupted
bits.
7. INTRODUCTION
O Detection versus Correction
O In error correction, we need to know the
exact number of bits that are corrupted
and, more importantly, their location in the
message. The number of errors and the
size of the message are important factors
8. INTRODUCTION
O Coding
O Redundancy is achieved through various
coding schemes.
O The ratio of redundant bits to data bits and
the robustness of the process are
important factors in any coding scheme.
O block coding and convolution coding.
9. BLOCK CODING
O In block coding, we divide our message into
blocks, each of k bits, called datawords.
O adding r redundant bits to each block to make
the length n = k + r.
O The resulting n-bit blocks are called
codewords.
O If the
O receiver receives an invalid codeword, this
indicates that the data was corrupted during
O transmission.
10. BLOCK CODING
Error Detection
O If the following two
conditions are met, the
receiver can detect a
change in the original
codeword.
O 1. The receiver has (or
can find) a list of valid
codewords.
O 2. The original codeword
has changed to an invalid
one.
13. BLOCK CODING
O Hamming Distance
O Hamming distance between two words (of the
same size) is the number of differences between
the corresponding bits.
O Hamming distance between two words x and y
as d(x, y).
O Hamming
O distance between the two is d(00000, 1101) = 3.
O if the Hamming distance between the sent and
the received codeword is not zero, the codeword
has been corrupted during transmission.
14. BLOCK CODING
O Hamming Distance
O It can easily be found if we apply the XOR
operation (⊕) .
15. BLOCK CODING
O Hamming Distance
O EX:-
O Let us find the Hamming distance between
two pairs of words.
O 1. The Hamming distance d(000, 011) is 2
because (000 ⊕ 011) is 011 (two 1s).
O 2. The Hamming distance d(10101, 11110) is
3 because (10101 ⊕ 11110) is 01011 (three
1s).
16. BLOCK CODING
O Minimum Hamming Distance for Error
Detection :
O the minimum Hamming distance is the
smallest Hamming distance between all
possible pairs of codewords.
17. BLOCK CODING
Minimum Hamming
Distance for Error
Detection :
O EX:-The minimum Hamming distance for code
scheme in the Table is 2. This code guarantees
detection of only a single error.
O For example, if the third codeword (101) is sent and
one error occurs, the received codeword does not
match any valid codeword. If two errors occur,
however, the received codeword may match a valid
codeword and the errors are not detected.
18. BLOCK CODING
O Minimum Hamming Distance for Error
Detection :
O EX:- A code scheme has a Hamming
distance dmin = 4. This code guarantees the
detection of up to three errors (d = s + 1 or s
= 3).
19. BLOCK CODING
O Linear Block Codes :
O Almost all block codes used today belong to
a subset of block codes called linear block
codes.
O The use of nonlinear block codes for error
detection and correction is not as
widespread because their structure makes
theoretical analysis and implementation
difficult.
20. BLOCK CODING
Linear Block Codes :
O EX:- The code in Table is a linear block code
because the result of XORing any codeword
with any other codeword is a valid codeword.
O For example, the XORing of the second and
third codewords creates the fourth one.
21. BLOCK CODING
Linear Block Codes :
O The minimum Hamming distance is the
number of 1s in the nonzero valid
codeword with the smallest number of 1s.
O EX:- In the Table the numbers of 1s in the
nonzero codewords are 2, 2, and 2. So the
minimum Hamming distance is dmin = 2.
22. BLOCK CODING
O Parity-Check Code :
O It is linear block code.
O k-bit dataword is changed to an n-bit codeword
where n = k + 1.
O The extra bit, called the parity bit .
O the parity bit, is selected to make the total
O number of 1s in the codeword even. Although
some implementations specify an odd
O number of 1s,
23. BLOCK CODING
O Parity-Check Code :
O The minimum Hamming distance for this
category is dmin = 2,
O It is a single-bit error-detecting code
26. BLOCK CODING
O Parity-Check Code :
O EX:- Let us look at some transmission scenarios. Assume the sender sends the
dataword 1011. The codeword created from this dataword is 10111, which is sent to
the receiver. We examine five cases:
O 1. No error occurs; the received codeword is 10111. The syndrome is 0. The
dataword 1011 is created.
O 2. One single-bit error changes a1. The received codeword is 10011. The syndrome
is 1. No dataword is created.
O 3. One single-bit error changes r0. The received codeword is 10110. The syndrome
is 1. No dataword is created. Note that although none of the dataword bits are
corrupted, no dataword is created because the code is not sophisticated enough to
show the position of the corrupted bit.
O 4. An error changes r0 and a second error changes a3. The received codeword is
00110. The syndrome is 0. The dataword 0011 is created at the receiver. Note that
here the dataword is wrongly created due to the syndrome value. The simple parity-
check decoder cannot detect an even number of errors. The errors cancel each other
out and give the syndrome a value of 0.
O 5. Three bits—a3, a2, and a1—are changed by errors. The received codeword is
01011. The syndrome is 1. The dataword is not created. This shows that the simple
parity check, guaranteed to detect one single error, can also find any odd number of
errors.
28. CYCLIC CODES
O Cyclic codes are special linear block
codes with one extra property ; Why ?
O Because the result is another codeword .
O EX : - if 1011000 is a codeword and we
cyclically left-shift, then 0110001 is also a
codeword.
29. CYCLIC CODES
O Cyclic Redundancy Check (CRC) :
O It is used in networks such as LANs and WANs .
31. CYCLIC CODES
O Cyclic Redundancy Check (CRC) :
O In the encoder, the dataword has k bits (4 here); the
codeword has n bits (7 here).
O The size of the dataword is augmented by adding n - k
(3 here) 0s to the right-hand side of the word. The n-bit
result is fed into the generator. The generator uses a
divisor of size n - k + 1 (4 here), predefined and agreed
upon. The generator divides the augmented dataword
by the divisor (modulo-2 division). The quotient of the
division is discarded; the remainder (r2r1r0) is
appended to the dataword to create the codeword.
32. CYCLIC CODES
O Cyclic Redundancy Check (CRC) :
O The decoder receives the codeword (possibly
corrupted in transition). A copy of all n bits is fed to the
checker, which is a replica of the generator. The
remainder produced by the checker is a syndrome of n
− k (3 here) bits, which is fed to the decision logic
analyzer. The analyzer has a simple function. If the
syndrome bits are all 0s, the 4 leftmost bits of the
codeword are accepted as the dataword (interpreted
as no error); otherwise, the 4 bits are discarded (error).
35. CYCLIC CODES
O Polynomials :
O pattern of 0s and 1s can be represented
as a polynomial with coefficients of 0 and
1 . The power of each term shows the
position of the bit; the coefficient shows
the value of the bit.
37. CYCLIC CODES
O Polynomials :
O The degree of a polynomial is the highest power
in the polynomial. For example, the degree of the
polynomial 𝑥6
+ 𝑥 +1 is 6 .
O Adding and subtracting polynomials in
mathematics are done by adding or subtracting
the coefficients of terms with the same power.
O EX:- adding 𝑥5
+ 𝑥4
+ 𝑥2
and 𝑥6
+ 𝑥4
+ 𝑥2
gives
just 𝑥6 + 𝑥5. The terms 𝑥4 and 𝑥2 are deleted..
38. CYCLIC CODES
O Polynomials :
O Multiplying a term by another term is very simple; we
just add the powers.
EX:-, 𝑥4
+ 𝑥3
is 𝑥7
.
O For dividing, we just subtract the power of the
second term from the power of the first. For example,
𝑥5/𝑥2 is 𝑥3 .
O EX:- (𝑥5
+ 𝑥3
+ 𝑥2
+ 𝑥 )(𝑥2
+ 𝑥 +1) = 𝑥7
+ 𝑥6
+ 𝑥5
+ 𝑥5
+𝑥4
+ 𝑥3
+ 𝑥4
+ 𝑥3
+𝑥2
+ 𝑥3
+ 𝑥2
+ 𝑥 =𝑥7
+ 𝑥6
+
𝑥3 + 𝑥
39. CYCLIC CODES
Polynomials :
O Shifting :
O A binary pattern is often shifted a
number of bits to the right or left.
Shifting to the left means adding
extra 0s as rightmost bits; shifting to
the right means deleting some
rightmost bits. Shifting to the left is
accomplished by multiplying each
term of the polynomial by 𝑥 𝑚
, where
m is the number of shifted bits;
shifting to the right is accomplished
by dividing each term of the
polynomial by 𝑥 𝑚
. The following
shows shifting to the left and to the
right. Note that we do not have
negative powers in the polynomial
representation.
O Shifting left 3 bits:
10011 becomes
10011000 :
O 𝑥4 + 𝑥 +1 becomes
𝑥7 + 𝑥4+𝑥3
O Shifting right 3 bits:
10011 becomes 10 :
O 𝑥4
+ 𝑥 +1 becomes
𝑥
41. CYCLIC CODES
Cyclic Code Encoder
Using Polynomials :
O The divisor in a
cyclic code is
normally called the
generator
polynomial or
simply the
generator.
42. CYCLIC CODES
O Cyclic Code Analysis :
O 𝑓 𝑥 is a polynomial with binary
coefficients.
O Dataword: 𝑑 𝑥
O Codeword: 𝑐 𝑥
O Generator: 𝑔 𝑥
O Syndrome: 𝑠 𝑥
O Error: 𝑒 𝑥
43. CYCLIC CODES
O Cyclic Code
Analysis :
O In a cyclic code,
O 1. If 𝑠 𝑥 ¦ 0, one or
more bits is
corrupted.
O 2. If 𝑠 𝑥 = 0, either
O a. No bit is
corrupted, or
O b. Some bits are
corrupted, but the
decoder failed to
detect them.
44. CYCLIC CODES
O Cyclic Code Analysis :
O
𝑹𝒆𝒄𝒆𝒊𝒗𝒆𝒅 𝒄𝒐𝒅𝒆𝒘𝒐𝒓𝒅
𝒈(𝒙)
=
𝒄(𝒙)
𝒈(𝒙)
+
𝒆(𝒙)
𝒈(𝒙)
O The first term at the right-hand side of the equality has a
remainder of zero (according to the definition of
codeword). So the syndrome is actually the remainder of
the second term on the right-hand side. If this term does
not have a remainder (syndrome = 0), either e(x) is 0 or
e(x) is divisible by g(x). We do not have to worry about
the first case (there is no error); the second case is very
important. Those errors that are divisible by g(x) are not
caught.
O In a cyclic code, those 𝒆(𝒙) errors that are
divisible by 𝒈(𝒙) are not caught.
45. CYCLIC CODES
O Single-Bit Error :
O It is 𝒆(𝒙) = 𝑥 𝑖, where 𝑖 is the position of the bit. If
a single-bit error is caught, then 𝑥 𝑖 is not divisible
by g(x). (Note that when we say not divisible, we
mean that there is a remainder.) If 𝒈(𝒙) has at
least two terms (which is normally the case) and
the coefficient of 𝑥0 is not zero (the rightmost bit
is 1), then 𝒆(𝒙) cannot be divided by 𝒈(𝒙).
If the generator has more than one term and the coefficient
of 𝒙 𝟎 is 1, all single-bit errors can be caught .
46. CYCLIC CODES
O Single-Bit Error :
O EX:-Which of the
following 𝒈(𝒙) values
guarantees that a single-
bit error is caught? For
each case, what is the
error that cannot be
caught?
a) a. 𝑥 + 1
b) b. 𝑥3
c) c. 1
O Solution
a) No 𝑥 𝑖
can be divisible by 𝑥 + 1 . In
other words, 𝑥 𝑖
/( 𝑥 + 1) always has a
remainder. So the syndrome is
nonzero. Any single-bit error can be
caught.
b) If i is equal to or greater than 3, 𝑥 𝑖 is
divisible by 𝒈(𝒙).The remainder of
𝑥 𝑖
/ 𝑥3
is zero, and the receiver is
fooled into believing that there is no
error, although there might be one.
Note that in this case, the corrupted
bit must be in position 4 or above. All
single-bit errors in positions 1 to 3 are
caught.
c) All values of i make 𝑥 𝑖
divisible by 𝒈(𝒙
). No single-bit error can be caught. In
addition, this 𝒈(𝒙) is useless because
it means the codeword is just the
dataword augmented with n − k
zeros.
51. CHECKSUM
O Checksum is an error-detecting technique that can
be applied to a message of any length.
O In the Internet, the checksum technique is mostly
used at the network and transport layer rather than
the data-link layer.
O At the source, the message is first divided into m-
bit units. The generator then creates an extra m-bit
unit called the checksum, which is sent with the
message.
52. CHECKSUM
O At the destination, the checker creates a new
checksum from the combination of the message
and sent checksum. If the new checksum is all
0s, the message is accepted; otherwise, the
message is discarded .
O The checksum unit is not necessarily added at
the end of the message; it can be inserted in the
middle of the message.
54. CHECKSUM
O Concept :
O EX:- Suppose the message is a list of five 4-bit
numbers that we want to send to a destination .
O In addition to sending these numbers, we send the
sum of the numbers.
O if the set of numbers is (7, 11, 12, 0, 6) .
O (7, 11, 12, 0, 6, 36) they will be send, whereas 36
is the sum of the original numbers.
55. CHECKSUM
O Concept :-
O The receiver adds the five numbers and compares
the result with the sum.
O If the two are the same, the receiver assumes no
error, accepts the five numbers and discards the
sum.
O Otherwise , there is an error somewhere and the
message is not accepted.
56. CHECKSUM
O One’s Complement Addition
O In the previous example, the decimal number 36 in
binary is (100100)2. To change it to a 4-bit number we
add the extra leftmost bit to the right four bits as shown
below.
O We can send 6 as the sum (7, 11, 12, 0, 6, 6). The
receiver can add the first five numbers in one’s
complement arithmetic. If the result is 6, the numbers
are accepted; otherwise, they are rejected.
57. CHECKSUM
O Checksum :
O the complement of a number is found by completing all
bits (changing all 1s to 0s and all 0s to 1s).
O The same as Subtracting the number from 2 𝑚
− 1.
O When the receiver adds all five numbers (including the
checksum), it gets a negative zero.
O The positive zero has all 𝑚 bits set to 0; the negative
zero has all bits set to 1 (it is 2 𝑚
− 1).
O The receiver can complement the result again to get a
positive zero.
58. CHECKSUM
O Checksum :
O EX:- Let us use the idea of the checksum
O The sender adds all five numbers in one’s
complement to get the sum = 6.
O Then complements the result to get the checksum = 9,
which is 15 − 6.
O Note that 6 = (0110)2 and 9 = (1001)2; they are
complements of each other .
O Then sends the five data numbers and the checksum
(7, 11, 12, 0, 6, 9).
59. CHECKSUM
O Checksum :
O EX:- Cont.….
O If there is no corruption in transmission,
O The receiver receives (7, 11, 12, 0, 6, 9) and
adds them in one’s complement to get 15.
O The receiver complements 15 to get 0.
O This shows that data have not been corrupted.
61. CHECKSUM
O Internet Checksum : -
O Traditionally, the Internet has used a 16-
bit checksum.
O Describe the Procedure to calculate the
traditional checksum ?
62. CHECKSUM
Internet Checksum : -
Sender
Internet Checksum : -
Receiver
1. The message is divided
into 16-bit words.
2. The value of the checksum
word is initially set to zero.
3. All words including the
checksum are added using
one’s complement addition.
4. The sum is complemented
and becomes the
checksum.
5. The checksum is sent with
the data.
1. The message and the
checksum are received.
2. The message is divided
into 16-bit words.
3. All words are added using
one’s complement addition.
4. The sum is complemented
and becomes the new
checksum.
5. If the value of the
checksum is 0, the
message is accepted;
otherwise, it is rejected.
63.
64. CHECKSUM
O Performance :
O The traditional checksum
uses a small number of bits
(16) to detect errors in a
message of any size
(sometimes thousands of
bits). However, it is not as
strong as the CRC in error-
checking capability.
O the tendency in the Internet,
particularly in designing new
protocols, is to replace the
checksum with a CRC.
O EX:- If the value of one
word is incremented and
the value of another word is
decremented by the same
amount, the two errors
cannot be detected
because the sum and
checksum remain the same.
O EX:-If the value of one word
is incremented and the
value of another word is
decremented by the same
amount, the two errors
cannot be detected
because the sum and
checksum remain the same.
65. CHECKSUM
O Fletcher Checksum: -
O It was devised to weight each data item
according to its position .
O It has proposed two algorithms: 8-bit and 16-
bit.
O The first, 8-bit Fletcher, calculates on 8-bit
data items and creates a 16-bit checksum.
O The second, 16-bit Fletcher, calculates on 16-
bit data items and creates a 32-bit checksum.
66. CHECKSUM
O The 8-bit Fletcher:-
O It is calculated over data
octets (bytes) and creates a
16-bit checksum.
O The calculation is done
modulo 256 (28),
O The intermediate results
O are divided by 256 and the
remainder is kept.
O The algorithm uses two
accumulators, L and R.
The first simply adds data
items together
The second adds a
weight to the calculation.
67. FORWARD ERROR
CORRECTION
O We need to correct the error or reproduce
the packet immediately. Several schemes
have been designed and used in this case
that are collectively referred to as forward
error correction (FEC) techniques.
68. FORWARD ERROR
CORRECTION
O Using Hamming Distance :-
O to detect s errors, the minimum Hamming distance
should be dmin = s + 1.
O For error detection, to detect t errors, we need to
have dmin = 2t + 1.
O EX:- To correct 10 bits in a packet, we need to
O make the minimum hamming distance 21 bits,
69. FORWARD ERROR
CORRECTION
O Using Hamming Distance :-
O EX:- consider BCH code :
O if data is 99 bits, we need to send 255 bits (extra 156
bits) to correct just 23 possible bit errors
O Most of the time we cannot afford such a redundancy.
70. FORWARD ERROR
CORRECTION
O Using XOR: -
O Applying the exclusive OR operation on N data items (P1 to PN), it
can recreate any of the data items by exclusive-ORing all of the
items, replacing the one to be created by the result of the previous
operation (R).
Dividing a packet into N chunks .
create the exclusive OR of all the chunks and send N + 1 chunks.
If any chunk is lost or corrupted, it can be created at the receiver
site.
? The question is what should the value of N be ?
If N = 4, it means that we need to send 25 percent extra data and
be able to correct the data if only one out of four chunks is lost.
71. FORWARD ERROR
CORRECTION
O Chunk Interleaving:-
O to achieve FEC in multimedia is to allow some
small chunks to be missing at the receiver.
O we can afford to let one chunk be missing in each
packet.
O EX:- Dividing each packet into 5 chunks
(normally the number is much larger). We can
then create data chunk by chunk (horizontally),
but combine the chunks into packets vertically.
72. FORWARD ERROR
CORRECTION
O Chunk Interleaving:-
O EX:- Cont. ….
O each packet sent carries a chunk from
several original packets. If the packet is
lost, we miss only one chunk in each
packet, which is normally acceptable in
multimedia communication.
74. FORWARD ERROR
CORRECTION
O Combining Hamming Distance and
Interleaving :-
O Hamming distance and interleaving can
be combined. We can first create n-bit
packets that can correct t-bit errors. Then
we interleave m rows and send the bits
column by column. In this way, we can
automatically correct burst errors up to m
× t-bit errors.
75. FORWARD ERROR
CORRECTION
O Compounding High- and Low-Resolution
Packets : -
O Creating a duplicate of each packet with a low-
resolution redundancy and combine the
redundant version with the next packet.
O EX:- create four low-resolution packets out of five
high-resolution packets and send them .
If a packet is lost, we can use the low-
resolution version from the next packet.
the low-resolution section in the first packet is
empty.
76. FORWARD ERROR
CORRECTION
O Compounding High- and Low-
Resolution Packets : -
O EX:- Cont. ….
if the last packet is lost, it cannot be
recovered .
O The audio and video reproduction does
not have the same quality, but the lack of
quality is not recognized most of the time.