1. Based on Scenario A, the packets should be encapsulated in multiple frames to minimize the re-transmission overhead.
This is because there will be the need to re-transmit the packets because the network environment is not reliable and accurate. Therefore, a single frame may be too costly when the need for re-transmission arises.
2. Based on Scenario B, the packets should be encapsulated in a single frame because of the high level of network reliability and accuracy.
There will not be further need to re-transmit the packets in a highly reliable and accurate network environment. This environment makes a single frame better.
Encapsulation involves the process of wrapping code and data together within a class so that data is protected and access to code is restricted.
With encapsulation, each layer:
- provides a service to the layer above it
- communicates with a corresponding receiving node
Thus, in a reliable and accurate network environment, single frames should be used to enhance transmission and minimize re-transmission overhead.
Learn more about data encapsulation here: brainly.com/question/23382725
Answer:
Following are the program in the C++ Programming Language:
#include <iostream>//header file
using namespace std;//namespane
//set main method
int main() {
int a[100]; //set integer type array variable
int value, i = 0; //set integer variables
cout<<"Enter less than 0 to exit:"<<endl; //message for exit
cout<<"Enter the integer numbers:"<<endl; //message to enter numbers
do{ //set do while
cin>>value; //get input from the user
a[i++] = value; //append elements in array
}while(value>=0);
i--;
cout<<"\nArray are:"<<endl;//message for array
for(int k = 0;k<i;k++){ //set for loop
cout<<a[k]<<" "; //print array
}
return 0;
}
<u>Output</u>:
Enter less than 0 to exit:
Enter the integer numbers:
1
2
3
4
5
-1
Array are:
1 2 3 4 5
Explanation:
Here, we set the integer data type main method "main()" and inside it:
- we set integer type array variable with index value 100.
- we set two integer type variable "value" and "i" initialize value 0.
- we set the do-while loop in which we get the input from the user and and append in the array and pass condition if the value is greater then equal to 0.
- Finally, set for loop and print the elements of an array.
There are lots of different peripherals of computer systems. Some examples are listed below:
Input:
Keyboard
Mouse
Video Camera
Microphone
Joystick
Scanner
Output:
Monitor
Projector
Printer
Speakers
Any external device that gives input to or gets output from the computer is a peripheral.
Answer:
spelling errors and/or punctuation errors