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

  Determine the line impedance of three-phase wye-wye system

In a balanced three-phase wye-wye system, the load impedance is 10+j10 ohm. The source has phase sequence abc and the line voltage Vab= 220

  Design a ce amplifier with a resistance re in the emitter

When fed from a signal source with a peak amplitude of 0.1v and a source resistance of 20k , the peak amplitude v(pi)is 5mv. specify Re and bias current Ic. The BJT has beta =100. If the total resistance in the collector is 5 k,

  Determine the gain k so that the phase margin is in degrees

Determine the gain K so that the phase margin is 45 degrees. For the gain K selected in part (a), determine the gain margin. Predict the bandwidth of the closed-loop system.

  What is the resolution of the representation

suppose we use a 32-bit unsigned fixed-point representation with the binary point to the left of the most-significant bit of the 32-bit number. (We'll have a range of 0 - almost 1.) What is the resolution of this representation

  Find odes nd obtain solution that satisfy boundary condition

Nanowire with square cross-section: Starting with the time-independent Schrodinger equation: (a) use separation of variables to obtain three ordinary differential equations (ODEs) (b) solve the ODEs and obtain the solution that satisfies the boundary..

  Draw the equivalent circuit referred

Consider the transformer to deliver its rated kilovoltamperes at 0.80 power factor lagging to a load on the low-voltage side with 240 V across the load. Find the highside terminal voltage.

  How the change in the number of functions alter the number

With the multi function gate: F = X'AB + YA'B + X'AB + YAB' 1. Can this gate be used as an inverter If yes, how 2. Will the change in the number of inputs or outputs affect the number of operation select lines Explain.

  Determine equivalent circuit referred to high-voltage side

150 kVA, 2400/240 V single-phase transformer has the parameters. (a) Determine the equivalent circuit referred to the high-voltage side. (b) Find the primary voltage and voltage regulation when transformer is operating

  Describe the operation of the series rl circuit

The discussion must address phase angle relationships of current and voltage. The answer must include the effect of source frequency on the voltage drolps across the resistor and the inductor at very loave and very high frequency values.

  What is the input voltage and output voltage

A transformer is used to match an 8 ohm speaker to a 500ohm audio line. What is the turns ratio of the transformer what is the input voltage and output voltage when 15W is being delivered to the speaker

  Determine what is the secondary voltage

The low-voltage winding of a transformer has 200 turns, and the high-voltage coil has 11,000 turns. The transformer is operated as a step-down transformer, and 13.2KVolts is impressed on the primary side.

  What will the armature voltage will be at rated load

A separately excited DC generator rated at 125V has an armature resistance of 0.75 ohms and a no load coltage of 140 VDC. What will the armature voltage will be at rated load

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