Advanced ATM Integration API

From ImageStream Router Documentation

(Difference between revisions)
Jump to: navigation, search
(Userspace Integration)
(Userspace Integration)
Line 2: Line 2:
Inetics uses standard linux netdevices for each ATM PVC. This means that the Linux socket API (PF_PACKET socket) can be used to send and receive raw AAL5 data on a given PVC.
Inetics uses standard linux netdevices for each ATM PVC. This means that the Linux socket API (PF_PACKET socket) can be used to send and receive raw AAL5 data on a given PVC.
-
Step 1 is to configure the ATM PVCs in wan.conf and load the drivers using the "up" script.
+
Configure the ATM PVCs in wan.conf and load Inetics using the "up" script.
Sample wan.conf:
Sample wan.conf:
Line 14: Line 14:
   pvc 0/32
   pvc 0/32
  !
  !
 +
 +
Next load a program which binds a raw socket to the network interface Serial0.1 and sends/receives data.
 +
 +
Source code for [[sample_source/rwtest_sock.c|rwtest_sock.c]]
 +
 +
root@dev1:~# ./rwtest_sock Serial0.1 /tmp/Serial0.1.log
 +
 +
Let it go a few seconds and hit Control-C to stop it. If you want to see link utilization, run
 +
"rwtest_sock Serial0.1 &" without the log in the background and then run the "stats" program.

Revision as of 16:03, 19 May 2009

Userspace Integration

Inetics uses standard linux netdevices for each ATM PVC. This means that the Linux socket API (PF_PACKET socket) can be used to send and receive raw AAL5 data on a given PVC.

Configure the ATM PVCs in wan.conf and load Inetics using the "up" script.

Sample wan.conf:

interface Serial0
  encapsulation atm
  service-module oc3 clock source internal
!
interface Serial0.1
  encapsulation atm
  pvc 0/32
!

Next load a program which binds a raw socket to the network interface Serial0.1 and sends/receives data.

Source code for rwtest_sock.c

root@dev1:~# ./rwtest_sock Serial0.1 /tmp/Serial0.1.log

Let it go a few seconds and hit Control-C to stop it. If you want to see link utilization, run "rwtest_sock Serial0.1 &" without the log in the background and then run the "stats" program.

Personal tools
Router software releases