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:

  1. ethernet, wifi, or other such protocols, provides physical (or radio) connection , signaling rules enable machines talk each other @ all.
  2. ip, adds concept of routing , globally available addresses.
  3. 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.
  4. ssl and/or tls (sometimes), adds semi-transparent encryption (once established);
  5. 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

  1. 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.
  2. 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.
  3. use application-layer protocol other end understands in order send request store file (and, of course, file contents).

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -