The physical connection of establish session.

asked 2015-11-23 19:11:35 -0700

canglang1990 gravatar image

updated 2015-11-23 22:04:08 -0700

ry.jones gravatar image
Linux Foundation Staff

I want to know if one router connect two service ,chat and light,and another router have two client,chat and light,need connect those two service. The router-bus need establish one connect or two?

Only one bus-bus physical connect: image description

Twice physical connect: image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-11-25 01:44:48 -0700

praveenb gravatar image

The application developer needn't worry about the underlying physical connection. AllJoyn routing node takes care of the underlying physical connection establishment when applications attempt to establish sessions via JoinSession API.

Having said that, the answer to your question is dependent on the transport being used.

If TCP transport is used, then a separate TCP connection is ESTABLISHED for every new session. If your case, you will see two TCP connections (this can be verified by running netstat).

UDP Transport by its nature is connectionless. Both routing nodes use one UDP socket each and multiplex all messages (belonging to different sessions) over the one UDP socket. One UDP socket is what is used, no matter the number of sessions.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-11-23 19:11:35 -0700

Seen: 141 times

Last updated: Nov 25 '15