[go: up one dir, main page]

CN101296186B - Routing switching device, method and switching cable fastener plate - Google Patents

Routing switching device, method and switching cable fastener plate Download PDF

Info

Publication number
CN101296186B
CN101296186B CN2008101149060A CN200810114906A CN101296186B CN 101296186 B CN101296186 B CN 101296186B CN 2008101149060 A CN2008101149060 A CN 2008101149060A CN 200810114906 A CN200810114906 A CN 200810114906A CN 101296186 B CN101296186 B CN 101296186B
Authority
CN
China
Prior art keywords
message
higig
ethernet
head
mod
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008101149060A
Other languages
Chinese (zh)
Other versions
CN101296186A (en
Inventor
杨武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ziguang Communication Technology (Yueyang) Co.,Ltd.
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008101149060A priority Critical patent/CN101296186B/en
Publication of CN101296186A publication Critical patent/CN101296186A/en
Application granted granted Critical
Publication of CN101296186B publication Critical patent/CN101296186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses route switching equipment, a switching line card and a route switching method, wherein, the route switching equipment comprises an Ethernet switching unit, a route line card and the switching line card comprising a Layer 2 switching chip/a Layer 3 switching chip, wherein, message transmission between the switching line cards, and between the switching line card and the route line card is carried out by the Ethernet switching unit. The technical proposal disclosed by the invention can lower the complexity of management.

Description

一种路由交换设备、方法和交换线卡板A routing switching device, method and switching line card board

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种路由交换设备、方法和交换线卡板。The invention relates to the technical field of communication, in particular to a routing switching device, a method and a switching line card board.

背景技术Background technique

路由器是OSI(开放系统互连)协议模型的第三层(L3),即网络层中的分组交换设备(或网络层中继设备),路由技术由两项最基本的活动组成,即决定最优路径和传输数据包,即IP报文。路由器在接收到报文后,首先把链路层的包头去掉(拆包),读取目的地址,然后查找路由表,若能确定下一步往哪送,则再加上链路层的包头(打包),把该报文转发到可以到达该目的地的下一台路由器处。当下一台路由器接收到该报文时,也会查看其目标地址,并使用合适的路径继续传送给后面的路由器。依次类推,直到报文到达最终目的地。若路由器不能确定下一步的地址,则向源地址返回一个信息,并把这个报文丢掉。其中,路由器端口类型多,支持的三层协议多,路由能力强,所以适合于在大型网络之间的互连。A router is the third layer (L3) of the OSI (Open System Interconnection) protocol model, that is, a packet switching device (or network layer relay device) in the network layer. Routing technology consists of two most basic activities, namely, determining the most The optimal path and transmission data packets, that is, IP packets. After the router receives the packet, it first removes (unpacks) the packet header of the link layer, reads the destination address, and then searches the routing table. If it can determine where to send it next, it adds the packet header of the link layer ( package), and forward the message to the next router that can reach the destination. When the next router receives the message, it will also check its destination address and use an appropriate path to continue sending it to the following routers. And so on, until the packet reaches the final destination. If the router cannot determine the address of the next step, it returns a message to the source address and discards the message. Among them, routers have many types of ports, support many layer-3 protocols, and have strong routing capabilities, so they are suitable for the interconnection between large networks.

图1示出了现有技术中的一种路由器的结构示意图,包括:主控板和路由线卡板(接口板、业务板等)。其中,主控板包括主控引擎和以太网交换单元。其中,以太网交换单元也可以位于主控板之外,如可将以太网交换单元放置到背板上,或者以太网交换单元也可以是一个独立的交换板。以太网交换单元与各个路由线卡板相连,并包括控制平面和数据平面两方面的功能。其中,以太网交换单元的控制平面用于完成线卡板的配置、路由信息下发、程序升级、控制报文及协议报文上报等业务;以太网交换单元的数据平面用于完成线卡板之间的数据报文的转发,此外,一些特定的控制报文也可 以通过数据平面上报到主控板。主控引擎与以太网交换单元相连,用于完成路由控制、报文处理等。可见,在进行报文转发时,通常只涉及以太网交换单元的数据平面。FIG. 1 shows a schematic structural diagram of a router in the prior art, including: a main control board and routing line card boards (interface boards, service boards, etc.). Wherein, the main control board includes a main control engine and an Ethernet switching unit. Wherein, the Ethernet switching unit can also be located outside the main control board, for example, the Ethernet switching unit can be placed on the backboard, or the Ethernet switching unit can also be an independent switching board. The Ethernet switching unit is connected to each routing line card board, and includes two functions of a control plane and a data plane. Among them, the control plane of the Ethernet switching unit is used to complete the configuration of the line card board, routing information delivery, program upgrade, control message and protocol message reporting and other services; the data plane of the Ethernet switching unit is used to complete the line card board In addition, some specific control messages can also be reported to the main control board through the data plane. The main control engine is connected with the Ethernet switching unit, and is used to complete routing control, message processing, etc. It can be seen that usually only the data plane of the Ethernet switching unit is involved when the packet is forwarded.

其中,图1所示路由线卡板可以为分布式路由线卡板,用于完成分布式转发,即各路由线卡板中均有用于控制报文转发的转发引擎,在路由线卡板完成配置后,通过入端口接收来自外部的报文,路由线卡板的转发引擎根据报文中的信息查路由转发表后,更新报文头信息,将报文通过以太网交换单元转发给相应地路由线卡板,由相应地路由线卡板将报文通过出端口发送出去。Wherein, the routing line card board shown in Figure 1 can be a distributed routing line card board, which is used to complete distributed forwarding, that is, each routing line card board has a forwarding engine for controlling message forwarding, and the routing line card board completes the forwarding engine. After configuration, the ingress port receives packets from the outside, and the forwarding engine of the routing line card checks the routing and forwarding table according to the information in the packets, updates the header information of the packets, and forwards the packets to the corresponding The routing line card board sends the message through the egress port by the corresponding routing line card board.

但路由器一般都是基于CPU(Central Processor Unit,中央处理器)以“单跳时钟,,指令计算的方式来处理和转发报文的,即路由线卡板的控制中心通常为CPU,这种方式转发报文的效率是比较低的。随着以太网和TCP/IP(传输控制协议/互联网协议)的迅速崛起和广泛应用,企业内部网络越来越庞大,路由器转发报文的效率已经不能满足应用要求,且以太网已经成为最大的广域网,这些变化直接导致了交换机的出现。However, routers are generally based on the CPU (Central Processor Unit, central processing unit) to process and forward messages in the way of "single-hop clock, instruction calculation, that is, the control center of the routing line board is usually the CPU, this way The efficiency of forwarding messages is relatively low. With the rapid rise and wide application of Ethernet and TCP/IP (Transmission Control Protocol/Internet Protocol), the internal network of enterprises is becoming larger and larger, and the efficiency of router forwarding messages can no longer meet Application requirements, and Ethernet has become the largest wide area network, these changes have directly led to the emergence of switches.

交换机包括二层(L2)交换机和三层(L3)交换机。二层交换机是OSI协议模型的数据链路层的设备,它能够读取报文中的MAC(媒体接入控制)地址信息并根据MAC地址来进行交换。由于二层交换机一般具有很宽的交换总线带宽,所以可以同时为很多端口进行数据交换,又由于二层交换机一般都含有专门用于处理报文转发的ASIC(Application specific IntegratedCircuit,专用集成电路)芯片,因此转发速度可以做到非常快。二层交换机内部有一个二层转发表,这个转发表标明了MAC地址和交换机端口的对应关系。当交换机从某个端口收到一个报文,它首先读取包头中的源MAC地址,这样它就知道源MAC地址的机器是连在哪个端口上的,它再去读取包头中的目的MAC地址,并在转发表中查找相应的端口,如果表中有与这个目的MAC地址对应的端口,则把报文直接复制到这个端口上,如果在表中找不到相应的端口则把报文广播到所有端口上,当目的机器对源机器回应 时,交换机又可以学习一目的MAC地址与哪个端口对应,在下次传送报文时就不再需要对所有端口进行广播了。Switches include Layer 2 (L2) switches and Layer 3 (L3) switches. A Layer 2 switch is a device at the data link layer of the OSI protocol model, which can read the MAC (Media Access Control) address information in the message and perform switching based on the MAC address. Because the two-layer switch generally has a very wide switching bus bandwidth, it can perform data exchange for many ports at the same time, and because the two-layer switch generally contains an ASIC (Application specific Integrated Circuit) chip specially used to process message forwarding , so the forwarding speed can be very fast. There is a layer-2 forwarding table inside the layer-2 switch, and this forwarding table indicates the correspondence between MAC addresses and switch ports. When the switch receives a message from a certain port, it first reads the source MAC address in the packet header, so that it knows which port the machine with the source MAC address is connected to, and then reads the destination MAC address in the packet header address, and look up the corresponding port in the forwarding table, if there is a port corresponding to the destination MAC address in the table, then copy the message directly to this port, if the corresponding port cannot be found in the table, then copy the message Broadcast to all ports, when the destination machine responds to the source machine, the switch can learn which port the destination MAC address corresponds to, and it is no longer necessary to broadcast to all ports when sending a message next time.

但二层交换机主要适用于小型局域网中,小型局域网中机器数量在二、三十台以下,这样的网络环境下,广播报文对网络的拥塞影响不大。对于大型局域网,为了减小广播风暴的危害,必须把大型局域网按功能或地域等因素划分成一个一个的小局域网,也就是一个一个的小虚拟局域网(VLAN)段,这样必然导致不同VLAN间存在大量的互访,单纯使用二层交换机没办法实现网间的互访;而单纯使用路由器,则由于端口数量有限,路由速度较慢,而限制了网络的规模和访问速度,所以这种环境下,通常由二层交换机做VLAN网内的交换,由路由器专门负责网间的路由工作。或者,大型局域网也可以由三层交换机来完成报文转发。However, Layer 2 switches are mainly suitable for small LANs, where the number of machines is less than 20 or 30. In such a network environment, broadcast messages have little effect on network congestion. For large-scale LANs, in order to reduce the harm of broadcast storms, it is necessary to divide the large-scale LANs into small LANs one by one according to factors such as functions or regions, that is, small virtual local area network (VLAN) segments one by one, which will inevitably lead to existence of different VLANs. For a large number of mutual visits, it is impossible to realize the mutual visits between the networks simply by using a layer 2 switch; and by using only a router, due to the limited number of ports and the slow routing speed, which limits the scale of the network and the access speed, so in this environment , Usually the exchange in the VLAN network is done by a layer 2 switch, and the router is responsible for the routing work between the networks. Alternatively, a large LAN can also be forwarded by a Layer 3 switch.

三层交换机是一个带有第三层路由功能的第二层交换机,适用于OSI协议模型的网络层,其接口类型简单,拥有很强的二层数据包处理能力,所以适用于大型局域网。三层交换机内部有一个三层转发表,这个转发表标明了目的IP地址对应的网段地址前缀(Prefix)、下一跳主机地址(NextHop)、地址解析协议(ARP)信息的对应关系。当三层交换机收到以太网报文时,首先在自身查找到与报文的目的IP地址最为匹配的网段地址前缀,再通过该网段地址前缀查找到下一跳主机地址,再通过该下一跳主机地址查找到对应的ARP信息,然后以ARP信息中的MAC地址替换报文的目的MAC地址,以三层交换机的出端口MAC地址替换报文的源MAC地址,即根据ARP信息更新报文头,然后将该报文从与该报文的目的MAC地址对应的端口、VLAN发送出去。但三层交换机的最重要目的是加快大型局域网内部的数据交换,揉合进去的路由功能也是为这个目的服务的,所以它的路由功能没有同一档次的专业路由器强。在网络流量很大的情况下,如果三层交换机既做网内的交换,又做网间的路由,必然会大大加重它的负担,影响响应速度。因此在网络流量很大,但又要求响应速度很高的情况下通常由三层交换机做网内的交换,由路由器专门负责网间的路由工作。A layer-3 switch is a layer-2 switch with a layer-3 routing function, which is suitable for the network layer of the OSI protocol model. Its interface type is simple and has a strong layer-2 packet processing capability, so it is suitable for large-scale LANs. There is a three-layer forwarding table inside the three-layer switch, and this forwarding table indicates the corresponding relationship between the network segment address prefix (Prefix), the next-hop host address (NextHop), and the Address Resolution Protocol (ARP) information corresponding to the destination IP address. When a Layer 3 switch receives an Ethernet message, it first finds the network segment address prefix that best matches the destination IP address of the message, and then finds the next-hop host address through the network segment address prefix, and then uses the The next-hop host address finds the corresponding ARP information, and then replaces the destination MAC address of the message with the MAC address in the ARP information, and replaces the source MAC address of the message with the outgoing port MAC address of the Layer 3 switch, that is, updates according to the ARP information. message header, and then send the message through the port and VLAN corresponding to the destination MAC address of the message. However, the most important purpose of a Layer 3 switch is to speed up data exchange within a large LAN, and the routing function incorporated also serves this purpose, so its routing function is not as strong as that of a professional router of the same level. In the case of heavy network traffic, if a Layer 3 switch performs both intra-network switching and inter-network routing, its burden will be greatly increased and the response speed will be affected. Therefore, when the network traffic is very large, but the response speed is required to be high, the three-layer switch is usually used for the switching in the network, and the router is responsible for the routing work between the networks.

此外,有些组网系统中,会同时使用二层交换机和三层交换机做网内的交换。具体实现时,会由二层交换机先接收报文,并根据报文中的信息查找二层转发表,若查找到报文中目的MAC地址对应的端口,则把数据包直接复制到这个端口上。若查找不到,则由三层交换机查找三层转发表,根据查找结果更新报文头,将报文通过相应端口发送出去。In addition, in some networking systems, both Layer 2 switches and Layer 3 switches are used for intra-network switching. In actual implementation, the Layer 2 switch will receive the message first, and search the Layer 2 forwarding table according to the information in the message. If the port corresponding to the destination MAC address in the message is found, the data packet will be directly copied to this port. . If it cannot be found, the layer-3 switch will search the layer-3 forwarding table, update the packet header according to the search result, and send the packet through the corresponding port.

可见,目前的组网系统中,路由器和交换机是相互独立的两个设备,组网时通常由二层和/或三层(L2/L3)交换机做网内的交换,由路由器专门负责网间的路由工作。这样一来,一方面需要维护的设备较多,管理复杂;另一方面,需要分别购买不同的设备,成本较高。It can be seen that in the current networking system, the router and the switch are two independent devices. In the networking, the second-layer and/or third-layer (L2/L3) switches are usually used for the switching in the network, and the router is responsible for the inter-network switching. routing works. In this way, on the one hand, there are many devices that need to be maintained, and the management is complicated; on the other hand, different devices need to be purchased separately, and the cost is high.

发明内容Contents of the invention

有鉴于此,本发明中一方面提供一种路由交换设备及交换线卡板,另一方面提供一种路由交换方法,以便降低管理复杂度。In view of this, the present invention provides a routing switching device and a switching line card board on the one hand, and provides a routing switching method on the other hand, so as to reduce management complexity.

本发明所提供的路由交换设备,包括:以太网交换单元、路由线卡板和包括支持HiGig协议的二层L2/三层L3交换芯片和接口转换单元的交换线卡板,其中,The routing switching equipment provided by the present invention includes: an Ethernet switching unit, a routing line card board, and a switching line card board including a Layer 2 L2/Layer 3 L3 switching chip and an interface conversion unit supporting the HiGig protocol, wherein,

交换线卡板之间、交换线卡板与路由线卡板之间通过以太网交换单元进行报文的转发,所述交换线卡板通过接口转换单元与以太网交换单元进行报文的收发。Messages are forwarded between switch line card boards, and between switch line card boards and routing line card boards through the Ethernet switching unit, and the switch line card boards send and receive messages through the interface conversion unit and the Ethernet switching unit.

较佳地,所述L2/L3交换芯片用于接收来自外部的以太网报文,根据所述报文的目的地址查L2/L3转发表,若查找到需要跨板转发的目的芯片编号MOD ID及目的端口号,则将所述目的MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,构成HiGig报文,将所述HiGig报文传递给接口转换单元;接收来自接口转换单元的HiGig报文,剥离所述报文中的HiGig头,并根据所述HiGig头中的目的端口号将报文从相应端口发送出去;Preferably, the L2/L3 switching chip is used to receive Ethernet messages from the outside, check the L2/L3 forwarding table according to the destination address of the message, if the destination chip number MOD ID that needs to be forwarded across boards is found And purpose port number, then described purpose MOD ID and purpose port number are encapsulated in the HiGig head that is positioned at Ethernet message front, constitute HiGig message, described HiGig message is delivered to interface conversion unit; Receive from interface conversion The HiGig message of the unit, stripping the HiGig header in the message, and sending the message from the corresponding port according to the destination port number in the HiGig header;

所述接口转换单元用于接收来自所述L2/L3交换芯片的HiGig报文,根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板媒体接入 控制MAC地址的对应关系表,得到目的板MAC地址,将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给以太网交换单元;接收来自以太网交换单元的以太网报文,剥离所述报文的MAC头,将所述报文还原为HiGig报文,将所述HiGig报文传递给所述L2/L3交换芯片;The interface conversion unit is used to receive the HiGig message from the L2/L3 switching chip, and search for the correspondence between the MOD ID stored in itself and the board media access control MAC address according to the purpose MOD ID in the HiGig header of the message relational table, obtain the destination board MAC address, encapsulate the destination board MAC address in the MAC header positioned at the front of the HiGig header, form an Ethernet message, and send the Ethernet message to the Ethernet switching unit; receive From the Ethernet message of the Ethernet switching unit, strip the MAC header of the message, restore the message to a HiGig message, and pass the HiGig message to the L2/L3 switch chip;

所述路由线卡板用于接收来自外部的报文,根据所述报文的目的地址查自身中存储的包括目的MOD ID的路由转发表,若查找到需要转发给交换线卡板的目的MOD ID及目的端口号,则将所述目的MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,根据所述目的MOD ID查找自身中存储的MOD ID和板MAC地址的对应关系表,得到目的板MAC地址,将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给以太网交换单元;接收以太网交换单元转发的来自交换线卡板的以太网报文,剥离所述报文的MAC头和HiGig头,并根据所述HiGig头中的目的端口号将报文从相应端口发送出去;The routing line card board is used to receive messages from the outside, according to the destination address of the message, check the routing forwarding table stored in itself including the purpose MOD ID, if the purpose MOD that needs to be forwarded to the switching line card board is found ID and purpose port number, then encapsulate the purpose MOD ID and purpose port number in the HiGig header located in front of the Ethernet message, and search for the corresponding relationship between the MOD ID stored in itself and the board MAC address according to the purpose MOD ID table, obtain the destination board MAC address, encapsulate the destination board MAC address in the MAC header positioned at the front of the HiGig head, form an Ethernet message, and send the Ethernet message to the Ethernet switching unit; receive the Ethernet The network switching unit forwards the Ethernet message from the switch line card board, strips the MAC header and the HiGig header of the message, and sends the message from the corresponding port according to the destination port number in the HiGig header;

所述以太网交换单元用于接收来交换线卡板和路由线卡板的以太网报文,根据所述报文中的目的板MAC地址,将所述报文转发给相应的线卡板。The Ethernet switching unit is used to receive the Ethernet message from the switching line card board and the routing line card board, and forward the message to the corresponding line card board according to the MAC address of the destination board in the message.

较佳地,所述L2/L3交换芯片在根据报文的目的地址查L2/L3转发表时,若查找不到相应的目的MOD ID及目的端口号,则将预先设置的特定目的MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,构成HiGig报文,将所述HiGig报文传递给接口转换单元;Preferably, when the L2/L3 switching chip checks the L2/L3 forwarding table according to the destination address of the message, if the corresponding destination MOD ID and destination port number cannot be found, then the preset specific destination MOD ID and The destination port number is encapsulated in the HiGig header located in front of the Ethernet message to form a HiGig message, and the HiGig message is passed to the interface conversion unit;

所述接口转换单元在接收到所述HiGig报文后,若所述报文中的目的MODID为所述特定的MOD ID,则根据该MOD ID查找到对应该MOD ID设置的默认路由线卡板的板MAC地址,将所述目的板MAC地址及对应的默认标识封装在位于所述HiGig头前面的MAC头中,将构成的以太网报文发送给以太网交换单元;After the interface conversion unit receives the HiGig message, if the purpose MOD ID in the message is the specific MOD ID, then according to the MOD ID, find the default routing line card board corresponding to the MOD ID setting MAC address of the board, the MAC address of the destination board and the corresponding default identification are encapsulated in the MAC header located in front of the HiGig header, and the formed Ethernet message is sent to the Ethernet switching unit;

所述默认路由线卡板接收到以太网交换单元转发的所述以太网报文后,根据所述MAC头中的默认标识位,在剥离所述报文的MAC头和HiGig头 后,将所述报文作为来自外部的报文进行处理。After the default routing line card board receives the Ethernet message forwarded by the Ethernet switching unit, according to the default identification bit in the MAC header, after stripping the MAC header and the HiGig header of the message, the The above-mentioned message is processed as a message from the outside.

本发明所提供的交换线卡板,包括:支持HiGig协议的二层L2/三层L3交换芯片和接口转换单元;The switching line card board provided by the present invention includes: a layer-2 L2/layer-3 L3 switching chip and an interface conversion unit supporting the HiGig protocol;

所述L2/L3交换芯片用于接收来自外部的以太网报文,根据所述报文的目的地址查L2/L3转发表,若查找到需要跨板转发的目的板编号MOD ID及目的端口号,则将所述MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,构成HiGig报文,将所述HiGig报文传递给接口转换单元;接收来自接口转换单元的HiGig报文,剥离所述报文中的HiGig头,并根据所述HiGig头中的目的端口号将报文从相应端口发送出去;The L2/L3 switching chip is used to receive the Ethernet message from the outside, and check the L2/L3 forwarding table according to the destination address of the message, if the destination board number MOD ID and the destination port number that need to be forwarded across boards are found , the MOD ID and the destination port number are encapsulated in the HiGig header positioned in front of the Ethernet message to form a HiGig message, and the HiGig message is passed to the interface conversion unit; the HiGig message from the interface conversion unit is received , stripping the HiGig header in the message, and sending the message out from the corresponding port according to the destination port number in the HiGig header;

所述接口转换单元用于接收来自所述L2/L3交换芯片的HiGig报文,根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板媒体接入控制MAC地址的对应关系表,得到目的板MAC地址,将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给以太网交换单元;接收来自以太网交换单元的以太网报文,剥离所述报文的MAC头,将所述报文还原为HiGig报文,将所述HiGig报文传递给所述L2/L3交换芯片。The interface conversion unit is used to receive the HiGig message from the L2/L3 switching chip, and search for the correspondence between the MOD ID stored in itself and the board media access control MAC address according to the purpose MOD ID in the HiGig header of the message relational table, obtain the destination board MAC address, encapsulate the destination board MAC address in the MAC header positioned at the front of the HiGig header, form an Ethernet message, and send the Ethernet message to the Ethernet switching unit; receive For the Ethernet message from the Ethernet switching unit, strip the MAC header of the message, restore the message to a HiGig message, and pass the HiGig message to the L2/L3 switch chip.

所述L2/L3交换芯片在根据报文的目的地址查L2/L3转发表时,若查找不到相应的目的MOD ID及目的端口号,则将预先设置的特定目的MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,构成HiGig报文,将所述HiGig报文传递给接口转换单元;When the L2/L3 switching chip checks the L2/L3 forwarding table according to the destination address of the message, if the corresponding destination MOD ID and destination port number cannot be found, then the preset specific destination MOD ID and destination port number are encapsulated In the HiGig header located in front of the Ethernet message, a HiGig message is formed, and the HiGig message is passed to the interface conversion unit;

所述接口转换单元在接收到所述HiGig报文后,若所述报文中的目的MODID为所述特定的MOD ID,则根据该MOD ID查找到对应该MOD ID设置的默认路由线卡板的板MAC地址,将所述目的板MAC地址及对应的默认标识封装在位于所述HiGig头前面的MAC头中,将构成的以太网报文发送给以太网交换单元。After the interface conversion unit receives the HiGig message, if the purpose MOD ID in the message is the specific MOD ID, then according to the MOD ID, find the default routing line card board corresponding to the MOD ID setting MAC address of the board, encapsulate the MAC address of the destination board and the corresponding default identifier in the MAC header located in front of the HiGig header, and send the formed Ethernet message to the Ethernet switching unit.

较佳地,所述接口转换单元包括:与路由线卡板和交换线卡板总数数量一致的缓存通道、第一接收发送模块、第二接收发送模块、流量管理控制模块、 第一报文更改模块和第二更改模块,其中,Preferably, the interface conversion unit includes: a cache channel consistent with the total number of routing line card boards and switching line card boards, a first receiving and sending module, a second receiving and sending module, a flow management control module, and a first message modification module and a second change module, where,

每个缓存通道一个对应一个线卡板,并且包括正向通道和反向通道,分别用于存储对应线卡板两个方向的报文;Each buffer channel corresponds to a line card board, and includes a forward channel and a reverse channel, which are used to store messages in the two directions of the corresponding line card board;

所述第一接收发送模块用于接收来自L2/L3交换芯片的HiGig报文,根据所述报文中的目的MOD ID,将所述报文发送到相应缓存通道的正向通道中;并接收来自第二报文更改模块的报文,将所述报文发送给L2/L3交换芯片;The first receiving and sending module is used to receive the HiGig message from the L2/L3 switching chip, and send the message to the forward channel of the corresponding buffer channel according to the purpose MOD ID in the message; and receive Send the message from the second message modification module to the L2/L3 switching chip;

所述第二接收发送模块用于接收来自以太网交换单元的以太网报文,根据所述报文中的源板MAC地址字段,将所述报文发送到相应的缓存通道的反向通道中;并接收来自第一报文更改模块的报文,将所述报文发送给以太网交换单元;The second receiving and sending module is used to receive the Ethernet message from the Ethernet switching unit, and send the message to the reverse channel of the corresponding buffer channel according to the source board MAC address field in the message ; And receive the message from the first message modification module, and send the message to the Ethernet switching unit;

所述流量管理控制模块用于轮循或基于优先级地从相应缓存通道的正向通道或反向通道中调度报文,将从正向通道中调度的报文提供给第一报文更改模块,将从反向通道中调用的报文提供给第二报文更改模块;The flow management control module is used to dispatch messages from the forward channel or reverse channel of the corresponding buffer channel in round robin or based on priority, and provide the messages scheduled from the forward channel to the first message modification module , providing the message called from the reverse channel to the second message modification module;

所述第一报文更改模块用于接收所述流量管理控制模块提供的报文,根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板MAC地址的对应关系表,得到目的板MAC地址,将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给第二接收发送模块;The first message modification module is used to receive the message provided by the flow management control module, and search the corresponding relationship table between the MOD ID and the board MAC address stored in itself according to the purpose MOD ID in the HiGig header of the message, Obtain the MAC address of the destination board, encapsulate the MAC address of the destination board in the MAC header located in front of the HiGig head, form an Ethernet message, and send the Ethernet message to the second receiving and sending module;

第二报文更改模块用于接收所述流量管理控制模块提供的报文,剥离所述报文中的MAC头,还原出HiGig报文,将所述HiGig报文发送给第一接收发送模块。The second message modification module is used to receive the message provided by the flow management control module, strip the MAC header in the message, restore the HiGig message, and send the HiGig message to the first receiving and sending module.

或者,每个缓存通道一个对应一个线卡板,并且包括正向通道和反向通道,分别用于存储对应线卡板两个方向的报文;Or, each buffer channel corresponds to a line card board, and includes a forward channel and a reverse channel, which are respectively used to store messages in two directions corresponding to the line card board;

所述流量管理控制模块用于轮循或基于优先级地从相应缓存通道的正向通道或反向通道中调度报文,将从正向通道中调度的报文提供给第二接收发送模块,将从反向通道中调用的报文提供给第一接收发送模块;The flow management control module is used to schedule messages from the forward channel or reverse channel of the corresponding buffer channel in round robin or based on priority, and provide the messages scheduled from the forward channel to the second receiving and sending module, Provide the message called from the reverse channel to the first receiving and sending module;

所述第一接收发送模块用于接收来自L2/L3交换芯片的HiGig报文,将所 述报文发送给第一报文更改模块;接收流量管理控制模块调度的报文,将所述报文发送给L2/L3交换芯片;The first receiving and sending module is used to receive the HiGig message from the L2/L3 switching chip, and send the message to the first message modification module; receive the message dispatched by the traffic management control module, and send the message to the first message modification module; Send to L2/L3 switch chip;

所述第一报文更改模块用于接收来自第一接收发送模块的HiGig报文,根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板MAC地址的对应关系表,得到目的板MAC地址,将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,根据所述目的板MAC地址,将所述以太网报文发送送到相应缓存通道的正向通道中;The first message modification module is used to receive the HiGig message from the first receiving and sending module, and searches for the correspondence table of the MOD ID stored in itself and the board MAC address according to the purpose MOD ID in the HiGig header of the message, Obtain the MAC address of the destination board, encapsulate the MAC address of the destination board in the MAC header positioned at the front of the HiGig header to form an Ethernet message, and send the Ethernet message to the In the forward channel of the corresponding cache channel;

所述第二接收发送模块用于接收来自以太网交换单元的以太网报文,将所述报文发送给第二报文更改模块;接收流量管理控制模块调度的报文,将所述报文发送给以太网交换单元;The second receiving and sending module is used to receive the Ethernet message from the Ethernet switching unit, and send the message to the second message modification module; receive the message scheduled by the flow management control module, and send the message to the Send to the Ethernet switching unit;

所述第二报文更改模块用于接收来自第二接收发送模块的以太网报文,剥离所述报文中的MAC头,还原出HiGig报文,根据所述报文中的源MOD ID,将所述HiGig报文发送到相应的缓存通道的反向通道中。The second message modification module is used to receive the Ethernet message from the second receiving and sending module, strip the MAC header in the message, restore the HiGig message, and according to the source MOD ID in the message, Send the HiGig message to the reverse channel of the corresponding buffer channel.

较佳地,所述第一报文更改模块接收到来自所述L2/L3交换芯片的HiGig报文后,将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中之前,进一步地将所述报文中的HiGig头剥离,并添加简化后的HiGig头;Preferably, after the first message modification module receives the HiGig message from the L2/L3 switch chip, before encapsulating the target board MAC address in the MAC header located in front of the HiGig header, further Strip the HiGig header in the message, and add the simplified HiGig header;

所述第二报文更改模块在剥离所述报文的MAC头之后,将所述报文还原为HiGig报文之前,进一步地剥离所述简化后的HiGig头,并添加标准的HiGig头。After stripping the MAC header of the packet, the second packet modification module further strips the simplified HiGig header and adds a standard HiGig header before restoring the packet to a HiGig packet.

本发明所提供的路由交换方法,应用于包括路由线卡板和交换线卡板的路由交换设备中,所述路由交换设备中包括以太网交换单元,所述交换线卡板包括支持HiGig协议的L2/L3交换芯片和接口转换单元,该方法包括:The routing switching method provided by the present invention is applied to routing switching equipment including routing line card boards and switching line card boards, the routing switching equipment includes Ethernet switching units, and the switching line card boards include HiGig protocols L2/L3 switch chip and interface conversion unit, the method includes:

交换线卡板通过接口转换单元与以太网交换单元向其它交换线卡板或路由线卡板转发报文,并通过以太网交换单元与接口转换单元接收来自其它交换线卡板或路由线卡板的报文;The switching line card board forwards messages to other switching line card boards or routing line card boards through the interface conversion unit and the Ethernet switching unit, and receives messages from other switching line card boards or routing line card boards through the Ethernet switching unit and the interface conversion unit message;

路由线卡板通过以太网交换单元向其它路由线卡板或交换线卡板转发报文,并通过以太网交换单元接收来自其它路由线卡板或交换线卡板的报 文。The routing line card board forwards messages to other routing line card boards or switching line card boards through the Ethernet switching unit, and receives messages from other routing line card boards or switching line card boards through the Ethernet switching unit.

较佳地,所述交换线卡板通过接口转换单元与以太网交换单元向其它交换线卡板或路由线卡板转发报文包括:交换线卡板中的L2/L3交换芯片接收来自外部的报文,根据所述报文中目的地址查L2/L3转发表,若查找到需要跨板转发的目的MOD ID及目的端口号,则将所述目的MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,构成HiGig报文,将所述HiGig报文传递给接口转换单元;接口转换单元根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板MAC地址的对应关系表,得到目的板MAC地址,将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给以太网交换单元;以太网交换单元根据所述报文MAC头中的目的板MAC地址,将所述报文发送给对应的交换线卡板或路由线卡板;Preferably, the switching line card board forwarding messages to other switching line card boards or routing line card boards through the interface conversion unit and the Ethernet switching unit includes: the L2/L3 switching chip in the switching line card board receives external message, check the L2/L3 forwarding table according to the destination address in the message, if the destination MOD ID and destination port number that need to be forwarded across boards are found, then the destination MOD ID and destination port number are encapsulated in the Ethernet In the HiGig header in front of the message, a HiGig message is formed, and the HiGig message is passed to the interface conversion unit; the interface conversion unit searches for the MOD ID and board MAC stored in itself according to the purpose MOD ID in the HiGig header of the message The correspondence table of the address, obtains the target board MAC address, encapsulates the target board MAC address in the MAC header positioned at the front of the HiGig header to form an Ethernet message, and sends the Ethernet message to the Ethernet switch unit; the Ethernet switching unit sends the message to the corresponding switching line card board or routing line card board according to the destination board MAC address in the MAC header of the message;

所述交换线卡板通过以太网交换单元与接口转换单元接收来自其它交换线卡板或路由线卡板的报文包括:交换线卡板的接口转换单元接收以太网交换单元转发的来自其它交换线卡板或路由线卡板的报文,剥离所述报文的MAC头,将所述报文还原为HiGig报文,将还原后的HiGig报文传递给L2/L3交换芯片;L2/L3交换芯片接收到来自接口转换单元的HiGig报文后,剥离掉报文中的HiGig头,并根据HiGig头中的目的端口号将报文从相应端口发送出去;The switching line card board receiving messages from other switching line card boards or routing line card boards through the Ethernet switching unit and the interface conversion unit includes: the interface conversion unit of the switching line card board receives messages from other switching lines forwarded by the Ethernet switching unit. For the message of the line card board or the routing line card board, strip the MAC header of the message, restore the message to a HiGig message, and pass the restored HiGig message to the L2/L3 switch chip; L2/L3 After the switch chip receives the HiGig message from the interface conversion unit, it strips off the HiGig header in the message, and sends the message from the corresponding port according to the destination port number in the HiGig header;

所述路由线卡板通过以太网交换单元向其它路由线卡板或交换线卡板转发报文包括:路由线卡板接收来自外部的以太网报文,根据所述报文的目的地址查路由转发表;根据查表得到的目的MOD ID查找MOD ID和板MAC地址的对应关系表,以及板MAC地址或MOD ID等与线卡板类型的对应关系表,得到板MAC地址和线卡板类型,在线卡板类型显示目的线卡板为交换线卡板时,将目的MOD ID及目的端口号等信息封装在位于以太网报文前面的HiGig头中,并将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给以太网交换单元;以太网交换单元根据所述报文MAC头中的目的板MAC地址,将所述报文发送给对应的交换线卡 板或路由线卡板;The forwarding of the message by the routing line card board to other routing line card boards or switching line card boards through the Ethernet switching unit includes: the routing line card board receives the Ethernet message from the outside, and checks the route according to the destination address of the message Forwarding table; according to the purpose MOD ID obtained by looking up the table, look up the corresponding relationship table between MOD ID and board MAC address, and the corresponding relationship table between board MAC address or MOD ID and the line card board type, and obtain the board MAC address and line card board type , when the line card type shows that the destination line card is a switching line card, the information such as the destination MOD ID and the destination port number are encapsulated in the HiGig header in front of the Ethernet message, and the MAC address of the destination board is encapsulated in the In the MAC header in front of the HiGig header, an Ethernet message is formed, and the Ethernet message is sent to the Ethernet switching unit; the Ethernet switching unit sends the MAC address of the destination board according to the MAC header of the message to The message is sent to the corresponding switching line card board or routing line card board;

所述路由线卡板通过以太网交换单元接收来自其它路由线卡板或交换线卡板的报文包括:路由线卡板接收来自以太网交换单元的以太网报文,根据报文中的源板MAC地址字段查表,得到源线卡板的类型,在线卡板类型显示报文来自交换线卡板时,剥离所述报文的MAC头和HiGig头,并根据所述HiGig头中的目的端口号将报文从相应端口发送出去。The routing line card board receiving messages from other routing line card boards or switching line card boards through the Ethernet switching unit includes: the routing line card board receives the Ethernet message from the Ethernet switching unit, and according to the source in the message Check the table in the MAC address field of the board to obtain the type of the source line card board. When the online card board type shows that the message comes from the switching line card board, strip the MAC header and HiGig header of the message, and according to the purpose in the HiGig header The port number sends the message from the corresponding port.

从上述方案可以看出,本发明中通过在路由设备中设置包括L2/L3交换芯片的交换线卡板,并实现交换线卡板和路由线卡板的互通,从而使路由设备既具有路由功能又具有交换功能,组网时,由原来需要管理路由设备和交换设备的情况变为只需管理维护一个路由交换设备即可,降低了管理复杂度。It can be seen from the above scheme that in the present invention, a switching line card board including an L2/L3 switching chip is set in the routing device, and the intercommunication between the switching line card board and the routing line card board is realized, so that the routing device has both routing functions It also has a switching function. When networking, it is only necessary to manage and maintain one routing and switching device, which reduces the complexity of management.

此外,为了实现线卡板之间的MAC地址学习不影响交换网的以太网交换单元,本发明中利用HiGig协议的原理,采用支持HiGig协议的L2/L3交换芯片实现本发明中的交换线卡板,并通过增加一个接口转换单元实现HiGig接口与以太网接口的适配,使得在完成线卡板之间能够进行报文转发的基础上,提高了系统的报文转发效率。In addition, in order to realize that the MAC address learning between the line card boards does not affect the Ethernet switching unit of the switching network, the principle of the HiGig protocol is used in the present invention, and the L2/L3 switching chip supporting the HiGig protocol is used to realize the switching line card in the present invention board, and by adding an interface conversion unit to realize the adaptation of the HiGig interface and the Ethernet interface, so that the message forwarding efficiency of the system can be improved on the basis of completing the message forwarding between the line card boards.

进一步地,为了有效利用带宽,本发明中所涉及的HiGig头可采用简化后的HiGig头。Further, in order to effectively utilize the bandwidth, the HiGig header involved in the present invention may use a simplified HiGig header.

最后,为避免由于L2/L3交换芯片中的转发表内容较少而导致无法查找到某个目的地址,可为这种情况设置一个默认线卡板,由L2/L3交换芯片将报文转发给该默认线卡板,由默认线卡板将该报文当作新的报文查找相应的目的地址后再进行转发。Finally, in order to avoid the inability to find a certain destination address due to the lack of content in the forwarding table in the L2/L3 switch chip, a default line card board can be set in this case, and the L2/L3 switch chip will forward the message to For the default line card board, the default line card board regards the message as a new message and searches for a corresponding destination address before forwarding it.

附图说明Description of drawings

图1为现有技术中的一种路由器的结构示意图;Fig. 1 is a schematic structural diagram of a router in the prior art;

图2为本发明实施例中路由交换设备的示例性结构图;FIG. 2 is an exemplary structural diagram of a routing and switching device in an embodiment of the present invention;

图3为基于HiGig协议的交换网组网示意图;Fig. 3 is a schematic diagram of switching network networking based on the HiGig protocol;

图4为本发明实施例中交换线卡板的内部结构及其连接关系示意图;Fig. 4 is a schematic diagram of the internal structure and connection relationship of the switching line card board in the embodiment of the present invention;

图5为现有技术中以太网报文的一种格式示意图;FIG. 5 is a schematic diagram of a format of an Ethernet message in the prior art;

图6为现有技术中HiGig报文的一种格式示意图;FIG. 6 is a schematic diagram of a format of a HiGig message in the prior art;

图7为本发明实施例中线卡板发送给以太网交换单元的以太网报文的格式及其与HiGig报文的关系示意图;7 is a schematic diagram of the format of the Ethernet message sent by the line card board to the Ethernet switching unit and its relationship with the HiGig message in the embodiment of the present invention;

图8为本发明实施例中交换线卡板中的接口转换单元的一种内部结构示意图;FIG. 8 is a schematic diagram of an internal structure of an interface conversion unit in a switching line card board in an embodiment of the present invention;

图9为本发明实施例中交换线卡板中的接口转换单元的又一种内部结构示意图;FIG. 9 is another schematic diagram of the internal structure of the interface conversion unit in the switching line card board in the embodiment of the present invention;

图10为图8或图9所示接口转换单元的第一接收发送模块的内部结构示意图;Fig. 10 is a schematic diagram of the internal structure of the first receiving and sending module of the interface conversion unit shown in Fig. 8 or Fig. 9;

图11为图8或图9所示接口转换单元的第二接收发送模块的内部结构示意图;FIG. 11 is a schematic diagram of the internal structure of the second receiving and sending module of the interface conversion unit shown in FIG. 8 or FIG. 9;

图12为本发明实施例中交换线卡板接收外部报文并通过以太网交换单元向其它线卡板转发的流程图;Fig. 12 is a flow chart of receiving an external message by a switching line card board in an embodiment of the present invention and forwarding it to other line card boards through an Ethernet switching unit;

图13为本发明实施例中交换线卡板通过以太网交换单元接收其它线卡板报文的流程图;FIG. 13 is a flow chart of the switch line card board receiving messages from other line card boards through the Ethernet switching unit in the embodiment of the present invention;

图14为本发明实施例中路由线卡板接收外部报文并通过以太网交换单元向其它线卡板转发的流程图;FIG. 14 is a flow chart of the routing line card board receiving external messages and forwarding them to other line card boards through the Ethernet switching unit in the embodiment of the present invention;

图15为本发明实施例中路由线卡板通过以太网交换单元接收其它线卡板报文的流程图。FIG. 15 is a flow chart of a routing line card board receiving messages from other line card boards through an Ethernet switching unit in an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例中,为了降低管理复杂度,可在路由器中集成交换机的功能,使路由器和交换机由两个独立的设备变为一个路由交换设备。即,可设置一个或一个以上的包括L2/L3交换芯片的交换线卡板,使这些交换线卡板具有L2/L3交换机的功能,并将所述交换线卡板作为路由器的部分线卡板与 路由器的主控板相连接,各交换线卡板之间、交换线卡板与路由线卡板之间通过主控板的以太网交换单元进行报文的转发。In the embodiment of the present invention, in order to reduce the complexity of management, the function of the switch can be integrated in the router, so that the router and the switch can be changed from two independent devices into one routing and switching device. That is, one or more switching line card boards including L2/L3 switching chips can be set, so that these switching line card boards have the functions of L2/L3 switches, and the switching line card boards can be used as part of the line card boards of the router It is connected to the main control board of the router, and the Ethernet switching unit of the main control board performs message forwarding between each switching line card board, and between the switching line card board and the routing line card board.

为使本发明的目的、技术方案和优点更加清楚明白,下面结合实施例和附图,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the embodiments and accompanying drawings.

图2为本发明实施例中路由交换设备的示例性结构图。如图2所示,该设备包括:主控板、路由线卡板和交换线卡板。FIG. 2 is an exemplary structural diagram of a routing and switching device in an embodiment of the present invention. As shown in Figure 2, the device includes: a main control board, a routing line card board and a switching line card board.

其中,主控板包括主控引擎和以太网交换单元,主控引擎与以太网交换单元相连,以太网交换单元分别与各个路由线卡板和交换线卡板相连。交换线卡板中包括L2/L3交换芯片。其中,除了路由线卡板之间通过以太网交换单元进行报文的转发外,各交换线卡板之间、交换线卡板与路由线卡板之间通过以太网交换单元进行报文的转发。Wherein, the main control board includes a main control engine and an Ethernet switching unit, the main control engine is connected to the Ethernet switching unit, and the Ethernet switching unit is respectively connected to each routing line card board and switching line card board. The switch line card includes an L2/L3 switch chip. Among them, in addition to the packet forwarding between the routing line card boards through the Ethernet switching unit, the packet forwarding is performed between the switching line card boards, between the switching line card board and the routing line card board through the Ethernet switching unit .

具体实现时,交换线卡板中的L2/L3交换芯片可直接通过以太网与以太网交换单元相连接,此时各交换线卡板之间、交换线卡板与路由线卡板之间可基于现有的以太网协议通过以太网交换单元进行报文的转发。但这样会存在一些缺点,即:由于此时以太网交换单元本身也相当于一个三层交换芯片,若需要进行跨交换线卡板进行数据转发时,则报文通过交换线卡板-以太网交换单元-交换线卡板时相当于通过了三个交换芯片,这样一来,以太网交换单元中需要维护L2/L3转发表并同步老化更新,但这样的话,主控板的CPU会负担加重,并且当报文进行L2/L3转发时,三个交换芯片都进行转发表查找,这势必会造成资源的浪费;另外,每经过一个交换芯片进行查找时,超时计时器都被减一次,经过三个交换芯片就会被减三次,这势必容易造成超时而使报文被丢弃。During specific implementation, the L2/L3 switching chip in the switching line card board can be directly connected to the Ethernet switching unit through the Ethernet, and at this time, the switching line card boards, the switching line card board and the routing line card board can be Based on the existing Ethernet protocol, the packet is forwarded through the Ethernet switching unit. But there will be some disadvantages in this way, that is: since the Ethernet switching unit itself is also equivalent to a three-layer switching chip at this time, if data forwarding needs to be performed across the switching line card board, the message will pass through the switching line card board-Ethernet Switching unit-Switching the line card board is equivalent to passing through three switching chips. In this way, the Ethernet switching unit needs to maintain the L2/L3 forwarding table and synchronize the aging update, but in this case, the CPU of the main control board will be burdened. , and when the message is forwarded by L2/L3, all three switching chips will search the forwarding table, which will inevitably cause a waste of resources; in addition, each time a switching chip is searched, the timeout timer will be reduced once. Three switching chips will be subtracted three times, which will easily cause timeout and cause the message to be discarded.

为此,本发明实施例中考虑利用博通公司(Broadcom)定义的HiGig协议来进行L2/L3交换芯片的连接。HiGig协议的物理接口为IEEE 802.3ae标准的XAUI接口(万兆以太网连接单元接口),其中,每个通道3.125Gbps速率,8B/10B编码,接口速率为10Gbps;接口也能支持12Gbps,这时每个通道3.75Gbps速率。HiGig协议包括HiGig和HiGig+,其中,HiGig工作在 10Gbps模式,HiGig+工作在12Gbps模式。为描述方面,下文中均以HiGig为例进行描述。For this reason, in the embodiment of the present invention, it is considered to use the HiGig protocol defined by Broadcom to connect the L2/L3 switching chips. The physical interface of the HiGig protocol is the IEEE 802.3ae standard XAUI interface (10 Gigabit Ethernet connection unit interface), in which, each channel has a rate of 3.125Gbps, 8B/10B encoding, and the interface rate is 10Gbps; the interface can also support 12Gbps. 3.75Gbps rate per channel. The HiGig protocol includes HiGig and HiGig+, among which, HiGig works in 10Gbps mode, and HiGig+ works in 12Gbps mode. For the sake of description, HiGig is taken as an example for description below.

HiGig协议最基本的发送模式是在标准的以太网帧头前面增加HiGig头,HiGig头中包括源MOD ID(MOD地址,也可称为源芯片编号)、目的MOD ID(也可称为目的芯片编号)、报文类型、源端口号和目的端口号等信息。基于HiGig协议实现的交换网如图3所示,图3为现有技术中基于HiGig协议的交换网组网示意图。其中,主控板中的交换单元为支持HiGig协议的交换单元,线卡板为支持HiGig协议的L2/L3交换芯片,即交换网采用HiGig模式作为交换芯片的桥梁,把多个交换芯片相连接。The most basic transmission mode of the HiGig protocol is to add a HiGig header in front of the standard Ethernet frame header. The HiGig header includes the source MOD ID (MOD address, also called the source chip number), the destination MOD ID (also called the destination chip number), packet type, source port number, destination port number and other information. A switching network implemented based on the HiGig protocol is shown in FIG. 3 , and FIG. 3 is a schematic diagram of a switching network based on the HiGig protocol in the prior art. Among them, the switching unit in the main control board is a switching unit that supports the HiGig protocol, and the line card board is a L2/L3 switching chip that supports the HiGig protocol, that is, the switching network uses the HiGig mode as a bridge for the switching chip to connect multiple switching chips. .

各L2/L3交换芯片中存储有二层/三层转发表,二层转发表的表项和三层转发表的部分表项可如表1所示,在二层转发表中进行搜索时,搜索的关键字包括以太网报文中的目的MAC地址,搜索的结果包括目的MOD ID(如表1中的DST_MODID)和目的端口(如表1中的DEST_PORT);在三层转发表中进行搜索时,搜索的关键字包括以太网报文中的目的IP地址等,搜索的结果包括目的MOD ID(如表1中的DST_MODID)和目的端口号(如表1中的DEST_PORT)。Each L2/L3 switch chip stores a layer-2/layer-3 forwarding table. The entries in the layer-2 forwarding table and some entries in the layer-3 forwarding table can be shown in Table 1. When searching in the layer-2 forwarding table, The keyword of search comprises the purpose MAC address in the Ethernet message, and the result of search comprises purpose MOD ID (as DST_MODID in table 1) and purpose port (as DEST_PORT in table 1); Search in the three-layer forwarding table When, the keyword of search comprises the purpose IP address etc. in the Ethernet message, the result of search comprises purpose MOD ID (as DST_MODID in table 1) and purpose port number (as DEST_PORT in table 1).

Figure S2008101149060D00131
Figure S2008101149060D00131

表1Table 1

图3中各交换芯片从逻辑上看是一个整体,交换单元只是根据HiGig头中的目的MOD ID和报文类型完成报文的跨芯片传送。以二层转发为例,假设某个交换芯片A上学习到一个MAC地址为MAC A,对应交换芯片A的 第3端口。此时,交换单元的转发表无需修改,仅需要在交换芯片B的二层转发表上添加一个表项,内容为:目的MAC地址MAC_A对应的MOD ID为MOD_A,端口为3。当交换芯片B的一个端口接收到目的地址为MAC_A的报文时,查找二层转发表,得到MOD_A和端口号3,这些信息被添加到HiGig头中,报文被发送到交换单元,交换单元根据MOD_A把报文发送到交换芯片A,报文到达交换芯片A,从端口3发送出去。采用HiGig模式,目的MAC地址的学习不影响交换单元。同样对于三层转发,报文由入接口的交换芯片进行三层查表处理,交换单元根据HiGig头中的目的MOD ID和报文类型确定报文的转发。In Figure 3, each switching chip is logically a whole, and the switching unit only completes the cross-chip transmission of messages according to the destination MOD ID and message type in the HiGig header. Taking Layer 2 forwarding as an example, assume that a switch chip A learns a MAC address as MAC A, which corresponds to the third port of switch chip A. At this time, the forwarding table of the switching unit does not need to be modified. It is only necessary to add an entry to the Layer 2 forwarding table of the switching chip B. The content is: the MOD ID corresponding to the destination MAC address MAC_A is MOD_A, and the port is 3. When a port of switch chip B receives a message whose destination address is MAC_A, it looks up the Layer 2 forwarding table and obtains MOD_A and port number 3. These information are added to the HiGig header, and the message is sent to the switching unit, and the switching unit The message is sent to switch chip A according to MOD_A, the message reaches switch chip A, and is sent out through port 3. In the HiGig mode, the learning of the destination MAC address does not affect the switching unit. Also for the three-layer forwarding, the packet is processed by the switch chip of the incoming interface for three-layer table lookup, and the switching unit determines the forwarding of the packet according to the destination MOD ID and the packet type in the HiGig header.

可见,对于包括支持HiGig协议的L2/L3交换芯片的交换网,交换网中的不同交换芯片之间是通过MOD ID来识别的,而无需通过各自转发表中的MAC地址来识别,从而对于交换网中的交换单元来说,交换芯片对目的MAC地址的学习是透明的,交换单元无需关心,即交换单元只需知道不同交换芯片的MOD ID即可。本发明实施例中,交换单元虽然不是采用HiGig模式作为交换芯片的桥梁,但本发明中仍可基于HiGig原理,利用支持HiGig协议的L2/L3交换芯片来实现本发明中的交换线卡板,并且由于本发明实施例中采用以太网模式作为交换芯片的桥梁,因此为了使以太网交换单元能够识别来自交换线卡板的报文,可在每个交换线卡板中设置一个接口转换单元,用于完成L2/L3交换芯片的HiGig接口与以太网交换单元的以太网接口的相互转换,并由以太网交换单元根据接口转换单元发送的报文中与MODID一一对应的板MAC地址完成报文的跨芯片传送。It can be seen that for a switching network including L2/L3 switching chips supporting the HiGig protocol, different switching chips in the switching network are identified by MOD IDs instead of the MAC addresses in their respective forwarding tables. For the switching unit in the network, the learning of the switching chip to the destination MAC address is transparent, and the switching unit does not need to care about it, that is, the switching unit only needs to know the MOD ID of different switching chips. In the embodiment of the present invention, although the switching unit does not use the HiGig mode as a bridge for the switching chip, the present invention can still implement the switching line card board in the present invention by using the L2/L3 switching chip supporting the HiGig protocol based on the HiGig principle. And because the Ethernet mode is adopted as the bridge of the switching chip in the embodiment of the present invention, so in order to enable the Ethernet switching unit to recognize the message from the switching line card board, an interface conversion unit can be set in each switching line card board, It is used to complete the mutual conversion between the HiGig interface of the L2/L3 switching chip and the Ethernet interface of the Ethernet switching unit, and the Ethernet switching unit completes the report according to the MAC address of the board corresponding to the MODID in the message sent by the interface conversion unit. Cross-chip transmission of text.

如图4所示,图4示出了本发明实施例中交换线卡板的内部结构及其连接关系示意图。该交换线卡板包括:支持HiGig协议的L2/L3交换芯片和接口转换单元。其中,L2/L3交换芯片通过接口转换单元与以太网交换单元相连。As shown in FIG. 4, FIG. 4 shows a schematic diagram of the internal structure of the switch line card board and its connection relationship in the embodiment of the present invention. The switching line card board includes: an L2/L3 switching chip supporting the HiGig protocol and an interface conversion unit. Wherein, the L2/L3 switch chip is connected with the Ethernet switch unit through the interface conversion unit.

具体实现时,为了使各线卡板之间能够进行报文的转发,本发明实施例中为每个线卡板(包括交换线卡板和路由线卡板)设置一个对应槽位号的板 MAC地址和MOD ID,并在交换线卡板的接口转换单元和路由线卡板中设置各线卡板的板MAC地址与MOD ID的对应关系。如在交换线卡板的接口转换单元和路由线卡板中设置如表2所示的目的板MAC地址查询表,在该查询表中进行搜索时,搜索的关键字包括目的MOD ID(如表2中的DST_MODID),查询结果包括目的板MAC地址。进一步地,查询结果中还可以包括线卡板的类型,如用1表示交换线卡板,用0表示路由线卡板;或反之;或用其它形式表示的线卡板类型。或者,也可以在交换线卡板的接口转换单元和路由线卡板中另外设置一个线卡板类型查找表,如表3所示,在线卡板类型查询表中进行搜索时,搜索的关键字包括目的MOD ID或目的板MAC地址或与目的板MAC地址对应的槽位号或板号等(图3中以板MAC地址为例),查询结果中包括线卡板的类型,如用1表示交换线卡板,用0表示路由线卡板;或反之;或用其它形式表示的线卡板类型。During specific implementation, in order to enable message forwarding between line card boards, in the embodiment of the present invention, a board corresponding to the slot number is provided for each line card board (including the switching line card board and the routing line card board). MAC address and MOD ID, and set the corresponding relationship between the board MAC address and MOD ID of each line card board in the interface conversion unit of the exchange line card board and the routing line card board. As in the interface conversion unit of the switching line card board and the routing line card board, the destination board MAC address lookup table as shown in Table 2 is set, when searching in the lookup table, the keywords of the search include the purpose MOD ID (as shown in the table DST_MODID in 2), the query result includes the MAC address of the destination board. Further, the query result may also include the type of the line card, for example, 1 indicates the switching line card, and 0 indicates the routing line card; or vice versa; or the line card type expressed in other forms. Alternatively, a line card type lookup table can also be set in the interface conversion unit of the switching line card board and the routing line card board, as shown in Table 3, when searching in the line card board type lookup table, the keyword to be searched Including the target MOD ID or the MAC address of the target board or the slot number or board number corresponding to the MAC address of the target board. Switching line card board, use 0 to represent the routing line card board; or vice versa; or use other forms to represent the line card board type.

Figure S2008101149060D00151
Figure S2008101149060D00151

表2Table 2

Figure S2008101149060D00152
Figure S2008101149060D00152

表3table 3

其中,表2和表3中的板MAC地址和线卡板接收的外部以太网报文中的MAC地址不是一回事,这里的板MAC地址只是用于标明是哪个线卡板,即以太网交换单元是利用与MOD ID一一对应的板MAC地址来识别各线卡板的。Among them, the board MAC address in Table 2 and Table 3 is not the same as the MAC address in the external Ethernet message received by the line card board. The board MAC address here is only used to indicate which line card board it is, that is, the Ethernet The switching unit uses the board MAC address corresponding to the MOD ID to identify each line card board.

当交换线卡板之间或交换线卡板与路由线卡板之间需要进行跨板转发时,线卡板在接收到来自外部的报文后,根据报文中的目的地址查找目的MOD ID和目的端口等信息,并将这些信息封装在添加在报文前的HiGig头 中,之后根据目的MOD ID查找对应的目的板MAC地址等信息,并将这些信息封装在添加在HiGig头前的MAC头中,之后将报文发送给以太网交换单元;以太网交换单元根据报文中的目的板MAC地址发送给相应的目的线卡板。目的线卡板剥离报文中的MAC头和HiGig头后,按照报文的目的端口号发送出去。When cross-board forwarding is required between switching line cards or between switching line cards and routing line cards, the line card will search for the destination MOD ID and destination port and other information, and encapsulate this information in the HiGig header added before the message, and then find the corresponding destination board MAC address and other information according to the destination MOD ID, and encapsulate this information in the MAC header added before the HiGig header , and then send the message to the Ethernet switching unit; the Ethernet switching unit sends the message to the corresponding destination line card according to the MAC address of the destination board in the message. After the destination line board strips the MAC header and HiGig header in the message, it sends out the message according to the destination port number of the message.

下面先对本发明实施例中的交换线卡板进行详细描述:The switching line card board in the embodiment of the present invention is firstly described in detail below:

(1)交换线卡板通过L2/L3交换芯片接收来自外部的以太网报文。(1) The switch line card board receives Ethernet packets from the outside through the L2/L3 switch chip.

交换线卡板中的L2/L3交换芯片接收到外部的以太网报文,该以太网报文格式可如图5所示,图5示出了现有技术中以太网报文的一种格式示意图。报文中各字段对应的含义如表4所示:The L2/L3 switching chip in the switch line card board receives an external Ethernet message, and the format of the Ethernet message can be as shown in Figure 5, and Figure 5 shows a format of the Ethernet message in the prior art schematic diagram. The corresponding meanings of each field in the message are shown in Table 4:

  字段field   长度 length   含义meaning   IPGIPG   12B(字节)12B (byte)   以太网帧间隙,12个字节Ethernet frame gap, 12 bytes   PreamblePreamble   8B8B   以太网帧前导码Ethernet frame preamble   MAC_DAMAC_DA   6B6B   目的MAC地址Destination MAC address   MAC_SAMAC_SA   6B6B   源MAC地址source MAC address   TPIDTPID   2B2B   VLAN协议类型,0x8100,VLAN Header的前两个  字节VLAN protocol type, 0x8100, the first two bytes of the VLAN Header   COSCOS   4b4b   报文优先级,VLAN Header的后两个字节的首4位Packet priority, the first 4 bits of the last two bytes of the VLAN Header   VIDVID   12b12b   报文VLAN ID,VLAN Header的后两个字节的后12  位Packet VLAN ID, the last 12 bits of the last two bytes of the VLAN Header   Packet_DataPacket_Data   不定indeterminate   报文有效负荷message payload   FCSFCS   4B4B   以太网帧的CRC校验和CRC checksum of Ethernet frame

表4Table 4

L2/L3交换芯片根据报文信息,如目的MAC地址,查找二层/三层转发表,在查找到相应的目的出端口信息时,若该出端口为自身的端口,则L2/L3交换芯片直接将该报文复制到对应的端口进行发送,若该出端口为其他线卡板的端口,即需要进行跨板转发,则L2/L3交换芯片将目的出端口信息,如DST_MODID和DEST_PORT等信息,封装在HiGig头中,形成HiGig报文(若进行三层转发,则还会更新原以太网报文的MAC头)。有些情况下,可能L2/L3交换芯片的转发表较小,则在上述查表时,有可能查找不到相应 的目的出端口信息,这种情况下,可将报文丢掉,或者,可将报文发送给一个默认的线卡板。通常情况下,由于路由线卡板的路由转发表的信息较多,因此默认线卡板可以是一个路由线卡板。具体实现时,可预先设置一个特定的DST_MODID和DEST_PORT,并在接口转换单元的板MAC地址查找表中设置该特定DST_MODID与默认线卡板的板MAC地址的对应关系表项,则L2/L3交换芯片在未查到相应的目的出端口信息时,将这个特定的DST_MODID和DEST_PORT以及其它HiGig头的相关信息封装在HiGig头中,形成HiGig报文。The L2/L3 switching chip searches the Layer 2/Layer 3 forwarding table according to the message information, such as the destination MAC address. When finding the corresponding destination outbound port information, if the outbound port is its own port, the L2/L3 switching chip Directly copy the message to the corresponding port for sending. If the outgoing port is the port of another line card board, it needs to be forwarded across boards. The L2/L3 switching chip will send the destination outgoing port information, such as DST_MODID and DEST_PORT, etc. , encapsulated in the HiGig header to form a HiGig message (if three-layer forwarding is performed, the MAC header of the original Ethernet message will also be updated). In some cases, the forwarding table of the L2/L3 switching chip may be relatively small, and the corresponding destination output port information may not be found during the above table lookup. In this case, the message can be discarded, or the The message is sent to a default line card board. Usually, since the routing and forwarding table of the routing line card has more information, the default line card may be a routing line card. During specific implementation, a specific DST_MODID and DEST_PORT can be set in advance, and the table entry corresponding to the specific DST_MODID and the board MAC address of the default line card board is set in the board MAC address lookup table of the interface conversion unit, then the L2/L3 exchange When the chip does not find the corresponding destination port information, it encapsulates the specific DST_MODID, DEST_PORT and other HiGig header related information in the HiGig header to form a HiGig message.

如图6所示,图6示出了现有技术中HiGig报文的一种格式示意图。可见,HiGig报文对图5所示以太网报文格式进行了部分更改,去掉了图5所示以太网报文的8个字节的前导码和4个字节的帧间隙,并添加了12个字节的HiGig头,此外,报文的FCS也进行了重新计算,以包括HiGig头部分的校验。As shown in FIG. 6 , FIG. 6 shows a schematic diagram of a format of a HiGig message in the prior art. It can be seen that the HiGig message has partially changed the format of the Ethernet message shown in Figure 5, removed the 8-byte preamble and the 4-byte frame gap of the Ethernet message shown in Figure 5, and added 12-byte HiGig header. In addition, the FCS of the message is also recalculated to include the checksum of the HiGig header.

其中,对于L2/L3交换芯片来说,无论线卡板的类型是路由线卡板还是交换线卡板,其处理过程都可以是一样的。Wherein, for the L2/L3 switching chip, no matter the type of the line card is a routing line card or a switching line card, the processing process may be the same.

L2/L3交换芯片将形成的HiGig报文传递给接口转换单元,接口转换单元接收到来自L2/L3交换芯片的HiGig报文后,根据HiGig头中的目的MODID查找板MAC地址与MOD ID的对应关系表,如表2所示的目的板MAC地址查找表,查找到目的板MAC地址后,在HiGig报文前添加以太网交换单元能够识别的包括目的板MAC地址的MAC头信息,从而将HiGig报文转换为以太网报文,之后,接口转换单元会将转换后的以太网报文发送给以太网交换单元。其中,若HiGig头中的目的MOD ID为预先设置的特定的DST_MODID,则接口转换单元在添加MAC头信息时,可在MAC头中添加一个标识位,以表示当前报文的目的线卡板为查表失败后的默认线卡板。The L2/L3 switching chip passes the formed HiGig message to the interface conversion unit. After the interface conversion unit receives the HiGig message from the L2/L3 switching chip, it searches for the correspondence between the MAC address of the board and the MOD ID according to the purpose MOD ID in the HiGig header. The relationship table, such as the target board MAC address lookup table shown in Table 2, after finding the target board MAC address, add the MAC header information that can be recognized by the Ethernet switching unit including the target board MAC address before the HiGig message, so that the HiGig The message is converted into an Ethernet message, and then the interface conversion unit sends the converted Ethernet message to the Ethernet switching unit. Wherein, if the purpose MOD ID in the HiGig header is a preset specific DST_MODID, then the interface conversion unit can add an identification bit in the MAC header when adding the MAC header information to indicate that the destination line card board of the current message is The default line card board after the table lookup fails.

接口转换单元转换后的以太网报文的格式如图7所示,图7示出了本发明实施例中线卡板发送给以太网交换单元的以太网报文的格式及其与HiGig报文的关系示意图。该以太网报文中各字段对应的含义如表5所示:The format of the Ethernet message converted by the interface conversion unit is shown in Figure 7, and Figure 7 shows the format of the Ethernet message sent by the line card board to the Ethernet switching unit in the embodiment of the present invention and its relationship with the HiGig message Relationship diagram. The corresponding meanings of each field in the Ethernet message are shown in Table 5:

字段field  长度 length 含义meaning IPGIPG  12B12B 以太网帧间隙,12个字节Ethernet frame gap, 12 bytes PreamblePreamble  8B8B 以太网帧前导码Ethernet frame preamble MAC_DAMAC_DA  6B6B 目的板MAC地址MAC address of the target board MAC_SAMAC_SA  6B6B 源板MAC地址Source board MAC address TPIDTPID  2B2B VLAN协议类型,0x8100,VLAN Header的前两个字   节VLAN protocol type, 0x8100, the first two bytes of VLAN Header COSCOS  4b4b 报文优先级,VLAN Header的后两个字节的首4位Packet priority, the first 4 bits of the last two bytes of the VLAN Header VIDVID  12b12b 报文VLAN ID,VLAN Header的后两个字节的后12位(对于万兆以太网交换芯片无实际意义,如固定为1)Packet VLAN ID, the last 12 bits of the last two bytes of the VLAN Header (it has no practical significance for 10 Gigabit Ethernet switch chips, such as fixed to 1) HiGig HeaderHiGig Header  12B12B HiGig头HiGig head Packet_DataPacket_Data  不定indeterminate 报文有效负荷(包括了原报文的MAC头信息)Message payload (including the MAC header information of the original message) FCSFCS  4B4B 更新后以太网帧的CRC校验和CRC checksum of the Ethernet frame after the update

表5table 5

由于支持HiGig协议的L2/L3交换芯片在HiGig报文中都是添加的标准HiGig头,以便于其它支持HiGig协议的芯片能够根据HiGig头识别出该HiGig报文,本发明实施例中,在将HiGig报文转换为以太网报文时,由于HiGig头中的有些信息已失去了其用于识别HiGig报文的意义,如用于表示HiGig报文开始的字段“START_OF_FRAME(SOF)”等,因此为了有效利用带宽,避免无效字节占用报文长度,可对HiGig头进行简化,将其中不必要的字节省略掉,只保留其中的必要信息,如将HiGig头从原来的12字节简化为包括表6所示的6字节,即表6中列出了一种简化后的HiGig头中的各字段的组成及含义。Because the L2/L3 switching chips supporting the HiGig protocol all add standard HiGig headers in the HiGig message, so that other chips supporting the HiGig protocol can identify the HiGig message according to the HiGig header, in the embodiment of the present invention, in the When a HiGig packet is converted into an Ethernet packet, some information in the HiGig header has lost its meaning for identifying the HiGig packet, such as the field "START_OF_FRAME(SOF)" used to indicate the beginning of the HiGig packet, etc., so In order to effectively utilize the bandwidth and avoid invalid bytes occupying the length of the message, the HiGig header can be simplified, unnecessary bytes are omitted, and only the necessary information is retained. For example, the HiGig header is simplified from the original 12 bytes to Including the 6 bytes shown in Table 6, that is, Table 6 lists the composition and meaning of each field in a simplified HiGig header.

字段field  长度 length 含义meaning SRC_MODIDSRC_MODID  7bit7bit 源芯片编号Source chip number DST_MODIDDST_MODID  7bit7bit 目的芯片编号Destination chip number VLANVLAN  16bit16bit VLAN信息,包括VLAN_PRI、VLAN_CFI、 VID_HIGH、VID_LOWVLAN information, including VLAN_PRI, VLAN_CFI, VID_HIGH, VID_LOW  OPCODEOPCODE  3bit3bit 报文类型,单播还是组播等Packet type, unicast or multicast, etc. PFMPFM  2bit2bit 端口过滤模式,对组播用Port filtering mode, for multicast SRC_PORT_TGIDSRC_PORT_TGID  6bit6bit 源端口号source port number DEST_PORTDEST_PORT  5bit5bit 目的端口号destination port number COSCOS  2bit2bit 服务优先级service priority

表6 Table 6

当然,简化的HiGig头所包括的内容并不限于表6所示的内容,也可以为其它的内容,此处不再一一列举。Of course, the content included in the simplified HiGig header is not limited to the content shown in Table 6, and may also be other content, which will not be listed here.

相应地,接口转换单元在接收到来自L2/L3交换芯片的HiGig报文后,会先剥离该标准的HiGig头,并添加简化后的HiGig头,之后,将查找到的目的板MAC地址封装在位于该简化后的HiGig头前面的MAC头中。此时,图7下半部分图中所示的以太网报文格式中的HiGig头变为简化后的HiGig头,对应地,表5中的12字节的HiGig头也变为6字节的简化后的HiGig头。Correspondingly, after the interface conversion unit receives the HiGig message from the L2/L3 switching chip, it will first strip the standard HiGig header, and add a simplified HiGig header, and then encapsulate the found destination board MAC address in the in the MAC header in front of this simplified HiGig header. At this time, the HiGig header in the Ethernet packet format shown in the lower part of Figure 7 becomes a simplified HiGig header, and correspondingly, the 12-byte HiGig header in Table 5 also becomes a 6-byte HiGig header. Simplified HiGig header.

进一步地,为了防止报文阻塞,在接口转换单元中可对应每个线卡板设置一个缓存通道,如FIFO通道,用于存储对应线卡板的报文;并在接口转换单元中设置一个流量管理控制模块,用于监测本线卡板各FIFO通道的FIFO缓存状态,根据监测到的FIFO缓存状态,定时向其它线卡板发送流控信息、状态信息、分配资源信息等,用于其他线卡板暂停向本线卡板发送数据报文。这些信息可以通过特定的控制报文实现。本线卡板接口转换单元的流量管理控制模块用于轮循或基于优先级地对FIFO通道中的报文进行调度。Further, in order to prevent message blocking, a buffer channel, such as a FIFO channel, can be set corresponding to each line card board in the interface conversion unit, for storing messages corresponding to the line card board; and a flow rate is set in the interface conversion unit The management control module is used to monitor the FIFO buffer status of each FIFO channel of the card board of this line, and regularly send flow control information, status information, resource allocation information, etc. The card board suspends sending data packets to the card board of this line. These information can be realized through specific control messages. The flow management control module of the interface conversion unit of the line card board is used to schedule the messages in the FIFO channel round-robin or based on priority.

因此,为了表示报文类型,如报文为普通报文还是上述特定的用于流量控制的控制报文,可在图7下半部分的图中另外设置对应的报文类型字段。或者,考虑到本发明实施例中连接到路由交换设备上的线卡板的数量有限,因此用于标识各线卡板的板MAC地址可固定配置,而无需根据以太网报文的源MAC地址学习,这样的话,发送给以太网交换单元的以太网报文中的源板MAC地址就没有用了,因此可利用图7下半部分图中的源板MAC地址“MAC_SA”的字段的6个字节来表示报文类型,为了标明该报文的来源,可对应不同线卡板的槽位号或板号设置不同的报文类型标识。如表7所示,表7示出了路由交换设备包括9个线卡板时的报文类型字段内容示意图。Therefore, in order to indicate the message type, such as whether the message is a normal message or the above-mentioned specific control message for flow control, a corresponding message type field can be additionally set in the lower part of FIG. 7 . Alternatively, considering the limited number of line card boards connected to the routing and switching equipment in the embodiment of the present invention, the board MAC address used to identify each line card board can be fixedly configured without the need to use the source MAC address of the Ethernet message. Learning, in this case, the source board MAC address in the Ethernet message sent to the Ethernet switching unit is useless, so the 6 fields of the source board MAC address "MAC_SA" in the lower part of Figure 7 can be used byte to indicate the message type, in order to mark the source of the message, different message type identifiers can be set corresponding to the slot numbers or board numbers of different line card boards. As shown in Table 7, Table 7 shows a schematic diagram of the content of the message type field when the routing and switching device includes 9 line cards.

  报文类别message type   字节1   (Byte1)Byte 1 (Byte1)   字节2   (Byte2)Byte 2 (Byte2)   字节3   (Byte3)Byte 3 (Byte3)   字节4   (Byte4)Byte 4 (Byte4)  字节5  (Byte5)Byte 5 (Byte5)   字节6   (Byte6)Byte 6 (Byte6)   数据报文datagram   0000   40~4840~48   标识位Identification bit   控制报文Control message   0000   C0~C8C0~C8   0000   0000   0000   类型位type bit

表7Table 7

由表7可见,本实施例中利用源板MAC地址对应的字段的次高字节表示报文类型,对于9个线卡板的情况,本实施例中,利用40~48表示各线卡板的数据报文,利用C0~C8表示各线卡板的控制报文,对于其它字节可留作保留位。此外,前面提到在L2/L3交换芯片查表失败后,可将报文发送给默认线卡板,相应的,需要在MAC头中添加一个标识位,以表示当前报文的目的线卡板为查表失败后的默认线卡板,因此本实施例中在发送数据报文时,可利用源板MAC地址对应的字段的最后一个字节作为该标识位。另外,又由于控制报文可表示流控信息、状态信息、分配资源信息等类型的信息,因此可利用源板MAC地址对应的字段的最后一个字节作为类型位,以表示当前报文的类型,不同类型位具体定义的报文格式可根据实际情况进行设置,此处不做详细说明。此外,还可有其它形式的字节定义,此处不再一一列举。It can be seen from Table 7 that in this embodiment, the second-highest byte of the field corresponding to the MAC address of the source board is used to indicate the message type. For the case of 9 line card boards, in this embodiment, 40 to 48 are used to represent each line card board For data messages, C0~C8 are used to represent the control messages of each line card board, and other bytes can be reserved as reserved bits. In addition, as mentioned above, after the L2/L3 switching chip fails to look up the table, the message can be sent to the default line card board. Correspondingly, an identification bit needs to be added in the MAC header to indicate the destination line card board of the current message. It is the default line card board after the table lookup fails, so in this embodiment, when sending a data packet, the last byte of the field corresponding to the source board MAC address can be used as the identification bit. In addition, since the control message can represent information such as flow control information, status information, and resource allocation information, the last byte of the field corresponding to the source board MAC address can be used as the type bit to indicate the type of the current message , the message format specifically defined by different types of bits can be set according to the actual situation, and will not be described in detail here. In addition, there may be other forms of byte definitions, which will not be listed here.

相应地,接口转换单元在将HiGig报文转换为以太网报文时,可在源板MAC地址“MAC_SA”对应的字段中,根据报文的类型添加相应的内容。例如,当欲发送报文是数据报文时,可将源板MAC地址对应的字段最高1个字节更改为0×00,次高1个字节根据本线卡板所在槽位号或板号更改为0×40~0×48(9个线卡板槽位时)中的对应的一个,后面的4个字节内容无意义,最后1个字节表明数据报文在L2/L3交换芯片进行查表转发时是否查表失败;当欲发送报文是控制报文时,可将源板MAC地址的最高1个字节更改为0×00,次高1个字节根据本单板所在槽位号或板号更改为0×C0~0×C8(9个线卡板槽位时),中间3个字节无意义保留为0×00,最后1个字节标明各种控制报文的类型。Correspondingly, when the interface conversion unit converts the HiGig message into the Ethernet message, it can add corresponding content according to the type of the message in the field corresponding to the MAC address "MAC_SA" of the source board. For example, when the message to be sent is a data message, the highest 1 byte of the field corresponding to the MAC address of the source board can be changed to 0×00, and the next highest 1 byte is based on the slot number or board Change the serial number to one of 0×40~0×48 (when there are 9 line card slots), the content of the following 4 bytes is meaningless, and the last 1 byte indicates that the data packet is exchanged at L2/L3 Whether the table lookup fails when the chip performs table lookup and forwarding; when the message to be sent is a control message, the highest 1 byte of the source board MAC address can be changed to 0×00, and the next highest 1 byte is based on the The slot number or board number is changed to 0×C0~0×C8 (when there are 9 line card slots), the middle 3 bytes are meaningless and reserved as 0×00, and the last 1 byte indicates various control reports. type of text.

(2)交换线卡板通过接口转换单元接收来自交换网的以太网报文。(2) The switching line card board receives the Ethernet message from the switching network through the interface conversion unit.

以太网交换单元根据接收到来自线卡板的报文后,根据该报文中的目的板MAC地址将报文转发给目的线卡板。After receiving the message from the line card board, the Ethernet switching unit forwards the message to the destination line card board according to the MAC address of the destination board in the message.

若目的线卡板为交换线卡板,则该交换线卡板的接口转换单元接收到来自以太网交换单元的报文,会剥离所述报文的MAC头,将所述报文还原为HiGig报文,将还原后的HiGig报文传递给L2/L3交换芯片。其中,若为了有效利用带宽而采用简化的HiGig头的话,则接口转换单元在剥离所述报文的MAC头之后,进一步地剥离简化后的HiGig头,并添加标准的HiGig头,从而将报文还原为HiGig报文。此外,接口转换单元还根据源板MAC地址字段中携带的源线卡板的槽位号或板号识别出报文是用于流量控制的控制报文还是普通报文,对于用于流量控制的控制报文交由实现流量管理功能的模块处理,该模块可使用第6字节的识别位判断具体的控制报文类型。If the destination line card board is a switching line card board, the interface conversion unit of the switching line card board receives the message from the Ethernet switching unit, strips the MAC header of the message, and restores the message to HiGig message, and pass the restored HiGig message to the L2/L3 switching chip. Wherein, if a simplified HiGig header is used in order to effectively utilize bandwidth, the interface conversion unit further strips the simplified HiGig header after stripping the MAC header of the message, and adds a standard HiGig header, thereby converting the message Restored to HiGig packets. In addition, the interface conversion unit also recognizes whether the message is a control message for flow control or an ordinary message according to the slot number or board number of the source line card carried in the source board MAC address field. The control message is processed by the module that implements the flow management function, and the module can use the identification bit of the 6th byte to judge the specific type of the control message.

L2/L3交换芯片接收到来自接口转换单元的HiGig报文后,剥离掉报文中的HiGig头,并根据HiGig头中的目的端口号将报文从相应端口发送出去。After receiving the HiGig message from the interface conversion unit, the L2/L3 switching chip strips off the HiGig header in the message, and sends the message out from the corresponding port according to the destination port number in the HiGig header.

通过上述(1)和(2)的描述,对本发明实施例中交换线卡板的处理过程进行了详细描述。具体实现时,交换线卡板中的接口转换单元的内部结构可有多种具体实现形式,下面列举其中两种:Through the description of (1) and (2) above, the processing process of the switching line card board in the embodiment of the present invention is described in detail. In specific implementation, the internal structure of the interface conversion unit in the switch line card board can have multiple specific implementation forms, two of which are listed below:

第一种:The first:

图8示出了接口转换单元的一种内部结构示意图。如图8所示,该接口转换单元包括:与路由线卡板和交换线卡板总数数量一致的缓存通道、第一接收发送模块、第二接收发送模块、流量管理控制模块、第一报文更改模块和第二报文更改模块。FIG. 8 shows a schematic diagram of an internal structure of an interface conversion unit. As shown in Figure 8, the interface conversion unit includes: a cache channel consistent with the total number of routing line card boards and switching line card boards, a first receiving and sending module, a second receiving and sending module, a flow management control module, and a first packet A modification module and a second message modification module.

其中,每个缓存通道对应一个线卡板,并且包括正向通道和反向通道,分别用于存储对应线卡板两个方向的报文。Wherein, each buffer channel corresponds to a line card board, and includes a forward channel and a reverse channel, which are respectively used to store messages in two directions corresponding to the line card board.

第一接收发送模块用于接收来自L2/L3交换芯片的HiGig报文,根据所述报文中的目的MOD ID,将所述报文发送到相应缓存通道的正向通道中;并接收来自第二报文更改模块的报文,将所述报文发送给L2/L3交换芯片。The first receiving and sending module is used to receive the HiGig message from the L2/L3 switch chip, according to the purpose MOD ID in the message, send the message to the forward channel of the corresponding buffer channel; and receive the message from the first The second message modifies the message of the module, and sends the message to the L2/L3 switching chip.

第二接收发送模块用于接收来自以太网交换单元的以太网报文,根据所述 报文中的源板MAC地址字段,将所述报文发送到相应的缓存通道的反向通道中;并接收来自第一报文更改模块的报文,将所述报文发送给以太网交换单元。The second receiving and sending module is used to receive the Ethernet message from the Ethernet switching unit, and sends the message to the reverse channel of the corresponding buffer channel according to the source board MAC address field in the message; and Receive the message from the first message modification module, and send the message to the Ethernet switching unit.

流量管理控制模块用于监测本线卡板各缓存通道的缓存状态,根据监测到的缓存状态,定时向其它线卡板发送用于流量控制的控制报文,用于其它线卡板暂停向本线卡板发送数据报文;轮循或基于优先级地从相应缓存通道的正向通道或反向通道中调度报文,将从正向通道中调度的报文提供给第一报文更改模块,将从反向通道中调用的报文提供给第二报文更改模块。The flow management control module is used to monitor the cache status of each buffer channel of the local line card board, and regularly send control messages for flow control to other line card boards according to the monitored cache status The line card board sends the data message; schedules the message from the forward channel or the reverse channel of the corresponding buffer channel in round robin or based on priority, and provides the message scheduled from the forward channel to the first message modification module , providing the message invoked from the reverse channel to the second message modification module.

第一报文更改模块用于接收流量管理控制模块提供的报文,剥离所述报文中的HiGig头,根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板MAC地址的对应关系表,得到目的板MAC地址,在所述报文前封装简化的HiGig头,并将所述目的板MAC地址封装在位于简化的HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给第二接收发送模块。The first message modification module is used to receive the message provided by the flow management control module, strip the HiGig header in the message, and search for the MOD ID and board MAC stored in itself according to the purpose MOD ID in the message HiGig header Correspondence table of addresses, obtain destination board MAC address, encapsulate simplified HiGig header before described message, and described destination board MAC address is encapsulated in the MAC header that is positioned at the front of simplified HiGig header, constitutes Ethernet message , sending the Ethernet packet to the second receiving and sending module.

其中,若实施例中不采用简化的HiGig头,则第一报文更改模块在接收流量管理控制模块提供的报文后,不剥离报文的HiGig头,而是在得到目的板MAC地址后,直接将目的板MAC地址封装在位于HiGig头前面的MAC头中,构成以太网报文。Wherein, if the simplified HiGig header is not used in the embodiment, the first message modification module does not strip the HiGig header of the message after receiving the message provided by the flow management control module, but after obtaining the MAC address of the destination board, Directly encapsulate the MAC address of the target board in the MAC header located in front of the HiGig header to form an Ethernet packet.

第二报文更改模块用于接收所述流量管理控制模块提供的报文,剥离所述报文中的MAC头和简化的HiGig头,在报文中添加标准的HiGig头,还原成HiGig报文,将所述HiGig报文发送给第一接收发送模块。The second message modification module is used to receive the message provided by the traffic management control module, strip the MAC header and the simplified HiGig header in the message, add a standard HiGig header to the message, and restore it to a HiGig message , sending the HiGig message to the first receiving and sending module.

其中,若实施例中不采用简化的HiGig头,则第二报文更改模块在接收流量管理控制模块提供的报文后,只剥离报文中的MAC头即可完成HiGig报文的还原。Wherein, if the simplified HiGig header is not used in the embodiment, after receiving the message provided by the traffic management control module, the second message modification module only strips the MAC header in the message to complete the restoration of the HiGig message.

第二种:The second type:

图9示出了接口转换单元的又一种内部结构示意图。如图9所示,该接口转换单元也包括:与路由线卡板和交换线卡板总数数量一致的缓存通道、第一接收发送模块、第二接收发送模块、流量管理控制模块、第一报文更改 模块和第二报文更改模块,只是各模块之间的连接关系发生了变化。具体如下:Fig. 9 shows another schematic diagram of the internal structure of the interface conversion unit. As shown in Figure 9, the interface conversion unit also includes: a cache channel consistent with the total number of routing line card boards and switching line card boards, a first receiving and sending module, a second receiving and sending module, a flow management control module, a first report The document modification module and the second message modification module, only the connection relationship between the modules has changed. details as follows:

每个缓存通道一个对应一个线卡板,并且包括正向通道和反向通道,分别用于存储对应线卡板两个方向的报文。Each buffer channel corresponds to a line card board, and includes a forward channel and a reverse channel, which are respectively used to store messages in two directions corresponding to the line card board.

流量管理控制模块用于监测本线卡板各缓存通道的缓存状态,根据监测到的缓存状态,定时向其它线卡板发送用于流量控制的控制报文,用于其它线卡板暂停向本线卡板发送数据报文;轮循或基于优先级地从相应缓存通道的正向通道或反向通道中调度报文,将从正向通道中调度的报文提供给第二接收发送模块,将从反向通道中调用的报文提供给第一接收发送模块。The flow management control module is used to monitor the cache status of each buffer channel of the local line card board, and regularly send control messages for flow control to other line card boards according to the monitored cache status The line card board sends the data message; schedules the message from the forward channel or the reverse channel of the corresponding buffer channel in round robin or based on priority, and provides the message scheduled from the forward channel to the second receiving and sending module, Provide the message invoked from the reverse channel to the first receiving and sending module.

第一接收发送模块用于接收来自L2/L3交换芯片的HiGig报文,将所述报文发送给第一报文更改模块;接收流量管理控制模块调度的报文,将所述报文发送给L2/L3交换芯片。The first receiving and sending module is used to receive the HiGig message from the L2/L3 switching chip, and send the message to the first message modification module; receive the message scheduled by the flow management control module, and send the message to L2/L3 switch chip.

第一报文更改模块用于接收来自第一接收发送模块的HiGig报文,剥离所述报文中的HiGig头,根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板MAC地址的对应关系表,得到目的板MAC地址,在所述报文前封装简化的HiGig头,并将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,根据所述目的板MAC地址,将所述以太网报文发送送到相应缓存通道的正向通道中。The first message modification module is used to receive the HiGig message from the first receiving and sending module, strips the HiGig header in the message, searches the MOD ID and stored in itself according to the purpose MOD ID in the message HiGig header Board MAC address correspondence table, obtain destination board MAC address, encapsulate simplified HiGig head before described message, and described destination board MAC address is encapsulated in the MAC head that is positioned at the front of described HiGig head, constitutes Ethernet message, and send the Ethernet message to the forward channel of the corresponding buffer channel according to the MAC address of the destination board.

其中,若实施例中不采用简化的HiGig头,则第一报文更改模块在接收流量管理控制模块提供的报文后,不剥离报文的HiGig头,而是在得到目的板MAC地址后,直接将目的板MAC地址封装在位于HiGig头前面的MAC头中,构成以太网报文。Wherein, if the simplified HiGig header is not used in the embodiment, the first message modification module does not strip the HiGig header of the message after receiving the message provided by the flow management control module, but after obtaining the MAC address of the destination board, Directly encapsulate the MAC address of the target board in the MAC header located in front of the HiGig header to form an Ethernet packet.

第二接收发送模块用于接收来自以太网交换单元的以太网报文,将所述报文发送给第二报文更改模块;接收流量管理控制模块调度的报文,将所述报文发送给以太网交换单元;The second receiving and sending module is used to receive the Ethernet message from the Ethernet switching unit, and send the message to the second message modification module; receive the message scheduled by the flow management control module, and send the message to the Ethernet switching unit;

第二报文更改模块用于接收来自第二接收发送模块的以太网报文,剥离所述报文中的MAC头和简化的HiGig头,在报文中添加标准的HiGig头, 构成HiGig报文,根据所述报文中的源MOD ID,将所述HiGig报文发送到相应的缓存通道的反向通道中。The second message modification module is used to receive the Ethernet message from the second receiving and sending module, strip the MAC header and the simplified HiGig header in the message, and add a standard HiGig header to the message to form a HiGig message , sending the HiGig message to the reverse channel of the corresponding cache channel according to the source MOD ID in the message.

其中,若实施例中不采用简化的HiGig头,则第二报文更改模块在接收流量管理控制模块提供的报文后,只剥离报文中的MAC头即可完成HiGig报文的还原。Wherein, if the simplified HiGig header is not used in the embodiment, after receiving the message provided by the traffic management control module, the second message modification module only strips the MAC header in the message to complete the restoration of the HiGig message.

此外,由于支持HiGig协议的L2/L3交换芯片的物理接口为XAUI接口,XAUI接口为串行接口,为了便于以太网报文处理,可将该XAUI接口转换为XGMII接口(万兆独立于媒体的接口),该XGMII接口为并行接口。In addition, since the physical interface of the L2/L3 switch chip supporting the HiGig protocol is an XAUI interface, and the XAUI interface is a serial interface, in order to facilitate Ethernet packet processing, the XAUI interface can be converted to an XGMII interface (10 Gigabit media-independent interface), the XGMII interface is a parallel interface.

为此,接口转换单元的第一接收发送模块的内部结构可如图10所示,包括:第一串并转换模块和第一适配识别模块。For this reason, the internal structure of the first receiving and sending module of the interface conversion unit may be shown in FIG. 10 , including: a first serial-to-parallel conversion module and a first adaptation identification module.

其中,第一串并转换模块用于通过XAUI接口接收来自L2/L3交换芯片的报文,将所述报文通过并行的XGMII接口传递给第一适配识别模块;通过并行的XGMII接口接收来自第一适配识别模块的报文,将所述报文通过串行的XAUI接口传递给L2/L3交换芯片。Wherein, the first serial-to-parallel conversion module is used to receive the message from the L2/L3 switching chip through the XAUI interface, and transmit the message to the first adaptation identification module through the parallel XGMII interface; The first adaptation identifies the message of the module, and transmits the message to the L2/L3 switch chip through the serial XAUI interface.

第一适配识别模块,用于对第一串并转换模块发送的HiGig报文和其它模块发送的HiGig报文进行适配和识别。其中,对于图8所示接口转换单元来说,这里的其它模块指的是流量管理控制模块;对于图9所示接口转换单元来说,这里的其它模块指的是第二报文更改模块。The first adaptation identification module is configured to adapt and identify the HiGig message sent by the first serial-to-parallel conversion module and the HiGig message sent by other modules. Wherein, for the interface conversion unit shown in FIG. 8 , the other modules here refer to the flow management control module; for the interface conversion unit shown in FIG. 9 , the other modules here refer to the second packet modification module.

当然对于布线长度较短的情况下,也可无需设置上述第一串并转换模块。Of course, in the case of a short wiring length, the above-mentioned first serial-to-parallel conversion module may not be required.

此外,本发明实施例中的以太网交换单元可以为各种类型的以太网交换单元,如可以为万兆以太网交换单元或千兆以太网交换单元等。In addition, the Ethernet switching unit in the embodiment of the present invention may be various types of Ethernet switching units, for example, may be a 10 Gigabit Ethernet switching unit or a Gigabit Ethernet switching unit.

以以太网交换单元为万兆以太网交换单元的情况为例,此时以太网交换单元与所述路由线卡板、交换线卡板通过XAUI接口相连,为了便于以太网报文的处理,可将该XAUI接口转换为XGMII接口。Taking the case where the Ethernet switching unit is a 10 Gigabit Ethernet switching unit as an example, the Ethernet switching unit is connected to the routing line card board and the switching line card board through the XAUI interface. In order to facilitate the processing of Ethernet messages, you can Convert that XAUI interface to an XGMII interface.

为此,接口转换单元的第二接收发送模块的内部结构可如图11所示,包括:第二串并转换模块和第二适配识别模块。For this reason, the internal structure of the second receiving and sending module of the interface conversion unit may be shown in FIG. 11 , including: a second serial-to-parallel conversion module and a second adaptation identification module.

其中,第二串并转换模块用于通过串行的XAUI接收来自以太网交换单元的报文,将所述报文通过并行的XGMII传递给第二适配识别模块;通过并行的XGMII接口接收来自第二适配识别模块的报文,将所述报文通过串行的XAUI接口发送给以太网交换单元。Wherein, the second serial-to-parallel conversion module is used to receive the message from the Ethernet switching unit through the serial XAUI, and pass the message to the second adaptation identification module through the parallel XGMII interface; The second adaptation identifies the message of the module, and sends the message to the Ethernet switching unit through the serial XAUI interface.

第二适配识别模块,用于对第二串并转换模块发送的以太网报文和其它模块发送的以太网报文进行适配和识别。其中,对于图8所示接口转换单元来说,这里的其它模块指的是流量管理控制模块;对于图9所示接口转换单元来说,这里的其它模块指的是第一报文更改模块。The second adaptation identification module is used for adapting and identifying the Ethernet message sent by the second serial-to-parallel conversion module and the Ethernet message sent by other modules. Wherein, for the interface conversion unit shown in FIG. 8 , the other modules here refer to the flow management control module; for the interface conversion unit shown in FIG. 9 , the other modules here refer to the first packet modification module.

此外,若以太网交换单元为千兆以太网交换单元等其它以太网交换单元,则第二接收发送模块中的XAUI和XGMII进行相应更改,第一接收发送模块中的XAUI和XGMII也进行相应更改;此外,第一串并转换模块还需完成与L2/L3交换芯片之间速率的匹配。In addition, if the Ethernet switching unit is another Ethernet switching unit such as a Gigabit Ethernet switching unit, the XAUI and XGMII in the second receiving and sending module are changed accordingly, and the XAUI and XGMII in the first receiving and sending module are also changed accordingly ; In addition, the first serial-to-parallel conversion module needs to complete rate matching with the L2/L3 switching chip.

以上对本发明实施例中的交换线卡板进行了详细描述,下面再对本发明实施例中的路由线卡板进行详细描述:The switching line card in the embodiment of the present invention has been described in detail above, and the routing line card in the embodiment of the present invention will be described in detail below:

路由线卡板中的路由转发表中也包括类似表1中的三层转发表所示的目的IP地址与目的MOD ID(如DST_MODID)的对应关系,并且在路由线卡板中也存储有类似表2和表3所示的MOD ID和板MAC地址的对应关系表以及板MAC地址或MOD ID等与线卡板类型的对应关系表。其中,MOD ID和板MAC地址的对应关系表和/或板MAC地址或MOD ID等与线卡板类型的对应关系表中还可以包括源线卡板的槽位号或卡号等。The routing forwarding table in the routing line card board also includes the corresponding relationship between the destination IP address and the purpose MOD ID (such as DST_MODID) shown in the three-layer forwarding table similar to Table 1, and also stores similar information in the routing line card board. Table 2 and Table 3 show the correspondence between the MOD ID and the board MAC address, and the correspondence between the board MAC address or MOD ID and the line card board type. Wherein, the corresponding relationship table between MOD ID and board MAC address and/or the corresponding relationship table between board MAC address or MOD ID and the line card board type can also include the slot number or card number of the source line card board.

路由线卡板接收到来自外部的报文后,根据所述报文的目的地址查自身的路由转发表,若查表显示报文通过自身的出端口发送,则直接将报文发送出去;若查表显示报文通过其他线卡板发送,则根据查表得到的目的MODID查找MOD ID和板MAC地址的对应关系表,以及板MAC地址或MOD ID等与线卡板类型的对应关系表,得到板MAC地址和线卡板类型,若线卡板类型显示目的线卡板为另一个路由线卡板,则按现有技术处理,即在报文中添加包括所述板MAC地址、端口号的出端口信息及其它跨板转发信息,对 报文进行封装后,通过以太网交换单元转发给其它路由线卡板;若线卡板类型显示目的线卡板为交换线卡板,则路由线卡板将目的MOD ID及目的端口号等信息封装在位于以太网报文前面的HiGig头中,并将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文,将所述以太网报文发送给以太网交换单元。After the routing line card board receives the message from the outside, it checks its own routing forwarding table according to the destination address of the message, and if the table lookup shows that the message is sent through its own egress port, it sends the message directly; if The table lookup shows that the message is sent through other line card boards, then according to the purpose MODID obtained from the table lookup, look up the corresponding relationship table between the MOD ID and the board MAC address, and the corresponding relationship table between the board MAC address or MOD ID and the line card board type, Obtain the board MAC address and line card type, if the line card type shows that the destination line card is another routing line card, then process according to the prior art, that is, add the board MAC address and port number in the message The outbound port information and other cross-board forwarding information, after encapsulating the message, forward it to other routing line cards through the Ethernet switching unit; if the line card type shows that the destination line card is a switching line card, then the routing line The card board encapsulates information such as the destination MOD ID and destination port number in the HiGig header located in front of the Ethernet message, and encapsulates the MAC address of the destination board in the MAC header located in front of the HiGig header to form an Ethernet message. send the Ethernet packet to the Ethernet switching unit.

当路由线卡板接收到来自以太网交换单元的以太网报文后,根据报文中的源板MAC地址字段(如源板MAC地址字段中的源线卡板的槽位号或卡号等)查表,得到源线卡板的类型,若源线卡板的类型显示该报文来自另一个路由线卡板,则将该报文按照现有技术进行处理,即剥离报文的出端口信息,完成跨板转发的其它业务后,将报文在对应端口上进行发送;若源线卡板的类型显示该报文来自交换线卡板,则路由线卡板在接收到报文后,剥离所述报文的MAC头和HiGig头,并根据所述HiGig头中的目的端口号将报文从相应端口发送出去。After the routing line card board receives the Ethernet message from the Ethernet switching unit, according to the source board MAC address field in the message (such as the slot number or card number of the source line card board in the source board MAC address field, etc.) Look up the table to get the type of the source line card. If the type of the source line card shows that the message comes from another routing line card, the message will be processed according to the existing technology, that is, the outgoing port information of the message will be stripped , after completing other services forwarded across boards, send the message on the corresponding port; if the type of the source line card shows that the message comes from the switching line card, the routing line card will strip the message after receiving the message. MAC header and HiGig header of the message, and send the message from the corresponding port according to the destination port number in the HiGig header.

其中,若为了有效利用带宽而采用简化的HiGig头的话,则路由线卡板封装在位于以太网报文前面的HiGig头和从以太网报文中剥离的HiGig头均为简化的HiGig头。Wherein, if a simplified HiGig header is used for effective bandwidth utilization, the HiGig header encapsulated in front of the Ethernet message by the routing line board and the HiGig header stripped from the Ethernet message are all simplified HiGig headers.

此外,若路由线卡板为交换线卡板查表失败后发送的默认路由线卡板,则该线卡板接收到以太网交换单元转发的以太网报文后,会根据报文MAC头中的默认标识位,如源板MAC地址字段的第6个字节对应的标识位,判断出自身为默认路由线卡板后,剥离所述报文的MAC头和HiGig头,然后将该报文作为来自外部的新报文进行处理。即进行根据所述报文的目的地址查自身的路由转发表等处理。In addition, if the routing line card is the default routing line card sent after the switching line card fails to look up the table, after receiving the Ethernet packet forwarded by the Ethernet switching unit, the line card will The default identification bit, such as the identification bit corresponding to the sixth byte of the source board MAC address field, after judging that it is the default routing line card, strip the MAC header and HiGig header of the message, and then send the message It is processed as a new message from the outside. That is, according to the destination address of the message, processing such as checking its own routing and forwarding table is performed.

若路由线卡板根据源板MAC地址字段识别出报文是用于流量控制的控制报文后,可将该控制报文交由实现流量管理功能的单元处理,该单元使用第6字节的识别位判断具体的控制报文类型。If the routing line card recognizes that the packet is a control packet for flow control according to the MAC address field of the source board, the control packet can be handed over to the unit that implements the flow management function for processing. This unit uses the 6th byte The identification bit determines the specific control message type.

以上对本发明实施例中的路由交换设备进行了详细描述,下面再对本发明实施例中的路由交换方法进行详细描述。The routing switching device in the embodiment of the present invention has been described in detail above, and the routing switching method in the embodiment of the present invention will be described in detail below.

本发明实施例中的路由交换方法应用于包括路由线卡板和交换线卡板的路由交换设备中,其中,路由交换设备中包括以太网交换单元,该以太网交换单元可设置在路由交换设备中的主控板中,也可单独设置在交换板中等,交换线卡板包括L2/L3交换芯片。The routing switching method in the embodiment of the present invention is applied to a routing switching device including a routing line card board and a switching line card board, wherein the routing switching device includes an Ethernet switching unit, and the Ethernet switching unit can be set in the routing switching device In the main control board, it can also be set separately in the switch board, etc., and the switch line card board includes L2/L3 switch chips.

其中,交换线卡板通过以太网交换单元向其它交换线卡板或路由线卡板转发报文,并通过以太网交换单元接收来自其它交换线卡板或路由线卡板的报文;路由线卡板通过以太网交换单元向其它路由线卡板或交换线卡板转发报文,并通过以太网交换单元接收来自其它路由线卡板或交换线卡板的报文。Wherein, the switching line card board forwards messages to other switching line card boards or routing line card boards through the Ethernet switching unit, and receives messages from other switching line card boards or routing line card boards through the Ethernet switching unit; The card board forwards messages to other routing line card boards or switching line card boards through the Ethernet switching unit, and receives messages from other routing line card boards or switching line card boards through the Ethernet switching unit.

具体实现时,L2/L3交换芯片可以为支持以太网协议的交换芯片,也可以为支持其它协议的交换芯片。下面以L2/L3交换芯片为支持HiGig协议的L2/L3交换芯片为例,对本发明实施例中的路由交换方法进行描述。During specific implementation, the L2/L3 switch chip may be a switch chip supporting the Ethernet protocol, or may be a switch chip supporting other protocols. The routing switching method in the embodiment of the present invention will be described below by taking the L2/L3 switching chip as an example of the L2/L3 switching chip supporting the HiGig protocol.

图12示出了交换线卡板接收外部报文并通过以太网交换单元向其它线卡板转发的流程图。如图12所示,该流程包括如下步骤:FIG. 12 shows a flow chart of a switching line card board receiving an external message and forwarding it to other line card boards through an Ethernet switching unit. As shown in Figure 12, the process includes the following steps:

步骤1201,交换线卡板的L2/L3交换芯片接收来自外部的以太网报文。Step 1201, the L2/L3 switch chip of the switch line card board receives the Ethernet message from the outside.

步骤1202,L2/L3交换芯片根据所述报文的目的地址查L2/L3转发表。Step 1202, the L2/L3 switching chip checks the L2/L3 forwarding table according to the destination address of the message.

步骤1203,如果需要跨板转发,判断是否查找到需要跨板转发的目的MOD ID及目的端口号,如果查找到,则执行步骤1204;否则,执行步骤1205。Step 1203, if cross-board forwarding is required, judge whether to find the destination MOD ID and destination port number that need cross-board forwarding, if found, execute step 1204; otherwise, execute step 1205.

步骤1204,将所述目的MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,构成HiGig报文。之后,执行步骤1206。Step 1204, encapsulating the destination MOD ID and destination port number in the HiGig header in front of the Ethernet message to form a HiGig message. After that, step 1206 is executed.

步骤1205,将预先设置的特定目的MOD ID和目的端口号封装在位于以太网报文前面的HiGig头中,构成HiGig报文。Step 1205, encapsulating the preset specific purpose MOD ID and destination port number in the HiGig header in front of the Ethernet message to form a HiGig message.

步骤1206,L2/L3交换芯片将构成的HiGig报文发送给接口转换单元。Step 1206, the L2/L3 switching chip sends the formed HiGig message to the interface conversion unit.

步骤1207,接口转换单元根据所述报文HiGig头中的目的MOD ID查找自身中存储的MOD ID和板MAC地址的对应关系表,得到目的板MAC地址。Step 1207, the interface conversion unit searches the correspondence table between the MOD ID and the board MAC address stored in itself according to the destination MOD ID in the HiGig header of the message, and obtains the destination board MAC address.

步骤1208,接口转换单元将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文。Step 1208, the interface conversion unit encapsulates the MAC address of the target board in the MAC header located in front of the HiGig header to form an Ethernet message.

步骤1209,将所述以太网报文发送给以太网交换单元。Step 1209, sending the Ethernet packet to the Ethernet switching unit.

其中,若步骤1207中的目的MOD ID为预先设置的特定的目的MODID,则本步骤中,接口转换单元在添加MAC头信息时,可在MAC头中添加一个标识位,以表示当前报文的目的线卡板为查表失败后的默认线卡板。Wherein, if the purpose MOD ID in the step 1207 is a preset specific purpose MOD ID, then in this step, when the interface conversion unit adds the MAC header information, an identification bit can be added in the MAC header to represent the current message The destination line card is the default line card after the table lookup fails.

以太网交换单元在接收到来自接口转换单元的上述报文后,根据所述报文MAC头中的目的板MAC地址,将所述报文发送给对应的交换线卡板或路由线卡板。After receiving the above message from the interface conversion unit, the Ethernet switching unit sends the message to the corresponding switching line card board or routing line card board according to the MAC address of the destination board in the MAC header of the message.

其中,与本实施例中的路由交换设备一致,若为了有效利用带宽,而采用了简化的HiGig头,则接口转换单元在接收到来自L2/L3交换芯片的HiGig报文后,执行步骤1208之前,会先剥离报文中标准的HiGig头,并添加简化后的HiGig头。该过程可在执行步骤1207之前,也可在执行步骤1207之后。然后,在步骤1208中将查找到的目的板MAC地址封装在位于该简化后的HiGig头前面的MAC头中。Wherein, consistent with the routing and switching equipment in this embodiment, if a simplified HiGig header is used in order to effectively utilize the bandwidth, the interface conversion unit performs step 1208 before receiving the HiGig message from the L2/L3 switching chip. , the standard HiGig header in the packet will be stripped first, and the simplified HiGig header will be added. This process may be performed before step 1207 is performed, or after step 1207 is performed. Then, in step 1208, the found MAC address of the destination board is encapsulated in the MAC header located in front of the simplified HiGig header.

进一步地,若在接口转换单元中设置有缓存通道和流量管理控制模块,则对应图8所示接口转换单元的结构,本流程中,在步骤1206和1207之间,可进一步包括:步骤1206A、接口转换单元根据报文中的目的板信息,如目的MOD ID,将报文发送到相应缓存通道的正向通道中。步骤1206B、流量管理控制模块轮循或基于优先级地调度某个缓存通道的正向通道中的报文。则步骤1207中对流量管理控制模块调度的报文进行处理。Further, if the interface conversion unit is provided with a cache channel and a traffic management control module, corresponding to the structure of the interface conversion unit shown in FIG. 8 , in this process, between steps 1206 and 1207, it may further include: The interface conversion unit sends the message to the forward channel of the corresponding buffer channel according to the destination board information in the message, such as the destination MOD ID. Step 1206B, the flow management control module schedules the packets in the forward channel of a buffer channel in round robin or based on priority. Then in step 1207, the message scheduled by the flow management control module is processed.

对应图9所示接口转换单元的结构,本流程中,在步骤1208和步骤1209之间,可进一步包括:步骤1208A、接口转换单元根据报文中的目的板信息,如板MAC地址,将报文发送到相应缓存通道的正向通道中。步骤1208B、流量管理控制模块轮循或基于优先级地调度某个缓存通道的正向通道中的报文。则步骤1209中对流量管理控制模块调度的报文进行发送。Corresponding to the structure of the interface conversion unit shown in Figure 9, in this process, between step 1208 and step 1209, it may further include: step 1208A, the interface conversion unit will report the target board information according to the purpose board information in the message, such as the board MAC address The text is sent to the forward channel of the corresponding cache channel. Step 1208B, the flow management control module schedules the packets in the forward channel of a buffer channel in round robin or based on priority. Then in step 1209, the message scheduled by the flow management control module is sent.

图13示出了交换线卡板通过以太网交换单元接收其它线卡板报文的流 程图。如图13所示,该流程包括如下步骤:Fig. 13 shows the flow chart of the switching line card board receiving other line card board messages through the Ethernet switching unit. As shown in Figure 13, the process includes the following steps:

步骤1301,交换线卡板的接口转换单元接收以太网交换单元转发的来自其它交换线卡板或路由线卡板的报文。Step 1301, the interface conversion unit of the switch line card board receives the message from other switch line card boards or routing line card boards forwarded by the Ethernet switch unit.

步骤1302,接口转换单元剥离所述报文的MAC头,将所述报文还原为HiGig报文。Step 1302, the interface conversion unit strips off the MAC header of the message, and restores the message to a HiGig message.

步骤1303,将还原后的HiGig报文传递给L2/L3交换芯片。Step 1303, delivering the restored HiGig message to the L2/L3 switching chip.

步骤1304,L2/L3交换芯片接收到来自接口转换单元的HiGig报文后,剥离掉报文中的HiGig头,并根据HiGig头中的目的端口号将报文从相应端口发送出去。Step 1304: After receiving the HiGig message from the interface conversion unit, the L2/L3 switching chip strips off the HiGig header in the message, and sends the message out from the corresponding port according to the destination port number in the HiGig header.

其中,若为了有效利用带宽而采用简化的HiGig头的话,则步骤1302中,接口转换单元在剥离所述报文的MAC头之后,进一步地剥离简化后的HiGig头,并添加标准的HiGig头,从而将报文还原为HiGig报文。Wherein, if a simplified HiGig header is used in order to effectively utilize the bandwidth, then in step 1302, the interface conversion unit further strips the simplified HiGig header after stripping the MAC header of the message, and adds a standard HiGig header, In this way, the message is restored to a HiGig message.

此外,步骤1302之前,接口转换单元还根据源板MAC地址字段中携带的源线卡板的槽位号或板号识别出报文是用于流量控制的控制报文还是普通报文,对于用于流量控制的控制报文交由实现流量管理功能的模块处理,该模块可使用第6字节的识别位判断具体的控制报文类型。In addition, before step 1302, the interface conversion unit also identifies whether the message is a control message for flow control or an ordinary message according to the slot number or board number of the source line card carried in the source board MAC address field. The control message for flow control is handed over to the module that implements the flow management function for processing, and the module can use the identification bit of the 6th byte to judge the specific type of the control message.

进一步地,若在接口转换单元中设置有缓存通道和流量管理控制模块,则对应图8所示接口转换单元的结构,本流程中,在步骤1301和1302之间,可进一步包括:步骤1301A、接口转换单元根据报文中的源板信息,如源板MAC地址字段(如源板MAC地址字段中的槽位号或板号),将报文发送到相应缓存通道的正向通道中。步骤1301B、流量管理控制模块轮循或基于优先级地调度某个缓存通道的正向通道中的报文。则步骤1302中对流量管理控制模块调度的报文进行处理。Further, if the interface conversion unit is provided with a buffer channel and a flow management control module, corresponding to the structure of the interface conversion unit shown in FIG. 8 , in this process, between steps 1301 and 1302, it may further include: The interface conversion unit sends the message to the forward channel of the corresponding buffer channel according to the source board information in the message, such as the source board MAC address field (such as the slot number or board number in the source board MAC address field). Step 1301B, the traffic management control module schedules the packets in the forward channel of a buffer channel in round robin or based on priority. Then in step 1302, the message scheduled by the flow management control module is processed.

对应图9所示接口转换单元的结构,本流程中,在步骤1302和步骤1303之间,可进一步包括:步骤1302A、接口转换单元根据报文中的源板信息,如源MOD ID,将报文发送到相应缓存通道的正向通道中。步骤1302B、流量管理控制模块轮循或基于优先级地调度某个缓存通道的正向通道中的报 文。则步骤1303中对流量管理控制模块调度的报文进行发送。Corresponding to the structure of the interface conversion unit shown in Figure 9, in this process, between step 1302 and step 1303, may further include: step 1302A, interface conversion unit according to the source board information in the message, as source MOD ID, will report The text is sent to the forward channel of the corresponding cache channel. Step 1302B, the flow management control module schedules the packets in the forward channel of a buffer channel in round robin or based on priority. Then in step 1303, the message scheduled by the flow management control module is sent.

图14示出了路由线卡板接收外部报文并通过以太网交换单元向其它线卡板转发的流程图。如图14所示,该流程包括如下步骤:FIG. 14 shows a flow chart of the routing line card board receiving an external message and forwarding it to other line card boards through the Ethernet switching unit. As shown in Figure 14, the process includes the following steps:

步骤1401,路由线卡板接收来自外部的以太网报文。Step 1401, the routing line card board receives the Ethernet message from the outside.

步骤1402,路由线卡板根据所述报文的目的地址查路由转发表。Step 1402, the routing line board checks the routing and forwarding table according to the destination address of the message.

步骤1403,根据查表得到的目的MOD ID查找MOD ID和板MAC地址的对应关系表,以及板MAC地址或MOD ID等与线卡板类型的对应关系表,得到目的板MAC地址和线卡板类型。Step 1403, according to the purpose MOD ID obtained by looking up the table, look up the corresponding relationship table between MOD ID and board MAC address, and the corresponding relationship table between board MAC address or MOD ID and the line card board type, and obtain the purpose board MAC address and the line card board type.

步骤1404,判断线卡板类型是否显示目的线卡板为另一个路由线卡板,如果是,则执行步骤1405;否则,执行步骤1406。Step 1404, determine whether the line card type indicates that the destination line card is another routing line card, if yes, perform step 1405; otherwise, perform step 1406.

步骤1405,按现有技术进行处理。即在报文中添加包括所述目的板MAC地址、端口号的出端口信息及其它跨板转发信息,对报文进行封装后,通过以太网交换单元转发给其它路由线卡板,并结束本流程。Step 1405, process according to the prior art. That is, add the outgoing port information including the MAC address of the destination board, the port number and other cross-board forwarding information in the message, after the message is encapsulated, forward it to other routing line card boards through the Ethernet switching unit, and end this process.

步骤1406,路由线卡板将目的MOD ID及目的端口号等信息封装在位于以太网报文前面的HiGig头中,并将所述目的板MAC地址封装在位于所述HiGig头前面的MAC头中,构成以太网报文。Step 1406, the routing line card board encapsulates information such as the purpose MOD ID and the purpose port number in the HiGig header positioned in front of the Ethernet message, and encapsulates the MAC address of the target board in the MAC header positioned in front of the HiGig header , forming an Ethernet packet.

步骤1407,将所述以太网报文发送给以太网交换单元。Step 1407, sending the Ethernet packet to the Ethernet switching unit.

其中,若为了有效利用带宽而采用简化的HiGig头的话,则步骤1406中路由线卡板封装在位于以太网报文前面的HiGig头为简化的HiGig头。Wherein, if a simplified HiGig header is used for effective bandwidth utilization, the HiGig header encapsulated in front of the Ethernet packet by the routing line card in step 1406 is a simplified HiGig header.

图15示出了路由线卡板通过以太网交换单元接收其它线卡板报文的流程图。如图15所示,该流程包括如下步骤:FIG. 15 shows a flow chart of a routing line card board receiving messages from other line card boards through an Ethernet switching unit. As shown in Figure 15, the process includes the following steps:

步骤1501,路由线卡板接收到来自以太网交换单元的以太网报文。Step 1501, the routing line card board receives the Ethernet message from the Ethernet switching unit.

步骤1502,根据报文中的源板MAC地址字段(如源板MAC地址字段中的源线卡板的槽位号或卡号等)查表,得到源线卡板的类型。Step 1502, look up the table according to the source board MAC address field in the message (such as the slot number or card number of the source line card in the source board MAC address field), and obtain the type of the source line card.

步骤1503,根据源线卡板的类型,判断报文是否来自路由线卡板,如果是,则执行步骤1504;否则,执行步骤1505。Step 1503, according to the type of the source line card, it is judged whether the packet comes from the routing line card, if yes, execute step 1504; otherwise, execute step 1505.

步骤1504,将该报文按照现有技术进行处理。即剥离报文的出端口信 息,完成跨板转发的其它业务后,将报文在对应端口上进行发送。结束本流程。Step 1504, process the message according to the prior art. That is, the outgoing port information of the message is stripped, and after other services of cross-board forwarding are completed, the message is sent on the corresponding port. End this process.

步骤1505,路由线卡板剥离所述报文的MAC头和HiGig头。Step 1505, the routing line board strips the MAC header and the HiGig header of the packet.

步骤1506,路由线卡板根据所述HiGig头中的目的端口号将报文从相应端口发送出去。Step 1506, the routing line board sends the message out from the corresponding port according to the destination port number in the HiGig header.

其中,若为了有效利用带宽而采用简化的HiGig头的话,则步骤1505中路由线卡板从以太网报文中剥离的HiGig头为简化的HiGig头。Wherein, if the simplified HiGig header is adopted for effective bandwidth utilization, the HiGig header stripped by the routing line board from the Ethernet packet in step 1505 is the simplified HiGig header.

此外,步骤1505中可进一步包括:根据报文中的源板MAC地址字段中的标识位,判断自身是否为交换线卡板查表失败后的默认线卡板,如果不是,则执行步骤1506。否则,路由线卡板将该报文作为来自外部的新报文进行处理。即进行根据所述报文的目的地址查自身的路由转发表等处理。In addition, step 1505 may further include: according to the identification bit in the source board MAC address field in the message, judging whether it is the default line card after the switch line card fails to look up the table, if not, perform step 1506. Otherwise, the routing line card processes the message as a new message from outside. That is, according to the destination address of the message, processing such as checking its own routing and forwarding table is performed.

进一步地,步骤1501和步骤1502之间,可进一步包括:路由线卡板根据源板MAC地址字段识别报文是否为用于流量控制的控制报文,如果是,可将该控制报文交由实现流量管理功能的单元处理;否则,执行步骤1502。Further, between step 1501 and step 1502, it may further include: the routing line card board identifies whether the message is a control message for flow control according to the source board MAC address field, and if so, may hand over the control message to the Implement the unit processing of the traffic management function; otherwise, execute step 1502 .

上述以太网交换单元可以为万兆以太网交换单元或千兆以太网交换单元等。The aforementioned Ethernet switching unit may be a 10 Gigabit Ethernet switching unit or a Gigabit Ethernet switching unit.

本发明实施例中,通过进行有机的硬件软件结合使得数据交换加速,并且降低了设备的管理数量,提高了可维护性。In the embodiment of the present invention, the data exchange is accelerated through the combination of organic hardware and software, and the management quantity of the equipment is reduced, and the maintainability is improved.

以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (19)

1. route exchange device, comprising: Ethernet crosspoint and route line card plate is characterized in that this equipment also comprises: comprise the three layers of L3 exchange chip of two layers of L2/ of supporting the HiGig agreement and the switched line clamp of interface conversion unit, wherein,
Between the switched line clamp, carry out message forwarding by the Ethernet crosspoint between switched line clamp and the route line card plate, described switched line clamp carries out the transmitting-receiving of message by interface conversion unit and Ethernet crosspoint;
Described L2/L3 exchange chip is used to receive the Ethernet message from the outside, looking into L2/L3 according to the destination address of described message transmits, if find the purpose chip number MOD ID and the destination slogan that need straddle to transmit, then described purpose MOD ID and destination slogan are encapsulated in the HiGig head that is arranged in Ethernet message front, constitute the HiGig message, described HiGig message is passed to interface conversion unit; Reception is peeled off the HiGig head in the described message from the HiGig message of interface conversion unit, and according to the destination slogan in the described HiGig head message is sent from the corresponding port;
Described interface conversion unit is used to receive the HiGig message from described L2/L3 exchange chip, search the MOD ID that stores in self and the mapping table of plate media access control MAC address according to the purpose MOD ID in the described message HiGig head, obtain purpose plate MAC Address, described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, described Ethernet message is sent to the Ethernet crosspoint; Reception is peeled off the MAC head of described message from the Ethernet message of Ethernet crosspoint, and described message is reduced to the HiGig message, and described HiGig message is passed to described L2/L3 exchange chip;
Described route line card plate is used to receive the message from the outside, look into the route forwarding table of storing in self that comprises purpose MOD ID according to the destination address of described message, if find the purpose MOD ID and the destination slogan that need be transmitted to the switched line clamp, then described purpose MOD ID and destination slogan are encapsulated in the HiGig head that is arranged in Ethernet message front, search the MOD ID that stores in self and the mapping table of plate MAC Address according to described purpose MOD ID, obtain purpose plate MAC Address, described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, described Ethernet message is sent to the Ethernet crosspoint; Receive the Ethernet message that the Ethernet crosspoint is transmitted, peel off the MAC head and the HiGig head of described message, and message is sent from the corresponding port according to the destination slogan in the described HiGig head from the switched line clamp;
Described Ethernet crosspoint is used to receive the Ethernet message of switched line clamp and route line card plate, and the purpose plate MAC Address according in the described message is transmitted to corresponding cable card board with described message.
2. equipment as claimed in claim 1, it is characterized in that, described L2/L3 exchange chip is when looking into L2/L3 according to the destination address of message and transmit, if search less than corresponding target MOD ID and destination slogan, then specific purpose MOD ID and the destination slogan that sets in advance is encapsulated in the HiGig head that is arranged in Ethernet message front, constitute the HiGig message, described HiGig message is passed to interface conversion unit;
Described interface conversion unit is after receiving described HiGig message, if the purpose MODID in the described message is described specific MOD ID, then find plate MAC Address to the default route cable card board that should MOD ID be provided with according to this MOD ID, described purpose plate MAC Address and corresponding default identification are encapsulated in the MAC head that is arranged in a described HiGig front, the Ethernet message that constitutes is sent to the Ethernet crosspoint;
After described default route cable card board receives the described Ethernet message of Ethernet crosspoint forwarding, according to the default identification position in the described MAC head, behind the MAC head of peeling off described message and HiGig head, described message is handled as the message from the outside.
3. equipment as claimed in claim 2 is characterized in that, described interface conversion unit is carried at described default identification position in the source plate MAC Address field in the MAC head.
4. equipment as claimed in claim 1, it is characterized in that, after described interface conversion unit receives HiGig message from described L2/L3 exchange chip, described purpose plate MAC Address is encapsulated in before the MAC head that is arranged in a described HiGig front, further the HiGig head in the described message is peeled off, and the HiGig head after the interpolation simplification; Described interface conversion unit is reduced to described message before the HiGig message after peeling off the MAC head of described message, peels off the HiGig head after the described simplification further, and adds the HiGig head of standard;
Described route line card plate is encapsulated in HiGig head that is arranged in Ethernet message front and the HiGig head of HiGig head for simplifying of peeling off from the Ethernet message.
5. equipment as claimed in claim 4, it is characterized in that, described interface conversion unit comprises: the buffer memory passage, first consistent with route line card plate and switched line clamp sum quantity receives sending module, second and receives sending module, traffic management control module, first message change module and second message change module, wherein
Cable card board of correspondence of each buffer memory passage, and comprise forward path and backward channel, be respectively applied for the message of the corresponding cable card board both direction of storage;
The described first reception sending module is used to receive the HiGig message from the L2/L3 exchange chip, according to the purpose MOD ID in the described message, described message is sent in the forward path of respective cache passage; And receive the message of changing module from second message, described message is sent to the L2/L3 exchange chip;
The described second reception sending module is used to receive the Ethernet message from the Ethernet crosspoint, and the source plate MAC Address field according in the described message sends to described message in the backward channel of corresponding buffer memory passage; And receive the message of changing module from first message, described message is sent to the Ethernet crosspoint;
Described traffic management control module is used for repeating query or dispatches message based on priority ground from the forward path or the backward channel of respective cache passage, the message that to dispatch from forward path offers first message change module, and the message that will call from backward channel offers second message change module;
Described first message change module is used to receive the message of described traffic management control module scheduling, peel off the HiGig head in the described message, search the MOD ID that stores in self and the mapping table of plate MAC Address according to the purpose MOD ID in the described message HiGig head, obtain purpose plate MAC Address, the HiGig head that encapsulation is simplified before described message, and described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, described Ethernet message is sent to second receive sending module;
Described second message change module is used to receive the message of described traffic management control module scheduling, peel off the MAC head in the described message and the HiGig head of simplification, in message, add the HiGig head of standard, restore the HiGig message, described HiGig message is sent to first receive sending module.
6. equipment as claimed in claim 4, it is characterized in that, described interface conversion unit comprises: the buffer memory passage, first consistent with route line card plate and switched line clamp sum quantity receives sending module, second and receives sending module, traffic management control module, first message change module and second message change module, wherein
Cable card board of correspondence of each buffer memory passage, and comprise forward path and backward channel, be respectively applied for the message of the corresponding cable card board both direction of storage;
Described traffic management control module is used for repeating query or dispatches message based on priority ground from the forward path or the backward channel of respective cache passage, the message that to dispatch from forward path offers second and receives sending module, and the message that will call from backward channel offers first and receives sending module;
The described first reception sending module is used to receive the HiGig message from the L2/L3 exchange chip, and described message is sent to first message change module; Receive the message of traffic management control module scheduling, described message is sent to the L2/L3 exchange chip;
Described first message change module is used to receive the HiGig message from the first reception sending module, peel off the HiGig head in the described message, search the MOD ID that stores in self and the mapping table of plate MAC Address according to the purpose MOD ID in the described message HiGig head, obtain purpose plate MAC Address, the HiGig head that encapsulation is simplified before described message, and described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, according to described purpose plate MAC Address, described Ethernet message is delivered in the forward path of respective cache passage;
The described second reception sending module is used to receive the Ethernet message from the Ethernet crosspoint, and described message is sent to second message change module; Receive the message of traffic management control module scheduling, described message is sent to the Ethernet crosspoint;
Described second message change module is used to receive the Ethernet message from the second reception sending module, peel off the MAC head in the described message and the HiGig head of simplification, in message, add the HiGig head of standard, restore the HiGig message, source MOD ID according in the described message sends to described HiGig message in the backward channel of corresponding buffer memory passage.
7. as each described equipment in the claim 4 to 6, it is characterized in that, comprise in the HiGig head of described simplification:
Source MOD ID, purpose MOD ID, virtual LAN VLAN information, type of message, source port number and destination slogan.
8. equipment as claimed in claim 5, it is characterized in that, the traffic management control module of described interface conversion unit is further used for monitoring each buffer memory passage buffer storage state of this cable card board, according to the buffer status that monitors, regularly sends the control message that is used for flow control to other cable card board;
Described first message change module is common message or the described control message that is used for flow control according to the type of message, the slot number of source cable card board of corresponding described type or plate number are set in described source plate MAC Address field, are used for identification sources cable card board and type of message thereof;
Described second receives sending module behind the message that receives from the Ethernet crosspoint, according to the slot number in the source plate MAC Address field in the described message MAC head or plate number, identify source cable card board and type of message thereof, if type of message is the control message that is used for flow control, then described message is sent to the traffic management control module of self; If type of message is common message, then described message is transferred to second message change module of self.
9. as claim 5 or 6 described equipment, it is characterized in that described first receives sending module comprises:
First string and the modular converter is used for ten thousand mbit ethernet Attachment Unit Interface XAUI by serial and receives message from the L2/L3 exchange chip, and described message is passed to the first adaptive identification module by 10,000,000,000 parallel media independent interface XGMII; Receive message by parallel XGMII interface, the XAUI interface of described message by serial is passed to the L2/L3 exchange chip from the first adaptive identification module;
The first adaptive identification module is used for carrying out adaptive and identification to first string and modular converter HiGig message that sends and the HiGig message that other module sends.
10. equipment as claimed in claim 9 is characterized in that, described Ethernet crosspoint is ten thousand mbit ethernet crosspoints, and described Ethernet crosspoint links to each other by ten thousand mbit ethernet Attachment Unit Interface XAUI with described route line card plate, switched line clamp;
Described second receives sending module comprises: second string and the modular converter and the second adaptive identification module, wherein,
Described second string and modular converter are used for XAUI by serial and receive message from the Ethernet crosspoint, and described message is passed to the second adaptive identification module by parallel XGMII; Receive message by parallel XGMII interface, the XAUI interface of described message by serial is sent to the Ethernet crosspoint from the second adaptive identification module;
The second adaptive identification module is used for carrying out adaptive and identification to second string and modular converter Ethernet message that sends and the Ethernet message that other module sends.
11. a switched line clamp is characterized in that, this switched line clamp comprises: three layers of L3 exchange chip of two layers of L2/ and the interface conversion unit of supporting the HiGig agreement;
Described L2/L3 exchange chip is used to receive the Ethernet message from the outside, looking into L2/L3 according to the destination address of described message transmits, if find the purpose plate numbering MOD ID and the destination slogan that need straddle to transmit, then described MOD ID and destination slogan are encapsulated in the HiGig head that is arranged in Ethernet message front, constitute the HiGig message, described HiGig message is passed to interface conversion unit; Reception is peeled off the HiGig head in the described message from the HiGig message of interface conversion unit, and according to the destination slogan in the described HiGig head message is sent from the corresponding port;
Described interface conversion unit is used to receive the HiGig message from described L2/L3 exchange chip, search the MOD ID that stores in self and the mapping table of plate media access control MAC address according to the purpose MOD ID in the described message HiGig head, obtain purpose plate MAC Address, described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, described Ethernet message is sent to the Ethernet crosspoint; Reception is peeled off the MAC head of described message from the Ethernet message of Ethernet crosspoint, and described message is reduced to the HiGig message, and described HiGig message is passed to described L2/L3 exchange chip.
12. switched line clamp as claimed in claim 11, it is characterized in that, described L2/L3 exchange chip is when looking into L2/L3 according to the destination address of message and transmit, if search less than corresponding target MOD ID and destination slogan, then specific purpose MOD ID and the destination slogan that sets in advance is encapsulated in the HiGig head that is arranged in Ethernet message front, constitute the HiGig message, described HiGig message is passed to interface conversion unit;
Described interface conversion unit is after receiving described HiGig message, if the purpose MODID in the described message is described specific MOD ID, then find plate MAC Address to the default route cable card board that should MOD ID be provided with according to this MOD ID, described purpose plate MAC Address and corresponding default identification are encapsulated in the MAC head that is arranged in a described HiGig front, the Ethernet message that constitutes is sent to the Ethernet crosspoint.
13. switched line clamp as claimed in claim 11, it is characterized in that, described interface conversion unit comprises: the buffer memory passage, first consistent with route line card plate and switched line clamp sum quantity receives sending module, second and receives sending module, traffic management control module, first message change module and the second change module, wherein
Cable card board of correspondence of each buffer memory passage, and comprise forward path and backward channel, be respectively applied for the message of the corresponding cable card board both direction of storage;
The described first reception sending module is used to receive the HiGig message from the L2/L3 exchange chip, according to the purpose MOD ID in the described message, described message is sent in the forward path of respective cache passage; And receive the message of changing module from second message, described message is sent to the L2/L3 exchange chip;
The described second reception sending module is used to receive the Ethernet message from the Ethernet crosspoint, and the source plate MAC Address field according in the described message sends to described message in the backward channel of corresponding buffer memory passage; And receive the message of changing module from first message, described message is sent to the Ethernet crosspoint;
Described traffic management control module is used for repeating query or dispatches message based on priority ground from the forward path or the backward channel of respective cache passage, the message that to dispatch from forward path offers first message change module, and the message that will call from backward channel offers second message change module;
Described first message change module is used to receive the message that described traffic management control module provides, search the MOD ID that stores in self and the mapping table of plate MAC Address according to the purpose MOD ID in the described message HiGig head, obtain purpose plate MAC Address, described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, described Ethernet message is sent to second receive sending module;
Second message change module is used to receive the message that described traffic management control module provides, and peels off the MAC head in the described message, restores the HiGig message, described HiGig message is sent to first receive sending module.
14. switched line clamp as claimed in claim 11, it is characterized in that, described interface conversion unit comprises: the buffer memory passage, first consistent with route line card plate and switched line clamp sum quantity receives sending module, second and receives sending module, traffic management control module, first message change module and the second change module, wherein
Cable card board of correspondence of each buffer memory passage, and comprise forward path and backward channel, be respectively applied for the message of the corresponding cable card board both direction of storage;
Described traffic management control module is used for repeating query or dispatches message based on priority ground from the forward path or the backward channel of respective cache passage, the message that to dispatch from forward path offers second and receives sending module, and the message that will call from backward channel offers first and receives sending module;
The described first reception sending module is used to receive the HiGig message from the L2/L3 exchange chip, and described message is sent to first message change module; Receive the message of traffic management control module scheduling, described message is sent to the L2/L3 exchange chip;
Described first message change module is used to receive the HiGig message from the first reception sending module, search the MOD ID that stores in self and the mapping table of plate MAC Address according to the purpose MOD ID in the described message HiGig head, obtain purpose plate MAC Address, described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, according to described purpose plate MAC Address, described Ethernet message is delivered in the forward path of respective cache passage;
The described second reception sending module is used to receive the Ethernet message from the Ethernet crosspoint, and described message is sent to second message change module; Receive the message of traffic management control module scheduling, described message is sent to the Ethernet crosspoint;
Described second message change module is used to receive the Ethernet message from the second reception sending module, peel off the MAC head in the described message, restore the HiGig message, the source MOD ID according in the described message sends to described HiGig message in the backward channel of corresponding buffer memory passage.
15. as claim 13 or 14 described switched line clamps, it is characterized in that, after described first message change module receives HiGig message from described L2/L3 exchange chip, described purpose plate MAC Address is encapsulated in before the MAC head that is arranged in a described HiGig front, further the HiGig head in the described message is peeled off, and the HiGig head after the interpolation simplification;
Described second message change module is reduced to described message before the HiGig message after peeling off the MAC head of described message, peels off the HiGig head after the described simplification further, and adds the HiGig head of standard.
16. route exchanging method, it is characterized in that, this method is applied to comprise in the route exchange device of route line card plate and switched line clamp, comprise the Ethernet crosspoint in the described route exchange device, described switched line clamp comprises L2/L3 exchange chip and the interface conversion unit of supporting the HiGig agreement, and this method comprises:
The switched line clamp E-Packets to other switched line clamp or route line card plate by interface conversion unit and Ethernet crosspoint, and by the message of Ethernet crosspoint and interface conversion unit reception from other switched line clamp or route line card plate;
The route line card plate E-Packets to other route line card plate or switched line clamp by the Ethernet crosspoint, and by the message of Ethernet crosspoint reception from other route line card plate or switched line clamp;
Described switched line clamp E-Packets to other switched line clamp or route line card plate by interface conversion unit and Ethernet crosspoint and comprises:
L2/L3 exchange chip in the switched line clamp receives the message from the outside, looking into L2/L3 according to destination address in the described message transmits, if find the purpose MOD ID and the destination slogan that need straddle to transmit, then described purpose MOD ID and destination slogan are encapsulated in the HiGig head that is arranged in Ethernet message front, constitute the HiGig message, described HiGig message is passed to interface conversion unit; Interface conversion unit is searched the MOD ID that stores in self and the mapping table of plate MAC Address according to the purpose MOD ID in the described message HiGig head, obtain purpose plate MAC Address, described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, described Ethernet message is sent to the Ethernet crosspoint; The Ethernet crosspoint sends to corresponding switched line clamp or route line card plate according to the purpose plate MAC Address in the described message MAC head with described message;
Described switched line clamp comprises by the message that Ethernet crosspoint and interface conversion unit receive from other switched line clamp or route line card plate:
The interface conversion unit of switched line clamp receives the message from other switched line clamp or route line card plate that the Ethernet crosspoint is transmitted, peel off the MAC head of described message, described message is reduced to the HiGig message, the HiGig message after the reduction is passed to the L2/L3 exchange chip; The L2/L3 exchange chip peels off the HiGig head in the message, and according to the destination slogan in the HiGig head message is sent from the corresponding port after receiving HiGig message from interface conversion unit;
Described route line card plate E-Packets to other route line card plate or switched line clamp by the Ethernet crosspoint and comprises:
The route line card plate receives the Ethernet message from the outside, looks into route forwarding table according to the destination address of described message; The purpose MOD ID that obtains according to tabling look-up searches the mapping table of MOD ID and plate MAC Address, and the mapping table of plate MAC Address or MOD ID etc. and cable card board type, obtain plate MAC Address and cable card board type, when the cable card board type shows that the purpose cable card board is the switched line clamp, information such as purpose MOD ID and destination slogan are encapsulated in the HiGig head that is arranged in Ethernet message front, and described purpose plate MAC Address is encapsulated in the MAC head that is arranged in a described HiGig front, constitute the Ethernet message, described Ethernet message is sent to the Ethernet crosspoint; The Ethernet crosspoint sends to corresponding switched line clamp or route line card plate according to the purpose plate MAC Address in the described message MAC head with described message;
Described route line card plate comprises by the message that the Ethernet crosspoint receives from other route line card plate or switched line clamp:
The route line card plate receives the Ethernet message from the Ethernet crosspoint, table look-up according to the source plate MAC Address field in the message, obtain the type of source cable card board, at cable card board type explicit message during from the switched line clamp, peel off the MAC head and the HiGig head of described message, and message is sent from the corresponding port according to the destination slogan in the described HiGig head.
17. method as claimed in claim 16, it is characterized in that, described interface conversion unit is encapsulated in described purpose plate MAC Address before the MAC head that is arranged in a described HiGig front, further comprises: peel off the HiGig head of described HiGig message, and add the HiGig head after simplifying;
Described interface conversion unit further comprises after peeling off the MAC head of described message: peel off the HiGig head after described message is simplified, and add the HiGig head of standard;
Described route line card plate is encapsulated in the HiGig head of HiGig head for simplifying that is positioned at Ethernet message front;
The HiGig head of the HiGig head that described route line card plate is peeled off from the Ethernet message for simplifying.
18. method as claimed in claim 17, it is characterized in that, this method further comprises: the L2/L3 exchange chip is when looking into L2/L3 according to the destination address of message and transmit, if search less than corresponding target MOD ID and destination slogan, then specific purpose MOD ID and the destination slogan that sets in advance is encapsulated in the HiGig head that is arranged in Ethernet message front, constitute the HiGig message, described HiGig message is passed to interface conversion unit;
Described interface conversion unit is after receiving described HiGig message, find plate MAC Address according to this specific MOD ID to the default route cable card board that should MOD ID be provided with, described purpose plate MAC Address and corresponding default identification are encapsulated in the MAC head that is arranged in a described HiGig front, the Ethernet message that constitutes is sent to the Ethernet crosspoint;
After described default route cable card board receives the described Ethernet message of Ethernet crosspoint forwarding, according to the default identification position in the described MAC head, behind the MAC head of peeling off described message and HiGig head, described message is handled as the message from the outside.
19. method as claimed in claim 17, it is characterized in that, described interface conversion unit with purpose plate MAC Address be encapsulated in be arranged in HiGig front the MAC head before or afterwards, further comprise: interface conversion unit is according to the purpose plate information in the message, message is sent in the forward path of respective cache passage traffic management control module repeating query or based on the message in the forward path of certain buffer memory passage of priority ground scheduling;
Described interface conversion unit is reduced to message before the HiGig message or afterwards, further comprise: interface conversion unit is according to the source plate information in the message, message is sent in the forward path of respective cache passage traffic management control module repeating query or based on the message in the forward path of certain buffer memory passage of priority ground scheduling.
CN2008101149060A 2008-06-13 2008-06-13 Routing switching device, method and switching cable fastener plate Active CN101296186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101149060A CN101296186B (en) 2008-06-13 2008-06-13 Routing switching device, method and switching cable fastener plate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101149060A CN101296186B (en) 2008-06-13 2008-06-13 Routing switching device, method and switching cable fastener plate

Publications (2)

Publication Number Publication Date
CN101296186A CN101296186A (en) 2008-10-29
CN101296186B true CN101296186B (en) 2010-12-22

Family

ID=40066205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101149060A Active CN101296186B (en) 2008-06-13 2008-06-13 Routing switching device, method and switching cable fastener plate

Country Status (1)

Country Link
CN (1) CN101296186B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302264A (en) * 2015-06-08 2017-01-04 杭州华三通信技术有限公司 Unicast message interoperability methods between Dune switched line clamp and flexibly cable card board and device

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656676B (en) * 2009-09-18 2013-03-20 杭州华三通信技术有限公司 Method and equipment for updating media access control (MAC) address list items
CN102123080B (en) * 2010-12-31 2014-02-05 杭州华三通信技术有限公司 Data forwarding device and cable fastener plate and data forwarding method
WO2012106905A1 (en) * 2011-07-20 2012-08-16 华为技术有限公司 Message processing method and device
EP2670082A4 (en) 2011-08-23 2014-02-19 Huawei Tech Co Ltd MULTI-CHASSIS CASCADE DEVICE
CN102546422B (en) * 2012-01-19 2015-04-22 福建星网锐捷网络有限公司 Message forwarding method in exchange chip, exchange chip and network device
CN103297344B (en) * 2012-02-27 2016-04-20 迈普通信技术股份有限公司 Distributed data communication system and method for forwarding multicast message thereof
CN102904819B (en) * 2012-09-28 2015-12-09 北京华为数字技术有限公司 A kind of router networking network and crossover router
CN103236992B (en) * 2013-04-03 2016-09-28 武汉烽火网络有限责任公司 The method realizing the interconnection of rack system backboard
CN104283817B (en) * 2013-07-03 2017-10-27 新华三技术有限公司 Line card and the method and message forwarding equipment of logic line card intercommunication are exchanged for realizing
CN103490961B (en) * 2013-09-05 2017-05-10 新华三技术有限公司 Network equipment
CN103828332B (en) * 2013-12-04 2015-12-30 华为技术有限公司 Data processing method, device, storage control and rack
CN104717138B (en) * 2013-12-11 2019-07-12 中兴通讯股份有限公司 A kind of method and interchanger for realizing message forwarding
CN105245454B (en) * 2014-07-10 2018-10-19 华为技术有限公司 The flow forwarding method and device of exchange system
CN105376168B (en) * 2014-08-25 2019-06-11 深圳市中兴微电子技术有限公司 A kind of method and apparatus of load balancing
CN104168220B (en) * 2014-09-02 2017-05-17 福建星网锐捷网络有限公司 Higig flow equalization processing method and device thereof
CN105634614B (en) 2014-10-30 2018-06-05 华为技术有限公司 Optical sender, wavelength alignment methods and passive optical network
CN104394081B (en) * 2014-12-05 2017-10-03 迈普通信技术股份有限公司 A kind of data processing method and device
CN106789753B (en) 2015-11-24 2020-06-26 新华三技术有限公司 Line card frame, multi-frame cluster router and message processing method
CN106789679B (en) * 2015-11-24 2020-02-21 新华三技术有限公司 A line card frame, multi-frame cluster router, route selection and packet processing method
CN107547409B (en) * 2016-06-24 2020-12-25 华为技术有限公司 Route searching method and device and routing equipment
CN106302256B (en) * 2016-08-23 2019-06-14 锐捷网络股份有限公司 A kind of ethernet switching device and data processing method
CN107342958B (en) * 2017-06-29 2020-06-09 迈普通信技术股份有限公司 Distributed communication equipment and inter-board communication method
CN107682278A (en) * 2017-11-23 2018-02-09 迈普通信技术股份有限公司 Message forwarding method and device
CN107896196B (en) * 2017-12-28 2020-06-09 杭州迪普科技股份有限公司 Method and device for distributing messages
CN110768917B (en) * 2019-10-31 2021-09-21 杭州迪普科技股份有限公司 Message transmission method and device
CN110855568B (en) * 2019-11-22 2022-02-22 迈普通信技术股份有限公司 Message forwarding method and system
CN111522772A (en) * 2020-04-27 2020-08-11 杭州迪普科技股份有限公司 Method and device for configuring service board
CN111817958B (en) * 2020-06-10 2023-04-07 新华三信息安全技术有限公司 Message forwarding method and network equipment
CN111786890B (en) * 2020-06-29 2022-05-27 新华三信息安全技术有限公司 Multicast message sending method, related device and network equipment
CN112511333B (en) * 2020-10-13 2023-04-18 广州市高科通信技术股份有限公司 Method, device and medium for managing opposite terminal device through SDH network
CN115567435A (en) * 2021-07-02 2023-01-03 中国船舶重工集团公司第七二四研究所 A Parallel Fast Search and Management Method of Routing Information Based on FPGA
CN113645120A (en) * 2021-10-15 2021-11-12 中兴通讯股份有限公司 Message processing method, line card, equipment and storage medium
CN114339488B (en) * 2021-12-28 2023-09-22 北京格林威尔科技发展有限公司 Method and device for protecting Ethernet service in optical transmission network
CN116389391B (en) * 2023-03-28 2024-03-29 南京金阵微电子技术有限公司 Switch chip logic cascading method and system and switch
CN116489113B (en) * 2023-04-23 2024-03-12 南京金阵微电子技术有限公司 Port expanding method and system of switch chip and switch

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1407757A (en) * 2001-08-17 2003-04-02 深圳市中兴通讯股份有限公司上海第二研究所 Method and device for replacing special network processor for asynchronous transfer mode
CN101115006A (en) * 2007-08-21 2008-01-30 杭州华三通信技术有限公司 Three-layer packet forwarding method and routing device and two-layer switch module
CN101123529A (en) * 2007-09-21 2008-02-13 杭州华三通信技术有限公司 Multicast implementation method, system and device based on PCIE switching network
CN101150527A (en) * 2007-11-09 2008-03-26 杭州华三通信技术有限公司 A method, system and equipment for PCIE data transmission

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1407757A (en) * 2001-08-17 2003-04-02 深圳市中兴通讯股份有限公司上海第二研究所 Method and device for replacing special network processor for asynchronous transfer mode
CN101115006A (en) * 2007-08-21 2008-01-30 杭州华三通信技术有限公司 Three-layer packet forwarding method and routing device and two-layer switch module
CN101123529A (en) * 2007-09-21 2008-02-13 杭州华三通信技术有限公司 Multicast implementation method, system and device based on PCIE switching network
CN101150527A (en) * 2007-11-09 2008-03-26 杭州华三通信技术有限公司 A method, system and equipment for PCIE data transmission

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302264A (en) * 2015-06-08 2017-01-04 杭州华三通信技术有限公司 Unicast message interoperability methods between Dune switched line clamp and flexibly cable card board and device
CN106302264B (en) * 2015-06-08 2019-06-14 新华三技术有限公司 Dune exchanges the unicast message interoperability methods and device between cable card board and flexible cable card board

Also Published As

Publication number Publication date
CN101296186A (en) 2008-10-29

Similar Documents

Publication Publication Date Title
CN101296186B (en) Routing switching device, method and switching cable fastener plate
US11876879B2 (en) Message handler
KR100612318B1 (en) Apparatus and method for implementing vlan bridging and a vpn in a distributed architecture router
EP2412129B1 (en) Redundant host connection in a routed network
US7697528B2 (en) Multilink trunking for encapsulated traffic
CN113300876B (en) DCN message processing method, network equipment and network system
US20110064086A1 (en) Fiber Channel over Ethernet and Fiber Channel Switching Based on Ethernet Switch Fabrics
WO2008019630A1 (en) A method, network and node device for data retransmission in network with double-layer
WO2006118696A2 (en) Metro ethernet network with scaled broadcast and service instance domains
CN1866919B (en) Service switching method based on VLAN stack
WO2007071153A1 (en) A method, a data network system and a network node for transmitting data packets
WO2007076679A1 (en) A method and device for quality of service management based on virtual local area network stack
WO2021093463A1 (en) Packet forwarding method, first network device, and first device group
US6728246B1 (en) Arrangement for reducing layer 3 header data supplied to switching logic on a network switch
WO2019095778A1 (en) System and method for realizing interworking of ilk interface service and ethernet interface service
CN100502341C (en) Implementation method and system for transmitting Ethernet services on RPR network
CN104052671B (en) The processing method and routing bridge of multicast forwarding list item in TRILL network
CN104243363B (en) A kind of message processing method and device
JP5853758B2 (en) Communication apparatus and bandwidth control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230815

Address after: 24th Floor, Block B, Zhizhen Building, No. 7 Zhichun Road, Haidian District, Beijing, 100088

Patentee after: Beijing Ziguang Communication Technology Group Co.,Ltd.

Address before: No. 466 Changhe Road, Binjiang District

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241127

Address after: Room 867, Building B, Lingang High tech Industrial Park, Yongji Avenue, Hunan Chenglingji New Port Area, Yueyang City, Hunan Province 414000

Patentee after: Ziguang Communication Technology (Yueyang) Co.,Ltd.

Country or region after: China

Address before: 24th Floor, Block B, Zhizhen Building, No. 7 Zhichun Road, Haidian District, Beijing, 100088

Patentee before: Beijing Ziguang Communication Technology Group Co.,Ltd.

Country or region before: China