WO2018014772A1 - 报文的转发方法、装置及系统 - Google Patents
报文的转发方法、装置及系统 Download PDFInfo
- Publication number
- WO2018014772A1 WO2018014772A1 PCT/CN2017/092760 CN2017092760W WO2018014772A1 WO 2018014772 A1 WO2018014772 A1 WO 2018014772A1 CN 2017092760 W CN2017092760 W CN 2017092760W WO 2018014772 A1 WO2018014772 A1 WO 2018014772A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- entity
- packet information
- specified
- packet
- information
- Prior art date
Links
Images
Definitions
- the present disclosure relates to the field of communications, for example, to a method, device, and system for forwarding a message.
- Port extender is a data center access network based on the standard 802.1BR protocol. Port expansion technology not only improves the flexibility and effectiveness of the network, but also reduces network cost and simplifies network management. In order to facilitate the horizontal stacking of the related art, the present disclosure refers to a port expansion technology based on the 802.1BR protocol as a vertical stack.
- FIG. 1 is a schematic diagram of a first-level vertical stacking networking in the related art
- FIG. 2 is a second-level vertical stacking networking in the related art.
- a control bridge can carry multiple PEs.
- the vertical stacking of the packet in the topology mode of the network in the topology mode is sent to the CB through the PE for processing, which causes a large number of packets to be processed by the CB. CPU, affecting packet processing efficiency.
- the present disclosure provides a packet forwarding method, device, and system, which can solve the problem that the packet processing efficiency caused by CB processing is low in all related packet services.
- the disclosure provides a packet forwarding method, including:
- the first port extended PE entity queries, in the locally stored packet information, the specified packet information corresponding to the received first packet information;
- the first PE entity queries the specified packet information, determines a second PE entity corresponding to the specified packet information
- the first PE entity forwards the specified packet information corresponding to the first packet information to the second PE entity by using a specified link.
- the PE entity is configured to: the packet information of the first PE entity, and the packet information of the other PE entity, where the other PE entity belongs to the same control as the first PE entity.
- PE entity under bridge CB the PE entity under bridge CB.
- the method further includes:
- the first PE entity uploads the first packet information to the CB, and sends the first packet information to the second PE via the CB. entity.
- the method further includes:
- the locally stored packet information, the first packet information, and the specified packet information at least include: a source media access control (MAC) address, a destination MAC address, and a source. port.
- MAC media access control
- the designated link is a link used by the first PE entity and the second PE entity for a communication connection; and/or the first PE entity and the second PE entity are The same level PE entity.
- the disclosure also provides a packet forwarding device, including:
- the query module is configured to: query the specified packet information corresponding to the received first packet information in the locally stored packet information;
- a determining module configured to: determine, when the specified packet information is queried, a second PE entity corresponding to the specified packet information;
- the sending module is configured to: forward the specified packet information corresponding to the first packet information to the second PE entity by using a specified link.
- the device further includes:
- the uploading module is configured to: upload the first packet information to the CB, and send the first packet information to the second PE via the CB, when the specified packet information is not found. entity.
- the device further includes:
- the receiving module is configured to: receive and store the second packet information sent by the CB, where The second message information is from the first PE entity and at least one of the other PE entities.
- the disclosure also provides a packet forwarding system, including:
- the first port extends the PE entity, and is configured to: query the specified packet information corresponding to the received first message information in the locally stored message information; and determine the specified message when the specified message information is queried a second PE entity corresponding to the message information;
- the second PE entity is configured to: receive the specified packet information corresponding to the first packet information that is forwarded by the first PE entity by using the specified link.
- system further includes:
- the control bridge CB is configured to: when the first PE entity does not find the specified packet information, receive the first packet information; and send the second packet information to the first PE entity and the The other PE entity, wherein the second packet information is from the first PE entity and at least one of the other PE entities, and the other PE entities are in the same control as the first PE entity.
- Other PE entities under the bridge CB are configured to: when the first PE entity does not find the specified packet information, receive the first packet information; and send the second packet information to the first PE entity and the The other PE entity, wherein the second packet information is from the first PE entity and at least one of the other PE entities, and the other PE entities are in the same control as the first PE entity.
- Other PE entities under the bridge CB are configured to: when the first PE entity does not find the specified packet information, receive the first packet information; and send the second packet information to the first PE entity and the The other PE entity, wherein the second packet information is from the first PE entity and at least one of the other PE entities, and the other PE entities are in the
- the present disclosure also provides a storage medium.
- the storage medium is arranged to store program code for performing the following steps:
- the first port extended PE entity queries, in the locally stored packet information, the specified packet information corresponding to the received first packet information.
- the first PE entity determines, when the specified packet information is queried, the second PE entity corresponding to the specified packet information.
- the first PE entity forwards the packet corresponding to the first packet information to the second PE entity by using a specified link.
- the storage medium is further arranged to store program code for performing the following steps:
- the first PE entity uploads the first packet information to the CB, and sends the first packet information to the first Two PE entities.
- the storage medium is further arranged to store program code for performing the following steps:
- the second packet information sent by the CB is received and stored, where the second packet information is from the first PE entity and the other PE entity.
- the present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, Having the computer perform any of the methods described above.
- the PE entity can locally query the received message information, the PE entity and the PE entity The PEs can forward packets through the link. Therefore, the problem of low packet processing efficiency caused by CB processing can be solved in all related technologies, and the processing pressure of CB packets can be reduced. Improve the efficiency of message processing.
- FIG. 1 is a schematic diagram of a first-level vertical stacking networking in the related art
- FIG. 2 is a schematic diagram of a two-level vertical stacking networking in the related art
- FIG. 3 is a hardware structural diagram of a terminal of a packet forwarding method according to the embodiment.
- FIG. 5 is a schematic diagram of a first-level vertical stacking networking in the embodiment
- FIG. 6 is a schematic diagram of a two-level vertical stacking networking in this embodiment
- FIG. 7 is a structural diagram of a packet forwarding apparatus according to the embodiment.
- FIG. 8 is a structural diagram of another apparatus for forwarding a message according to the embodiment.
- FIG. 9 is a structural diagram of another apparatus for forwarding a message according to the embodiment.
- FIG. 10 is a structural diagram of a system of a message according to the embodiment.
- FIG. 11 is a structural diagram of another packet forwarding system according to this embodiment.
- the PE simply transmits the packet transparently, does not perform data storage processing, and all services are concentrated on the CB, which causes a large amount of The packet impacts the processor CPU of the CB, which affects the processing efficiency of the message.
- FIG. 3 is a hardware structural diagram of a terminal for forwarding a packet according to the embodiment.
- the mobile terminal 30 can include a One or more (only one shown in the figure) processor 302 (the processor 302 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 304 for storing data, and A transmission device 306 for communication functions.
- the structure shown in FIG. 3 is merely illustrative and does not limit the structure of the above electronic device.
- terminal 30 may also include more or fewer components than those shown in FIG. 3, or have a different configuration than that shown in FIG.
- the memory 304 can be used to store software programs and modules of the application software, such as the program instructions/modules corresponding to the forwarding method of the message in the embodiment, and the processor 302 executes the software program and the module stored in the memory 304 to execute the program.
- a functional application and data processing, that is, the above method is implemented.
- Memory 304 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 304 can include memory remotely located relative to processor 302, which can be connected to terminal 30 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Transmission device 306 is for receiving or transmitting data via a network.
- the network specific examples described above may include a wireless network provided by a communication provider of the terminal 30.
- transmission device 306 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
- NIC Network Interface Controller
- the transmission device 306 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
- RF Radio Frequency
- FIG. 4 is a flowchart of a method for forwarding a packet according to the embodiment. As shown in FIG. 4, the process includes the following steps.
- step 402 the first port extension PE entity queries the locally stored message information for the specified message information corresponding to the received first message information.
- first PE entity and the second PE entity belong to the PE entity under the same control bridge CB.
- the PE entity stores the packet information of the first PE entity and the packet information of other PE entities.
- the other PE entities are the same as the first PE entity and one PE entity under the CB.
- Table 1 is format information for storing message information. As shown in Table 1,
- the message information stored in the PE entity includes at least: a MAC address (MAC_ADDR), a MAC type (TYPE), a port number (SRC_PORT), and a VLAN identifier (VLAN_ID).
- the MAC address includes the source MAC address and the destination MAC address, and the port number refers specifically to the sequence number of the source port.
- step 404 when the first PE entity queries the specified packet information, the second PE entity corresponding to the specified packet information is determined.
- Querying the specified packet information according to the first packet information means that the source MAC address (the destination MAC address) in the first packet information corresponds to the destination MAC address and the source MAC address. For example, suppose the message information in the first message information is (MAC A, MAC B). If the first PE entity advertises the specified packet information of the packet information (MAC B, MAC A) in the locally stored packet information, the packet corresponding to the first packet information should be forwarded to the designated packet. The PE entity corresponding to the packet information. The first PE entity searches for the PE entity corresponding to (MAC B, MAC A) according to the locally stored packet information, and uses the found entity as the second PE entity.
- the first PE entity uploads the packet information of the unknown packet to the CB, and then processes it by the CB, and determines the corresponding second PE entity that needs to be forwarded.
- the CB also sends the unknown message information to all PE entities belonging to the CB.
- all the PEs that belong to the CB can receive and learn the new packet information, so that the same packet information is not reported to the CB again after receiving the same packet information.
- step 406 the first PE entity corresponds to the first packet information by using a specified link.
- the message is forwarded to the second PE entity.
- the designated link refers to a link between the first PE entity and the second PE entity for a communication connection.
- FIG. 5 is a schematic diagram of a first-level vertical stacking networking in the embodiment
- FIG. 6 is a schematic diagram of a two-level vertical stacking networking in the embodiment. As shown in FIG. 5 and FIG. 6, between PEs of the same level, for example, PE1 (first PE entity) and PE2 (second PE entity) in FIG. 5, PE3 (first PE entity) in FIG. 6 and PE4 (second PE entity) establishes a link for a communication connection.
- a first-level vertical stack networking and an implementation manner of a two-level vertical stack networking are provided.
- a multi-level vertical stack networking mode can also be implemented.
- the source port is port X
- the source mac address is A
- the destination mac address is B. If the MAC address is unknown to the unicast packet, the packet is sent to the CB through the link 1.
- the CB stores the packet, including but not limited to the source mac address A and the destination mac address B and port X.
- the CB synchronizes (source mac A, destination mac B, port X) to each PE through link 1 and link 2.
- PE1 and PE2 are included, that is, PE1 stores a PE1: (source mac A, destination mac B) , port X), PE2 stores a PE2: (source mac A, destination mac B, port X).
- the forwarding policy is determined according to the destination mac.
- the PE2 is queried: (source mac A, destination mac B, port X) The port is found on port X of PE1 and directly forwards the packet to port X of PE1.
- a software product in essence or in a form of a software product stored in a storage medium (such as a ROM/RAM, a magnetic disk, an optical disk), including several Instructions are used to make a terminal device (can be a mobile phone, a computer, The server, or network device, etc.) performs the methods described in each of the embodiments of the present disclosure.
- a storage medium such as a ROM/RAM, a magnetic disk, an optical disk
- a packet forwarding device is further provided, and the device is used to implement the above embodiment.
- the term “module” can be a combination of software and/or hardware that implements a predetermined function.
- FIG. 7 is a structural diagram of a packet forwarding apparatus according to the embodiment. As shown in FIG. 7, the apparatus includes: a query module 72, a determining module 74, and a sending module 76.
- the querying module 72 is configured to: query, in the locally stored packet information, the specified packet information corresponding to the received first packet information;
- first PE entity and the second PE entity are PE entities belonging to the same control bridge CB.
- the PE entity stores the packet information of the first PE entity and the packet information of other PE entities.
- the other PE entities are the same as the first PE entity and one PE entity under the CB.
- the packet information stored in the PE entity includes at least: a MAC address, a MAC type, a port sequence number, and an identifier of the VLAN.
- the MAC address includes the source MAC address and the destination MAC address, and the port number refers specifically to the sequence number of the source port.
- the determining module 74 is configured to: when querying the specified packet information, determine a second PE entity corresponding to the specified packet information;
- Querying the specified packet information according to the first packet information means that the source MAC address (the destination MAC address) in the first packet information corresponds to the destination MAC address and the source MAC address. For example, suppose the message information in the first message information is (MAC A, MAC B). If the first PE entity advertises the specified packet information of the packet information (MAC B, MAC A) in the locally stored packet information, the packet corresponding to the first packet information should be forwarded to the designated packet. The PE entity corresponding to the packet information. The first PE entity finds that the PE entity corresponding to (MAC B, MAC A) is the second PE entity according to the locally stored packet information.
- the sending module 76 is configured to: forward the specified packet information corresponding to the first packet information to the second PE entity by using a specified link.
- PE1 first PE entity
- PE2 second PE entity
- PE3 in FIG. 6 first PE entity
- PE4 p. Two PE entities
- FIG. 8 is a structural diagram of another packet forwarding apparatus according to this embodiment. As shown in FIG. 8, the apparatus includes an uploading module 82 in addition to all the modules shown in FIG.
- the uploading module 82 is configured to: upload the first packet information to the CB, and send the first packet information to the second, by using the CB, when the specified packet information is not found. PE entity.
- FIG. 9 is a structural diagram of another apparatus for forwarding a message according to the embodiment. As shown in FIG. 8, the apparatus includes a receiving module 92 in addition to all the modules shown in FIG.
- the receiving module 92 is configured to receive and store the second packet information sent by the CB, where the second packet information is from at least one of the first PE entity and the other PE entities.
- all the PEs belonging to the CB can receive and learn new message information, so that when the same message information is received, the message information is not reported to the CB again.
- each of the foregoing modules may be implemented by software or hardware.
- the foregoing modules may be implemented by: the foregoing modules are all located in the same processor; or each of the above modules is in any combination Located in different processors.
- a packet forwarding system is further provided, and the system is used to implement the foregoing implementation manner.
- the term “module” can be a combination of software and/or hardware that implements a predetermined function.
- FIG. 10 is a structural diagram of a system of a packet according to the embodiment. As shown in FIG. 7, the system includes: a first PE entity 1002 and a second PE entity 1004.
- the first PE entity 1002 is configured to: query the specified packet information corresponding to the received first packet information in the locally stored packet information; and determine the specified report when the specified packet information is queried a second PE entity 1004 corresponding to the text information;
- the second PE entity 1004 is configured to: receive the specified packet information corresponding to the first packet information forwarded by the first PE 1002 entity by using a specified link.
- FIG. 11 is a structural diagram of another packet forwarding system according to this embodiment. As shown in FIG. 11, the device includes: a control bridge CB1102 in addition to all the PE entities shown in FIG.
- the CB 1102 is configured to: when the first PE entity 1002 does not find the specified packet information, receive the first packet information; and send the second packet information to the first PE entity 1002 and the The other PE entity, wherein the second packet information is from the first PE entity 1002 and at least one of the other PE entities, and the other PE entity belongs to the first PE entity 1002.
- Other PE entities under the same control bridge CB.
- This embodiment provides a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the first port extended PE entity queries, in the locally stored packet information, the specified packet information corresponding to the received first packet information.
- the first PE entity determines, when the specified packet information is queried, a second PE entity corresponding to the specified packet information.
- the first PE entity forwards the specified packet information corresponding to the first packet information to the second PE entity by using a specified link.
- the storage medium is further arranged to store program code for performing the following steps:
- the storage medium is further arranged to store program code for performing the following steps:
- the second packet information sent by the CB is received and stored, where the second packet information is from the first PE entity and at least one of the other PE entities.
- the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
- ROM Read-Only Memory
- RAM Random Access Memory
- a mobile hard disk e.g., a hard disk
- magnetic memory e.g., a hard disk
- examples in this embodiment may refer to the examples described in the foregoing embodiments and optional embodiments.
- Each of the modules or steps of the present embodiment described above may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices, optionally Can be implemented by program code executable by the computing device, so that they can be saved
- the storage is performed by the computing device in a storage device, and in some cases, the steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into a plurality of integrated circuit modules, or they may be Multiple modules or steps in the fabrication are implemented as a single integrated circuit module.
- the present disclosure provides a method, a device, and a system for forwarding a message, which solves the problem that the packet processing efficiency of all the packet services in the related art is low due to CB processing, thereby reducing the processing pressure of the CB packet. Improve the efficiency of message processing.
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
一种报文的转发方法、装置及系统,其中,报文的转发方法包括:第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;第一PE实体在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;所述第一PE实体通过指定链路将所述第一报文信息对应的指定报文信息转发给所述第二PE实体。
Description
本公开涉及通信领域,例如涉及一种报文的转发方法、装置及系统。
随着数据中心的快速发展,虚拟化技术通过提高处理器的使用效率进一步降低成本。随着云计算的发展,虚拟机的猛增,企业的数据中心也不可避免的产生一些管理的难题,网络技术的发展要适应新的虚拟化技术趋势。因此电气和电子工程师协会(Institute of Electrical and Electronics Engineers,IEEE)组织针对数据中心虚拟机迁移等新技术提出了一系列新的802.1标准,包括802.1Qau(拥塞通告)、802.1Qaz(增强型传输选择)、802.1Qbb(基于优先级的流控)、802.1Qbg(边缘虚拟桥)、802.1BR(虚拟桥接口扩展)等。
端口扩展(Port extender,简称PE),是一种数据中心接入网络,它基于标准的802.1BR协议实现。端口扩展技术不但提高了网络的灵活性和有效性,同时也降低了网络成本花销,简化了网络管理。为了便于与相关技术的横向堆叠区分,本公开将基于802.1BR协议的端口扩展技术称之为纵向堆叠。
相关技术的纵向堆叠环境组网分为一级纵向堆叠和二级纵向堆叠,图1是相关技术中的一级纵向堆叠组网的示意图,图2是相关技术中的二级纵向堆叠组网的示意图。如图1和图2所示,其中,控制桥(Controlling Bridge,简称CB)下可以携带多台PE。如图1和图2所示,相关技术中的纵向堆叠这种拓扑方式组网从扩展端口进入的报文流量,都要经过PE上送到CB进行处理,会造成大量报文冲击CB的处理器CPU,影响报文处理效率。
发明内容
本公开提供了一种报文的转发方法、装置及系统,可以解决相关技术中所有的报文业务都由CB处理导致的报文处理效率低的问题。
本公开提供一种报文的转发方法,包括:
第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;
第一PE实体在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;
所述第一PE实体通过指定链路将所述第一报文信息对应的指定报文信息转发给所述第二PE实体。
可选地,所述PE实体上存储有:所述第一PE实体的报文信息,以及其他PE实体的报文信息,其中,所述其他PE实体为与所述第一PE实体属于同一控制桥CB下的PE实体。
可选地,在第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息之后,所述方法还包括:
在未查到所述指定报文信息时,所述第一PE实体将所述第一报文信息上传至CB,并经由所述CB将所述第一报文信息发送至所述第二PE实体。
可选地,所述方法还包括:
接收CB发送的第二报文信息并存储,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体。
可选地,所述本地存储的报文信息,所述第一报文信息以及所述指定报文信息均至少包括:源媒体访问控制(Media Access Control,MAC)地址、目的MAC地址、和源端口。
可选地,所述指定链路为所述第一PE实体与所述第二PE实体之间用于通信连接的链路;和/或所述第一PE实体与所述第二PE实体为同一级PE实体。
本公开还提供一种报文的转发装置,包括:
查询模块,设置为:在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;
确定模块,设置为:在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;
发送模块,设置为:通过指定链路将所述第一报文信息对应的指定报文信息转发给所述第二PE实体。
可选地,所述装置还包括:
上传模块,设置为:在未查到所述指定报文信息时,将所述第一报文信息上传至CB,并经由所述CB将所述第一报文信息发送至所述第二PE实体。
可选地,所述装置还包括:
接收模块,设置为:接收所述CB发送的第二报文信息并存储,其中,所述
第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体。
本公开还提供一种报文的转发系统,包括:
第一端口扩展PE实体,设置为:在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;
第二PE实体,设置为:通过指定链路接收所述第一PE实体转发的所述第一报文信息对应的指定报文信息。
可选地,所述系统还包括:
控制桥CB,设置为:在所述第一PE实体未查到所述指定报文信息时,接收所述第一报文信息;将第二报文信息发送至所述第一PE实体以及所述其他PE实体,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体,所述其他PE实体为与所述第一PE实体属于同一控制桥CB下的其他PE实体。
本公开还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:
S11,第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;
S12,所述第一PE实体在查询到所述指定报文信息时,确定所述指定报文信息对应的第二PE实体;
S13,所述第一PE实体通过指定链路将所述第一报文信息对应的报文转发给所述第二PE实体。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
S21,在未查到所述指定报文信息时,所述第一PE实体将所述第一报文信息上传至CB,并经由所述CB将所述第一报文信息发送至所述第二PE实体。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
S31,接收CB发送的第二报文信息并存储,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体。
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。
通过本公开,由于PE实体能够在本地查询接收的报文信息,同时PE实体与
PE实体之间能够通过链路进行报文转发,因此,可以解决相关技术中所有的报文业务都由CB处理导致的报文处理效率低的问题,进而可以减轻CB的报文处理压力,同时提高报文处理效率。
图1是相关技术中的一级纵向堆叠组网的示意图;
图2是相关技术中的二级纵向堆叠组网的示意图;
图3是本实施例的一种报文的转发方法的终端的硬件结构图;
图4是本实施例的一种报文的转发方法的流程图;
图5是本实施例中的一级纵向堆叠组网的示意图;
图6是本实施例中的二级纵向堆叠组网的示意图;
图7是本实施例的一种报文的转发装置的结构图;
图8是本实施例的另一种报文的转发装置的结构图;
图9是本实施例的再一种报文的转发装置的结构图;
图10是本实施例的一种报文的系统的结构图;
图11是本实施例的另一种报文的转发系统的结构图。
下文中将参考附图并结合实施例来说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不是用于描述特定的顺序或先后次序。
发明人发现,如图1和图2所示的纵向堆叠拓扑方式组网,PE只是简单的对报文进行透传,不做数据的存储处理,所有的业务都集中在CB上,会造成大量报文冲击CB的处理器CPU,影响报文处理效率。
实施例1
本实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在业界通用的移动终端上为例,图3是本实施例的一种报文的转发方法的终端的硬件结构图。如图3所示,移动终端30可以包括一
个或多个(图中仅示出一个)处理器302(处理器302可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器304、以及用于通信功能的传输装置306。本领域普通技术人员可以理解,图3所示的结构仅为示意,并不对上述电子装置的结构造成限定。例如,终端30还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。
存储器304可用于存储应用软件的软件程序以及模块,如本实施例中的报文的转发方法对应的程序指令/模块,处理器302通过运行存储在存储器304内的软件程序以及模块,从而执行多种功能应用以及数据处理,即实现上述的方法。存储器304可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器304可包括相对于处理器302远程设置的存储器,这些远程存储器可以通过网络连接至终端30。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置306用于经由一个网络接收或者发送数据。上述的网络具体实例可包括终端30的通信供应商提供的无线网络。在一个实例中,传输装置306包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置306可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于上述终端的方法,图4是本实施例的一种报文的转发方法的流程图,如图4所示,该流程包括如下步骤。
在步骤402中,第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息。
需要指出的是,第一PE实体与第二PE实体是属于同一控制桥CB下的PE实体。
可选地,在PE实体存储有第一PE实体的报文信息,以及其他PE实体的报文信息。而其他的PE实体为与第一PE实体同属与一个CB下的PE实体。
表1是存储报文信息的格式信息。如表1所示,
表1
Name | Description | Default |
MAC_ADDR | MAC address | _ |
TYPE | MAC TYPE | _ |
SRC_PORT | Src Port number | _ |
VLAN_I D | VLAN ID | _ |
根据表1可以看出的是,在PE实体中存储的报文信息至少包括:MAC地址(MAC_ADDR),MAC类型(TYPE),端口序号(SRC_PORT)以及VLAN的标识(VLAN_ID)。MAC地址包括源MAC地址以及目标MAC地址,端口序号特指源端口的序号。
在步骤404中,所述第一PE实体在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体。
根据第一报文信息查询到所述指定报文信息是指第一报文信息中的(源MAC地址,目的MAC地址)与指定报文信息中的(目的MAC地址,源MAC地址)对应。例如,假设第一报文信息中报文信息为(MAC A,MAC B)。如果第一PE实体在本地存储的报文信息中查询到了报文信息为(MAC B,MAC A)的指定报文信息,说明与该第一报文信息对应的报文应当转发给与该指定报文信息对应的PE实体。第一PE实体根据本地存储的报文信息,查找到与(MAC B,MAC A)对应的PE实体,将查找到的该实体作为上述第二PE实体。
可选地,如果没有查到指定报文信息,则证明当前接收的报文是未知的报文,因此第一PE实体并不具备处理该报文信息的能力。此时,第一PE实体会将该未知的报文的报文信息上传至CB当中,而后由CB处理,并确定需要转发的相应的第二PE实体。
需要指出的是,为了让其他的PE实体学习该未知报文信息,CB也同样会将该未知报文信息发送给属于CB的所有PE实体。通过上述方法,能够使得属于CB下的所有PE都能够接收并学习新的报文信息,使得在此之后在接收到同样的报文信息时,避免再次向CB上报该报文信息。
在步骤406中,所述第一PE实体通过指定链路将所述第一报文信息对应的
报文转发给所述第二PE实体。
可选地,指定链路是指第一PE实体与所述第二PE实体之间用于通信连接的链路。图5是本实施例中的一级纵向堆叠组网的示意图,图6是本实施例中的二级纵向堆叠组网的示意图。如图5以及图6所示,在同一级的PE之间,例如图5中的PE1(第一PE实体)与PE2(第二PE实体),图6中的PE3(第一PE实体)以及PE4(第二PE实体),建立用于通信连接的链路。
需要指出的是,在本实施例中提供了一级纵向堆叠组网,还有二级纵向堆叠组网的实现方式。在其他实施例中也可以实现多级纵向堆叠组网方式。
需要指出的是,在本实施例中,还提供了如下的场景,以供理解本实施例中提供的技术方案。
基于图5中所示的一级纵向堆叠组网方式,假设从PE1进入一个报文,源端口为port X,源mac地址为A,目的mac地址为B。如果mac A对于PE1来说是未知单播报文,报文通过链路1上传到CB,CB对报文进行存储,存储信息包括但不限于源mac地址A,目的mac地址B,port X。
CB将(源mac A,目的mac B,port X)通过链路1和链路2同步给每个PE,此例子中包括PE1和PE2,即PE1存储一条PE1:(源mac A,目的mac B,port X),PE2存储一条PE2:(源mac A,目的mac B,port X)。
假设从PE2进入一个报文,源端口为port Y,源mac地址为B,目的mac地址为A,根据目的mac决定转发策略原则,查询到PE2:(源mac A,目的mac B,port X),找到出端口在PE1的port X上,直接通过链路3,将报文转发到PE1的port X上。
通过上述步骤,解决了相关技术中所有的报文业务都由CB处理导致的报文处理效率低的问题,进而可以减轻CB的报文处理压力,同时提高报文处理效率。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,
服务器,或者网络设备等)执行本公开每个实施例所述的方法。
实施例2
在本实施例中还提供了一种报文的转发装置,该装置用于实现上述实施方式。以下所使用的,术语“模块”可以为实现预定功能的软件和/或硬件的组合。
图7是本实施例的一种报文的转发装置的结构图,如图7所示,该装置包括:查询模块72,确定模块74以及发送模块76。
查询模块72,设置为:在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;
需要指出的是,第一PE实体与第二PE实体是所属于同一控制桥CB下的PE实体。
可选地,在PE实体存储有第一PE实体的报文信息,以及其他PE实体的报文信息。而其他的PE实体为与第一PE实体同属与一个CB下的PE实体。
根据上述表1可以看出的是,在PE实体中存储的报文信息至少包括:MAC地址,MAC类型,端口序号以及VLAN的标识。MAC地址包括源MAC地址以及目标MAC地址,端口序号特指源端口的序号。
确定模块74,设置为:在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;
根据第一报文信息查询到所述指定报文信息是指第一报文信息中的(源MAC地址,目的MAC地址)与指定报文信息中的(目的MAC地址,源MAC地址)对应。例如,假设第一报文信息中报文信息为(MAC A,MAC B)。如果第一PE实体在本地存储的报文信息中查询到了报文信息为(MAC B,MAC A)的指定报文信息,说明与该第一报文信息对应的报文应当转发给与该指定报文信息对应的PE实体。第一PE实体根据本地存储的报文信息,查找到与(MAC B,MAC A)对应的PE实体为第二PE实体。
发送模块76,设置为:通过指定链路将所述第一报文信息对应的指定报文信息转发给所述第二PE实体。
可选地,如图5以及图6所示,在同一级的PE之间,例如图5中的PE1(第一PE实体)与PE2(第二PE实体),图6中的PE3(第一PE实体)以及PE4(第
二PE实体),建立用于通信连接的链路。
图8是本实施例的另一种报文的转发装置的结构图,如图8所示,该装置除包括图7所示的所有模块外,还包括:上传模块82。
上传模块82,设置为:在未查到所述指定报文信息时,将所述第一报文信息上传至CB,并经由所述CB将所述第一报文信息发送至所述第二PE实体。
图9是本实施例的再一种报文的转发装置的结构图,如图8所示,该装置除包括图7所示的所有模块外,还包括:接收模块92。
接收模块92,设置为:接收所述CB发送的第二报文信息并存储,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体。
通过上述接收模块92,能够使得属于CB下的所有PE都能够接收并学习新的报文信息,使得在此之后在接收到同样的报文信息时,避免再次向CB上报该报文信息。
需要说明的是,上述每个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现:上述模块均位于同一处理器中;或者,上述每个模块以任意组合的形式分别位于不同的处理器中。
实施例3
在本实施例中还提供了一种报文的转发系统,该系统用于实现上述实施方式。术语“模块”可以为实现预定功能的软件和/或硬件的组合。
图10是本实施例的一种报文的系统的结构图,如图7所示,该系统包括:第一PE实体1002以及第二PE实体1004。
第一PE实体1002,设置为:在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体1004;
第二PE实体1004,设置为:通过指定链路接收所述第一PE1002实体转发的所述第一报文信息对应的指定报文信息。
图11是本实施例的另一种报文的转发系统的结构图,如图11所示,该装置除包括图10所示的所有PE实体外,还包括:控制桥CB1102。
CB1102,设置为:在所述第一PE实体1002未查到所述指定报文信息时,接收所述第一报文信息;将第二报文信息发送至所述第一PE实体1002以及所述其他PE实体,其中,所述第二报文信息来自所述第一PE实体1002以及所述其他PE实体中的至少一个PE实体,所述其他PE实体为与所述第一PE实体1002属于同一控制桥CB下的其他PE实体。
实施例4
本实施例提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S11,第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;
S12,所述第一PE实体在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;
S13,所述第一PE实体通过指定链路将所述第一报文信息对应的指定报文信息转发给所述第二PE实体。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
S21,在未查到所述指定报文信息时,所述第一PE实体将所述第一报文信息上传至CB,并经由所述CB将所述第一报文信息发送至所述第二PE实体
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
S31,接收CB发送的第二报文信息并存储,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等多种可以存储程序代码的介质。
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例。
上述的本实施例的每个模块或每个步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存
储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
本公开提供一种报文的转发方法、装置及系统,解决了相关技术中所有的报文业务都由CB处理导致的报文处理效率低的问题,进而可以减轻CB的报文处理压力,同时提高报文处理效率。
Claims (12)
- 一种报文的转发方法,包括:第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;第一PE实体在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;所述第一PE实体通过指定链路将所述第一报文信息对应的指定报文信息转发给所述第二PE实体。
- 根据权利要求1所述的方法,所述PE实体上存储有:所述第一PE实体的报文信息,以及其他PE实体的报文信息,其中,所述其他PE实体为与所述第一PE实体属于同一控制桥CB下的PE实体。
- 根据权利要求1所述的方法,在第一端口扩展PE实体在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息之后,所述方法还包括:在未查到所述指定报文信息时,所述第一PE实体将所述第一报文信息上传至CB,并经由所述CB将所述第一报文信息发送至所述第二PE实体。
- 根据权利要求2所述的方法,所述方法还包括:接收CB发送的第二报文信息并存储,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体。
- 根据权利要求1所述的方法,所述本地存储的报文信息,所述第一报文信息以及所述指定报文信息均至少包括:源MAC地址、目的MAC地址、和源端口。
- 根据权利要求1所述的方法,所述指定链路为所述第一PE实体与所述第二PE实体之间用于通信连接的链路;和/或所述第一PE实体与所述第二PE实体为同一级PE实体。
- 一种报文的转发装置,包括:查询模块,设置为:在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;确定模块,设置为:在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;发送模块,设置为:通过指定链路将所述第一报文信息对应的指定报文信息转发给所述第二PE实体。
- 根据权利要求7所述的装置,所述装置还包括:上传模块,设置为:在未查到所述指定报文信息时,将所述第一报文信息上传至CB,并经由所述CB将所述第一报文信息发送至所述第二PE实体。
- 根据权利要求7所述的装置,所述装置还包括:接收模块,设置为:接收所述CB发送的第二报文信息并存储,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体。
- 一种报文的转发系统,包括:第一端口扩展PE实体,设置为:在本地存储的报文信息中查询与接收的第一报文信息对应的指定报文信息;在查询到所述指定报文信息时,确定与所述指定报文信息对应的第二PE实体;第二PE实体,设置为:通过指定链路接收所述第一PE实体转发的所述第一报文信息对应的指定报文信息。
- 根据权利要求10所述的系统,所述系统还包括:控制桥CB,设置为:在所述第一PE实体未查到所述指定报文信息时,接收所述第一报文信息;将第二报文信息发送至所述第一PE实体以及所述其他PE实体,其中,所述第二报文信息来自所述第一PE实体以及所述其他PE实体中的至少一个PE实体,所述其他PE实体为与所述第一PE实体属于同一控制桥CB下的其他PE实体。
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610583186.7A CN107645453A (zh) | 2016-07-21 | 2016-07-21 | 报文的转发方法、装置及系统 |
CN201610583186.7 | 2016-07-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018014772A1 true WO2018014772A1 (zh) | 2018-01-25 |
Family
ID=60991970
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/092760 WO2018014772A1 (zh) | 2016-07-21 | 2017-07-13 | 报文的转发方法、装置及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107645453A (zh) |
WO (1) | WO2018014772A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109039909B (zh) * | 2018-07-17 | 2021-12-24 | 新华三技术有限公司 | 一种报文转发的方法及装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594676A (zh) * | 2012-02-13 | 2012-07-18 | 福建星网锐捷网络有限公司 | 桥端口扩展网络及其拥塞控制方法、端口扩展器和控制桥 |
CN102904803A (zh) * | 2012-09-27 | 2013-01-30 | 杭州华三通信技术有限公司 | 一种报文传输方法和设备 |
CN105227464A (zh) * | 2014-06-23 | 2016-01-06 | 杭州华三通信技术有限公司 | Vcf系统中的报文转发方法及装置 |
US20160205019A1 (en) * | 2013-03-12 | 2016-07-14 | Dell Products, L.P. | Port extender |
-
2016
- 2016-07-21 CN CN201610583186.7A patent/CN107645453A/zh active Pending
-
2017
- 2017-07-13 WO PCT/CN2017/092760 patent/WO2018014772A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102594676A (zh) * | 2012-02-13 | 2012-07-18 | 福建星网锐捷网络有限公司 | 桥端口扩展网络及其拥塞控制方法、端口扩展器和控制桥 |
CN102904803A (zh) * | 2012-09-27 | 2013-01-30 | 杭州华三通信技术有限公司 | 一种报文传输方法和设备 |
US20160205019A1 (en) * | 2013-03-12 | 2016-07-14 | Dell Products, L.P. | Port extender |
CN105227464A (zh) * | 2014-06-23 | 2016-01-06 | 杭州华三通信技术有限公司 | Vcf系统中的报文转发方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN107645453A (zh) | 2018-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016000362A1 (zh) | 一种配置流表项的方法、装置和系统 | |
EP3065342B1 (en) | Update of mac routes in evpn single-active topology | |
CN107204867B (zh) | 一种信息传输方法、装置和系统 | |
US9197721B2 (en) | Learning a MAC address | |
WO2019184752A1 (zh) | 网络设备的管理方法、装置及系统 | |
CN104954226A (zh) | 一种基于SDN的支持QoS的通信隧道建立方法及系统 | |
WO2015109821A1 (zh) | 一种管理业务链的方法、系统及装置 | |
CN109714274B (zh) | 一种获取对应关系的方法和路由设备 | |
US9917766B2 (en) | Loop-free hybrid network | |
WO2018121257A1 (zh) | 报文发送方法、装置、系统以及存储介质 | |
WO2016197689A1 (zh) | 处理报文的方法、装置和系统 | |
WO2016115698A1 (zh) | 数据报文的转发方法、装置及设备 | |
WO2017084448A1 (zh) | 一种网络系统及网络运行方法 | |
CN111193756B (zh) | 一种vxlan隧道负载均衡方法及相关设备 | |
CN105187311A (zh) | 一种报文转发方法及装置 | |
US9521073B2 (en) | Enhanced fine-grained overlay transport virtualization multi-homing using per-network authoritative edge device synchronization | |
WO2015113435A1 (zh) | 基于并行协议栈实例的数据包处理方法和装置 | |
CN105657078B (zh) | 一种数据传输方法、装置及多层网络管理器 | |
WO2018001339A1 (zh) | 虚拟可扩展局域网vxlan中报文转发方法及装置 | |
WO2018014742A1 (zh) | 一种接口扩展设备的端口配置方法及装置 | |
CN108092896B (zh) | 堆叠系统和聚合组建立装置 | |
WO2018014772A1 (zh) | 报文的转发方法、装置及系统 | |
WO2017219868A1 (zh) | Arp条目的处理方法及装置 | |
WO2020187295A1 (zh) | 异常主机的监控 | |
WO2017173989A1 (zh) | 组播的分发处理方法、装置、系统及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17830406 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17830406 Country of ref document: EP Kind code of ref document: A1 |