Error Detection
What is Error Detection?
Error detection is a technique used in networking to identify if data has been altered during transmission. It ensures data integrity by detecting corrupted or tampered packets.
Why is Error Detection useful?
It ensures that the data received is the same as what was sent. This is crucial for reliable communication, especially in noisy or unreliable networks.
How does Error Detection work?
It works by using algorithms like checksums, cyclic redundancy checks (CRC), or parity bits. The sender computes a value based on the data, and the receiver recalculates it to verify accuracy.
Where is Error Detection used?
Error detection is used in almost all networking layers and protocols — such as Ethernet, TCP/IP, Wi-Fi, and storage systems — to ensure data integrity.
Which OSI layer does Error Detection belong to?
Error detection can occur at multiple OSI layers — especially at the Data Link Layer (Layer 2) and the Transport Layer (Layer 4).
Is Error Detection Windows specific?
No, error detection is not specific to Windows. It is a fundamental concept implemented in hardware and software across all systems.
Is Error Detection Linux specific?
No, it is universally implemented across all major operating systems, network devices, and communication protocols.
Which Transport Protocol is used by Error Detection?
TCP uses error detection through checksums at the Transport Layer. However, error detection also exists in lower layers like Ethernet (CRC) and IP headers.
Is Error Detection using client-server model?
No, error detection is a communication feature, not a model. It operates independently of client-server architecture to ensure correct data delivery.
In this section, you are going to learn
Terminology
Version Info
setup
Error Detection - Testcases
S.No |
Test Case |
Description |
Expected Result |
---|---|---|---|
1 |
Null Input |
Submit empty input |
Error detected: Null input |
2 |
Invalid Format |
Input in wrong format |
Error detected: Format mismatch |
3 |
Missing Field |
Required field missing |
Error detected: Missing field |
4 |
Extra Field |
Extra field in input |
Error detected: Unexpected field |
5 |
SQL Injection |
Input contains SQL code |
Error detected: Malicious input |
6 |
XSS Attack |
Input contains script tags |
Error detected: XSS attempt |
7 |
Special Characters |
Input has unsupported characters |
Error detected: Invalid characters |
8 |
Long Input |
Input exceeds max length |
Error detected: Input too long |
9 |
Short Input |
Input below min length |
Error detected: Input too short |
10 |
Incorrect Data Type |
Input type mismatch |
Error detected: Type error |
11 |
Duplicate Entry |
Input already exists |
Error detected: Duplicate data |
12 |
Invalid Email |
Email format incorrect |
Error detected: Invalid email |
13 |
Invalid Date |
Date format incorrect |
Error detected: Invalid date |
14 |
Future Date |
Date is in the future |
Error detected: Invalid date |
15 |
Past Date |
Date is too old |
Error detected: Invalid date |
16 |
Invalid Number |
Non-numeric input in numeric field |
Error detected: Not a number |
17 |
Negative Number |
Negative value in positive-only field |
Error detected: Invalid value |
18 |
Zero Value |
Zero in non-zero field |
Error detected: Invalid value |
19 |
Boundary Value |
Value on boundary |
Error detected: Boundary violation |
20 |
HTML Tags |
Input contains HTML |
Error detected: HTML not allowed |
21 |
JSON Malformed |
JSON structure broken |
Error detected: Invalid JSON |
22 |
XML Malformed |
XML structure broken |
Error detected: Invalid XML |
23 |
File Upload Error |
Corrupt file uploaded |
Error detected: File error |
24 |
Unsupported File Type |
Wrong file format |
Error detected: Unsupported type |
25 |
Large File Upload |
File exceeds size limit |
Error detected: File too large |
26 |
Timeout Error |
Input processing timeout |
Error detected: Timeout |
27 |
Network Error |
Network failure during input |
Error detected: Network issue |
28 |
Unauthorized Access |
Input from unauthorized user |
Error detected: Access denied |
29 |
Session Expired |
Input after session timeout |
Error detected: Session expired |
30 |
Invalid Token |
Wrong auth token |
Error detected: Invalid token |
31 |
Incorrect Password |
Wrong password entered |
Error detected: Authentication failed |
32 |
Invalid Username |
Username not found |
Error detected: User not found |
33 |
Blank Spaces |
Input only has spaces |
Error detected: Empty input |
34 |
Tab Characters |
Input contains tabs |
Error detected: Invalid characters |
35 |
Unicode Characters |
Input has unsupported Unicode |
Error detected: Encoding error |
36 |
Case Sensitivity |
Wrong case used |
Error detected: Case mismatch |
37 |
Logic Error |
Input causes logic failure |
Error detected: Logic error |
38 |
API Error |
API returns error |
Error detected: API failure |
39 |
Dependency Failure |
External service fails |
Error detected: Dependency error |
40 |
Retry Limit Exceeded |
Too many retries |
Error detected: Retry limit reached |
41 |
Invalid URL |
URL format incorrect |
Error detected: Invalid URL |
42 |
Broken Link |
URL leads to 404 |
Error detected: Link not found |
43 |
Invalid Phone Number |
Wrong phone format |
Error detected: Invalid phone |
44 |
Invalid Country Code |
Wrong country code |
Error detected: Invalid code |
45 |
Invalid Currency |
Unsupported currency format |
Error detected: Invalid currency |
46 |
Invalid Timezone |
Timezone not recognized |
Error detected: Invalid timezone |
47 |
Invalid Language Code |
Language code not supported |
Error detected: Invalid language |
48 |
Invalid Boolean |
Non-boolean in boolean field |
Error detected: Type mismatch |
49 |
Invalid Enum |
Value not in enum list |
Error detected: Enum mismatch |
50 |
System Crash |
Input causes crash |
Error detected: System failure |
Reference links