METHOD FOR CONNECTING A FIRST HOST AND A SECOND HOST WITHIN AT LEAST ONE COMMUNICATION NETWORK THROUGH A RELAY MODULE, CORRESPONDING RELAY MODULE
The invention concerns a relay module comprising a capturing module for intercepting a first connection establishment request sent by a first host; a communication module configured for sending a second connection establishment request to establish an initial auxiliary connection between the relay module and a second host and for receiving, from said second host, a first acknowledgment response and a context discovery unit configured for activating: a forward mode to handle the traffic carried by the established main connection, in case the first connection establishment request and the first acknowledgment response present the same multipath property; a relay mode to handle the traffic carried by: an additional auxiliary connection established between the first host and the relay module; and the initial auxiliary connection established between the relay module and the second host, in case the first connection establishment request and the first acknowledgment response present different multipath properties.
1 . A method for connecting a first host and a second host within at least one communication network through a relay module,
wherein the method comprises, at the relay module:
capturing a first connection establishment request sent by the first host to establish a main connection with the second host;
sending, to the second host, a second connection establishment request to establish an initial auxiliary connection between the relay module and the second host;
receiving, from the second host, a first acknowledgment response;
in case the first connection establishment request and the first acknowledgment response present a same multipath property, activating a forward mode to handle traffic carried by the established direct main connection and:
dropping the first acknowledgment response received from the second host to abandon the initial auxiliary connection establishment;
releasing the first connection establishment request to the second host;
forwarding, to the first host, a second acknowledgment response sent by the second host in response to the previously sent first connection establishment request, for the establishment of said direct main connection;
in case the first connection establishment request and the first acknowledgment response present different multipath properties, activating a relay mode to handle the traffic carried by:
an additional auxiliary connection established between the first host and the relay module; and
the initial auxiliary connection established between the relay module and the second host.
2 . Method according to claim 1 , further preliminarily comprising, upon receipt of the first connection establishment request, creating a first interface within the relay module to handle the initial auxiliary connection establishment.
3 . Method according to claim 1 , wherein said second connection establishment requests the establishment of an initial auxiliary multipath connection.
4 . Method according to claim 1 , wherein the first connection establishment request and the first acknowledgment response are stored in a context discovery unit of the relay module.
5 . Method according to claim 4 , further comprising, when the relay mode has been activated, at the relay module:
processing the first connection establishment request to establish said additional auxiliary connection between the first host and the relay module;
processing the first acknowledgment response to establish the initial auxiliary connection between the relay module and the second host;
creating a link between the initial and additional auxiliary connections.
6 . Method according to claim 5 , wherein the link between the initial and additional auxiliary connections uses a correspondence table.
7 . Method according to claim 5 , wherein the processing of the first connection establishment request further comprises:
creating a second interface within the relay module to handle the additional auxiliary connection with the first host;
releasing said stored first connection establishment request toward the second interface;
accepting the main connection initially requested by the first host to establish said additional auxiliary connection.
8 . Method according to claim 5 , wherein the processing of the first acknowledgment response further comprises:
releasing said stored first acknowledgment response toward the first interface;
accepting the initial auxiliary connection requested by the relay module to establish said initial auxiliary connection.
9 . Relay module for connecting a first host and a second host, arranged within at least one communication network,
wherein it comprises:
a capturing module configured for intercepting a first connection establishment request sent by the first host to establish a main connection with the second host;
a communication module configured for:
sending, to the second host, a second connection establishment request to establish an initial auxiliary connection between the relay module and the second host;
receiving, from the second host, a first acknowledgment response;
a context discovery unit configured for activating:
a forward mode to handle traffic carried by the established direct main connection, in case the first connection establishment request and the first acknowledgment response present a same multipath property;
a relay mode to handle the traffic carried by:
an additional auxiliary connection established between the first host and the relay module; and
the initial auxiliary connection established between the relay module and the second host,
in case the first connection establishment request and the first acknowledgment response present different multipath properties;
and wherein the capturing module is further configured for:
dropping the first acknowledgment response received from the second host to abandon the initial auxiliary connection establishment;
releasing the first connection establishment request to the second host;
forwarding, to the first host, a second acknowledgment response sent by the second host in response to the previously sent first connection establishment request, for the establishment of said direct main connection.
10 . Relay module according to claim 9 , wherein the context discovery unit is further configured for storing the first connection establishment request and the first acknowledgment response and for determining their multipath properties.
11 . Relay module according to claim 9 , further comprises a traffic identification unit adapted to differentiate the traffic processed in the forward mode and the traffic processed in the relay mode.
12 . Relay module according to claim 9 , further comprises a relay application for relaying traffic carried by the initial and additional auxiliary connections between the first and second hosts, in the relay mode.
13 . Relay module for connecting a first host and a second host, arranged within at least one communication network,
wherein it comprises at least one processor configured to:
intercept a first connection establishment request sent by the first host to establish a main connection with the second host;
send, to the second host, a second connection establishment request to establish an initial auxiliary connection between the relay module and the second host;
receive, from the second host, a first acknowledgment response;
activate:
a forward mode to handle the traffic carried by the established main connection, in case the first connection establishment request and the first acknowledgment response present the same multipath property;
a relay mode to handle the traffic carried by:
an additional auxiliary connection established between the first host and the relay module; and
the initial auxiliary connection established between the relay module and the second host,
in case the first connection establishment request and the first acknowledgment response present different multipath properties;
drop the first acknowledgment response received from the second host to abandon the initial auxiliary connection establishment;
release the first connection establishment request to the second host;
forward, to the first host, a second acknowledgment response sent by the second host in response to the previously sent first connection establishment request, to establish the direct main connection.
14 . Computer program product downloadable from a communication network and/or recorded on a medium readable by computer and/or executable by a processor, comprising program code instructions for implementing the method according to claim 1 .
15 . Non-transitory computer-readable medium comprising a computer program product recorded thereon and capable of being run by a processor, including program code instructions for implementing the method according to claim 1 .