CN111182016A - PPPoE dialing message transmission method and device - Google Patents

PPPoE dialing message transmission method and device Download PDF

Info

Publication number
CN111182016A
CN111182016A CN201811340997.XA CN201811340997A CN111182016A CN 111182016 A CN111182016 A CN 111182016A CN 201811340997 A CN201811340997 A CN 201811340997A CN 111182016 A CN111182016 A CN 111182016A
Authority
CN
China
Prior art keywords
message
pppoe
nvgre tunnel
nvgre
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811340997.XA
Other languages
Chinese (zh)
Other versions
CN111182016B (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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811340997.XA priority Critical patent/CN111182016B/en
Publication of CN111182016A publication Critical patent/CN111182016A/en
Application granted granted Critical
Publication of CN111182016B publication Critical patent/CN111182016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a PPPoE dialing message transmission method and a device, wherein the method comprises the following steps: a first network device receives a point-to-point communication protocol PPPoE message based on the Ethernet; if the length of the PPPoE message is smaller than or equal to a preset message threshold value, the first network equipment encapsulates the PPPoE message into the NVGRE tunnel message; and the first network equipment determines the NVGRE tunnel corresponding to the TNI, and sends the NVGRE tunnel message to second network equipment corresponding to the destination IP address through the NVGRE tunnel.

Description

PPPoE dialing message transmission method and device
Technical Field
The invention relates to the field of network transmission, in particular to a PPPoE dialing message transmission method and a PPPoE dialing message transmission device.
Background
A Point-to-Point Protocol over Ethernet (PPPoE) based on Ethernet is a Protocol for transmitting data over Ethernet according to a Point-to-Point Protocol, which can provide good access control and charging functions. However, the PPPoE protocol belongs to a two-layer protocol, and therefore, only packet transmission can be performed based on a two-layer network, and three-layer forwarding cannot be performed, and a server thereof can only be deployed in a two-layer network. With the rise of Software Defined Networking (SDN) technology, centralized management and control gradually become the mainstream, and in an SDN scenario, some network devices bearing a control function, such as a PPPoE server, are changed from the original two-layer network deployment to the cluster deployment of a three-layer network. However, the PPPoE protocol belongs to a two-layer protocol, and does not support three-layer forwarding, so in the prior art, PPPoE messages cannot be transmitted between a two-layer network device and a three-layer network device, for example, between a client in a one-layer network and a PPPoE server in a three-layer network.
Therefore, in the prior art, in an SDN scene, it is an urgent problem to be solved that PPPoE packet transmission cannot be performed between a two-layer network device and a three-layer network device.
Disclosure of Invention
The embodiment of the application provides a PPPoE message transmission method and a PPPoE message transmission device, and solves the problem that in the prior art, in an SDN scene, PPPoE message transmission cannot be performed between a two-layer network device and a three-layer network device, which is an urgent need to be solved.
The embodiment of the invention provides a PPPoE message transmission method, which comprises the following steps:
a first network device receives a point-to-point communication protocol PPPoE message based on the Ethernet;
if the length of the PPPoE message is smaller than or equal to a preset message threshold value, the first network equipment encapsulates the PPPoE message into the NVGRE tunnel message; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI), wherein the TNI corresponds to one NVGRE tunnel;
and the first network equipment determines the NVGRE tunnel corresponding to the TNI, and sends the NVGRE tunnel message to second network equipment corresponding to the destination IP address through the NVGRE tunnel.
Optionally, the method further includes:
if the length of the PPPoE message is greater than the preset message threshold, the first network device divides the PPPoE message into N PPPoE sub-messages, and encapsulates each PPPoE sub-message into the NVGRE tunnel message; wherein the length of each PPPoE sub-message is less than or equal to the preset message threshold; n is an integer greater than 1.
Optionally, the method includes:
if the first network device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; and if the first network equipment is the PPPoE server cluster, the second network equipment is the NVE equipment.
Optionally, the method includes:
the NVGRE tunnel message also comprises an outer Ethernet header and an inner Ethernet header; the outer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the memory ethernet header includes a source physical address of the NVGRE tunnel packet and a destination physical address of the NVGRE tunnel packet.
The embodiment of the invention provides a PPPoE message transmission method, which comprises the following steps:
the second network equipment receives a network virtualization NVGRE tunnel message which is sent by the first network equipment and packaged by using a general route through the NVGRE tunnel; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI); the NVGRE tunnel corresponds to the TNI;
the second network equipment decapsulates the NVGRE tunnel message into a PPPoE message, and determines the length of the PPPoE message;
and if the destination IP address is different from the IP address of the second network equipment, or the length of the PPPoE message is greater than a preset message threshold value, the second network equipment discards the NVGRE tunnel message.
Optionally, the method includes:
and the second network equipment acquires the TNI from the NVGRE tunnel message and determines the bandwidth cost of the user corresponding to the TNI.
The embodiment of the invention provides a PPPoE message transmission device, which comprises:
the receiving module is used for receiving a point-to-point communication protocol PPPoE message based on the Ethernet;
a processing module, configured to encapsulate the PPPoE message as the NVGRE tunnel message if the length of the PPPoE message is less than or equal to a preset message threshold; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI), wherein the TNI corresponds to one NVGRE tunnel; and the NVGRE tunnel corresponding to the TNI is determined, and the NVGRE tunnel message is sent to the second network equipment corresponding to the destination IP address through the NVGRE tunnel.
Optionally, the processing module is further configured to:
if the length of the PPPoE message is greater than the preset message threshold, the PPPoE message is divided into N PPPoE sub-messages, and each PPPoE sub-message is packaged into the NVGRE tunnel message; wherein the length of each PPPoE sub-message is less than or equal to the preset message threshold; n is an integer greater than 1.
Optionally, the apparatus includes:
if the device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; and if the device is the PPPoE server cluster, the second network equipment is the NVE equipment.
Optionally, the NVGRE tunnel packet further includes an outer ethernet header and an inner ethernet header; the outer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the memory ethernet header includes a source physical address of the NVGRE tunnel packet and a destination physical address of the NVGRE tunnel packet.
The embodiment of the invention provides a PPPoE message transmission device, which comprises:
the receiving module is used for receiving a network virtualization NVGRE tunnel message which is sent by the first network equipment and encapsulated by the general routing through the NVGRE tunnel; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI); the NVGRE tunnel corresponds to the TNI;
the processing module is used for decapsulating the NVGRE tunnel message into a PPPoE message and determining the length of the PPPoE message; and the NVGRE tunnel message is discarded if the destination IP address is different from the IP address of the second network device or the length of the PPPoE message is greater than a preset message threshold value.
Optionally, the processing module is further configured to:
and acquiring the TNI from the NVGRE tunnel message, and determining the bandwidth cost of a user corresponding to the TNI.
In the embodiment of the invention, after the first network device encapsulates the PPPoE message through the NVGRE tunnel information, the NVGRE tunnel can transmit the encapsulated PPPoE message to the second network device belonging to the three-layer network, thereby realizing the transmission of the PPPoE message between the first network device or the two-layer network device and the three-layer network device.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a network topology architecture diagram corresponding to a PPPoE message transmission method according to an embodiment of the present invention.
Fig. 2 is a flowchart of steps corresponding to a PPPoE message transmission method according to an embodiment of the present invention.
Fig. 3 is a PPPoE message encapsulation format corresponding to the PPPoE message transmission method according to the embodiment of the present invention.
Fig. 4 is a timing diagram corresponding to a PPPoE message transmission method according to an embodiment of the present invention.
Fig. 5 is a flowchart of steps corresponding to a PPPoE message transmission method according to an embodiment of the present invention.
Fig. 6 is a timing diagram corresponding to a PPPoE message transmission method according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a PPPoE message transmission device according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a PPPoE message transmission device according to an embodiment of the present invention.
Detailed Description
In order to better understand the technical solutions, the technical solutions will be described in detail below with reference to the drawings and the specific embodiments of the specification, and it should be understood that the specific features in the embodiments and examples of the present application are detailed descriptions of the technical solutions of the present application, but not limitations of the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
A Point-to-Point Protocol over Ethernet (PPPoE) based on Ethernet is a Protocol for transmitting data over Ethernet according to a Point-to-Point Protocol, which can provide good access control and charging functions. The protocol can realize that a plurality of hosts on a remote site are connected through the same access equipment to carry out dial-up networking, and meanwhile, the access equipment can provide access control and charging functions. In addition, among many access technologies, the most economical method for connecting multiple hosts to an access device is through ethernet connection, and a Point-to-Point Protocol (PPP) can provide good access control and charging functions. Therefore, PPPoE is an economical, convenient and fully functional dial-up networking protocol.
However, the PPPoE protocol belongs to a two-layer protocol, and therefore, only packet transmission can be performed based on a two-layer network, and three-layer forwarding cannot be performed. The two-layer network is a data link layer in an Open System Interconnection (OSI) model, and the three-layer network is a network layer in the OSI model.
With the rise of Software Defined Networking (SDN) technology, centralized management and control is becoming the mainstream. The SDN is a novel network architecture, and is an implementation manner of network virtualization, and a core technology thereof separates a control plane and a data plane of a network device, and control functions are concentrated on one control plane. The data plane of the SDN is only responsible for forwarding data, and a network manager can define rules, strategies and the like of network forwarding through programming the control plane, so that flexible control of network flow is realized. Therefore, in an SDN scenario, some network devices bearing a control function, such as PPPoE servers, need to be deployed from an original two-layer network to a cluster in a three-layer network. However, the PPPoE protocol belongs to a two-layer protocol, and does not support three-layer forwarding, so in the prior art, PPPoE messages cannot be transmitted between a two-layer network device and a three-layer network device, for example, between a client in a one-layer network and a PPPoE server in a three-layer network.
Therefore, in the prior art, in an SDN scene, it is an urgent problem to be solved that PPPoE packet transmission cannot be performed between a two-layer network device and a three-layer network device. The embodiment of the invention provides a PPPoE message transmission method based on Network Virtualization using general Routing Encapsulation (NVGRE). NVGRE is a technique to create multiple independent virtual two-tier networks, among other things. The NVGRE adopts a general routing encapsulation strategy to create a large number of Virtual Local Area Network (VLAN) VLAN subnets, which can be extended to a distributed data center and two-layer and three-layer networks, thereby implementing a multi-lease Network with load balancing shared in the cloud and private networks. NVGRE uses Generic Routing Encapsulation (GRE) to create an independent virtual two-tier network, limiting the physical two-tier network or extending beyond subnet boundaries. NVGRE solves the multi-tenancy network problem by leasing network identifiers (TNIs), each TNI corresponding to a GRE channel one-to-one. It should be noted that, in the embodiment of the present invention, only NVGRE is taken as an example to transmit a PPPoE message.
Fig. 1 is a network topology structure diagram corresponding to a PPPoE message transmission method according to an embodiment of the present invention. The embodiment of the present invention only takes the scenario in fig. 1 as an example to illustrate PPPoE message transmission between a PPPoE client of a layer network device and a PPPoE server cluster of a layer three network device, but is not limited to PPPoE message transmission between other network devices.
The network topology architecture includes: a PPPoE client, a Network Virtualization Edge (NVE) device, a router, an NVGRE tunnel, and a PPPoE server cluster.
PPPoE client: computers connected to the PPPoE server cluster through PPPoE use the files, printers and other resources shared by the PPPoE server cluster.
NVE equipment: NVGRE's edge device. NVGRE related processing is performed on NVE, for example, identifying an NVGRE network to which an ethernet data frame belongs, performing two-layer forwarding on the data frame based on NVGRE, encapsulating/decapsulating a packet, and the like. The NVE may be a server where the virtual machine is located, or may be an independent physical device.
The router: the router is a device for connecting each local area network and wide area network in the internet, and automatically selects and sets a route according to the condition of a channel, and sends signals in a front-back sequence by using an optimal path.
NVGRE tunnel: NVGRE tunnels are a type of tunneling technique, which is a way to pass data between networks by using the infrastructure of the internetwork. The data (or payload) communicated using the tunnel may be data frames or packets of different protocols. Tunneling protocols re-encapsulate data frames or packets of other protocols and then send through tunnels. The new header provides routing information to deliver the encapsulated payload data over the internet. In the scenario shown in fig. 1, the tunneling protocol is NVGRE protocol. The PPPoE client is connected with the NVE device, encapsulates the PPPoE message by adopting an NVGRE protocol, and transmits the PPPoE message with the PPPoE server cluster by the forwarding of the router in the three-layer network through the NVGRE tunnel.
PPPoE server cluster: the set of multiple servers running PPPoE services has multiple servers physically, and only one server logically is seen from a client. The PPPoE server cluster can utilize a plurality of computers to perform parallel computation so as to obtain high computation speed, and can also use a plurality of computers to perform backup so as to ensure that any one machine damages the whole system or can normally run.
Fig. 2 shows a specific transmission process, which is a flowchart of steps corresponding to the PPPoE message transmission method according to the embodiment of the present invention. Fig. 2 is a flowchart of a procedure in which a layer one or two layer network device sends a PPPoE message to a layer three network device.
Step 201: the first network equipment receives a point-to-point communication protocol PPPoE message based on the Ethernet.
Step 202: and if the length of the PPPoE message is less than or equal to a preset message threshold value, the first network equipment encapsulates the PPPoE message into the NVGRE tunnel message.
The NVGRE tunnel message includes a destination IP address of the NVGRE tunnel message and a tenant network identifier TNI, where the TNI corresponds to one NVGRE tunnel.
Step 203: and the first network equipment determines the NVGRE tunnel corresponding to the TNI, and sends the NVGRE tunnel message to second network equipment corresponding to the destination IP address through the NVGRE tunnel.
In step 201, a first network device receives a point-to-point protocol over ethernet PPPoE message.
In step 202, the first network device encapsulates the PPPoE message into an NVGRE tunnel message according to the NVGRE tunnel information. Optionally, the first network device is an NVE device. The NVGRE tunnel information comprises an outer layer Ethernet header, an outer layer IP address, a GRE header and an inner layer Ethernet header.
Fig. 3 shows specific contents of an NVGRE tunnel message, which is a PPPoE message encapsulation format corresponding to the PPPoE message transmission method provided by the embodiment of the present invention. The NVGRE tunnel message after PPPoE message encapsulation includes but is not limited to: outer Ethernet head, outer IP address, GRE head, inner Ethernet head, PPPoE data. The PPPoE data is an original PPPoE message, and the GRE header at least comprises a marking bit, TNI and a protocol type.
One possible implementation is to add a GRE header before the inner ethernet header, and write the TNI in the VSID field in the GRE header 1. And 2, adding an outer layer Internet Protocol (IP) address before the GRE header, wherein the outer layer IP address comprises an outer layer IP source address and an outer layer IP destination address, the outer layer IP source address is the IP address of the local NVE, and the outer layer IP destination address provides an accessible IP address for the PPPoE server cluster. And 3, adding an outer Ethernet header, wherein the outer Ethernet header comprises a source physical address and a destination physical address, the source physical address is a physical address of NVE, and the destination physical address is a next hop physical address. After the PPPoE message is converted into a three-layer NVGRE tunnel message, the message can be forwarded by three-layer network equipment to reach the PPPoE server cluster.
Optionally, if the length of the PPPoE message is greater than the preset message threshold, the first network device divides the PPPoE message into N PPPoE sub-messages, and encapsulates each PPPoE sub-message as the NVGRE tunnel message; wherein the length of each PPPoE sub-message is less than or equal to the preset message threshold; n is an integer greater than 1.
In step 202, the TNI is configured to determine an NVGRE tunnel corresponding to the TNI, and after the NVGRE tunnel packet is encapsulated, the first network device sends the NVGRE tunnel packet to the second network device through the NVGRE tunnel determined by the TNI.
In step 203, optionally, the first network device receives a response packet of the NVGRE tunnel packet in order to determine that the PPPoE server cluster receives the NVGRE tunnel packet and implement data interaction with the PPPoE server cluster.
In the above step 201 to step 203, if the first network device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; and if the first network equipment is the PPPoE server cluster, the second network equipment is the NVE equipment.
As shown in fig. 4, a timing diagram corresponding to a PPPoE message transmission method according to an embodiment of the present invention is shown. The sequence diagram describes a process in which a first layer network device sends a PPPoE message to a third layer network device. The network device related to fig. 4 includes: PPPoE client, NVE, router, PPPoE server cluster. The specific time sequence process is as follows:
401: and the PPPoE client sends a PPPoE dialing message to the NVE.
402: and the NVE encapsulates the NVGRE tunnel message.
403: and the NVE sends the NVGRE tunnel message to the router.
The router is a three-layer network device.
404: and the router forwards the NVGRE tunnel message to the PPoE server cluster.
405: and the PPoE server cluster decapsulates the NVGRE tunnel message.
406: and the PPoE server cluster extracts the TNI in the NVGRE tunnel message.
407: and the PPPoE server cluster extracts PPPoE information in the NVGRE tunnel message.
408: and the PPoE server cluster determines the NVGRE tunnel of the NVGRE tunnel message.
The above 405 to 408 are specific steps of a series of processing after the PPPoE server cluster receives the NVGRE tunnel message, which will be described in detail with reference to fig. 5, and as shown in fig. 5, is a flowchart of steps corresponding to the PPPoE message transmission method provided by the embodiment of the present invention.
Step 501: and the second network equipment receives a network virtualization NVGRE tunnel message which is sent by the first network equipment and packaged by using the general routing through the NVGRE tunnel.
The NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI); the NVGRE tunnel corresponds to the TNI.
Step 502: and the second network equipment decapsulates the NVGRE tunnel message into a PPPoE message and determines the length of the PPPoE message.
Step 503: if the destination IP address is different from the IP address of the second network device, or the length of the PPPoE message is larger than a preset message threshold value; the second network device discards the NVGRE tunnel message.
In step 501, the second network device receives an NVGRE tunnel packet. The NVGRE tunnel message comprises a point-to-point communication protocol PPPoE message based on the Ethernet and a tenant network identifier TNI; the TNI is used for determining an NVGRE tunnel corresponding to the TNI; the first network equipment is one-layer network equipment or two-layer network equipment; the second network device is a three-layer network device.
After acquiring the PPPoE message, the PPPoE server cluster generates a PPPoE response message, and then sends the PPPoE response message to the PPPoE client through the NVE, which will be described in detail with reference to fig. 6, as shown in fig. 6, is a timing diagram corresponding to the PPPoE message transmission method provided by the embodiment of the present invention.
601: the PPPoE server cluster generates a PPPoE response message.
602: the PPPoE server cluster looks up TNI.
603: and the PPPoE server cluster encapsulates the PPPoE response message into a response message of the NVGRE tunnel message according to the TNI.
604: and the PPPoE server cluster sends the response message of the NVGRE tunnel message to the router.
605: and the router transmits a response message of the NVGRE tunnel message to the NVE.
606: and the NVE decapsulates the response message of the NVGRE tunnel message.
607: and the NVE sends a PPPoE response message to the PPPoE client.
In the embodiment of the invention, after the first network device encapsulates the PPPoE message through the NVGRE tunnel information, the NVGRE tunnel can transmit the encapsulated PPPoE message to the second network device belonging to the three-layer network, thereby realizing the transmission of the PPPoE message between the first network device or the two-layer network device and the three-layer network device.
As shown in fig. 7, a schematic structural diagram of a PPPoE message transmission device provided in an embodiment of the present invention is shown, where the device includes:
a receiving module 701, configured to receive a point-to-point protocol over ethernet PPPoE message;
a processing module 702, configured to encapsulate the PPPoE message as the NVGRE tunnel message if the length of the PPPoE message is less than or equal to a preset message threshold; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI), wherein the TNI corresponds to one NVGRE tunnel; and the NVGRE tunnel corresponding to the TNI is determined, and the NVGRE tunnel message is sent to the second network equipment corresponding to the destination IP address through the NVGRE tunnel.
Optionally, the processing module 702 is further configured to:
if the length of the PPPoE message is greater than the preset message threshold, the PPPoE message is divided into N PPPoE sub-messages, and each PPPoE sub-message is packaged into the NVGRE tunnel message; wherein the length of each PPPoE sub-message is less than or equal to the preset message threshold; n is an integer greater than 1.
Optionally, the apparatus includes:
if the device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; and if the device is the PPPoE server cluster, the second network equipment is the NVE equipment.
Optionally, the NVGRE tunnel packet further includes an outer ethernet header and an inner ethernet header; the outer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the memory ethernet header includes a source physical address of the NVGRE tunnel packet and a destination physical address of the NVGRE tunnel packet.
As shown in fig. 8, a schematic structural diagram of a PPPoE message transmission device according to an embodiment of the present invention is shown, where the device includes:
a receiving module 801, configured to receive, through an NVGRE tunnel, a network virtualization NVGRE tunnel message that is sent by a first network device and encapsulated by using a generic route; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI); the NVGRE tunnel corresponds to the TNI;
a processing module 802, configured to decapsulate the NVGRE tunnel packet into a PPPoE packet, and determine a length of the PPPoE packet; and the NVGRE tunnel message is discarded if the destination IP address is different from the IP address of the second network device or the length of the PPPoE message is greater than a preset message threshold value.
Optionally, the processing module 802 is further configured to:
and acquiring the TNI from the NVGRE tunnel message, and determining the bandwidth cost of a user corresponding to the TNI.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A PPPoE dialing message transmission method is characterized by comprising the following steps:
a first network device receives a point-to-point communication protocol PPPoE message based on the Ethernet;
if the length of the PPPoE message is smaller than or equal to a preset message threshold value, the first network equipment encapsulates the PPPoE message into the NVGRE tunnel message; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI), wherein the TNI corresponds to one NVGRE tunnel;
and the first network equipment determines the NVGRE tunnel corresponding to the TNI, and sends the NVGRE tunnel message to second network equipment corresponding to the destination IP address through the NVGRE tunnel.
2. The method of claim 1, further comprising:
if the length of the PPPoE message is greater than the preset message threshold, the first network device divides the PPPoE message into N PPPoE sub-messages, and encapsulates each PPPoE sub-message into the NVGRE tunnel message; wherein the length of each PPPoE sub-message is less than or equal to the preset message threshold; n is an integer greater than 1.
3. The method of claim 1, comprising:
if the first network device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; and if the first network equipment is the PPPoE server cluster, the second network equipment is the NVE equipment.
4. A method according to any one of claims 1 to 3, comprising:
the NVGRE tunnel message also comprises an outer Ethernet header and an inner Ethernet header; the outer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the memory ethernet header includes a source physical address of the NVGRE tunnel packet and a destination physical address of the NVGRE tunnel packet.
5. A method for packet transmission, comprising:
the second network equipment receives a network virtualization NVGRE tunnel message which is sent by the first network equipment and packaged by using a general route through the NVGRE tunnel; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI); the NVGRE tunnel corresponds to the TNI;
the second network equipment decapsulates the NVGRE tunnel message into a PPPoE message, and determines the length of the PPPoE message;
and if the destination IP address is different from the IP address of the second network equipment, or the length of the PPPoE message is greater than a preset message threshold value, the second network equipment discards the NVGRE tunnel message.
6. The method of claim 5, comprising:
and the second network equipment acquires the TNI from the NVGRE tunnel message and determines the bandwidth cost of the user corresponding to the TNI.
7. A PPPoE dialing message transmission device is characterized by comprising:
the receiving module is used for receiving a point-to-point communication protocol PPPoE message based on the Ethernet;
a processing module, configured to encapsulate the PPPoE message as the NVGRE tunnel message if the length of the PPPoE message is less than or equal to a preset message threshold; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI), wherein the TNI corresponds to one NVGRE tunnel; and the NVGRE tunnel corresponding to the TNI is determined, and the NVGRE tunnel message is sent to the second network equipment corresponding to the destination IP address through the NVGRE tunnel.
8. The apparatus of claim 7, wherein the processing module is further configured to:
if the length of the PPPoE message is greater than the preset message threshold, the PPPoE message is divided into N PPPoE sub-messages, and each PPPoE sub-message is packaged into the NVGRE tunnel message; wherein the length of each PPPoE sub-message is less than or equal to the preset message threshold; n is an integer greater than 1.
9. The apparatus of claim 7, comprising:
if the device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; and if the device is the PPPoE server cluster, the second network equipment is the NVE equipment.
10. The apparatus of any of claims 7-9, comprising:
the NVGRE tunnel message also comprises an outer Ethernet header and an inner Ethernet header; the outer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the memory ethernet header includes a source physical address of the NVGRE tunnel packet and a destination physical address of the NVGRE tunnel packet.
11. A message transmission apparatus, comprising:
the receiving module is used for receiving a network virtualization NVGRE tunnel message which is sent by the first network equipment and encapsulated by the general routing through the NVGRE tunnel; the NVGRE tunnel message comprises a destination IP address of the NVGRE tunnel message and a Tenant Network Identifier (TNI); the NVGRE tunnel corresponds to the TNI;
the processing module is used for decapsulating the NVGRE tunnel message into a PPPoE message and determining the length of the PPPoE message; and the NVGRE tunnel message is discarded if the destination IP address is different from the IP address of the second network device or the length of the PPPoE message is greater than a preset message threshold value.
12. The apparatus of claim 11, wherein the processing module is further configured to:
and acquiring the TNI from the NVGRE tunnel message, and determining the bandwidth cost of a user corresponding to the TNI.
CN201811340997.XA 2018-11-12 2018-11-12 PPPoE dialing message transmission method and device Active CN111182016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811340997.XA CN111182016B (en) 2018-11-12 2018-11-12 PPPoE dialing message transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811340997.XA CN111182016B (en) 2018-11-12 2018-11-12 PPPoE dialing message transmission method and device

Publications (2)

Publication Number Publication Date
CN111182016A true CN111182016A (en) 2020-05-19
CN111182016B CN111182016B (en) 2022-12-27

Family

ID=70620721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811340997.XA Active CN111182016B (en) 2018-11-12 2018-11-12 PPPoE dialing message transmission method and device

Country Status (1)

Country Link
CN (1) CN111182016B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060456A (en) * 2007-06-12 2007-10-24 中兴通讯股份有限公司 Ethernet point-to-point protocol-based broad band access method and system
CN101616081A (en) * 2009-07-30 2009-12-30 杭州华三通信技术有限公司 A kind of message forwarding method and router based on the tunnel
CN103259727A (en) * 2012-08-31 2013-08-21 杭州华三通信技术有限公司 Packet forwarding method and device
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
US20140301391A1 (en) * 2013-04-04 2014-10-09 Telefonaktiebolaget L M Ericsson (Publ) Method and Apparatus for Exchanging IP Packets Among Network Layer 2 Peers
US20150195251A1 (en) * 2014-01-09 2015-07-09 Electronics And Telecommunications Research Institute Packet analysis apparatus and method and virtual private network server
CN105409167A (en) * 2013-08-05 2016-03-16 华为技术有限公司 Method for packet tunneling through software defined network, method of intelligently controlling flow of a packet through software defined network and system
CN105429910A (en) * 2015-11-06 2016-03-23 京信通信技术(广州)有限公司 Message transmission and processing method and device
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN105763512A (en) * 2014-12-17 2016-07-13 杭州华三通信技术有限公司 SDN virtual network communication method and device
CN106100960A (en) * 2016-07-06 2016-11-09 杭州华三通信技术有限公司 Method, Apparatus and system across the intercommunication of storage area network Fabric
CN106230793A (en) * 2016-07-22 2016-12-14 安徽皖通邮电股份有限公司 A kind of MPLSVPN of realization operates in the method on the IPVPN of encryption
CN106302069A (en) * 2015-05-22 2017-01-04 杭州华三通信技术有限公司 Realize interoperability methods and the equipment of VXLAN and NVGRE network
CN106453023A (en) * 2016-11-01 2017-02-22 上海优刻得信息科技有限公司 Communication method, device and system used for physical device and virtual network
US20170063783A1 (en) * 2015-08-25 2017-03-02 Futurewei Technologies, Inc. System and Method for Tunnel Stitching Transport
CN106612245A (en) * 2015-10-27 2017-05-03 大唐移动通信设备有限公司 Message transmission method and system based on GTPU (GPRS Tunneling Protocol for the user plane) tunnel protocol
CN106713100A (en) * 2015-11-17 2017-05-24 华为数字技术(苏州)有限公司 Method for automatically establishing tunnel, CPE and convergence device
CN106713187A (en) * 2015-11-17 2017-05-24 大唐移动通信设备有限公司 Message transmission method and device
CN107547343A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 Message method of controlling operation thereof and device
CN107770026A (en) * 2016-08-17 2018-03-06 中国电信股份有限公司 Tenant network data transmission method, tenant network system and relevant device
CN108123885A (en) * 2016-11-29 2018-06-05 华为技术有限公司 The methods, devices and systems of Message processing
WO2018161672A1 (en) * 2017-03-10 2018-09-13 华为技术有限公司 Packet processing method, apparatus and system

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060456A (en) * 2007-06-12 2007-10-24 中兴通讯股份有限公司 Ethernet point-to-point protocol-based broad band access method and system
CN101616081A (en) * 2009-07-30 2009-12-30 杭州华三通信技术有限公司 A kind of message forwarding method and router based on the tunnel
CN103259727A (en) * 2012-08-31 2013-08-21 杭州华三通信技术有限公司 Packet forwarding method and device
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
US20140301391A1 (en) * 2013-04-04 2014-10-09 Telefonaktiebolaget L M Ericsson (Publ) Method and Apparatus for Exchanging IP Packets Among Network Layer 2 Peers
CN105409167A (en) * 2013-08-05 2016-03-16 华为技术有限公司 Method for packet tunneling through software defined network, method of intelligently controlling flow of a packet through software defined network and system
US20150195251A1 (en) * 2014-01-09 2015-07-09 Electronics And Telecommunications Research Institute Packet analysis apparatus and method and virtual private network server
CN105763512A (en) * 2014-12-17 2016-07-13 杭州华三通信技术有限公司 SDN virtual network communication method and device
CN106302069A (en) * 2015-05-22 2017-01-04 杭州华三通信技术有限公司 Realize interoperability methods and the equipment of VXLAN and NVGRE network
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
US20170063783A1 (en) * 2015-08-25 2017-03-02 Futurewei Technologies, Inc. System and Method for Tunnel Stitching Transport
CN106612245A (en) * 2015-10-27 2017-05-03 大唐移动通信设备有限公司 Message transmission method and system based on GTPU (GPRS Tunneling Protocol for the user plane) tunnel protocol
CN105429910A (en) * 2015-11-06 2016-03-23 京信通信技术(广州)有限公司 Message transmission and processing method and device
CN106713100A (en) * 2015-11-17 2017-05-24 华为数字技术(苏州)有限公司 Method for automatically establishing tunnel, CPE and convergence device
CN106713187A (en) * 2015-11-17 2017-05-24 大唐移动通信设备有限公司 Message transmission method and device
CN106100960A (en) * 2016-07-06 2016-11-09 杭州华三通信技术有限公司 Method, Apparatus and system across the intercommunication of storage area network Fabric
CN106230793A (en) * 2016-07-22 2016-12-14 安徽皖通邮电股份有限公司 A kind of MPLSVPN of realization operates in the method on the IPVPN of encryption
CN107770026A (en) * 2016-08-17 2018-03-06 中国电信股份有限公司 Tenant network data transmission method, tenant network system and relevant device
CN106453023A (en) * 2016-11-01 2017-02-22 上海优刻得信息科技有限公司 Communication method, device and system used for physical device and virtual network
CN108123885A (en) * 2016-11-29 2018-06-05 华为技术有限公司 The methods, devices and systems of Message processing
WO2018161672A1 (en) * 2017-03-10 2018-09-13 华为技术有限公司 Packet processing method, apparatus and system
CN107547343A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 Message method of controlling operation thereof and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨骋等: "无线虚拟专用拨号网***建设", 《通信与广播电视》 *
高彬: "基于Packet Tracer的GRE隧道配置实验设计", 《电脑知识与技术》 *

Also Published As

Publication number Publication date
CN111182016B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
US11671367B1 (en) Methods and apparatus for improving load balancing in overlay networks
CN109218178B (en) Message processing method and network equipment
US11431526B2 (en) Deterministic forwarding across L2 and L3 networks
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
US9130859B1 (en) Methods and apparatus for inter-virtual local area network multicast services
US9240923B2 (en) Methods and apparatus for automatically provisioning resources within a distributed control plane of a switch
US10666459B1 (en) System and method to facilitate interoperability between virtual private LAN service (VPLS) and ethernet virtual private network (EVPN) with all-active multi-homing
EP2579544B1 (en) Methods and apparatus for a scalable network with efficient link utilization
EP2579514B1 (en) Method and apparatus for a converged wired/wireless enterprise network architecture
US8861547B2 (en) Method, apparatus, and system for packet transmission
EP3197107B1 (en) Message transmission method and apparatus
JP2021530912A (en) Network slice control method and device, computer readable storage medium
US9608939B2 (en) Methods and apparatus to reduce forwarding state on an FCoE-to-FC gateway using port-specific MAC addresses
WO2013185715A1 (en) Method for implementing virtual network and virtual network
CN110290093A (en) The SD-WAN network architecture and network-building method, message forwarding method
Naranjo et al. Underlay and overlay networks: The approach to solve addressing and segmentation problems in the new networking era: VXLAN encapsulation with Cisco and open source networks
CN108964940A (en) Message method and device, storage medium
CN107040441B (en) Cross-data-center data transmission method, device and system
EP3836492A1 (en) Pseudo wire load sharing method and device
CN111049752A (en) Load balancing method and device for multiple transmission lines
CN102571375B (en) Multicast forwarding method and device as well as network device
CN111193644A (en) vBRAS service transmission method, device, terminal equipment and medium
CN105553810A (en) Method and device for forwarding special line service packet
EP2466823A2 (en) Methods and apparatus for automatically provisioning resources within a distributed control plane of a switch
US9479439B1 (en) Methods and apparatus for load balancing VLAN traffic

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
GR01 Patent grant
GR01 Patent grant