Question

In: Computer Science

Consider the TCP connection mechanism.    i. What mechanism is used to set up a TCP...

Consider the TCP connection mechanism.
   i. What mechanism is used to set up a TCP connection?
ii. Why is the mechanism needed?
iii. Outline how the mechanism works with a diagram.
iv.CLASSFULL AND CLASSLESS IP

Solutions

Expert Solution

i) Three way handshaking protocol(SYN,SYN-ACK,ACK) is used to establish a TCP(Transmission Control Protocol) Connection.

ii)This mechanism is used to create connection between the client and the server node even before actual data is transmitted.

iii) This three way handshaking works in the following three phases.

Phase 1; The client sends the SYN (Synchronize )packet to server to check for any open ports for the connection establishment.

Phase 2: The server, if any open ports are available sends a SYN-ACK (Synchronization-Acknowledgement) packet to the client.The client receives the SYN-ACK packet.

Phase 3: The client upon receiving the SYN-ACK packet sends ACK packet to the server stating that it received SYN-ACK packet

Now the TCP Socket Connection is established.

iv) The terms classless and classfull IP refers to both IP addressing as well as IP Routing.

Classfull IP:

1) These classfull IP addresses have three parts: Network, Subnet ,Host which contains a 8,16, 24 bit network field based on Class A,B or C Addressing Rules.

Class A: First Octet as Network ID and last three Octets as Host ID.

Class B: First two as Network ID and last two Octets as Host ID.

Class C: First three as Network ID and last Octet as Host ID.

2) Example: Routing Information protocol

3) Subnet mask remains the same for complete network.

4) Limited network can be used and this is the main disadvantage.

5) Imposes Restrictions on the usage of the default route while forwarding IP packets.

CLASSLESS IP:

1)Classless addressing has only two parts. Subnet and host . Here the network and the subnet parts are combined into single part called the subnet or prefix.

2) Subnet mask is of variable length also known as VLSM(Variable length subnet mask) and is not of default type.

3) No boundary limitations on host and network id.

4) Example is BGP (Border gateway protocol)

5) Imposes no Restrictions on the usage of the default route while forwarding IP packets.


Related Solutions

What role does TCP play during HTTP requests? Is TCP a connection-oriented protocol? Explain in details....
What role does TCP play during HTTP requests? Is TCP a connection-oriented protocol? Explain in details. Also, show your knowledge about layers.
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection...
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection requests on a system so that it is unable to respond to legitimate connection requests. Consider a server system with a table for 256 connection requests. This system will retry sending the SYN-ACK packet five times when it fails to receive an ACK packet in response, at 30 second intervals, before purging the request from its table. Assume that no additional countermeasures are used...
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection...
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection requests on a system so that it is unable to respond to legitimate connection requests. Consider a server system with a table for 256 connection requests. This system will retry sending the SYN-ACK packet five times when it fails to receive an ACK packet in response, at 30 second intervals, before purging the request from its table. Assume that no additional countermeasures are used...
WIRESHARK - What is the throughput (bytes transferred per unit time) for the TCP connection? Explain...
WIRESHARK - What is the throughput (bytes transferred per unit time) for the TCP connection? Explain how you calculated this value. This question is based on the trace file tcp-ethereal-trace-1 in in http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip Thanks in advance!
What method is used to set up a file for reading and/or writing?
What method is used to set up a file for reading and/or writing?
Write a Java program that establishes a TCP connection with a mail server through the socket...
Write a Java program that establishes a TCP connection with a mail server through the socket interface, and sends an email message. Your program sends SMTP commands to local mail server, receives and processes SMTP commands from local mail server. It sends email message to one recipient at a time. The email message contains a typical message header and a message body. Here is a skeleton of the code you'll need to write: import java.io.*; import java.net.*; public class EmailSender...
Host A and B are communicating over a TCP connection. The initial sequence number at Host...
Host A and B are communicating over a TCP connection. The initial sequence number at Host A is 2171. Host A opens the connection, sends three segments, the second of which carries 400 bytes of data, and closes the connection. In the segment sent by Host A, source port number is 303, and the destination port number is 80. ) What is the value of the sequence number of the SYN segment? (1.5 marks) ) What is the value of...
​1. __________ is sent within TCP, which provides basic connection-oriented reliability.
Fill the blanks.1. __________ is sent within TCP, which provides basic connection-oriented reliability.2. __________ offers more capability than POP because it enables the use of multiple folders for managing e-mail3. The best way to block __________ is to turn off the relay capability, if it is not needed in an SMTP server4. ___________ is a security alternative provided for e-mail messages and attachments.
Host A and B are communicating over a TCP connection. The initial sequence number at Host...
Host A and B are communicating over a TCP connection. The initial sequence number at Host A is 2171. Host A opens the connection, sends three segments, the second of which carries 400 bytes of data, and closes the connection. In the segment sent by Host A, source port number is 303, and the destination port number is 80. ) What is the value of the sequence number of the SYN segment? (1.5 marks) ) What is the value of...
Why Transmission Control Protocol (TCP) is called as Connection Oriented? Briefly explain
Why Transmission Control Protocol (TCP) is called as Connection Oriented? Briefly explain
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT