Course Content
01 Communication Methods
How is data transmitted across a network?
02 Communication Basics
What are the factors that affect data transmission?
03 Network Topology
How are topologies commonly used in networks today?
04 Types of Networking between hosts
What are peer-to-peer and client-server networks?
05 Wireless Networking (Part 1)
How are wireless networks built?
06 Wireless Networking (Part 2)
How do wireless networks operate?
07 The Internet and how it works (Part 1)
How is the internet structured?
08 The Internet and how it works (Part 2)
How are resources located on the internet?
09 Internet Security (Part 1)
How do internet security techniques operate?
10 Internet Security (Part 2)
How is the internet threatened and how can it be better protected?
Fundamentals of Communication and Networking – COMING SOON
About Lesson

Sockets and Transport Layer Notes

A Socket is one endpoint of a two-way communication link between two programs running on the network.  It is formed by combining the IP address with the port number.  If the IP address is 200.145.20.4 and the current application is running on port 4563.  The the socket would be:

200.145.20.4 : 4563

Sockets sits between the application and transport layer, it is what is used to connect both layers together.

Sockets connect the application and the transport layer together. 

There are two types of sockets, there are two protocols that run in the transport layer and hence two types of scokets.  TCP (transmission control protocol) socket and UDP (user datagram protocol) socket.

Here is a comparison between both and how they are used:

TCP Socket

Reliability: Highly reliable with error checking and correction. It ensure that data is sent and received in the correct order.

Connection: Connection-oriented. Connection is established before data can be sent.

Speed: Slower than UDP due to additional overheads.

Use Case: Accuracy and reliability is important

 

UDP Socket

Reliability: Less reliable, no guarantee of packet delivery, order or error checking.

Connection: Connectionless: data is sent without establishing a connection, leading to faster transmission.

Speed: Faster as there is no additional overheads.

Use Case: Speed and efficiency are more important than accuracy.

 

0% Complete
Scroll to Top