CN106375163B - The high speed PPP implementation method of wireless data card on a kind of linux system - Google Patents

The high speed PPP implementation method of wireless data card on a kind of linux system Download PDF

Info

Publication number
CN106375163B
CN106375163B CN201610750417.9A CN201610750417A CN106375163B CN 106375163 B CN106375163 B CN 106375163B CN 201610750417 A CN201610750417 A CN 201610750417A CN 106375163 B CN106375163 B CN 106375163B
Authority
CN
China
Prior art keywords
message
ppp
data card
escape
high speed
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.)
Active
Application number
CN201610750417.9A
Other languages
Chinese (zh)
Other versions
CN106375163A (en
Inventor
唐成波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Province Postal Communication Electricity Ltd Co
Original Assignee
Anhui Province Postal Communication Electricity Ltd Co
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Anhui Province Postal Communication Electricity Ltd Co filed Critical Anhui Province Postal Communication Electricity Ltd Co
Priority to CN201610750417.9A priority Critical patent/CN106375163B/en
Publication of CN106375163A publication Critical patent/CN106375163A/en
Application granted granted Critical
Publication of CN106375163B publication Critical patent/CN106375163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2858Access network architectures
    • H04L12/2859Point-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 present invention relates to data communication fields, and in particular to the high speed PPP implementation method of wireless data card on to a kind of linux system.The PPP rate that dials up on the telephone is low at present.In scheme provided by the invention, the Modem interface creation character device of wireless module is used to dial and hang up, the creation network equipment is used for Message processing;Guarantee that only one device drives of synchronization can access practical Modem interface by mutual exclusion mechanism.From the PPP message that the practical message received and dispatched of Modem interface is after escape, network interface needs identification and extraction original message, removal escape, verification FCS, Ethernet header to calculate and encapsulate after receiving PPP message;It parses and removes Ethernet header, calculating when sending message and add FCS, character escape.Due to having used the network interface model of kernel, send and receive packets performance is substantially improved, since driving completes almost all of Message processing work, user program is simplified, and the character device isolated is used alone as dialling and hanging up so that user program processing is more convenient.

Description

The high speed PPP implementation method of wireless data card on a kind of linux system
Technical field
The present invention relates to data communication fields, specifically, are related to a kind of high speed of wireless data card on linux system PPP implementation method.
Background technique
3G technology epoch, data card module online mainly based on PPP dial mode, also have a set of on linux system Total solution supports PPP to dial up on the telephone, and the driving of kernel state relevant programme mainly includes tty serial port drive, usb string Mouth driving.Serial ports inherently low-speed device, also low-speed device drives tty serial port drive, and usb serial port drive is also to be Low-speed USB devices and design, it is often all very low to be limited to the rate that dials up on the telephone of PPP in the constraint practical application of implementation, leads to Often it can only achieve within 2Mbps.
In the 3G technology epoch, the bandwidth that wireless side is capable of providing is inherently than relatively limited, 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 can no longer meet the requirement of high speed bandwidth.So current 4G Module generally can all be presented a network device interface and do Ethernet message interaction with host computer side, and host computer side is set by special network Standby driving and module communication, fully meet current 4G wireless bandwidth by the bandwidth of test network driving model.
But in practical applications, the PPP mode that dials up on the telephone still is widely used, in PPP dialing solution originally The low speed design of driving layer seriously limits speed of surfing the Internet, and the present invention proposes that new method is used to solve the problems, such as this.
Attached drawing 1 show current data card PPP and dials up on the telephone scheme schematic diagram, and process is as follows:
1. kernel identification Modem interface simultaneously creates corresponding character device
2. user program is dialled by character device implementing reading and writing
3. user program, which is opened to receive, waits for thread, is recycled by N-free diet method and read character device reception message
4. needing to do message identification, message extraction, PPP escape, PPP verification after receiving message
5. passing through write characters equipment when having and giving out a contract for a project sends message
Under above-mentioned original PPP mode, a Modem interface is presented to system side in module, and drive module is only responsible for creation Corresponding character device out, user program need to complete dialing, package, give out a contract for a project, recycle packet receiving, decapsulation message, exception message Many and diverse operation such as handle, hang up, the realization of user program is often relative complex, due to using serial ports char device driver, receives Send out message rate and efficiency it is all very low under.
Summary of the invention
The purpose of the present invention is to provide a kind of high speed PPP implementation method of wireless data card on linux system, this method The uplink and downlink rate that wireless module PPP dials up on the telephone can be substantially improved.
In order to achieve the above-mentioned object of the invention, technical solution of the present invention has the following steps:
(1) character device and the network equipment are created simultaneously for the Modem interface of wireless module;
(2) operation passes through semaphore or lock mechanism mutual exclusion between character device read-write and network interface transmitting-receiving message;
(3) operation is dialled and hung up by character device implementing reading and writing;
(4) packet sending and receiving processing is carried out by the network equipment;
(5) network send and receive packets process realizes PPP Message processing.
In scheme provided by the invention, for the Modem interface of wireless module, character device is created for dialling and hanging Disconnected, the creation network equipment is used for Message processing;Guarantee that only one device drives of synchronization can access reality by mutual exclusion mechanism Border Modem interface.Due to being the PPP message after escape from the practical message received and dispatched of Modem interface, so network interface receives Need to identify and extract original message, removal escape, verification FCS, Ethernet header calculating and encapsulation after PPP message, when sending message It needs to parse and remove Ethernet header, calculating and adds FCS, character escape.Under new scheme, due to having used the network of kernel to connect Mouth mold type, send and receive packets performance are substantially improved, and since driving completes almost all of Message processing work, so that user's journey Sequence is more simplified, and the character device isolated is used alone as dialling and hanging up but also user program processing is more convenient.
The technical effects of the invention are that:
(1) realize that data card high speed PPP dials up on the telephone;
(2) driving is directly realized by the transmitting-receiving process of PPP message, simplifies using design;
(3) dialing is separated with packet sending and receiving process, simplifies application design.
Detailed description of the invention:
Fig. 1 is that current data card PPP dials up on the telephone scheme schematic diagram;
Fig. 2 is that data card PPP dials up on the telephone scheme schematic diagram in the present invention;
Fig. 3 is that network-driven handles Modem interface transmitting-receiving message flow chart in the present invention.
Specific embodiment:
The high speed PPP implementation method of wireless data card on a kind of linux system of the present invention is said with reference to the accompanying drawing It is bright.
Attached drawing 2 show data card PPP in the present invention and dials up on the telephone scheme schematic diagram, and operating procedure is as follows:
1. kernel identification Modem interface simultaneously creates corresponding character device and the network equipment;
2. user program is dialled by character device implementing reading and writing;
3. user program creation socket simultaneously monitors waiting network interface packet receiving;
4. passing through socket send when having and giving out a contract for a project sends message;
5. network interface transmitting-receiving message can directly walk kernel forwarding.
Attached drawing 3 show network-driven processing Modem interface transmitting-receiving message process in the present invention:
Sending direction: PPP message is calculated and is encapsulated, after PPP escape character escape by ether header parsing and removing, FCS It is sent to data card side;
Receiving direction: data card flank the data that receive identify and extract by PPP message, release escape, FCS verification, Ethernet header calculates and addition re-sends to packet receiving queue or the forwarding of direct kernel.
Finally, it is stated that: the embodiment of above only technical method of the invention to exemplary illustration, rather than it is limited System;Although the present invention and the effective effect of bring of the present invention are described in detail with reference to the foregoing embodiments, this field it is general Logical technical staff is it is understood that it can still modify to technical method documented by aforementioned each embodiment or right Part of technical characteristic is replaced on an equal basis;And these modifications or substitutions, so that the essence of relevant art method is detached from this Invention the scope of the claims.

Claims (1)

1. the high speed PPP implementation method of wireless data card on a kind of linux system, it is characterised in that comprise the steps of:
(1) character device and the network equipment are created simultaneously for the Modem interface of wireless module;
(2) operation passes through semaphore or lock mechanism mutual exclusion between character device read-write and network interface transmitting-receiving message;
(3) operation is dialled and hung up by character device implementing reading and writing;
(4) packet sending and receiving processing is carried out by the network equipment;
(5) network send and receive packets process realizes PPP Message processing.
CN201610750417.9A 2016-08-29 2016-08-29 The high speed PPP implementation method of wireless data card on a kind of linux system Active CN106375163B (en)

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 CN106375163A (en) 2017-02-01
CN106375163B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
MODEM的拨号配置;裘迅;《苏州职业大学学报》;20021231(第4期);全文
PPP拨号上网的协议解析;裘迅;《苏州职业大学学报》;20030530;第14卷(第2期);全文

Also Published As

Publication number Publication date
CN106375163A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN102255903B (en) Safety isolation method for virtual network and physical network of cloud computing
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
CN104780333A (en) High-bandwidth video source interface adaptation device based on FPGA (Field Programmable Gate Array)
CN106998347A (en) The apparatus and method of server virtualization network share
CN106717111A (en) Method, device, and system for receiving CPRI data stream and ethernet frame
CN105426329B (en) High-speed signal acquisition based on the embedded 10,000,000,000 hard protocol stacks of net forwards implementation method
CN104391672A (en) Earphone mic virtualization implementation system based on virtual desktop and audio frequency transmission method of earphone mic virtualization implementation system
WO2010145091A1 (en) Method for implementing virtual network port and embedded device for implementing virtual network port
CN102761558A (en) Ethernet communication system and communication method based on Xilinx FPGA (Field Programmable Gata Array) and Treck
ATE378753T1 (en) ENCAPSULATING E1 FRAME IN ETHERNET
CN105812346A (en) Data interaction method of serial port device and Ethernet device
CN103281335A (en) Embedded network protocol stack development method based on WinPcap
CN106375163B (en) The high speed PPP implementation method of wireless data card on a kind of linux system
WO2016127953A1 (en) Debugging method specifically for fpga of high-end fault-tolerant computer based on software-hardware architecture, and device thereof
CN103684691B (en) Communication method capable of simultaneously supporting 8G speed and 16G speed of FC protocol
CN107517222A (en) A kind of USB interface-based one-way transmission apparatus and method
CN107835108B (en) OpenWrt-based MAC (media Access control) layer protocol stack verification platform
CN105227544B (en) Realize the device and method of different agreement message conversion
CN104735821B (en) A kind of wireless network card and its implementation turning serial port function with USB
CN103873391B (en) A kind of two layers of adapter select system and method
CN206863938U (en) A kind of data communication machine with breakpoint transmission
CN204667397U (en) A kind of movement circuit being applicable to the flow collection equipment of networks congestion control information audit
CN203104528U (en) Kilomega Ethernet interface circuit
CN204231360U (en) A kind of Optical Fiber Transmission access device

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