पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
Stop-and-Wait ARQ, Go-Back-N ARQ का वह विशेष रूप है जिसमें भेजने वाली खिड़की (send window) का आकार _____ होता है।
Stop-and-Wait ARQ is a special case of Go-Back-N ARQ in which the size of the send window is _____.
A2
B1
C8
Dइनमें से कोई नहींnone of the above
सही उत्तर / Answer: (B)
हल / Solution
Stop-and-Wait ARQ में भेजने वाला एक frame भेजकर रुक जाता है, यानी बिना रसीद के बाहर एक ही frame रह सकता है। Go-Back-N की भाषा में इसका मतलब है कि भेजने वाली खिड़की (send window) का आकार 1 है। इसीलिए Stop-and-Wait ARQ को Go-Back-N का सबसे छोटा विशेष रूप कहा जाता है। आकार 2 या 8 रखने पर एक साथ कई frame बाहर रहेंगे और वह Stop-and-Wait नहीं रह जाएगा।
In Stop-and-Wait ARQ the sender transmits one frame and then waits, so only a single frame can be outstanding at any moment. Put in Go-Back-N terms, that means the send window has a size of 1. This is why Stop-and-Wait ARQ is described as the smallest special case of Go-Back-N ARQ. A window of 2 or 8 would let several frames be outstanding together, and the protocol would no longer be Stop-and-Wait.
प्रश्न 2उत्तर + हल
Go-Back-N Protocol में, अगर क्रम संख्या (sequence number) वाले खाने का आकार 8 है, तो क्रम संख्याएँ ________ अंकगणित में होती हैं।
In the Go-Back-N Protocol, if the size of the sequence number field is 8, the sequence numbers are in ________ arithmetic.
Amodulo-2
Bmodulo-8
Cmodulo-256
Dइनमें से कोई नहींnone of the above
सही उत्तर / Answer: (C)
हल / Solution
क्रम संख्या (sequence number) का खाना m bit का हो तो अंक 0 से 2^m − 1 तक चलते हैं और अंकगणित modulo-2^m होता है। यहाँ खाना 8 bit का है, इसलिए 2^8 = 256 अंक बनते हैं और अंकगणित modulo-256 है। यानी 255 के बाद गिनती फिर 0 से शुरू होती है। modulo-2 तो Stop-and-Wait ARQ में चलता है, और modulo-8 के लिए खाना केवल 3 bit का होना चाहिए।
If the sequence number field is m bits wide, the numbers run from 0 to 2^m minus 1 and the arithmetic is modulo-2 raised to m. Here the field is 8 bits, so there are 2^8 = 256 numbers and the arithmetic is modulo-256. In other words, counting restarts at 0 after 255. Modulo-2 belongs to Stop-and-Wait ARQ, and modulo-8 would need a field of only 3 bits.
प्रश्न 3उत्तर + हल
Stop-and-Wait ARQ में रसीद का अंक ______ अंकगणित में हमेशा उस अगले frame की क्रम संख्या बताता है जिसकी उम्मीद है।
In Stop-and-Wait ARQ, the acknowledgment number always announces in ______ arithmetic the sequence number of the next frame expected.
Amodulo-2
Bmodulo-4
Cmodulo-m
Dइनमें से कोई नहींnone of the above
सही उत्तर / Answer: (A)
हल / Solution
Stop-and-Wait ARQ में क्रम संख्या (sequence number) modulo-2 में चलती है, इसलिए रसीद का अंक भी उसी अंकगणित में होता है। ACK का अंक बताता है कि receiver अब किस frame की उम्मीद कर रहा है। frame 0 ठीक पहुँचा तो ACK 1 जाता है, और frame 1 पहुँचा तो ACK 0। इस तरह दो ही अंकों से नया frame और उसका दोहराव अलग पहचान लिए जाते हैं। modulo-4 यहाँ बेकार है।
In Stop-and-Wait ARQ the sequence number runs in modulo-2, so the acknowledgement number uses the same arithmetic. The ACK number announces which frame the receiver expects next. If frame 0 arrives safely the receiver sends ACK 1, and if frame 1 arrives it sends ACK 0. Two numbers are therefore enough to separate a fresh frame from a duplicate. Modulo-4 would serve no purpose here.
प्रश्न 4उत्तर + हल
Stop-and-Wait ARQ में हम frame को गिनने के लिए क्रम संख्या (sequence number) इस्तेमाल करते हैं। ये क्रम संख्याएँ __________ अंकगणित पर आधारित होती हैं।
In Stop-and-Wait ARQ, we use sequence numbers to number the frames. The sequence numbers are based on __________ arithmetic.
Amodulo-2
Bmodulo-4
Cmodulo-m
Dइनमें से कोई नहींnone of the above
सही उत्तर / Answer: (A)
हल / Solution
Stop-and-Wait ARQ में एक समय पर केवल एक frame बाहर रहता है, इसलिए उसे अपने और अगले frame में फ़र्क़ करने के लिए बस दो अंक चाहिए — 0 और 1। इसी को modulo-2 अंकगणित कहते हैं, और क्रम संख्या (sequence number) के लिए एक ही bit बहुत है। modulo-4 और modulo-m तब काम आते हैं जब खिड़की (window) बड़ी हो, जैसे Go-Back-N या Selective Repeat में।
In Stop-and-Wait ARQ only one frame is outstanding at a time, so the protocol needs just two numbers to tell this frame from the next one: 0 and 1. That is modulo-2 arithmetic, and a single bit is enough for the sequence number field. Modulo-4 and modulo-m become useful only when the window is larger, as it is in Go-Back-N or in Selective Repeat.
प्रश्न 5उत्तर + हल
data link layer में _________ control, automatic repeat request यानी आँकड़े दोबारा भेजने पर आधारित है।
_________ control in the data link layer is based on automatic repeat request, which is the retransmission of data.
AFlow
BError
CTransmission
Dइनमें से कोई नहींnone of the above
सही उत्तर / Answer: (B)
हल / Solution
यह परिभाषा त्रुटि नियंत्रण (error control) की है। data link layer पर error control का मतलब है बिगड़े या खोए frame को पहचानकर उन्हें दोबारा भेजवाना, और यही काम automatic repeat request यानी ARQ करता है। प्रवाह नियंत्रण (flow control) अलग है — वह सिर्फ़ भेजने की रफ़्तार बाँधता है ताकि receiver का buffer न भरे। transmission control नाम का कोई data link कार्य नहीं होता।
This is the definition of error control. At the data link layer, error control means detecting frames that are damaged or lost and arranging for them to be sent again, and that is exactly what automatic repeat request, or ARQ, does. Flow control is a different thing: it only limits the sending rate so that the receiver's buffer never overflows. There is no data link function called transmission control.
प्रश्न 6उत्तर + हल
Selective Repeat ARQ में, अगर क्रम संख्या (sequence number) के लिए 5 bit हैं, तो लेने वाली खिड़की (receive window) का सबसे बड़ा आकार _____ होना चाहिए।
In Selective Repeat ARQ, if 5 is the number of bits for the sequence number, then the maximum size of the receive window must be _____
A15
B16
C31
D1
सही उत्तर / Answer: (B)
हल / Solution
Selective Repeat का receiver frame को क्रम से बाहर भी ले लेता है, उन्हें जमा करता है और बाद में क्रम में लगाता है। इसीलिए उसकी खिड़की भेजने वाली खिड़की के बराबर रखी जाती है, यानी 2^m का आधा। m = 5 पर 32 क्रम संख्याएँ (sequence numbers) बनती हैं, इसलिए खिड़की 16 होती है। लेने वाली खिड़की 1 तो Go-Back-N में होती है, जहाँ क्रम से बाहर आया frame स्वीकार ही नहीं होता।
The Selective Repeat receiver also accepts frames that arrive out of order; it stores them and puts them back in sequence later. So its window is kept the same size as the send window, that is half of 2^m. With m = 5 there are 32 sequence numbers, so the window is 16. A receive window of 1 belongs to Go-Back-N, where an out-of-order frame is never accepted at all.
प्रश्न 7उत्तर + हल
Selective Repeat ARQ में, अगर क्रम संख्या (sequence number) के लिए 5 bit हैं, तो भेजने वाली खिड़की (send window) का सबसे बड़ा आकार _____ होना चाहिए।
In Selective Repeat ARQ, if 5 is the number of bits for the sequence number, then the maximum size of the send window must be _____
A15
B16
C31
D1
सही उत्तर / Answer: (B)
हल / Solution
Selective Repeat में भेजने और लेने वाली, दोनों खिड़कियाँ बराबर रखी जाती हैं, और उनका सबसे बड़ा आकार 2^m का आधा होता है। m = 5 से 2^5 = 32 क्रम संख्याएँ (sequence numbers) बनती हैं, इसलिए खिड़की 32 का आधा, यानी 16 तक जा सकती है। आधा-आधा बाँटना ज़रूरी है, वरना दोनों खिड़कियाँ ओवरलैप कर जाएँगी और receiver नए frame को दोहराव समझ लेगा। 31 Go-Back-N की सीमा है।
In Selective Repeat both the send window and the receive window are kept equal, and their largest size is half of 2^m. With m = 5 there are 2^5 = 32 sequence numbers, so each window can be at most 16. Splitting the range in half is necessary, otherwise the two windows would overlap and the receiver would mistake a fresh frame for a duplicate. 31 is the Go-Back-N limit and 1 belongs to Stop-and-Wait.
प्रश्न 8उत्तर + हल
Go-Back-N ARQ में, अगर क्रम संख्या (sequence number) के लिए 5 bit हैं, तो लेने वाली खिड़की (receive window) का सबसे बड़ा आकार _____ होना चाहिए।
In Go-Back-N ARQ, if 5 is the number of bits for the sequence number, then the maximum size of the receive window must be _____
A15
B16
C31
D1
सही उत्तर / Answer: (D)
हल / Solution
Go-Back-N का receiver frame को केवल क्रम से स्वीकार करता है, इसलिए उसकी खिड़की का आकार हमेशा 1 होता है — bit की संख्या से इसका कोई लेना-देना नहीं। वह जिस एक frame की उम्मीद करता है वही लेता है, बाक़ी सब गिरा देता है। इसी वजह से इस receiver को frame क्रम में लगाने के लिए buffer नहीं चाहिए। 5 bit का असर भेजने वाली खिड़की पर पड़ता है, जो 31 तक जा सकती है।
The Go-Back-N receiver accepts frames only in order, so its window size is always 1, no matter how many bits the sequence number uses. It takes just the one frame it is expecting and discards everything else. That is why this receiver needs no buffer for reordering frames at all. The five bits matter only for the send window, which may grow up to 31 in this case.
प्रश्न 9उत्तर + हल
Go-Back-N ARQ में, अगर क्रम संख्या (sequence number) के लिए 5 bit हैं, तो भेजने वाली खिड़की (send window) का सबसे बड़ा आकार _____ होना चाहिए।
In Go-Back-N ARQ, if 5 is the number of bits for the sequence number, then the maximum size of the send window must be _____
A15
B16
C31
D1
सही उत्तर / Answer: (C)
हल / Solution
Go-Back-N में क्रम संख्या (sequence number) के m bit हों तो अंक 0 से 2^m − 1 तक चलते हैं। भेजने वाली खिड़की का सबसे बड़ा आकार 2^m − 1 रखा जाता है, पूरा 2^m नहीं। 5 bit से 2^5 = 32 क्रम संख्याएँ बनती हैं, इसलिए खिड़की 31 तक ही जा सकती है। एक अंक ख़ाली रखना ज़रूरी है, वरना receiver पुराने और नए frame में फ़र्क़ नहीं कर पाएगा।
In Go-Back-N, if the sequence number uses m bits, the numbers run from 0 to 2^m minus 1. The largest send window allowed is 2^m minus 1, not the full 2^m. With 5 bits there are 2^5 = 32 sequence numbers, so the window can be at most 31. One number has to stay unused, otherwise the receiver could not tell an old frame apart from a brand new one.
प्रश्न 10उत्तर + हल
Go-Back-N और Selective-Repeat, दोनों Protocol _________ का इस्तेमाल करते हैं।
Both Go-Back-N and Selective-Repeat Protocols use a _________.
Asliding frame
Bsliding window
Csliding packet
Dइनमें से कोई नहींnone of the above
सही उत्तर / Answer: (B)
हल / Solution
Go-Back-N और Selective-Repeat, दोनों एक समय में कई frame बाहर रख सकते हैं, और उन्हें गिनने का तरीक़ा है खिसकती खिड़की (sliding window)। खिड़की एक काल्पनिक डिब्बा है जो क्रम संख्याओं (sequence numbers) पर आगे सरकता रहता है; रसीद आने पर उसका पिछला सिरा आगे बढ़ जाता है। इसी से flow control भी मिल जाता है। sliding frame या sliding packet जैसा कोई शब्द इन protocol में नहीं है।
Both Go-Back-N and Selective-Repeat can keep several frames outstanding at the same time, and the device that counts them is the sliding window. The window is an imaginary box that slides forward over the sequence numbers, and its rear edge moves ahead as acknowledgements come in. That is also where their flow control comes from. There are no such terms as sliding frame or sliding packet in these protocols.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
एक स्रोत कंप्यूटर S, 10^6 bit की फ़ाइल गंतव्य कंप्यूटर D को भेजता है। बीच में दो router (R1 और R2) और तीन लिंक (L1, L2, L3) हैं; L1 से S और R1 जुड़े हैं, L2 से R1 और R2, और L3 से R2 और D। हर लिंक 100 किमी लंबी है और संकेत की गति 10^8 मीटर प्रति सेकंड है। हर लिंक की bandwidth 1 Mbps है। फ़ाइल को 1000-1000 bit के 1000 packet में बाँटा जाता है। S से D तक फ़ाइल भेजने में transmission और propagation की कुल देरी कितनी होगी?
Consider a source computer (S) transmitting a file of size 10^6 bits to a destination computer (D) over a network of two routers (R1 and R2) and three links (L1, L2, and L3). L1 connects S to R1; L2 connects R1 to R2; and L3 connects R2 to D. Let each link be of length 100 km. Assume signals travel over each link at a speed of 10^8 meters per second and that the link bandwidth on each link is 1 Mbps. Let the file be broken down into 1000 packets each of size 1000 bits. Find the total sum of transmission and propagation delays in transmitting the file from S to D.
दो host के बीच 10^6 bps की duplex लिंक पर 1000 bit के frame भेजे जाते हैं। propagation time 25 मिलीसेकंड है। frame इस तरह भेजने हैं कि लिंक के भीतर ज़्यादा से ज़्यादा frame एक साथ चल रहे हों। sequence number अलग-अलग दिखाने के लिए कम से कम कितने bit (l) चाहिए? मान लीजिए दो frame भेजने के बीच कोई अंतराल नहीं रखना है।
Frames of 1000 bits are sent over a 10^6 bps duplex link between two hosts. The propagation time is 25 ms. Frames are to be transmitted into this link to maximally pack them in transit (within the link). What is the minimum number of bits (l) that will be required to represent the sequence numbers distinctly? Assume that no time gap needs to be given between transmission of two frames.
selective repeat (SR) protocol में भेजने वाले की खिड़की का आकार K frame है। संचार हो सके, इसके लिए कितने sequence bit चाहिए?
In the selective repeat (SR) protocol the sender window size is K frames. The number of sequence bits required for the communication to take place is given by
सूची-I को सूची-II से मिलाइए और नीचे दिए कूट से सही उत्तर चुनिए: सूची-I A. Stop and Wait ARQ B. Go-back N ARQ C. Selective repeat ARQ सूची-II 1. भेजे या दोबारा भेजे गए हर frame को अपना timer चाहिए, यानी timer को नंबर देने पड़ते हैं। 2. ACK तब भेजी जाती है जब डेटा नेटवर्क layer को सौंपा जाता है। ऐसा हो सकता है कि एक ही ACK n frame की रसीद दे दे। 3. सिर्फ़ 2 sequence number चलते हैं और भेजने वाले की खिड़की 1 की होती है। 4. जब तक अपेक्षित frame न मिले, पाने वाला कुछ नहीं करता। कूट: A B C
Match List-I and List-II and select the correct answer using the codes given below the lists: List-I A. Stop and Wait ARQ B. Go-back N ARQ C. Selective repeat ARQ List-II 1. Each frame sent or resent needs a timer, which means that the timers need to be numbered. 2. ACKs are sent when data is delivered to the network layer. It might be the case that a single ACK acknowledges n frames. 3. Only 2 sequence numbers are used and the sender window size is 1. 4. No action is performed by the receiver till the desired frame is obtained. Codes: A B C