top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is network byte order in terms of LTE or networking?

+5 votes
820 views
What is network byte order in terms of LTE or networking?
posted Jan 7, 2014 by Neeraj Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
I wrote this article check if it is useful
http://tech.queryhome.com/27383/endianness-and-byte-order

1 Answer

+2 votes

Different kinds of computers use different conventions for the ordering of bytes within a word. Some computers put the most significant byte within a word first (this is called “big-endian” order), and others put it last (“little-endian” order).

So that machines with different byte order conventions can communicate, the Internet protocols specify a canonical byte order convention for data transmitted over the network. This is known as network byte order i.e. lower bytes is sent first then higher bytes.

Important Routines
htons() Host to Network Short
htonl() Host to Network Long
ntohl() Network to Host Long
ntohs() Network to Host Short

answer Jan 7, 2014 by Deepti Singh
...