WO2018137252A1 - Route issuing method and device - Google Patents

Route issuing method and device Download PDF

Info

Publication number
WO2018137252A1
WO2018137252A1 PCT/CN2017/072778 CN2017072778W WO2018137252A1 WO 2018137252 A1 WO2018137252 A1 WO 2018137252A1 CN 2017072778 W CN2017072778 W CN 2017072778W WO 2018137252 A1 WO2018137252 A1 WO 2018137252A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing
network device
routing protocol
protocol process
unit
Prior art date
Application number
PCT/CN2017/072778
Other languages
French (fr)
Chinese (zh)
Inventor
蔡永生
王晓凯
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2017/072778 priority Critical patent/WO2018137252A1/en
Priority to CN201780084706.2A priority patent/CN110226307B/en
Publication of WO2018137252A1 publication Critical patent/WO2018137252A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath

Definitions

  • the embodiments of the present invention relate to the field of communications, and in particular, to a method and an apparatus for routing a route.
  • Network Function Virtualization technology carries many functions by using general-purpose hardware (for example, hardware supporting the x86 general-purpose computer series standard released by Intel Corporation of the United States) and virtualization technology.
  • Software processing For example, software processing that carries the functionality of a traditional dedicated hardware network device is referred to as a virtual network device.
  • NFV technology relies on hardware and software decoupling and functional abstraction, so that network device functions no longer depend on dedicated hardware, which not only reduces the cost of expensive dedicated hardware network equipment, but also enables flexible and flexible sharing of resources, enabling rapid development and deployment of new services. .
  • the Broadband Network Gateway (BNG) is used to provide authorized access, billing, traffic control, and data forwarding functions for network users.
  • the Broadband Remote Access Server (BRAS) is a BNG.
  • BRAS Broadband Remote Access Server
  • vBNG virtual broadband network service gateway
  • a virtual broadband remote access server (English: virtual Broadband Remote Access Server, vBRAS for short) is a type of vBNG.
  • vBNG can be composed of a virtual machine (English: virtual machine, VM for short).
  • the vBNG includes a forwarding VM.
  • the forwarding VM is used to implement the data forwarding function of the network user in the vBNG.
  • at least two forwarding VMs are included in the vBNG, there is data forwarding forwarding across the VM, which reduces the forwarding performance of the vBNG.
  • the method and device for routing a route provided by the embodiment of the present invention solve the problem of low performance caused by forwarding data packets across the board in the virtual network device, and help improve the processing performance of the virtual network device.
  • a method for route advertisement is provided, which is applied to a first network device, where the first network device is a virtual broadband network service gateway, and the first network device and the second network device are connected by two links.
  • the first network device includes at least two forwarding units, and the at least two forwarding units include a first forwarding unit, and the method includes:
  • the first network device creates at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process; the first network device will be the first a routing protocol process is associated with the first forwarding unit; the first network device receives, from the first interface of the first forwarding unit, routing information associated with the first routing protocol process from the first The second interface of the forwarding unit is distributed to the second network device.
  • the route received by the forwarding unit is only advertised from the interface of the forwarding unit to the second network device on the network side, thereby ensuring that the second network device can only learn.
  • the route advertised from the interface of the forwarding unit avoids cross-board forwarding and improves the forwarding performance of the vBNG.
  • the first network device associating the first routing protocol process with the first forwarding unit includes: the first network device indicating the first forwarding The unit sets the first tag from the routing information received by the first interface, and introduces routing information with the first tag into the first routing protocol process for publishing.
  • the first information of the routing information setting includes: the first network device instructing, by the configuration command, that the first forwarding unit sets the first label from the routing information received by the first interface.
  • the routing information to be imported into the first routing protocol process can be selected according to the needs of the user or the network administrator, and the routing information to be imported can be flexibly controlled according to the needs of the user or the network administrator.
  • the routing information with the first label is imported to the first route
  • the issuing of the protocol in the process includes: the first network device creating a routing policy, the routing policy indicating that the routing policy is satisfied if the marking of the routing information is the first marking; the first network device will satisfy the The routing information of the routing policy is introduced into the first routing protocol process for publishing.
  • the first network device by using the routing information that meets the routing policy, to the first The advertised in the routing protocol process includes: the first network device, by using a configuration command, to import the routing information that meets the routing policy into the first routing protocol process for publishing.
  • routing protocol process By creating a routing policy to import routing information that meets the matching requirements into the corresponding routing protocol process, you can select which routing protocol process to import based on the needs of the user or network administrator, and implement the requirements according to the needs of the user or network administrator. Flexible control of the routing protocol process to be introduced, and configuration management is more flexible.
  • the at least two forwarding units further include a second forwarding The unit, the at least two routing protocol processes further include a second routing protocol process, the method further comprising: the first network device associating the second routing protocol process with the second forwarding unit; A network device advertises routing information associated with the second routing protocol process received from the third interface of the second forwarding unit from the fourth interface of the second forwarding unit.
  • a vBNG device for route publishing is provided, the vBNG device being configured to perform the method of the first aspect or any possible implementation of the first aspect.
  • the vBNG device comprises means for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • the present invention provides a route-published vBNG device, where the route-published vBNG device includes: a memory, a transceiver, and a processor respectively connected to the memory and the transceiver.
  • the memory is for storing a set of program instructions, the processor for invoking the program instructions stored by the memory to run a plurality of virtual machines to perform the method of the first aspect or any possible implementation of the first aspect.
  • the present invention provides a computer readable storage medium having instructions stored therein that, when run on a computer, cause the computer to perform any of the first aspect or the first aspect The method in the way of implementation.
  • FIG. 1a is a schematic diagram of a network according to an embodiment of the present invention.
  • FIG. 1b is a schematic diagram of a network in an embodiment of the present invention.
  • FIG. 2 is a simplified schematic diagram of a route publishing method in an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a vBNG in an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another vBNG in the embodiment of the present invention.
  • the network architecture and the service scenario described in the embodiments of the present invention are used to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation of the technical solutions provided by the embodiments of the present invention.
  • the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.
  • the vBNG and the network device 2 are interconnected by at least two links (eg, link 1 and link 2), and the vBNG receives user-side routing information from the network device 3 through the interface 1, the routing information.
  • the IP address information of the user equipment 1 may be an IP address such as 10.1.1.1, or an IP address prefix information, such as 10.1.1.0, or a subnet mask for the IP address, such as 10.1.1.1. /twenty four.
  • the virtual network device runs an Interior Gateway Protocol (IGP) routing protocol process.
  • IGP can be an Open Shortest Path First (OSPF), an intermediate system to an intermediate system. :Intermediate System-to-Intermediate System, IS-IS).
  • OSPF Open Shortest Path First
  • IS-IS Intermediate System-to-Intermediate System
  • the vBNG After receiving the routing information from the user side, the vBNG advertises the routing information from interface 2 and interface 4 through the IGP process.
  • the network device 2 receives the routing information from the interface 5 and the interface 6, respectively, and generates two forwarding entries.
  • the destination IP address information of the two forwarding entries is the IP address information of the user equipment 1, and the outgoing interfaces are respectively interfaces. 5.
  • Interface 6 For example, when the cost of the link 2 is lower than the cost of the link 1, the forwarding entry of the interface 6 is selected, and the data packet destined for the user equipment 1 is forwarded.
  • the vBNG After receiving the data packet destined for the user equipment 1 from the interface 4, the vBNG needs to go through the switching network, and the data packet is sent from the forwarding unit 2 to the forwarding unit 1, and the data packet is sent from the interface 1 of the forwarding unit 1. Send it out.
  • the forwarding that needs to be performed across the switching network may be referred to as cross-board forwarding, cross-forwarding unit forwarding, or cross-VM forwarding.
  • the corresponding data flow may be referred to as cross-board forwarding data flow and cross-forward unit forwarding number.
  • the data stream is forwarded according to the flow or across the VM.
  • vBNG is handled by software instead of hardware (eg, chip) processing, performance is relatively poor.
  • performance is relatively poor.
  • the forwarding performance of the vBNG is further degraded.
  • the switching network may be a hardware switch or a virtual switch of software.
  • the network device 2 may be a network device of physical hardware, such as a router or a switch, or may be a virtual network device based on NFV technology, such as a virtual router or a virtual switch.
  • User equipment (English: User Equipment, UE) may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computer devices or other processing devices connected to wireless modems, and various forms of user equipment, mobile Taiwan (English: Mobile Station, MS), terminal (English: terminal), terminal equipment (English: Terminal Equipment, TE) and so on.
  • the devices mentioned above are collectively referred to as user equipments or UEs.
  • FIG. 2 is a schematic flowchart of a method for route advertisement according to an embodiment of the present invention.
  • the method is applied to a vBNG (as a first network device), the first network device and the second network device are connected by two links, the first network device comprising at least two forwarding units, at least one control unit, at least A switching unit (also called a switching network).
  • the at least two forwarding units include a first forwarding unit and a second forwarding unit.
  • the IGP protocol is established between the first network device and the second network device, and an IGP neighbor relationship is established, and is in an IGP domain.
  • the solution provided by the embodiment of the present invention includes part 201, part 302 and part 203, which are respectively described below.
  • the first network device creates at least two routing protocol processes, wherein one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process and a second routing protocol process.
  • the routing protocol process can be an IGP routing protocol process such as an OSPF process or an IS-IS process.
  • a third routing protocol process is created on the second network device, and an IGP neighbor relationship is established between the first routing protocol process and the second routing protocol process on the first network device.
  • a third routing protocol process and a fourth routing protocol process may be created on the second network device, where the third routing protocol process may establish an IGP with the first routing protocol process on the first network device.
  • the neighbor relationship, the fourth routing protocol process may establish an IGP neighbor relationship with the second routing protocol process on the first network device.
  • the first network device associates the first routing protocol process with the first forwarding unit, and associates the second routing protocol process with the second forwarding unit.
  • Associating the first routing protocol process with the first forwarding unit is understood to be that the first routing protocol process is only responsible for receiving an interface of the first forwarding unit that has not been added to the first routing protocol process.
  • the obtained routing information is sent out (also called an advertisement) from an interface of the first forwarding unit that is added to the first routing protocol process.
  • the control unit of the vBNG creates the first routing protocol process (such as ospf process 1), and the interface 2 (which is the interface connected to the network side network device) joins the ospf1 (specifically, for example, Add the IP address configured on interface 2 to ospf1, or enable ospf on interface 2 to join the ospf process.
  • the vBNG receives the packet from the user device 1 from the interface 1 (which is not connected to the ospf process 1), and obtains the IP address information of the user device 1 and uses it as the routing information to the ospf process. .
  • the routing information of the user equipment 1 is advertised from the interface 2 to the network device 2 through the ospf process 1.
  • the interface 2 is a network side interface
  • the interface 1 is a user side interface
  • the interface 2 may have multiple
  • the interface 1 may also have multiple, here only They are illustrated by an interface, but they are not limited.
  • the first network device may associate the first routing protocol process with the first forwarding unit in the following two manners.
  • the first network device directly introduces the routing information of the user terminal side received from the first interface of the first forwarding unit into the first routing protocol process, and the first routing protocol process And routing the routing information from the second interface of the first forwarding unit to the second network device.
  • the method is directly encoded and implemented in the software in the product development process of the first network device, and does not require subsequent manual configuration operations to participate in the implementation.
  • Manner 2 The first network device instructs the first forwarding unit to set a first flag from routing information received from the first interface, and import routing information with the first label into the first route Released during the protocol process.
  • setting the first flag may be implemented on the first network device by using a configuration command.
  • the following command line indicates that the user network route (English: user network route, unr) received on slot 1 (ie, forwarding unit 1) is marked (English: tag) 100.
  • routing information that needs to be introduced into the first routing protocol process can be selected according to the needs of the user or the network administrator (for example, all or part of the user network side routes received on the forwarding unit 1 can be routed.
  • the introduction is performed, of course, if it is not set, it may not be introduced.
  • the routing information to be imported is flexibly controlled according to the needs of the user or the network administrator.
  • the first network device creates a routing policy, where the routing policy indicates that the routing policy is satisfied if the marking of one routing information is the first marking.
  • the first network device introduces the routing information that meets the routing policy into the first routing protocol process for publishing.
  • creating a routing policy may be implemented by using a configuration command on the first network device.
  • routing protocol process By creating a routing policy to import routing information that meets the matching requirements into the corresponding routing protocol process, you can select which routing protocol process to import based on the needs of the user or network administrator, and implement the requirements according to the needs of the user or network administrator. Flexible control of the routing protocol process to be introduced, and configuration management is more flexible.
  • the method of associating the second routing protocol with the second forwarding unit is the same as the method for associating the first routing protocol with the first forwarding unit. For brevity, details are not described herein again.
  • the first network device receives, from the first interface of the first forwarding unit, routing information associated with the first routing protocol process from a second interface of the first forwarding unit The second network device is released, and the routing information includes IP address information of the user equipment.
  • the network device 1 will receive the routing information of the user equipment 1 from the interface 1 of the forwarding unit 1 (the routing information of the user equipment 1 has been introduced into the first routing protocol process by the method of part 202) From forwarding
  • the interface 2 of the unit 1 is issued to the network device 2.
  • the network device 2 After receiving the routing information of the user equipment 1 from the interface 5, the network device 2 runs a third routing protocol process to generate a forwarding entry destined for the user equipment 1, and the destination IP address information of the forwarding entry is the IP address of the user equipment 1.
  • Information, the outgoing interface is interface 5.
  • the network device 2 forwards the data packet destined for the user equipment 1, only the interface 5 is used; then, through the link 1, from the interface 2 of the vBNG, the forwarding unit 1 of the vBNG is accessed, and then the interface 1 of the forwarding unit 1 is forwarded.
  • the data packet is sent and received on the same forwarding unit 1, avoiding cross-board forwarding.
  • the route received by the first forwarding unit is only advertised from the interface of the first forwarding unit to the second network device on the network side, thereby ensuring the first The network device can only learn the routes advertised by the interface from the first forwarding unit, thereby avoiding cross-board forwarding and improving the forwarding performance of the vBNG.
  • the first network device advertises the routing information associated with the second routing protocol process received from the third interface of the second forwarding unit from the fourth interface of the second forwarding unit.
  • the network device 1 will receive the routing information of the user equipment 2 received from the interface 3 of the forwarding unit 2 (the routing information of the user equipment 2 has been introduced to the second through the method of part 202).
  • the routing protocol process is issued from the interface 4 of the forwarding unit 2 to the network device 2.
  • the network device 2 After receiving the routing information of the user equipment 2 from the interface 6, the network device 2 runs the third routing protocol process (as described in section 201 above, when the network device 2 runs a routing protocol process) or the fourth The routing protocol process (as described in section 201 above, when the network device 2 runs two routing protocol processes) generates a forwarding entry destined for the user equipment 2, and the destination IP address information of the forwarding entry is the IP of the user equipment 2 Address information, the outbound interface is interface 6. Therefore, as shown in FIG.
  • each forwarding unit By associating each forwarding unit with each routing protocol in a one-to-one correspondence, the route received by each forwarding unit is only advertised from the interface of the forwarding unit to the second network device on the network side, thereby ensuring the second network.
  • the device can only learn the routes advertised from the interface of the forwarding unit, thus avoiding cross-board forwarding and improving the forwarding performance of the vBNG.
  • FIG. 3 is a schematic structural diagram of a vBNG device according to an embodiment of the present invention.
  • the vBNG device 300 includes a creation unit 302, an association unit 304, and a transmission unit 306.
  • the creating unit 302 is configured to create at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process.
  • the association unit 304 is configured to associate the first routing protocol process with the first forwarding unit.
  • the association unit 304 is configured to instruct the first forwarding unit to set a first flag from the routing information received by the first interface, and import routing information with the first tag into the Released in the first routing protocol process.
  • the associating unit 304 may perform the above-described function of setting a flag by a configuration command.
  • the associating unit 304 the routing information that has the first label is imported into the first routing protocol process for publishing, specifically includes:
  • the association unit 304 is further configured to instruct the creating unit 302 to create a routing policy, where the routing policy indicates If the marking of a routing information is the first marking, the routing policy is satisfied.
  • the association unit 304 is further configured to import the routing information that meets the routing policy into the first routing protocol process for publishing.
  • the sending unit 306 is configured to receive routing information associated with the first routing protocol process from the first interface of the first forwarding unit from the second interface of the first forwarding unit to the second network The device is released.
  • the vBNG device 300 of the embodiment of the present invention may implement various implementation functions and steps in the vBNG device (ie, the first network device) in the embodiment corresponding to the foregoing FIG. 1a to FIG. 2 .
  • the vBNG device ie, the first network device
  • FIG. 1a to FIG. 2 For brevity, details are not described herein again.
  • FIG. 4 is a block diagram showing the hardware structure of a computer device in an embodiment of the present invention.
  • the computer device 400 is for generating and running a virtual network device.
  • the virtual network device 400 is used to implement the function of the BNG, and is a vBNG device.
  • the computer device 400 includes a memory 401, a transceiver 402, and a processor 403 coupled to the memory 401 and the transceiver 402, respectively.
  • the memory 401 is configured to store a set of program instructions
  • the processor 403 is configured to invoke program instructions stored by the memory 401 to run a plurality of virtual machines to implement a plurality of units in the virtual network device.
  • a virtual machine is a complete computer system that runs through a software and has full hardware system functionality running in a fully isolated environment.
  • the virtual machine is deployed on a hardware device (for example, a physical server).
  • a hardware device for example, a physical server.
  • Those skilled in the art can use the NFV technology to virtualize a plurality of gateway devices having the above functions on a general physical server by reading the present application. I will not repeat them here.
  • the virtual machine running in the processor 403 includes a forwarding unit 4031, a forwarding unit 4032, and a control unit 4033.
  • the control unit 4033 is a virtual machine for implementing the control management function
  • the forwarding unit 4031 and the forwarding unit 4032 are virtual machines for implementing the data forwarding function.
  • the control unit 4033 is configured to create at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process.
  • the control unit 4033 is further configured to associate the first routing protocol process with the first forwarding unit.
  • control unit 4033 is configured to instruct the first forwarding unit to set a first flag from the routing information received by the first interface, and import routing information with the first tag into the first Released in a routing protocol process.
  • control unit 403 can complete the above-described function of setting a flag by a configuration command.
  • the initiating, by the control unit 4033, the routing information that has the first label to be sent to the first routing protocol process for publishing includes:
  • the control unit 4033 is further configured to create a routing policy, where the routing policy indicates that the routing policy is satisfied if the marking of a piece of routing information is the first marking.
  • the control unit 4033 is further configured to import the routing information that meets the routing policy into the first routing protocol process for publishing.
  • the transceiver 4032 is configured to receive, from the first interface of the first forwarding unit, the routing information associated with the first routing protocol process from the second interface of the first forwarding unit to the second network. The device is released.
  • the vBNG device 400 of the embodiment of the present invention may implement various implementation functions and steps in the vBNG device (ie, the first network device) in the foregoing embodiment corresponding to FIG. 1a to FIG. 2 .
  • the control unit 4033 is used to perform All operations of the creating unit 302 and the associating unit 304 of the vBNG device are performed in FIG. 3, and the transceiver 402 is configured to perform all operations of the transmitting unit 306 of the vBNG device of FIG. For the sake of brevity, it will not be repeated here.
  • the virtual machine running in the processor 403 further includes a switching unit, and the switching unit may be a VM that performs a switch function. It should be noted that the forwarding units in the vBNG device 400 can also exchange data packets through a hardware physical switch.
  • the vBNG device in the embodiment of the present invention includes at least two forwarding units and at least one control unit.
  • the forwarding unit 4031 and the forwarding unit 4032, and the control unit 4033 are merely examples, and are not limiting.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention is essentially The portion contributing to the prior art or the portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (may be A personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

The present application provides a route issuing method and device, used for a first network device; the first network device is a virtual broadband network service gateway; the first network device and a second network device are connected by means of two links; and the first network device comprises at least two forwarding units, the at least two forwarding units comprising a first forwarding unit. The method comprises : the first network device creates at least two routing protocol processes, one of the routing protocol processes being correlated to one forwarding unit; and the at least two routing protocol processes comprise a first routing protocol process. The first routing protocol process is correlated to the first forwarding unit by the first network device. The first network device issues routing information received from a first interface of the first forwarding unit, and correlated with the first routing protocol process, to the second network device through a second interface of the first forwarding unit. The method and the device are conducive to improving the forwarding performance of the first network device.

Description

路由发布的方法和装置Method and device for routing release 技术领域Technical field
本发明实施例涉及通信领域,尤其涉及一种路由发布的方法和装置。The embodiments of the present invention relate to the field of communications, and in particular, to a method and an apparatus for routing a route.
背景技术Background technique
网络功能虚拟化(英文:Network Function Virtualization,NFV)技术通过使用通用性硬件(例如,支持美国英特尔(英文:Intel)公司发布的x86通用计算机系列标准的硬件)以及虚拟化技术,来承载很多功能的软件处理。例如,承载传统专用硬件网络设备功能的软件处理称为虚拟网络设备。NFV技术通过软硬件解耦及功能抽象,使网络设备功能不再依赖于专用硬件,不但降低昂贵的专用硬件网络设备的成本,而且可以使资源充分灵活共享,实现新业务的快速开发和部署等。Network Function Virtualization (NFV) technology carries many functions by using general-purpose hardware (for example, hardware supporting the x86 general-purpose computer series standard released by Intel Corporation of the United States) and virtualization technology. Software processing. For example, software processing that carries the functionality of a traditional dedicated hardware network device is referred to as a virtual network device. NFV technology relies on hardware and software decoupling and functional abstraction, so that network device functions no longer depend on dedicated hardware, which not only reduces the cost of expensive dedicated hardware network equipment, but also enables flexible and flexible sharing of resources, enabling rapid development and deployment of new services. .
在网络中,宽带网络业务网关(英文:Broadband Network Gateway,简称BNG)用于提供网络用户的授权接入、计费、流量控制、数据转发等功能。例如,宽带远程接入服务器(英文:Broadband Remote Access Server,简称BRAS)是一种BNG。在NFV技术的推动下,可以采用虚拟网络设备来实现BNG的功能。该虚拟网络设备可以称之为虚拟宽带网络业务网关(英文:virtual Broadband Network Gateway,简称vBNG)。例如,虚拟宽带远程接入服务器(英文:virtual Broadband Remote Access Server,简称vBRAS)是一种vBNG。In the network, the Broadband Network Gateway (BNG) is used to provide authorized access, billing, traffic control, and data forwarding functions for network users. For example, the Broadband Remote Access Server (BRAS) is a BNG. Under the impetus of NFV technology, virtual network devices can be used to implement BNG functions. The virtual network device may be referred to as a virtual broadband network service gateway (English: virtual broadband network gateway, referred to as vBNG). For example, a virtual broadband remote access server (English: virtual Broadband Remote Access Server, vBRAS for short) is a type of vBNG.
vBNG可以由虚拟机(英文:virtual machine,简称VM)组成。其中,vBNG包括转发VM。转发VM用于实现vBNG中网络用户的数据转发功能。当vBNG中包括至少两个转发VM时,会存在跨VM的数据流转发,降低了vBNG的转发性能。vBNG can be composed of a virtual machine (English: virtual machine, VM for short). Wherein, the vBNG includes a forwarding VM. The forwarding VM is used to implement the data forwarding function of the network user in the vBNG. When at least two forwarding VMs are included in the vBNG, there is data forwarding forwarding across the VM, which reduces the forwarding performance of the vBNG.
发明内容Summary of the invention
本发明实施例提供的路由发布的方法和设备,解决了虚拟网络设备内部跨板转发数据报文造成的性能低的问题,有助于提升虚拟网络设备的处理性能。The method and device for routing a route provided by the embodiment of the present invention solve the problem of low performance caused by forwarding data packets across the board in the virtual network device, and help improve the processing performance of the virtual network device.
为此,本发明实施例提供如下技术方案:To this end, the embodiments of the present invention provide the following technical solutions:
第一方面,提供了一种路由发布的方法,应用于第一网络设备,所述第一网络设备是虚拟宽带网络业务网关,所述第一网络设备与第二网络设备通过两条链路相连,所述第一网络设备包括至少两个转发单元,所述至少两个转发单元包括第一转发单元,所述方法包括:In a first aspect, a method for route advertisement is provided, which is applied to a first network device, where the first network device is a virtual broadband network service gateway, and the first network device and the second network device are connected by two links. The first network device includes at least two forwarding units, and the at least two forwarding units include a first forwarding unit, and the method includes:
所述第一网络设备创建至少两个路由协议进程,其中一个路由协议进程关联一个转发单元,所述至少两个路由协议进程包括第一路由协议进程;所述第一网络设备将所述第一路由协议进程与所述第一转发单元关联;所述第一网络设备将从所述第一转发单元的第一接口接收的与所述第一路由协议进程相关联的路由信息从所述第一转发单元的第二接口向所述第二网络设备发布。The first network device creates at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process; the first network device will be the first a routing protocol process is associated with the first forwarding unit; the first network device receives, from the first interface of the first forwarding unit, routing information associated with the first routing protocol process from the first The second interface of the forwarding unit is distributed to the second network device.
通过将一个路由协议进程与一个转发单元关联,实现了将该转发单元收到的路由仅从该转发单元的接口发布到网络侧的第二网络设备,从而保证第二网络设备仅能学习到来 自该转发单元的接口发布的路由,从而避免了跨板转发,提高了vBNG的转发性能。By associating a routing protocol process with a forwarding unit, the route received by the forwarding unit is only advertised from the interface of the forwarding unit to the second network device on the network side, thereby ensuring that the second network device can only learn. The route advertised from the interface of the forwarding unit avoids cross-board forwarding and improves the forwarding performance of the vBNG.
在第一方面的第一种可能的实现方式中,所述第一网络设备将所述第一路由协议进程与所述第一转发单元关联包括:所述第一网络设备指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记,并将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布。In a first possible implementation manner of the first aspect, the first network device associating the first routing protocol process with the first forwarding unit includes: the first network device indicating the first forwarding The unit sets the first tag from the routing information received by the first interface, and introduces routing information with the first tag into the first routing protocol process for publishing.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述第一网络设备指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记包括:所述第一网络设备通过配置命令指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记。With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first network device, The first information of the routing information setting includes: the first network device instructing, by the configuration command, that the first forwarding unit sets the first label from the routing information received by the first interface.
通过设置标记,可以根据用户或网络管理员的需要来选择需要引入到所述第一路由协议进程中的路由信息,实现了按照用户或网络管理员的需要来灵活的控制待引入的路由信息。By setting the tag, the routing information to be imported into the first routing protocol process can be selected according to the needs of the user or the network administrator, and the routing information to be imported can be flexibly controlled according to the needs of the user or the network administrator.
结合第一方面的第一种或第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布包括:所述第一网络设备创建路由策略,所述路由策略指示如果一条路由信息的标记为第一标记,则满足所述路由策略;所述第一网络设备将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。In conjunction with the first or second possible implementation of the first aspect, in a third possible implementation of the first aspect, the routing information with the first label is imported to the first route The issuing of the protocol in the process includes: the first network device creating a routing policy, the routing policy indicating that the routing policy is satisfied if the marking of the routing information is the first marking; the first network device will satisfy the The routing information of the routing policy is introduced into the first routing protocol process for publishing.
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述第一网络设备将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布包括:所述第一网络设备通过配置命令指示将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the first network device, by using the routing information that meets the routing policy, to the first The advertised in the routing protocol process includes: the first network device, by using a configuration command, to import the routing information that meets the routing policy into the first routing protocol process for publishing.
通过创建路由策略来将满足匹配要求的路由信息引入相应的路由协议进程,可以根据用户或网络管理员的需要来选择需要引入到哪一个路由协议进程,实现了按照用户或网络管理员的需要来灵活的控制待引入的路由协议进程,配置管理更灵活。By creating a routing policy to import routing information that meets the matching requirements into the corresponding routing protocol process, you can select which routing protocol process to import based on the needs of the user or network administrator, and implement the requirements according to the needs of the user or network administrator. Flexible control of the routing protocol process to be introduced, and configuration management is more flexible.
结合第一方面,或者第一方面的第一种至第四种任一可能的实现方式,在第一方面的第五种可能的实现方式中,所述至少两个转发单元还包括第二转发单元,所述至少两个路由协议进程还包括第二路由协议进程,所述方法还包括:所述第一网络设备将所述第二路由协议进程与所述第二转发单元关联;所述第一网络设备将从所述第二转发单元的第三接口接收的与所述第二路由协议进程相关联的路由信息从所述第二转发单元的第四接口发布出去。With reference to the first aspect, or any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the at least two forwarding units further include a second forwarding The unit, the at least two routing protocol processes further include a second routing protocol process, the method further comprising: the first network device associating the second routing protocol process with the second forwarding unit; A network device advertises routing information associated with the second routing protocol process received from the third interface of the second forwarding unit from the fourth interface of the second forwarding unit.
第二方面,提供了一种路由发布的vBNG设备,所述vBNG设备用于执行第一方面或第一方面的任意可能的实现方式中的方法。具体地,所述vBNG设备包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的模块。In a second aspect, a vBNG device for route publishing is provided, the vBNG device being configured to perform the method of the first aspect or any possible implementation of the first aspect. In particular, the vBNG device comprises means for performing the method of the first aspect or any of the possible implementations of the first aspect.
第三方面,本发明提供一种路由发布的vBNG设备,所述一种路由发布的vBNG设备包括:存储器、收发器,以及分别与所述存储器、收发器连接的处理器。所述存储器用于存储一组程序指令,所述处理器用于调用所述存储器存储的程序指令运行多个虚拟机以执行第一方面或第一方面的任意可能的实现方式中的方法。In a third aspect, the present invention provides a route-published vBNG device, where the route-published vBNG device includes: a memory, a transceiver, and a processor respectively connected to the memory and the transceiver. The memory is for storing a set of program instructions, the processor for invoking the program instructions stored by the memory to run a plurality of virtual machines to perform the method of the first aspect or any possible implementation of the first aspect.
第四方面,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面或第一方面的任意可 能的实现方式中的方法。In a fourth aspect, the present invention provides a computer readable storage medium having instructions stored therein that, when run on a computer, cause the computer to perform any of the first aspect or the first aspect The method in the way of implementation.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。显而易见地,下面附图中反映的仅仅是本发明的一部分实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得本发明的其他实施方式。而所有这些实施例或实施方式都在本发明的保护范围之内。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, only some embodiments of the present invention are reflected in the following drawings, and other embodiments of the present invention can be obtained according to the drawings without any inventive labor for those skilled in the art. . All such embodiments or implementations are within the scope of the invention.
图1a是本发明实施例的一种网络示意图;FIG. 1a is a schematic diagram of a network according to an embodiment of the present invention; FIG.
图1b是本发明实施例中一种网络示意图;FIG. 1b is a schematic diagram of a network in an embodiment of the present invention; FIG.
图2是本发明实施例中路由发布方法的简化示意图;2 is a simplified schematic diagram of a route publishing method in an embodiment of the present invention;
图3是本发明实施例中的一种vBNG的结构示意图;3 is a schematic structural diagram of a vBNG in an embodiment of the present invention;
图4是本发明实施例中的另一种vBNG的结构示意图。4 is a schematic structural diagram of another vBNG in the embodiment of the present invention.
具体实施方式detailed description
下面将结合附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
本发明实施例描述的网络架构以及业务场景是为了更加清楚的说明本发明实施例的技术方案,并不构成对于本发明实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本发明实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and the service scenario described in the embodiments of the present invention are used to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation of the technical solutions provided by the embodiments of the present invention. The technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.
如图1a所示,vBNG和网络设备2通过至少两条链路(如,链路1和链路2)互连,vBNG通过接口1接收来自网络设备3的用户侧路由信息,所述路由信息包括用户设备1的IP地址信息,该IP地址信息可以为IP地址如10.1.1.1,也可以为IP地址前缀信息,如10.1.1.0,还可以为IP地址加子网掩码,如10.1.1.1/24。该虚拟网络设备运行一个内部网关协议(英文:Interior Gateway Protocol,IGP)路由协议进程,例如,IGP可以为开放式最短路径优先(英文:Open Shortest Path First,OSPF)、中间系统到中间系统(英文:Intermediate System-to-Intermediate System,IS-IS)等。vBNG收到来自用户侧的该路由信息后,通过该IGP进程将该路由信息分别从接口2和接口4发布出去。网络设备2分别从接口5和接口6收到该路由信息,生成两条转发表项,该两条转发表项的目的IP地址信息都为该用户设备1的IP地址信息,出接口分别为接口5、接口6。例如,当链路2的成本(英文:cost)值低于链路1的cost值时,出接口为接口6的转发表项被选中,进行去往该用户设备1的数据报文转发。vBNG从接口4收到去往该用户设备1的数据报文后,需要经过交换网,将该数据报文从转发单元2发送到转发单元1,从转发单元1的接口1将该数据报文发送出去。需说明,这种需要跨交换网进行的转发可以称为跨板转发、跨转发单元转发或跨VM转发等,相应的数据流可以称为跨板转发数据流、跨转发单元转发数 据流或跨VM转发数据流。As shown in FIG. 1a, the vBNG and the network device 2 are interconnected by at least two links (eg, link 1 and link 2), and the vBNG receives user-side routing information from the network device 3 through the interface 1, the routing information. The IP address information of the user equipment 1 may be an IP address such as 10.1.1.1, or an IP address prefix information, such as 10.1.1.0, or a subnet mask for the IP address, such as 10.1.1.1. /twenty four. The virtual network device runs an Interior Gateway Protocol (IGP) routing protocol process. For example, the IGP can be an Open Shortest Path First (OSPF), an intermediate system to an intermediate system. :Intermediate System-to-Intermediate System, IS-IS). After receiving the routing information from the user side, the vBNG advertises the routing information from interface 2 and interface 4 through the IGP process. The network device 2 receives the routing information from the interface 5 and the interface 6, respectively, and generates two forwarding entries. The destination IP address information of the two forwarding entries is the IP address information of the user equipment 1, and the outgoing interfaces are respectively interfaces. 5. Interface 6. For example, when the cost of the link 2 is lower than the cost of the link 1, the forwarding entry of the interface 6 is selected, and the data packet destined for the user equipment 1 is forwarded. After receiving the data packet destined for the user equipment 1 from the interface 4, the vBNG needs to go through the switching network, and the data packet is sent from the forwarding unit 2 to the forwarding unit 1, and the data packet is sent from the interface 1 of the forwarding unit 1. Send it out. It should be noted that the forwarding that needs to be performed across the switching network may be referred to as cross-board forwarding, cross-forwarding unit forwarding, or cross-VM forwarding. The corresponding data flow may be referred to as cross-board forwarding data flow and cross-forward unit forwarding number. The data stream is forwarded according to the flow or across the VM.
由于vBNG是用软件处理来替代硬件(如,芯片)处理,所以性能相对较差。特别是,当数据报文在vBNG内部转发需要经过交换网时,使vBNG的转发性能进一步下降。Since vBNG is handled by software instead of hardware (eg, chip) processing, performance is relatively poor. In particular, when the data packet needs to pass through the switching network within the vBNG, the forwarding performance of the vBNG is further degraded.
需要说明的是,交换网可以是硬件的交换机,也可以是软件的虚拟交换机。网络设备2可以是物理硬件的网络设备,如路由器或交换机等,也可以是基于NFV技术的虚拟的网络设备,如,虚拟路由器或虚拟交换机。用户设备(英文:User Equipment,UE)可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算机设备或连接到无线调制解调器的其它处理设备,以及各种形式的用户设备,移动台(英文:Mobile Station,MS),终端(英文:terminal),终端设备(英文:Terminal Equipment,TE)等等。为方便描述,本申请中,上面提到的设备统称为用户设备或UE。It should be noted that the switching network may be a hardware switch or a virtual switch of software. The network device 2 may be a network device of physical hardware, such as a router or a switch, or may be a virtual network device based on NFV technology, such as a virtual router or a virtual switch. User equipment (English: User Equipment, UE) may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computer devices or other processing devices connected to wireless modems, and various forms of user equipment, mobile Taiwan (English: Mobile Station, MS), terminal (English: terminal), terminal equipment (English: Terminal Equipment, TE) and so on. For convenience of description, in the present application, the devices mentioned above are collectively referred to as user equipments or UEs.
基于图1a描述的应用场景,图2为本发明实施例提供的一种路由发布的方法流程示意图。该方法应用于vBNG(作为第一网络设备),所述第一网络设备与第二网络设备通过两条链路相连,所述第一网络设备包括至少两个转发单元,至少一个控制单元,至少一个交换单元(也叫交换网)。其中所述至少两个转发单元包括第一转发单元和第二转发单元。所述第一网络设备和所述第二网络设备之间运行IGP协议、建立IGP邻居关系,在一个IGP域内。Based on the application scenario described in FIG. 1a, FIG. 2 is a schematic flowchart of a method for route advertisement according to an embodiment of the present invention. The method is applied to a vBNG (as a first network device), the first network device and the second network device are connected by two links, the first network device comprising at least two forwarding units, at least one control unit, at least A switching unit (also called a switching network). The at least two forwarding units include a first forwarding unit and a second forwarding unit. The IGP protocol is established between the first network device and the second network device, and an IGP neighbor relationship is established, and is in an IGP domain.
下面结合附图2,对本发明的实施例提供的方案进行说明。The solution provided by the embodiment of the present invention will be described below with reference to FIG.
本发明实施例提供的方案包括201部分、302部分和203部分,下面分别说明。The solution provided by the embodiment of the present invention includes part 201, part 302 and part 203, which are respectively described below.
在201部分,所述第一网络设备创建至少两个路由协议进程,其中一个路由协议进程关联一个转发单元,所述至少两个路由协议进程包括第一路由协议进程和第二路由协议进程。该路由协议进程可以为OSPF进程、IS-IS进程等IGP路由协议进程。In section 201, the first network device creates at least two routing protocol processes, wherein one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process and a second routing protocol process. The routing protocol process can be an IGP routing protocol process such as an OSPF process or an IS-IS process.
在所述第二网络设备上创建第三路由协议进程,分别与所述第一网络设备上的第一路由协议进程和第二路由协议进程之间建立IGP邻居关系。或者,也可以在所述第二网络设备上创建第三路由协议进程和第四路由协议进程,该第三路由协议进程可以与所述第一网络设备上的第一路由协议进程之间建立IGP邻居关系,该第四路由协议进程可以与所述第一网络设备上的第二路由协议进程之间建立IGP邻居关系。A third routing protocol process is created on the second network device, and an IGP neighbor relationship is established between the first routing protocol process and the second routing protocol process on the first network device. Alternatively, a third routing protocol process and a fourth routing protocol process may be created on the second network device, where the third routing protocol process may establish an IGP with the first routing protocol process on the first network device. The neighbor relationship, the fourth routing protocol process may establish an IGP neighbor relationship with the second routing protocol process on the first network device.
在202部分,所述第一网络设备将所述第一路由协议进程与所述第一转发单元关联,将所述第二路由协议进程与所述第二转发单元关联。In section 202, the first network device associates the first routing protocol process with the first forwarding unit, and associates the second routing protocol process with the second forwarding unit.
将所述第一路由协议进程与所述第一转发单元关联可以理解为所述第一路由协议进程只负责将从未加入到所述第一路由协议进程的所述第一转发单元的接口收到的路由信息,从加入到所述第一路由协议进程的所述第一转发单元的接口发布(也可以叫通告)出去。例如,如图1a所示,在vBNG的控制单元创建该第一路由协议进程(如ospf进程1),接口2(为与网络侧网络设备相连的接口)加入该ospf1(具体地,例如,可以通过将接口2上配置的IP地址加入ospf1来实现,或者在接口2上使能ospf能力来实现加入ospf进程1)。vBNG从接口1(为与用户侧设备相连的接口,未加入到ospf进程1)收到来自用户设备1的报文,获得用户设备1的IP地址信息,将其作为路由信息引入到ospf进程1。用户设备1的路由信息,通过ospf进程1从接口2发布到网络设备2。应理解,接口2为网络侧接口,接口1为用户侧接口,接口2可以有多个,接口1也可以有多个,此处仅仅 分别以一个接口举例说明,但并不构成限定。Associating the first routing protocol process with the first forwarding unit is understood to be that the first routing protocol process is only responsible for receiving an interface of the first forwarding unit that has not been added to the first routing protocol process. The obtained routing information is sent out (also called an advertisement) from an interface of the first forwarding unit that is added to the first routing protocol process. For example, as shown in FIG. 1a, the control unit of the vBNG creates the first routing protocol process (such as ospf process 1), and the interface 2 (which is the interface connected to the network side network device) joins the ospf1 (specifically, for example, Add the IP address configured on interface 2 to ospf1, or enable ospf on interface 2 to join the ospf process. The vBNG receives the packet from the user device 1 from the interface 1 (which is not connected to the ospf process 1), and obtains the IP address information of the user device 1 and uses it as the routing information to the ospf process. . The routing information of the user equipment 1 is advertised from the interface 2 to the network device 2 through the ospf process 1. It should be understood that the interface 2 is a network side interface, the interface 1 is a user side interface, the interface 2 may have multiple, and the interface 1 may also have multiple, here only They are illustrated by an interface, but they are not limited.
具体地,所述第一网络设备将所述第一路由协议进程与所述第一转发单元关联可以有以下两种方式。Specifically, the first network device may associate the first routing protocol process with the first forwarding unit in the following two manners.
方式一、所述第一网络设备默认直接把从所述第一转发单元的第一接口接收的用户终端侧的路由信息,引入到所述第一路由协议进程中,所述第一路由协议进程将该路由信息从所述第一转发单元的第二接口向所述第二网络设备发布出去。该方法在第一网络设备的产品开发过程中,在软件中直接编码实现,不需要后续的人工配置操作来参与实现。In a first mode, the first network device directly introduces the routing information of the user terminal side received from the first interface of the first forwarding unit into the first routing protocol process, and the first routing protocol process And routing the routing information from the second interface of the first forwarding unit to the second network device. The method is directly encoded and implemented in the software in the product development process of the first network device, and does not require subsequent manual configuration operations to participate in the implementation.
方式二、所述第一网络设备指示所述第一转发单元将从所述第一接口接收的路由信息设置第一标记,并将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布。Manner 2: The first network device instructs the first forwarding unit to set a first flag from routing information received from the first interface, and import routing information with the first label into the first route Released during the protocol process.
可选地,设置第一标记可以在所述第一网络设备上,通过配置命令来实现。例如,如下命令行指示将slot1(即转发单元1)上收到的用户网络侧路由(英文:user network route,unr)添加标记(英文:tag)100。Optionally, setting the first flag may be implemented on the first network device by using a configuration command. For example, the following command line indicates that the user network route (English: user network route, unr) received on slot 1 (ie, forwarding unit 1) is marked (English: tag) 100.
[vBNG-slot-1]ip unr host-route-tag 100[vBNG-slot-1]ip unr host-route-tag 100
通过设置标记,可以根据用户或网络管理员的需要来选择需要引入到所述第一路由协议进程中的路由信息(例如,可以将转发单元1上收到的所有的或者部分的用户网络侧路由进行引入,当然如果不设置,也可以不引入),实现了按照用户或网络管理员的需要来灵活的控制待引入的路由信息。By setting a flag, routing information that needs to be introduced into the first routing protocol process can be selected according to the needs of the user or the network administrator (for example, all or part of the user network side routes received on the forwarding unit 1 can be routed. The introduction is performed, of course, if it is not set, it may not be introduced. The routing information to be imported is flexibly controlled according to the needs of the user or the network administrator.
进一步,所述第一网络设备创建路由策略,所述路由策略指示如果一条路由信息的标记为第一标记,则满足所述路由策略。所述第一网络设备将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。Further, the first network device creates a routing policy, where the routing policy indicates that the routing policy is satisfied if the marking of one routing information is the first marking. The first network device introduces the routing information that meets the routing policy into the first routing protocol process for publishing.
可选地,创建路由策略可以在所述第一网络设备上,通过配置命令来实现。例如,Optionally, creating a routing policy may be implemented by using a configuration command on the first network device. E.g,
在vBNG的视图下创建路由策略1(英文:policy1):Create routing policy 1 in the vBNG view (English: policy1):
[vBNG]route-policy policy1[vBNG]route-policy policy1
在路由策略1的视图下创建路由策略的匹配标识为tag 100:Create a matching identifier for the routing policy in the view of routing policy 1 as tag 100:
[vBNG-routepolicy-policy1]if-match tag 100[vBNG-routepolicy-policy1]if-match tag 100
在vBNG的ospf进程1的视图下配置,如果一条路由信息匹配上了tag 200,则将该路由信息引入到ospf进程1中:Configured in the view of the ospf process 1 of the vBNG. If a route information matches the tag 200, the route information is imported into the ospf process 1.
[vBNG-ospf-1]import-route unr route-policy policy1[vBNG-ospf-1]import-route unr route-policy policy1
通过创建路由策略来将满足匹配要求的路由信息引入相应的路由协议进程,可以根据用户或网络管理员的需要来选择需要引入到哪一个路由协议进程,实现了按照用户或网络管理员的需要来灵活的控制待引入的路由协议进程,配置管理更灵活。By creating a routing policy to import routing information that meets the matching requirements into the corresponding routing protocol process, you can select which routing protocol process to import based on the needs of the user or network administrator, and implement the requirements according to the needs of the user or network administrator. Flexible control of the routing protocol process to be introduced, and configuration management is more flexible.
将所述第二路由协议进程与所述第二转发单元关联的方法与上述将所述第一路由协议进程与所述第一转发单元关联的方法原理相同,为了简洁,此处不再赘述。The method of associating the second routing protocol with the second forwarding unit is the same as the method for associating the first routing protocol with the first forwarding unit. For brevity, details are not described herein again.
在203部分,所述第一网络设备将从所述第一转发单元的第一接口接收的与所述第一路由协议进程相关联的路由信息从所述第一转发单元的第二接口向所述第二网络设备发布,所述路由信息包括用户设备的IP地址信息。In 203, the first network device receives, from the first interface of the first forwarding unit, routing information associated with the first routing protocol process from a second interface of the first forwarding unit The second network device is released, and the routing information includes IP address information of the user equipment.
如图1a所示,网络设备1将从转发单元1的接口1上收到的用户设备1的路由信息(该用户设备1的路由信息通过202部分的方法已经引入到第一路由协议进程中)从转发 单元1的接口2向网络设备2发布。网络设备2从接口5收到用户设备1的路由信息后,运行第三路由协议进程生成去往用户设备1的转发表项,该转发表项的目的IP地址信息为该用户设备1的IP地址信息,出接口为接口5。从而使网络设备2转发去往用户设备1的数据报文时,仅使用接口5;继而通过链路1,从vBNG的接口2进入vBNG的转发单元1,再从转发单元1的接口1转发出去;实现了收发数据报文在同一个转发单元1上,避免了跨板转发。As shown in FIG. 1a, the network device 1 will receive the routing information of the user equipment 1 from the interface 1 of the forwarding unit 1 (the routing information of the user equipment 1 has been introduced into the first routing protocol process by the method of part 202) From forwarding The interface 2 of the unit 1 is issued to the network device 2. After receiving the routing information of the user equipment 1 from the interface 5, the network device 2 runs a third routing protocol process to generate a forwarding entry destined for the user equipment 1, and the destination IP address information of the forwarding entry is the IP address of the user equipment 1. Information, the outgoing interface is interface 5. Therefore, when the network device 2 forwards the data packet destined for the user equipment 1, only the interface 5 is used; then, through the link 1, from the interface 2 of the vBNG, the forwarding unit 1 of the vBNG is accessed, and then the interface 1 of the forwarding unit 1 is forwarded. The data packet is sent and received on the same forwarding unit 1, avoiding cross-board forwarding.
通过将所述第一路由协议进程与所述第一转发单元关联,实现了将第一转发单元收到的路由仅从第一转发单元的接口发布到网络侧的第二网络设备,从而保证第二网络设备仅能学习到来自第一转发单元的接口发布的路由,从而避免了跨板转发,提高了vBNG的转发性能。By associating the first routing protocol process with the first forwarding unit, the route received by the first forwarding unit is only advertised from the interface of the first forwarding unit to the second network device on the network side, thereby ensuring the first The network device can only learn the routes advertised by the interface from the first forwarding unit, thereby avoiding cross-board forwarding and improving the forwarding performance of the vBNG.
进一步,所述第一网络设备将从所述第二转发单元的第三接口接收的与所述第二路由协议进程相关联的路由信息从所述第二转发单元的第四接口发布出去。Further, the first network device advertises the routing information associated with the second routing protocol process received from the third interface of the second forwarding unit from the fourth interface of the second forwarding unit.
如图1a所示,与上述同理,网络设备1将从转发单元2的接口3上收到的用户设备2的路由信息(该用户设备2的路由信息通过202部分的方法已经引入到第二路由协议进程中)从转发单元2的接口4向网络设备2发布。所述网络设备2从接口6收到用户设备2的路由信息后,运行所述第三路由协议进程(如上述201部分所述,当网络设备2运行一个路由协议进程时)或所述第四路由协议进程(如上述201部分所述,当网络设备2运行两个路由协议进程时)生成去往用户设备2的转发表项,该转发表项的目的IP地址信息为该用户设备2的IP地址信息,出接口为接口6。从而如图1b所示,使网络设备2转发去往用户设备2的数据报文时,仅使用接口6;继而通过链路2,从vBNG的接口4进入vBNG的转发单元2,再从转发单元2的接口3转发出去;实现了收发数据报文在同一个转发单元2上,避免了跨板转发。As shown in FIG. 1a, similarly to the above, the network device 1 will receive the routing information of the user equipment 2 received from the interface 3 of the forwarding unit 2 (the routing information of the user equipment 2 has been introduced to the second through the method of part 202). The routing protocol process is issued from the interface 4 of the forwarding unit 2 to the network device 2. After receiving the routing information of the user equipment 2 from the interface 6, the network device 2 runs the third routing protocol process (as described in section 201 above, when the network device 2 runs a routing protocol process) or the fourth The routing protocol process (as described in section 201 above, when the network device 2 runs two routing protocol processes) generates a forwarding entry destined for the user equipment 2, and the destination IP address information of the forwarding entry is the IP of the user equipment 2 Address information, the outbound interface is interface 6. Therefore, as shown in FIG. 1b, when the network device 2 forwards the data packet destined for the user equipment 2, only the interface 6 is used; then, through the link 2, the interface 4 of the vBNG enters the forwarding unit 2 of the vBNG, and then the forwarding unit The interface 3 of 2 is forwarded out; the data packet sent and received is transmitted on the same forwarding unit 2, and cross-board forwarding is avoided.
通过将每一个转发单元与每一个路由协议进程一一对应关联,实现了将每一转发单元收到的路由仅从该转发单元的接口发布到网络侧的第二网络设备,从而保证第二网络设备仅能学习到来自该转发单元的接口发布的路由,从而避免了跨板转发,提高了vBNG的转发性能。By associating each forwarding unit with each routing protocol in a one-to-one correspondence, the route received by each forwarding unit is only advertised from the interface of the forwarding unit to the second network device on the network side, thereby ensuring the second network. The device can only learn the routes advertised from the interface of the forwarding unit, thus avoiding cross-board forwarding and improving the forwarding performance of the vBNG.
图3为本发明实施例提供的一种vBNG设备的结构示意图。vBNG设备300包括:创建单元302、关联单元304和发送单元306。FIG. 3 is a schematic structural diagram of a vBNG device according to an embodiment of the present invention. The vBNG device 300 includes a creation unit 302, an association unit 304, and a transmission unit 306.
创建单元302,用于创建至少两个路由协议进程,其中一个路由协议进程关联一个转发单元,所述至少两个路由协议进程包括第一路由协议进程。The creating unit 302 is configured to create at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process.
关联单元304,用于将所述第一路由协议进程与所述第一转发单元关联。The association unit 304 is configured to associate the first routing protocol process with the first forwarding unit.
可选地,所述关联单元304用于指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记,并将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布。例如,所述关联单元304可以通过配置命令来完成上述指示进行设置标记的功能。Optionally, the association unit 304 is configured to instruct the first forwarding unit to set a first flag from the routing information received by the first interface, and import routing information with the first tag into the Released in the first routing protocol process. For example, the associating unit 304 may perform the above-described function of setting a flag by a configuration command.
进一步,所述关联单元304将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布具体包括:Further, the associating unit 304, the routing information that has the first label is imported into the first routing protocol process for publishing, specifically includes:
所述关联单元304还用于指示所述创建单元302创建路由策略,所述路由策略指示 如果一条路由信息的标记为第一标记,则满足所述路由策略。The association unit 304 is further configured to instruct the creating unit 302 to create a routing policy, where the routing policy indicates If the marking of a routing information is the first marking, the routing policy is satisfied.
所述关联单元304还用于将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。The association unit 304 is further configured to import the routing information that meets the routing policy into the first routing protocol process for publishing.
发送单元306,用于将从所述第一转发单元的第一接口接收的与所述第一路由协议进程相关联的路由信息从所述第一转发单元的第二接口向所述第二网络设备发布。The sending unit 306 is configured to receive routing information associated with the first routing protocol process from the first interface of the first forwarding unit from the second interface of the first forwarding unit to the second network The device is released.
本发明实施例的vBNG设备300可以实施上述图1a至图2所对应的实施例中的vBNG设备(即第一网络设备)中的各种实施功能和步骤,为了简洁,在此不再赘述。The vBNG device 300 of the embodiment of the present invention may implement various implementation functions and steps in the vBNG device (ie, the first network device) in the embodiment corresponding to the foregoing FIG. 1a to FIG. 2 . For brevity, details are not described herein again.
图4示出了本发明实施例中一种计算机设备的硬件结构图。该计算机设备400用于生成并运行虚拟网络设备。所述虚拟网络设备400用于实现BNG的功能,为vBNG设备。FIG. 4 is a block diagram showing the hardware structure of a computer device in an embodiment of the present invention. The computer device 400 is for generating and running a virtual network device. The virtual network device 400 is used to implement the function of the BNG, and is a vBNG device.
所述计算机设备400包括存储器401、收发器402,以及分别与所述存储器401、收发器402连接的处理器403。所述存储器401用于存储一组程序指令,所述处理器403用于调用所述存储器401存储的程序指令运行多个虚拟机以实现虚拟网络设备中的多个单元。The computer device 400 includes a memory 401, a transceiver 402, and a processor 403 coupled to the memory 401 and the transceiver 402, respectively. The memory 401 is configured to store a set of program instructions, and the processor 403 is configured to invoke program instructions stored by the memory 401 to run a plurality of virtual machines to implement a plurality of units in the virtual network device.
虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。虚拟机部署在硬件设备上(例如,物理服务器)。本领域技术人员通过阅读本申请即可结合NFV技术在通用物理服务器上虚拟出具有上述功能的多个网关设备。此处不再赘述。A virtual machine is a complete computer system that runs through a software and has full hardware system functionality running in a fully isolated environment. The virtual machine is deployed on a hardware device (for example, a physical server). Those skilled in the art can use the NFV technology to virtualize a plurality of gateway devices having the above functions on a general physical server by reading the present application. I will not repeat them here.
在所述处理器403中运行的虚拟机包括转发单元4031、转发单元4032和控制单元4033。其中,控制单元4033是用于实现控制管理功能的虚拟机,转发单元4031和转发单元4032是用于实现数据转发功能的虚拟机。The virtual machine running in the processor 403 includes a forwarding unit 4031, a forwarding unit 4032, and a control unit 4033. The control unit 4033 is a virtual machine for implementing the control management function, and the forwarding unit 4031 and the forwarding unit 4032 are virtual machines for implementing the data forwarding function.
控制单元4033,用于创建至少两个路由协议进程,其中一个路由协议进程关联一个转发单元,所述至少两个路由协议进程包括第一路由协议进程。The control unit 4033 is configured to create at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process.
控制单元4033,还用于将所述第一路由协议进程与所述第一转发单元关联。The control unit 4033 is further configured to associate the first routing protocol process with the first forwarding unit.
可选地,控制单元4033用于指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记,并将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布。例如,控制单元403可以通过配置命令来完成上述指示进行设置标记的功能。Optionally, the control unit 4033 is configured to instruct the first forwarding unit to set a first flag from the routing information received by the first interface, and import routing information with the first tag into the first Released in a routing protocol process. For example, the control unit 403 can complete the above-described function of setting a flag by a configuration command.
进一步,控制单元4033将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布具体包括:Further, the initiating, by the control unit 4033, the routing information that has the first label to be sent to the first routing protocol process for publishing includes:
控制单元4033还用于创建路由策略,所述路由策略指示如果一条路由信息的标记为第一标记,则满足所述路由策略。The control unit 4033 is further configured to create a routing policy, where the routing policy indicates that the routing policy is satisfied if the marking of a piece of routing information is the first marking.
控制单元4033还用于将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。The control unit 4033 is further configured to import the routing information that meets the routing policy into the first routing protocol process for publishing.
收发器4032,用于将从所述第一转发单元的第一接口接收的与所述第一路由协议进程相关联的路由信息从所述第一转发单元的第二接口向所述第二网络设备发布。The transceiver 4032 is configured to receive, from the first interface of the first forwarding unit, the routing information associated with the first routing protocol process from the second interface of the first forwarding unit to the second network. The device is released.
本发明实施例的vBNG设备400可以实施上述图1a至图2所对应的实施例中的vBNG设备(即第一网络设备)中的各种实施功能和步骤。所述控制单元4033用于执 行图3所述vBNG设备的创建单元302和关联单元304的所有操作,所述收发器402用于执行图3所述vBNG设备的发送单元306的所有操作。为了简洁,在此不再赘述。The vBNG device 400 of the embodiment of the present invention may implement various implementation functions and steps in the vBNG device (ie, the first network device) in the foregoing embodiment corresponding to FIG. 1a to FIG. 2 . The control unit 4033 is used to perform All operations of the creating unit 302 and the associating unit 304 of the vBNG device are performed in FIG. 3, and the transceiver 402 is configured to perform all operations of the transmitting unit 306 of the vBNG device of FIG. For the sake of brevity, it will not be repeated here.
在本实施例的第一种可能的实现方式中,在所述处理器403中运行的虚拟机还包括交换单元,交换单元可以是一个执行交换机功能的VM。需要说明的是vBNG设备400中的转发单元之间也可以通过一个硬件的物理交换机来实现数据报文的交换。In a first possible implementation manner of this embodiment, the virtual machine running in the processor 403 further includes a switching unit, and the switching unit may be a VM that performs a switch function. It should be noted that the forwarding units in the vBNG device 400 can also exchange data packets through a hardware physical switch.
需要说明的是,本发明实施例的vBNG设备包括至少两个转发单元和至少一个控制单元,此处的转发单元4031和转发单元4032,以及控制单元4033仅仅是一个举例,并不构成限定。It should be noted that the vBNG device in the embodiment of the present invention includes at least two forwarding units and at least one control unit. Here, the forwarding unit 4031 and the forwarding unit 4032, and the control unit 4033 are merely examples, and are not limiting.
应理解,本领域技术人员在阅读本申请文件的基础上,可以针对本申请实施例中所描述的可选的特征、步骤或方法进行不需要付出创造性的组合,都属于本申请公开的实施例,只是由于描述或行文的简单没有重复赘述不同组合。It should be understood that, based on the reading of the present application, those skilled in the art can make an optional combination of the optional features, steps or methods described in the embodiments of the present application, and belong to the embodiments disclosed in the present application. Just because the description or the simplicity of the text does not repeat the different combinations.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或 者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention is essentially The portion contributing to the prior art or the portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (may be A personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (10)

  1. 一种路由发布的方法,其特征在于,应用于第一网络设备,所述第一网络设备是虚拟宽带网络业务网关,所述第一网络设备与第二网络设备通过两条链路相连,所述第一网络设备包括至少两个转发单元,所述至少两个转发单元包括第一转发单元,所述方法包括:A method for route issuance, which is applied to a first network device, where the first network device is a virtual broadband network service gateway, and the first network device and the second network device are connected by two links. The first network device includes at least two forwarding units, and the at least two forwarding units include a first forwarding unit, and the method includes:
    所述第一网络设备创建至少两个路由协议进程,其中一个路由协议进程关联一个转发单元,所述至少两个路由协议进程包括第一路由协议进程;The first network device creates at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process;
    所述第一网络设备将所述第一路由协议进程与所述第一转发单元关联;The first network device associates the first routing protocol process with the first forwarding unit;
    所述第一网络设备将从所述第一转发单元的第一接口接收的与所述第一路由协议进程相关联的路由信息从所述第一转发单元的第二接口向所述第二网络设备发布。The first network device receives, from the first interface of the first forwarding unit, routing information associated with the first routing protocol process from a second interface of the first forwarding unit to the second network The device is released.
  2. 根据权利要求1所述的方法,其特征在于,所述第一网络设备将所述第一路由协议进程与所述第一转发单元关联包括:The method according to claim 1, wherein the associating the first routing protocol process with the first forwarding unit by the first network device comprises:
    所述第一网络设备指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记,并将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布。The first network device instructs the first forwarding unit to set a first flag from the routing information received from the first interface, and introduce routing information with the first label into the first routing protocol Publish in progress.
  3. 根据权利要求2所述的方法,其特征在于,所述第一网络设备指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记包括:所述第一网络设备通过配置命令指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记。The method according to claim 2, wherein the first network device instructing the first forwarding unit to set the first identifier of the routing information received from the first interface comprises: the first network The device instructs the first forwarding unit to set a first flag from the routing information received by the first interface by using a configuration command.
  4. 根据权利要求2或3所述的方法,其特征在于,所述将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布包括:The method according to claim 2 or 3, wherein the introducing the routing information with the first label into the first routing protocol process for publishing comprises:
    所述第一网络设备创建路由策略,所述路由策略指示如果一条路由信息的标记为第一标记,则满足所述路由策略;The first network device creates a routing policy, where the routing policy indicates that the routing policy is satisfied if the marking of a routing information is the first marking;
    所述第一网络设备将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。The first network device introduces the routing information that meets the routing policy into the first routing protocol process for publishing.
  5. 根据权利要求4所述的方法,其特征在于,所述第一网络设备将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布包括:所述第一网络设备通过配置命令指示将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。The method according to claim 4, wherein the first network device introduces the routing information that satisfies the routing policy into the first routing protocol process for publishing, including: the first network device And the routing information that meets the routing policy is imported into the first routing protocol process for publishing by using a configuration command.
  6. 一种虚拟宽带网络业务网关装置,用作第一网络设备,其特征在于,应用于所述第一网络设备与第二网络设备通过两条链路相连,所述第一网络设备包括至少两个转发单元,所述至少两个转发单元包括第一转发单元,所述装置包括:A virtual broadband network service gateway device is used as the first network device, and is characterized in that the first network device is connected to the second network device by two links, and the first network device includes at least two a forwarding unit, the at least two forwarding units include a first forwarding unit, and the apparatus includes:
    创建单元,用于创建至少两个路由协议进程,其中一个路由协议进程关联一个转发单元,所述至少两个路由协议进程包括第一路由协议进程;a creating unit, configured to create at least two routing protocol processes, where one routing protocol process is associated with one forwarding unit, and the at least two routing protocol processes include a first routing protocol process;
    关联单元,用于将所述第一路由协议进程与所述第一转发单元关联;An association unit, configured to associate the first routing protocol process with the first forwarding unit;
    发送单元,用于将从所述第一转发单元的第一接口接收的与所述第一路由协议进程相关联的路由信息从所述第一转发单元的第二接口向所述第二网络设备发布。a sending unit, configured to receive, from the first interface of the first forwarding unit, the routing information associated with the first routing protocol process from the second interface of the first forwarding unit to the second network device release.
  7. 根据权利要求6所述的装置,其特征在于,所述第一网络设备将所述第一路由协议进程与所述第一转发单元关联包括:The device according to claim 6, wherein the associating the first routing protocol process with the first forwarding unit by the first network device comprises:
    所述关联单元用于指示所述第一转发单元将从所述第一接口接收的所述路由信息设 置第一标记,并将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布。The association unit is configured to instruct the first forwarding unit to set the routing information received from the first interface Setting a first flag, and introducing routing information with the first tag into the first routing protocol process for publishing.
  8. 根据权利要求7所述的装置,其特征在于,所述关联单元用于指示将从所述第一接口接收的所述路由信息设置第一标记包括:所述关联单元通过配置命令指示所述第一转发单元将从所述第一接口接收的所述路由信息设置第一标记。The apparatus according to claim 7, wherein the associating unit is configured to indicate that the routing information received from the first interface is set to a first flag, and the association unit indicates the first A forwarding unit sets the first tag from the routing information received from the first interface.
  9. 根据权利要求7或8所述的装置,其特征在于,所述将具有所述第一标记的路由信息引入到所述第一路由协议进程中进行发布包括:The device according to claim 7 or 8, wherein the introducing the routing information with the first label into the first routing protocol process for publishing comprises:
    所述创建单元用于创建路由策略,所述路由策略指示如果一条路由信息的标记为第一标记,则满足所述路由策略;The creating unit is configured to create a routing policy, where the routing policy indicates that the routing policy is satisfied if the marking of a routing information is the first marking;
    所述关联单元用于将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。The association unit is configured to import the routing information that meets the routing policy into the first routing protocol process for publishing.
  10. 根据权利要求9所述的装置,其特征在于,所述关联单元用于将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布包括:所述关联单元通过配置命令指示将满足所述路由策略的所述路由信息引入到所述第一路由协议进程中进行发布。 The apparatus according to claim 9, wherein the associating unit is configured to introduce the routing information that satisfies the routing policy into the first routing protocol process for publishing, where the association unit is configured by The command indicates that the routing information that meets the routing policy is imported into the first routing protocol process for publishing.
PCT/CN2017/072778 2017-01-26 2017-01-26 Route issuing method and device WO2018137252A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/072778 WO2018137252A1 (en) 2017-01-26 2017-01-26 Route issuing method and device
CN201780084706.2A CN110226307B (en) 2017-01-26 2017-01-26 Method and device for issuing route

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/072778 WO2018137252A1 (en) 2017-01-26 2017-01-26 Route issuing method and device

Publications (1)

Publication Number Publication Date
WO2018137252A1 true WO2018137252A1 (en) 2018-08-02

Family

ID=62977925

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072778 WO2018137252A1 (en) 2017-01-26 2017-01-26 Route issuing method and device

Country Status (2)

Country Link
CN (1) CN110226307B (en)
WO (1) WO2018137252A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554176A (en) * 2015-12-29 2016-05-04 华为技术有限公司 Method and device for sending message and communication system
CN105610632A (en) * 2016-02-14 2016-05-25 华为技术有限公司 Virtual network device and related method
CN105634956A (en) * 2015-12-31 2016-06-01 华为技术有限公司 Message forwarding method, device and system
US20160301593A1 (en) * 2015-04-13 2016-10-13 Ciena Corporation Scalable broadband metro network architecture

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674221A (en) * 2008-09-09 2010-03-17 中国移动通信集团公司 Static routing generation method, method and device for implementing terminal routing
CN101459630B (en) * 2008-12-08 2010-12-08 福建星网锐捷网络有限公司 IGP routing method and apparatus
CN101902391B (en) * 2010-03-15 2013-01-16 杭州华三通信技术有限公司 Intelligent static route based method and equipment for forwarding messages
CN106357433B (en) * 2016-08-30 2019-11-29 上海寰创网络科技有限公司 A kind of implementation method of the more WAN mouthfuls of gateways of reality interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160301593A1 (en) * 2015-04-13 2016-10-13 Ciena Corporation Scalable broadband metro network architecture
CN105554176A (en) * 2015-12-29 2016-05-04 华为技术有限公司 Method and device for sending message and communication system
CN105634956A (en) * 2015-12-31 2016-06-01 华为技术有限公司 Message forwarding method, device and system
CN105610632A (en) * 2016-02-14 2016-05-25 华为技术有限公司 Virtual network device and related method

Also Published As

Publication number Publication date
CN110226307A (en) 2019-09-10
CN110226307B (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN110784411B (en) Method, device and system for establishing BIER forwarding table item
CN109873760B (en) Method and device for processing route, and method and device for data transmission
WO2019223447A1 (en) Routing generation method and device
CN105264493B (en) Dynamic virtual machine migration on information centre's network
US11115328B2 (en) Efficient troubleshooting in openflow switches
US8830998B2 (en) Separation of edge and routing/control information for multicast over shortest path bridging
EP3641245B1 (en) Service routing packet processing method and apparatus, and network system
CN108964940B (en) Message sending method and device and storage medium
CN106209553A (en) Message processing method, equipment and system
US11165693B2 (en) Packet forwarding
EP3420687B1 (en) Addressing for customer premises lan expansion
US11706140B2 (en) Packet forwarding method and network device
US20210359879A1 (en) Packet forwarding method and network device
CN107547665A (en) A kind of method, equipment and the system of dhcp address distribution
CN104796338A (en) Migration method and device of virtual machines
CN104780090B (en) Method, apparatus, the PE equipment of VPN multicast transmissions
CN110431827A (en) Distributed network gate framework is realized using location identifier separated protocol to be used for 3GPP mobility
WO2018193285A1 (en) Method and apparatus for enabling a scalable multicast virtual private network service across a multicast label distribution protocol network using in-band signaling
US10171346B2 (en) Method, apparatus and system for transmitting information
KR102455367B1 (en) Packet transmission method, apparatus and system, and storage medium
CN108768845B (en) Multi-homing host routing synchronization method and device
WO2018028592A1 (en) Method and device for receiving and sending messages
WO2020152691A1 (en) Multi-network internet protocol version 6 (ipv6) duplicate address detection using ethernet virtual private network (evpn)
WO2018137252A1 (en) Route issuing method and device
EP3902211A1 (en) Packet forwarding method and network device

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: 17894642

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: 17894642

Country of ref document: EP

Kind code of ref document: A1