ppp

Checking network status and controlling PPP in a program

So I'm running PPP under linux with a cellular modem. The program I'm writing needs to know if the link is active before sending any data. What are my options to check if the link is available if it routes to a server I control (it doesn't go to the internet as I said earlier) Also, what is the best way to restart it - I'd like to ...

Pseudocode Programming Process vs. Test Driven Development

For those who haven't read Code Complete 2, the Pseudocode Programming Process is basically a way to design a routine by describing it in plain English first, then gradually revise it to more detailed pseudocode, and finally to code. The main benefit of this is to help you stay at the right level of abstraction by building systems top-do...

PPP demand dial with modem bank in linux

I have a linux box with a bank of modems and need to create demand-dial (outbound) PPP connections to a very large set of remote machines. Since I have far more remotes than local modems, I'd like to launch one or more instances of pppd in demand mode, but not allocate a particular modem until a connection is requested. When the connec...

Scalable PPP protocol. Help Needed regarding State Machine

Hi, I am designing scalable PPP [mean it can be extended to over Ethernet, over HDLC, over ATM etc.]. I was stuck in determining whether State Machine is hadle by PPP stack [means i have design Base class for PPPStack in which FSM, encode, decode etc is there] or PPPoE [which is derived from my PPP Base Class PPPStack]. I am designing...

Connecting to a Linux-based server over a modem

I have a black-box device with a modem attached (which I can send commands to), and would like to be able to connect to send data to a server from it. What connectivity options do I have, is PPP the protocol I need to use or is there a better option? ...

what is the exact difference between Closed and Stopped State in PPP State machine

I wanted to know what is the exact difference between Closed and Stopped State in PPP State machine. It would be great full if someone explain in detail. I am designing ppp stack using C++. Thanks a lot in advance. ...

Free C/C++ and Java implementations of PPP?

Are there free C/C++ and Java implementations of the point-to-point protocol (PPP) for use over a serial line? The C/C++ implementation will go into embedded hardware so portability is a concern. I'm not looking for a full TCP/IP stack, just something to provide a connection-oriented base to build on top of. ...

How does PPP or Ethernet recover from errors?

Looking at the data-link level standards, such as PPP general frame format or Ethernet, it's not clear what happens if the checksum is invalid. How does the protocol know where the next frame begins? Does it just scan for the next occurrence of "flag" (in the case of PPP)? If so, what happens if the packet payload just so happens to con...

How to get pppd inet address from shell command

Hi guys, I'm not sure whether to post it here or at ServerFault. Anyway, I'm trying to work around company's firewall to connect to some media sharing site using my phone's 3g network. I've come up with a simple ip route command which take pppd's inet address as it's parameter. But, I want to make it a little bit more automated by readi...

Overhead with PPP and Ethernet

What is the overhead for PPP and Ethernet sending 5000 bytes? Frame size for Point-to-Point Protocol: 8 bytes MTU: 500 bytes Frame size for Ethernet: 18 bytes MTU: 1500 bytes Both sending 5000 bytes.. I know this is just a calculation, but I am not sure how to do it. I can't find it anywhere. I would think that since a PPP frame take...

Get server IP of PPP VPN in Windows using VBScript or CMD

Hi all, Is it possible to use VBScript or commandline to grab the server IP of a PPP VPN under Windows? Note this is not VPN dialup server IP. ...

How to write windows script to dial a connection

Is it possible to dial-up and hang-up a connection? The connection is a PPP 3G connection in my Windows 7 system. ...

VPN with MySQL database for authentication.

I want to set up a VPN server (via IPSec or PPP etc) but I want the authentication to be dealt by MySQL or other RDBMS... does anyone know an opensource project or an easyway to achieve this...? I'm flexible on linux distro, rdbms or vpn protocol... I urgently need a VPN access point that can be managed easily by a webapp. ...

PPP connection with RAS dialer in C++

I have a windows mobile application that is using Windows CE 5.0. I have been informed by the people supplying the hardware for the unit that I need to create a socket, which I have done successfully, and then dial out to the internet with a PPP connection with a RAS dialer connection. Our old code uses an APN to dial out so I need to cr...

Why GPRS modem provides embedded TCP/IP stack

My colleague and I are mining the GPRS MODEM market for a module suitable for use with embedded Linux. During the market scan, we see that several vendors highlight that their MODEMs include an embedded TCP/IP stack. This makes me wonder: when we are using embedded Linux which already contains a TCP/IP stack and connects using PPP, wil...

Restart PPP connection from C#

Hi, I have to restart a PPP connection on Windows 2k and XP from a C# program. How can I do that ? Does I have to disconnect and reconnect ? How ? Thanks in advance Best regards ...

PPP authentication?

How does PPP behave when it comes to authentication or communication between two routers? If both routers' serial interfaces include the command "encapsulation ppp" and nothing else, does it still require password? Or "ppp authentication PAP/CHAP" needs to be entered also? In any case, what password would PPP use to authenticate assumin...

udev rules - How to start a Net Mobil Modem

I'm running Sidux, Linux 2.6.25-2.slh.1-sidux-686 i686 [ sidux 2008-01 Νυξ - kde-lite - (200804112323)]. My net connection is through Digi Net Mobil, modem ZTE MF110. I couldn't make it run through it's own application Join Air (I tried all kind of settings, but at its best it answers with: "Fail to connect! Link ppp0 wasn't built !")...

Can I automatize pppoeconf?

Hello everyone, I am a Ubuntu user (10.04 as of now), since I use it, over a year, I have to manually enter the command $ sudo pppoeconf everytime I turn on the computer and want to connect to the internet, the I click enter some times, enter my password of my internet provider, then I click enter some more times to have internet. I ha...

Embedded Linux - Get Signal Strength of Modem While Connected

I am running a USB cell modem via PPP in Embedded Linux. I can use AT commands via minicom to connect to the modem and interrogate the signal strength (AT+CSQ) when the PPP connection is not active. However, when it's active, this is not possible. Is there any way to retrieve the signal strength from a PPP connected USB cell modem whil...