Find complement of a 1s complement sum checksum computation

Assignment Help Electrical Engineering
Reference no: EM13267987

UDP and TCP use 16-bit 1s complement arithmetic to compute checksums. In this problem we investigate why. For simplicity we will work with 4-bit words. Let x = 1101, y = 1011, and z = 0110.
(a) Reason 1: Incremental Update. Typically, after every hop at least one packet header field (e.g., a packet's time-to-live field) needs to be overwritten. Because the checksum is a simple complement of a 1s complement sum, it turns out that when, for instance, a packet's header x is updated to y, rather than recomputing the checksum from scratch, it su?ces to simply add x+y to the original checksum to compute the update. Suppose that packet [ x | z ] is updated to packet [ y | z ]. Verify, for the x, y, and z given above, that checksum{[ y | z ]} = checksum{[ x | z ]} + x + y,
where "+" denotes 1s complement addition and y denotes the y complement.

(b) Reason 2: Endian Independence. Little endian computers store numbers with the least significant byte first (Intel processors for example). Big endian computers put the most significant byte first (IBM mainframes for example). It turns out, once again, that because the checksum is a simple complement of a 1s complement sum the checksum computation is endian independent (this is not true if 1s complement arithmetic is not used). Partition x and z as x = x1 x2 = 11 01 and z = z1 z2 = 01 10. Verify that checksum{[x1 x2|z1 z2]} = c1 c2 if and only if checksum{[x2 x1|z2 z1]} = c2 c1.

Reference no: EM13267987

Questions Cloud

State your understanding of the evil genius : According to Descartes, "Evil Genius" is a higher being causing people to be deceived about reality, particularly, the physical world (What we perceive through the five senses).
Targeting incentives : Targeting Incentives
What was the heat input to this engine : A certain heat engine does 8.5 kJ of work and dissipates 8.50 kJ of waste heat in a cyclical process. What was the heat input to this engine
Sexual assault in the military : "Sexual Assault in the Military" Please respond to the following: The reporter from the e-Activity concludes by stating that members of the Senate Armed Forces Committee believe, "You can't change the culture without first changing the system."
Find complement of a 1s complement sum checksum computation : Incremental Update. Typically, after every hop at least one packet header field (e.g., a packet's time-to-live field) needs to be overwritten. Because the checksum is a simple complement of a 1s complement sum, it turns out that when, for instance..
Calculate the npv of each choice : The opportunity cost of capital is 11.8 percent. Calculate the NPV of each choice and suggest when should Predator sell the company?
How far is the screen from the lens : A plane wave of wavelength 580 nm is incident on a slit with a width of a = 0.50 mm. A thin converging lens of focal length +80 cm is placed between the slit, How far is the screen from the lens
State your understanding of descartes dream argument : State your understanding of Descartes dream argument. Exactly how do you know that you are not dreaming right now? What does this argument suggest about all things we claim to know through the senses?
How would you make your decision : Suppose that you could invest in the following projects but have only $30,400 to invest. How would you make your decision and which projects would you invest in, using Profitability index?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd