iprohc operation

Asked by matthew on 2013-05-01

Sorry again for my ignorance, but I'm trying to understand the iprohc basic operation. I'm not sure exactly how this works verse how say the original non production udp tunnel worked.

I have a server running on one machine, and a client running on another machine. The server and the client appear to be connected, the log files indicate that they have exchanged certificates properly. It is at this point that I do not fully understand the system.

ifconfig on both machines show me that the server has created an interface "tun_ipip" and that the client has started an interface of my naming. The server interface has the same ipaddress associated with it as eth0. The client interface has a new ipaddress associated with it.

The route command for both machines shows that all traffic on the subnet is to be routed to both eth0 and the new interface.

So how do I send compressed traffic at this point. Will it be all traffic between the two machines? Is it only traffic that is sent to this new ipaddress on the client? Or, do I need to create my own routes that force traffic to these new interfaces in order to use the system.

Data:
client ifconfig and
server ifconfig:

rohcclient Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:XXX.XXX.XXX.72 P-t-P:XXX.XXX.XXX.72 Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

 tun_ipipLink encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:XXX.XXX.XXX.62 P-t-P:XXX.XXX.XXX.62 Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Question information

Language:
English Edit question
Status:
Solved
For:
rohc Edit question
Assignee:
No assignee Edit question
Solved by:
matthew
Solved:
2013-05-08
Last query:
2013-05-08
Last reply:
2013-05-08

Matthew,

On server, you can contact client with XXX.XXX.XXX.72, eg:
 $ ping XXX.XXX.XXX.72

On client, you can contact server with XXX.XXX.XXX.62, eg:
 $ ping XXX.XXX.XXX.62

On client, you may use the XXX.XXX.XXX.62 address as your default gateway if you want all the outgoing traffic to go through the IP/ROHC tunnel. Example:
 # ip route add default via XXX.XXX.XXX.62

Regards,
Didier

Matthew,

I improved the installation [1] and start-up [2] procedures. Tell me if it clarifies things.

Regards,
Didier

[1] http://rohc-lib.org/wiki/doku.php?id=iprohc-install
[2] http://rohc-lib.org/wiki/doku.php?id=iprohc-run

matthew (xcalibre0) said : #3

Your wiki instructions are a lot prettier than mine were!

Thanks

Matthew,

> Your wiki instructions are a lot prettier than mine were!
>
> Thanks

You're welcome!

Regards,
Didier