answer.
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
Elis
25 days ago
8

Suppose Host A sends two TCP segments back to back to Host B over a TCP connection. The first segment has sequence number 90; th

e second has sequence number 110.
a. How much data is in the first segment?

b. Suppose that the first segment is lost but the second segment arrives at B. In the acknowledgment that Host B sends to Host A, what will be the acknowledgment number?
Computers and Technology
2 answers:
Amiraneli [921]25 days ago
8 0

Answer:

a) Consider the sequence numbers, where the first segment is 90

The second segment equals 110

Data contained in the first segment = 110-90 = 20

b) Assume the first segment is lost while the second one reaches Host B. In the acknowledgment sent from Host B to Host A, the acknowledgment number will correspond to the first segment sequence number, which is 90.

Explanation:

zubka84 [945]25 days ago
7 0

Answer:

(a) 20 bytes

(b) 90

Explanation:

a. 20 bytes.

Calculating, 110-90 results in 20 bytes.

The byte range from 90 to 109 falls within the first segment.

b. 90.

TCP operates using cumulative acknowledgments, meaning that even if the second segment is received, the acknowledgment still pertains to the first segment.

You might be interested in
The function below takes a single string parameter: sentence. Complete the function to return a list of strings that are in the
Rzqust [894]

Response:

#section 1

def listofWordswitha(text):

   ''' This function outputs all words from a string that include the letter 'a' '''

   tex = text.split()

   new = []

#section 2

   for word in tex:

       for char in word:

           if char == 'a':

               new.append(word)

               

               break

   return new

Clarification:

#section 1

First, you need to establish your function and provide an argument representing the string that will be utilized.

It's beneficial to include a docstring that describes the function's purpose, which I've added.

Then, use the split method to break the string into a list. In conclusion, you create a list to store all the words that contain 'a'.

#section 2

The terminology chosen is specific to facilitate understanding.

FOR EVERY WORD inside the list and FOR EACH LETTER in the WORD.

IF a LETTER 'a' is found in the word, ADD that WORD to the NEW LIST.

The append function serves to incorporate new entries into the list.

A break statement is employed to avoid redundancy since some words might have multiple instances of 'a'. Thus, upon encountering a word containing 'a', it appends it and shifts to the next word.

Ultimately, the new list is returned.

I will utilize your inquiry to validate the code and provide the results for you.

4 0
1 month ago
Which of the following is a true statement about cloud computing?
amid [812]

There are heightened security challenges linked with cloud computing as opposed to local data storage.

Explanation:

Cloud computing: This term refers to accessing and storing different programs and data over the internet instead of on a computer's "hard drive". The word "cloud" serves as a metaphor for the internet.

Categories:

1. Software-as-a-Service (SaaS).

2. Platform-as-a-Service (PaaS).

3. Infrastructure-as-a-Service (IaaS).

In this context, the first option is correct because the other choices do not pertain to cloud computing.

3 0
1 month ago
A four-year-old laptop will not boot and presents error messages on screen. You have verified with the laptop technical support
8_murik_8 [892]
Consider whether the laptop is worth fixing. If it is, proceed with the repair, and if it isn’t, you know the next steps.
7 0
1 month ago
This question involves the creation of user names for an online system. A user name is created based on a user’s first and last
Rzqust [894]

Response:

Refer to the explanation

Clarification:

import java.util.*;

class UserName{

ArrayList<String> potentialNames;

UserName(String fName, String lName){

if(this.isValidName(fName) && this.isValidName(lName)){

potentialNames = new ArrayList<String>();

for(int j=1;j<fName.length()+1;j++){

potentialNames.add(lName+fName.substring(0,j));

}

}else{

System.out.println("firstName and lastName should only consist of letters.");

}

}

public boolean isTaken(String name, String[] array){

for(int j=0;j<array.length;j++){

if(name.equals(array[j]))

return true;

}

return false;

}

public void removeUnavailableUserNames(String[] takenNames){

String[] namesArray = new String[this.potentialNames.size()];

namesArray = this.potentialNames.toArray(namesArray);

for(int j=0;j<takenNames.length;j++){

if(isTaken(takenNames[j],namesArray)){

int idx = this.potentialNames.indexOf(takenNames[j]);

this.potentialNames.remove(idx);

namesArray = new String[this.potentialNames.size()];

namesArray = this.potentialNames.toArray(namesArray);

}

}

}

public boolean isValidName(String str){

if(str.length()==0) return false;

for(int j=0;j<str.length();j++){

if(str.charAt(j)<'a'||str.charAt(j)>'z' && (str.charAt(j)<'A' || str.charAt(j)>'Z'))

return false;

}

return true;

}

public static void main(String[] args) {

UserName user1 = new UserName("john","smith");

System.out.println(user1.potentialNames);

String[] existing = {"harta","hartm","harty"};

UserName user2 = new UserName("mary","hart");

System.out.println("potentialNames prior to removal: "+user2.potentialNames);

user2.removeUnavailableUserNames(existing);

System.out.println("potentialNames following removal: "+user2.potentialNames);

}

}

8 0
1 month ago
Why is a cable modem classified as a digital model?
Natasha_Volkova [897]

Answer:

Cable modems are crucial for converting signals, utilizing coaxial cables and an ethernet connection that links directly to computing devices or a network router. Whether using a standalone cable modem and router setup or a combined device, the modem relies on the same types of cables that transmit TV signals to connect to the Internet.

Explanation:

5 0
24 days ago
Other questions:
  • c++ 2.30 LAB: Phone number breakdown Given a long long integer representing a 10-digit phone number, output the area code, prefi
    10·1 answer
  • 7. Which of these statements is true? Agile is a programming language MySQL is a database HTML stands for "Hypertext Markup Link
    15·1 answer
  • Which is among the earliest formats of audio used in video games? A. MP3 B. wave table synthesis C. pulse code modulation D. MOD
    7·2 answers
  • Given a pattern as the first argument and a string of blobs split by | show the number of times the pattern is present in each b
    14·1 answer
  • Write a program to help you feed your friends at a party by doing some math about square pizzas. Assume the grader defines a str
    12·1 answer
  • Your revenue is $22,000. Your Cost of Goods is 16,250. Your gross profit is _____________, fill in the blank,.
    14·1 answer
  • A 1.17 g sample of an alkane hydrocarbon gas occupies a volume of 674 mL at 28°C and 741 mmHg. Alkanes are known to have the gen
    14·1 answer
  • Question #5<br> How does the computer decide which path to follow in a selection control structure?
    12·1 answer
  • Which generation of programming languages provides programmers with a visual environment for coding programs?
    12·1 answer
  • Sara is writing a program to input her monthly phone bills and output the month name and amount for the month with maximum amoun
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!