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

  Give the polar plot of the frequency response

1. Sketch the polar plot of the frequency response for the following loop transfer functions: Gc(s)G(s) = 1 / ((1 + 0.25s)(1 + 3s)) Gc(s)G(s) = 5(s^2 + 1.4s + 1) / (s - 1)^2 Gc(s)G(s) = (s - 8) / (s^2 + 6s + 8) Gc(s)G(s) = 20(s + 8) / (s(s +2)(s + 2)..

  What is the probability that the lowest number drawn is k

An urn contains N balls numbered 1 to N. Someone draws n balls(without replacement) from the urn, where 1

  Design a finite state machine which recognizes pattern

Design a Finite State Machine which recognizes the serial pattern 111. Assume serial input is applied to input pin Sin and an output pin labeled Sout is 1 whenever the string is recognized.  a) draw a state diagram of your design.

  Explain why norton equivalent circuit approximates sources

A 100 V power supply has a series limmitin restor of 100 k ohms connected to its output. draw the norton equivalent cirtuit for the power supply. explain why the norton equivalent circuit you drew approximates an ideal current source

  Write matlab command to plot magnitude and phase response

Use the above transfer function and BLT to design a corresponding IIR digital lowpass filter with a cutoff freqency of 15 Hz and a sampling rate of 120 Hz. a. Write the transfer function of the digital filter.

  Define design a synchronous counter using j-k flip-flops

Design of sync counter 0010 to 1101 using JK flip flops, Design a synchronous counter using J-K flip-flops that will count from 0010 to 1101 repetitively.

  Obtain input value from two switches on the logic designer

Design a circuit that, given a 2-bit value, will light a LED corresponding to that value. One of four LEDs should be lit for each of the four possible input values (binary 0 through 3).

  Calculate the ohmic value and power of the series resistor

A 250hp, 500v dc shunt motor draws a nominal field current of 5A under rated load. The resistance is 90ohms. Calculate the ohmic value and power of the series resistor needed so that the field current drops to 4.5A

  Find the voltage gain realized

A transconductance amplifier with Ri = 2 kΩ, Gm = 40 mA/V , and Ro = 20kΩ is fed with a voltage source having a source resistance of 2kΩ and is loaded with a 1kΩ resistance. Find the voltage gain realized (from the source internal voltage to the o..

  Define probability of a false alarm- noise power

Probability of a False Alarm: Noise Power, The fixed threshold of a radar detector was set, assuming a known noise power, to yield P_FA = 10^-6

  A unit for a telecommunications system is to be designed

A unit for a telecommunications system is to be designed so as to have a minimum availability of 0.9994. The MTTR (mean time to repair) for the unit is estimated to be 24 hours.

  Write a sop expression for g in sort-hand notation

Given the following function in canonical SOP form, h = a'bc' + a'bc + ab'c + abc' + abc use Boolean algebra to simplify h down to a minimum SOP expression that contain only 2 terms and 3 literals.

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