Part 4 - Data Checks
In the previous sections of this lab, you have already looked at one problem that may corrupt data on the Internet or other networks, packet loss. However, this is relatively rare and is easily handled as with TCP handshaking to establish a connection and request replacements for missing packets. Except in rare cases, an issue only arises if there is a bad connection with packet loss of 5% or more.
Another issue that can arise is corruption of the data within the packet. With data communicated in bits of 0 or 1, even one packet contains up to half a million bits. Even if only one in a billion bits has an error, this still means that about one out of every thousand packets will have an error.
Bit errors like these are impossible to catch without an extra data check. Both IP and TCP implement a data check process called checksum in order to catch errors. IP checks only the header and is focused on making sure this information that is crucial to directing the packet is correct. TCP checks the data carried in the packet, and if a problem is identified, a request for a new copy of the packet is sent just like if the packet was missing.
Checksums are relatively simple. Consider a set of data consisting of 31 bits. The data might be 1001011101101001111001110000101. A checksum just counts the number of 1’s. Here, that would be a checksum value of 17 or 10001 in binary. If one bit is corrupted in the data like 1001011101101001111001110000001 then there are only 16 1’s rather than 17; so, the checksum does not match, and a problem is identified.
4A) A 31-bit message received is 0010011110010110101000111011000. The checksum received is 10000. How many 1’s are in the message received? What is the decimal value of the checksum? Does the checksum identify a problem?
4B) A 31-bit message received is 1001001110101010111001010000110. The checksum received is 01111. How many 1’s are in the message received? What is the decimal value of the checksum? Does the checksum identify a problem?
4C) A 31-bit message received is 0000000010001000011001000000001. The checksum received is 00110. How many 1’s are in the message received? What is the decimal value of the checksum? Does the checksum identify a problem? Explain how you know.
The checksum calculations for the IP header or for the data with TCP include some additional mathematics designed to reduce the size of the checksum value, but the end result of identifying bit errors is the same as these examples.
Checksum identifies errors, but it cannot correct them. When an error is identified, there is no way to tell from the checksum at which bit the error occurred. Instead, the solution is to ask the server to resend the information. An alternative to this is a process called lockstep where multiple copies of the message are sent and compared. If three copies are sent, triple modular redundancy, then even when an error occurs, the two that agree can be assumed to be correct.
4D) Why is checksum the preferred form of error checking even though lockstep techniques could specifically identify and correct the error?
4A. There are 15 1's in the received message. The decimal value of the checksum is 16. Yes in this case the checksum identified the problem of the data corruption since the number of 1's in the received message doesn't match with the checksum vaue.
4B. There are 15 1's in the message received and the decimal value of the cheksum is 16. In this case it seems like there is no data corruption in the received message since both the values are same.
4C. There are 6 1's in the message received and the decimal value of the cheksum is 6. In this case it seems like there is no data corruption in the received message since both the values are same.
4B. Lockstep technique needs more data needs to be sent when compared to checksum. For example for triple modular redundancy we need to send three times more data
Part 4 - Data Checks In the previous sections of this lab, you have already looked...
Question 1 The size of the datagram is determined by the application that sends the data. Allowing the size of datagrams to vary makes IP adaptable to a variety of applications. True False Question 2 What is the conceptual network boundary, and where is it located within the protocol stack? Is the transition area between digital and analog signals and can be found between layer 2 and layer 3 of the protocol stack. Identifies application direct messaging and is formed...
3. A data packet containing 18 bits is sent over a noisy communication channel. The probability that the k-th bit is received correctly at the destination is 1 - p, and, therefore, it is erased with probability p. Erasures are independent over time. (a) 1 pt What is the probability that exactly 7 bits are erased from this packet? (b) 1 pt What is the maximum value of p such that the probability that the packet is received correctly (i.e.,...
1. a)UDP and TCP use 1’s complement for their checksums. Suppose you have the following three 8 bit bytes: 0101 0011, 0111 0110, 1001 0011. What is the 1’s complement of the sum of these 3 8-bit bytes? Show all work. Why is it that the 1’s complement is used and not just the sum? What is the sum of the three 8 bit bytes and the checksum you just computed? What is it if you change the first 8...
PLEASE HELP WITH THESE COMPUTER NETWORK QUESTIONS THESE INCLUDE MCQS AND CALCULATIONS With reference to the Go-Back-N and Selective repeat protocols, what does the window value signify? The packets that have already been ACKed The packets sent but remain unACKed The sequence numbers available and not yet sent The sequence numbers of packets not yet available None of the above 1 points QUESTION 2 Which of the following is NOT a component of the TCP congestion control algorithm? Slow...
Networks Hi guys. I need some assistance with a few questions below. 1. Which of the following is TRUE regarding a TCP 3-way handshake. a. Consists of 3 segments being sent between 2 hosts b. Segments only carry data in the SYN, ACK and sequence number bits and bytes with no data c. No ACK is needed for the SYNACK received from the receiver d. A, B and C e. None of the above 2. Which...
In the last module you learned a formula for calculating bit rate, R = b/t, that is the number of bits divided by the time. This formula expresses the number of bits that are transmitted over a circuit in a given period of time. In practice, however, we are not only concerned with the number bits transmitted, but also with the number of data bits transmitted over a circuit. The data bits are those that the sender decides to send...
check my answers for Networking I came up with these answers, can check my answers Question 1: General What data rate is needed to transmit an uncompressed 4" x 6" photograph every second with a resolution of 1200 dots per inch and 24 bits per dot (pixel)? 691,200 kb/s 28.8 kb/s 8.29 Mb/s 829 Mb/s Question 2: Layering "Layering" is commonly used in computer networks because (check all that apply): -It forces all network software to be written in ‘C’....
11. the inputStream and OutputStream classes in Java provide fundamental methods tecido read and write data as A. bits B. bytes C. integers D. floating point numbers E. characters 12. Which of the following statements regarding URI and URL is INCORRECT? A. A URI is a string of characters in a particular syntax that identifies a resource, and its syntax is composed of a "scheme" and a scheme-specific part, separated by a colon B. HTTP is a "scheme" in URI....
Part D. In a communication system each data packet consists of 4000 bits. Each bit may be received in error with probability p 0.1, due to noise. It is assumed that bit errors occur independently. Let us denote N as the number of errors in one data packet. 18. Determine EN] b. 100 ?. 400 d. 1000 e. 4000 19. Determine Var[N] a. 0.01 b. 360 c. 1000 d. 1600 e. 160,000 20. Use the central limit theorem to find...
21. App (application software) requires a member of transport services to function. Which choice best describes the transport service required by an app? a. Reliable data transfer and long delay in transmission b. Good throughput and data integrity c. Data secunty and long delay in transmission d. long delay in transmission and poor timing 22. This transport protocol does not provide flow control reliability, congestion control, time or security. Which transport protocol is it? a. File transfer protocol b. Transmission...