1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ilya [14]
3 years ago
7

Describe all the steps a router goes through while deciding where to send the a packet. Explain why a router would choose one ro

ute over another. Maximum number of characters (including HTML tags added by text editor): 32,000
Computers and Technology
1 answer:
Korvikt [17]3 years ago
5 0

Answer:

The router receives the packet from its port connected to the source host (the port serves as the default gateway) and compares the destination IP address on the packet header with the IP addresses in its routing table. If the address is in its table, it sends the packet to the port leading to the network address to receive the packet.

Explanation:

A network router is a packet-switching device used to transfer packets from source host to destination host using a routing table. The router ANDs the IP address of the received packet to get its network address and searches for it in its routing table and sends the packet to the port with the shortest or efficient path to the network. But if the network address is not found, the packet is sent to a default route.

You might be interested in
If you were the manager at a firm which deals with sensitive information of its customers, employees and other stake holders, ho
Rzqust [24]

Answer:

explanation below

Explanation:

Management controls are some of the techniques and mechanisms that can be put in place to implement security policies – which ensure information and information systems are protected.  These controls are not only used by managers but can be exercised by selected users.  

These controls must be put in place to cover all forms of information security, physical security and classification of those information.  

5 0
3 years ago
Why could Mars not hold onto its atmosphere?
vazorg [7]

Answer:

Mars loses its atmosphere faster, because there's less gravity to hold on to it. It goes through the loss of atmosphere faster than earth does

Explanation:

3 0
3 years ago
You are given a file consisting of students’ names in the following form: lastName, firstName middleName. (Note that some studen
pishuonlain [190]

Answer:

#include <iostream>  // header file for input output functions

#include <string>  // header file for string manipulation

#include <fstream>  // for handling file functions  

using namespace std;  //namespace is used to identify objects like cout, cin

void NamesFunction()  {

// Function to convert names to format firstName middleName lastName    string Name;  //String type variable to store full name

ifstream DataFile;   //used to read input from a file

ofstream OutputFile;  // used for writing in a file

string lastName;  // string type variable to store last name

string firstName;  // string type variable to store first name

int position;  // used to store position of a specified character in the string

int size;  // stores length of full name

DataFile.open("inputtexthere.txt");

//opens text file using object DataFile

OutputFile.open("outputext.txt" );

//opens the text file using object OutputFile

do  {  //start of Do while loop

getline(DataFile, Name);  //reads full names from input stream

position = Name.find(",");  // stores position of the , in the name

lastName = Name.substr(0, position);  

// stores substring last name from full name

size= Name.length();  //store the length of the entire name

firstName = Name.substr(position + 2, size);  

/* stores first name substring from entire name string with the help of specified position */

OutputFile<< firstName << " "; //output first name  in text file

cout << firstName << " ";  

OutputFile<< lastName << endl;  //outputs last name in text file

cout << lastName << endl;   }

    while (DataFile.eof() == false);  

//loop continues until the end of input file is reached

DataFile.close();  //closes input file

OutputFile.close();  }  //closes output file

int main(int argc, char *argv[])  //start of main function

{   NamesFunction();  // calls NamesFunction()

}

Explanation:

The brief description of included header files is mentioned in the comments added to the program. Lets begin from the NamesFunction()  function.

The string variable Name contains the entire string of full names. Then ifstream class is used which is used to read the input file using an object. The object here is DataFile. ofstream is used to write on a file using an object which is named as OutputFile here. firstName and lastName holds first and last names. position variable stores the specified position. Here the  position stores the index position of comma (,) in the string which comes between the lastName and firstName in the input file. size variable holds the length of the Name string.

The function substr is used here to divide the string into substring which is the part of the string that starts at character position and traverses through the specified length of characters.

Here to get the last name in the Name string, substr is used which has two parameters 0 and position means that the substring is obtained starting from 0 position of string and ends where it encounters (,).

Similarly to get the first name, this function is used and it has two parameters; position+2 and size which states that substring will start from two places after (,) and ends till the length of the string. Here position+2 means that it will skip the space between the first name and last name.

Next the names are displayed and stored in the output file via the OutputFile object in the format : firstName middleName lastName

close function will close both the input and output files

Main function calls this function NamesFunction to execute.

5 0
4 years ago
You manage a Windows system. You would like to generate a report that runs several basic tests of the operating system, Security
pickupchik [31]

Answer:

In Performance Monitor, run the System Diagnostics data collector set.

6 0
2 years ago
Qbasic program to check whether the given number is odd or even​
Iteru [2.4K]

Answer:

CLS

INPUT "Enter a Number: ", n

IF n MOD 2 = 0 THEN

PRINT "Input Number is Even"

END IF

IF n MOD 2 = 1 THEN

PRINT "Input Number is Odd"

END IF

END

6 0
3 years ago
Read 2 more answers
Other questions:
  • What is a algorithm?
    11·2 answers
  • The part of the computer that contains the brain or central processing unit is also know as the
    15·2 answers
  • You work in a classified environment where Bell LaPadula MLS (Multilevel Security) model is employed. Your clearance is "SECRET"
    5·1 answer
  • How do you double space on microsoft word?
    5·1 answer
  • Default tab stops are set in word every ___________ inch.
    12·1 answer
  • Imagine that a crime has been committed and being a police officer you have to investigate the case. Solving a crime can be a ve
    12·1 answer
  • What is technology? *
    10·1 answer
  • Explain the functions of a VDU?
    6·1 answer
  • What do we call the software program that handles the communication between a peripheral device and your computer?
    8·2 answers
  • On his website, Mario has a video that visitors must click to play. He wants the video to play automatically when the page loads
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!