The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
counting the packets damn_bkb IP Networking 2 11-17-2006 04:55 AM
Lost Data Lost Admin murphsr Filesystems, Disks and Memory 3 09-07-2005 11:35 AM
Redirecting outgoing packets Seraph IP Networking 1 08-08-2003 06:40 PM
NAT Packets/Port Openine MartinD IP Networking 3 08-21-2002 01:04 AM
sending packets Avatar0fEvil UNIX for Dummies Questions & Answers 8 03-26-2002 01:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-21-2003
Registered User
 

Join Date: Jan 2002
Location: India
Posts: 111
Packets Getting Lost

I am working on a project, which has the following type of hardware setup.

A special hardware device is receiving data from an external network interface. So we can have multiple such a hardware devices. Now these hardware devices will route the captured incoming data through the external network to a software running on a single PC through LAN.

If we run a single setup of the software in the LAN on a single PC, our software works with no issue.

The problem comes when we deploy two Ethernet card within the PC where the software is running. With the aid of two Ethernet interface we simulate two setup of the same software on the same PC within two different environments. Each software maintains a different setup of the network card it has to interface with.

The final setup in this case looks something like this. The two-network cards are separately connected to two different HUB port from the PC where two setup of software are running. The hardware devices, which capture incomming data from the external network, are also connected to the same HUB to different ports. Each of these hardware devices have been configured to talk to respective network cards within the LAN.

The problem is that each software environment states that some data packet is reported to be lost and if we bring down one of the software environment the error stops occurring.

Can anyone guide me that how can I trace the incoming data via the network from the LAN? Is it really a network problem? Why is that the problem stops occurring when we only run one such a setup of the software? What should be my approach to solve such an issue?

We are running the software on an AIX Ver 5 box.

Thanks in advance.
__________________
Regards,
Satya Prakash Prasad

Last edited by S.P.Prasad; 11-21-2003 at 08:43 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 11-21-2003
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
What does your routing table look like?

# netstat -nr
Reply With Quote
  #3  
Old 11-21-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
So you are running AIX on a PC? I didn't know you could that. What speed is the network? And what duplex? Are there any collisions? Looking at the error statistics is a good place to start. I would put a sniffer on the network to see id the network is overloaded.

Are you even using tcp/ip? This sounds more like just ethernet. Couldn't you just cable each device to a nic card? What purpose is served by dumping all of the traffic on one lan?
Reply With Quote
  #4  
Old 11-23-2003
Registered User
 

Join Date: Jan 2002
Location: India
Posts: 111
"So you are running AIX on a PC? I didn't know you could that. "

The software is running on AIX Ver 5, IBM Server.

"What speed is the network?"

The hardware device is operating at a speed of 10Mbps, LAN at 100 Mbps and the Host also at 100Mbps. Please remember that the host is reporting lost of data blocks.

"And what duplex?"

Data is transmission in two directions simultaneously (Full Duplex)

"Are there any collisions?"

Each hardware device on the LAN has one Ethernet CSMA/CD adapter per cable and one individual Ethernet address per adapter.

"Looking at the error statistics is a good place to start. I would put a sniffer on the network to see id the network is overloaded."

What type of statistics? How do I write / put a sniffer on the network ? Please provide me necessary hints.

"Are you even using tcp/ip?"

We are using a proprietary based Data Link Layer protocol, a variant of IEEE 802.2. The protocol frame structure embeds into the MAC (Medium Access Control) layer frame for the Ethernet LAN communications.

"This sounds more like just ethernet. Couldn't you just cable each device to a nic card?"

No it is not possible. Each hardware device is responsible for interfacing with different protocols. For example there is a hardware device specially to deal with X.25, another could be for TCP/IP, similarly for Satellite etc. Hence there is multiple such a hardware devices based upon individual protocol for interaction with the external network.

"What purpose is served by dumping all of the traffic on one lan?"

The Host engine is running on AIX Ver 5 operating system on an IBM server and interfaces with the LAN. Each hardware devices captures incoming data from respective networks and dumps it into LAN. The Host timely monitors the LAN to trace any application specific message for itself. It captures, process and dumps it back into the LAN destined to the respective hardware device to the external network.

To add to the list of information we have taken care of common shared memory access to each individual host processes.
__________________
Regards,
Satya Prakash Prasad

Last edited by S.P.Prasad; 11-23-2003 at 11:58 PM.
Reply With Quote
  #5  
Old 11-24-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
The way you display network statistics varies from OS to OS. On HP-UX, I use "lanadmin" in interactive mode and use the "display" command. On recent versions of SunOS, I like the kstat command. For instance something like "kstat hme::hme0". I'd be a little surprised if either of these works on AIX. But I don't work on AIX so who knows.

It's been a while since I have personally used a sniffer, we have network people who do that. And anyway, each sniffer has its own instructions. But I can at least make a few general remarks. These days, a sniffer is a very high powered laptop...fast cpu, lot of memory, and all possible network connectors. No need for fast or large disks. You connect to the network and it records the traffic. You typically program it to look at traffic between specific boxes and/or specific protocols. Then it can display every packet sent by either box. And it can format the packets and highlight packets that look like an error occurred. Go to google and look for "network sniffer". A more formal name is "protocol analyser", but no one calls them that anymore.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0