[go: up one dir, main page]

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

PPPoE dialing message transmission method and device Download PDF

Info

Publication number
CN111182016B
CN111182016B CN201811340997.XA CN201811340997A CN111182016B CN 111182016 B CN111182016 B CN 111182016B CN 201811340997 A CN201811340997 A CN 201811340997A CN 111182016 B CN111182016 B CN 111182016B
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.)
Active
Application number
CN201811340997.XA
Other languages
Chinese (zh)
Other versions
CN111182016A (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拨号报文传输方法及装置A PPPoE dial-up message transmission method and device

技术领域technical field

本发明涉及网络传输领域,尤其涉及一种PPPoE拨号报文传输方法及装置。The invention relates to the field of network transmission, in particular to a PPPoE dial-up message transmission method and device.

背景技术Background technique

基于以太网的点对点通讯协议(Point to Point Protocol over Ethernet,PPPoE)是一种在以太网上按照点对点协议传输数据的协议,该协议可以提供良好的访问控制和计费功能。但PPPoE协议属于二层协议,因此只能基于网络二层进行报文传输,不能进行三层转发,其服务器只能部署在二层网络。随着软件定义网络(Software DefinedNetworking,SDN)技术的兴起,集中管控逐渐成为主流,在SDN场景下,一些承载控制功能的网络设备,如PPPoE服务器,从原来的二层网络部署更改为三层网络的集群部署。但是PPPoE协议属于二层协议,不支持三层转发,那么现有技术下,一二层网络设备与三层网络设备之间,如一层网络中的客户端与三层网络中的PPPoE服务器之间,无法进行PPPoE报文传输。The Ethernet-based point-to-point communication protocol (Point to Point Protocol over Ethernet, PPPoE) is a protocol for transmitting data on the Ethernet according to the point-to-point protocol, and the protocol can provide good access control and billing functions. However, the PPPoE protocol is a Layer 2 protocol, so it can only transmit packets based on the Layer 2 network, and cannot perform Layer 3 forwarding. Its server can only be deployed on the Layer 2 network. With the rise of software-defined networking (Software Defined Networking, SDN) technology, centralized management and control has gradually become the mainstream. In the SDN scenario, some network devices that carry control functions, such as PPPoE servers, are changed from the original two-layer network deployment to three-layer network deployment. cluster deployment. However, the PPPoE protocol belongs to the two-layer protocol and does not support three-layer forwarding. Under the existing technology, between a layer-1 network device and a layer-3 network device, such as between a client in a layer-1 network and a PPPoE server in a layer-3 network , PPPoE packets cannot be transmitted.

因此,现有技术中,在SDN场景下,一二层网络设备与三层网络设备之间,无法进行PPPoE报文传输是一个亟待解决的问题。Therefore, in the prior art, in an SDN scenario, it is an urgent problem to be solved that PPPoE packets cannot be transmitted between layer 1 and layer 2 network devices and layer 3 network devices.

发明内容Contents of the invention

本申请实施例提供了一种PPPoE报文传输方法及装置,解决了现有技术中,在SDN场景下,一二层网络设备与三层网络设备之间无法进行PPPoE报文传输是一个亟待解决的问题。The embodiment of the present application provides a PPPoE message transmission method and device, which solves the problem that in the prior art, in the SDN scenario, PPPoE message transmission cannot be performed between the first-layer and second-layer network equipment and the third-layer network equipment. The problem.

本发明实施例提供一种PPPoE报文传输方法,该方法包括:The embodiment of the present invention provides a PPPoE packet transmission method, the method comprising:

第一网络设备接收基于以太网的点对点通讯协议PPPoE报文;The first network device receives the Ethernet-based point-to-point communication protocol PPPoE message;

若所述PPPoE报文的长度小于或等于预设报文阈值,所述第一网络设备将所述PPPoE报文封装为所述NVGRE隧道报文;所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI,所述TNI与一个NVGRE隧道对应;If the length of the PPPoE packet is less than or equal to the preset packet threshold, the first network device encapsulates the PPPoE packet into the NVGRE tunnel packet; the NVGRE tunnel packet includes the NVGRE tunnel packet The destination IP address of the document and the tenant network identifier TNI, and the TNI corresponds to an NVGRE tunnel;

所述第一网络设备确定所述TNI对应的所述NVGRE隧道,并通过所述NVGRE隧道,将所述NVGRE隧道报文发送至所述目的IP地址对应的第二网络设备。The first network device determines the NVGRE tunnel corresponding to the TNI, and sends the NVGRE tunnel packet to the second network device corresponding to the destination IP address through the NVGRE tunnel.

可选的,所述方法还包括:Optionally, the method also includes:

若所述PPPoE报文的长度大于所述预设报文阈值,所述第一网络设备将所述PPPoE报文切分为N个PPPoE子报文,并将每个所述PPPoE子报文封装为所述NVGRE隧道报文;其中,每个所述PPPoE子报文的长度小于或等于所述预设报文阈值;N为大于1的整数。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 of the PPPoE sub-messages is 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:

若所述第一网络设备为网络虚拟化边缘NVE设备,所述第二网络设备为PPPoE服务器集群;若所述第一网络设备为所述PPPoE服务器集群,所述第二网络设备为所述NVE设备。If the first network device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; if the first network device is the PPPoE server cluster, the second network device is the NVE equipment.

可选的,所述方法包括:Optionally, the method includes:

所述NVGRE隧道报文还包括外层以太网头和内层以太网头;所述外层以太网头包括所述PPPoE报文的源物理地址和所述PPPoE报文的目的物理地址;所述内存以太网头包括所述NVGRE隧道报文的源物理地址和所述NVGRE隧道报文的目的物理地址。The NVGRE tunnel message also includes an outer Ethernet header and an inner Ethernet header; the outer Ethernet header includes the source physical address of the PPPoE message and the destination physical address of the PPPoE message; the The memory Ethernet header includes the source physical address of the NVGRE tunnel message and the destination physical address of the NVGRE tunnel message.

本发明实施例提供一种PPPoE报文传输方法,该方法包括:The embodiment of the present invention provides a PPPoE packet transmission method, the method comprising:

第二网络设备通过NVGRE隧道,接收第一网络设备发送的使用通用路由封装的网络虚拟化NVGRE隧道报文;所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI;所述NVGRE隧道与所述TNI对应;The second network device receives the network virtualization NVGRE tunnel packet sent by the first network device through the NVGRE tunnel using general routing encapsulation; the NVGRE tunnel packet includes the destination IP address and the tenant network identifier of the NVGRE tunnel packet TNI; the NVGRE tunnel corresponds to the TNI;

所述第二网络设备将所述NVGRE隧道报文解封装为PPPoE报文,并确定所述PPPoE报文的长度;The second network device decapsulates the NVGRE tunnel message into a PPPoE message, and determines the length of the PPPoE message;

若所述目的IP地址与所述第二网络设备的IP地址不相同,或者所述PPPoE报文的长度大于预设报文阈值,则所述第二网络设备将所述NVGRE隧道报文丢弃。If the destination IP address is different from the IP address of the second network device, or the length of the PPPoE packet is greater than a preset packet threshold, the second network device discards the NVGRE tunnel packet.

可选的,所述方法包括:Optionally, the method includes:

所述第二网络设备从所述NVGRE隧道报文中获取所述TNI,并确定所述TNI对应用户的带宽费用。The second network device obtains the TNI from the NVGRE tunnel message, and determines the bandwidth fee of the user corresponding to the TNI.

本发明实施例提供一种PPPoE报文传输装置,该装置包括:The embodiment of the present invention provides a PPPoE message transmission device, the device includes:

接收模块,用于接收基于以太网的点对点通讯协议PPPoE报文;The receiving module is used to receive the Ethernet-based point-to-point communication protocol PPPoE message;

处理模块,用于若所述PPPoE报文的长度小于或等于预设报文阈值,将所述PPPoE报文封装为所述NVGRE隧道报文;所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI,所述TNI与一个NVGRE隧道对应;以及用于确定所述TNI对应的所述NVGRE隧道,并通过所述NVGRE隧道,将所述NVGRE隧道报文发送至所述目的IP地址对应的第二网络设备。A processing module, configured to encapsulate the PPPoE packet into the NVGRE tunnel packet if the length of the PPPoE packet is less than or equal to a preset packet threshold; the NVGRE tunnel packet includes the NVGRE tunnel packet The destination IP address and the tenant network identifier TNI, the TNI corresponds to an NVGRE tunnel; and is used to determine the NVGRE tunnel corresponding to the TNI, and send the NVGRE tunnel message to The second network device corresponding to the destination IP address.

可选的,所述处理模块,还用于:Optionally, the processing module is also used for:

若所述PPPoE报文的长度大于所述预设报文阈值,将所述PPPoE报文切分为N个PPPoE子报文,并将每个所述PPPoE子报文封装为所述NVGRE隧道报文;其中,每个所述PPPoE子报文的长度小于或等于所述预设报文阈值;N为大于1的整数。If the length of the PPPoE message is greater than the preset message threshold, divide the PPPoE message into N PPPoE sub-messages, and encapsulate each of the PPPoE sub-messages into the NVGRE tunnel message text; 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 device includes:

若所述装置为网络虚拟化边缘NVE设备,所述第二网络设备为PPPoE服务器集群;若所述装置为所述PPPoE服务器集群,所述第二网络设备为所述NVE设备。If the device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; if the device is the PPPoE server cluster, the second network device is the NVE device.

可选的,所述NVGRE隧道报文还包括外层以太网头和内层以太网头;所述外层以太网头包括所述PPPoE报文的源物理地址和所述PPPoE报文的目的物理地址;所述内存以太网头包括所述NVGRE隧道报文的源物理地址和所述NVGRE隧道报文的目的物理地址。Optionally, the NVGRE tunnel message also includes an outer Ethernet header and an inner Ethernet header; the outer Ethernet header includes the source physical address of the PPPoE message and the destination physical address of the PPPoE message. address; the memory Ethernet header includes the source physical address of the NVGRE tunnel message and the destination physical address of the NVGRE tunnel message.

本发明实施例提供一种PPPoE报文传输装置,该装置包括:The embodiment of the present invention provides a PPPoE message transmission device, the device includes:

接收模块,用于通过NVGRE隧道,接收第一网络设备发送的使用通用路由封装的网络虚拟化NVGRE隧道报文;所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI;所述NVGRE隧道与所述TNI对应;The receiving module is configured to receive a network virtualized NVGRE tunnel message encapsulated by a general route and sent by a first network device through an NVGRE tunnel; the NVGRE tunnel message includes a destination IP address and a tenant network identifier of the NVGRE tunnel message symbol TNI; the NVGRE tunnel corresponds to the TNI;

处理模块,用于将所述NVGRE隧道报文解封装为PPPoE报文,并确定所述PPPoE报文的长度;以及用于若所述目的IP地址与所述第二网络设备的IP地址不相同,或者所述PPPoE报文的长度大于预设报文阈值,则将所述NVGRE隧道报文丢弃。A processing module, configured to decapsulate the NVGRE tunnel message into a PPPoE message, and determine the length of the PPPoE message; and if the destination IP address is different from the IP address of the second network device , or the length of the PPPoE packet is greater than the preset packet threshold, the NVGRE tunnel packet is discarded.

可选的,所述处理模块,还用于:Optionally, the processing module is also used for:

从所述NVGRE隧道报文中获取所述TNI,并确定所述TNI对应用户的带宽费用。Obtain the TNI from the NVGRE tunnel message, and determine the bandwidth fee of the user corresponding to the TNI.

本发明实施例中,第一网络设备通过NVGRE隧道信息,将PPPoE报文封装后,通过NVGRE隧道,可将PPPoE报文封装后的NVGRE隧道报文发送至属于三层网络的第二网络设备,实现了一层网络设备或二层网络设备,与三层网络设备进行PPPoE报文的传输。In the embodiment of the present invention, after the first network device encapsulates the PPPoE message through the NVGRE tunnel information, the NVGRE tunnel message encapsulated by the PPPoE message can be sent to the second network device belonging to the three-layer network through the NVGRE tunnel, It realizes the transmission of PPPoE packets between a layer-1 network device or a layer-2 network device and a layer-3 network device.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所介绍的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1为本发明实施例提出的一种PPPoE报文传输方法对应的网络拓扑架构图。FIG. 1 is a network topology diagram corresponding to a PPPoE packet transmission method proposed by an embodiment of the present invention.

图2为本发明实施例提出的一种PPPoE报文传输方法对应的步骤流程图。FIG. 2 is a flow chart of steps corresponding to a PPPoE packet transmission method proposed by an embodiment of the present invention.

图3为本发明实施例提出的一种PPPoE报文传输方法对应的PPPoE报文封装格式。FIG. 3 is a PPPoE packet encapsulation format corresponding to a PPPoE packet transmission method proposed by an embodiment of the present invention.

图4为本发明实施例提出的一种PPPoE报文传输方法对应的时序图。FIG. 4 is a sequence diagram corresponding to a PPPoE packet transmission method proposed by an embodiment of the present invention.

图5为本发明实施例提出的一种PPPoE报文传输方法对应的步骤流程图。FIG. 5 is a flow chart of steps corresponding to a PPPoE packet transmission method proposed by an embodiment of the present invention.

图6为本发明实施例提出的一种PPPoE报文传输方法对应的时序图。FIG. 6 is a sequence diagram corresponding to a PPPoE packet transmission method proposed by an embodiment of the present invention.

图7为本发明实施例提出的一种PPPoE报文传输装置对应的结构示意图。FIG. 7 is a schematic structural diagram corresponding to a PPPoE packet transmission device proposed by an embodiment of the present invention.

图8为本发明实施例提出的一种PPPoE报文传输装置对应的结构示意图。FIG. 8 is a schematic structural diagram corresponding to a PPPoE packet transmission device proposed by an embodiment of the present invention.

具体实施方式detailed description

为了更好的理解上述技术方案,下面将结合说明书附图及具体的实施方式对上述技术方案进行详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本申请实施例以及实施例中的技术特征可以相互结合。In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application. To illustrate, rather than limit, the technical solutions of the present application, the embodiments of the present application and the technical features in the embodiments can be combined without conflict.

下面结合说明书附图对本发明实施例作进一步详细描述。The embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

基于以太网的点对点通讯协议(Point to Point Protocol over Ethernet,PPPoE)是一种在以太网上按照点对点协议传输数据的协议,该协议可以提供良好的访问控制和计费功能。该协议可以实现通过相同的接入设备来连接到远程站点上的多个主机,进行拨号上网,同时接入设备能够提供访问控制和计费功能。另外,在众多的接入技术中,把多个主机连接到接入设备的最经济的方法就是通过以太网连接,而点对点通讯协议(Pointto Point Protocol,PPP)可以提供良好的访问控制和计费功能。因此,PPPoE是一种经济、便捷且功能全面的拨号上网协议。The Ethernet-based point-to-point communication protocol (Point to Point Protocol over Ethernet, PPPoE) is a protocol for transmitting data on the Ethernet according to the point-to-point protocol, and the protocol can provide good access control and billing functions. This protocol can be used to connect to multiple hosts on a remote site through the same access device, and dial-up to access the Internet. At the same time, the access device can provide access control and accounting functions. In addition, among many access technologies, the most economical way to connect multiple hosts to access devices is to connect via Ethernet, and Point to Point Protocol (PPP) can provide good access control and billing Features. Therefore, PPPoE is an economical, convenient and comprehensive dial-up Internet protocol.

但PPPoE协议属于二层协议,因此只能基于网络二层进行报文传输,不能进行三层转发,一些负责控制的网络设备,如服务器,只能部署在二层网络。其中二层网络是开放系统互联(Open System Interconnection,OSI)模型中的数据链路层,三层网络是OSI模型中的网络层。However, the PPPoE protocol is a Layer 2 protocol, so it can only transmit packets based on the Layer 2 network, and cannot perform Layer 3 forwarding. Some network devices responsible for control, such as servers, can only be deployed on the Layer 2 network. The layer-2 network is the data link layer in the Open System Interconnection (OSI) model, and the layer-3 network is the network layer in the OSI model.

随着软件定义网络(Software Defined Networking,SDN)技术的兴起,集中管控逐渐成为主流。SDN是一种新型网络架构,是网络虚拟化的一种实现方式,其核心技术将网络设备控制面与数据面分离开来,控制功能集中在一个控制面上。SDN的数据面只负责转发数据,网络管理者通过对控制面的编程,可以定义网络转发的规则、策略等,从而实现了网络流量的灵活控制。因此在SDN场景下,一些承载控制功能的网络设备,如PPPoE服务器,需要从原来的二层网络部署更改为三层网络的集群部署。但是PPPoE协议属于二层协议,不支持三层转发,那么现有技术下,一二层网络设备与三层网络设备之间,如一层网络中的客户端与三层网络中的PPPoE服务器之间,无法进行PPPoE报文传输。With the rise of Software Defined Networking (SDN) technology, centralized management and control has gradually become mainstream. SDN is a new type of network architecture and a way to realize network virtualization. Its core technology separates the control plane and data plane of network equipment, and the control functions are concentrated on one control plane. The data plane of SDN is only responsible for forwarding data. Through programming the control plane, network managers can define rules and policies for network forwarding, thus realizing flexible control of network traffic. Therefore, in the SDN scenario, some network devices that carry control functions, such as PPPoE servers, need to be changed from the original Layer 2 network deployment to a Layer 3 network cluster deployment. However, the PPPoE protocol belongs to the two-layer protocol and does not support three-layer forwarding. Under the existing technology, between a layer-1 network device and a layer-3 network device, such as between a client in a layer-1 network and a PPPoE server in a layer-3 network , PPPoE packets cannot be transmitted.

因此,现有技术中,在SDN场景下,一二层网络设备与三层网络设备之间,无法进行PPPoE报文传输是一个亟待解决的问题。本发明实施例基于使用通用路由封装的网络虚拟化(Network Virtualization using Generic Routing Encapsulation,NVGRE),提出一种PPPoE报文传输方法。其中,NVGRE为一种创建多个独立的虚拟二层网络的技术。NVGRE采用通用路由封装的策略来创建大量的虚拟局域网(Virtual Local Area Network,VLAN)VLAN子网,这些子网可以扩展到分散的数据中心和二、三层网络,实现了在云和专有网络中共享负载均衡的多租赁网络。NVGRE使用通用路由封装(Generic Routing Encapsulation,GRE)来创建一个独立的虚拟二层网络,限制物理二层网络或扩展超过子网边界。NVGRE通过租赁网络标识符(TNI)解决多租赁网络问题,每个TNI都与一个GRE通道一一对应。需要说明的是,本发明实施例仅以NVGRE为例,进行PPPoE报文的传输。Therefore, in the prior art, in an SDN scenario, it is an urgent problem to be solved that PPPoE packets cannot be transmitted between layer 1 and layer 2 network devices and layer 3 network devices. The embodiment of the present invention proposes a PPPoE packet transmission method based on Network Virtualization using Generic Routing Encapsulation (NVGRE). Among them, NVGRE is a technology for creating multiple independent virtual Layer 2 networks. NVGRE adopts the strategy of general routing encapsulation to create a large number of virtual local area network (Virtual Local Area Network, VLAN) VLAN subnets. A multi-tenant network with shared load balancing in the network. NVGRE uses Generic Routing Encapsulation (GRE) to create an independent virtual Layer 2 network, limiting the physical Layer 2 network or extending beyond subnet boundaries. NVGRE solves the multi-tenancy network problem through Tenancy Network Identifier (TNI), each TNI corresponds to a GRE channel one-to-one. It should be noted that the embodiment of the present invention only uses NVGRE as an example to transmit PPPoE packets.

如图1,为本发明实施例提出的一种PPPoE报文传输方法对应的网络拓扑架构图。本发明实施例仅以图1中的场景为例,说明一层网络设备PPPoE客户端与三层网络设备PPPoE服务器集群之间的PPPoE报文传输,但不限于其他网络设备之间的PPPoE报文传输。FIG. 1 is a network topology diagram corresponding to a PPPoE packet transmission method proposed by an embodiment of the present invention. The embodiment of the present invention only takes the scene in Fig. 1 as an example to illustrate the transmission of PPPoE packets between a layer-1 network device PPPoE client and a layer-3 network device PPPoE server cluster, but is not limited to PPPoE packets between other network devices transmission.

该网络拓扑架构包括:PPPoE客户端、网络虚拟化边缘(Network VirtualizationEdge,NVE)设备、路由器、NVGRE隧道、PPPoE服务器集群。The network topology structure includes: a PPPoE client, a Network Virtualization Edge (NVE) device, a router, an NVGRE tunnel, and a PPPoE server cluster.

PPPoE客户端:通过PPPoE连接PPPoE服务器集群的计算机,使用PPPoE服务器集群共享的文件、打印机和其他资源。PPPoE client: A computer connected to the PPPoE server cluster through PPPoE, using the files, printers and other resources shared by the PPPoE server cluster.

NVE设备:NVGRE的边缘设备。NVGRE的相关处理都在NVE上进行,例如识别以太网数据帧所属的NVGRE网络、基于NVGRE对数据帧进行二层转发、封装/解封装报文等。NVE可以是虚拟机所在的服务器,也可以是一台独立的物理设备。NVE device: the edge device of NVGRE. NVGRE-related processing is performed on the NVE, such as identifying the NVGRE network to which the Ethernet data frame belongs, performing Layer 2 forwarding of the data frame based on NVGRE, encapsulating/decapsulating the message, and so on. The NVE can be the server where the virtual machine resides, or an independent physical device.

路由器:路由器是连接因特网中各局域网、广域网的设备,它会根据信道的情况自动选择和设定路由,以最佳路径,按前后顺序发送信号。Router: A router is a device connected to various LANs and WANs in the Internet. It will automatically select and set routes according to channel conditions, and send signals in the order of the best path.

NVGRE隧道:NVGRE隧道为隧道技术的一种,是一种通过使用互联网络的基础设施在网络之间传递数据的方式。使用隧道传递的数据(或负载)可以是不同协议的数据帧或包。隧道协议将其它协议的数据帧或包重新封装然后通过隧道发送。新的帧头提供路由信息,以便通过互联网传递被封装的负载数据。图1所示的场景下,隧道协议为NVGRE协议。PPPoE客户端与NVE设备相连,采用NVGRE协议对PPPoE报文进行封装,通过NVGRE隧道,由三层网络中路由器的转发,与PPPoE服务器集群进行PPPoE报文的传输。NVGRE tunnel: NVGRE tunnel is a kind of tunnel technology, which is a way to transfer data between networks by using the infrastructure of the Internet. The data (or payload) transmitted through the tunnel may be data frames or packets of different protocols. The tunneling protocol repackages data frames or packets of other protocols and sends them through the tunnel. The new frame header provides routing information for passing the encapsulated payload data across the Internet. In the scenario shown in Figure 1, the tunnel protocol is the NVGRE protocol. The PPPoE client is connected to the NVE device, and uses the NVGRE protocol to encapsulate the PPPoE message. Through the NVGRE tunnel, the router in the three-layer network forwards the PPPoE message to the PPPoE server cluster.

PPPoE服务器集群:多台运行PPPoE服务的服务器的集合,物理上有多台服务器,在客户端角度看,逻辑上只有一台服务器。PPPoE服务器集群可以利用多个计算机进行并行计算从而获得很高的计算速度,也可以用多个计算机做备份,从而使得任何一个机器坏了整个系统还是能正常运行。PPPoE server cluster: A collection of multiple servers running PPPoE services. Physically, there are multiple servers. From the perspective of the client, there is only one server logically. The PPPoE server cluster can use multiple computers for parallel computing to obtain high computing speed, and can also use multiple computers for backup, so that the entire system can still operate normally if any one machine is broken.

具体的传输过程如图2所示,为本发明实施例提出的一种PPPoE报文传输方法对应的步骤流程图。图2为一层或二层网络设备向三层网络设备发送PPPoE报文的步骤流程图。The specific transmission process is shown in FIG. 2 , which is a flow chart of steps corresponding to a PPPoE packet transmission method proposed by the embodiment of the present invention. FIG. 2 is a flow chart of the steps for a layer-1 or layer-2 network device to send a PPPoE packet to a layer-3 network device.

步骤201:第一网络设备接收基于以太网的点对点通讯协议PPPoE报文。Step 201: the first network device receives a PPPoE packet based on Ethernet.

步骤202:若所述PPPoE报文的长度小于或等于预设报文阈值,所述第一网络设备将所述PPPoE报文封装为所述NVGRE隧道报文。Step 202: If the length of the PPPoE packet is less than or equal to a preset packet threshold, the first network device encapsulates the PPPoE packet into the NVGRE tunnel packet.

所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI,所述TNI与一个NVGRE隧道对应。The NVGRE tunnel packet includes a destination IP address of the NVGRE tunnel packet and a tenant network identifier TNI, where the TNI corresponds to one NVGRE tunnel.

步骤203:所述第一网络设备确定所述TNI对应的所述NVGRE隧道,并通过所述NVGRE隧道,将所述NVGRE隧道报文发送至所述目的IP地址对应的第二网络设备。Step 203: The first network device determines the NVGRE tunnel corresponding to the TNI, and sends the NVGRE tunnel packet to the second network device corresponding to the destination IP address through the NVGRE tunnel.

步骤201中,第一网络设备接收基于以太网的点对点通讯协议PPPoE报文。In step 201, the first network device receives an Ethernet-based point-to-point communication protocol PPPoE message.

步骤202中,第一网络设备根据NVGRE隧道信息将PPPoE报文封装为NVGRE隧道报文。可选的,第一网络设备为NVE设备。NVGRE隧道信息包括外层以太网头、外层IP地址、GRE头、内层以太网头。In step 202, the first network device encapsulates the PPPoE packet into an NVGRE tunnel packet according to the NVGRE tunnel information. Optionally, the first network device is an NVE device. NVGRE tunnel information includes the outer Ethernet header, outer IP address, GRE header, and inner Ethernet header.

NVGRE隧道报文的具体内容,如图3所示,为本发明实施例提出的一种PPPoE报文传输方法对应的PPPoE报文封装格式。PPPoE报文封装后的NVGRE隧道报文包括但不限于:外层以太网头、外层IP地址、GRE头、内层以太网头、PPPoE数据。其中,PPPoE数据为原PPPoE报文,GRE头至少包括标记位、TNI、协议类型。The specific content of the NVGRE tunnel message, as shown in FIG. 3 , is a PPPoE message encapsulation format corresponding to a PPPoE message transmission method proposed by the embodiment of the present invention. The NVGRE tunnel packets encapsulated in PPPoE packets include but are not limited to: outer Ethernet header, outer IP address, GRE header, inner Ethernet header, and PPPoE data. Wherein, the PPPoE data is the original PPPoE message, and the GRE header includes at least a flag bit, TNI, and protocol type.

一种可行的实现方式为,1,在内层以太网头之前添加GRE头,将TNI写入GRE头中的VSID字段。2,添加外层互联网协议(Internet Protocol,IP)地址在GRE头之前,外层IP地址包括外层IP源地址和外层IP目的地址,外层IP源地址为本端NVE的IP地址,外层IP目的地址为PPPoE服务器集群对外提供能够访问的IP地址。3,添加外层以太网头,外层以太网头包括源物理地址、目的物理地址,源物理地址为NVE的物理地址,目的物理地址为下一跳物理地址。PPPoE报文转化为三层NVGRE隧道报文后,就可以经过三层网络设备的转发,到达PPPoE服务器集群。A feasible implementation manner is: 1. Add a GRE header before the inner Ethernet header, and write TNI into the VSID field in the GRE header. 2. Add the outer layer Internet Protocol (Internet Protocol, IP) address before the GRE header. The outer layer IP address includes the outer layer IP source address and the outer layer IP destination address. The outer layer IP source address is the IP address of the local NVE. The layer IP destination address provides an accessible IP address for the PPPoE server cluster. 3. Add an outer Ethernet header. The outer Ethernet header includes a source physical address and a destination physical address. The source physical address is the physical address of the NVE, and the destination physical address is the next-hop physical address. After the PPPoE packets are converted into Layer 3 NVGRE tunnel packets, they can be forwarded by Layer 3 network devices and reach the PPPoE server cluster.

可选的,若所述PPPoE报文的长度大于所述预设报文阈值,所述第一网络设备将所述PPPoE报文切分为N个PPPoE子报文,并将每个所述PPPoE子报文封装为所述NVGRE隧道报文;其中,每个所述PPPoE子报文的长度小于或等于所述预设报文阈值;N为大于1的整数。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 divides each of the PPPoE The sub-messages are encapsulated 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.

步骤202中,TNI用于确定与所述TNI对应的NVGRE隧道,在NVGRE隧道报文封装完毕后,第一网络设备通过由TNI确定的NVGRE隧道,发送NVGRE隧道报文至第二网络设备。In step 202, the TNI is used to determine the NVGRE tunnel corresponding to the TNI. After the NVGRE tunnel message is encapsulated, the first network device sends the NVGRE tunnel message to the second network device through the NVGRE tunnel determined by the TNI.

步骤203中,可选的,第一网络设备为确定PPPoE服务器集群收到了NVGRE隧道报文,并实现与PPPoE服务器集群的数据交互,会接收NVGRE隧道报文的响应报文。In step 203, optionally, the first network device will receive a response message of the NVGRE tunnel message in order to determine that the PPPoE server cluster has received the NVGRE tunnel message and realize data interaction with the PPPoE server cluster.

上述步骤201~步骤203中,若所述第一网络设备为网络虚拟化边缘NVE设备,所述第二网络设备为PPPoE服务器集群;若所述第一网络设备为所述PPPoE服务器集群,所述第二网络设备为所述NVE设备。In the above steps 201 to 203, if the first network device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; if the first network device is the PPPoE server cluster, the The second network device is the NVE device.

如图4所示,为本发明实施例提出的一种PPPoE报文传输方法对应的时序图。该时序图描述了第一层网络设备向第三层网络设备发送PPPoE报文和的过程。图4涉及的网络设备包括:PPPoE客户端、NVE、路由器、PPPoE服务器集群。具体时序过程为:As shown in FIG. 4 , it is a sequence diagram corresponding to a PPPoE packet transmission method proposed by the embodiment of the present invention. This sequence diagram describes the process of sending PPPoE packets and messages from the first-layer network device to the third-layer network device. The network devices involved in FIG. 4 include: PPPoE client, NVE, router, and PPPoE server cluster. The specific timing process is:

401:PPPoE客户端发送PPPoE拨号报文至NVE。401: The PPPoE client sends a PPPoE dial-up packet to the NVE.

402:NVE封装NVGRE隧道报文。402: The NVE encapsulates the NVGRE tunnel packet.

403:NVE发送NVGRE隧道报文至路由器。403: The NVE sends the NVGRE tunnel packet to the router.

其中,路由器为三层网络设备。Wherein, the router is a layer 3 network device.

404:路由器将NVGRE隧道报文转发至PPoE服务器集群。404: The router forwards the NVGRE tunnel packet to the PPoE server cluster.

405:PPoE服务器集群解封装NVGRE隧道报文。405: The PPoE server cluster decapsulates the NVGRE tunnel packet.

406:PPoE服务器集群提取NVGRE隧道报文中的TNI。406: The PPoE server cluster extracts the TNI in the NVGRE tunnel packet.

407:PPoE服务器集群提取NVGRE隧道报文中的PPPoE信息。407: The PPoE server cluster extracts the PPPoE information in the NVGRE tunnel packet.

408:PPoE服务器集群确定NVGRE隧道报文的NVGRE隧道。408: The PPoE server cluster determines the NVGRE tunnel of the NVGRE tunnel packet.

上述405~408为,PPPoE服务器集群在接收到NVGRE隧道报文后,一系列的处理具体步骤,将结合图5详细描述,如图5所示,为本发明实施例提出的一种PPPoE报文传输方法对应的步骤流程图。The above 405-408 are a series of specific processing steps after the PPPoE server cluster receives the NVGRE tunnel message, which will be described in detail in conjunction with Figure 5. As shown in Figure 5, it is a PPPoE message proposed by the embodiment of the present invention Flowchart of steps corresponding to the transfer method.

步骤501:第二网络设备通过NVGRE隧道,接收第一网络设备发送的使用通用路由封装的网络虚拟化NVGRE隧道报文。Step 501: The second network device receives the network virtualization NVGRE tunnel packet encapsulated by the general route sent by the first network device through the NVGRE tunnel.

所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI;所述NVGRE隧道与所述TNI对应。The NVGRE tunnel packet includes a destination IP address of the NVGRE tunnel packet and a tenant network identifier TNI; the NVGRE tunnel corresponds to the TNI.

步骤502:所述第二网络设备将所述NVGRE隧道报文解封装为PPPoE报文,并确定所述PPPoE报文的长度。Step 502: The second network device decapsulates the NVGRE tunnel packet into a PPPoE packet, and determines the length of the PPPoE packet.

步骤503:若所述目的IP地址与所述第二网络设备的IP地址不相同,或者所述PPPoE报文的长度大于预设报文阈值;则所述第二网络设备将所述NVGRE隧道报文丢弃。Step 503: If the destination IP address is different from the IP address of the second network device, or the length of the PPPoE packet is greater than a preset packet threshold; then the second network device reports the NVGRE tunnel The text is discarded.

步骤501中,第二网络设备接收NVGRE隧道报文。所述NVGRE隧道报文包括基于以太网的点对点通讯协议PPPoE报文、租户网络标识符TNI;所述TNI用于确定与所述TNI对应的NVGRE隧道;所述第一网络设备为一层网络设备或二层网络设备;所述第二网络设备为三层网络设备。In step 501, the second network device receives an NVGRE tunnel packet. The NVGRE tunnel message includes an Ethernet-based point-to-point communication protocol PPPoE message, a tenant network identifier TNI; the TNI is used to determine the NVGRE tunnel corresponding to the TNI; the first network device is a layer of network equipment Or a Layer 2 network device; the second network device is a Layer 3 network device.

PPPoE服务器集群在获取PPPoE报文后,从生成PPPoE响应报文,到NVE向PPPoE客户端发送PPPoE响应报文的整体过程,将结合图6详细描述,如图6所示,为本发明实施例提出的一种PPPoE报文传输方法对应的时序图。After the PPPoE server cluster obtains the PPPoE message, the overall process from generating the PPPoE response message to the NVE sending the PPPoE response message to the PPPoE client will be described in detail in conjunction with Figure 6, as shown in Figure 6, which is an embodiment of the present invention A timing diagram corresponding to a proposed PPPoE packet transmission method.

601:PPPoE服务器集群生成PPPoE响应报文。601: The PPPoE server cluster generates a PPPoE response packet.

602:PPPoE服务器集群查找TNI。602: The PPPoE server cluster searches for the TNI.

603:PPPoE服务器集群根据TNI,将PPPoE响应报文封装为NVGRE隧道报文的响应报文。603: The PPPoE server cluster encapsulates the PPPoE response packet into a response packet of the NVGRE tunnel packet according to the TNI.

604:PPPoE服务器集群将NVGRE隧道报文的响应报文发送至路由器。604: The PPPoE server cluster sends the response packet of the NVGRE tunnel packet to the router.

605:路由器转发NVGRE隧道报文的响应报文至NVE。605: The router forwards the response message of the NVGRE tunnel message to the NVE.

606:NVE解封装NVGRE隧道报文的响应报文。606: The NVE decapsulates the response message of the NVGRE tunnel message.

607:NVE发送PPPoE响应报文至PPPoE客户端。607: The NVE sends a PPPoE response packet to the PPPoE client.

本发明实施例中,第一网络设备通过NVGRE隧道信息,将PPPoE报文封装后,通过NVGRE隧道,可将PPPoE报文封装后的NVGRE隧道报文发送至属于三层网络的第二网络设备,实现了一层网络设备或二层网络设备,与三层网络设备进行PPPoE报文的传输。In the embodiment of the present invention, after the first network device encapsulates the PPPoE message through the NVGRE tunnel information, the NVGRE tunnel message encapsulated by the PPPoE message can be sent to the second network device belonging to the three-layer network through the NVGRE tunnel, It realizes the transmission of PPPoE packets between a layer-1 network device or a layer-2 network device and a layer-3 network device.

如图7所示,为本发明实施例提供的一种PPPoE报文传输装置的结构示意图,该装置包括:As shown in Figure 7, it is a schematic structural diagram of a PPPoE packet transmission device provided by the embodiment of the present invention, the device includes:

接收模块701,用于接收基于以太网的点对点通讯协议PPPoE报文;A receiving module 701, configured to receive Ethernet-based point-to-point communication protocol PPPoE packets;

处理模块702,用于若所述PPPoE报文的长度小于或等于预设报文阈值,将所述PPPoE报文封装为所述NVGRE隧道报文;所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI,所述TNI与一个NVGRE隧道对应;以及用于确定所述TNI对应的所述NVGRE隧道,并通过所述NVGRE隧道,将所述NVGRE隧道报文发送至所述目的IP地址对应的第二网络设备。A processing module 702, configured to encapsulate the PPPoE packet into the NVGRE tunnel packet if the length of the PPPoE packet is less than or equal to a preset packet threshold; the NVGRE tunnel packet includes the NVGRE tunnel packet The destination IP address of the text and the tenant network identifier TNI, the TNI corresponds to an NVGRE tunnel; and is used to determine the NVGRE tunnel corresponding to the TNI, and send the NVGRE tunnel message through the NVGRE tunnel to the second network device corresponding to the destination IP address.

可选的,所述处理模块702,还用于:Optionally, the processing module 702 is further configured to:

若所述PPPoE报文的长度大于所述预设报文阈值,将所述PPPoE报文切分为N个PPPoE子报文,并将每个所述PPPoE子报文封装为所述NVGRE隧道报文;其中,每个所述PPPoE子报文的长度小于或等于所述预设报文阈值;N为大于1的整数。If the length of the PPPoE message is greater than the preset message threshold, divide the PPPoE message into N PPPoE sub-messages, and encapsulate each of the PPPoE sub-messages into the NVGRE tunnel message text; 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 device includes:

若所述装置为网络虚拟化边缘NVE设备,所述第二网络设备为PPPoE服务器集群;若所述装置为所述PPPoE服务器集群,所述第二网络设备为所述NVE设备。If the device is a network virtualization edge NVE device, the second network device is a PPPoE server cluster; if the device is the PPPoE server cluster, the second network device is the NVE device.

可选的,所述NVGRE隧道报文还包括外层以太网头和内层以太网头;所述外层以太网头包括所述PPPoE报文的源物理地址和所述PPPoE报文的目的物理地址;所述内存以太网头包括所述NVGRE隧道报文的源物理地址和所述NVGRE隧道报文的目的物理地址。Optionally, the NVGRE tunnel message also includes an outer Ethernet header and an inner Ethernet header; the outer Ethernet header includes the source physical address of the PPPoE message and the destination physical address of the PPPoE message. address; the memory Ethernet header includes the source physical address of the NVGRE tunnel message and the destination physical address of the NVGRE tunnel message.

如图8所示,为本发明实施例提出的一种PPPoE报文传输装置对应的结构示意图,该装置包括:As shown in FIG. 8, it is a schematic structural diagram corresponding to a PPPoE message transmission device proposed in the embodiment of the present invention, and the device includes:

接收模块801,用于通过NVGRE隧道,接收第一网络设备发送的使用通用路由封装的网络虚拟化NVGRE隧道报文;所述NVGRE隧道报文包括所述NVGRE隧道报文的目的IP地址和租户网络标识符TNI;所述NVGRE隧道与所述TNI对应;The receiving module 801 is configured to receive a network virtualized NVGRE tunnel message encapsulated by a general route and sent by a first network device through an NVGRE tunnel; the NVGRE tunnel message includes a destination IP address of the NVGRE tunnel message and a tenant network Identifier TNI; the NVGRE tunnel corresponds to the TNI;

处理模块802,用于将所述NVGRE隧道报文解封装为PPPoE报文,并确定所述PPPoE报文的长度;以及用于若所述目的IP地址与所述第二网络设备的IP地址不相同,或者所述PPPoE报文的长度大于预设报文阈值,则将所述NVGRE隧道报文丢弃。A processing module 802, configured to decapsulate the NVGRE tunnel packet into a PPPoE packet, and determine the length of the PPPoE packet; and if the destination IP address is different from the IP address of the second network device or the length of the PPPoE packet is greater than the preset packet threshold, the NVGRE tunnel packet is discarded.

可选的,所述处理模块802,还用于:Optionally, the processing module 802 is further configured to:

从所述NVGRE隧道报文中获取所述TNI,并确定所述TNI对应用户的带宽费用。Obtain the TNI from the NVGRE tunnel message, and determine the bandwidth fee of the user corresponding to the TNI.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can 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, etc.) 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 should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (6)

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 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 an 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, and the NVGRE tunnel message further includes an outer ethernet header and an inner ethernet header; the inner layer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the outer Ethernet header comprises a source physical address of the NVGRE tunnel message and a destination physical address of the NVGRE tunnel message;
the first network device determines the NVGRE tunnel corresponding to the TNI, and sends the NVGRE tunnel message to a second network device corresponding to the destination IP address through the NVGRE tunnel;
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.
2. 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.
3. 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, and the NVGRE tunnel message further comprises an outer-layer Ethernet header and an inner-layer Ethernet header; the inner layer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the outer Ethernet header comprises a source physical address of the NVGRE tunnel message and a destination physical address of the NVGRE tunnel message;
the second network equipment decapsulates the NVGRE tunnel message into a PPPoE message and determines the length of the PPPoE message;
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, the second network device discards the NVGRE tunnel message;
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.
4. 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;
the processing module is used for packaging the PPPoE message into an NVGRE tunnel message if the length of the PPPoE message is smaller than or equal to a preset message threshold value; 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, and the NVGRE tunnel message further includes an outer ethernet header and an inner ethernet header; the inner layer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the outer Ethernet header comprises a source physical address of the NVGRE tunnel message and a destination physical address of the NVGRE tunnel message; 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;
the network node is further configured to, if the length of the PPPoE message is greater than the preset message threshold, divide the PPPoE message into N PPPoE sub-messages, and encapsulate each PPPoE sub-message into the NVGRE tunnel message; the length of each PPPoE sub-message is smaller than or equal to the preset message threshold value; n is an integer greater than 1.
5. The apparatus of claim 4, 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.
6. 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 is 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, and the NVGRE tunnel message further comprises an outer-layer Ethernet header and an inner-layer Ethernet header; the inner layer Ethernet head comprises a source physical address of the PPPoE message and a destination physical address of the PPPoE message; the outer Ethernet header comprises a source physical address of the NVGRE tunnel message and a destination physical address of the NVGRE tunnel message;
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;
and the network side is further configured to acquire the TNI from the NVGRE tunnel packet, and determine a 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 CN111182016A (en) 2020-05-19
CN111182016B true 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106100960A (en) * 2016-07-06 2016-11-09 杭州华三通信技术有限公司 Method, Apparatus and system across the intercommunication of storage area network Fabric
CN106302069A (en) * 2015-05-22 2017-01-04 杭州华三通信技术有限公司 Realize interoperability methods and the equipment of VXLAN and NVGRE network
CN107547343A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 Message method of controlling operation thereof and device

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060456B (en) * 2007-06-12 2010-04-21 中兴通讯股份有限公司 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
US9225636B2 (en) * 2013-04-04 2015-12-29 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for exchanging IP packets among network layer 2 peers
CN105409167B (en) * 2013-08-05 2019-04-12 华为技术有限公司 Pass through the method and system of software defined network transmitting message in tunnel
KR101492442B1 (en) * 2014-01-09 2015-02-24 한국전자통신연구원 Apparatus and method for packet analysis, vpn server
CN105763512B (en) * 2014-12-17 2019-03-15 新华三技术有限公司 Communication method and device for SDN virtualized network
CN105591982B (en) * 2015-07-24 2018-12-25 新华三技术有限公司 A kind of method and apparatus of message transmissions
US10038650B2 (en) * 2015-08-25 2018-07-31 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
CN106713187B (en) * 2015-11-17 2019-09-17 大唐移动通信设备有限公司 A kind of message transmitting method and device
CN106713100B (en) * 2015-11-17 2019-11-29 华为数字技术(苏州)有限公司 A kind of method, CPE and convergence device for establishing tunnel automatically
CN106230793A (en) * 2016-07-22 2016-12-14 安徽皖通邮电股份有限公司 A kind of MPLSVPN of realization operates in the method on the IPVPN of encryption
CN107770026B (en) * 2016-08-17 2020-11-03 中国电信股份有限公司 Tenant network data transmission method, tenant network system and related equipment
CN106453023B (en) * 2016-11-01 2019-06-07 优刻得科技股份有限公司 It is a kind of for physical equipment and the communication means of virtual network, equipment and system
CN108123885A (en) * 2016-11-29 2018-06-05 华为技术有限公司 The methods, devices and systems of Message processing
CN108574632B (en) * 2017-03-10 2020-06-02 华为技术有限公司 Message processing method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106302069A (en) * 2015-05-22 2017-01-04 杭州华三通信技术有限公司 Realize interoperability methods and the equipment of VXLAN and NVGRE network
CN106100960A (en) * 2016-07-06 2016-11-09 杭州华三通信技术有限公司 Method, Apparatus and system across the intercommunication of storage area network Fabric
CN107547343A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 Message method of controlling operation thereof and device

Also Published As

Publication number Publication date
CN111182016A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN109218178B (en) Message processing method and network equipment
US11979322B2 (en) Method and apparatus for providing service for traffic flow
US7486674B2 (en) Data mirroring in a service
US9130859B1 (en) Methods and apparatus for inter-virtual local area network multicast services
US8861547B2 (en) Method, apparatus, and system for packet transmission
US7782841B2 (en) Method and system for transporting data using pseudowire circuits over a bridged network
US8913623B2 (en) Method and apparatus for processing labeled flows in a communications access network
JP2021530912A (en) Network slice control method and device, computer readable storage medium
US9414136B2 (en) Methods and apparatus to route fibre channel frames using reduced forwarding state on an FCoE-to-FC gateway
US20050147104A1 (en) Apparatus and method for multihop MPLS/IP/ATM/frame relay/ethernet pseudo-wire
CN107181663A (en) A kind of message processing method, relevant device and computer-readable recording medium
CN105637819B (en) Method and system for transmitting broadcast data
CN104468384A (en) System and method for achieving multi-service priorities
CN104486227B (en) The system and method for IPv6 flexible deployments is realized by VxLAN technologies
US8149731B2 (en) Technique for transferring data over a packet switched network
US9479439B1 (en) Methods and apparatus for load balancing VLAN traffic
CN104219160B (en) Generate the method and apparatus of input parameter
CN111182016B (en) PPPoE dialing message transmission method and device
CN100502341C (en) Implementation method and system for transmitting Ethernet services on RPR network
WO2024016869A1 (en) Multicast configuration method and apparatus
CN106961412A (en) A kind of message forwarding method, apparatus and system
US11855792B2 (en) Multicast rendezvous point deployment in a virtual gateway of a distributed tunnel fabric
CN119011337A (en) Message forwarding method, device and system
WO2024002101A1 (en) Packet transmission method and apparatus, related device, and storage medium
CN119520295A (en) Data message transmission method, device and storage medium

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