given HTTP payload, convert to TCP→IP → raspberry pi

given: HTTP payload

useful stuf

https://www.ietf.org/rfc/rfc793.txt#:~:text=The TCP specification describes an,front end protocol is implemented.&text=The TCP is intended to,service in a multinetwork environment.

https://datatracker.ietf.org/doc/html/rfc4291

https://datatracker.ietf.org/doc/html/rfc2460

sockets:

    To allow for many processes within a single Host to use TCP
    communication facilities simultaneously, the TCP provides a set of
    addresses or ports within each host.  Concatenated with the network
    and host addresses from the internet communication layer, this forms
    a socket.  A pair of sockets uniquely identifies each connection.
    That is, a socket may be simultaneously used in multiple
    connections.

tcp interface:

open, close

send, receive

status

implement TCP

how to go from TCP → IP

implement IP

implement morriscode driver that sends IP packets to raspberry pi

milestone 1

establish TCP handshake /w mock server on same machine

handshake:

send dummy payload

sequence #s and ack #s

client → server

SYN packet

sequence # of 0. acknowledgement # of 0

server → client:

SYNACK response packet

sequence # of 0. acknowledgement # of 1

client → server:

ACK packet

seq # of 1, ack # of 1

packets

IPV6: 320bits

payload

need to grok sockets

→ hack around on sockets a bit, see how they work… break down data into packets

→ implement my own socket interface… should break stuff down via tcp into ip packets

milestone 2:

TCP handshake across raspberry pi

milestone 3:

mod payload to be cat

milestone 4+ http server →

—http to tcp:

one-to-one/one-to-many?

where do sockets come in?

next time!!!

unknown

  • need speaker + mic for 2 PI to send/receive data
  • how do we use morse code from 2 diff devices at same time without interference?

audio waves vs radio waves

next time on livestream

what HW to buy to build wifi adaptor

  • raspberry pi
  • payload: >1000 1’s or 0’s
  • short range: 10 meters

output: what parts to order. spec of system. expected bandwidth / latency / reliability for tcp packets