CN101610215A - Route forwarding method and gateway equipment - Google Patents

Route forwarding method and gateway equipment Download PDF

Info

Publication number
CN101610215A
CN101610215A CN 200910089709 CN200910089709A CN101610215A CN 101610215 A CN101610215 A CN 101610215A CN 200910089709 CN200910089709 CN 200910089709 CN 200910089709 A CN200910089709 A CN 200910089709A CN 101610215 A CN101610215 A CN 101610215A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
net
route
interface
board
inner
Prior art date
Application number
CN 200910089709
Other languages
Chinese (zh)
Other versions
CN101610215B (en )
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

Links

Abstract

The invention discloses a route forwarding method, comprising the following steps: outer net route information is sent to an ascending interface board, inner net route information is simultaneously sent to the ascending interface board and a descending interface board, and a default route to the ascending interface board is configured on the descending interface board; for business flow by which the inner net accesses the inner net, the descending interface board is forwarded according to the self inner net route information; for business flow by which the outer net accesses the outer net, the descending interface board can not find corresponding next route information in self inner net route information, the business flow is forwarded to the ascending interface board according to the default route, and then is forwarded by the ascending interface board according to the outer net route information; for the business flow by which the outer net accesses the inner net, the ascending interface board forwards the business flow according to the inner net route information. The invention also discloses gateway equipment. The technical proposal of the invention can avoid waste of resources and reduce cost.

Description

一种路由转发方法和一种网关设备 A route forwarding method and a gateway device

[0001] 技术领域 [0001] Technical Field

[0002] 本发明涉及网络通信技术领域,尤指一种路由转发方法和一种网关设备。 [0002] The present invention relates to network communication technologies, and more particularly to a method and a gateway routing forwarding apparatus.

[0003] 背景技术 [0003] BACKGROUND OF THE INVENTION

[0004] 在现有技术中,由于网关设备是私网用户访问外部网络以及外部网络访问私网的桥梁,因此网关设备上需要学习内网路由以及外网路由。 [0004] In the prior art, since the gateway device is a private network user to access an external network and an external network access bridge private network, it is necessary to learn the network by the external network and the gateway device.

[0005] 图1是现有技术中的网关设备的一个典型组网示意图。 [0005] FIG. 1 is a schematic view of a typical network gateway device of the prior art. 如图1所示,交换机A作为企业网的网关,有多条路径接入到互联网(Internet),从互联网学习到了大量路由,这些路由不会引入到内网去。 As shown in FIG. 1, switch A gateway as enterprise networks, multiple paths to access the Internet (the Internet), learned from the Internet to a large number of routes, the routes do not go into the network. 所有内网访问因特网的流量都通过交换机A进行转发。 All network traffic access to the Internet are forwarded through the switch A. 在现有技术中,交换机A上的所有接口板上都需要配置相同的内网路由信息和外网路由信息,即所有接口板上的路由表是相同的。 In the prior art, all interfaces on the switch board A must be configured by the same information and the network information by the external network, i.e., all the interface board routing table are the same. 具体来说,交换机A上的与互联网连接的上行接口板以及与内部(与交换机B和交换机C连接)连接的各下行接口板都需要支持包括内网路由和外网路由的大规模路由,因此,交换机A上整机都使用高规格的接口板,例如,一般都配置所有的接口板为支持1M路由的高规格接口板。 Specifically, the uplink interface board connected to the Internet on the downlink as well as the switch A is connected to the internal interface board (connected to the switch B and switch C) are required to support the routing network comprises a large-scale network by the outer and therefore , a switch machine uses high-interface board, e.g., usually all of the interface board arranged high-1M routing interface cards.

[0006] 但是在实际的企业网中,通常上行需要支持大规模的路由,而下行接入的路由较少。 [0006] However, in an actual enterprise network, typically the uplink need to support large scale routing, and less downlink access routes. 这样,按照现有的网关设备整机配置高规格接口板的方案,存在资源浪费,且整体使用成本过高的情况。 Thus, the configuration according to the conventional high-gateway machine program interface board, waste of resources, and to high cost of the overall situation.

[0007] 发明内容 [0007] SUMMARY OF THE INVENTION

[0008] 本发明提供了一种路由转发方法,该方法能够避免资源的浪费,降低成本。 [0008] The present invention provides a routing method for forwarding, which can avoid waste of resources and reduce costs.

[0009] 本发明还提供了一种网关设备,该网关设备能够避免资源浪费,降低成本。 [0009] The present invention further provides a gateway device, the gateway device can avoid wasting resources and reduce costs.

[0010] 为达到上述目的,本发明的技术方案具体是这样实现的: [0010] To achieve the above object, the technical solution of the present invention is specifically implemented as follows:

[0011] 本发明公开了一种路由转发方法,该方法适用于通过下行接口板连接内网以及通过上行接口板连接外网的网关设备,将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上,并在下行接口板上配置到上行接口板的默认路由,该方法包括: [0011] The present invention discloses a routing method for forwarding, the method is applicable to the network via the downstream connection and the connection interface board external network gateway device through an uplink interface board, the information is sent by the external network up to the interface board, and the information within the network at the same time issued by the interface board to the upstream and downstream interface board, and a downlink interface board configured default route to the uplink interface board, the method comprising:

[0012] 对于内网访问内网的业务流,下行接口板根据自身的内网路由信息进行转发; [0012] Access to the network traffic flow within the network, forwarded by the downlink interface board in the network based on its own;

[0013] 对于内网访问外网的业务流,下行接口板在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板,再由上行接口板根据外网路由信息进行转发; [0013] For the corresponding next hop information of visited network outside the network traffic flow, the downstream interface board can not be found by the information in the own network, forwarding the uplink according to the default route to the interface board, and then the uplink interface board The information forwarded by the external network;

[0014] 对于外网访问内网的业务流,上行接口板根据内网路由信息进行转发。 [0014] For access to the external network traffic flow within the network, the uplink interface board according to the information forwarded by the network.

[0015] 本发明还公开了一种网关设备,该网关设备包括:连接内网的下行接口板、连接外网的上行接口板和路由处理单元,其中, [0015] The present invention also discloses a gateway device, the gateway device comprising: a network connection interface board downlink, external network connection interface board and an uplink routing processing unit, wherein,

[0016] 路由处理单元,用于将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上,并在下行接口板上配置到上行接口板的默认路由; [0016] The routing processing unit, for the information sent by the external network up to the interface board, while the network will send the information to the uplink while the downlink interface board and the interface board, and the uplink downlink configuration interface board Interface board default route;

[0017] 下行接口板,用于在接收到内网访问内网的业务流时,板根据自身的内网路由信息进行转发;用于在接收到内网访问外网的业务流时,在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板; [0017] The downlink interface board upon receiving the traffic flow within the network of the visited network, according to information forwarded by the board within its own network; when receiving the traffic flow within the network access the external network, the own in the network can not find the corresponding next hop information by the information is forwarded to uplink interface board according to a default route;

[0018] 上行接口板,用于在接收到下行接口板发送的业务流时,根据外网路由信息进行转发;用于在接收到外网访问内网的业务流时,根据内网路由信息进行转发。 [0018] Up interface board, when receiving the downlink interface board service stream transmitted according to the external network for forwarding information; when receiving the traffic flow within the network to access the external network, according to the information by the network forwarding.

[0019] 由上述技术方案可见,本发明这种将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上,并在下行接口板上配置到上行接口板的默认路由;对于内网访问内网的业务流,下行接口板根据自身的内网路由信息进行转发;对于内网访问外网的业务流,下行接口板在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板,再由上行接口板根据外网路由信息进行转发;对于外网访问内网的业务流,上行接口板根据内网路由信息进行转发的技术方案,由于下行接口板只需要支持少量的内网路由即可,因此可以采用比上行接口板规格低的接口板,这与现有技术中的所有接口板采用相同的高规格的接口板相比,避免了资源的浪费,并降低了成本。 [0019] can be seen from the above technical solutions, the present invention is that the information sent by the external network to the uplink interface board and the network will send the information to the uplink while the downlink interface board and the interface board, and the downstream interface board configuration default route to the uplink interface board; for traffic flow within the network to access the network, the downlink interface board forwarded based on its own internal network; for network access network traffic flow, the downstream interface board in itself network can not find the information from the corresponding next hop information is forwarded to uplink interface board according to the default route, and then forwards the information from the external network according to an uplink interface board; for access outside the network traffic flow within the network, uplink interface plate by the forwarding information according to the aspect of the network, since the downlink interface board only need to support a small number of the network can thus be used is lower than the uplink interface board specifications of the interface board, which interfaces with all of the prior art plate compared with the same high standard interface board, to avoid the waste of resources, and reduce costs.

[0020] 附图说明 [0020] BRIEF DESCRIPTION OF DRAWINGS

[0021] 图1是现有技术中的网关设备的一个典型组网示意图; [0021] FIG. 1 is a schematic view of a typical network gateway device of the prior art;

[0022] 图2是本发明实施例一种路由转发方法的流程图; [0022] FIG. 2 is a flow diagram embodiment of a routing forwarding method embodiment of the present invention;

[0023] 图3是本发明实施例一种网关设备的组成结构框图。 [0023] FIG. 3 is a block diagram showing the composition of Example A gateway device of the embodiment of the present invention.

[0024] 具体实施方式 [0024] DETAILED DESCRIPTION

[0025] 图2是本发明实施例一种路由转发方法的流程图。 [0025] FIG 2 is a flowchart of the embodiment of a routing forwarding method embodiment of the present invention. 该方法适用于通过下行接口板连接内网以及通过上行接口板连接外网的网关设备,如图2所示该方法包括: This method is applicable to the downstream connection through the network interface board and the external gateway device connected to the network via an uplink interface board, the method 2 comprising:

[0026] 201,将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上,并在下行接口板上配置到上行接口板的默认路由。 [0026] 201, the information is sent by the external network up to the interface board, while the network will send the information to the uplink while the downlink interface board and the interface board, and a downlink interface board configured to default upstream interface board routing.

[0027] 本步骤中,可以通过指定特定的接口为公网接口,则从此接口学习到的路由即为外网路由(或称为Internet路由),而从公网接口以外的其他接口学习到的路由即为内网路由。 [0027] In this step, the interface may be specific to the public network interface, this interface is learned by the route that is specified by the external network (or Internet routing), other than the public network interface from other interfaces learned routing is the internal routes. 用户可以根据网络规划,自行通过配置命令或者其他方式指定公网接口,以保证该公网接口所学习到的路由是外网路由。 The network users can plan their own public network interface specified by the configuration command or other means, to ensure that the public network interface to route is learned by the external network. 此外,还可以指定特殊的路由协议来标识不同路由的处理,例如根据指定的边界网关协议(BGP,Border Gateway Protocol)所得到的路由为外网路由,而根据其他协议所得到的路由为内网路由等,当然用户根据网络规划,通过配置命令或其他方式来指定特殊的路由协议,以保证该特殊的路由协议所得到的路由是外网路由。 In addition, you can specify a particular routing protocol to identify process different routes, for example according to the specified border gateway protocol (BGP, Border Gateway Protocol) of the obtained route for external routes, and according to other protocols of the obtained routing within the network routing, of course, the user according to the network plan, by using commands or other means to specify a particular routing protocol, to ensure that the special routing protocol routing is obtained by the external network. 外网路由只下发到上行接口板上,而内网路由则需要下发到上行接口板和下行接口板。 Issued only by the external network up to the interface board and the network is required by the interface boards delivered to the uplink and downlink interface board.

[0028] 202,对于内网访问内网的业务流,下行接口板根据自身的内网路由信息进行转发。 [0028] 202, the traffic flow within the network to access the network, forwarded by the downlink interface board based on its own internal network.

[0029] 本步骤中,在内网中用户相互访问时,只需要在下行接口板转发即可。 [0029] In this step, when the internal network users to access each other, only it needs to be forwarded to the downlink interface board.

[0030] 203,对于内网访问外网的业务流,下行接口板在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板,再由上行接口板根据外网路由信息进行转发。 [0030] 203, for the respective next hop information of visited network outside the network traffic flow, the downstream interface board can not be found by the information in the own network, forwarding the uplink according to the default route to the interface board, and then the uplink Interface board according to information forwarded by the external network.

[0031] 204,对于外网访问内网的业务流,上行接口板根据内网路由信息进行转发。 [0031] 204, for access outside the network traffic flow within the network, the uplink interface board according to the information forwarded by the network.

[0032] 在图2所示的方案中,由于下行接口板只需要支持少量的内网路由即可,因此可以采用比上行接口板规格低的接口板,这与现有技术中的所有接口板采用相同的高规格的接口板相比,避免了资源的浪费,并降低了成本。 [0032] In the embodiment shown in FIG. 2, since the downlink interface board only need to support a small number of the network can thus be used is lower than the uplink interface board specifications of the interface board, which interfaces with all of the prior art plate compared with the same high standard interface board, to avoid the waste of resources, and reduce costs.

[0033] 下面以图1所示组网为例,对图2所示方法进行进一步的说明。 [0033] In the following an example the network shown in FIG. 1, a method as shown in FIG. 2 is further described.

[0034] 在图1中,作为网关设备的交换机A包括:一个与互联网连接上行接口板和两个分别与交换机B和交换机C连接的下行接口板,其中上行接口板采用性能参数高于某个第一预设值的高规格接口板,而两个下行接口板均采用性能参数低于某个第二预设值的低规格接口板,这里第一预设值和第二预设值可以相同,也可以不相同。 [0034] In Figure 1, a switch A gateway device comprising: an interface board connected to the downstream and the upstream interface boards are connected to two switch B and switch C to the Internet, wherein the interface board using the uplink performance parameters above a certain a first high-value preset interface board, and two downstream plate to use a certain performance parameter is below the second preset value lower interface board specifications, where a first predetermined value and the second predetermined value may be the same It may not be the same. 交换机A将学习到的互联网路由信息(即外网路由信息)下发到上行接口板,将学习到的内网路由信息下发到包括上行接口板和下行接口板的所有的三个接口板上,并在两个下行接口板上分别配置到上行接口板的默认路由。 A switch will learn the Internet routing information (i.e., the outer web information) issued up to the interface board, to learn the information delivered by the network to the interface board includes uplink and downlink of all three interface board interface board and interface board are disposed two downlink to uplink interface board default route. 在IPv6或IPv4组网下默认路由的配置方式可以如表1所示: Default route in the IPv4 or IPv6 network configuration may be as shown in Table 1:

[0035] [0035]

[0036] 表1 [0036] TABLE 1

[0037] 则图1中的交换机A对各种业务流的路由转发如下: Routing [0037] FIG. 1 is a switch A variety of forwarding a traffic flow as follows:

[0038] (1)内网访问内网的业务流 Traffic within the access network [0038] (1) flow within the network

[0039] 由于每个下行接口板上都配置了内网的路由信息,因此当下行接口板接收到内网访问内网的业务流时,可以根据自身的内网路由信息转发该业务流即可。 When [0039] Since each downlink interface board are configured routes within the network, thus the interface board receives the downlink traffic flow within the network to access the network, according to their traffic flow within the network can be forwarded by the information .

[0040] (2)内网访问互联网的业务流 Internet Access [0040] (2) within the network traffic flow

[0041] 当下行接口板接收到内网访问互联网的业务流时,由于下行接口板上没有配置互联网路由信息,因此只能匹配到默认路由上,将该业务流转发到上行接口板,再由上行接口板根据自身上的路由信息进行三层转发,将业务流转发到正确的互联网下一跳上去。 When [0041] the interface board receives the downlink to the network to access the Internet traffic flow, since no downlink interface board Internet routing information configuration, so only the default route to the match, the upstream traffic stream to the interface board, and then by Layer 3 forwarding the uplink interface board, the service flow sent to the correct Internet-hop routing information up on itself.

[0042] (3)互联网访问内网的业务流 Traffic flow [0042] (3) within the Internet access network

[0043] 当上行接口板接收到来自互联网的访问内网的业务流时,根据自身保存的外网路由信息和内网路由信息表项进行转发即可。 [0043] When the interface board receives the uplink traffic flow within the network access from the Internet, according to the external network stored in itself to the forwarded entries and the information from the network.

[0044] 由上述实施例可以看出,本发明的技术方案提供了一种路由接口板混插的解决方案,使得高规格的接口板和低规格的接口板共存同一设备中,并以高规格接口板的路由规格工作。 [0044] As can be seen from the above embodiments, the technical solutions of the present invention provides a routing interface board mixed into solution, so that the high-low interface board and the interface board specifications to coexist in the same device, and to a high standard routing specification work interface board.

[0045] 在上述实施例中,内网到互联网的业务流报文均经过接互联网的上行接口板集中转发,因此导致上行接口板的转发负荷较大。 [0045] In the above embodiment, the intranet to the Internet through service flow packets are Internet access centralized forwarding the uplink interface board, thus resulting in forwarding the uplink interface board load is large. 在本发明实施例中,根据用户的使用情况,增加适当数量的其他上行接口板共同承担流量的转发,并使用预设的负载分担策略,如等价路由方式等,让内网到互联网的业务流报文,分担到不同的上行接口板上,以下具体说明: In an embodiment of the present invention, according to the user's usage, add the appropriate amount of the other uplink shared forward traffic interface board, and to use the default load balancing strategy, such as the equivalent routing, so that the network traffic to the Internet stream message, to different uplink shared interface board, the following details:

[0046] 例如,当增加一个上行接口板,即存在两个上行接口板时:两个上行接口板上都需要配置外网路由和内网路由,且每一个下行接口板上配置的默认路由都对应于所述两个上行接口板;当下行接口板接收到内网到外网的业务流时,可以根据等价路由方式,在两个上行接口板之间实现负载分担。 [0046] For example, when an uplink interface board increases, i.e., there are two uplink interface board: two plates are uplink interfaces need to be configured from the external network and the internal network, and each downstream interface board configured default routes two corresponding to the uplink interface board; interface board receives the downlink to the traffic flow within the network outside the network, according to routing equivalents, uplink interfaces between two boards to achieve load balancing. 例如,上一个匹配到默认路由的业务流转发到上行接口板1,则下一个匹配到默认路由的业务流就转发到上行接口板2,如此交替进行。 For example, to match the default route traffic stream to an upstream interface board, then the next match to the default route traffic streams forwarded to uplink interface board 2, and so on alternately.

[0047] 此外,还可以根据用户的需求调整每个上行接口板的负荷分担比例。 [0047] In addition, the user may need to adjust the sharing ratio of each uplink load in accordance with the interface board. 具体为:在下行接口板上配置具有多个下一跳的默认路由,其中,每一个上行接口板都对应于所述默认路由的一个以上的下一跳;对于内网访问外网的业务流,下行接口板在自身的内网路由信息中找不到相应的下一跳路由信息,则匹配到默认路由,根据预设策略从默认路由的多个下一跳中选择一个下一跳,将业务流转发到所选择的下一跳所对应的上行接口板。 Specifically: the downlink interface board configured with a plurality of default route next hop, wherein each uplink interface board corresponds to the default next-hop routing one or more; for network service access network stream , no corresponding downlink interface board next hop information by the information in the network itself, matched to the default route, selecting a next hop from the plurality of default next hop according to a preset strategy, service flow sent to the next hop corresponding to the selected uplink interface board.

[0048] 仍以两个上行接口板为例,两个上行接口板上都需要配置外网路由和内网路由,且每一个下行接口板上配置的默认路由都对应于所述两个上行接口板。 [0048] still two upstream interface board, for example, two uplink interface board will need to be configured from the external network and the internal network, and the default routing configuration of each downlink interface board corresponds to the two uplink interfaces board. 本例中需要上行接口板1分担1/4的流量,上行接口板2分担3/4的流量,则可以通过在下行接口板上下发具有4个下一跳的默认路由实现,4个下一跳中的一个为上行接口板1,其他3个均为上行接口2,如表2所示: This embodiment requires balancing flow upstream interface board 1 1/4, 2 share the traffic uplink interface board 3/4, may be made by having four next hop default route achieved at the downlink interface board, the next 4 jump one as an uplink interface board 1, the other three are uplink interface 2, as shown in table 2:

[0049] [0049]

[0050] 表2 [0050] TABLE 2

[0051] 则基于表2所示的默认路由配置,当下行接口板接收到内网到外网的业务流时,匹配到默认路由,且该默认路由具有4个下一跳,则根据预设的均衡策略,如等价路由方式等,从4个下一跳中选择一个下一跳进行转发。 [0051] shown in Table 2 are based on a default routing configuration, the interface board receives the downlink to the traffic flow within the network outside the network, to match the default route, and the default route having four next hop according to the preset the balancing policy routing and other such equivalents, four next hop from a selected next hop forwarding.

[0052] 基于上述实施例给出一种如图3所示的网关设备的组网结构。 [0052] to give a network structure of the gateway device shown in Figure 3 based on the above embodiments. 该网关设备可以汇聚层或核心层的网关设备,也可以是接入层的网关设备。 The gateway device may aggregation or core layer gateway device, the gateway device may be an access layer.

[0053] 图3是本发明实施例一种网关设备的组成结构框图。 [0053] FIG. 3 is a block diagram showing the composition of Example A gateway device of the embodiment of the present invention. 如图3所示,该网关设备包括:连接内网的下行接口板301、连接外网的上行接口板302和路由处理单元303,其中: 3, the gateway apparatus comprising: the network is connected downstream interface board 301, connected to the external network interface board 302, and an uplink routing processing unit 303, wherein:

[0054] 路由处理单元303,用于将外网路由信息下发到上行接口板302上,而将内网路由信息同时下发到上行接口板302和下行接口板上301,并在下行接口板301上配置到上行接口板302的默认路由; [0054] The routing processing unit 303 is configured by the outer network information is sent to the upstream interface board 302, and the network will send the information to the simultaneous uplink and downlink interface board 302 interface board 301, and the downstream interface board configure a default route on the upstream interface 301 of the plate 302;

[0055] 下行接口板301,用于在接收到内网访问内网的业务流时,根据自身的内网路由信息进行转发;用于在接收到内网访问外网的业务流时,在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板302; [0055] The downlink interface board 301, when receiving the traffic flow within the network to access the network, the network according to their forwards the information; when receiving the traffic flow within the network access the external network, the own in the network can not find the corresponding next hop information by the information is forwarded to uplink interface board 302 according to a default route;

[0056] 上行接口板302,用于在接收到下行接口板发送的业务流时,根据自身的外网路由信息进行转发;用于在接收到外网访问内网的业务流时,根据自身的内网路由信息进行转发。 [0056] Uplink interface board 302, upon receiving a service flow sent by downlink interface board, according to its outer forwarded by the network information; means for receiving a traffic flow within the network of external network access, according to its own forwarded by the information within the network.

[0057] 如图3所示,该网关设备包括多个下行接口板301和两个以上的上行接口板302,其中, [0057] As shown in FIG. 3, the apparatus comprises a plurality of gateway downlink interface boards 301 and two or more uplink interface board 302, wherein

[0058] 每一个下行接口板301,用于根据预设的负载分担策略将内网访问外网的不同业务流转发到不同的上行接口板302。 [0058] Each downlink interface board 301, for sharing strategy according to preset load stream to different uplink interface board 302 different service access network of the network.

[0059] 在图3中,路由处理单元303,用于在每个下行接口板301上配置具有多个下一跳的默认路由,其中,每一个上行接口板302都对应于所述默认路由的一个以上的下一跳; [0059] In Figure 3, the routing processing unit 303, configured with a default route for a plurality of next hop on each downstream interface boards 301, wherein each uplink interface board 302 corresponds to the default route one or more next hop;

[0060] 下行接口板301,用于在接收到内网访问外网的业务流时,在自身的内网路由信息中找不到相应的下一跳路由信息,则匹配到默认路由,根据预设策略从默认路由的多个下一跳中选择一个下一跳,将业务流转发到所选择的下一跳所对应的上行接口板302。 [0060] The downlink interface board 301, when receiving the traffic flow within the network access the external network, no corresponding next hop information by the information in the network itself, matched to the default route, according to the pre selecting a next hop set policy, forwarding the traffic to the next hop corresponding to the uplink interface board 302 of the selected default route traffic from a plurality of next hops.

[0061] 在图3中,所述路由处理单元303,用于将特定接口指定为公网接口,将从公网接口学习到的路由确定为外网路由,将从公网接口以外的其他接口学习到的路由确定为内网路由;或者,所述路由处理单元303,用于指定特定路由协议,将根据该特定路由协议所得到的路由确定为外网路由,将根据该特定路由协议以外的其他路由协议所得到的路由确定为内网路由。 [0061] In Figure 3, the routing processing unit 303, for a particular interface as the public network interface, public network interface is determined from the route is learned from the external network, other than the interface from the public network interface learn the routes determined by the network; or the routing processing unit 303 for specifying a particular routing protocol, as determined according to the route to the external network specific routing protocols obtained by, according to the particular routing protocol other than other routing protocols obtained by the routes determined to the network.

[0062] 在图3中,所述上行接口板302为性能参数高于预设值的高规格接口板;所述下行接口板301为性能参数低于预设值的低规格接口板。 [0062] In FIG. 3, the uplink interface board 302 is the performance parameter value higher than a preset high-interface board; downlink interface board 301 is the performance parameter is below a preset value, the low interface board specifications.

[0063] 综上所述,本发明这种将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上,并在下行接口板上配置到上行接口板的默认路由;对于内网访问内网的业务流,下行接口板根据自身的内网路由信息进行转发;对于内网访问外网的业务流,下行接口板在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板,再由上行接口板根据自身的外网路由信息进行转发;对于外网访问内网的业务流,上行接口板根据自身的内网路由信息进行转发的技术方案,由于下行接口板只需要支持少量的内网路由即可,因此可以采用比上行接口板规格低的接口板,这与现有技术中的所有接口板采用相同的高规格的接口板相比,避免了资源的浪费,并降低了成本。 [0063] In summary, the present invention is that the information sent by the external network to the uplink interface board and the network will send the information to the uplink while the downlink interface board and the interface board, and the downstream interface board configure the default route upstream interface board; for traffic flow within the network to access the network, the downlink interface board forwarded based on its own internal network; for external network access to network traffic flow, the downstream interface board in its own network not found in the routing information corresponding to the next hop routing information, forwarding the uplink according to the default route to the interface board, and then forwards the information from the uplink network interface board according to their outside; extranet traffic flow for access to the network, the uplink Interface board according to its own internal network forwarding information by the technical solution, since the downlink interface board only need to support a small number of the network can thus be used is lower than the uplink interface board specifications of the interface board, which the prior art All interface boards using the same high-standard interface board compared to avoid the waste of resources, and reduce costs.

[0064] 为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举较佳实施例,对本发明进一步详细说明。 [0064] To make the objectives, technical solutions and advantages of the present invention will become more apparent, preferred embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

[0065] 以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 [0065] The above are only preferred embodiments of the present invention but are not intended to limit the scope of the present invention, where any modifications within the spirit and principle of the present invention, equivalent substitutions, improvements, It should be included within the scope of the present invention.

Claims (10)

  1. 1、一种路由转发方法,该方法适用于通过下行接口板连接内网以及通过上行接口板连接外网的网关设备,其特征在于,将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上,并在下行接口板上配置到上行接口板的默认路由,该方法包括: A routing forwarding method, the method is applicable to the network via the downstream connection and the connection interface board via the external network gateway uplink interface board, wherein the external network to the information sent by the uplink interface board and the while the network information issued by the interface board to the upstream and downstream interface board, and a downlink interface board configured default route to the uplink interface board, the method comprising:
    对于内网访问内网的业务流,下行接口板根据自身的内网路由信息进行转发; For traffic flow within the network to access the network, forwarded by the downlink interface board in the network based on its own;
    对于内网访问外网的业务流,下行接口板在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板,再由上行接口板根据外网路由信息进行转发; For intranet access network traffic flow, no corresponding downlink interface board next hop information from the information in its own internal network, forwarding the uplink according to the default route to the interface board, and then the uplink according to the external network interface board routing information for forwarding;
    对于外网访问内网的业务流,上行接口板根据内网路由信息进行转发。 For traffic flow within the network access outside the network, the uplink interface board according to the information forwarded by the network.
  2. 2、如权利要求1所述的方法,其特征在于,当有两个以上的上行接口板时,下行接口板根据预设的负载分担策略将内网访问外网的不同业务流转发到不同的上行接口板。 2. The method as claimed in claim 1, wherein, when more than two interface boards uplink, downlink interface board according to a preset load balancing policy to the network traffic to a different external network access different services of uplink interface board.
  3. 3、如权利要求2所述的方法,其特征在于,所述下行接口板根据预设的负载分担策略将内网访问外网的不同业务流转发到不同的上行接口板包括: 3. The method according to claim 2, wherein said interface board downlink sharing strategy according to preset load different traffic flow within the network is sent to the access network different uplink interface board comprising:
    在下行接口板上配置具有多个下一跳的默认路由,其中,每一个上行接口板都对应于所述默认路由的一个以上的下一跳; Disposed downstream interface board having a plurality of default route next hop, wherein each uplink interface board corresponds to the default route of the one or more next hop;
    对于内网访问外网的业务流,下行接口板在自身的内网路由信息中找不到相应的下一跳路由信息,则匹配到默认路由,根据预设策略从默认路由的多个下一跳中选择一个下一跳,将业务流转发到所选择的下一跳所对应的上行接口板。 For intranet access network traffic flow, no corresponding downlink interface board next hop information by the information in the network itself, matched to the default route, according to a preset policy routing from a next of the plurality of default hop select a next hop, the traffic flow is sent to the next hop corresponding to the selected uplink interface board.
  4. 4、如权利要求1所述的方法,其特征在于,该方法在将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上之前进一步包括: 4. The method as claimed in claim 1, characterized in that the method prior to the outer network to the information delivered by the upstream interface board and the network will send the information to the uplink while the downlink interface board and the interface board further including:
    将特定接口指定为公网接口,将从公网接口学习到的路由确定为外网路由,将从公网接口以外的其他接口学习到的路由确定为内网路由; A particular interface as the public network interface, public network interface from the learned routes determined by the external network, the interface is determined from the learned routes other than the interface from the network within the public network;
    或者,指定特定路由协议,将根据该特定路由协议所得到的路由确定为外网路由,将根据该特定路由协议以外的其他路由协议所得到的路由确定为内网路由。 Alternatively, specify a particular routing protocol, the route is determined in accordance with the particular routing protocols obtained from the external network, the network will be determined by the routing according to the routing protocol other than the particular routing protocol is obtained.
  5. 5、如权利要求1至4中任一项所述的方法,其特征在于, 5. A method as claimed in any one of claims 1 to 4, characterized in that,
    所述上行接口板为高规格接口板; The high-uplink interface board interface board;
    所述下行接口板为低规格接口板。 The interface board is a low downlink interface board specifications.
  6. 6、一种网关设备,其特征在于,该网关设备包括:连接内网的下行接口板、连接外网的上行接口板和路由处理单元,其中, 6. A gateway, wherein the gateway device comprises: connecting the downstream network interface board, the external network connection interface board and an uplink routing processing unit, wherein,
    路由处理单元,用于将外网路由信息下发到上行接口板上,而将内网路由信息同时下发到上行接口板和下行接口板上,并在下行接口板上配置到上行接口板的默认路由; Routing processing unit, for the information delivered by the external network up to the interface board, while the network will send the information to the uplink while the downlink interface board and the interface board, and a downlink interface board configured to uplink interface board default route;
    下行接口板,用于在接收到内网访问内网的业务流时,板根据自身的内网路由信息进行转发;用于在接收到内网访问外网的业务流时,在自身的内网路由信息中找不到相应的下一跳路由信息,则根据默认路由转发到上行接口板; Downlink interface board upon receiving the traffic flow within the network of the visited network, according to information forwarded by the board within its own network; when receiving the traffic flow within the network access the external network, in the network itself not found in the routing information corresponding to next hop information is forwarded to uplink interface board according to a default route;
    上行接口板,用于在接收到下行接口板发送的业务流时,根据外网路由信息进行转发;用于在接收到外网访问内网的业务流时,根据内网路由信息进行转发。 Uplink interface board upon receiving a service flow sent by the downlink interface board, according to the foreign network for forwarding information; when receiving the traffic flow within the network to access the external network, according to the information forwarded by the network.
  7. 7、如权利要求6所述的网关设备,其特征在于,该网关设备包括两个以上的上行接口板, 7. The gateway apparatus as claimed in claim 6, wherein the gateway device includes more than two uplink interface board,
    下行接口板,用于根据预设的负载分担策略将内网访问外网的不同业务流转发到不同的上行接口板。 Downlink interface board, according to a preset load sharing policy different traffic flow within the network is sent to the access network different uplink interface board.
  8. 8、如权利要求7所述的网关设备,其特征在于, 8, the gateway apparatus as claimed in claim 7, wherein,
    路由处理单元,用于在下行接口板上配置具有多个下一跳的默认路由,其中,每一个上行接口板都对应于所述默认路由的一个以上的下一跳; Routing processing unit for configuring a downlink interface board having a plurality of default route next hop, wherein each uplink interface board corresponds to the one or more default next-hop route;
    下行接口板,用于在接收到内网访问外网的业务流时,在自身的内网路由信息中找不到相应的下一跳路由信息,则匹配到默认路由,根据预设策略从默认路由的多个下一跳中选择一个下一跳,将业务流转发到所选择的下一跳所对应的上行接口板。 Downlink interface board, when receiving the traffic flow within the network access the external network, no corresponding next hop information by the information in the network itself, matched to the default route, according to a preset policy from the default a plurality of next hop select a next hop, the traffic flow is sent to the next hop corresponding to the selected uplink interface board.
  9. 9、如权利要求6所述的网关设备,其特征在于, 9, the gateway apparatus as claimed in claim 6, wherein,
    所述路由处理单元,用于将特定接口指定为公网接口,将从公网接口学习到的路由确定为外网路由,将从公网接口以外的其他接口学习到的路由确定为内网路由; The routing processing unit for a particular interface as the public network interface, public network interface is determined from the route is learned by the external network, the interface is determined from the learned routes other than the public network interface to a network ;
    或者,所述路由处理单元,用于指定特定路由协议,将根据该特定路由协议所得到的路由确定为外网路由,将根据该特定路由协议以外的其他路由协议所得到的路由确定为内网路由。 Alternatively, the routing processing unit configured to specify a particular routing protocol will be determined by the outer determined according to a routing network routing protocol other than the particular routing protocol within the network according to the obtained routing of this particular routing protocols obtained routing.
  10. 10、如权利要求6至9中任一项所述的网关设备,其特征在于, 10, gateway apparatus 6-1 according to any of claims 9, wherein,
    所述上行接口板为高规格接口板; The high-uplink interface board interface board;
    所述下行接口板为低规格接口板。 The interface board is a low downlink interface board specifications.
CN 200910089709 2009-07-21 2009-07-21 Route forwarding method and gateway equipment CN101610215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910089709 CN101610215B (en) 2009-07-21 2009-07-21 Route forwarding method and gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910089709 CN101610215B (en) 2009-07-21 2009-07-21 Route forwarding method and gateway equipment

Publications (2)

Publication Number Publication Date
CN101610215A true true CN101610215A (en) 2009-12-23
CN101610215B CN101610215B (en) 2011-08-17

Family

ID=41483806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910089709 CN101610215B (en) 2009-07-21 2009-07-21 Route forwarding method and gateway equipment

Country Status (1)

Country Link
CN (1) CN101610215B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827038A (en) * 2010-05-24 2010-09-08 杭州华三通信技术有限公司 Distributed equipment and method for forwarding message in distributed equipment
CN102006684A (en) * 2010-12-03 2011-04-06 成都飞鱼星科技开发有限公司 Wireless router with guest network function and implementation method thereof
CN102571610A (en) * 2012-03-02 2012-07-11 杭州华三通信技术有限公司 Packet forwarding method and edge equipment
CN104601428A (en) * 2014-12-23 2015-05-06 广州亦云信息技术有限公司 Communication method of virtual machines

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100420187C (en) 2005-06-17 2008-09-17 华为技术有限公司 Network switching equipment and network service protection method
US7920866B2 (en) 2005-07-07 2011-04-05 Alcatel-Lucent Usa Inc. Method of hard handover in a wireless communication system
CN101188560B (en) 2007-12-18 2010-04-21 杭州华三通信技术有限公司 Method and device for dynamically detecting forward capability
WO2009123112A1 (en) 2008-03-31 2009-10-08 国立大学法人九州大学 Network system, node, packet forwarding method, program, and recording medium
CN101267399B (en) 2008-04-24 2010-10-27 杭州华三通信技术有限公司 Packet forward method, device and its uplink interface board

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827038A (en) * 2010-05-24 2010-09-08 杭州华三通信技术有限公司 Distributed equipment and method for forwarding message in distributed equipment
CN101827038B (en) 2010-05-24 2013-12-11 杭州华三通信技术有限公司 Distributed equipment and method for forwarding message in distributed equipment
CN102006684A (en) * 2010-12-03 2011-04-06 成都飞鱼星科技开发有限公司 Wireless router with guest network function and implementation method thereof
CN102571610A (en) * 2012-03-02 2012-07-11 杭州华三通信技术有限公司 Packet forwarding method and edge equipment
CN104601428A (en) * 2014-12-23 2015-05-06 广州亦云信息技术有限公司 Communication method of virtual machines

Also Published As

Publication number Publication date Type
CN101610215B (en) 2011-08-17 grant

Similar Documents

Publication Publication Date Title
US7477657B1 (en) Aggregating end-to-end QoS signaled packet flows through label switched paths
Touch et al. Transparent interconnection of lots of links (TRILL): Problem and applicability statement
Quoitin et al. Interdomain traffic engineering with BGP
US20130329601A1 (en) Defining Data Flow Paths in Software-Defined Networks with Application-Layer Traffic Optimization
US8085791B1 (en) Using layer two control protocol (L2CP) for data plane MPLS within an L2 network access node
CN103051629A (en) Software defined network-based data processing system, method and node
CN101626596A (en) Method, device and system for generating service distributing strategy
US7466694B2 (en) Routing protocol with packet network attributes for improved route selection
CN1533108A (en) Method for realizing dynamic gateway load sharing and backup
CN101350781A (en) Method, equipment and system for monitoring flux
JP2011160363A (en) Computer system, controller, switch, and communication method
CN101155196A (en) Service-oriented IPv6 address specification and distribution method, terminal and system for implementing the same
CN1798096A (en) Method and device for carrying out flux management under multiple exits on routes or exchanges
CN1744563A (en) Method for realizing strate gic route in Ethernet switch
CN102368727A (en) Crossed IP network TRILL network communication method, system thereof and devices
CN101056246A (en) A method and device for realizing the load share
CN101841487A (en) Configuration method for aggregating link service flow and packet switching device
CN101072180A (en) Method and systme for strengthening transport control layer control for next generation communication network
CN101022413A (en) Load equalizing method and route server
CN101729425A (en) Method and equipment for flow sending in VRRP networking
CN101984598A (en) Message forwarding method and deep packet inspection (DPI) device
CN101217448A (en) A method and system to realize gateway dynamic load sharing
CN101478474A (en) Method, apparatus and system for cross-domain MPLS TE LSP establishment
US20120106523A1 (en) Packet forwarding function of a mobility switch deployed as routed smlt (rsmlt) node
US20080165683A1 (en) Method, system, and program product for enhancing network communications between endpoints

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03