Computer Networks | Set 8 Last Updated : 13 Dec, 2022 Comments Improve Suggest changes Like Article Like Report Following questions have been asked in GATE CS 2008 exam. 1) What is the maximum size of data that the application layer can pass on to the TCP layer below? (A) Any size (B) 2^16 bytes-size of TCP header (C) 2^16 bytes (D) 1500 bytes Answer (A) Application layer can send any size of data. There is no limit defined by standards. The lower layers divides the data if needed. 2) A client process P needs to make a TCP connection to a server process S. Consider the following situation: the server process S executes a socket(), a bind() and a listen() system call in that order, following which it is preempted. Subsequently, the client process P executes a socket() system call followed by connect() system call to connect to the server process S. The server process has not executed any accept() system call. Which one of the following events could take place? (A) connect () system call returns successfully (B) connect () system call blocks (C) connect () system call returns an error (D) connect () system call results in a core dump Answer (C) Since accept() call is not executed then connect () gets no response for a time stamp to wait & then return no response server error. 3) A computer on a 10Mbps network is regulated by a token bucket. The token bucket is filled at a rate of 2Mbps. It is initially filled to capacity with 16Megabits. What is the maximum duration for which the computer can transmit at the full 10Mbps? (A) 1.6 seconds (B) 2 seconds (C) 5 seconds (D) 8 seconds Answer (B) New tokens are added at the rate of r bytes/sec which is 2Mbps in the given question. Capacity of the token bucket (b) = 16 Mbits Maximum possible transmission rate (M) = 10Mbps So the maximum burst time = b/(M-r) = 16/(10-2) = 2 seconds In the above formula, r is subtracted from M to calculate the maximum burst time. The reason for this subtraction is, new tokens are added at the rate of r while transmission happens at maximum transmission rate M. Please see GATE Corner for all previous year paper/solutions/explanations, syllabus, important dates, notes, etc. Please write comments if you find any of the answers/explanations incorrect, or you want to share more information about the topics discussed above Comment More infoAdvertise with us Next Article Computer Networks | Set 8 K kartik Follow Improve Article Tags : Computer Networks GATE CS MCQ GATE-CS-2008 Similar Reads Set Operations A set is simply a collection of distinct objects. These objects can be numbers, letters, or even peopleâanything! We denote a set using curly brackets.For example: A = {1, 2, 3}Set Operations can be defined as the operations performed on two or more sets to obtain a single set containing a combinati 10 min read Types of Sets in Set Theory In mathematics, a Set is a fundamental concept representing a collection of well-defined objects or elements. Sets are typically denoted by capital letters, and the individual elements within a set are listed in curly braces, separated by commas. For example, A={1,2,3,4,5} represents a set A with el 7 min read Set Notation Set notation refers to the various symbols used in the representation and operation of sets. It is a fundamental concept in mathematics, offering a structured and concise way to represent collections of objects, numbers, or elements. Set notation is used to define and operate on sets, including symb 7 min read Representation of a Set Sets are defined as collections of well-defined data. In Math, a Set is a tool that helps to classify and collect data belonging to the same category. Even though the elements used in sets are all different from each other, they are all similar as they belong to one group. For instance, a set of dif 8 min read Array of Sets in C++ STL An array is a collection of items stored at contiguous memory locations. It is to store multiple items of the same type together. This makes it easier to get access to the elements stored in it by the position of each element. Sets are a type of associative container in which each element has to be 5 min read Like