पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
मान लीजिए कोई TCP संबंध 1000 byte की file भेज रहा है और पहला byte 10001 से गिना जा रहा है। अगर सारा data एक ही segment में भेजा जाए तो उस segment का sequence number क्या होगा?
Suppose a TCP connection is transferring a file of 1000 bytes. The first byte is numbered 10001. What is the sequence number of the segment if all the data is sent in only one segment?
A10000
B10001
C12001
D11001
सही उत्तर / Answer: (B)
हल / Solution
किसी segment का sequence number हमेशा उसके भीतर पड़े पहले data byte की संख्या होता है। यहाँ file byte 10001 से शुरू होती है और पूरी file एक ही segment में जा रही है, इसलिए वह segment 10001 से ही शुरू होता है और उसका sequence number भी 10001 है। उसमें 10001 से 11000 तक के byte जाते हैं। इसलिए 11001 तो अगला अपेक्षित byte है, और 10000 तथा 12001 यहाँ किसी चीज़ से मेल नहीं खाते।
The sequence number of a segment is always the number of the first data byte inside it. Here the file starts at byte 10001 and the whole file goes in one segment, so that segment begins at 10001 and its sequence number is 10001. The bytes it carries run from 10001 to 11000. So 11001 would be the next expected byte, and 10000 and 12001 fit nothing here.
प्रश्न 2उत्तर + हल
TCP segment के header में sequence number और acknowledgement number वाले खाने किसकी ओर इशारा करते हैं?
In the TCP segment header, the sequence number and acknowledgement number fields refer to ______.
Abyte संख्याByte number
Bbuffer संख्याBuffer number
Csegment संख्याSegment number
DacknowledgmentAcknowledgment
सही उत्तर / Answer: (A)
हल / Solution
TCP segment नहीं, byte गिनता है। धारा के हर byte को एक संख्या मिलती है, और किसी segment का sequence number उसमें पड़े पहले data byte की संख्या होती है। Acknowledgement number वह byte बताता है जो पाने वाले को अब चाहिए। इसीलिए sequence number 44 और दो byte data वाले segment का उत्तर 46 होता है। Buffer या segment की गिनती इस तरह कभी नहीं होती।
TCP counts bytes, not segments. Every byte of the stream gets a number, and the sequence number of a segment is the number of the first data byte it carries. The acknowledgement number names the next byte the receiver expects. That is why a segment with sequence number 44 and two bytes of data is answered with 46. Buffers and segments are never numbered in this way.
प्रश्न 3उत्तर + हल
TCP में विश्वसनीय भेजाई पाने के लिए data के सही-सलामत पहुँचने की जाँच किससे की जाती है?
To achieve reliable transport in TCP, ______ is used to check the safe and sound arrival of data.
ApacketPacket
BbufferBuffer
CsegmentSegment
DacknowledgmentAcknowledgment
सही उत्तर / Answer: (D)
हल / Solution
TCP की विश्वसनीयता acknowledgement पर टिकी है। पाने वाला ऐसा acknowledgement number लौटाता है जो बताता है कि अब उसे कौन-सा byte चाहिए, इससे भेजने वाले को ठीक-ठीक पता चल जाता है कि कितना data सही-सलामत पहुँचा। अगर घड़ी बीतने तक acknowledgement न आए तो वह data दोबारा भेज दिया जाता है। Segment तो सिर्फ़ ढोई जाने वाली इकाई है, buffer byte रखता है और packet ऐसी इकाई का आम नाम है।
Reliability in TCP rests on acknowledgements. The receiver sends back an acknowledgement number that says which byte it expects next, so the sender learns exactly how much has arrived safely. If no acknowledgement comes before the timer runs out, that data is sent again. A segment is only the unit carried, a buffer only stores bytes, and packet is the general word for such a unit.
प्रश्न 4उत्तर + हल
TCP किस तरह का संचार देता है?
The communication offered by TCP is ______.
Afull duplexFull-duplex
Bhalf duplexHalf-duplex
Csemi duplexSemi-duplex
Dएक-एक byte करकेByte by byte
सही उत्तर / Answer: (A)
हल / Solution
TCP का संबंध full duplex होता है। data और acknowledgement दोनों दिशाओं में एक ही समय चल सकते हैं, क्योंकि हर सिरा अपना भेजने वाला buffer और अपना पाने वाला buffer अलग रखता है। इसीलिए उलटी दिशा में जाते data segment के साथ acknowledgement भी लादा जा सकता है। Half duplex में एक बार में सिर्फ़ एक दिशा चलती, और semi duplex तो TCP के लिए कोई असली शब्द ही नहीं है।
A TCP connection is full duplex. Data and acknowledgements can travel in both directions at the same time, because each end keeps its own sending buffer and its own receiving buffer. This is also why an acknowledgement can be piggybacked on a data segment going the other way. Half duplex would allow only one direction at a time, and semi duplex is not a real term.
प्रश्न 5उत्तर + हल
TCP कई byte इकट्ठे करके जो packet बनाता है, उसे क्या कहते हैं?
TCP groups a number of bytes together into a packet called ______.
ApacketPacket
BbufferBuffer
CsegmentSegment
DstackStack
सही उत्तर / Answer: (C)
हल / Solution
TCP भेजने वाले buffer में पड़े byte में से एक समूह उठाता है और उस पर header चढ़ा देता है। इसी इकाई को segment कहते हैं, और उसके header में sequence number, acknowledgement number, window तथा checksum रहते हैं। यह segment फिर IP को सौंप दिया जाता है, जो उसे datagram के भीतर रख देता है। Buffer तो सिर्फ़ byte रखने की जगह है, इसलिए वह तार पर जाने वाली इकाई नहीं है।
TCP takes bytes waiting in the sending buffer and wraps a group of them in a header. That unit is called a segment, and its header carries the sequence number, the acknowledgement number, the window and the checksum. The segment is then handed to IP, which puts it inside a datagram. A buffer is only the store of bytes, so it is not the unit sent on the wire.
प्रश्न 6उत्तर + हल
TCP की process, data लिखने और पढ़ने का काम एक ही गति से नहीं कर पाती। इसलिए रखने के लिए किसकी ज़रूरत पड़ती है?
A TCP process may not write and read data at the same speed. So we need ______ for storage.
ApacketPackets
BbufferBuffers
CsegmentSegments
DstackStacks
सही उत्तर / Answer: (B)
हल / Solution
TCP संबंध के दोनों सिरों की process अपनी-अपनी गति से चलती हैं। इस फ़र्क़ को पाटने के लिए TCP हर दिशा के लिए दो buffer रखता है — एक भेजने का और एक पाने का। byte उन्हीं में तब तक ठहरते हैं जब तक दूसरा सिरा तैयार न हो, और इन्हीं से flow control तथा दोबारा भेजने में भी मदद मिलती है। Segment तो buffer के byte से बनी इकाई है, और stack एक अलग ही data संरचना है।
The two processes at the ends of a TCP connection work at their own speeds. To bridge that gap TCP keeps two buffers for each direction, a sending buffer and a receiving buffer. Bytes wait in them until the other side is ready, and the same buffers also help with flow control and with retransmission. A segment is the unit TCP builds from buffered bytes, and a stack is an unrelated data structure.
प्रश्न 7उत्तर + हल
TCP में data भेजना और पाना किस रूप में होता है?
In TCP, sending and receiving data is done as ______.
Abyte की धारा (stream of bytes)Stream of bytes
Bअक्षरों का क्रमSequence of characters
Cdata की पंक्तियाँLines of data
DpacketPackets
सही उत्तर / Answer: (A)
हल / Solution
TCP stream सेवा देता है। भेजने वाली process बस buffer में byte लिखती जाती है और पाने वाली process दूसरे buffer से byte पढ़ती जाती है — बीच में संदेश की कोई सीमा नहीं होती। byte को segment में बाँटने का फ़ैसला TCP ख़ुद करता है, इसलिए application कभी packet के रूप में नहीं सोचती। यह अक्षरों या पंक्तियों की धारा भी नहीं है, क्योंकि TCP यह देखता ही नहीं कि byte का अर्थ क्या है।
TCP offers a stream service. The sending process simply writes bytes into a buffer and the receiving process reads bytes out of another buffer, with no message boundaries in between. TCP itself decides how to group those bytes into segments, so the application never thinks in packets. It is not a stream of characters or of lines, because TCP never looks at what the bytes mean.
प्रश्न 8उत्तर + हल
TCP के बारे में इनमें से कौन-सा कथन ग़लत है?
Which of the following is false with respect to TCP?
Ctransport layer का protocolTransport layer protocol
Dअविश्वसनीय (unreliable)Unreliable
सही उत्तर / Answer: (D)
हल / Solution
TCP transport layer का protocol है, संबंध-आधारित है क्योंकि वह three way handshake से संबंध खोलता है, और process से process तक पहुँचाता है क्योंकि port संख्या सही program चुन लेती है। ये तीनों बातें सही हैं। ग़लत कथन यही है कि TCP अविश्वसनीय है — वह byte गिनता है, उनका acknowledgement लेता है और खोया हुआ data दोबारा भेजता है। अविश्वसनीय तो UDP है, जो न acknowledgement लेता है न दोबारा भेजता है।
TCP is a transport layer protocol, it is connection oriented because it opens a connection with a three way handshake, and it is process to process because port numbers pick the right program. All three of those are true. Calling TCP unreliable is the false statement: TCP numbers bytes, acknowledges them and retransmits anything that is lost, so it is reliable. UDP is the unreliable one.
प्रश्न 9उत्तर + हल
TCP की congestion control में slow start चरण के दौरान congestion window का आकार
In the slow start phase of the TCP congestion control algorithm, the size of the congestion window
Aबढ़ता ही नहींdoes not increase
Bरैखिक रूप से बढ़ता हैincreases linearly
Cवर्गाकार रूप से बढ़ता हैincreases quadratically
Dचरघातांकी (exponential) रूप से बढ़ता हैincreases exponentially
सही उत्तर / Answer: (D)
हल / Solution
Slow start एक segment की window से शुरू होता है। हर acknowledgement पर भेजने वाला एक segment और जोड़ लेता है, इसलिए हर चक्कर के बाद window दुगनी हो जाती है — 1, 2, 4, 8, 16 segment। हर चक्कर पर दुगना होना चरघातांकी बढ़त है, भले नाम में slow लगा हो। बढ़त रैखिक तो बाद में congestion avoidance वाले चरण में होती है, जहाँ window हर चक्कर पर सिर्फ़ एक segment बढ़ती है।
Slow start begins with a window of one segment. Every acknowledgement lets the sender add one more segment, so after each round trip the window doubles: 1, 2, 4, 8, 16 segments. Doubling every round trip is exponential growth, even though the name says slow. The growth becomes linear only later, in the congestion avoidance phase, where the window rises by just one segment per round trip.
प्रश्न 10उत्तर + हल
कौन-सा मान यह नापता है कि नमूना अवधि में भेजे गए कुल संदेशों में से कितने खो गए या बिगड़ गए?
The ______ measures the number of lost or garbled messages as a fraction of the total sent in the sampling period.
AResidual error rate
BTransfer failure probability
CConnection release failure probability
DConnection establishment failure probability
सही उत्तर / Answer: (A)
हल / Solution
Residual error rate भी सेवा-गुण बताने वाला एक parameter है। नमूना अवधि में भेजे गए कुल संदेशों में से जितने खो जाएँ या बिगड़कर पहुँचें, उनका अनुपात यही होता है, और आदर्श transport सेवा में यह शून्य रहता। Transfer failure probability यह देखता है कि भेजाई तय लक्ष्यों पर खरी उतरी या नहीं। बाक़ी दो यह नापते हैं कि तय समय में संबंध जोड़ना या तोड़ना कितनी बार नाकाम रहता है।
Residual error rate is a quality of service parameter. It is the share of messages that are lost or arrive damaged out of all the messages sent during the sampling period, and in an ideal transport service it would be zero. Transfer failure probability looks at whether the transfer met its agreed goals. The other two measure how often connection setup or connection release itself fails within the fixed time.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
मान लीजिए TCP की congestion window 18 KB है और तभी timeout हो जाता है। अगर अगले चार transmission burst सफल रहें तो window कितनी KB की होगी? maximum segment size 1 KB मानिए।
Suppose that the TCP congestion window is set to 18 KB and a timeout occurs. How big, in KB, will the window be if the next four transmission bursts are all successful? Assume that the maximum segment size is 1 KB.
TCP की congestion control अवस्थाओं पर नीचे दिए कथन देखिए। (i) slow start में congestion window का आकार threshold तक चरघातांकी (exponential) रूप से बढ़ता है। (ii) multiplicative decrease में threshold घटकर पिछली window के आधे पर आ जाता है। (iii) threshold पर पहुँचने के बाद timeout तक congestion window चरघातांकी रूप से बढ़ता है। इनमें से कौन-से कथन सही हैं?
Consider the following statements regarding TCP's congestion control phases. (i) The size of the congestion window increases exponentially until it reaches a threshold (in the slow start algorithm). (ii) In the multiplicative decrease procedure, the threshold gets decreased to one-half of the previous window size. (iii) The size of the congestion window increases exponentially after achieving the threshold value till the timeout. Which of the above statements are true?
मान लीजिए Host A, Host B को TCP संबंध पर एक segment भेजता है जिसका sequence number 44 है और उसमें 2 byte data है। इसके बाद आने वाले segment में acknowledgment number क्या होगा?
Suppose that Host A sends to Host B, over a TCP connection, one segment with sequence number 44 and 2 bytes of data. What will be the acknowledgment number in the subsequent segment?
TCP, 1 Mbyte प्रति सेकंड की दर से data भेज रहा है। अगर sequence number 7000 से शुरू होता है, तो उसे दोबारा शून्य पर लौटने में कितने सेकंड लगेंगे?
TCP is sending data at 1 Mbyte/s. If the sequence number starts with 7000, how long does it take before the sequence number goes back to zero, in seconds?
समय के साथ TCP window के आकार का नीचे दिया गया आलेख देखिए। मान लीजिए TCP में slow start, congestion avoidance, fast retransmit और fast recovery सब चल रहे हैं। वह समय-अंतराल पहचानिए जिसमें TCP का congestion avoidance पहली बार चल रहा है।
Consider the following plot of TCP window size as a function of time. Assume TCP is operating with slow start, congestion avoidance, fast retransmit and fast recovery mechanisms. Identify the interval of time when TCP congestion avoidance is operating [first time].
मान लीजिए TCP 64 KB से कहीं बड़ी window चला सकता है। यह बढ़ा हुआ TCP, 1 Gbps की लाइन पर 100 ms के round trip समय (RTT) के साथ 10 MB की file भेज रहा है। TCP 1 KB के packet भेजता है और न भीड़ है न कोई packet खोता है। file भेजने में कितने RTT लगेंगे?
Assume that TCP allows window sizes much larger than 64 KB. Suppose this extended TCP runs over a 1 Gbps link with a round trip latency (RTT) of 100 ms to transfer a 10 MB file. If TCP sends 1 KB packets, assuming no congestion and no packet loss, find how many RTTs it takes to send the file.
मान लीजिए TCP header का एक नया रूप है जो 200 ms के Round Trip Time (RTT) और 10 Mbps की network bandwidth के लिए बना है। अधिकतम segment जीवनकाल 150 सेकंड मानिए। sequence number वाले खाने के लिए कितने bit चाहिए?
Suppose there is a new version of the TCP header that accommodates a Round Trip Time (RTT) of 200 ms and a network bandwidth of 10 Mbps. Assume the maximum segment lifetime is 150 seconds. Find the number of bits needed for the sequence number field.
मान लीजिए कोई नया TCP संबंध 1 segment भेजकर शुरू होता है और हर acknowledgement मिलने पर congestion window 1 segment बढ़ा देता है, यानी 1 RTT के बाद slow start में window 2 segment की हो जाती है। मान लीजिए संबंध slow start से कभी बाहर नहीं जाता। N segment भेजने में कितने RTT लगेंगे?
Assume that a new TCP connection starts by sending 1 segment, and then increases its congestion window by 1 segment each time it receives an acknowledgement, i.e., after 1 RTT the congestion window is 2 segments in slow start. Assume the connection never leaves slow start. Find the number of RTTs it takes to send N segments.
एक TCP संबंध slow start वाली congestion control चला रहा है। शुरुआती threshold 64 kB है और Maximum Segment Size (MSS) 2 kB। पाने वाले की घोषित window शुरू में 32 kB है। पहला प्रयास 0 से गिना जाता है और प्रयास संख्या 4 को छोड़कर बाक़ी सब सफल रहते हैं। प्रयास संख्या 9 पर भेजने वाले की congestion window (kB में) कितनी होगी?
Consider a TCP connection using the slow start congestion control scheme with an initial threshold value of 64 kB and a Maximum Segment Size (MSS) of 2 kB. The receiver's advertised window is initially 32 kB. The first transmission attempt is numbered 0, and all transmission attempts are successful except for the timeout on attempt number 4. Find the size (in kB) of the sender's congestion window at attempt number 9.
ATCP segment में urgent pointer लगाया जाता हैIn a TCP segment, the urgent pointer is set
Burgent pointer का मान sequence number में जोड़ने पर urgent data का आख़िरी byte मिलता हैThe value of the urgent pointer field is added to the sequence number to get the last byte of urgent data
Curgent data की शुरुआत साफ़-साफ़ बताई नहीं जातीThe start of the urgent data is not defined explicitly
Durgent data को IP सँभालता हैUrgent data is handled by IP