CN102394857B - Method, device and equipment for establishing point-to-point protocol session on Ethernet - Google Patents

Method, device and equipment for establishing point-to-point protocol session on Ethernet Download PDF

Info

Publication number
CN102394857B
CN102394857B CN201110179107.3A CN201110179107A CN102394857B CN 102394857 B CN102394857 B CN 102394857B CN 201110179107 A CN201110179107 A CN 201110179107A CN 102394857 B CN102394857 B CN 102394857B
Authority
CN
China
Prior art keywords
session
pppoe
message
information
pppoe client
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
CN201110179107.3A
Other languages
Chinese (zh)
Other versions
CN102394857A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201110179107.3A priority Critical patent/CN102394857B/en
Publication of CN102394857A publication Critical patent/CN102394857A/en
Application granted granted Critical
Publication of CN102394857B publication Critical patent/CN102394857B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, device and equipment for establishing a point-to-point protocol session on Ethernet. The method comprises the following steps: allocating a session identification for a PPPOE client after receiving a PADI (PPPOE active discovery initiation) message broadcast by the PPPOE client by a PPPOE (point-to-point protocol over Ethernet) server; storing session information according to the session identification; carrying the session identification into a PADO (PPPOE active discovery offer) message and transmitting the PADO message to the PPPOE client; acquiring the session information of the PPPOE client used for transmitting a PADR (PPPOE active discovery request) message according to the session identification carried in the PADR message; carrying out validity authentication on the PPPOE client according to the acquired session information; and transmitting a PADS (PPPOE active discovery sessionconfirmation) message after authentication is successful. By adopting the technical scheme of the invention, the problems that more processing resource of the PPPOE server is consumed when a PPPOE session is established, time for establishing the PPPOE session is longer and success rate for establishing the PPPOE session is reduced can be solved.

Description

Point to point protocol session method for building up, device and equipment on Ethernet
Technical field
The present invention relates to communication technical field, particularly relate to point to point protocol session method for building up, device and equipment on a kind of Ethernet.
Background technology
Point-to-point protocol (PPPOE on Ethernet, Point-to-Point Protocol over ethernet) be interception point end-to-end protocol (EEP) (PPP in ethernet networks, Point-to-Point Protocol) technology of frame information, PPPOE technology, by the extensibility of Ethernet and PPP and management controlling functions are combined, enables Internet Service Provider and telecom operators utilize reliable technology to accelerate deployment high speed interconnect network service.
The communication process of PPPOE comprises two stages: find (Discovery) stage and PPPOE session stage.The Discovery stage is the stage of setting up PPPOE session, in this stage, PPPOE client (Client) is selected to set up the PPPOE server (Server) providing access service, then this PPPOEServer is that this PPPOE Client distributes unique session (Session) mark (ID, Identity); After the Discovery stage sets up PPPOE session, PPPOE Client and PPPOE Server just enters PPPOE session stage, in this stage, PPPOE Client and PPPOEServer of built vertical PPPOE session adopts PPP to carry out swap data message, carries out the transmission of network layer data message.
When a PPPOE Client wishes to set up a PPPOE session, this PPPOE Client first must carry out the Discovery stage, in the Discovery stage, network topological structure, PPPOEClient can find that multiple PPPOE Server, PPPOE Client therefrom selects a PPPOE Server, then distributes Session ID by the PPPOE Server selected, thus, between this PPPOE Client and this PPPOE Server, establish a PPPOE session.
As shown in Figure 1, in prior art, set up the method flow diagram of PPPOE session in the Discovery stage, its concrete handling process is as follows:
Step 11, when PPPOE Client needs to set up PPPOE session, PPPOE Client broadcasts PPPOE and initiatively finds initial (PADI, PPPOE Active Discovery Initiation) message;
Step 12, after PPPOE Server receives PADI message, if access service can be provided for the PPPOE Client sending PADI message, then reply PPPOE to this PPPOE Client and initiatively find to invite (PADO, PPPOE Active Discovery Offer) message;
Step 13, PPPOE Client, in each PPPOE Server sending PADO message, selects a PPPOE Server;
Step 14, PPPOE Client sends PPPOE active discovery request (PADR, PPPOE Active Discovery Request) message to the PPPOE Server selected;
Step 15, after PPPOE Server receives the PADR message of PPPOE Client transmission, for this PPPOE Client distributes unique Session ID, this PPPOE Client follow-up and this PPPOE Server carries out PPPOE session according to this Session ID;
Step 16, the Session ID of distribution is carried at PPPOE and initiatively finds that session confirms (PADS by PPPOE Server, PPPOE Active Discovery Session-confirmation) send to PPPOE Client in message, then this PPPOE Server and this PPPOE Client enters PPPOE session stage.
In the Discovery stage, PPPOE Server is only after the PADR message receiving PPPOE Client transmission, just can distribute unique Session ID for this PPPOE Client, therefore between PPPOE Server and PPPOE Client mutual PADI message, PADO message and PADR message process in, not Session ID can not identify this PPPOE session.
But, in the Discovery stage, PPPOE Server may can carry out message interaction to set up PPPOE session with multiple PPPOE Client simultaneously, in order to carry out legitimacy certification to each PPPOE Client, prior art proposes, PPPOE Server asks each PPPOE Client setting up PPPOE session to preserve relevant session information respectively, and the session information by preserving in the message interaction process in Discovery stage carries out legitimacy certification to PPPOE Client, concrete:
After PPPOE Server receives the PADI message of PPPOE Client transmission, if access service can be provided for the PPPOE Client sending PADI message, then preserve the session information of this PPPOE Client, the session information preserved comprises the medium access control (MAC of this PPPOE Client, Medium AccessControl) address information and session state information, wherein, session status now should be and receives PADI message status, simultaneously, PPPOE Server replys PADO message to this PPPOE Client, then the session status of this PPPOE Client is updated to and sends PADO message status, after PPPOE Server receives PADR message, the session information of each PPPOE Client that traversal stores, to find the mac address information the comprised session information consistent with the source MAC address information of carrying in the PADR message received, if can successful search to session information, then PPPOE Server confirms whether the session state information in the session information found is sent session state information corresponding to PADO message status further, if, then PPPOE Server confirms that the PPPOE Client certification to sending this PADR message is passed through, then PPPOE Server is that this PPPOE Client distributes unique Session ID, and send PADS message to this PPPOEClient.
Therefore, in prior art, PPPOE Server is after receiving PADR message, the traversing operation of session information can be performed, and PPPOE Server may carry out message interaction to set up PPPOE session with multiple PPPOE Client simultaneously, if PPPOE Server at most can simultaneously for N number of PPPOE Client provides access service, and PPPOE Server often receives the traversing operation that a PADR message will perform a session information, so PPPOE Server may need the traversing operation performing N session information, this just consumes the more process resource of PPPOE Server, also make the time of setting up PPPOE session longer, if set up the overlong time of PPPOE session, then PPPOE Server may need to re-establish PPPOE session, thus reduce the success rate setting up PPPOE session.
Summary of the invention
The embodiment of the present invention provides point to point protocol session method for building up, device and equipment on a kind of Ethernet, the more process resource of PPPOE Server is expended when setting up PPPOE session in order to solve in prior art, make the time of setting up PPPOE session longer, and reduce the problem of the success rate setting up PPPOE session.
Embodiment of the present invention technical scheme is as follows:
Point to point protocol session method for building up on a kind of Ethernet, the method comprising the steps of: after the PPPOE that on Ethernet, point-to-point protocol PPPOE server receives PPPOE client broadcast initiatively finds initial p ADI message, is that this PPPOE client distributes session identification; According to the session identification distributed, store the session information of this PPPOE client; And the session identification of distribution is carried at PPPOE and initiatively finds to invite in PADO message to send to this PPPOE client; After receiving PPPOE active discovery request PADR message, according to the session identification carried in this PADR message, obtain the session information of the PPPOE client sending this PADR message; According to the session information got, legitimacy certification is carried out to the PPPOE client sending this PADR message; And after certification is passed through, send PPPOE to the PPPOE client sending this PADR message and initiatively find that session confirms PADS message, in described PADS message, carry the session identification carried in described PADR message.
Point to point protocol session apparatus for establishing on a kind of Ethernet, comprising: initial message receiving element, initiatively finds initial p ADI message for the PPPOE receiving point-to-point protocol PPPOE client broadcast on Ethernet; Session identification allocation units, for after initial message receiving element receives PADI message, for this PPPOE client distributes session identification; Session identification memory cell, for the session identification distributed according to session identification allocation units, stores the session information of this PPPOE client; Invite packet sending unit, the session identification for being distributed by session identification allocation units is carried at PPPOE and initiatively finds to invite in PADO message to send to this PPPOE client; Request message receiving element, for receiving PPPOE active discovery request PADR message; Session information acquiring unit, for according to the session identification carried in this PADR message, obtains the session information of the PPPOE client sending this PADR message; Legitimacy authentication ' unit, for the session information got according to session information acquiring unit, carries out legitimacy certification to the PPPOE client sending this PADR message; Session confirmation message transmitting element, for after legitimacy authentication ' unit is passed through the PPPOE client certificate sending this PADR message, send PPPOE to the PPPOE client sending this PADR message and initiatively find that session confirms PADS message, in described PADS message, carry the session identification carried in this PADR message.
Point-to-point protocol server on a kind of Ethernet, comprises point to point protocol session apparatus for establishing on above-mentioned Ethernet.
In embodiment of the present invention technical scheme, after PPPOE Server receives the PADI message of PPPOE Client broadcast, for this PPPOE Client distributes Session ID, according to the Session ID distributed, store the session information of this PPPOE Client, and the Session ID of distribution is carried in PADO message sends to this PPPOE Client, after PPPOE Server receives PADR message, according to the Session ID carried in this PADR message, obtain the session information of the PPPOE Client sending this PADR message, according to the session information got, legitimacy certification is carried out to the PPPOE Client sending this PADR message, and after certification is passed through, PADS message is sent to the PPPOE Client sending this PADR message, the Session ID carried in described PADR message is carried in described PADS message.Therefore, in embodiment of the present invention technical scheme, PPPOE Server after receiving PADR message without the need to performing the traversing operation of session information, but just for PPPOE Client distributes Session ID after receiving PADI message, and according to Session ID store session information, after subsequently received PADR message, corresponding session information is obtained according to the Session ID carried in PADR message, to carry out legitimacy certification to PPPOE Client, thus effectively save the more process resource of PPPOE Server, shorten the time of setting up PPPOE session, avoid the problem needing to re-establish PPPOE session caused by the overlong time setting up PPPOE session, thus improve the success rate setting up PPPOE session.
Accompanying drawing explanation
Fig. 1 is in prior art, sets up the method flow schematic diagram of PPPOE session;
Fig. 2 is in the embodiment of the present invention, PPPOE session establishing method network architecture schematic diagram;
Fig. 3 is in the embodiment of the present invention, PPPOE session establishing method schematic flow sheet;
Fig. 4 is in the embodiment of the present invention, the form schematic diagram of the PADI message that PPPOE Client broadcasts to PPPOE Server;
Fig. 5 is in the embodiment of the present invention, the form schematic diagram of the PADO message that PPPOE Server sends to PPPOE Client;
Fig. 6 is in the embodiment of the present invention, the form schematic diagram of the PADR message that PPPOE Client sends to PPPOE Server;
Fig. 7 is in the embodiment of the present invention, the form schematic diagram of the PADS message that PPPOE Server sends to PPPOE Client;
Fig. 8 is in the embodiment of the present invention, PPPOE session establishing method specific implementation schematic flow sheet;
Fig. 9 is in the embodiment of the present invention, PPPOE session establishment apparatus structure schematic diagram.
Embodiment
Below in conjunction with each accompanying drawing, the main of embodiment of the present invention technical scheme is realized principle, embodiment and set forth in detail the beneficial effect that should be able to reach.
The embodiment of the present invention provides a kind of PPPOE session establishing method, the method can be applied in the network architecture as shown in Figure 2, by implementing the method in the network architecture shown in Fig. 2, the process resource that PPPOE Server is more can be saved, and the success rate setting up PPPOE session can be improved.
In the network architecture shown in Fig. 2, when PPPOE Client wishes to set up a PPPOE session, this PPPOE Client first must carry out the Discovery stage, in the Discovery stage, network topological structure, PPPOE Client can find multiple PPPOE Server, PPPOE Client therefrom selects a PPPOE Server to provide access service, then be that this PPPOE Client distributes a unique Session ID by the PPPOE Server selected, thus a PPPOE session is established between this PPPOE Client and this PPPOEServer.
As shown in Figure 3, be the PPPOE session establishing method schematic flow sheet that the embodiment of the present invention proposes, its concrete handling process is as follows:
Step 31, after PPPOE Server receives the PADI message of PPPOE Client broadcast, is that this PPPOE Client distributes Session ID;
In the Discovery stage, message mutual between PPPOE Server and PPPOE Client comprises PADI message, PADO message, PADR message and PADS message, above-mentioned four kinds of messages all comprise ether header (Ether Header) partly, PPPOE header (PPPOE Header) part and Payload (Payload) part, the message format of above-mentioned four kinds of messages is as shown in table 1:
Table 1:
Ether Header PPPOE Header Payload
Wherein, Ether Header part and PPPOE Header part are heading, and Payload part is used for the content of bearing message.
Ether Header part comprises target MAC (Media Access Control) address information, source MAC address information and EtherType (Ether Type) information, and the form of Ether Header part is as shown in table 2:
Table 2:
Target MAC (Media Access Control) address Source MAC Ether Type
PPPOE Header part comprises version (Version) information, type (Type) information, code (Code) information, Session ID and length (Length) information, and the form of PPPOE Header part is as shown in table 3:
Table 3:
Version Type Code Session ID Length
Wherein, Code is for identifying the kind of this message, if Code is 0x09, then represents that this message is PADI message, if Code is 0x07, then represent that this message is PADO message, if Code is 0x19, then represent that this message is PADR message, if Code is 0x65, then represent that this message is PADS message.
When PPPOE Client needs to set up PPPOE session, this PPPOE Client broadcasts PADI message, Session ID in the PPPOE Header part of PADI message is set to 0, the form of PADI message as shown in Figure 4, wherein, Code in PPPOE Header part is 0x09, represents that this message is PADI message.
After PPPOE Server receives the PADI message of PPPOE Client broadcast, first be confirmed whether to provide access service for this PPPOE Client, concrete: if PPPOE Server at most can simultaneously for N number of PPPOE Client provides access service, after PPPOE Server receives the PADI message of PPPOE Client broadcast, judge whether the quantity of carrying out the PPPOE Client of PPPOE session reaches N, reach if judge, then confirm to provide access service for this PPPOE Client, do not reach if judge, then confirm to provide access service for this PPPOE Client.
In prior art, if PPPOE Server confirms to provide access service for PPPOE Client, then reply PADO message directly to this PPPOE Client, and the embodiment of the present invention proposes, if PPPOEServer confirms to provide access service for PPPOE Client, be first then that this PPPOE Client distributes Session ID, the follow-up Session ID store session information using distribution, concrete: if PPPOE Server at most can simultaneously for N number of PPPOE Client provides access service, then when PPPOE Server is PPPOEClient distribution Session ID, can [1, N] in select an integer value distribute to PPPOE Client as Session ID.
If PPPOE Server confirms to provide access service for PPPOE Client, then ignore the PADI message that this PPPOEClient broadcasts, be left intact.
Below for N for 65535, illustrate that PPPOE Server is that PPPOE Client distributes the detailed process of SessionID.
In the embodiment of the present invention, the mode that PPPOE Server can adopt the overall situation to increase progressively is that PPPOE Client distributes Session ID, the current Session ID that can distribute is represented with a global variable Current_Session_ID, PPPOE Server often receives a PADI message, just this global variable Current_Session_ID is distributed to as Session ID the PPPOE Client sending this PADI message, then after this global variable Current_Session_ID being added 1, business's computing is done with 65535, then remainder number, that is:
Current_Session_ID=(Current_Session_ID+1)mod(65535)
Step 32, according to the Session ID distributed, stores the session information of this PPPOE Client;
The embodiment of the present invention proposes, the corresponding relation between Session ID and storage address information that this PPPOE Server can distribute is stored in PPPOE Server, that is all corresponding memory address of each SessionID that can distribute, the corresponding relation between Session ID and storage address information can be, but not limited to as shown in table 4:
Table 4:
Session ID Storage address information
1 Memory address 1
2 Memory address 2
…… ……
N Memory address N
When PPPOE Server stores the session information of PPPOE Client, first according to being the Session ID that this PPPOE Client distributes, in corresponding relation between Session ID and storage address information, look for the storage address information that the Session ID of this PPPOE Client distribution is corresponding, then according to the storage address information found, store the session information of this PPPOE Client, that is the session information of this PPPOE Client is stored in memory space corresponding to the storage address information that finds.Wherein, PPPOEClient session information comprises mac address information and the session state information of this PPPOE Client, session status now should be and receives PADI message status, and the session state information therefore in session information is received session state information corresponding to PADI message status.
Step 33, is carried at the Session ID of distribution in PADO message and sends to this PPPOE Client;
The embodiment of the present invention proposes, the SessionID distributed for PPPOE Client can be carried at the access controller (AC of PADO message by PPPOE Server, Access Controller) send to this PPPOE Client in Cookie label (Tag), AC Cookie Tag is arranged in the Payload part of PADO message, request for comments (RFC, Request For Comments) 2516 regulations, AC Cookie Tag is that PPPOEServer can select to carry in the PADO message sending to PPPOE Client, and the content of AC CookieTag is freely defined by PPPOE Server and explains, if carry AC Cookie Tag in the PADO message that PPPOE Client receives, then PPPOE Client does not make any amendment and explanation to AC Cookie Tag, next be directly carried at by this AC Cookie Tag sends in the PADR message of PPPOE Server, concrete, this AC Cookie Tag is carried in the Payload part of PADR message.
AC Cookie Tag comprises Tag Type information, Tag Length information and Tag value (Value) information, and the form of AC Cookie Tag is as shown in table 5:
Table 5:
Tag Type Tag Length Tag Value
Wherein, Session ID is carried in the Tag Value information of AC Cookie Tag by PPPOE Server.If the Session ID that PPPOE Client distributes is 2, then the form of PADO message that sends to PPPOE Client of PPPOE Server as shown in Figure 5, and wherein, the Code in PPPOE Header part is 0x07, represents that this message is PADO message.
Step 34, after receiving PADR message, according to the Session ID carried in this PADR message, obtains the session information of the PPPOE Client sending this PADR message;
PPPOE Client may receive the PADO message that multiple PPPOE Server sends, PPPOEClient can select a PPPOE Server to provide access service in each PPPOE Server sending PADO message, PPPOE Client can select to reply the fastest PPPOE Server of PADO message, concrete: PPPOE Client is for each PPPOE Server sending PADO message, calculate the time span received between time point that the time point of PADO message that this PPPOE Server sends and this PPPOE Client send PADI respectively, then in each PPPOE Server sending PADO message, select the PPPOE Server that the time span that calculates is the shortest.
After PPPOE Client selects the PPPOE Server providing access service, PADR message is sent to the PPPOE Server selected, wherein, AC Cookie Tag is carried due in the PADO message that the PPPOE Server selected sends, therefore this AC Cookie Tag is directly carried at and sends in the PADR message of this PPPOE Server by PPPOE Client, concrete, this AC Cookie Tag is carried in the Payload part of PADR message, the form of the PADR message that PPPOE Client sends to PPPOE Server as shown in Figure 6, wherein, Code in PPPOE Header part is 0x19, represent that this message is PADR message.
After PPPOE Server receives the PADR message of PPPOE Client transmission, the session information obtaining this PPPOE Client is needed to carry out legitimacy certification to this PPPOE Client, session information due to PPPOEClient stores according to the Session ID distributed for this PPPOE Client, therefore PPPOE Server needs first from the AC Cookie Tag of PADR message, to obtain Session ID, and then according to the Session ID obtained, the session information of the PPPOE Client sending this PADR message is obtained from the session information stored, concrete:
PPPOE Server is according to the Session ID obtained, in corresponding relation between Session ID and storage address information, search corresponding storage address information, then according to the storage address information found, obtain the session information of the PPPOE Client sending this PADR message, that is, from memory space corresponding to the storage address information found, obtain the session information of the PPPOE Client sending this PADR message.
Step 35, according to the session information got, carries out legitimacy certification to the PPPOE Client sending this PADR message;
When PPPOE Server carries out legitimacy certification to the PPPOE Client sending PADR message, judge that whether the mac address information comprised in the session information got is consistent with the source MAC address information of carrying in this PADR message, and whether session state information is sent session state information corresponding to PADO message status, if judged result is be, then confirm that the PPPOE client certificate to sending this PADR message passes through, otherwise confirm that the PPPOE client certificate to sending this PADR message does not pass through.
Wherein, PPPOE Server first can judge that whether the mac address information comprised in the session information got is consistent with the source MAC address information of carrying in this PADR message, if judged result is inconsistent, then confirm that the PPPOE Client certification to sending this PADR message is not passed through, if judged result is consistent, whether the session state information then continuing to comprise in the session information judging to get is sent session state information corresponding to PADO message status, if the determination result is YES, then confirm that the PPPOE Client certification to sending this PADR message is passed through, if judged result is no, then confirm that the PPPOEClient certification to sending this PADR message is not passed through,
PPPOE Server first can also judge whether the session state information comprised in the session information got is sent session state information corresponding to PADO message status, if judged result is no, then confirm that the PPPOE Client certification to sending this PADR message is not passed through, if the determination result is YES, whether the mac address information then continuing to comprise in the session information judging to get is consistent with the source MAC address information of carrying in this PADR message, if judged result is consistent, then confirm that the PPPOEClient certification to sending this PADR message is passed through, if judged result is inconsistent, then confirm that the PPPOEClient certification to sending this PADR message is not passed through,
While whether the mac address information comprised in the session information that PPPOE Server also can get in judgement is consistent with the source MAC address information of carrying in this PADR message, judge whether session state information is sent session state information corresponding to PADO message status, if judged result is be, then confirm that the PPPOE client certificate to sending this PADR message passes through, otherwise confirm that the PPPOE client certificate to sending this PADR message does not pass through.
Therefore, when PPPOE Server carries out legitimacy certification to the PPPOE Client sending PADR message, first can perform for mac address information and judge operation, first can also perform for session state information and judge operation, also can perform for mac address information and session state information simultaneously judge operation, perform and judge that the sequencing of operation does not limit here.
Step 36, after certification is passed through, sends PADS message to the PPPOE Client sending this PADR message, carries the Session ID carried in described PADR message in described PADS message.
The Session ID distributed for PPPOE Client in step 31 is carried in the Session id information in the PPPOE Header part of PADS message by PPPOE Server, if the Session ID that PPPOE Client distributes is 2, then the form of PADS message that sends to PPPOE Client of PPPOE Server as shown in Figure 7, wherein, Code in PPPOE Header part is 0x65, represents that this message is PADS message.
If PPPOE Server does not pass through the PPPOE Client certification sending this PADR message, then PPPOE Server ignores the PADR message that this PPPOE Client sends, and is left intact.
From above-mentioned processing procedure, in embodiment of the present invention technical scheme, after PPPOE Server receives the PADI message of PPPOE Client broadcast, for this PPPOE Client distributes Session ID, according to the Session ID distributed, store the session information of this PPPOE Client, and the Session ID of distribution is carried in PADO message sends to this PPPOE Client, after PPPOE Server receives PADR message, according to the Session ID carried in this PADR message, obtain the session information of the PPPOEClient sending this PADR message, according to the session information got, legitimacy certification is carried out to the PPPOEClient sending this PADR message, and after certification is passed through, PADS message is sent to the PPPOE Client sending this PADR message, the Session ID carried in described PADR message is carried in described PADS message.Therefore, in embodiment of the present invention technical scheme, PPPOE Server after receiving PADR message without the need to performing the traversing operation of session information, but just for PPPOE Client distributes Session ID after receiving PADI message, and according to Session ID store session information, after subsequently received PADR message, corresponding session information is obtained according to the Session ID carried in PADR message, to carry out legitimacy certification to PPPOE Client, thus effectively save the more process resource of PPPOE Server, shorten the time of setting up PPPOE session, avoid the problem needing to re-establish PPPOE session caused by the overlong time setting up PPPOE session, thus improve the success rate setting up PPPOE session.
Provide execution mode specifically below.
As shown in Figure 8, be PPPOE session establishing method specific implementation flow chart in the embodiment of the present invention, its concrete handling process is as follows:
Step 81, when PPPOE Client needs to set up PPPOE session, this PPPOE Client broadcasts PADI message;
Step 82, after PPPOE Server receives PADI message, can provide access service for the PPPOE Client sending PADI message if confirm, be then that this PPPOE Client distributes Session ID;
Step 83, PPPOE Server, according to the Session ID distributed for this PPPOE Client, in the corresponding relation between SessionID and storage address information, searches corresponding storage address information;
Step 84, PPPOE Server, according to the storage address information found, stores the session information of this PPPOE Client;
Step 85, the Session ID of distribution is carried in the AC CookieTag of PADO message and sends to this PPPOE Client by PPPOE Server;
Step 86, PPPOE Client selects a PPPOE Server to provide access service in each PPPOE Server sending PADO message;
Step 87, PPPOE Client sends PADR message to the PPPOE Server selected, and wherein, the AC Cookie Tag that PADO message directly carries by PPPOE Client is carried in PADR message;
Step 88, PPPOE Server obtains Session ID after receiving the PADR message of PPPOE Client transmission from the AC Cookie Tag of PADR message;
Step 89, PPPOE Server, according to the Session ID obtained, in the corresponding relation between Session ID and storage address information, searches corresponding storage address information;
Step 810, PPPOE Server, according to the storage address information found, obtains the session information of the PPPOE Client sending this PADR message;
Step 811, PPPOE Server, according to the session information got, carries out legitimacy certification to the PPPOE Client sending this PADR message;
Step 812, PPPOE Server is after certification is passed through, PADS message is sent to the PPPOEClient sending this PADR message, Session ID is carried in the Session id information in the PPPOEHeader part of PADS message by PPPOE Server, and then this PPPOE Server and this PPPOE Client enters PPPOE session stage.
Accordingly, the embodiment of the present invention also provides a kind of PPPOE session establishment device, and its structure as shown in Figure 9, comprising:
Initial message receiving element 91, for receiving the PADI message that PPPOE Client broadcasts;
Session identification allocation units 92, for after initial message receiving element 91 receives PADI message, for this PPPOE Client distributes Session ID;
Session identification memory cell 93, for the Session ID distributed according to session identification allocation units 92, stores the session information of this PPPOE Client;
Invite packet sending unit 94, the Session ID for being distributed by session identification allocation units 92 is carried in PADO message and sends to this PPPOE Client;
Request message receiving element 95, for receiving PADR message;
Session information acquiring unit 96, for according to the Session ID carried in this PADR message, obtains the session information of the PPPOE Client sending this PADR message;
Legitimacy authentication ' unit 97, for the session information got according to session information acquiring unit 96, carries out legitimacy certification to the PPPOE Client sending this PADR message;
Session confirmation message transmitting element 98, for after legitimacy authentication ' unit 97 is passed through the PPPOE Client certification sending this PADR message, send PADS message to the PPPOE Client sending this PADR message, in described PADS message, carry the Session ID carried in this PADR message.
Preferably, session identification memory cell 93 specifically comprises:
Address information searches subelement, for the Session ID distributed according to session identification allocation units 92, in the corresponding relation between Session ID and storage address information, searches corresponding storage address information;
Session identification storing sub-units, for the storage address information found according to address information searching subelement, stores the session information of this PPPOE Client.
Preferably, invite packet sending unit 94 specifically for, the Session ID distributed by session identification allocation units 92 is carried in the AC Cookie Tag of PADO message and sends to this PPPOE Client.
More preferably, session information acquiring unit 96 specifically comprises:
Session identification obtains subelement, for obtaining Session ID from the AC Cookie Tag of this PADR message;
Session information obtains subelement, for obtaining the Session ID that subelement obtains according to session identification, obtains the session information of the PPPOE Client sending this PADR message.
More preferably, session information acquisition subelement specifically comprises:
Address information searches module, for obtaining the Session ID that subelement obtains according to session identification, in the corresponding relation between Session ID and storage address information, searches corresponding storage address information;
Session information acquisition module, for the storage address information arrived according to address information searching module searches, obtains the session information of the PPPOE Client sending this PADR message.
Preferably, the session information of PPPOE Client comprises mac address information and the session state information of this PPPOE Client;
Legitimacy authentication ' unit 97 specifically comprises:
Information judgement subunit, whether consistent with the source MAC address information of carrying in this PADR message for judging the mac address information comprised in the session information that session information acquiring unit 96 gets, and whether session state information is sent session state information corresponding to PADO message status;
Authenticate-acknowledge subelement, when for being in the judged result of information judgement subunit being, confirms that the PPPOE Client certification to sending this PADR message is passed through, otherwise confirms that the PPPOE Client certification to sending this PADR message is not passed through.
The embodiment of the present invention also provides a kind of PPPOE Server, at least comprises above-mentioned PPPOE session establishment device.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (11)

1. a point to point protocol session method for building up on Ethernet, is characterized in that, comprising:
After the PPPOE that on Ethernet, point-to-point protocol PPPOE server receives PPPOE client broadcast initiatively finds initial p ADI message, be that this PPPOE client distributes session identification;
According to the session identification distributed, store the session information of this PPPOE client; And
The session identification of distribution is carried at PPPOE initiatively to find to invite in PADO message to send to this PPPOE client;
After receiving PPPOE active discovery request PADR message, according to the session identification carried in this PADR message, obtain the session information of the PPPOE client sending this PADR message;
According to the session information got, legitimacy certification is carried out to the PPPOE client sending this PADR message; And
After certification is passed through, send PPPOE to the PPPOE client sending this PADR message and initiatively find that session confirms PADS message, in described PADS message, carry the session identification carried in described PADR message;
Wherein, the session information of PPPOE client comprises medium access control mac address information and the session state information of this PPPOE client;
According to the session information got, legitimacy certification is carried out to the PPPOE client sending this PADR message, specifically comprises:
Judge that whether the mac address information comprised in the session information got is consistent with the source MAC address information of carrying in this PADR message, and whether session state information is sent session state information corresponding to PADO message status;
Then confirm that the PPPOE client certificate to sending this PADR message passes through if judged result is; Otherwise
Confirm that the PPPOE client certificate to sending this PADR message does not pass through.
2. the method for claim 1, is characterized in that, according to the session identification distributed, stores the session information of this PPPOE client, specifically comprises:
According to the session identification distributed, in the corresponding relation between session identification and storage address information, search corresponding storage address information;
According to the storage address information found, store the session information of this PPPOE client.
3. the method for claim 1, is characterized in that, is carried at by the session identification of distribution in PADO message and sends to this PPPOE client, specifically comprise:
The session identification of distribution is carried in the access controller AC Cookie label of PADO message and sends to this PPPOE client.
4. method as claimed in claim 3, is characterized in that, according to the session identification carried in this PADR message, obtains the session information of the PPPOE client sending this PADR message, specifically comprises:
Session identification is obtained from the AC Cookie label of this PADR message;
According to the session identification obtained, from the session information stored, obtain the session information of the PPPOE client sending this PADR message.
5. method as claimed in claim 4, is characterized in that, according to the session identification obtained, obtains the session information of the PPPOE client sending this PADR message, specifically comprise from the session information stored:
According to the session identification obtained, in the corresponding relation between session identification and storage address information, search corresponding storage address information;
According to the storage address information found, obtain the session information of the PPPOE client sending this PADR message.
6. a point to point protocol session apparatus for establishing on Ethernet, is characterized in that, comprising:
Initial message receiving element, initiatively finds initial p ADI message for the PPPOE receiving point-to-point protocol PPPOE client broadcast on Ethernet;
Session identification allocation units, for after initial message receiving element receives PADI message, for this PPPOE client distributes session identification;
Session identification memory cell, for the session identification distributed according to session identification allocation units, stores the session information of this PPPOE client;
Invite packet sending unit, the session identification for being distributed by session identification allocation units is carried at PPPOE and initiatively finds to invite in PADO message to send to this PPPOE client;
Request message receiving element, for receiving PPPOE active discovery request PADR message;
Session information acquiring unit, for according to the session identification carried in this PADR message, obtains the session information of the PPPOE client sending this PADR message;
Legitimacy authentication ' unit, for the session information got according to session information acquiring unit, carries out legitimacy certification to the PPPOE client sending this PADR message;
Session confirmation message transmitting element, for after legitimacy authentication ' unit is passed through the PPPOE client certificate sending this PADR message, send PPPOE to the PPPOE client sending this PADR message and initiatively find that session confirms PADS message, in described PADS message, carry the session identification carried in this PADR message;
Wherein, the session information of PPPOE client comprises medium access control mac address information and the session state information of this PPPOE client;
Legitimacy authentication ' unit specifically comprises:
Information judgement subunit, whether consistent with the source MAC address information of carrying in this PADR message for judging the mac address information comprised in the session information that session information acquiring unit gets, and whether session state information is sent session state information corresponding to PADO message status;
Authenticate-acknowledge subelement, when for being in the judged result of information judgement subunit being, confirms that the PPPOE client certificate to sending this PADR message passes through, otherwise confirms that the PPPOE client certificate to sending this PADR message does not pass through.
7. device as claimed in claim 6, it is characterized in that, session identification memory cell specifically comprises:
Address information searches subelement, for the session identification distributed according to session identification allocation units, in the corresponding relation between session identification and storage address information, searches corresponding storage address information;
Session identification storing sub-units, for the storage address information found according to address information searching subelement, stores the session information of this PPPOE client.
8. device as claimed in claim 6, is characterized in that, invite packet sending unit specifically for, the session identification that session identification allocation units distribute is carried in the access controller AC Cookie label of PADO message and sends to this PPPOE client.
9. device as claimed in claim 8, it is characterized in that, session information acquiring unit specifically comprises:
Session identification obtains subelement, for obtaining session identification from the AC Cookie label of this PADR message;
Session information obtains subelement, for obtaining the session identification that subelement obtains according to session identification, obtains the session information of the PPPOE client sending this PADR message.
10. device as claimed in claim 9, is characterized in that, session information obtains subelement and specifically comprises:
Address information searches module, for obtaining the session identification that subelement obtains according to session identification, in the corresponding relation between session identification and storage address information, searches corresponding storage address information;
Session information acquisition module, for the storage address information arrived according to address information searching module searches, obtains the session information of the PPPOE client sending this PADR message.
Point-to-point protocol server on 11. 1 kinds of Ethernets, is characterized in that, comprises point to point protocol session apparatus for establishing on the Ethernet described in the arbitrary claim of claim 6 ~ 10.
CN201110179107.3A 2011-06-29 2011-06-29 Method, device and equipment for establishing point-to-point protocol session on Ethernet Expired - Fee Related CN102394857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110179107.3A CN102394857B (en) 2011-06-29 2011-06-29 Method, device and equipment for establishing point-to-point protocol session on Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110179107.3A CN102394857B (en) 2011-06-29 2011-06-29 Method, device and equipment for establishing point-to-point protocol session on Ethernet

Publications (2)

Publication Number Publication Date
CN102394857A CN102394857A (en) 2012-03-28
CN102394857B true CN102394857B (en) 2015-02-25

Family

ID=45862066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110179107.3A Expired - Fee Related CN102394857B (en) 2011-06-29 2011-06-29 Method, device and equipment for establishing point-to-point protocol session on Ethernet

Country Status (1)

Country Link
CN (1) CN102394857B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103441893A (en) * 2013-08-16 2013-12-11 大连梯耐德网络技术有限公司 User internet-surfing behavior analysis method based on broadcast television network
CN103944793A (en) * 2014-05-14 2014-07-23 烽火通信科技股份有限公司 PPPoE (Point-to-Point Protocol over Ethernet) based method for achieving plug and play of network equipment
CN104243254B (en) * 2014-09-29 2017-08-25 中国联合网络通信集团有限公司 A kind of PPPoE cut-in methods and equipment
CN106131177B (en) * 2016-06-29 2020-09-04 新华三技术有限公司 Message processing method and device
CN111181900B (en) * 2018-11-13 2022-04-22 深圳光启高等理工研究院 Data message sending and receiving method, storage medium and processor
CN111092942B (en) * 2019-12-13 2023-04-07 中移(杭州)信息技术有限公司 Message processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878170A (en) * 2005-06-06 2006-12-13 国际商业机器公司 Method and device for managing session identifiers
CN101212717A (en) * 2006-12-27 2008-07-02 ***通信集团公司 Service management device, converged service system and service implementation method
CN101754215A (en) * 2008-12-01 2010-06-23 华为技术有限公司 Authentication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878170A (en) * 2005-06-06 2006-12-13 国际商业机器公司 Method and device for managing session identifiers
CN101212717A (en) * 2006-12-27 2008-07-02 ***通信集团公司 Service management device, converged service system and service implementation method
CN101754215A (en) * 2008-12-01 2010-06-23 华为技术有限公司 Authentication method and system

Also Published As

Publication number Publication date
CN102394857A (en) 2012-03-28

Similar Documents

Publication Publication Date Title
CN102394857B (en) Method, device and equipment for establishing point-to-point protocol session on Ethernet
CN102291320B (en) MAC (media access control) address learning method and edge device
CN100421403C (en) Identification insertion system and identification inserting method thereof
CN111988353B (en) IPv4 and IPv6 compatible internet service and load balancing service loading system and method
US20160157094A1 (en) Methods and Arrangements For Enabling Data Transmission Between a Mobile Device and a Static Destination Address
CN102710811B (en) Realize method and the switch of dhcp address safety distribution
CN107666419B (en) Virtual broadband access method, controller and system
CN102845123A (en) Virtual private cloud connection method and tunnel proxy server
WO2003036838A1 (en) A method for setting up a ipoa channel based default administration channel
CN104780232B (en) A kind of resource allocation methods, controller and system
CN104980368A (en) Bandwidth guarantee method and apparatus in software defined network (SDN)
CN111901162A (en) Internet of things equipment, network distribution method thereof and internet of things system
US11929851B2 (en) Gateway selection method, device, and system
CN106878481B (en) Method, device and system for acquiring Internet Protocol (IP) address
CN101018193A (en) Load distribution method and system and device for allocating the backup packet and virtual IP address
US20140244726A1 (en) Assignment of Point-to-Point Over Ethernet (PPPoE) Session IDs
CN110391961B (en) Tunnel binding method, device and system
CN108667957B (en) IP address allocation method, first electronic device and first server
CN102724333A (en) Method, device and system for setting up IPv6 (internet protocol version 6) rapid deployment tunnel
CN111225080B (en) Method for acquiring gateway down-hanging equipment information
CN102480476A (en) Multi-service access method based on DHCP protocol extension
CN103532850B (en) Uplink message forwarding method, device and AP (access point) equipment
CN112188301B (en) Communication method, apparatus, system, terminal, and computer-readable storage medium
CN106911817B (en) Method and device for notifying change of MAC address of PPPoE server
CN107689881A (en) Message processing method and device

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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park building 19#

Patentee after: RUIJIE NETWORKS CO., LTD.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park building 19#

Patentee before: Fujian Xingwangruijie Network Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150225

Termination date: 20210629

CF01 Termination of patent right due to non-payment of annual fee