CCP In PPP


 
Thread Tools Search this Thread
Special Forums IP Networking CCP In PPP
# 1  
Old 03-15-2007
CCP In PPP

Hi,
I am using linux-2.6.10 mandrake. In which i am establishing PPP sessions with the peer.During the PPP negotiations i negotiate even CCP-deflate compression option.
I just wanted to know the amount of memory which is being used in kernel space by the compression algorithms,when a ccp compressed session is established.
Or in general how will i come to know about the amount of memory being used in kernel space at run time.Becoz top command shows memory being used only in user space.

Regards,
Sriram..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

No SMS notifications once ppp up

Hi all, I have an Siemens IoT2020 with a Sim7000e cellular board that I connect via USB to the board and connect to Telstra Cat-M1 network. I can send and receive SMS and do so using Node-Red but can also do with Minicom etc. When connected I get : root@iot2000:~# dmesg | grep USB ACPI:... (0 Replies)
Discussion started by: antc
0 Replies

2. Shell Programming and Scripting

SLIP/PPP questions

Hello all.. I need to script SLIP dial-up connections and wanted ask others about the following; - does pppd support SLIP (noticed some releases do and some don't) - if pppd doesn't support SLIP can bash variables be passed to a dip script (e.g. phone-number, ip-address) - or is another... (0 Replies)
Discussion started by: LAVco
0 Replies

3. Solaris

install PPP on Solaris 9

Background: I have been running Solaris 8 on an Ultra5 with 128MB and 4GB disk for years without upgrade. If it ain’t broke, don’t fix it. Now my ISP has upgraded their software, and no longer talks to my old (asppp!) software. Sun no longer ships newer versions of Solaris 8. So I bought Solaris... (1 Reply)
Discussion started by: sandee
1 Replies

4. IP Networking

How to get Caller Id in PPP

hello I am workin with PPP to send data from dos machine to unix & Linux machine using FTP with help of fax & voice modem(Caller id Enabled & Exchange provides facility). i need to identify phone(number) connect with Dos machine i.e. to identify from where data is send. so i want to get the... (0 Replies)
Discussion started by: yspl
0 Replies

5. IP Networking

PPP Network through TCP/IP

I have two unix systems. One is Redhat Linux and the other is Sun Solairs. I am runing PPP on my Linux machine but not on my Solaris machine. TCP/IP connects the two machines. I want to pick up PPP on both machines simultaneously with only one dial up connection on my linux machine. ... (4 Replies)
Discussion started by: Photon_Blast
4 Replies

6. UNIX for Dummies Questions & Answers

PPP in netcfg

Hi! I'm using RedHat 7.1 and I have some prolems with connecting with ppp. I have run modemtool and told that I'm using ttyS0. Whe I then try to set up a PPP connection using netcfg the PPP option is not there. I have all the other alternativs except PPP. What have I missed? (6 Replies)
Discussion started by: <Therapy>
6 Replies
Login or Register to Ask a Question
NG_PRED1(4)						   BSD Kernel Interfaces Manual 					       NG_PRED1(4)

NAME
ng_pred1 -- Predictor-1 PPP compression (RFC 1978) netgraph node type SYNOPSIS
#include <sys/types.h> #include <netgraph/ng_pred1.h> DESCRIPTION
The pred1 node type implements the Predictor-1 sub-protocols of the Compression Control Protocol (CCP). The node has two hooks, comp for compression and decomp for decompression. Only one of them can be connected at the same time, specifying node's operation mode. Typically that hooks would be connected to the ng_ppp(4) node type hook of the same name. HOOKS
This node type supports the following hooks: comp Connection to ng_ppp(4) compress hook. Incoming frames are compressed and sent back out the same hook. decomp Connection to ng_ppp(4) decompress hook. Incoming frames are decompressed and sent back out the same hook. Only one hook can be connected at the same time, specifying node's operation mode. CONTROL MESSAGES
This node type supports the generic control messages, plus the following: NGM_PRED1_CONFIG (config) This command resets and configures the node for a session (i.e., for compression or decompression). This command takes a struct ng_pred1_config as an argument: struct ng_pred1_config { u_char enable; /* node enabled */ }; The enable field enables traffic flow through the node. NGM_PRED1_RESETREQ (resetreq) This message contains no arguments, and is bi-directional. If an error is detected during decompression, this message is sent by the node to the originator of the NGM_PRED1_CONFIG message that initiated the session. The receiver should respond by sending a PPP CCP Reset-Request to the peer. This message may also be received by this node type when a CCP Reset-Request or Reset-Ack is received by the local PPP entity. The node will respond by flushing its compression state so the sides can resynchronize. NGM_PRED1_GET_STATS (getstats) This control message obtains statistics for a given hook. The statistics are returned in struct ng_pred1_stats: struct ng_pred1_stats { uint64_t FramesPlain; uint64_t FramesComp; uint64_t FramesUncomp; uint64_t InOctets; uint64_t OutOctets; uint64_t Errors; }; NGM_PRED1_CLR_STATS (clrstats) This control message clears statistics for a given hook. NGM_PRED1_GETCLR_STATS (getclrstats) This control message obtains and clears statistics for a given hook. SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when hook have been disconnected. SEE ALSO
netgraph(4), ng_ppp(4), ngctl(8) D. Rand, PPP Predictor Compression Protocol, RFC 1978. W. Simpson, The Point-to-Point Protocol (PPP), RFC 1661. AUTHORS
Alexander Motin <mav@alkar.net> BUGS
Due to nature of netgraph PPP implementation there are possible race conditions between data packet and ResetAck CCP packet in case of packet loss. As result, packet loss can produce bigger performance degradation than supposed by protocol. BSD
December 24, 2006 BSD