Determine 1s complement addition and complement

Assignment Help Electrical Engineering
Reference no: EM13251842

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 success 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: EM13251842

Questions Cloud

What decision should be made according to the emv decision : What decision should be made according to the EMV decision rule? Solve using a decision tree.
Find the focal length of your friend''s glasses : A friend tells you that when he takes off his eyeglasses and holds them 18cm above a printed page, what is the focal length of your friend's glasses
Explain standard reduciton potential table : Refer to the following abbreviated standard reduciton potential table. Which one is the of the following reactions would be considered NON=SPONTANEOUS
Describe zapoos organizational culture : Using this list of corporate values and Exhibit 2-4, describe zapoos organizational culture. In which areas would you say that zappos culture is very high (or typical)? Explain.
Determine 1s complement addition and complement : 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..
What is the mse for the eight forecasts : Which method would you suggest using to predict future sales- a linear trend equation b trend-adjusted exponential smoothing? Why?
Barbie in borderless worlds - a case study : One night a year, the attention of the TV-watching world is focused on Hollywood's most spectacular event, the Oscar award ceremony.
Options results in lower total interest costs : Which of these options results in lower total interest costs - A 30-year student loan of $120,000 with an annual interest rate of 3% or a 20-year loan of $120,000 with an upfront cost of $5,000 but an annual interest rate of 3.750%?
Explain attraction with the stationary phase or mobile phase : Could someone explain this competition and interaction? I know that chromatography is based on the attraction with the stationary phase or mobile phase

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Determine the appropriate operating frequency and voltage

A three-phase induction motor has been tested, and has small stator resistance. At 230 V, 60 Hz, the motor produces 40 N-m at 1740 RPM.a) Given a 40 N-m load, input of 115 V and 30 Hz, what operating speed do you expect

  Implement the arithmetic circuit that subtracts two numbers

Write the VHDL text file for a circuit to implement the arithmetic circuit that subtracts two 12-bit numbers (B from A) and adds a third 12-bit number (C) from the result. Use INTEGER types

  Calculate lost torque-opper loss and efficiency

A 100V dc series motor has an armature resistance of 0.2 ohm and field resistance of 0.25 ohm. The motor runs at a speed of 600 rev/min when the shaft torque is 27.14 Nm. Friction and windage losses at this speed are 300W.

  Find the line- to-line voltage at the source end of the line

Two balanced three-plia.se loads that are connected in parallel are fed by a three-phase line having a series impedance of (0.4 + j2.7) ohm per phase. One of the loads absorbs 560 kVA at 0.707 power factor lagging

  Determine the corediameter required for the fiber topermit

determine the corediameter required for the fiber topermit its operation over the wavelength range 1.48 to 1.60um. calculate the new fiber core diameter to enable single mode transmission at a wave length of 1.30um.

  Determine required sampling rate and line speed

Consider a PCM-TDM system in which 24 signals are to be processed. Each signal has a baseband bandwidth of 3 KHz. The sampling rate has to be 33.3% higher than the theoretical minimum, and 8 bits are to be used.

  Compare moore and mealy state machine designs

Mrs. Brooke owns a robot with an FSM brain. The robot walks from left to right along a paper type containing a sequence of 1's and 0's. On each clock cycle, the robot walks to the next bit.

  Find the reflection coefficient at the load

A 75- ohm lossless transmission line is interfaced to a load impedance that consists of a series connected resistor of 30 ohm and a capacitor of 10 pF. At an operating frequency of 2 GHz and for a wavelength of 10 cm.

  Find the rms input noise power level

When the amplifier is operating with a bandwidth first of 10MHz, find? 1) The RMS input noise power level? 2) The audio output power level? 3) The RMS output noise power level?

  Calculate the hole density after aluminum acceptor atoms

4H-SiC is doped with 2 x 1017 cm-3 nitrogen donor atoms (Ec - Ed = 90meV). Use Nc = 4 x 1020 cm-3. a. Calculate the electron density at 300 K. b. Calculate the hole density at 300K after adding 2 x 1018 cm-3 aluminum acceptor atoms

  Surface integral for jet engine

Surface integral for jet engine.  The air-gas exhaust velocity from a jet engine varies linearly from a maximum of 300 m/s at the center of the circular exhaust opening to zero at the edges. If the exhaust diameter is 1.6 m, find  thq  exhaust flow.

  What is the eight-hex-digit address of the last byte

For each add instruction in this problem, assume that EAX contains the given contents before the instruction is executed, and give the contents of EAX as well as the values of the CF, OF, SF, and ZF flags after the instruction is executed.

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