ip - How to transmit a file larger than 65,536 bytes using IPv4 -
i wanted know if there way send larger files 65,536 bytes using ipv4
you shouldn't using raw ip.
there's reason implementation of tcp/ip typically called "stack". communication typically done layering protocols on top of each other. each layer takes layer below it, , either abstracts away aspect of lower-level protocol or adds useful functionality.
a web server, example, ends using several layers of protocols:
- ethernet, wifi, or other such protocols, provides physical (or radio) connection , signaling rules enable machines talk each other @ all.
- ip, adds concept of routing , globally available addresses.
- tcp,
- adds concept of "ports", allows several apps use same ip address @ same time without stepping on each other's toes;
- abstracts discrete packets of ip full-duplex, arbitrary-length stream of bytes; and
- adds detection , correction of errors , lost/duplicate data.
- ssl and/or tls (sometimes), adds semi-transparent encryption (once established);
- http, adds structure stream organizing contents messages (requests , responses) may (and do) include metadata how body of message should interpreted.
at api level, start transport-layer protocol tcp, udp, or sctp. it's rare os allow communicate directly via ip, security reasons.
so in order transfer file, you'd need to
- establish tcp "connection" other machine, typically running service on known port. (for http, that's typically 80.) in removes limit ip imposes on data size.
- set ssl or tls, if other end requires it. shouldn't bother them yet, though. it's optional, , non-trivial, addition, , servers provide way communicate without it.
- use application-layer protocol other end understands in order send request store file (and, of course, file contents).
Comments
Post a Comment