| 1 |
This is a little sample configuration with two terminals connected to a |
| 2 |
switch. All of the network elements are on the same host and atmtcp takes |
| 3 |
care of the the real kernel with multiple terminals on the same machine. |
| 4 |
At least not yet.) |
| 5 |
|
| 6 |
Note that no data transfer or such is possible yet. This is only |
| 7 |
signaling. |
| 8 |
|
| 9 |
|
| 10 |
This is the example setup: |
| 11 |
|
| 12 |
+-------+ +------+ +-------+ |
| 13 |
| isp | |switch| | isp | |
| 14 |
|atmsigd|-----| |-----|atmsigd| |
| 15 |
+-------+ +------+ +-------+ |
| 16 |
|
| 17 |
|
| 18 |
Preparation (only once): |
| 19 |
|
| 20 |
# atmtcp virtual 1 listen-bg 8412 |
| 21 |
# atmtcp virtual 2 connect localhost 8412 bg |
| 22 |
# atmtcp virtual 3 listen-bg 8434 |
| 23 |
# atmtcp virtual 4 connect localhost 8434 bg |
| 24 |
# atmaddr -a 1 +123 |
| 25 |
|
| 26 |
Start the "network" (no privileges required): |
| 27 |
|
| 28 |
% atmsigd -b 1.0.105 /tmp/1 |
| 29 |
% atmsigd -b -m switch 2.0.105 /tmp/2 |
| 30 |
% atmsigd -b -m switch 3.0.105 /tmp/3 |
| 31 |
% atmsigd -b 4.0.105 /tmp/4 |
| 32 |
% ./sw_debug -d |
| 33 |
% isp /tmp/4 <4.isp |
| 34 |
% isp /tmp/1 <1.isp |
| 35 |
|
| 36 |
|
| 37 |
In more detail: |
| 38 |
|
| 39 |
|
| 40 |
+------------------------------------------+ |
| 41 |
| ./sw_debug | |
| 42 |
+------------------------------------------+ |
| 43 |
| | |
| 44 |
/tmp/2 /tmp/3 |
| 45 |
| | |
| 46 |
+----------------------------------+ +----------------------------------+ |
| 47 |
| atmsigd -m switch 2.0.105 /tmp/2 | | atmsigd -m switch 3.0.105 /tmp/3 | |
| 48 |
+----------------------------------+ +----------------------------------+ |
| 49 |
| | |
| 50 |
itf 2 | |
| 51 |
| | |
| 52 |
+--------------------------------------------+ | |
| 53 |
| atmtcp virtual 2 connect localhost 8412 bg | | |
| 54 |
+--------------------------------------------+ | |
| 55 |
| atmtcp virtual 1 listen-bg 8412 | | |
| 56 |
+--------------------------------------------+ itf 3 |
| 57 |
| | |
| 58 |
itf 1 +--------------------------------------------+ |
| 59 |
| | atmtcp virtual 3 listen-bg 8434 | |
| 60 |
| +--------------------------------------------+ |
| 61 |
| | atmtcp virtual 4 connect localhost 8434 bg | |
| 62 |
| +--------------------------------------------+ |
| 63 |
| | |
| 64 |
| itf 4 |
| 65 |
| | |
| 66 |
+------------------------+ +------------------------+ |
| 67 |
| atmsigd 1.0.105 /tmp/1 | | atmsigd 4.0.105 /tmp/4 | |
| 68 |
+------------------------+ +------------------------+ |
| 69 |
| | |
| 70 |
/tmp/1 /tmp/4 |
| 71 |
| | |
| 72 |
+-------------------+ +-------------------+ |
| 73 |
| isp /tmp/1 <1.isp | | isp /tmp/4 <4.isp | |
| 74 |
+-------------------+ +-------------------+ |
| 75 |
|
| 76 |
|
| 77 |
You can use the script "demo" to run this setup. You need to build the switch |
| 78 |
library and the debug switch first: |
| 79 |
cd ..; make |
| 80 |
cd debug; make |
| 81 |
|
| 82 |
|
| 83 |
--- switch.conf -------------------------------------------------------------- |
| 84 |
|
| 85 |
socket /tmp/2 { |
| 86 |
itf 2 2.0.5 |
| 87 |
route +1 |
| 88 |
} |
| 89 |
socket /tmp/3 { |
| 90 |
itf 3 2.0.5 |
| 91 |
default |
| 92 |
} |
| 93 |
|
| 94 |
--- 1.isp -------------------------------------------------------------------- |
| 95 |
|
| 96 |
send connect vcc=1 svc=+234 local=+123 qos=ubr,aal5 |
| 97 |
receive okay vcc=1 |
| 98 |
send close vcc=1 |
| 99 |
receive close vcc=1 |
| 100 |
|
| 101 |
--- 4.isp -------------------------------------------------------------------- |
| 102 |
|
| 103 |
send listen vcc=1 svc=+234 qos=ubr,aal5 |
| 104 |
receive okay vcc=1 |
| 105 |
receive indicate listen_vcc=1 |
| 106 |
send accept vcc=2 listen_vcc=1 |
| 107 |
receive okay vcc=2 |
| 108 |
receive close vcc=2 |
| 109 |
send close vcc=2 |