Question

In: Computer Science

Could i please have some assistance with the following questions. a) What is the purpose of...

Could i please have some assistance with the following questions.

a) What is the purpose of port numbers? how are they used?

b) Why does TCP probe the network continuously until it experiences a loss?

c) What is the difference between the congestion window and the received window?

d) What is the benefit of TCP Reno over TCP Tahoe?

Solutions

Expert Solution

Answer:

a) Purpose of port numbers: A port number is a way to identify a specific process to which an Internet or other network message is to be forwarded when it arrives at a server. A port number is the logical address of each application or process that uses a network or the Internet to communicate. Each application/program is allocated a 16-bit integer port number.

how are they used?

Port numbers relate to network addressing. In TCP/IP networking, both TCP and UDP use their own set of ports that work together with IP addresses.

For the Transmission Control Protocol and the User Datagram Protocol, a port number is a 16-bit integer that is put in the header appended to a message unit. This port number is passed logically between client and server transport layers and physically between the transport layer and the Internet Protocol layer and forwarded on.

For example, a request from a client (perhaps on behalf of you at your PC) to a server on the Internet may request a file be served from that host's File Transfer Protocol (FTP) server or process. In order to pass your request to the FTP process in the remote server, the Transmission Control Protocol (TCP) software layer in your computer identifies the port number of 21 (which by convention is associated with an FTP request) in the 16-bit port number integer that is appended to your request. At the server, the TCP layer will read the port number of 21 and forward your request to the FTP program at the server.

b) TCP probe the network continuously until it experiences a loss?

A TCP connection controls its transmission rate by limiting its number of transmitted-but-yet-to-be-acknowledged segments. Let us denote this number of permissible unacknowledged segments as w, often referred to as the TCP window size. Ideally, TCP connections should be allowed to transmit as fast as possible (i.e., to have as large a number of outstanding unacknowledged packets as possible) as long as segments are not lost (dropped at routers) due to congestion. In very broad terms, a TCP connection starts with a small value of w and then "probes" for the existence of additional unused link bandwidth at the links on its end-to-end path by increasing w.​​​​​​​

A TCP connection continues to increase w until a segment loss occurs (as detected by a timeout or duplicate acknowledgements). When such a loss occurs, the TCP connection reduces w to a "safe level" and then begins probing again for unused bandwidth by slowly increasing w .

An important measure of the performance of a TCP connection is its throughput - the rate at which it transmits data from the sender to the receiver. Clearly, throughput will depend on the value of w. If a TCP sender transmits all w segments back-to-back, it must then wait for one round trip time (RTT) until it receives acknowledgments for these segments, at which point it can send w additional segments. If a connection transmits w segments of size MSS bytes every RTT seconds, then the connection's throughput, or transmission rate, is (w*MSS)/RTT bytes per second.

c) Difference between congestion window and the received window:

Congestion Window (cwnd) is a TCP state variable that limits the amount of data the TCP can send into the network before receiving an ACK.

The Receiver Window (rwnd) is a variable that advertises the amount of data that the destination side can receive.

Together, the two variables are used to regulate data flow in TCP connections, minimize congestion, and improve network performance.

d) Benefit of TCP Reno over TCP Tahoe:

TCP Reno retains the basic principles of Tahoe such as Slow Start, Congestion Avoidance and Fast Retransmit. However it is not as aggressive as Tahoe in the reduction of the congestion window.​​​​​​​

To put this very briefly, Tahoe will reset the congestion window to 1 MSS or 1 Packet after 3 duplicate ACKs are detected by the sender. Reno will reset the congestion window to 1/2 of the previous window. So if the window is 10 packets, Reno will set it 5 and build back up after each RTT. This means that Reno will more quickly recover from loss and is much more in line with modern congestion control methods.

Please give thumbsup, fi you like it. Thanks.


Related Solutions

Could i please have some assistance with the following questions. a) What are key features of...
Could i please have some assistance with the following questions. a) What are key features of UDP Services? b) What are some of the advantages of UDP compared to TCP? c) What is the aim of the connection setup Phase, ie, 3 way handshake, of TCP? d) What causes duplicate ACK's
Could i please have some assistance with the following questions. a) When using the exponential weighted...
Could i please have some assistance with the following questions. a) When using the exponential weighted moving average (EWMA) to calculate the running time of the RTT, what does the constant ‘x’ control? b) Consider a TCP segment. What is sequence number? What is the range of the sequence number? What is the acknowledge number (ACK)?
Hello I have these questions, Can I please get some assistance, I need not so long...
Hello I have these questions, Can I please get some assistance, I need not so long or short answers please How to decide what job to take. Is that a marginal decision? What is an explicit cost? What is an implicit cost? How is accounting profit calculated? How is economic profit calculated?
Could i please have assistance with the following. A) TCP/IP protocol stack, how does a switch...
Could i please have assistance with the following. A) TCP/IP protocol stack, how does a switch differ from a hub? B) How does a switch/bridge know what station is on a given port? C) What does a switch/bridge do if it does not know the out-going port of a destination MAC address? D) How is a token ring similar to a Master-and-slave or polling channel access protocol?
Hi, I have some doubs about answers to following questions and I apprecite if someone could...
Hi, I have some doubs about answers to following questions and I apprecite if someone could help me with the answers: We want to investigate the following research problem: We have been developing a new learning and teaching application and want to know if this application is more efficient on a tablet or on a mobile phone. Efficiency is measured in the speed in which answers in the form of text are entered. i. Formulate the hypothesis H1 and the...
I have three questions that I need assistance with: What is your interpretation of capital resources...
I have three questions that I need assistance with: What is your interpretation of capital resources available in an organization? What would you include in a capital request based on sound due diligence and feasibility? What various financial justifications (break-even analysis, net present value, cost of capital, and internal rate of return) would you include and why? I'm getting stuck in exactly how to answer these questions as I'm getting ready to work on my capital budget project. Any assistance...
Hello I need some assistance with these questions I need not so long answers but not...
Hello I need some assistance with these questions I need not so long answers but not too short please Give some examples of How much decisions. What are the implicit costs of having an Airbnb in your neighborhood? What is marginal analysis? What is marginal cost? Under what conditions do marginal costs increase?
I require some assistance with the following assignment as I belive I might be doing it...
I require some assistance with the following assignment as I belive I might be doing it wrong especially in step 2. Your assistance is much appreciated. Linux Shell Scripting Practice: Note: The following excercise requires the use of the nano text editor. Begin by starting a script called “m5a2_part2b” by issuing the following at the command in a open terminal: $ script m5a2_part2b Step 1: Using the nano text editor, edit the following “Hello World” program, save as hello.sh, change...
I could use some assistance with my 1600 word essay on McKay who was a Jamaican...
I could use some assistance with my 1600 word essay on McKay who was a Jamaican writer and poet. please provide any references thank you
***THIS IS ALL THE INFORMATION THAT I HAVE**** ***PLEASE ANSWER ALL QUESTIONS*** ***GOOGLE SPREADSHEET COULD BE...
***THIS IS ALL THE INFORMATION THAT I HAVE**** ***PLEASE ANSWER ALL QUESTIONS*** ***GOOGLE SPREADSHEET COULD BE SCREENSHOT AND UPLOADED**** Five processes, J1, J2, J3, J4 and J5. arrive in the Ready Queue in sequence, one second apart. Each job takes 1 millisecond to load into memory. Each job will take 10, 2, 3, 1, 5 seconds to run respectively.      Questions A. Create a Google Sheet where each column represents a Job and reach row represents a second.. B. Show the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT