CN102548022B - Network access device and network access method - Google Patents

Network access device and network access method Download PDF

Info

Publication number
CN102548022B
CN102548022B CN201110442957.8A CN201110442957A CN102548022B CN 102548022 B CN102548022 B CN 102548022B CN 201110442957 A CN201110442957 A CN 201110442957A CN 102548022 B CN102548022 B CN 102548022B
Authority
CN
China
Prior art keywords
ppp
protocol
assembly
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.)
Expired - Fee Related
Application number
CN201110442957.8A
Other languages
Chinese (zh)
Other versions
CN102548022A (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.)
SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd
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 SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd filed Critical SHANGHAI DINGZU COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201110442957.8A priority Critical patent/CN102548022B/en
Publication of CN102548022A publication Critical patent/CN102548022A/en
Application granted granted Critical
Publication of CN102548022B publication Critical patent/CN102548022B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A network access device comprises a PPP (point-to-point protocol) line discipline, a PPPoX (point-to-point protocol over Ethernet), a TCP (transmission control protocol)/IP (internet protocol), an APP (application), a wireless network device, a PPPD (point-to-point protocol daemon), a PPPoXtunnel (point-to-point protocol over Xtunnel) and a PPP network device. The PPPD is a PPP dialing daemon service program, connected with the PPP line discipline through a link and responsible for setup of the PPPoXtunnel and the PPP network device and processing of a PPP, the PPPoXtunnel is registered in a PPPox architecture, connected with the PPPoX and the PPP device through links and responsible for call of the PPP network device and implementation of control commands of the PPPD, and the PPP network device is registered in a network architecture, connected with the wireless network device and connected with the TCP/IP through links and responsible for capsulation, decapsulation, receiving and transmission of the PPP or application data.

Description

The device and method of access network
Technical field
The present invention relates to communication technical field, particularly relate to a kind of device and method by the ppp protocol dial mode access network based on expansion tunnel protocol.
Background technology
Because 3G wireless transmission is subject to the restriction of frequency, data bandwidth finite capacity, cannot break through this technical difficulty in a short time, therefore hot zones is extensively laid by China Telecom, promote C(CDMA) net+W(WIFI) net dual network, compensate for 3G network and cover the problem wide, bandwidth is not enough.C net still uses traditional PPP(Point-to-Point Protocol, point-to-point protocol) dial mode; And at W net, only simple user is accessed Internet, the business diversity of user can not be met, therefore original PPPoE(PPP over Ethernet has been abandoned, point-to-point protocol on Ethernet) dial mode, and adopt PPPoXtunnel (ppp protocol based on expansion tunnel protocol) mode that user is accessed wireless access server, realize flow control and the service quality (Quality of Service is called for short QoS) of user.With reference to accompanying drawing 1, PPPoXtunnel communication process Organization Chart, comprise discovery and two stages of PPP session, discovery phase is stateless Client/Server pattern, object is the ethernet mac address obtaining PPPoXtunnel terminating end, and sets up a unique Xtunnel.session_ID(session number); After discovery phase terminates, with regard to the PPP session stage of Engage of standard.
Android system is popular mobile phone operating system in the market, the scope of application is extensive, but current android system does not support PPPoXtunnel dial technology, therefore adopt the terminal use of android system to realize PPPoXtunnel dial technology, need to improve existing Android network architecture.
Summary of the invention
Technical problem to be solved by this invention is, a kind of device and method of access network is provided, solve current android system and do not support PPPoXtunnel dial technology, adopt the terminal use of android system to realize PPPoXtunnel dial technology, need the problem that existing Android network architecture is improved.
In order to solve the problem, the invention provides a kind of access network device and comprise PPP circuit specification assembly, PPPoX assembly, TCP/IP assembly, APP assembly and Wireless Communication Equipment, described PPP circuit specification assembly for completing character escape, described PPPoX assembly is received and dispatched ppp protocol or application data as actual physical device for selecting PPP PPP bearer path, the described Wireless Communication Equipment used that dial, and comprises PPPD assembly, PPPoXtunnel assembly and the PPP network equipment further; Described PPPD assembly is PPP dialing background service program, is connected, is responsible for the foundation of described PPPoXtunnel assembly, the described establishment of the PPP network equipment and the process of ppp protocol by the first ppp link with described PPP circuit specification assembly; Described PPPoXtunnel component register, in PPPoX architecture, is connected with described PPPoX assembly and the described PPP network equipment by the second ppp link, and that is responsible for the described PPP network equipment calls the enforcement with described PPPD assembly control command; Described PPP network device registration in the network architecture, is connected with described Wireless Communication Equipment and described TCP/IP assembly by the 3rd ppp link, is responsible for the encapsulation of ppp protocol or application data, decapsulation, reception and transmission.
Further, described network architecture is core architecture in Android.
Further, described Wireless Communication Equipment is WIFI equipment.
Further, self-defined transceiver interface is adopted between described PPPoXtunnel assembly and the described PPP network equipment.
Further, the ppp protocol that described Wireless Communication Equipment receives or application data, all grab back the described PPP network equipment by the HOOK function of the inner Netfilter of the IP stack of described TCP/IP assembly and complete releasing tunnel encapsulation.
In order to solve the problem, present invention also offers a kind of network access method, comprising the following steps:
A () PPPD configures PPP circuit specification is PPPoX architecture;
B () described PPPD configures described PPPoX architecture and selects PPPoXtunnel to be the PPP bearer path that this PPP dialing uses;
C () described PPPD creates the PPP network equipment;
D () enters PPP dialing process, carried out the transmitting-receiving of ppp protocol by PPPoXtunnel;
E () carries out the transmitting-receiving of application data by the PPP network equipment.
Further, described PPPD configures described PPPoXtunnel selection Wireless Communication Equipment is further the actual physical networks equipment that this PPP dials.
Further, the ppp protocol that described Wireless Communication Equipment receives or application data, all grab back the described PPP network equipment by the HOOK function of the inner Netfilter of the IP stack of TCP/IP and complete releasing tunnel encapsulation.
Further, described Wireless Communication Equipment is WIFI equipment.
The invention has the advantages that, take full advantage of the existing interior core architecture of android system, achieve not only efficient but also relatively compatible PPPoXtunnel with simple technology to dial actualizing technology, minimize development cost and construction cycle, in Android network architecture, realize PPPoXtunnel dialing, and then realize the WIFI broadband access function of user.
Accompanying drawing explanation
Accompanying drawing 1, PPPoXtunnel communication process Organization Chart;
Accompanying drawing 2, the configuration diagram of access network device of the present invention;
Accompanying drawing 3, the schematic flow sheet of network access method of the present invention.
Embodiment
Elaborate below in conjunction with the embodiment of accompanying drawing to the device and method of access network provided by the invention.
With reference to accompanying drawing 2, the configuration diagram of access network device of the present invention, comprises PPPD (PPP background process) assembly M21, PPP circuit specification assembly M22, PPPoX assembly M23, PPPoXtunnel assembly M24, PPP network equipment M25, TCP/IP assembly M26, APP assembly M27 and Wireless Communication Equipment M28.Wherein PPPD assembly M21, PPPoXtunnel assembly M24 and PPP network equipment M25 is the assembly increased on the existing kernel architecture of Android; The self-defining transceiver interface of employing between PPPoXtunnel assembly M24 and PPP network equipment M25, the transceiver interface between PPP network equipment M25 and TCP/IP assembly M26 increases on the existing kernel architecture of Android.Wherein PPPoX comprises PPPoE, PPPoA(PPP over ATM) and PPPoEoA(PPPoE over ATM, ATM carries PPPoE).
PPPD assembly M21 is User space PPPoXtunnel dialing background service program, is responsible for kernel PPPoXtunnel Path Setup, the PPP network equipment creates and ppp protocol process.Be specially, it is PPPoX architecture that PPPD assembly M21 configures PPP circuit specification assembly M22; PPPD assembly M21 configures PPPoX assembly M23 and selects PPPoXtunnel passage to be the PPP bearer path that this PPP dialing uses; PPPD assembly M21 configures PPPoXtunnel assembly M24 and selects specific radio network equipment M28 to be the actual physical networks equipment that this PPP dials; PPPD assembly M21 creates PPP network equipment M25.
PPP circuit specification (LineDiscpline) assembly M22 is the mode of encoding to data, for carrying out character escape to ppp protocol or application data.
The PPP bearer path that PPPoX assembly M23 uses for selecting PPP dialing.
PPPoXtunnel assembly M24 is registered in Android kernel PPPoX architecture with channel form, is responsible for the equipment calls of PPP network equipment M25 and the enforcement of PPPD assembly M21 control command.
The PPP network equipment (netdevice) M25 is registered in Android core standard network architecture in network equipment mode, is responsible for the encapsulation to Wireless Communication Equipment M28, decapsulation, reception and transmission.
Wireless Communication Equipment M28, as actual physical device, receives and dispatches ppp protocol or application data.Described Wireless Communication Equipment M28 can be WIFI equipment.
Adopt self-defined transceiver interface between PPPoXtunnel assembly M24 and PPP network equipment M25, ppp link shown in 1 completes the transmitting-receiving of ppp protocol or application data by a dotted line.
Due to PPPoXtunnel employing is class udp protocol, UDP is a connectionless protocol, before transmission data, source and terminal do not connect, and just go simply to capture the data from application program when UDP needs to transmit data, and are sent on network capturing the data come as quickly as possible.Therefore the PPPoXtunnel message (comprising ppp protocol or application data) that receives of Wireless Communication Equipment M28 is before completing transport layer protocol and resolving, PPP network equipment M25 cannot judge the destination address that PPPoXtunnel message transmits, therefore TCP/IP assembly M26 is by the HOOK(hook of the inner Netfilter of IP stack) function crawl PPPoXtunnel message, after ppp link shown in 2 gets back to PPP network equipment M25 releasing tunnel encapsulation by a dotted line, reenter TCP/IP flow process.
Wherein, Netfilter is the Linux firewall system of a new generation.Netfilter adopts modularized design, has good expandability, allows the operations such as user filters datagram, address transition, process.Netfilter provides a framework, will drop to minimum to the direct interference of network code, and other bag process codes add in kernel by interface that permission specifies in modular form, have extremely strong flexibility.The general framework of Netfilter does not rely on concrete agreement, but define a set of HOOK(hook for often kind of procotol) function, HOOK provides one mechanism easily: intercept and capture and operational processes data message on the diverse location of data message by linux kernel.
Use the present invention, PPPoXtunnel dialing can be realized in Android network architecture, and then realize the WIFI broadband access function of user; The present invention takes full advantage of the existing interior core architecture of Android, by increasing PPPD assembly, PPPoXtunnel assembly and the PPP network equipment on existing kernel architecture, wherein adopt self-defining transceiver interface between PPPoXtunnel assembly and the PPP network equipment, achieve not only efficient but also relatively compatible PPPoXtunnel with simple technology to dial actualizing technology, minimize development cost and construction cycle; Simply be easy to realize; Protocol capabilities is excellent.
With reference to accompanying drawing 3, the schematic flow sheet of network access method of the present invention, comprises the steps:
It is PPPoX architecture that S31:PPPD configures PPP circuit specification.
S32:PPPD configures PPPoX architecture and selects PPPoXtunnel to be the PPP bearer path that this PPP dialing uses.
S33:PPPD configures PPPoXtunnel and selects WIFI network equipment to be the actual physical networks equipment that this PPP dials.
S34:PPPD creates the PPP network equipment.
S35:PPPD enters PPP dialing process, is carried out the transmitting-receiving of ppp protocol by PPPoXtunnel.
In agreement process of transmitting, first the agreement flow process of LCP, CHAP, IPCP is initiated successively by the ppp protocol of PPPD, after described agreement all carries out character escape via PPP circuit specification, transfer to PPPoX selector channel PPPoXtunnel, transfer to the PPP network equipment to complete tunnel and Ethernet encapsulation again, finally sent by actual physical device WIFI.
In agreement receiving course, first LCP, CHAP, IPCP protocol massages is received successively by actual physical device WIFI, described protocol massages all first transfers to ICP/IP protocol process, after data being grabbed back PPP network equipment releasing tunnel encapsulation by the HOOK function of the Netfilter of the IP stack inside of TCP/IP, on give PPPoX, PPPoX passes to PPPD by character device mode after transferring to PPP circuit specification to carry out character escape again and does protocol processes.
S36:PPPD enters core network application flows, is carried out the transmitting-receiving of application data by the PPP network equipment.
PPPD enters core network application flows after completing PPP dialing, in application data process of transmitting, application data is via APP application program, then by standard SOCKET(socket) issue after TCP/IP completes protocol stack encapsulation, transfer to the PPP network equipment to complete tunnel and Ethernet encapsulation again, be finally sent to core network by actual physical device WIFI.
In application data receiving course, after actual physical device WIFI receives the application data of core network transmission, first TCP/IP is transferred to, by the HOOK function of the Netfilter of the IP stack inside of TCP/IP, after application data being grabbed back PPP network equipment releasing tunnel encapsulation, again, after transferring to the decapsulation of TCP/IP process inner users IP, the process of APP application program is transferred to eventually through standard SOCKET.
The present invention takes full advantage of the existing interior core architecture of Android, by increasing PPPD, PPPoXtunnel and PPP network equipment on existing kernel architecture, wherein adopt self-defining transceiver interface between PPPoXtunnel and the PPP network equipment, achieve not only efficient but also relatively compatible PPPoXtunnel with simple technology to dial actualizing technology, minimize development cost and construction cycle; Realize being dialled by PPPoXtunnel in Android network architecture, and then realize the WIFI broadband access function of user.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (9)

1. an access network device, comprise PPP circuit specification assembly, PPPoX assembly, TCP/IP assembly, APP assembly and Wireless Communication Equipment, described PPP circuit specification assembly is for completing character escape, described PPPoX assembly for selecting the PPP bearer path of PPP dialing use, described Wireless Communication Equipment as actual physical device, ppp protocol or application data are received and dispatched, it is characterized in that: comprise PPP background process assembly further, based on ppp protocol assembly and the PPP network equipment of expanding tunnel protocol;
Described PPP background process assembly is connected with described PPP circuit specification assembly by the first ppp link, and described PPP background process assembly adopts PPP dialing background service program to be responsible for the foundation of the described ppp protocol assembly based on expansion tunnel protocol, the described establishment of the PPP network equipment and the process of ppp protocol;
The described ppp protocol component register based on expansion tunnel protocol is in PPPoX architecture, be connected with described PPPoX assembly and the described PPP network equipment by the second ppp link, that is responsible for the described PPP network equipment calls the enforcement with described PPP background process assembly control command;
Described PPP network device registration in the network architecture, is connected with described Wireless Communication Equipment and described TCP/IP assembly by the 3rd ppp link, is responsible for the encapsulation of ppp protocol or application data, decapsulation, reception and transmission.
2. access network device according to claim 1, is characterized in that: described network architecture is core architecture in Android.
3. access network device according to claim 1, is characterized in that: described Wireless Communication Equipment is WIFI equipment.
4. access network device according to claim 1, is characterized in that: adopt self-defined transceiver interface between the described ppp protocol assembly based on expansion tunnel protocol and the described PPP network equipment.
5. access network device according to claim 1, it is characterized in that: the ppp protocol that described Wireless Communication Equipment receives or application data, all grab back the described PPP network equipment by the HOOK function of the inner Netfilter of the IP stack of described TCP/IP assembly and complete releasing tunnel encapsulation.
6. a network access method, is characterized in that: comprise the following steps:
A () PPP background process configuration PPP circuit specification is PPPoX architecture;
B () described PPP background process configures described PPPoX architecture and selects the ppp protocol based on expansion tunnel protocol to be the PPP bearer path that this PPP dialing uses;
C () described PPP background process creates the PPP network equipment;
D () enters PPP dialing process, by carrying out the transmitting-receiving of ppp protocol based on the ppp protocol of expansion tunnel protocol;
E () carries out the transmitting-receiving of application data by the PPP network equipment.
7. network access method according to claim 6, is characterized in that: described PPP background process configures the described ppp protocol based on expansion tunnel protocol further and selects Wireless Communication Equipment to be the actual physical networks equipment that this PPP dials.
8. network access method according to claim 7, it is characterized in that: the ppp protocol that described Wireless Communication Equipment receives or application data, all grab back the described PPP network equipment by the HOOK function of the inner Netfilter of the IP stack of TCP/IP and complete releasing tunnel encapsulation.
9. network access method according to claim 7 or 8, is characterized in that: described Wireless Communication Equipment is WIFI equipment.
CN201110442957.8A 2011-12-27 2011-12-27 Network access device and network access method Expired - Fee Related CN102548022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110442957.8A CN102548022B (en) 2011-12-27 2011-12-27 Network access device and network access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110442957.8A CN102548022B (en) 2011-12-27 2011-12-27 Network access device and network access method

Publications (2)

Publication Number Publication Date
CN102548022A CN102548022A (en) 2012-07-04
CN102548022B true CN102548022B (en) 2015-05-20

Family

ID=46353685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110442957.8A Expired - Fee Related CN102548022B (en) 2011-12-27 2011-12-27 Network access device and network access method

Country Status (1)

Country Link
CN (1) CN102548022B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602362B (en) * 2014-12-08 2018-04-10 深圳市广和通无线股份有限公司 PPP dial-up networking methods and system based on WIFI

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212398A (en) * 2006-12-29 2008-07-02 王立刚 Access system and method
CN101257420A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Point-to-point protocol accessing method, system as well as access node equipment
CN102263935A (en) * 2011-07-11 2011-11-30 青岛科技大学 Video monitoring and transmission device based on TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212398A (en) * 2006-12-29 2008-07-02 王立刚 Access system and method
CN101257420A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Point-to-point protocol accessing method, system as well as access node equipment
CN102263935A (en) * 2011-07-11 2011-11-30 青岛科技大学 Video monitoring and transmission device based on TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) network

Also Published As

Publication number Publication date
CN102548022A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
US20230052421A1 (en) Communication method and apparatus
CN105637905B (en) For realizing the methods, devices and systems of PDN connection
CN105814941B (en) Integrated sublayer for multi-link communication
CN104303582B (en) Method and apparatus for switching
CN104054375B (en) Method and apparatus for transmitting routing packets stream on radio at two
WO2018119235A1 (en) Methods and apparatus for aggregating network access within a single unified platform for a myriad of devices
CN105722058A (en) User equipment and information forwarding method
ES2382826T3 (en) Uninterrupted transfer between access networks with saved session information
CN102404221A (en) Multilink aggregated data transmission method and system
TWI477111B (en) Outdoor wireless modem and method for signal procesisng thereof
KR20020034838A (en) Media communication system, and terminal apparatus and signal conversion apparatus in said system
JP2005529540A5 (en)
JP2009124740A5 (en)
CN103905463A (en) Connecting management and control method suitable for multi-path transmitting
CN103441996A (en) Method and system for transmitting files in concurrent mode
WO2017006833A1 (en) Relay device, communication packet relay method, and sound communication system
CN104396293B (en) Radio communications system and base station
WO2016201939A1 (en) Method, device and user equipment for establishing dedicated bearer
CN105873011B (en) The transmission of group service data, control method, device and equipment
WO2023011245A1 (en) Communication method and communication apparatus
CN106470465A (en) WIFI speech business initiating method, LTE communication equipment, terminal and communication system
WO2010012152A1 (en) Method and equipment for implementing data transmission in wireless network
CN102548022B (en) Network access device and network access method
JP2003143640A (en) Hand-off method in wireless network and the wireless network employing the method
CN101069404B (en) Method, device, system and networking connection equipment for opening a network link

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150520

Termination date: 20211227