CN109768905A - A kind of method, system, equipment and the storage medium of PPPoE message transmissions - Google Patents

A kind of method, system, equipment and the storage medium of PPPoE message transmissions Download PDF

Info

Publication number
CN109768905A
CN109768905A CN201910189511.5A CN201910189511A CN109768905A CN 109768905 A CN109768905 A CN 109768905A CN 201910189511 A CN201910189511 A CN 201910189511A CN 109768905 A CN109768905 A CN 109768905A
Authority
CN
China
Prior art keywords
pppoe
message
data message
type
server
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.)
Pending
Application number
CN201910189511.5A
Other languages
Chinese (zh)
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910189511.5A priority Critical patent/CN109768905A/en
Publication of CN109768905A publication Critical patent/CN109768905A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses a kind of methods of PPPoE message transmissions, comprising: determines the type of PPPoE message;If its type is data message, sender's type of data message is obtained;When sender's type of data message is PPPoE server, the destination address of data message is confirmed, and data message is sent to destination address;When sender's type of data message is pppoe client, when sender's type of the data message is pppoe client, corresponding server is determined according to the session connection parameter that the pppoe client is sent, and the data message is sent to the server.Technical solution provided herein, which does not need to copy data message to pppoe client, to be forwarded, so that data forwarding business greatly reduces the performance cost in PPPoE message transmission procedure independently of pppoe client.The application additionally provides system, equipment and the computer readable storage medium of a kind of PPPoE message transmissions simultaneously, has above-mentioned beneficial effect.

Description

A kind of method, system, equipment and the storage medium of PPPoE message transmissions
Technical field
This application involves the field PPPoE, in particular to a kind of method, system, equipment and the computer of PPPoE message transmissions Readable storage medium storing program for executing.
Background technique
PPPoE (Point-to-Point Protocol Over Ethernet), the point-to-point protocol on Ethernet are Point-to-point protocol (PPP) is encapsulated in one of Ethernet (Ethernet) frame network tunnel protocol.Due to collecting in agreement At ppp protocol, the functions such as authentication, encryption and the compression that traditional ethernet cannot provide not only are realized, are also applicable in In cable modem (cable modem) and Digital Subscriber Line) etc. access is provided a user with Ethernet protocol The protocol architecture of service.
The application that control process in current pppoe client is mainly responsible for IP address obtains, while carrying out datagram The encapsulation and decapsulation of text, such data message can swap copy in pppoe client and data Layer, for a small amount of control Protocol massages processed influence less, but for data forwarding business, each data packet requires to swap copy, performance cost It is larger.
Therefore, how to reduce the performance cost in PPPoE message transmission procedure is that those skilled in the art need to solve at present Certainly the technical issues of.
Summary of the invention
The purpose of the application is to provide method, system, equipment and the computer-readable storage medium of a kind of PPPoE message transmissions Matter, for reducing the performance cost in PPPoE message transmission procedure.
In order to solve the above technical problems, the application provides a kind of method of PPPoE message transmissions, this method comprises:
Receive PPPoE message;
Determine the type of the PPPoE message;Wherein, the type of the PPPoE message includes data message;
If the type of the PPPoE message is data message, sender's type of the data message is obtained;
When sender's type of the data message is PPPoE server, the destination address of the data message is confirmed, And the data message is sent to the destination address;
When sender's type of the data message is pppoe client, according to the meeting of pppoe client transmission Words Connecting quantity determines corresponding server, and the data message is sent to the server.
Optionally, when sender's type of the data message is PPPoE server, confirm the mesh of the data message Address is marked, and by the data message forwarding to the destination address, comprising:
The decapsulation that heading is carried out to the data message, obtains the destination address of the data message;
The data message is sent to the destination address.
Optionally, when sender's type of the data message is pppoe client, according to the pppoe client The session connection parameter of transmission determines corresponding server, and the data message is sent to the server, comprising:
Receive the session connection parameter that the pppoe client is sent;Wherein, the session connection parameter includes session id And MAC address of server;
PPPoE network interface is determined according to the session id, and dialog server is determined according to the MAC address of server;
The data message is packaged, and is sent the data message after encapsulation by the PPPoE network interface To the dialog server.
Optionally, the generating process of the session connection parameter includes:
The pppoe client carries out discovery phase, to identify the MAC Address of server, and establishes session id;
After the completion of the discovery phase, server select command is received;
Select corresponding session id and MAC address of server as the session connection according to the server select command Parameter.
Optionally, the type of the PPPoE message further includes control message, when the type of the PPPoE message is described When controlling message, further comprise the steps of:
Obtain sender's type of the control message;
When sender's type of the control message is PPPoE server, the control message is sent to described Pppoe client, so that the pppoe client handles the control message;
When sender's type of the control message is the pppoe client, sent according to the pppoe client Session connection parameter the control message is sent to the corresponding server of the session connection parameter.
The application also provides a kind of system of PPPoE message transmissions, which includes:
Receiving module, for receiving PPPoE message;
Determination type module, for determining the type of the PPPoE message;Wherein, the type of the PPPoE message includes Data message;
First obtains module, if the type for the PPPoE message is data message, obtains the data message Sender's type;
First sending module, for confirming the number when sender's type of the data message is PPPoE server The destination address is sent to according to the destination address of message, and by the data message;
Second sending module, for when sender's type of the data message be pppoe client when, according to described The session connection parameter that pppoe client is sent determines corresponding server, and the data message is sent to the service Device.
Optionally, first sending module includes:
Submodule is decapsulated, for carrying out the decapsulation of heading to the data message, obtains the data message Destination address;
Sending submodule, for the data message to be sent to the destination address.
Optionally, second sending module includes:
Receiving submodule, the session connection parameter sent for receiving the pppoe client;Wherein, the session connects Connecing parameter includes session id and MAC address of server;
Determine submodule, for determining PPPoE network interface according to the session id, and it is true according to the MAC address of server Determine dialog server;
Submodule is encapsulated, for the data message to be packaged, and by the PPPoE network interface by the institute after encapsulation It states data message and is sent to the dialog server.
The application also provides a kind of PPPoE message transmissions equipment, which includes:
Memory, for storing computer program;
Processor realizes the side of the PPPoE message transmissions as described in any of the above-described when for executing the computer program The step of method.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium Machine program, realizing the method for PPPoE message transmissions as described in any of the above-described when the computer program is executed by processor Step.
The method of PPPoE message transmissions provided herein, comprising: receive PPPoE message;Determine the class of PPPoE message Type;Wherein, the type of PPPoE message includes data message;If the type of PPPoE message is data message, datagram is obtained Sender's type of text;When sender's type of data message is PPPoE server, the destination address of data message is confirmed, And data message is sent to destination address;When sender's type of the data message is pppoe client, according to described The session connection parameter that pppoe client is sent determines corresponding server, and the data message is sent to the service Device.
Technical solution provided herein, by first determining the type of PPPoE message, if the type of PPPoE message is Data message then obtains sender's type of data message;When sender's type of data message is PPPoE server, really Recognize the destination address of data message, and data message is sent to destination address;When sender's type of data message is PPPoE When client, it is corresponding that data message is sent to by session connection parameter according to the session connection parameter that pppoe client is sent Server, and then do not need to copy data message to pppoe client and be forwarded, but datagram is completed in internal system The forwarding of text, so that data forwarding business greatly reduces in PPPoE message transmission procedure independently of pppoe client Performance cost.The application additionally provides system, equipment and the computer readable storage medium of a kind of PPPoE message transmissions simultaneously, With above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the method for PPPoE message transmissions provided by the embodiment of the present application;
Fig. 2 is a kind of process of practical manifestation mode of S105 in a kind of method of PPPoE message transmissions provided by Fig. 1 Figure;
Fig. 3 is a kind of generating process flow chart of session connection parameter provided by the embodiment of the present application;
Fig. 4 is the flow chart of the method for another kind PPPoE message transmissions provided by the embodiment of the present application;
Fig. 5 is a kind of structure chart of the system of PPPoE message transmissions provided by the embodiment of the present application;
Fig. 6 is the structure chart of the system of another kind PPPoE message transmissions provided by the embodiment of the present application;
Fig. 7 is a kind of structure chart of PPPoE message transmissions equipment provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide method, system, equipment and the computer-readable storage medium of a kind of PPPoE message transmissions Matter, for reducing the performance cost in PPPoE message transmission procedure.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of flow chart of the method for PPPoE message transmissions provided by the embodiment of the present application.
It specifically comprises the following steps:
S101: PPPoE message is received;
Compared with traditional access way, the PPPoE ratio of performance to price with higher, it is including cell networking construction etc. It is widely adopted in a series of applications, currently a popular broadband access method ADSL has just used PPPoE agreement.
The application for being responsible for IP address based on the control process in current pppoe client obtains, while carrying out datagram The encapsulation and decapsulation of text, such data message can swap copy in pppoe client and data Layer, for a small amount of control Protocol massages processed influence less, but for data forwarding business, every packet requires to swap copy, and performance cost is larger;
The application is solved by the way that the encapsulation of the data message in pppoe client and decapsulation function are moved to data Layer The above problem;
S102: the type of PPPoE message is determined;
The type of PPPoE message mentioned herein includes data message type, and data message contains to be sent complete Whole data information, volume of transmitted data is usually larger, therefore performance cost is larger.
S103: if the type of PPPoE message is data message, sender's type of data message is obtained;
Mentioned herein, the purpose for obtaining sender's type of data message is, according to sender's class of data message Type is determined that data message is sent or is received, and then determines the next destination of data message.
S104: when sender's type of data message is PPPoE server, confirming the destination address of data message, and Data message is sent to destination address;
When sender's type of data message is PPPoE server, then prove that the data message receives, at this time Confirm the destination address of data message, and data message is sent to destination address;
It is mentioned herein, confirm the destination address of data message, and data message is sent to destination address, specifically may be used With are as follows:
The decapsulation that heading is carried out to data message, obtains the destination address of data message;
Data message is sent to destination address.
The data message of PPPoE includes target MAC (Media Access Control) address, source MAC, protocol type, version, field and type, generation The parts such as code, version identifier number, length, dead load carry out the decapsulation of heading to data message, just can obtain data The destination address of message.
S105: when sender's type of data message is pppoe client, according to the session of pppoe client transmission Connecting quantity determines corresponding server, and data message is sent to the server.
When sender's type of data message is pppoe client, then prove that data message needs are sent, this When corresponding server determined according to the session connection parameter that pppoe client is sent, and data message is sent to the service Device;
The workflow of PPPoE agreement includes discovery and two stages of session, and discovery phase is stateless, it is therefore an objective to be obtained The session connection parameter of PPPoE server (on the adsl equipment of local side) is obtained, then user is allowed to select one.When discovery rank Section successfully completes, and corresponding session connection parameter is sent to data Layer by pppoe client;When sender's type of data message When for pppoe client, data message is sent to session connection by the session connection parameter that system is sent according to pppoe client Parameter corresponding server after discovery phase, enters the PPP session stage of standard.
Based on the above-mentioned technical proposal, the method for a kind of PPPoE message transmissions provided herein, by first determining The type of PPPoE message obtains sender's type of data message if the type of PPPoE message is data message;Work as data When sender's type of message is PPPoE server, the destination address of data message is confirmed, and data message is sent to target Address;When sender's type of data message is pppoe client, according to the session connection parameter of pppoe client transmission Data message is sent to the corresponding server of session connection parameter, and then does not need to copy data message to PPPoE client End is forwarded, but completes the forwarding of data message in internal system, so that data forwarding business is independently of PPPoE client End, greatly reduces the performance cost in PPPoE message transmission procedure.
It is directed to the step S105 of an embodiment, wherein described when sender's type of data message is PPPoE When server, corresponding server is determined according to the session connection parameter that pppoe client is sent, and data message is sent to The server is specifically as follows step as shown in Figure 2, is illustrated below with reference to Fig. 2.
Referring to FIG. 2, a kind of practical manifestation of the Fig. 2 for S105 in a kind of method of PPPoE message transmissions provided by Fig. 1 The flow chart of mode.
Itself specifically includes the following steps:
S201: the session connection parameter that pppoe client is sent is received;
Session connection parameter mentioned herein includes session id and MAC address of server, is specifically used for determining objective with PPPoE The PPPoE server that family end engages in the dialogue, the workflow of PPPoE agreement include discovery and two stages of session, discovery phase It is stateless, it is therefore an objective to obtain the ethernet mac address of PPPoE server (on the adsl equipment of local side), and establish one A only session id.When pppoe client look on the bright side of things begin a pppoe session, it must carry out discovery phase first, with identification The ethernet mac address of local side, and establish a session id.In discovery phase, network-based topology, pppoe client can To find multiple access concentrators, then user is allowed to select one.
S202: PPPoE network interface is determined according to session id, and dialog server is determined according to MAC address of server;
S203: data message is packaged, and the data message after encapsulation is sent to dialogue clothes by PPPoE network interface Business device.
It is directed to the step S201 of an embodiment, it is mentioned that the session connection parameter that pppoe client is sent is received, Here the generating process of session connection parameter is specifically as follows step as shown in Figure 3, is illustrated below with reference to Fig. 3.
Referring to FIG. 3, Fig. 3 is a kind of generating process flow chart of session connection parameter provided by the embodiment of the present application;
Itself specifically includes the following steps:
S301:PPPoE client carries out discovery phase, to identify the MAC Address of server, and establishes session id;
S302: after the completion of discovery phase, server select command is received;
S303: corresponding session id and MAC address of server is selected to join as session connection according to server select command Number.
After session connection parameter has been determined, which is occurred to data Layer so that system according to Data message is sent to the corresponding server of session connection parameter by the session connection parameter that pppoe client is sent.
The step S102 being directed in above-described embodiment, the type of the PPPoE message further include control message, work as PPPoE It when the type of message is the control message, can also include the steps that as shown in Figure 4, be illustrated below with reference to Fig. 4.
Referring to FIG. 4, Fig. 4 is the flow chart of the method for another kind PPPoE message transmissions provided by the embodiment of the present application.
Itself specifically includes the following steps:
S401: sender's type of control message is obtained;
S402: when the sender's type for controlling message is PPPoE server, control message is sent to PPPoE client End, so that pppoe client handles control message;
S403: when the sender's type for controlling message is pppoe client, according to the session of pppoe client transmission Connecting quantity is sent to the corresponding server of session connection parameter for message is controlled.
Control message mentioned herein is controlled for transmitting control message between pppoe client, PPPoE server Message refers to that network leads to the message for the networks such as whether obstructed, host is reachable, whether routing can be used itself, although these control messages User data is not transmitted, but is played an important role for the transmitting of user data, and controls the volume of transmitted data of message Usually less, performance cost is little, therefore directly sends it to destination address.
Referring to FIG. 5, Fig. 5 is a kind of structure chart of the system of PPPoE message transmissions provided by the embodiment of the present application.
The system may include:
Receiving module 100, for receiving PPPoE message;
Determination type module 200, for determining the type of PPPoE message;Wherein, the type of PPPoE message includes data Message;
First obtains module 300, if the type for PPPoE message is data message, obtains the transmission of data message Square type;
First sending module 400, for confirming datagram when sender's type of data message is PPPoE server The destination address of text, and data message is sent to destination address;
Second sending module 500, for when sender's type of data message be pppoe client when, when the data When sender's type of message is pppoe client, is determined and corresponded to according to the session connection parameter that the pppoe client is sent Server, and the data message is sent to the server.
Referring to FIG. 6, Fig. 6 is the structure chart of the system of another kind PPPoE message transmissions provided by the embodiment of the present application.
First sending module 400 may include:
Submodule is decapsulated, for carrying out the decapsulation of heading to data message, obtains the destination address of data message;
Sending submodule, for data message to be sent to destination address.
Second sending module 500 may include:
Receiving submodule, for receiving the session connection parameter of pppoe client transmission;Wherein, session connection parameter packet Include session id and MAC address of server;
It determines submodule, for determining PPPoE network interface according to session id, and dialogue clothes is determined according to MAC address of server Business device;
Submodule is encapsulated, sends out the data message after encapsulation for data message to be packaged, and by PPPoE network interface It send to dialog server.
The system can also include:
Second obtains module 600, for obtaining sender's class of control message when the type of the message is control message Type;
Third sending module 700, for message will to be controlled when the sender's type for controlling message is PPPoE server It is sent to pppoe client, so that pppoe client handles control message;
4th sending module 800, for when control message sender's type be pppoe client when, according to PPPoE visitor The session connection parameter that family end is sent is sent to the corresponding server of session connection parameter for message is controlled.
Each component part in system above can be applied in embodiment below:
Receiving module receives PPPoE message;Determination type module determines the type of PPPoE message;If the class of PPPoE message Type is data message, then first obtains sender's type that module obtains data message;
When sender's type of the data message is PPPoE server, decapsulation submodule carries out data message The decapsulation of heading obtains the destination address of data message;Data message is sent to destination address by sending submodule;
When sender's type of the data message is pppoe client, receiving submodule receives the PPPoE client Hold the session connection parameter sent;Determine that submodule determines PPPoE network interface according to the session id, and according to the server MAC Address determines dialog server;The data message is packaged by encapsulation submodule, and will by the PPPoE network interface The data message after encapsulation is sent to the dialog server;
When the type of the message is control message, second obtains sender's type that module obtains control message;Work as control When sender's type of message processed is PPPoE server, third sending module is sent to pppoe client for message is controlled, with Handle pppoe client to control message;When the sender's type for controlling message is pppoe client, the 4th hair The session connection parameter for sending module to be sent according to pppoe client is sent to the corresponding service of session connection parameter for message is controlled Device.
Referring to FIG. 7, Fig. 7 is a kind of structure chart of PPPoE message transmissions equipment provided by the embodiment of the present application.
The PPPoE message transmissions equipment 900 can generate bigger difference because configuration or performance are different, may include one A or more than one processor (central processing units, CPU) 922 is (for example, one or more are handled Device) and memory 932, one or more storage application programs 942 or data 944 storage medium 930 (such as one or More than one mass memory unit).Wherein, memory 932 and storage medium 930 can be of short duration storage or persistent storage.It deposits Storage may include one or more modules (diagram does not mark) in the program of storage medium 930, and each module may include To the series of instructions operation in device.Further, central processing unit 922 can be set to communicate with storage medium 930, The series of instructions operation in storage medium 930 is executed in PPPoE message transmissions equipment 900.
PPPoE message transmissions equipment 900 can also include one or more power supplys 926, one or more have Line or radio network interface 950, one or more input/output interfaces 958, and/or, one or more operation systems System 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in the method for PPPoE message transmissions described in above-mentioned Fig. 1 to Fig. 4 is by PPPoE message transmissions equipment base It is realized in the structure shown in Fig. 7.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or module or Communication connection can be electrical property, mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module Component may or may not be physical module, it can and it is in one place, or may be distributed over multiple networks In module.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
Above to method, system, equipment and the computer-readable storage of a kind of PPPoE message transmissions provided herein Medium is described in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, with The explanation of upper embodiment is merely used to help understand the present processes and its core concept.It should be pointed out that being led for this technology For the those of ordinary skill in domain, under the premise of not departing from the application principle, can also to the application carry out it is several improvement and Modification, these improvement and modification are also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

Claims (10)

1. a kind of method of PPPoE message transmissions characterized by comprising
Receive PPPoE message;
Determine the type of the PPPoE message;Wherein, the type of the PPPoE message includes data message;
If the type of the PPPoE message is data message, sender's type of the data message is obtained;
When sender's type of the data message is PPPoE server, the destination address of the data message is confirmed, and will The data message is sent to the destination address;
When sender's type of the data message is pppoe client, connected according to the session that the pppoe client is sent It connects parameter and determines corresponding server, and the data message is sent to the server.
2. the method according to claim 1, wherein when sender's type of the data message is PPPoE clothes Be engaged in device when, confirm the destination address of the data message, and by the data message forwarding to the destination address, comprising:
The decapsulation that heading is carried out to the data message, obtains the destination address of the data message;
The data message is sent to the destination address.
3. the method according to claim 1, wherein when sender's type of the data message is PPPoE visitor When the end of family, corresponding server is determined according to the session connection parameter that the pppoe client is sent, and by the data message It is sent to the server, comprising:
Receive the session connection parameter that the pppoe client is sent;Wherein, the session connection parameter includes session id and clothes Business device MAC Address;
PPPoE network interface is determined according to the session id, and dialog server is determined according to the MAC address of server;
The data message is packaged, and the data message after encapsulation is sent to by institute by the PPPoE network interface State dialog server.
4. according to the method described in claim 3, it is characterized in that, the generating process of the session connection parameter includes:
The pppoe client carries out discovery phase, to identify the MAC Address of server, and establishes session id;
After the completion of the discovery phase, server select command is received;
Corresponding session id and MAC address of server is selected to join as the session connection according to the server select command Number.
5. the method according to claim 1, wherein the type of the PPPoE message further include control message, when When the type of the PPPoE message is the control message, further comprise the steps of:
Obtain sender's type of the control message;
When sender's type of the control message is PPPoE server, the control message is sent to the PPPoE visitor Family end, so that the pppoe client handles the control message;
When sender's type of the control message is the pppoe client, according to the meeting of pppoe client transmission It talks about Connecting quantity and the control message is sent to the corresponding server of the session connection parameter.
6. a kind of system of PPPoE message transmissions characterized by comprising
Receiving module, for receiving PPPoE message;
Determination type module, for determining the type of the PPPoE message;Wherein, the type of the PPPoE message includes data Message;
First obtains module, if the type for the PPPoE message is data message, obtains the transmission of the data message Square type;
First sending module, for confirming the datagram when sender's type of the data message is PPPoE server The destination address of text, and the data message is sent to the destination address;
Second sending module, for when sender's type of the data message be pppoe client when, according to the PPPoE The session connection parameter that client is sent determines corresponding server, and the data message is sent to the server.
7. system according to claim 6, which is characterized in that first sending module includes:
Submodule is decapsulated, for carrying out the decapsulation of heading to the data message, obtains the target of the data message Address;
Sending submodule, for the data message to be sent to the destination address.
8. system according to claim 6, which is characterized in that second sending module includes:
Receiving submodule, the session connection parameter sent for receiving the pppoe client;Wherein, the session connection ginseng Number includes session id and MAC address of server;
Submodule is determined, for determining PPPoE network interface according to the session id, and according to determining pair of the MAC address of server Talk about server;
Submodule is encapsulated, for the data message to be packaged, and by the PPPoE network interface by the number after encapsulation The dialog server is sent to according to message.
9. a kind of PPPoE message transmissions equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the PPPoE message transmissions as described in any one of claim 1 to 5 when for executing the computer program Method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, realizing the PPPoE message transmissions as described in any one of claim 1 to 5 when the computer program is executed by processor The step of method.
CN201910189511.5A 2019-03-13 2019-03-13 A kind of method, system, equipment and the storage medium of PPPoE message transmissions Pending CN109768905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910189511.5A CN109768905A (en) 2019-03-13 2019-03-13 A kind of method, system, equipment and the storage medium of PPPoE message transmissions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910189511.5A CN109768905A (en) 2019-03-13 2019-03-13 A kind of method, system, equipment and the storage medium of PPPoE message transmissions

Publications (1)

Publication Number Publication Date
CN109768905A true CN109768905A (en) 2019-05-17

Family

ID=66459005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910189511.5A Pending CN109768905A (en) 2019-03-13 2019-03-13 A kind of method, system, equipment and the storage medium of PPPoE message transmissions

Country Status (1)

Country Link
CN (1) CN109768905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031027A (en) * 2019-12-09 2020-04-17 广州信天翁信息科技有限公司 Efficient data transmission method and heterogeneous data transmission layer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674579A (en) * 2004-07-20 2005-09-28 华为技术有限公司 Method for supporting PPPoA on wideband switch-in equipment
CN1972238A (en) * 2005-11-24 2007-05-30 上海贝尔阿尔卡特股份有限公司 A PPPoE protocol message transfer method
CN101079771A (en) * 2007-04-03 2007-11-28 中兴通讯股份有限公司 A broadband access method based on PPPoE
CN101729534A (en) * 2009-05-31 2010-06-09 中兴通讯股份有限公司 Network access device, system and method based on PPPoE
CN104125191A (en) * 2013-04-23 2014-10-29 华为技术有限公司 Processing method, device and system of point to point protocol over Ethernet
CN105099898A (en) * 2014-04-16 2015-11-25 杭州迪普科技有限公司 PPPOE (point-to-point protocol over Ethernet) message forwarding method and BRAS (broadband remote access server)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674579A (en) * 2004-07-20 2005-09-28 华为技术有限公司 Method for supporting PPPoA on wideband switch-in equipment
CN1972238A (en) * 2005-11-24 2007-05-30 上海贝尔阿尔卡特股份有限公司 A PPPoE protocol message transfer method
CN101079771A (en) * 2007-04-03 2007-11-28 中兴通讯股份有限公司 A broadband access method based on PPPoE
CN101729534A (en) * 2009-05-31 2010-06-09 中兴通讯股份有限公司 Network access device, system and method based on PPPoE
CN104125191A (en) * 2013-04-23 2014-10-29 华为技术有限公司 Processing method, device and system of point to point protocol over Ethernet
CN105099898A (en) * 2014-04-16 2015-11-25 杭州迪普科技有限公司 PPPOE (point-to-point protocol over Ethernet) message forwarding method and BRAS (broadband remote access server)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031027A (en) * 2019-12-09 2020-04-17 广州信天翁信息科技有限公司 Efficient data transmission method and heterogeneous data transmission layer

Similar Documents

Publication Publication Date Title
CN105376299B (en) Network communication method, equipment and network attached storage equipment
CN103534984A (en) Port setting method, apparatus and computer program product for routing
CN104253856A (en) Scalable Web Real-Time Communications (WebRTC) media engines, and related method and system
CN108667638A (en) A kind of network service configuration method and network management device
CN107800603B (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
CN107820262B (en) Parameter configuration method, device and system
CN109391502A (en) A kind of information configuring methods and administrative unit
CN107302528A (en) A kind of transmission method of multi-protocol data and a kind of gateway apparatus
CN102438331B (en) A kind of mobile terminal is by the method and system of surfing Internet with cell phone
US20220408332A1 (en) Method for advertising route, network element, system, and device
WO2012130049A1 (en) Address processing method and device
CN102612033B (en) Mobile phone with thin wireless access point and communication method for mobile phone
CN105959188B (en) Method and device for controlling user terminal to be on-line
CN107623752A (en) Network management and device based on link layer
CN104486217A (en) Cross network message transmitting method and equipment
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
CN104883277A (en) Method and system for information interaction based on BMC
CN102694790B (en) Method of converging a plurality of communication standards and packaging or signal transmission method
CN109768905A (en) A kind of method, system, equipment and the storage medium of PPPoE message transmissions
WO2015058413A1 (en) Data configuration method and network management server
US8924520B2 (en) Method, remote access server and system for configuring a quality of service parameter
WO2017161866A1 (en) Network connection method and device
CN113163276A (en) Method, device and system for issuing routing information
CN107342940A (en) The generation method and device and message processing method and device of a kind of control information
WO2022160864A1 (en) Network access method and apparatus for intelligent device, and intelligent device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190517