Original Question: Significance of port number in communication from Border Router to Node? by NagarjunaG
What is significance of port number in communication from Border Router to Node in 6LoWPAN?
How many port numbers are used? Can I define the port numbers on my own?
A “Port” is the software construct serving as communication endpoint in 6LoWPAN. The purpose of ports is to uniquely identify different applications running on a single 6LoWPAN node.
Every UDP based application running on a 6LoWPAN node has unique port number and is identified using these port numbers. The application must establish the UDP connection to specific ports on the remote node in order to initiate UDP message transmission.
Port numbers are 2 bytes in length and can have any value from 0 to 65535 (depending on the memory support). In current 6LoWPAN implementation, a maximum of 4 UDP connections can be established.
Let us take an example of a node communicating with the Border Router (BR).
The Border Router (BR) will be running as a UDP server and the Node will connect to this server as a client. The Border Router creates a port for its application and will be listening on that port for any data. The node will have to connect its application to the same port the BR has just created. Doing so creates a logical link between the BR and the node. From now on, all the UDP communication between BR and node happens on this logical port.
The demo application in AD6LoWPAN uses port 1035 for all the sensor data.
Question: RE: Significance of port number in communication from Border Router to Node? by ezadminThis question has been closed by the EZ team and is assumed answered.