1827218 Members
2108 Online
109716 Solutions
New Discussion

X.25 over IP

 
Alexander Kefeli
Occasional Contributor

X.25 over IP

I need to integrate my server (HP9000 K360) to a X.25 network. But unfortunately there are no X.25 card in my server. So I want to try using X.25 over IP. I have software J2793B (High Performance X.25 Link software for HP 9000).

Does J2793B support X.25 over IP ?
I've found nothing about it in documentation (HP X.25/9000 User???s Guide).
4 REPLIES 4
Ron Kinner
Honored Contributor

Re: X.25 over IP

Don't think it would work for you even if they did. Say it works. You still have only an IP connection whose output would need to be routed to another device which had both an IP connection and an X.25 connection. The new device would need to strip off the IP headers and transparently pass the packets onto the X.25 network.

Easier to get a router and let it connect to the x.25 network then talk to it with IP or bite the bullet and buy an X.25 card.

Ron
Paula J Frazer-Campbell
Honored Contributor

Re: X.25 over IP

Hi

IP over x25 = Yes but not the other way around.

Got to buy/acquire card .


Paula
If you can spell SysAdmin then you is one - anon
Tim Sanko
Trusted Contributor

Re: X.25 over IP

Actually, I have done this before, but not on HPUX...

First you write a C socket program for the server that handles any size data you want less than MTU which is usually 1500 , and then reassemble on the server side.

I have sent some pseudo code along.

The flavor is ancient, and this is stream of consciousness used to use close, now it is shutdown. the read is now a recv. the write is now a send. so I hope if I give you just a start is it enough. I have tried to use more current terminology. I think in C so here goes.

It is a loop of the basic server. Let's make it a stream socket program (for ease)

#include
#include

int k,s,s1;


sock(s,AF_INET,STREAM_SOCKET);

while {
listen(s,PORT)
accept(k)
if (k!=null)
handled_socket(k);
if (signal()=SIGINT){
shutdown(s);
shutdown(k);
}
}

shutdown(s);
subroutine(int handled_sock)

while(x=1){
recv(handled_sock)
send(handled_sock,"up to MTU characters")
"do your stuff here"
}
shutdown(handled_socket)

You write a client C Program

int got_sock;
socket(got_sock,AF_INET,STREAM_SOCK);
get_host_by_name(*hostent struct,host);
got_sock=connect(hostent,port);
(This is very old going back to DARPA net.)

if (retval=(send(s,"string))!=0)
{
error routine();
close sockets.
exit(1);
}
{error routine)
{
do your stuff here.
}


Jim Keeble
Trusted Contributor

Re: X.25 over IP

J2793B does not support X.25 over tcp/ip.

I have assisted customers with connecting their HP-PB PSI card to a cisco router that then encapsulates the X.25 traffic over IP, but the HP has no knowledge of the IP side in that case.

The latest X.25 versions do have support for X.25 over LLC (enables X.25 over ethernet, but this does NOT use IP protocol). It is unlikely that your existing network also supports this, that would be your only hope short of buying a PSI card.