CN106375163A - High-speed PPP implementation method for wireless data card in Linux system - Google Patents
High-speed PPP implementation method for wireless data card in Linux system Download PDFInfo
- Publication number
- CN106375163A CN106375163A CN201610750417.9A CN201610750417A CN106375163A CN 106375163 A CN106375163 A CN 106375163A CN 201610750417 A CN201610750417 A CN 201610750417A CN 106375163 A CN106375163 A CN 106375163A
- Authority
- CN
- China
- Prior art keywords
- message
- ppp
- data card
- network
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2858—Access network architectures
- H04L12/2859—Point-to-point connection between the data network and the subscribers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to the field of data communication, and in particular relates to a high-speed PPP implementation method for a wireless data card in a Linux system. The existing PPP dial-up networking rate is low. In the scheme provided in the invention, for a Modem interface of a wireless module, character equipment is created and used for dialling up and hanging up; network equipment is created and used for performing message processing; the fact that only one equipment driver can access a practical Modem interface at the same time can be ensured through a mutual exclusion mechanism; a message practically received and sent from the Modem interface is a meaning transferred PPP message; after receiving the PPP message, a network interface needs to identify and extract an original message, remove transferred meanings, check a FCS, perform Ethernet head calculation and package; when the message is sent, an Ethernet head is analyzed and peeled; calculation is carried out; and the FCS and character transferred meanings are added. Because a network interface model of a kernel is used, the packet receiving and sending performance is greatly improved; because the driver completes nearly all message processing, a user program is simplified; and the separated character equipment is independently used for dialling up and hanging up, so that the user process is relatively convenient to process.
Description
Technical field
The present invention relates to data communication field, specifically, it is related to a kind of high speed of wireless data card in Linux system
Ppp implementation method.
Background technology
3g Age of Technology, data card module is surfed the Net mainly based on ppp dial mode, also has a set of in Linux system
Supporting ppp to dial up on the telephone, the driving of kernel state relevant programme mainly comprises tty serial port drive, usb string to total solution
Mouth drives.Serial ports inherently low-speed device, tty serial port drive also low-speed device drive, usb serial port drive be also for
Low speed usb equipment and design, it is often all very low to be limited to the speed that dials up on the telephone of ppp in the constraint practical application of implementation, leads to
Within often can only achieve 2mbps.
In 3g Age of Technology, inherently ratio is relatively limited for the bandwidth that wireless side can provide, so the low performance of integration scenario
Design is not so obvious for ppp dialing overall performance impact.With the arrival of 4g technology, wireless bandwidth theoretical value can
Reach 50mbps/100mbps, the driving model of low speed design cannot meet the requirement of high speed bandwidth.So current 4g
Module typically all can assume a network device interface and do Ethernet message interaction with host computer side, and host computer side is set by special network
Standby driving communicates with module, fully meets current 4g wireless bandwidth by the bandwidth of test network driving model.
But in actual applications, the ppp mode that dials up on the telephone still is widely used, in ppp dialing solution originally
The low speed design driving layer has seriously limited speed of surfing the Internet, and the present invention proposes new method and is used for solving this problem.
Accompanying drawing 1 show current data card ppp and dials up on the telephone scheme sketch, and its flow process is as follows:
1. kernel identifies modem interface and creates corresponding character device
2. user program is dialled by character device implementing reading and writing
3. user program is opened reception and is waited for thread, is circulated by N-free diet method and reads character device reception message
4. need after receiving message to do message identification, message extraction, ppp escape, ppp verification
5. when having and giving out a contract for a project, message is sent by write characters equipment
Under above-mentioned original ppp pattern, module assumes a modem interface to system side, and it is right that drive module is only responsible for being created that
The character device answered, user program need complete dialing, package, give out a contract for a project, circulate packet receiving, decapsulation message, exception message process,
Numerous and diverse operation such as hang up, the realization of user program is often relative complex, due to using serial ports char device driver, receiving and dispatching message
Speed and efficiency are all very low.
Content of the invention
It is an object of the invention to provide in a kind of Linux system wireless data card high speed ppp implementation method, the method
Up-downgoing speed that wireless module ppp dial up on the telephone can be substantially improved.
In order to realize foregoing invention purpose, technical scheme has the following steps:
(1) the modem interface being directed to wireless module creates character device and the network equipment simultaneously;
(2) between character device read-write and network interface transmitting-receiving message, semaphore or lock mechanism mutual exclusion are passed through in operation;
(3) dialled by character device implementing reading and writing and hang up operation;
(4) packet sending and receiving process is carried out by the network equipment;
(5) network send and receive packets flow process realizes ppp Message processing.
In the scheme that the present invention provides, for the modem interface of wireless module, create character device and be used for dialling and hang
Disconnected, create the network equipment and be used for Message processing;Ensure that synchronization only one of which device drives can access reality by mutual exclusion mechanism
Border modem interface.Ppp message after being escape due to the message from the actual transmitting-receiving of modem interface, so network interface receives
Need after ppp message to identify and extract original message, remove escape, verification fcs, Ethernet header calculating and encapsulate, when sending message
Needs parse and peel off Ethernet header, calculate and add fcs, character escape.Under new scheme, the network due to employing kernel connects
Mouthful model, send and receive packets performance is substantially improved, and completes almost all of Message processing work so that user's journey due to driving
Sequence is more simplified, and the character device isolated is used alone as dialling and hanging up also making user program process convenient.
The method have technical effect that:
(1) realize data card high speed ppp to dial up on the telephone;
(2) drive the transmitting-receiving process being directly realized by ppp message, simplify Application Design;
(3) dialing separates with packet sending and receiving flow process, simplifies Application Design.
Brief description:
Fig. 1 dials up on the telephone scheme sketch for current data card ppp;
Fig. 2 is that in the present invention, data card ppp dials up on the telephone scheme sketch;
Fig. 3 is that in the present invention, network-driven processes modem interface transmitting-receiving message flow chart.
Specific embodiment:
In a kind of Linux system to the present invention, the high speed ppp implementation method of wireless data card illustrates below in conjunction with the accompanying drawings.
Accompanying drawing 2 show data card ppp in the present invention and dials up on the telephone scheme sketch, and its operating procedure is as follows:
1. kernel identifies modem interface and creates corresponding character device and the network equipment;
2. user program is dialled by character device implementing reading and writing;
3. user program creates socket and monitors wait network interface packet receiving;
4. when having and giving out a contract for a project, message is sent by socket send;
5. network interface transmitting-receiving message can directly be walked kernel and forward.
Accompanying drawing 3 show in the present invention network-driven and processes modem interface transmitting-receiving message flow process:
Sending direction: ppp message sends after ether header parsing and stripping, fcs calculating and encapsulation, ppp ESC escape
To data card side;
Receive direction: the data that data card side joint receives through the identification of ppp message and is extracted, released escape, fcs verification, ether
Head calculates and interpolation re-sends to packet receiving queue or direct kernel forwards.
Finally illustrate: the technical method only in order to the exemplary illustration present invention for the embodiment of above, rather than it is limited
System;Although being described in detail to effective effect that the present invention and the present invention bring with reference to the foregoing embodiments, this area general
Logical technical staff is it is understood that it still can be modified to the technical method described in aforementioned each embodiment or right
Wherein some technical characteristics are replaced on an equal basis;And these modifications or replacement, do not make the essence of relevant art method depart from this
The scope of invention claim.
Claims (1)
1. in a kind of Linux system the high speed ppp implementation method of wireless data card it is characterised in that comprising the steps of
(1) the modem interface being directed to wireless module creates character device and the network equipment simultaneously;
(2) between character device read-write and network interface transmitting-receiving message, semaphore or lock mechanism mutual exclusion are passed through in operation;
(3) dialled by character device implementing reading and writing and hang up operation;
(4) packet sending and receiving process is carried out by the network equipment;
(5) network send and receive packets flow process realizes ppp Message processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610750417.9A CN106375163B (en) | 2016-08-29 | 2016-08-29 | The high speed PPP implementation method of wireless data card on a kind of linux system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610750417.9A CN106375163B (en) | 2016-08-29 | 2016-08-29 | The high speed PPP implementation method of wireless data card on a kind of linux system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106375163A true CN106375163A (en) | 2017-02-01 |
CN106375163B CN106375163B (en) | 2019-04-12 |
Family
ID=57902946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610750417.9A Active CN106375163B (en) | 2016-08-29 | 2016-08-29 | The high speed PPP implementation method of wireless data card on a kind of linux system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106375163B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201315596Y (en) * | 2008-12-22 | 2009-09-23 | 珠海市鸿瑞软件技术有限公司 | Dial safety gateway device |
CN102222207A (en) * | 2011-05-23 | 2011-10-19 | 深圳市共进电子有限公司 | Method for realizing networking by switching 3G data card working modes in Linux system |
CN102411546A (en) * | 2011-10-18 | 2012-04-11 | 深圳市共进电子股份有限公司 | Method for implementing connected communication of 3G data cards in at least two operation modes |
CN102612053A (en) * | 2012-02-24 | 2012-07-25 | 深圳市高视数字技术有限公司 | Method and system for realizing multi-card dialing by automatically detecting USB modem network mode |
CN104899028A (en) * | 2015-05-27 | 2015-09-09 | 北京汉柏科技有限公司 | Method and system for operating 3G(3rd generation)-USB network card in user mode based on Linux kernel |
-
2016
- 2016-08-29 CN CN201610750417.9A patent/CN106375163B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201315596Y (en) * | 2008-12-22 | 2009-09-23 | 珠海市鸿瑞软件技术有限公司 | Dial safety gateway device |
CN102222207A (en) * | 2011-05-23 | 2011-10-19 | 深圳市共进电子有限公司 | Method for realizing networking by switching 3G data card working modes in Linux system |
CN102411546A (en) * | 2011-10-18 | 2012-04-11 | 深圳市共进电子股份有限公司 | Method for implementing connected communication of 3G data cards in at least two operation modes |
CN102612053A (en) * | 2012-02-24 | 2012-07-25 | 深圳市高视数字技术有限公司 | Method and system for realizing multi-card dialing by automatically detecting USB modem network mode |
CN104899028A (en) * | 2015-05-27 | 2015-09-09 | 北京汉柏科技有限公司 | Method and system for operating 3G(3rd generation)-USB network card in user mode based on Linux kernel |
Non-Patent Citations (2)
Title |
---|
裘迅: "MODEM的拨号配置", 《苏州职业大学学报》 * |
裘迅: "PPP拨号上网的协议解析", 《苏州职业大学学报》 * |
Also Published As
Publication number | Publication date |
---|---|
CN106375163B (en) | 2019-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103825821B (en) | A kind of message forwarding method and a kind of network access equipment | |
CN103095703B (en) | A kind of method, equipment and system realizing network and serial port data interactive | |
CN108388532A (en) | The AI operations that configurable hardware calculates power accelerate board and its processing method, server | |
CN105426329B (en) | High-speed signal acquisition based on the embedded 10,000,000,000 hard protocol stacks of net forwards implementation method | |
US20090323705A1 (en) | Method for implementing photoelectric mutex, ethernet photoelectric mutex interface device and network equipment | |
CN106998347A (en) | The apparatus and method of server virtualization network share | |
WO2010145091A1 (en) | Method for implementing virtual network port and embedded device for implementing virtual network port | |
CN104270344A (en) | Quintillion gatekeeper | |
CN102681923A (en) | Hardware platform device for verifying system-on-chip | |
CN102761558A (en) | Ethernet communication system and communication method based on Xilinx FPGA (Field Programmable Gata Array) and Treck | |
TW200939659A (en) | Transmission system and transmission device | |
CN106330324B (en) | Control method and device | |
CN106375163A (en) | High-speed PPP implementation method for wireless data card in Linux system | |
CN109189711B (en) | Serial console interface based on Ethernet and application method thereof | |
CN107835108B (en) | OpenWrt-based MAC (media Access control) layer protocol stack verification platform | |
CN103684691B (en) | Communication method capable of simultaneously supporting 8G speed and 16G speed of FC protocol | |
CN102811149B (en) | A kind of for the double card headend equipment in video system and control method, system | |
CN202120214U (en) | KVM for implementing remote control | |
CN105162792A (en) | USB network card and Ethernet data conversion method | |
CN105227544B (en) | Realize the device and method of different agreement message conversion | |
US20040138870A1 (en) | Method and system for efficient character-based processing | |
CN2921955Y (en) | USB equipment driving system | |
CN102185786A (en) | Soft IP core of HDLC (high-level data link control) protocol controller | |
CN104683267B (en) | A kind of data forwarding method, device and switching equipment | |
CN113347188B (en) | Vehicle-mounted network transmission device based on PCIE and heterogeneous processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |