Communication ProtocolsTCP
Communication ProtocolsTCP
protocol suite. It lies between the Application and Network Layers which are
used in providing reliable delivery services. It is a connection-oriented protocol
for communications that helps in the exchange of messages between the
different devices over a network.
TCP/IP Layer
Working of TCP
To make sure that each message reaches its target location intact, the TCP/IP
model breaks down the data into small bundles and afterward reassembles the
bundles into the original message on the opposite end. Sending the information
in little bundles of information makes it simpler to maintain efficiency as
opposed to sending everything in one go.
After a particular message is broken down into bundles, these bundles may
travel along multiple routes if one route is jammed but the destination remains
the same.
We can see that the message is being broken down, then reassembled from a different order at the destination
For example, When a user requests a web page on the internet, somewhere in
the world, the server processes that request and sends back an HTML Page to
that user. The server makes use of a protocol called the HTTP Protocol. The
HTTP then requests the TCP layer to set the required connection and send the
HTML file.
Now, the TCP breaks the data into small packets and forwards it towards the
Internet Protocol (IP) layer. The packets are then sent to the destination through
different routes.
The TCP layer in the user’s system waits for the transmission to get finished
and acknowledges once all packets have been received.
Features of TCP/IP
Sources: wikipedia.org
1-Wire
I2C
Sources: wikipedia.org
All devices in the I2C bus have 7bit addresses. To address devices, and
receive conformations, 2 bits are used. Therefore, all messages in I2C
are 9bits MSB. A typical transaction is:
The I2C system has a complex set of registers for capturing the global
state of the system and coordinate how different devices can interact.
The register addresses, and their data, is vendor and device specific.
SPI
The bit frame is configurable, usually 8bits, but also 12Bit or 16Bits are
used. Data is sent with LSB.
In the base state, SCS is high (using pull-up resistors), SCL, SDTS and
SDTC are low. When the server initiates communication, it pulls SCS
to low using a MOSFET gate, and sends data over SCL. Then, the
server uses SDTS and the selected client uses SDTC to communicate,
full-duplex, with each other.
SPI requires a dedicated SDTC wire for each connected client, which
has a strong impact on integrated circuit design. Therefore, daisy-
chaining can be used to design a circuit with only on SDTC wire, and
additional changes to the data transmission protocol. Interestingly,
there is no fixed standard of the SPI protocol, but several vendor-
specific implementations that follow the same guidelines.
In the base state, both TXD and RXD lines are high. The sender
switches TXD to high and begins transmitting data immediately, while
the receiver uses RXD to acknowledge the data. Sender and receiver
also use these lines to synchronize their clock
Transmitted data is 7–11 bits LSB, including start and stop bits.
Comparison