CN100473038C - Method for supporting multiple Ethernet point-to-point protocol conversation by one Ethernet interface - Google Patents

Method for supporting multiple Ethernet point-to-point protocol conversation by one Ethernet interface Download PDF

Info

Publication number
CN100473038C
CN100473038C CNB2007101069447A CN200710106944A CN100473038C CN 100473038 C CN100473038 C CN 100473038C CN B2007101069447 A CNB2007101069447 A CN B2007101069447A CN 200710106944 A CN200710106944 A CN 200710106944A CN 100473038 C CN100473038 C CN 100473038C
Authority
CN
China
Prior art keywords
session
point
client
over ethernet
protocol over
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
CNB2007101069447A
Other languages
Chinese (zh)
Other versions
CN101039241A (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 CNB2007101069447A priority Critical patent/CN100473038C/en
Publication of CN101039241A publication Critical patent/CN101039241A/en
Application granted granted Critical
Publication of CN100473038C publication Critical patent/CN100473038C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method that the same Ethernet interface supports plural PPPoE sessions, which includes that: distribute an interface set of PPPoE session to each access client, Ethernet interface respectively adds the session interface set, and distribute unique value for each client; respectively establish a body of PPPoE session and configuration parameter of related session for each access client, and correlate the session body with the session interface set; trigger PPPoE session in the router of the client end for the client, the client initiates the session process of discovery stage of PPPoE session to the server by the session body, the client router distinguishes different client according to the unique value; when the session of discovery stage successes, the client triggers the stage session of the PPPoE session to the server, and transfers data, ends the session when completes. The invention solves the problem of physical bandwidth waste of the interface since each access client uses different interface.

Description

Same Ethernet interface is supported the method for a plurality of Point-to-Point Protocol over Ethernet sessions
Technical field
The present invention relates to a kind ofly when carrying out PPPoE (Point-to-Point Protocolover Ethernet, Point-to-Point Protocol over Ethernet) session on router device, same Ethernet interface can be supported the method for a plurality of pppoe sessions dialing.
Background technology
Along with the continuous development of broadband access technology, obtained the support of more and more broadband access equipments based on the point-to-point protocol (Point-to-PointProtocol Over Ethernet) of Ethernet.These equipment can not only be supported the transmitting-receiving of PPPoE protocol massages and data message, and can also support authentication protocol and dynamic routing protocol etc., realized to wide band access user charging, administer and maintain.Wide band access user can be divided into two kinds: personal user and group user.The personal user can move the software of realizing the PPPoE agreement on PC, use independently access account.Group user then is to realize the PPPoE agreement on the egress router of group user, and public one or more access account of whole group realizes with whole group being access control, authentication, charging and the management of unit.The patent No.: 03149501.X has proposed a kind of PPPoE protocol client of realizing on the local area network (LAN) egress router, come the method for access via telephone line.
Yet management for convenience for group user, wishes that inner different departments use different access accounts, insert public network as different access users.In PPPoE access technology in the past, this situation need be set up a plurality of pppoe session entities, and each session entity all wants corresponding ether interface as outgoing interface.Insert the user for each like this and divide the situation of using distinct interface, the band width in physical of greatly having wasted interface.
Summary of the invention
The method that technical problem to be solved by this invention has been to provide same Ethernet interface to support a plurality of Point-to-Point Protocol over Ethernet sessions solves each and inserts user and divide and use distinct interface, has greatly wasted the problem of the band width in physical of interface.
In order to solve the problems of the technologies described above, the invention provides same Ethernet interface and support the method for a plurality of Point-to-Point Protocol over Ethernet sessions, in the network that is applied to form, it is characterized in that, may further comprise the steps by Point-to-Point Protocol over Ethernet client, client router and server:
(1) distribute Point-to-Point Protocol over Ethernet session interface collection for each inserts client, described Ethernet interface adds above-mentioned session interface collection respectively, and is each client distribution unique value;
(2) be respectively each and insert client establishment Point-to-Point Protocol over Ethernet session entity and configuration associated session parameter thereof, and carry out related with the session interface collection described session entity;
(3) on client router, trigger the Point-to-Point Protocol over Ethernet session for inserting the client, described client is initiated Point-to-Point Protocol over Ethernet by the Point-to-Point Protocol over Ethernet session entity to server and is found the stage conversation procedure, and client router is distinguished different clients according to unique value;
(4) after the session success of the stage of discovery, user end to server is initiated the session of Point-to-Point Protocol over Ethernet session stage, and the line data of going forward side by side transmission finishes the Point-to-Point Protocol over Ethernet session after finishing.
Method of the present invention wherein, is initiated Point-to-Point Protocol over Ethernet and is found the stage conversation procedure described in the step (3), comprising:
(31) described client sends to activate and finds start packet, wherein comprises the unique value option;
(32) after described server is received activation discovery start packet by client router, send to activate and find grouping is provided, comprise the unique value option that comprises in the activation discovery start packet in this grouping; It is that client router can be distinguished by unique value for which client-side session;
(33) described client finds to provide grouping to obtain the opposite end target MAC (Media Access Control) address by activation, and sends activation discovery request grouping, comprises described unique value option in this grouping equally;
(34) after described server end received that the activation discovery asks to divide into groups, distribution identity functional value was also bound with described unique value, and transmission activation discovery authenticates divides into groups, and comprises described unique value option in this grouping equally;
(35) after described client is received and is activated discovery authentication grouping, the identity functional value that record distributes.
Method of the present invention, wherein, the associated session of configuration described in the step (2) parameter comprises: user name, password, negotiation option information.
Above-mentioned method, wherein, step further comprises in (34): distinguish different access clients by the identity functional value that distributes;
Wherein, described identity functional value is Session_id.
Method of the present invention, wherein, described unique value is Host_Uniq.
Method of the present invention, wherein, user end to server described in the step (4) is initiated the session of Point-to-Point Protocol over Ethernet session stage, further comprises:
At the Point-to-Point Protocol over Ethernet session stage, the Point-to-Point Protocol over Ethernet session entity of client carries out the relevant negotiation of point-to-point link agreement with the Point-to-Point Protocol over Ethernet session entity of described server.
Above-mentioned method, wherein, described relevant negotiation comprises: Password Authentication Protocol or enquirement-Challenge-Handshake Authentication Protocol, option negotiation.
Method of the present invention wherein, finishes the Point-to-Point Protocol over Ethernet session described in the step (4), further comprise:
Described client and server all can be found to stop dividing the session of group termination Point-to-Point Protocol over Ethernet by sending to activate, and distinguishes different access clients by the identity functional value, and communicating pair discharges the binding relationship of identity functional value and unique value.
Above-mentioned method, wherein, described activation is found to stop not comprising the unique value option in the grouping.
Compared with prior art, because the present invention has realized an Ethernet interface and can support a plurality of PPPoE to insert session simultaneously, therefore saved resource greatly, improved the utilance of resource, made more user carry out pppoe session by an Ethernet interface.Reach the effect of saving device resource, saved the space, improved usage ratio of equipment or the like.
Description of drawings
Fig. 1 is the present invention's PPPoE communication flow diagram of the prior art;
Fig. 2 is that the pppoe client in the embodiment of the invention inserts the networking diagram that the user provides access service with an Ethernet interface for a plurality of PPPoE;
Ethernet interface was supported the method flow diagram of a plurality of sessions when Fig. 3 was Point-to-Point Protocol over Ethernet session in the embodiment of the invention;
Fig. 4 is the networking diagram among the described embodiment of Fig. 3 of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments content of the present invention is elaborated.
As shown in Figure 1, be the PPPoE communication flow diagram, communication process is as follows:
Step 101, client initiatively send the PADI grouping;
After step 102, server end are received the PADI grouping, respond the PADO grouping to client;
After step 103, client are received the PADO grouping, send the PADR grouping for the server section;
Step 104, server end are distributed session_id after receiving the PADR grouping, send the PADS grouping to client;
Step 105 is carried out the PPP session;
Step 106, transfer of data;
Step 107, session stops, and client or server can send the PADT grouping, close current sessions.
As shown in Figure 2, be that pppoe client inserts the networking diagram that the user provides access service with an Ethernet interface for a plurality of PPPoE.The pppoe client router connects network provider PPPoE server by an Ethernet interface, for different departments in the group provide the PPPoE access service respectively.
Wherein, the main configuration order of PPPoE-Client:
1, permanent dial mode under the ether interface pattern
dialer?pppoe-client-pool-member?number?priority?permanent
2, dial on demand mode under the ether interface pattern
dialer?pppoe-client-pool-member?number?priority?on-demand
3, the Dialer interface modes is bound the dialing pond down
dialer?pool?number
4, the global configuration mode dial on demand triggering rule of giving a definition
dialer?list?group-number?protocol?ip{permit|deny|access-list?list-number}
5, the Dialer interface modes is bound the dial on demand triggering rule down
dialer?group?group-number
6, the Dialer interface modes dial on demand buffer queue length of giving a definition
dialer?hold-queue?number
7, the Dialer interface modes is given a definition the free time of dial on demand
dialer?idle-time?time
8, the Dialer interface modes dialing time-out time of giving a definition
dialer?wait-carrier?time
9, the Dialer interface modes dialing time again of giving a definition
dialer?speer-timeout?time
10, show the dialing pond
Show?dialer?pool
11, display session information
Show?pppoe-session-table
Shown in accompanying drawing 3, the enforcement of technical scheme is described in further detail:
Step 301 is distributed the pppoe session sets of interfaces for each inserts the user, and Ethernet interface adds these session collection respectively.For each user distributes the Host_ value.
Good session interface collection of configuration preplanning and access user's corresponding relation accomplishes that is inserted the corresponding session interface collection of user.Under the ether interface configuration mode of pppoe client router, dispose identical ether interface and add these pppoe session sets of interfaces.All session interface are concentrated and are only comprised an identical ether interface like this.Background program automatically on ether interface for each user distributes the Host_Uniq value, be used for distinguishing the different pppoe sessions on same ether interface.Strike under the ether interface pattern: dialer pppoe-client-pool-member12permanent is about to this Ethernet interface and joins in the dial set 1, and priority is 2, and dial mode is permant.
Step 302 is respectively each access user and creates the pppoe session entity.
Under pppoe client router global configuration mode,, each creates the pppoe session entity for inserting the user.Knock in interface dialerl<1-64 under the global schema 〉, promptly created a session entity.
Step 303, configuration associated session parameter on the PPPoE entity that inserts the user respectively.
Relevant parameters such as the user name of configuration PPP, password, negotiation option information; Can the configure user name under the dialer interface modes, relevant parameter such as password, promptly added user name name as ppp chap hostname name.
Carry out the PPPoE entity related with the session interface collection of having created separately.Knock under the dialer interface: dialer pool num is about to this PPPoE entity and has carried out related with the session interface collection of having created separately.
Step 304 triggers pppoe session for inserting the user on the pppoe client router.PPPoE initiates to distinguish different users by the Host_Uniq option in the discovery stage conversation procedure.
PPPoE initiates the session of discovery stage, distinguishes different users by the Host_Uniq option, and each user carries out PPPoE respectively and finds the stage session, and is as follows according to its communication process of rfc2516:
1, client sends PADI (PPPoE Active Discovery Initiation, it is initial to activate discovery) grouping, comprises the Host_Uniq option in the PADI grouping.
2, server end is received the PADI grouping, and PADO (PPPoE Active DiscoveryOffer activates and finds to provide) grouping is provided, and comprises the Host_Uniq option that comprises in the PADI grouping in the PADO grouping.It is which user's session that client can be distinguished by Host_Uniq.
3, client is obtained the opposite end target MAC (Media Access Control) address by the PADO grouping, sends PADR (PPPoE Active Discovery Request activates the request of discovery) request and inserts grouping, comprises the same Host_Uniq option with PADO in the PADR grouping.
4, after server end is received PADR grouping, distribute Session_id and and the Host_Uniq binding, send PADS, comprise equally among the PADS and identical Host_Uniq option during PADR divides into groups.
5, after client is received PADS (PPPoE Active Discovery Session-confirmation activates and finds authentication) grouping, record Session_id; PPPoE finds the stage conversation end.
Step 305, PPPoE finds stage session success, initiates the session of pppoe session stage; In this process, distinguish different access users by Session_id.
In the pppoe session stage, client PPPoE entity carries out the relevant negotiation of ppp protocol with the pppoe session entity of PPPoE server end, comprise: PAP (Password AuthenticationProtocol, Password Authentication Protocol) or CHAP (Challenge/Handshake AuthenticationProtocol, enquirement-Challenge-Handshake Authentication Protocol) authentication, option negotiation or the like; In this process, distinguish different access users by Session_id.
Step 306, transfer of data is carried out in the pppoe session success.In this process, distinguish different access users by Session_id.
After the pppoe session success, carry out normal transfer of data.In this process, distinguish different access users by Session_id.
Step 307 finishes pppoe session, distinguishes different access users by Session_id
The client and server end can send PADT (PPPoE Active DiscoveryTerminate activates and finds to stop) and divide the group termination pppoe session; Do not comprise the Host_Uniq option in the PADT grouping; Distinguish different access users by Session_id; Communicating pair discharges the binding relationship of Session_id and Host_Uniq.
In sum, the present invention seeks to be used for the pppoe session ether interface and to support a plurality of pppoe sessions simultaneously, make a plurality of users carry out session simultaneously, make full use of and save resource, given full play to usage ratio of equipment by an interface in order to allow.Simultaneously can on this basis, rationally utilize Internet resources to greatest extent, various broadbands flexibly dial business is provided.
The PPPoE-Client profile instance that forever dials
As shown in Figure 4, R1 forever dials to PPPoE-Server as PPPoE-Client, and the PPP virtual interface on the Client is not gone up learned addresses from Server.PPPoE-Server is the CISCO router, has configured the Server function.
The configuration of R1:
ZXR10(config)#interface?fei_1/1
ZXR10(config-if)#dialer?pppoe-client-pool-member?11?permanent
ZXR10(config-if)#exit
ZXR10(config)#interface?dialerl
ZXR10(config-if)#ip?address?10.10.1.2255.255.255.0
ZXR10(config-if)#dialer?pool?1
ZXR10(config-if)#exit
If the PPP virtual interface on the Client is gone up learned addresses from Server, then do not dispose the ip address on the dailer interface, the configuration of R1:
ZXR10(config)#interfacefei_1/1
ZXR10(config-if)#dialer?pppoe-client-pool-member?11?permanent
ZXR10(config-if)#exit
ZXR10(config)#interface?dialerl
ZXR10(config-if)#dialer?pool?1
ZXR10(config-if)#exit
PPPoE-Client dial on demand profile instance
As shown in Figure 4, R1 carries out dial on demand as PPPoE-Client to PPPoE-Server, and the PPP virtual interface on the Client is not gone up learned addresses from Server.PPPoE-Server is the CISCO router, has configured the Server function.
The configuration of R1:
ZXR10(config)#interfacefei_1/1
ZXR10(config-if)#dialer?pppoe-client-pool-member?11?on-demand
ZXR10(config-if)#exit
ZXR10(config)#dialer?list?1?protocol?ip?permit
ZXR10(config)#interface?dialer?1
ZXR10(config-if)#ip?address?10.10.1.2255.255.255.0
ZXR10(config-if)#dialer?pool?1
ZXR10(config-if)#dialer?group?1
ZXR10(config-if)#exit
If the PPP virtual interface on the Client is gone up learned addresses from Server, then do not dispose the ip address on the dailer interface, the configuration of R1:
ZXR10(config)#interfacefei_1/1
ZXR10(config-if)#dialer?pppoe-client-pool-member?1?lon-demand
ZXR10(config-if)#exit
ZXR10(config)#dialer?list?1?protocol?ip?permit
ZXR10(config)#interface?dialerl
ZXR10(config-if)#dialer?pool?1
ZXR10(config-if)#dialer?group?1
ZXR10(config-if)#exit
Compared with prior art, the method that the embodiment of the invention provides has following technique effect: solve each and insert user and divide and use distinct interface, greatly wasted the problem of the band width in physical of interface.Be used for ether interface support a plurality of dialing simultaneously of pppoe session, make a plurality of users carry out session simultaneously, make full use of and save resource by an ether interface.
The above only is an illustrated embodiment of the present invention, should know that this can have many modification, this modification is not considered to break away from the spirit and scope of illustrated embodiment of the present invention, and the conspicuous modification of all such those of ordinary skills is within the scope of the appended claims involved.

Claims (10)

1, same Ethernet interface is supported the method for a plurality of Point-to-Point Protocol over Ethernet sessions, in the network that is applied to be made up of Point-to-Point Protocol over Ethernet client, client router and server, it is characterized in that, may further comprise the steps:
(1) distribute Point-to-Point Protocol over Ethernet session interface collection for each inserts client, described Ethernet interface adds above-mentioned session interface collection respectively, and is each client distribution unique value;
(2) be respectively each and insert client establishment Point-to-Point Protocol over Ethernet session entity and configuration associated session parameter thereof, and carry out related with the session interface collection described session entity;
(3) on client router, trigger the Point-to-Point Protocol over Ethernet session for inserting the client, described client is initiated Point-to-Point Protocol over Ethernet by the Point-to-Point Protocol over Ethernet session entity to server and is found the stage conversation procedure, and client router is distinguished different clients according to unique value;
(4) after the session success of the stage of discovery, user end to server is initiated the session of Point-to-Point Protocol over Ethernet session stage, and the line data of going forward side by side transmission finishes the Point-to-Point Protocol over Ethernet session after finishing.
2, the method for claim 1 is characterized in that, initiates Point-to-Point Protocol over Ethernet described in the step (3) and finds the stage conversation procedure, comprising:
(31) described client sends to activate and finds start packet, wherein comprises the unique value option;
(32) after described server is received activation discovery start packet by client router, send to activate and find grouping is provided, comprise the unique value option that comprises in the activation discovery start packet in this grouping; It is that client router can be distinguished by unique value for which client-side session;
(33) described client finds to provide grouping to obtain the opposite end target MAC (Media Access Control) address by activation, and sends activation discovery request grouping, comprises described unique value option in this grouping equally;
(34) after described server end received that the activation discovery asks to divide into groups, distribution identity functional value was also bound with described unique value, and transmission activation discovery authenticates divides into groups, and comprises described unique value option in this grouping equally;
(35) after described client is received and is activated discovery authentication grouping, the identity functional value that record distributes.
3, the method for claim 1 is characterized in that, the associated session of configuration described in the step (2) parameter comprises: user name, password, negotiation option information.
4, method as claimed in claim 2 is characterized in that, step further comprises in (34): distinguish different access clients by the identity functional value that distributes.
5, method as claimed in claim 4 is characterized in that, described identity functional value is Session_id.
6, the method for claim 1 is characterized in that, described unique value is Host_Uniq.
7, the method for claim 1 is characterized in that, user end to server described in the step (4) is initiated the session of Point-to-Point Protocol over Ethernet session stage, further comprises:
At the Point-to-Point Protocol over Ethernet session stage, the Point-to-Point Protocol over Ethernet session entity of client carries out the relevant negotiation of point-to-point link agreement with the Point-to-Point Protocol over Ethernet session entity of described server.
8, method as claimed in claim 7 is characterized in that, described relevant negotiation comprises: Password Authentication Protocol or enquirement-Challenge-Handshake Authentication Protocol, option negotiation.
9, method as claimed in claim 2 is characterized in that, finishes the Point-to-Point Protocol over Ethernet session described in the step (4), further comprises:
Described client and server all can be found to stop dividing the session of group termination Point-to-Point Protocol over Ethernet by sending to activate, and distinguishes different access clients by the identity functional value, and communicating pair discharges the binding relationship of identity functional value and unique value.
10, method as claimed in claim 9 is characterized in that, described activation is found to stop not comprising the unique value option in the grouping.
CNB2007101069447A 2007-05-14 2007-05-14 Method for supporting multiple Ethernet point-to-point protocol conversation by one Ethernet interface Expired - Fee Related CN100473038C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101069447A CN100473038C (en) 2007-05-14 2007-05-14 Method for supporting multiple Ethernet point-to-point protocol conversation by one Ethernet interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101069447A CN100473038C (en) 2007-05-14 2007-05-14 Method for supporting multiple Ethernet point-to-point protocol conversation by one Ethernet interface

Publications (2)

Publication Number Publication Date
CN101039241A CN101039241A (en) 2007-09-19
CN100473038C true CN100473038C (en) 2009-03-25

Family

ID=38889893

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101069447A Expired - Fee Related CN100473038C (en) 2007-05-14 2007-05-14 Method for supporting multiple Ethernet point-to-point protocol conversation by one Ethernet interface

Country Status (1)

Country Link
CN (1) CN100473038C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136977B (en) * 2011-02-28 2015-04-01 中兴通讯股份有限公司 Dialing equipment and method for realizing virtual dialing according to user needs
CN102143233A (en) * 2011-04-07 2011-08-03 深圳市共进电子有限公司 Customer premise equipment and network accessing method
KR20140054425A (en) * 2011-09-30 2014-05-08 후아웨이 테크놀러지 컴퍼니 리미티드 Method and apparatus for network dialing

Also Published As

Publication number Publication date
CN101039241A (en) 2007-09-19

Similar Documents

Publication Publication Date Title
EP1535449B1 (en) System and method for dynamic simultaneous connection to multiple service providers
EP2096798B1 (en) Dynamic profile system for resource access control
CN101110847B (en) Method, device and system for obtaining medium access control address
US20040006708A1 (en) Method and apparatus for enabling peer-to-peer virtual private network (P2P-VPN) services in VPN-enabled network
US7630386B2 (en) Method for providing broadband communication service
JP2009513078A5 (en)
CN1951071A (en) Device for the session-based transmission of packets
AU2001247630A1 (en) Method and apparatus for coordinating a change in service provider between a client and a server with identity based service access management
JP2006148648A (en) User terminal connection control method and device
EP2636188B1 (en) Apparatus and methods for multimode internetworking connectivity
AU2001245903A1 (en) Method and apparatus for coordinating user selection of network service providers over a broadband communications network
JP5128626B2 (en) Subscriber service selection over non-channelized media
ZA200605000B (en) Resource sharing broadband access system, methods, and devices
WO2007072121A1 (en) Facilitating integrated web and telecommunication services with collaborating web and telecommunication clients
US6928463B1 (en) Broadband content delivery via personal content tunnel
CN100561969C (en) A kind of broad band access method based on PPPoE
EP1704670A1 (en) Multiple services with policy enforcement over a common network
CN100473038C (en) Method for supporting multiple Ethernet point-to-point protocol conversation by one Ethernet interface
EP2073432B1 (en) Method for binding an access terminal to an operator and corresponding access terminal
WO2009006770A1 (en) Method of p2p node management
CN100488148C (en) Method for realizing interface backup for Ethernet-based point-to-point protocol conversation
CN100356741C (en) A method and apparatus for implementing network access control based on link layer protocol
CN101030877B (en) Method for realizing packet broadcasting service by point-to-point protocol
CN100488192C (en) Method for implementing dedicated network access by using PPPOE protocol
WO2009095532A1 (en) Method, communication arrangement, server arrangement and computer program product for establishing a communication connection

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: 20090325

Termination date: 20150514

EXPY Termination of patent right or utility model