CN1270532C - Method for supporting asymmetrie digital subscriber line access in embedded operating system - Google Patents

Method for supporting asymmetrie digital subscriber line access in embedded operating system Download PDF

Info

Publication number
CN1270532C
CN1270532C CN 02142340 CN02142340A CN1270532C CN 1270532 C CN1270532 C CN 1270532C CN 02142340 CN02142340 CN 02142340 CN 02142340 A CN02142340 A CN 02142340A CN 1270532 C CN1270532 C CN 1270532C
Authority
CN
China
Prior art keywords
point
ethernet
protocol
data
transmits
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
CN 02142340
Other languages
Chinese (zh)
Other versions
CN1482806A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 02142340 priority Critical patent/CN1270532C/en
Publication of CN1482806A publication Critical patent/CN1482806A/en
Application granted granted Critical
Publication of CN1270532C publication Critical patent/CN1270532C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention discloses a method for supporting the asymmetric line access of digital users in an embedded operating system, which relates to video and audio data transmitting methods in the field of electric communication. The present invention comprises steps that the establishment of a session process is started through PPPOE protocol stacks, an address discovering stage is completed, the address of an Ethernet for hardware at the terminal of an access server is determined, and a PPPOE session identifier is established; the server establishes a connection for a user and dynamically allocates an IP address to the user; the IP address is dynamically bound with a network protocol stack module to ensure the clearness of data sending and receiving channels of network application; a data meeting stage is established, all the original IP data packets pass through PPP protocol stacks and PPPOE protocol stacks again and are packaged and reframed at a sending party, and packet headers are removed step by step at a receiving party while only IP data is left behind so that the conformity of the data packets to a frame format transmitted on ADSL links is ensured. The present invention fully utilizes network resources of broadband services and saves the expenditure of lines.

Description

In embedded OS, support the method that Asymmetrical Digital Subscriber Line inserts
Technical field
The present invention relates to the method that video/audio transmits in the electric communication field, relate in particular to the method that inserts in Integrated Meeting Tv Terminal internal support Asymmetrical Digital Subscriber Line (ADSL).
Background technology
The ADSL network access technique is used by users at present, and a large amount of point-to-point protocols (PPPOE:Point-to-Point Protocol over Ethernet) that transmit on Ethernet that adopt of the broadband access equipment of supporting this ADSL access technology realize, the PPPOE protocol description adopt Ethernet to be used as carrying the implementation of a kind of broadband access of user's PPP(Point-to-Point Protocol) data link, the broadband user connects (PPPOE client dialing) through broadband access network access band access device by fixedly connected or virtual dial-up, and selects corresponding service.
The use of PPPOE client dialing software at present only is confined to Unix, Linux and windows platform, can't be applied on the miniaturization terminal platform of embedded OS, the meaning that realizes this cut-in method on this incorporate terminal is to make full use of existing Internet resources, both can guarantee original network interface mode of integrated terminal and whole style, can make full use of charging and authentication function in this access service again.
Summary of the invention
Technical problem to be solved by this invention is to go up the method that realizes that ADSL inserts at the incorporate terminal platform of video conferencing (embedded OS).
The method of supporting Asymmetrical Digital Subscriber Line to insert in embedded OS of the present invention is the client dialing at the inner PPPOE of realization of video conference terminal, the implementation procedure of the point-to-point protocol that between original NIC driver and network protocol stack (PNA) module, has added point-to-point protocol and on Ethernet, transmitted, concrete steps are as follows:
The first step: receive and send on the basis of data in NIC driver, begin to set up conversation procedure by the PPPOE protocol stack, finish address discovery (Discovery) stage, determine hardware Ethernet (MAC) address of access server side and set up PPPOE session identification, i.e. a SESSION_ID;
Second step: after finishing through the negotiation of ppp protocol stack with to the authentication of username and password, server has been just for this user has set up connection (being session), and is this user's dynamic assignment to IP address;
The 3rd step: utilize above-mentioned IP address,, guarantee network application the unimpeded of passage that transmit and receive data with network protocol stack module dynamic binding;
The 4th step: set up the data conferencing stage, in conference process, can be divided into the data flow of receive direction and the data flow of sending direction by data flow, the packet of original IP traffic all will pass through ppp protocol stack and PPPOE protocol stack again, at the transmit leg framing again of packing, stay the IP data in recipient packet header of progressively dismantling, to guarantee to meet the frame format that on adsl link, transmits.
Adopt the method for the invention, made full use of the Internet resources of broadband services, the expenses of having saved circuit, for the applications expanding of video conference scope, reached the effect that universal video conference is used.
Description of drawings
Fig. 1 is the flow chart of the method for the invention.
Fig. 2 is when realizing the method for the invention and the interface data flow graph of other modules of system.
Fig. 3 is the flow chart in address discovery stage among the PPPOE.
Fig. 4 is the link establishment flow chart of point-to-point protocol.
Fig. 5 is the process chart of conference phase recipient among the PPPOE.
Fig. 6 is the flow chart of conference phase transmit leg among the PPPOE.
Embodiment
Below in conjunction with drawings and the embodiments technical scheme of the present invention is described further.
Fig. 1 is the step that the ADSL cut-in method comprises that realizes in embedded system of the present invention:
The first step: receive and send on the basis of data in NIC driver, begin to set up conversation procedure by the PPPOE protocol stack, finish address discovery (Discovery) stage, determine the ethernet mac address of access server side and set up a PPPOE Session ID, be SESSION_ID, PPPOE be exactly on the ethernet medium of sharing the ID by the PPPOE session guarantee point-to-point communication with source/target MAC (Media Access Control) address;
Second step: after finishing through the negotiation of ppp protocol stack with to the authentication of username and password, server has been just for this user has set up connection (session), and is this user's dynamic assignment to IP address;
The 3rd step: utilize above-mentioned IP address,, guarantee network application the unimpeded of passage that transmit and receive data with PNA module dynamic binding;
The 4th step: set up data conferencing, in conference process, can be divided into receive direction and sending direction by data flow, original IP packet all will pass through ppp protocol stack and PPPOE protocol stack again, at the transmit leg framing again of packing, stay the IP data in recipient packet header of progressively dismantling, to guarantee to meet the frame format that on adsl link, transmits.
Figure 2 shows that when realizing the method for the invention and the interface data flow graph of other modules of system, the ppp protocol stack and the PPPOE protocol stack program that realize the required adding of this method are inserted between original NIC driver and the PNA module, and original network data flow all needs to handle through the framing of ppp protocol stack and PPPOE protocol stack again.
Process shown in Figure 3 is the processing procedure in (Discover) stage of address discovery among the PPPOE:
The first step: when the user need connect, finish the input of username and password after, promptly satisfied to send the condition that packet (PADI:PPPOE Active DiscoveryInitiation) is initiated in session;
Second step: PADI packet of PPPOE dial-up terminal broadcasting, described packet has comprised required service or service quality, and this packet is used for seeking an access server into self;
The 3rd step: after a plurality of access servers in the network receive the PADI packet that PPPOE dialing main frame sends over, if access server can provide requested service for this PADI packet, then returning a session provides packet (PADO:PPPOE Active DiscoveryOffer) as replying, after terminal is received the PADO packet, therefrom select the access server of a conduct oneself;
The 4th step: the dial-up terminal will send the conversation request packet (PADR:PPPOE Active Discovery Request) of a clean culture to this access server, after access server received a PADR packet, it just began to prepare to start the negotiation of a ppp link;
The 5th the step: access server be unique session identification of this PPPOE conversation establishing, and produce a session specified data bag (PADS:PPPOE Acitve DiscoverySession-Confirmation) be used as the response;
The 6th step: when receiving an effective session identification, the PPPOE agreement by the address discovery step transition to the meeting stage.
In the process of waiting for PADO bag and PADS bag, be provided with a timeout treatment mechanism,, then get back to initial state and wait for connection procedure next time if in official hour, do not obtain corresponding packet.
Fig. 4 carries out the flow chart that point-to-point link is set up process in the ppp protocol stack, step is as follows:
The first step: the whole negotiation flow process of beginning LCP (LCP:Link Control Protocol), with configuration and tests data-link;
Second step: the LCP just begins to carry out verification process after consulting to finish, and authentication processing adopts the authentication mode that consults at the LCP negotiation phase that user name and the password that the user imports authenticated;
The 3rd step: behind the authentication success, carry out IP control protocol (IPCP:Internet ProtocolControl Protocol) negotiations process, the PPPOE session enters the link connection status after the PPP ipcp negotiation finishes;
The 4th step: obtain dynamically or fixed IP addresses,, promptly can carry out the transmitting-receiving of User IP data this moment and handle with PNA module dynamic binding.
Fig. 5 and Fig. 6 have shown the process of PPPOE conference phase data processing, and the data flow of indication can be divided into two kinds substantially here, and a kind of is the simple data that are used for protocol negotiation, and another kind is the common IP data by the network application generation.
Process shown in Figure 5 is the processing procedure of conference phase recipient among the PPPOE:
This process is by the reception down trigger of network port driving program, by the data of network port driving program intercepts to the PPPOE type, remove the Ethernet frame head, be sent to the PPPOE protocol stack, if receive the packet in Discover stage, only handle meeting and stop packet (PADT:PPPOE ActiveDiscovery Terminate), show that this PPPOE session terminates.The packet in other Discover stage then abandons.If receive the data message of PPPOE session stage, what encapsulated in the PPPOE load this moment is the PPP information frame of standard, and this PPP information frame starts from the protocol-identifier of PPP, can distinguish protocol negotiation data or the IP data of PPP according to the protocol-identifier of PPP,
If the protocol negotiation data of PPP, just enter the state machine handling procedure of PPP, mainly carry out point-to-point link establishment process and status poll; If the IP data are removed the ppp protocol head, deliver in the PNA module, deliver to web application on it by the PNA module.
Process shown in Figure 6 is the processing procedure of conference phase transmit leg among the PPPOE:
At sending direction, the data of the protocol negotiation of PPP are at first sent through the ppp protocol state machine, load protocol header in ppp protocol stack and PPPOE protocol stack, deliver to and stamp the Ethernet frame head in the network port driving program, deliver on the Ethernet; The protocol negotiation data of PPPOE are sent by the task of PPPOE agreement, load protocol header in the PPPOE protocol stack, deliver to and stamp the Ethernet frame head in the network port driving program, deliver on the Ethernet; And send by the PNA module by the IP data that network application produces, in ppp protocol stack and PPPOE protocol stack, load protocol header, deliver to again and stamp the Ethernet frame head in the network port driving program, deliver on the Ethernet.
In the implementation procedure of Fig. 5, Fig. 6, utilize following principle to optimize the flow process of PPPOE and ppp protocol stack deal with data, then more can accelerate the speed of data processing.
For the processing method of general PPP and the recommendation of PPPOE agreement, because it will be applicable to the multiple network environment respectively, on some is handled, the repetition part is arranged, then its merger is handled, can save the agreement implementation time like this.Mainly contain two places for such processing: the one, clearly stipulated the lcp option of not recommending and banning use of in the PPPOE agreement, for example address and control domain protocol domain compression options, ppp protocol stack program is simplified, PPP begins to be used in serial link and the Modem during dialing uses because these options have plenty of, and is not suitable for ethernet medium.The 2nd, because ppp protocol is in order to transmit bag on string line, the frame that need increase oneself in its bag defines symbol, and PPPOE wraps in and transmits on the Ethernet, tangible frame boundaries is arranged, do not need frame to define symbol, so at sending direction, the ppp protocol stack can save when loading frame head and add the time that frame defines symbol, can save in the processing of PPPOE protocol stack again and remove the time that frame defines symbol; At receive direction, the PPPOE protocol stack also need not be done the data of having removed the PPPOE frame head to add the processing that frame defines symbol, gives the ppp protocol stack again and handles, to save the processing time.

Claims (7)

1, in embedded OS, supports the method that Asymmetrical Digital Subscriber Line inserts, be implemented in the client dialing of the point-to-point protocol that transmits on the Ethernet in video conference terminal inside, the implementation procedure of the point-to-point protocol that it is characterized in that between original NIC driver and network protocol stack module, having added point-to-point protocol and on Ethernet, transmit, concrete steps are as follows:
The first step: receive and send on the basis of data in NIC driver, begin to set up conversation procedure by the point-to-point protocol stack that on Ethernet, transmits, finish the address discovery stage, determine the hardware ethernet address of access server side and set up the point to point protocol session sign that on Ethernet, transmits, i.e. a SESSION_ID;
Second step: after finishing through the negotiation of point-to-point protocol stack with to the authentication of username and password, server has been just for this user has set up connection, i.e. session, and be this user's dynamic assignment to IP address;
The 3rd step: utilize above-mentioned IP address,, guarantee network application the unimpeded of passage that transmit and receive data with network protocol stack module dynamic binding;
The 4th step: set up the data conferencing stage, in conference process, be divided into the data flow of receive direction and the data flow of sending direction by data flow, the point-to-point protocol stack that the packet of original IP traffic all will pass through the point-to-point protocol stack and transmit on Ethernet again, at the transmit leg framing again of packing, stay the IP data in recipient packet header of progressively dismantling, to guarantee to meet the frame format that on the asymmetrical digital subscriber link, transmits.
2, the method for supporting the Asymmetrical Digital Subscriber Line access in embedded OS as claimed in claim 1 is characterized in that the processing procedure in described address discovery stage is as follows:
The first step: when the user need connect, finish the input of username and password after, promptly satisfy to send the condition that packet is initiated in session;
Second step: packet is initiated in the point-to-point protocol dial-up terminal session of broadcasting that transmits on Ethernet, and described packet comprises required service or service quality, and this packet is used for seeking an access server into self;
The 3rd step: when a plurality of access servers in the network receive after session that the point-to-point protocol dialing main frame that transmitting on the Ethernet sends over initiates packet, if access server can be initiated packet for this session requested service is provided, then returning a session provides packet as replying, after terminal receives that session provides packet, therefrom select the access server of a conduct oneself;
The 4th step: the dial-up terminal will send the conversation request packet of a clean culture to this access server, after access server receives a conversation request packet, begin to prepare to start the negotiation of a point-to-point protocol link;
The 5th step: access server is created a unique session identification for this point to point protocol session that transmits on Ethernet, and produces a session specified data bag and be used as responding;
The 6th step: when receiving an effective session identification, the point-to-point protocol that transmits on the Ethernet by the address discovery step transition to the meeting stage.
3, the method for in embedded OS, supporting the Asymmetrical Digital Subscriber Line access as claimed in claim 2, it is characterized in that: be provided with a timeout treatment mechanism waiting for that session provides in the process of packet and session specified data bag, if in official hour, do not obtain corresponding packet, then get back to initial state and wait for connection procedure next time.
4, the method for supporting the Asymmetrical Digital Subscriber Line access in embedded OS as claimed in claim 1 is characterized in that the described process that connection is set up in the point-to-point protocol stack is as follows:
The first step: the whole negotiation flow process of beginning LCP, configuration and tests data-link;
Second step: LCP carries out verification process after consulting to finish, and authentication processing adopts the authentication mode that consults at the LCP negotiation phase that user name and the password that the user imports authenticated;
The 3rd step: behind the authentication success, carry out the IP control protocol negotiations process, after point-to-point protocol, IP control protocol are consulted to finish, enter the link connection status at the point to point protocol session that transmits on the Ethernet;
The 4th step: obtain dynamically or fixed IP addresses,, can carry out the transmitting-receiving of User IP data and handle with network protocol stack module dynamic binding.
5, the method for supporting the Asymmetrical Digital Subscriber Line access in embedded OS as claimed in claim 1 is characterized in that described conference phase recipient's processing procedure is as follows:
By the data of network port driving program intercepts to the point-to-point protocol type that on Ethernet, transmits, remove the Ethernet frame head, be sent to the point-to-point protocol stack that transmits on the Ethernet;
If receive the packet in discovery stage, only to handle meeting and stop packet, the point to point protocol session that this time transmits on Ethernet terminates; The packet in other discovery stage then abandons;
If receive the data message in the point to point protocol session stage of transmitting on Ethernet, differentiation is the protocol negotiation data or the IP data of point-to-point protocol;
If the protocol negotiation data of point-to-point protocol just enter the state machine handling procedure of point-to-point protocol, carry out point-to-point link establishment process and status poll;
If the IP data are removed the point-to-point protocol head, deliver in the network protocol stack module, deliver to web application by the network protocol stack module.
6, the method for supporting the Asymmetrical Digital Subscriber Line access in embedded OS as claimed in claim 1 is characterized in that the processing procedure of described conference phase transmit leg is as follows:
The protocol negotiation data of point-to-point protocol are at first sent through the point-to-point protocol state machine, load protocol header in the point-to-point protocol stack that transmits on point-to-point protocol stack and Ethernet, deliver to and stamp the Ethernet frame head in the network port driving program, deliver on the Ethernet;
The task of the point-to-point protocol that transmits on by Ethernet in the protocol negotiation data of the point-to-point protocol that transmits on the Ethernet is sent, load protocol header in the point-to-point protocol stack that on Ethernet, transmits, deliver to again and stamp the Ethernet frame head in the network port driving program, deliver on the Ethernet;
Send by the network protocol stack module by the IP data that network application produces, load protocol header in the point-to-point protocol stack that on point-to-point protocol stack and Ethernet, transmits, deliver to again and stamp the Ethernet frame head in the network port driving program, deliver on the Ethernet.
7,, it is characterized in that utilizing the point-to-point protocol that following principle optimization transmits and the flow process of point-to-point protocol stack deal with data on Ethernet as claim 5 or the 6 described methods of supporting that in embedded OS Asymmetrical Digital Subscriber Line inserts:
In the processing for the point-to-point protocol recommendation that transmits on general point-to-point protocol and the Ethernet repetition part is arranged, then its merger is handled:
For the LCP option of clearly having stipulated in the point-to-point protocol that transmits on the Ethernet not recommend and ban use of, point-to-point protocol stack program is simplified;
At sending direction, when the point-to-point protocol stack loads frame head, do not need to increase frame and define symbol, save equally in the point-to-point protocol stack that on Ethernet, transmits and remove the processing that frame defines symbol;
At receive direction, the point-to-point protocol stack that transmits on the Ethernet need not do to add the processing that frame defines symbol on the data of having removed the point-to-point protocol frame head that transmits on the Ethernet.
CN 02142340 2002-09-13 2002-09-13 Method for supporting asymmetrie digital subscriber line access in embedded operating system Expired - Fee Related CN1270532C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02142340 CN1270532C (en) 2002-09-13 2002-09-13 Method for supporting asymmetrie digital subscriber line access in embedded operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02142340 CN1270532C (en) 2002-09-13 2002-09-13 Method for supporting asymmetrie digital subscriber line access in embedded operating system

Publications (2)

Publication Number Publication Date
CN1482806A CN1482806A (en) 2004-03-17
CN1270532C true CN1270532C (en) 2006-08-16

Family

ID=34148017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02142340 Expired - Fee Related CN1270532C (en) 2002-09-13 2002-09-13 Method for supporting asymmetrie digital subscriber line access in embedded operating system

Country Status (1)

Country Link
CN (1) CN1270532C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1303780C (en) * 2004-05-18 2007-03-07 Ut斯达康通讯有限公司 Broadband user calling charging method
CN100442735C (en) * 2005-06-30 2008-12-10 华为技术有限公司 Dynamic configuration insertion terminal realizing method
CN101312412B (en) * 2007-05-25 2013-07-24 北京中电华大电子设计有限责任公司 Ethernet transmission system based on embedded technique
CN101365238B (en) * 2007-08-06 2013-01-09 华为技术有限公司 Session converting method and apparatus
CN101616056B (en) * 2008-06-24 2012-10-17 重庆广用通信技术有限责任公司 Shunt-stream method and shunt-stream gateway breaking through PPPoE technical limitation and network structure of the shunt-stream gateway
CN101854339B (en) * 2009-04-03 2014-07-09 华为技术有限公司 Information transmission implementation method, module and transmission network node
CN106936718B (en) * 2017-03-30 2019-12-13 网宿科技股份有限公司 PPPoE message transmission method and PPPoE server

Also Published As

Publication number Publication date
CN1482806A (en) 2004-03-17

Similar Documents

Publication Publication Date Title
US7047561B1 (en) Firewall for real-time internet applications
US6041356A (en) Method and apparatus for detecting network traffic and initiating a dial-up connection using separate upstream and downstream devices
CN1309233C (en) Method for supporting PPPoA on wideband switch-in equipment
MXPA01012532A (en) Establishing a packet network call between a mobile terminal device and an interworking function.
WO2000079765A1 (en) Reverse tunneling methods and apparatus for use with private computer networks
US8787370B2 (en) Method and apparatus for transmitting packet switch domain service data
CN1658587A (en) VoIP wireless telephone system and method utilizing wireless LAN
EP2525531B1 (en) Method and network access device for enabling data forwarding between different physical media
CN100561969C (en) A kind of broad band access method based on PPPoE
EP1792408A2 (en) System and method for network-assisted connection in a wireless environment
CN1553674A (en) Method for wideband connection server to obtain port numbers of its uers
WO2017080335A1 (en) Pppoe network-based dialing method, dialing system, and router
CN1270532C (en) Method for supporting asymmetrie digital subscriber line access in embedded operating system
US20080259932A1 (en) Method and System for Facilitating a First and Second Protocol Between a Data Processing System and an ISP
CN101030876A (en) Method for realizing PPPoE packet-broadcasting service
CN1889487A (en) Dynamic configuration insertion terminal realizing method
JP3823055B2 (en) Effective multilink flow handling
CN1787523A (en) Method for dynamic opening network address converting and fire proofing wall port
JP2003008611A (en) Data relay device and data relay method
CN101039242A (en) Method for realizing interface backup for Ethernet-based point-to-point protocol conversation
CN1780294A (en) Melthod for realizing virtual special network based on point-to-point protocol of Ethernet
WO2009018774A1 (en) A session connection method,apparatus and system in communication system
CN101123579A (en) A method, device and system for sharing server traffic
CN1859089A (en) Method for configurating terminal device
US20050108403A1 (en) Method, system, and program for transmitting packets

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

Granted publication date: 20060816

Termination date: 20150913

EXPY Termination of patent right or utility model