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

  Compute the line losses and voltage across the load

A simple power system consists of a dc generator connected to a load center via a transmission line. The load resistance is 8 ohms. The transmission line is 40km copper wire of 4 cm diameter. If the voltage at the load side is 400 V, compute Volta..

  Calculate the signal to noise ratio given rms noise voltage

1. Given R = 50Kohm and C = 100nF what is the frequency of oscillation 2. Given a required frequency of oscillation of f = 10kHz and R = 8kohm, what should the value of C be Calculate the signal to noise ratio given RMS Noise Voltage = 20mV and RMS S..

  Design the system which finds the most popular symbol

Design the system which finds the most popular (one most often generated) symbol called winner in each block of 32 input symbols. The system reports the number of winners and their value. Use only 2 data inputs multiplexers and shift registers.

  Discuss the advantages of transforming time-domain circuits

Discuss why phasor analysis can only be performed on single-frequency circuits. For multiple frequencies what type of analysis must be performed Discuss the advantages of transforming time-domain circuits into the corresponding frequency domain.

  Write software to spin the motor at 1 rps

Design an interface for a 12 V, 500 mA bipolar stepper motor. There are 200 steps per revolution. Write software to spin the motor at 1 rps.

  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

  Why sinusoidal wave is chosen for ac fundamentals

why sinusoidal wave is chosen for AC fundamentals rather than a simple curve such as square or triangular wave?

  Determine what is the input power to the transmitter

A collector modulated transmitter has a supply voltage of 48 V and an average collector current of 600 mA. What is the input power to the transmitter How much modulating signal power is needed to produce 100 percent modulation

  What is the value of q we need to inject

If we want to correct the power factor to 0.9 lagging, what is the value of Q we need to inject.

  Find the current through the 30 ohm resistor

A parallel circuit consists of a source and 15 ohm and 30 ohm resistors. The resistor of 15ohm draws a current of 8A. a) Find the current out of the current source. b) Find the current through the 30 ohm resistor.

  Examining spectrum anlyser output

Analysing spectrum anlyser output, A spectrum analyzer is connected to an unknown signal. The spectrum analyzer displays the power level of signals in dBm vertically and frequency horizontally. The spectrum of the unknown signal creates the follow..

  What is the inverse laplace transform

What is the inverse Laplace transform of 32/s(s^2+64). Please show all work.

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