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

Network access device and network access method Download PDF

Info

Publication number
CN102548022A
CN102548022A CN2011104429578A CN201110442957A CN102548022A CN 102548022 A CN102548022 A CN 102548022A CN 2011104429578 A CN2011104429578 A CN 2011104429578A CN 201110442957 A CN201110442957 A CN 201110442957A CN 102548022 A CN102548022 A CN 102548022A
Authority
CN
China
Prior art keywords
ppp
protocol
network
equipment
pppox
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
Application number
CN2011104429578A
Other languages
Chinese (zh)
Other versions
CN102548022B (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

Images

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, relate in particular to a kind of through device and method based on the ppp protocol dial mode access network of expanding tunnel protocol.
Background technology
Because the 3G wireless transmission receives the restriction of frequency; The data bandwidth finite capacity can't be broken through this technical difficulty in a short time, so hot zones is extensively laid by China Telecom; Promote C (CDMA) net+W (WIFI) net dual network, remedied 3G network and covered problem wide, insufficient bandwidth.The C net still uses traditional P PP (Point-to-Point Protocol, point-to-point protocol) dial mode; And at the W net; Only simply the user is inserted Internet, can not satisfy user's professional diversity, therefore abandoned original PPPoE (PPP over Ethernet; Point-to-point protocol on the Ethernet) dial mode; And adopt PPPoXtunnel (based on the ppp protocol of expansion tunnel protocol) mode that the user is inserted the wireless access server, realize user's flow control and service quality (Quality of Service is called for short QoS).With reference to accompanying drawing 1; PPPoXtunnel communication process Organization Chart; Comprise and find and two stages of PPP session; The discovery stage is stateless Client/Server pattern, and purpose is the ethernet mac address that obtains the PPPoXtunnel terminating end, and sets up a unique Xtunnel.session_ID (session number); The discovery stage just gets into the PPP session stage of standard after finishing.
The Android system is popular in the market mobile phone operating system; The scope of application is extensive; But present Android system does not support the PPPoXtunnel dial technology; Therefore adopt the terminal use of Android system to realize the PPPoXtunnel dial technology, need 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 present Android system and do not support the PPPoXtunnel dial technology; Adopt the terminal use of Android system to realize the PPPoXtunnel dial technology, need carry out improved problem existing Android network architecture.
In order to address the above problem; The invention provides a kind of access network device and comprise PPP circuit standard, PPPoX, TCP/IP, APP and Wireless Communication Equipment; Said PPP circuit standard is used to accomplish the character escape, said PPPoX is used to the PPP bearer path of selecting the PPP dialing to use, said Wireless Communication Equipment as actual physical device; Ppp protocol or application data are received and dispatched, further comprised PPPD, PPPoXtunnel and the PPP network equipment; Said PPPD is a PPP dialing backstage service routine, links to each other with said PPP circuit standard through first ppp link, is responsible for foundation, the establishment of the said PPP network equipment and the processing of ppp protocol of said PPPoXtunnel; Said PPPoXtunnel is registered in the said PPPoX architecture, links to each other with the said PPPoX and the said PPP network equipment through second ppp link, is responsible for the enforcement with said PPPD control command of calling of the said PPP network equipment; Said PPP network device registration links to each other with said Wireless Communication Equipment and said TCP/IP through the 3rd ppp link in the access network architecture, is responsible for encapsulation, decapsulation, reception and the transmission of ppp protocol or application data.
Further, said network architecture is an Android kernel architecture.
Further, said Wireless Communication Equipment is a WIFI equipment.
Further, adopt self-defined transmitting-receiving interface between the said PPPoXtunnel and the said PPP network equipment.
Further, ppp protocol that said Wireless Communication Equipment receives or application data, all the HOOK function of the inner Netfilter of the IP stack through said TCP/IP is grabbed back the said PPP network equipment and is accomplished the releasing tunnel encapsulation.
In order to address the above problem, the present invention also provides a kind of network access method, may further comprise the steps:
(a) PPPD configuration PPP circuit standard is the PPPoX architecture;
(b) said PPPD disposes the PPP bearer path that said PPPoX architecture selects PPPoXtunnel to use for this PPP dialing;
(c) said PPPD creates the PPP network equipment;
(d) get into PPP dialing flow process, carry out the transmitting-receiving of ppp protocol through PPPoXtunnel;
(e) carry out the transmitting-receiving of application data through the PPP network equipment.
Further, the said PPPoXtunnel selection of the further configuration of said PPPD Wireless Communication Equipment is the actual physical network equipment of this PPP dialing.
Further, ppp protocol that said Wireless Communication Equipment receives or application data, all the HOOK function of the inner Netfilter of the IP stack through said TCP/IP is grabbed back the said PPP network equipment and is accomplished the releasing tunnel encapsulation.
Further, said Wireless Communication Equipment is a WIFI equipment.
The invention has the advantages that; Made full use of the existing kernel architecture of Android system; Realized that with simple technology not only efficient but also compatible relatively PPPoXtunnel dialing realizationed is technological; Minimize development cost and construction cycle, in the Android network architecture, realized the PPPoXtunnel dialing, and then realized user's WIFI broadband access function.
Description of drawings
Accompanying drawing 1, PPPoXtunnel communication process Organization Chart;
Accompanying drawing 2, the configuration diagram of access network device according to the invention;
Accompanying drawing 3, the schematic flow sheet of network access method according to the 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 according to the invention comprises PPPD (PPP background process) assembly M21, PPP circuit standard assembly M22, PPPoX assembly M23, PPPoXtunnel assembly M24, PPP network device components M25, TCP/IP assembly M26, APP assembly M27 and Wireless Communication Equipment M28.Wherein PPPD assembly M21, PPPoXtunnel assembly M24 and PPP network device components M25 are the assemblies that on the existing kernel architecture basis of Android, increases; The self-defining transmitting-receiving interface of employing between PPPoXtunnel assembly M24 and the PPP network device components M25, the transmitting-receiving interface between PPP network device components M25 and the TCP/IP assembly M26 increases on the existing kernel architecture basis of Android.Wherein PPPoX comprises PPPoE, PPPoA (PPP over ATM) and PPPoEoA (PPPoE over ATM carries PPPoE on ATM).
PPPD assembly M21 is user's attitude PPPoXtunnel dialing backstage service routine, is responsible for the foundation of kernel PPPoXtunnel passage, the establishment of the PPP network equipment and ppp protocol and handles.Be specially, PPPD assembly M21 configuration PPP circuit standard assembly M22 is the PPPoX architecture; The PPP bearer path that PPPD assembly M21 configuration PPPoX assembly M23 selects the PPPoXtunnel passage to use for this PPP dialing; PPPD assembly M21 configuration PPPoXtunnel assembly M24 selects the actual physical network equipment of specific radio network device components M28 for this PPP dialing; PPPD assembly M21 creates PPP network device components M25.
PPP circuit standard (LineDiscpline) assembly M22 is the mode that data are encoded, and is used for ppp protocol or application data are carried out the character escape.
PPPoX assembly M23 is used to select the PPP bearer path of PPP dialing use.
PPPoXtunnel assembly M24 is registered in the Android kernel PPPoX architecture with channel form, is responsible for the equipment calls of PPP network device components M25 and the enforcement of PPPD assembly M21 control command.
The PPP network equipment (netdevice) assembly M25 is registered in the Android kernel standard network architecture with network equipment mode, is responsible for encapsulation, decapsulation, reception and transmission to Wireless Communication Equipment assembly M28.
Wireless Communication Equipment assembly M28 receives and dispatches ppp protocol or application data as actual physical device.Said Wireless Communication Equipment assembly M28 can be WIFI equipment.
Adopt self-defined transmitting-receiving interface between PPPoXtunnel assembly M24 and the PPP network device components M25, ppp link shown in 1 is accomplished the transmitting-receiving of ppp protocol or application data by a dotted line.
Because type of the being udp protocol that PPPoXtunnel adopts; UDP is a connectionless protocol; Source end and terminal do not connect before the transmission data, when UDP need transmit data, just go simply to grasp from application's data, and are sent on the network grasping the data of coming as soon as possible.So the PPPoXtunnel message (comprising ppp protocol or application data) that Wireless Communication Equipment assembly M28 receives is before accomplishing the transport layer protocol parsing; PPP network device components M25 can't judge the destination address that the PPPoXtunnel message transmits; Therefore TCP/IP assembly M26 grasps the PPPoXtunnel message through HOOK (hook) function of the inner Netfilter of IP stack; After ppp link shown in 2 is got back to PPP network device components M25 releasing tunnel encapsulation by a dotted line, get into the TCP/IP flow process again.
Wherein, Netfilter is the Linux firewall system of a new generation.Netfilter adopts modularized design, has good expandability, allow the user to datagram filter, operations such as address transition, processing.Netfilter provides a framework, will drop to minimumly to the direct interference of network code, and allows with the interface of regulation other bag processing code to be added in the kernel with the form of module, has extremely strong flexibility.The general framework of Netfilter does not rely on concrete agreement; But be every kind of network protocol defining one cover HOOK (hook) function, HOOK provides a kind of mechanism easily: pass through to intercept and capture and the operational processes data message on the diverse location of linux kernel at data message.
Use the present invention, can in the Android network architecture, realize the PPPoXtunnel dialing, and then realize user's WIFI broadband access function; The present invention has made full use of the existing kernel architecture of Android; Through on existing kernel architecture basis, increasing PPPD assembly, PPPoXtunnel assembly and PPP network device components; Wherein adopt self-defining transmitting-receiving interface between PPPoXtunnel assembly and the PPP network device components; Realized that with simple technology not only efficient but also compatible relatively PPPoXtunnel dialing realizationed is technological, minimized 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 according to the invention comprises the steps:
S31:PPPD configuration PPP circuit standard is the PPPoX architecture.
The PPP bearer path that S32:PPPD configuration PPPoX architecture selects PPPoXtunnel to use for this PPP dialing.
S33:PPPD configuration PPPoXtunnel selects the actual physical network equipment of the WIFI network equipment for this PPP dialing.
S34:PPPD creates the PPP network equipment.
S35:PPPD gets into PPP dialing flow process, carries out the transmitting-receiving of ppp protocol through PPPoXtunnel.
In the agreement process of transmitting; At first initiate the agreement flow process of LCP, CHAP, IPCP successively by the ppp protocol of PPPD; After said agreement is all carried out the character escape via PPP circuit standard; Transfer to PPPoX selector channel PPPoXtunnel, transfer to the PPP network equipment again and accomplish tunnel and Ethernet encapsulation, send by actual physical device WIFI at last.
In the agreement receiving course; At first receive LCP, CHAP, IPCP protocol massages successively by actual physical device WIFI; Said protocol massages is all transferred to ICP/IP protocol earlier and is handled; After the HOOK function of the Netfilter that IP stack through TCP/IP is inner is grabbed back PPP network equipment releasing tunnel encapsulation with data, on give PPPoX, PPPoX transfers to PPP circuit standard again and carries out passing to PPPD through the character device mode after the character escape and do protocol processes.
S36:PPPD gets into the core network application flows, carries out the transmitting-receiving of application data through the PPP network equipment.
PPPD accomplishes PPP dialing back and gets into the core network application flows; In the application data process of transmitting; Application data is via the APP application program; After issuing TCP/IP and accomplish the protocol stack encapsulation through standard SOCKET (socket) then, transfer to the PPP network equipment again and accomplish the tunnel and encapsulate, send to core network by actual physical device WIFI at last with Ethernet.
In the application data receiving course; After actual physical device WIFI receives the application data of core network transmission; At first transfer to TCP/IP, the HOOK function of the Netfilter that the IP stack through TCP/IP is inner, application data grabbed back PPP network equipment releasing tunnel encapsulation after; Again after transferring to the decapsulation of TCP/IP processing inner users IP, finally transfer to the APP application program processes through standard SOCKET.
The present invention has made full use of the existing kernel architecture of Android; Through on existing kernel architecture basis, increasing PPPD, PPPoXtunnel and the PPP network equipment; Wherein adopt self-defining transmitting-receiving interface between the PPPoXtunnel and the PPP network equipment; Realized that with simple technology not only efficient but also compatible relatively PPPoXtunnel dialing realizationed is technological, minimized development cost and construction cycle; Be implemented in the Android network architecture and dial, and then realize user's WIFI broadband access function through PPPoXtunnel.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (9)

1. access network device; Comprise PPP circuit standard, PPPoX, TCP/IP, APP and Wireless Communication Equipment; Said PPP circuit standard is used to accomplish the character escape, said PPPoX is used to the PPP bearer path of selecting the PPP dialing to use, said Wireless Communication Equipment as actual physical device; Ppp protocol or application data are received and dispatched, it is characterized in that: further comprise the PPP background process, based on the expansion tunnel protocol the ppp protocol and the PPP network equipment; Said PPP background process is a PPP dialing backstage service routine, links to each other with said PPP circuit standard through first ppp link, is responsible for said foundation, the establishment of the said PPP network equipment and the processing of ppp protocol based on the ppp protocol of expanding tunnel protocol; Said ppp protocol based on the expansion tunnel protocol is registered in the said PPPoX architecture; Link to each other with the said PPPoX and the said PPP network equipment through second ppp link, be responsible for the enforcement with said PPP background process control command of calling of the said PPP network equipment; Said PPP network device registration links to each other with said Wireless Communication Equipment and said TCP/IP through the 3rd ppp link in network architecture, is responsible for encapsulation, decapsulation, reception and the transmission of ppp protocol or application data.
2. according to the said access network device of claim 1, it is characterized in that: said network architecture is an Android kernel architecture.
3. according to the said access network device of claim 1, it is characterized in that: said Wireless Communication Equipment is a WIFI equipment.
4. according to the said access network device of claim 1, it is characterized in that: said based on adopting self-defined transmitting-receiving interface between the ppp protocol of expanding tunnel protocol and the said PPP network equipment.
5. according to the said access network device of claim 1; It is characterized in that: ppp protocol that said Wireless Communication Equipment receives or application data, all the HOOK function of the inner Netfilter of the IP stack through said TCP/IP is grabbed back the said PPP network equipment and is accomplished the releasing tunnel encapsulation.
6. network access method is characterized in that: may further comprise the steps:
(a) PPP background process configuration PPP circuit standard is the PPPoX architecture;
(b) said PPP background process disposes the PPP bearer path that said PPPoX architecture selection is used for this PPP dialing based on the ppp protocol of expanding tunnel protocol;
(c) said PPP background process is created the PPP network equipment;
(d) get into PPP dialing flow process, carry out the transmitting-receiving of ppp protocol through ppp protocol based on the expansion tunnel protocol;
(e) carry out the transmitting-receiving of application data through the PPP network equipment.
7. according to the said network access method of claim 6, it is characterized in that: the said PPPD further said ppp protocol based on the expansion tunnel protocol of configuration selects the actual physical network equipment of Wireless Communication Equipment for this PPP dialing.
8. according to the said network access method of claim 7; It is characterized in that: ppp protocol that said Wireless Communication Equipment receives or application data, all the HOOK function of the inner Netfilter of the IP stack through said TCP/IP is grabbed back the said PPP network equipment and is accomplished the releasing tunnel encapsulation.
9. according to claim 6 or 7 said network access methods, it is characterized in that: said Wireless Communication Equipment is a 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 true CN102548022A (en) 2012-07-04
CN102548022B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602362A (en) * 2014-12-08 2015-05-06 深圳市广和通实业发展有限公司 WIFI based Point to Point Protocol (PPP) dial-up networking method and system

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

Cited By (2)

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

Also Published As

Publication number Publication date
CN102548022B (en) 2015-05-20

Similar Documents

Publication Publication Date Title
US11856627B2 (en) Communication method and apparatus
CN105637905B (en) For realizing the methods, devices and systems of PDN connection
CN104054375B (en) Method and apparatus for transmitting routing packets stream on radio at two
CN103441996B (en) The method and system of concurrent transmission file
RU2019133658A (en) DATA TRANSMISSION METHOD, ACCESS NETWORK DEVICE, TERMINAL AND COMMUNICATION SYSTEM
WO2018119235A1 (en) Methods and apparatus for aggregating network access within a single unified platform for a myriad of devices
JP6028292B2 (en) Data partitioning method and device
CN105722058A (en) User equipment and information forwarding method
CN104247499B (en) Data pack transmission method, system and terminal device and the network equipment
CN102404221A (en) Multi-link aggregated data transmitting method and system
US7301918B2 (en) Fixed cellular terminal with packet data transmission over analog interface
JP2006229980A (en) Combining multiple physical traffic channels in wireless communication system
CN102438331B (en) A kind of mobile terminal is by the method and system of surfing Internet with cell phone
WO2006032213A1 (en) A wireless network structure and a data transmission implementing method by applying the wireless network structure
CN105873011B (en) The transmission of group service data, control method, device and equipment
WO2010012152A1 (en) Method and equipment for implementing data transmission in wireless network
WO2015051703A1 (en) Method for orderly managing multi-path apn concurrent networking data transmission channel
US9755793B2 (en) Heterogeneous network integrating device and method thereof
CN109905884B (en) Indoor coverage system
CN102548022B (en) Network access device and network access method
WO2011079563A1 (en) Method for establishing and releasing data connection, data transmission method and wireless data card
CN106471844A (en) Apparatus and method for internet protocol (ip) flow mobility
CN105392174B (en) Wirelessly from the data path selection method of trunk network in a kind of LTE system
EP1882349B1 (en) Internet communications between wireless base stations and service nodes
CN101179828B (en) Data acquisition method and system for implementing data acquisition in SCDMA system

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