CN100372334C - A device and method for transmitting InfiniBand data in an optical network - Google Patents
A device and method for transmitting InfiniBand data in an optical network Download PDFInfo
- Publication number
- CN100372334C CN100372334C CNB021465282A CN02146528A CN100372334C CN 100372334 C CN100372334 C CN 100372334C CN B021465282 A CNB021465282 A CN B021465282A CN 02146528 A CN02146528 A CN 02146528A CN 100372334 C CN100372334 C CN 100372334C
- Authority
- CN
- China
- Prior art keywords
- infiniband
- module
- data
- flow control
- virtual channel
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种实现在光网络中传输InfiniBand数据的设备,该设备位于InfiniBand端口与光网络端口之间,包含InfiniBand接口模块、映射和流控模块、数据处理模块、光网络接口模块和管理模块,使用该设备可以实现InfiniBand协议在SDH/SONET上的可靠传输。本发明同时公开了一种实现在光网络中传输InfiniBand数据的方法,该方法将InfiniBand数据帧作为光网络可以传输的高级数据链路控制协议数据帧的净荷,封装在高级数据链路控制协议数据帧中,这样就可以实现InfiniBand数据帧在光网络中的传输。利用广泛使用的SDH/SONET网络,实现在InfiniBand广域范围的可靠传输。相对于现有技术,本发明很好地实现了基于InfiniBand的服务器远程集群、远程存储等功能,大大扩展了InfiniBand的应用范围。
The invention discloses a device for transmitting InfiniBand data in an optical network. The device is located between an InfiniBand port and an optical network port, and includes an InfiniBand interface module, a mapping and flow control module, a data processing module, an optical network interface module and a management Module, using this device can realize the reliable transmission of InfiniBand protocol on SDH/SONET. The invention also discloses a method for transmitting InfiniBand data in an optical network. In the method, the InfiniBand data frame is used as the payload of an advanced data link control protocol data frame that can be transmitted by the optical network, and is encapsulated in the advanced data link control protocol. In this way, the transmission of InfiniBand data frames in the optical network can be realized. Utilize widely used SDH/SONET network to realize reliable transmission in InfiniBand wide area. Compared with the prior art, the present invention well realizes functions such as server remote clustering and remote storage based on InfiniBand, and greatly expands the application range of InfiniBand.
Description
技术领域technical field
本发明涉及光网络中的数据传输技术,特别涉及一种实现在光网络中传输InfiniBand数据的设备及方法。The invention relates to the data transmission technology in the optical network, in particular to a device and a method for realizing the transmission of InfiniBand data in the optical network.
背景技术Background technique
InfiniBand(以下简称IB)技术是一种交换式的串行总线技术,其技术标准规定了从物理层到传输层的所有操作协议,并且由硬件来实现从一层到四层的功能,从而大大减轻了CPU的负荷,同时IB技术还制定了详细的流控策略和安全机制,可以实现端口级和连接级的流控和点对点的安全保护。InfiniBand (hereinafter referred to as IB) technology is a switched serial bus technology. Its technical standards stipulate all operating protocols from the physical layer to the transport layer, and the functions from one layer to four layers are realized by hardware, thus greatly The CPU load is reduced, and IB technology has also formulated detailed flow control strategies and security mechanisms, which can realize port-level and connection-level flow control and point-to-point security protection.
IB技术的网络构成参见图1,图1为现有技术IB技术的网络构成示意图。如图1所示,IB网络中包含的设备有:主通道适配器(HCA)105、目标通道适配器(TCA)106、IB交换机(Switch)107、IB路由器(Router)108等。IB网络通过连接了系统内存104的系统内存控制器103和系统总线102与CPU101相连。图1中将Switch 107与HCA 105和TCA 106和Router 108连接在一起的是IB链路(IB Link)。Refer to FIG. 1 for the network configuration of the IB technology. FIG. 1 is a schematic diagram of the network configuration of the IB technology in the prior art. As shown in FIG. 1 , the devices included in the IB network include: a host channel adapter (HCA) 105 , a target channel adapter (TCA) 106 , an IB switch (Switch) 107 , an IB router (Router) 108 and the like. The IB network is connected to the CPU 101 through the system memory controller 103 connected to the system memory 104 and the system bus 102 . In Fig. 1, what connects Switch 107, HCA 105, TCA 106, and Router 108 is an IB link (IB Link).
HCA和TCA是InfiniBand体系结构中的末端(EndNode)设备,HCA主要是连接CPU和IB链路的设备,而TCA主要是连接I/O设备和IB链路;Switch是InfiniBand链路层设备,可以实现InfiniBand报文在同一个IB子网内的转发功能;Router是InfiniBand网络层设备,可以实现IB子网间或者IB子网和不同IB网络的报文转发功能;IB Link则是具体的物理链路,传输介质可以是印刷电路板(PCB)、铜缆和光纤。HCA and TCA are the end (EndNode) devices in the InfiniBand architecture. HCA is mainly a device connecting the CPU and the IB link, while TCA is mainly connecting the I/O device and the IB link; Switch is an InfiniBand link layer device that can Realize the forwarding function of InfiniBand messages in the same IB subnet; Router is the InfiniBand network layer device, which can realize the message forwarding function between IB subnets or between IB subnets and different IB networks; IB Link is a specific physical link The transmission medium can be printed circuit board (PCB), copper cable and optical fiber.
目前,在通信系统中利用IB技术能够实现板间、框间和设备间的互联。IB技术作为一种新兴的交换式串行总线技术,将在未来的数据存储域网(SAN)、高性能集群以及数据通信等领域有广泛的应用。At present, the use of IB technology in the communication system can realize the interconnection between boards, frames and devices. As an emerging switched serial bus technology, IB technology will be widely used in future data storage area network (SAN), high-performance clusters, and data communications.
然而,目前IB规范中描述的利用铜缆联接的最远距离为17m,光纤联接的最远距离也只在十几公里左右,因此,IB技术主要应用于服务器集群、本地存储,其局限于系统区域网络,不能实现广域的IB互联。这样,就制约了IB技术的广泛应用和进一步的发展。However, the farthest distance of copper cable connection described in the current IB specification is 17m, and the furthest distance of optical fiber connection is only about a dozen kilometers. Therefore, IB technology is mainly used in server clusters and local storage, and it is limited to system A regional network cannot realize wide-area IB interconnection. In this way, the wide application and further development of IB technology are restricted.
在光网络传输技术中,同步数字序列(SDH)/同步光网络(SONET)是一种非常成熟的技术,具有安全性好,可靠性高的优点,在电信网中获得大规模的应用。SDH/SONET本身是一个透明的传输通道,可以实现多种协议数据的远距离传输。In the optical network transmission technology, Synchronous Digital Hierarchy (SDH)/Synchronous Optical Network (SONET) is a very mature technology, which has the advantages of good security and high reliability, and has been widely used in telecommunication networks. SDH/SONET itself is a transparent transmission channel, which can realize long-distance transmission of multiple protocol data.
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种实现在光网络中传输InfiniBand数据的设备,使用该设备可以实现IB协议在SDH/SONET上的可靠传输。In view of this, the main purpose of the present invention is to provide a device for realizing the transmission of InfiniBand data in the optical network, and the reliable transmission of IB protocol on SDH/SONET can be realized by using the device.
本发明的另一个主要目的在于提供一种实现在光网络中传输InfiniBand数据的方法,利用广泛使用的SDH/SONET网络,实现IB在广域范围的可靠传输。Another main purpose of the present invention is to provide a method for realizing the transmission of InfiniBand data in the optical network, utilizing the widely used SDH/SONET network to realize the reliable transmission of IB in the wide area.
根据上述发明目的的一个方面,本发明提供了一种实现在光网络中传输InfiniBand数据的设备,该设备位于InfiniBand端口与光网络端口之间,包含InfiniBand接口模块,其与InfiniBand端口和映射和流控模块分别相连,用于收发InfiniBand端口与映射和流控模块之间传输的数据;According to one aspect of the purpose of the above invention, the present invention provides a device for transmitting InfiniBand data in an optical network, the device is located between the InfiniBand port and the optical network port, and includes an InfiniBand interface module, which is connected to the InfiniBand port and mapping and flow The control modules are connected separately to send and receive data transmitted between the InfiniBand port and the mapping and flow control modules;
映射和流控模块,其从InfiniBand接口模块接收InfiniBand数据包,将该InfiniBand数据包加上流控信息后,发送给数据处理模块;或将从数据处理模块接收的数据包,将其去掉流控信息后,发送给InfiniBand接口模块;The mapping and flow control module receives the InfiniBand data packet from the InfiniBand interface module, adds the flow control information to the InfiniBand data packet, and sends it to the data processing module; or removes the flow control information from the data packet received from the data processing module After that, send it to the InfiniBand interface module;
数据处理模块,其从映射和流控模块接收数据包,并将该数据包加上头信息后发送给光网络接口模块,或从光网络接口模块接收数据包,将其去掉头信息后发送给映射和流控模块;Data processing module, which receives data packets from the mapping and flow control module, and sends the data packets to the optical network interface module after adding header information, or receives data packets from the optical network interface module, removes the header information and sends them to the mapping and flow control module;
光网络接口模块,其接收数据处理模块发送的数据发送给光网络端口,或接收光网络端口发送的数据发送给数据处理模块;An optical network interface module, which receives data sent by the data processing module and sends it to the optical network port, or receives data sent by the optical network port and sends it to the data processing module;
管理模块,其通过向上述其它各模块发送管理信息和接收上述其它各模块的上报信息与其他各模块相连。The management module is connected to other modules by sending management information to the other modules and receiving the reported information from the other modules.
其中,所述的InfiniBand接口模块可以包含InfiniBand接口电路、虚通道收发送缓存;InfiniBand接口电路接收InfiniBand端口发送的数据并将其发送给虚通道发送缓存,或接收虚通道接收缓存发送的数据并将其发送到InfiniBand端口;虚通道发送缓存将从InfiniBand接口电路接收的数据暂存后发送给映射和流控模块;虚通道接收缓存将从映射和流控模块接收的数据暂存后发送给InfiniBand接口电路。Wherein, the InfiniBand interface module may include an InfiniBand interface circuit and a virtual channel receiving and sending buffer; the InfiniBand interface circuit receives the data sent by the InfiniBand port and sends it to the virtual channel sending buffer, or receives the data sent by the virtual channel receiving buffer and sends it It is sent to the InfiniBand port; the virtual channel send buffer temporarily stores the data received from the InfiniBand interface circuit and then sends it to the mapping and flow control module; the virtual channel receive buffer temporarily stores the data received from the mapping and flow control module and then sends it to the InfiniBand interface circuit.
所述的虚通道发送缓存还可以进一步包含虚通道发送队列和虚通道发送复用模块,虚通道发送缓存接收的数据先暂存到虚通道队列中,再通过虚通道复用模块发送给映射和流控模块。虚通道接收缓存还可以进一步包含虚通道接收队列和虚通道接收复用模块,虚通道接收缓存接收的数据先暂存到虚通道队列中,再通过虚通道复用模块发送给InfiniBand接口电路。The virtual channel sending buffer can further include a virtual channel sending queue and a virtual channel sending multiplexing module, and the data received by the virtual channel sending buffer is first temporarily stored in the virtual channel queue, and then sent to the mapping and the virtual channel multiplexing module through the virtual channel multiplexing module. Flow control module. The virtual channel receiving buffer can further include a virtual channel receiving queue and a virtual channel receiving multiplexing module. The data received by the virtual channel receiving buffer is temporarily stored in the virtual channel queue, and then sent to the InfiniBand interface circuit through the virtual channel multiplexing module.
所述的虚通道发送缓存还可以进一步通过向InfiniBand接口电路发送发送缓冲器状态信号与InfiniBand接口电路相连;所述的虚通道接收缓存也可以进一步通过向映射和流控模块发送接收缓冲器状态信号与映射和流控模块相连。The virtual channel sending buffer can also be further connected to the InfiniBand interface circuit by sending a sending buffer status signal to the InfiniBand interface circuit; the virtual channel receiving buffer can also further send a receiving buffer status signal to the mapping and flow control module Connected to the Mapping and Fluidics modules.
所述的数据处理模块可以进一步包含数据计算校验和模块,其对从映射和流控模块接收的数据计算校验和;数据处理模块还可以进一步包含检查计算校验和模块,其对从光网络接口模块接收的数据检查计算校验和。The data processing module may further include a data calculation checksum module, which calculates a checksum for the data received from the mapping and flow control module; The data received by the network interface module is checked to calculate a checksum.
所述的管理模块向其它各模块发送的管理信息可以包括:向InfiniBand接口模块发送端口的控制信息、向映射和流控模块发送的流控策略信息、向数据处理模块发送的控制信息、向光网络接口模块发送端口的控制信息。管理模块接收其它各模块的上报信息可以包括:InfiniBand接口模块发送的端口状态上报信息、映射和流控模块发送的流控状态上报信息、数据处理模块发送的数据包统计上报信息、光网络接口模块发送的端口状态上报信息。The management information sent by the management module to other modules may include: sending port control information to the InfiniBand interface module, flow control policy information sent to the mapping and flow control module, control information sent to the data processing module, The network interface module sends control information for the port. The reporting information received by the management module from other modules may include: port status reporting information sent by the InfiniBand interface module, flow control status reporting information sent by the mapping and flow control module, data packet statistics reporting information sent by the data processing module, optical network interface module The sent port status report information.
所述的InfiniBand端口可以为InfiniBand交换机,或InfiniBand路由器,或InfiniBand通道适配器。The InfiniBand port can be an InfiniBand switch, or an InfiniBand router, or an InfiniBand channel adapter.
所述的光网络端口可以为分插复用器。The optical network port may be an add/drop multiplexer.
根据上述发明目的的另一个方面,本发明提供了一种实现在光网络中传输InfiniBand数据的方法,在InfiniBand数据发送端,将InfiniBand数据帧作为光网络可以传输的高级数据链路控制协议数据帧的净荷,封装在高级数据链路控制协议数据帧中,并将该数据帧发送到光网络端口,该数据帧通过光网络传输到数据接收端的光网络端口,在数据接收端将封装在高级数据链路控制协议数据帧中的InfiniBand数据帧取出发送给数据InfiniBand接收端。According to another aspect of the purpose of the above invention, the present invention provides a method for transmitting InfiniBand data in an optical network. At the InfiniBand data sending end, the InfiniBand data frame is used as an advanced data link control protocol data frame that can be transmitted by the optical network. The payload is encapsulated in the advanced data link control protocol data frame, and the data frame is sent to the optical network port, the data frame is transmitted to the optical network port of the data receiving end through the optical network, and the data receiving end will be encapsulated in the advanced The InfiniBand data frame in the data link control protocol data frame is taken out and sent to the data InfiniBand receiving end.
该方法中所述的数据帧的净荷可以进一步设置一个用于标识流控状态的流控消息头。The payload of the data frame described in the method may further set a flow control message header for identifying a flow control state.
该方法可以采用InfiniBand通信协议中基于信用度的流控机制进行流控。The method can use the credit-based flow control mechanism in the InfiniBand communication protocol to perform flow control.
由上述技术方案可见,本发明实现在光网络中传输InfiniBand数据的设备及方法利用广泛使用的SDH/SONET网络,实现了IB在广域范围的可靠传输。相对于现有技术,本发明很好的解决了IB远距离传输的问题,可以实现基于IB的服务器远程集群、远程存储,大大扩展了IB的应用范围。It can be seen from the above technical solutions that the device and method for transmitting InfiniBand data in the optical network of the present invention utilize the widely used SDH/SONET network to realize reliable transmission of IB in a wide area. Compared with the prior art, the present invention well solves the problem of IB long-distance transmission, can realize IB-based server remote clustering and remote storage, and greatly expands the application range of IB.
附图说明Description of drawings
图1为现有技术IB技术的网络构成示意图;FIG. 1 is a schematic diagram of the network configuration of the prior art IB technology;
图2为本发明实现在光网络中传输InfiniBand数据的设备一个实施例的框图;Fig. 2 realizes the block diagram of an embodiment of the equipment of transmitting InfiniBand data in optical network for the present invention;
图3为图2所示实施例的传输设备连接IB网和SDH网的连接示意图;Fig. 3 is the connection schematic diagram that the transmission equipment of embodiment shown in Fig. 2 connects IB network and SDH network;
图4为本发明的传输方法中使用的HDLC数据帧的帧结构示意图;Fig. 4 is the frame structure schematic diagram of the HDLC data frame used in the transmission method of the present invention;
图5为IB数据帧的结构示意图。FIG. 5 is a schematic structural diagram of an IB data frame.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下面结合实施例并参照附图,对本发明进一步详细说明。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 with reference to the accompanying drawings.
图2为本发明实现在光网络中传输InfiniBand数据的设备一个实施例的框图。如图2所示,该传输设备位于InfiniBand端口与光网络端口之间,包含InfiniBand接口模块201、映射和流控模块202、数据处理模块203、光网络接口模块204和管理模块205。FIG. 2 is a block diagram of an embodiment of a device for transmitting InfiniBand data in an optical network according to the present invention. As shown in FIG. 2 , the transmission device is located between the InfiniBand port and the optical network port, and includes an InfiniBand interface module 201 , a mapping and flow control module 202 , a data processing module 203 , an optical network interface module 204 and a management module 205 .
其中,InfiniBand接口模块201包含InfiniBand接口电路2011、虚通道发送缓存2012和虚通道接收缓存2013;InfiniBand接口模块201通过InfiniBand接口电路2011与InfiniBand端口相连,InfiniBand接口电路2011接收InfiniBand端口发送的数据并将其发送给虚通道发送缓存2012,或接收虚通道接收缓存2013发送的数据并将其发送到InfiniBand端口;虚通道发送缓存2012将从InfiniBand接口电路2011接收的数据暂存后发送给映射和流控模块202;虚通道接收缓存2013将从映射和流控模块202接收的数据暂存后发送给InfiniBand接口电路2011;本实施例中,虚通道发送缓存2012还包含了虚通道(VL)发送队列VL0-VLn和虚通道发送复用模块VL MUX,虚通道发送缓存2012接收的数据先暂存到虚通道发送队列VL0-VLn中,再通过虚通道发送复用模块VLMUX发送给映射和流控模块202;虚通道接收缓存2013也进一步包含了虚通道接收队列VL0-VLn和虚通道接收复用模块VL MUX,虚通道接收缓存2013接收的数据先暂存到虚通道接收队列VL0-VLn中,再通过虚通道接收复用模块VL MUX发送给InfiniBand接口电路2011。虚通道发送缓存2012还通过向InfiniBand接口电路发送发送缓冲器状态信号TXBS与InfiniBand接口电路相连;虚通道接收缓存2013还通过向映射和流控模块202发送接收缓冲器状态信号RXBS与映射和流控模块202相连,本发明的传输设备根据TXBS和RXBS来实现流控。Wherein, InfiniBand interface module 201 comprises InfiniBand interface circuit 2011, virtual channel sending buffer 2012 and virtual channel receiving buffer 2013; InfiniBand interface module 201 is connected with InfiniBand port by InfiniBand interface circuit 2011, InfiniBand interface circuit 2011 receives the data that InfiniBand port sends and sends It sends to the virtual channel sending buffer 2012, or receives the data sent by the virtual channel receiving buffer 2013 and sends it to the InfiniBand port; the virtual channel sending buffer 2012 temporarily stores the data received from the InfiniBand interface circuit 2011 and sends it to mapping and flow control Module 202; the virtual channel receiving buffer 2013 temporarily stores the data received from the mapping and flow control module 202 and sends it to the InfiniBand interface circuit 2011; in this embodiment, the virtual channel sending buffer 2012 also includes a virtual channel (VL) sending queue VL0 -VLn and the virtual channel sending multiplexing module VL MUX, the data received by the virtual channel sending buffer 2012 is first temporarily stored in the virtual channel sending queue VL0-VLn, and then sent to the mapping and flow control module 202 through the virtual channel sending multiplexing module VLMUX The virtual channel receiving buffer 2013 also further includes the virtual channel receiving queue VL0-VLn and the virtual channel receiving multiplexing module VL MUX, the data received by the virtual channel receiving buffer 2013 is temporarily stored in the virtual channel receiving queue VL0-VLn first, and then passed through The virtual channel receiving and multiplexing module VL MUX sends it to the InfiniBand interface circuit 2011. The virtual channel transmit buffer 2012 is also connected to the InfiniBand interface circuit by sending the transmit buffer status signal TXBS to the InfiniBand interface circuit; The modules 202 are connected, and the transmission device of the present invention implements flow control according to TXBS and RXBS.
映射和流控模块202接收InfiniBand接口模块201的虚通道发送缓存2012发送的数据,并根据虚通道发送缓存2012当前的状态,在InfiniBand数据包加上相应的流控信息发送给数据处理模块203;或接收数据处理模块203发送的数据,从该数据的数据包中取出流控信息,把去掉流控信息的数据包发送到InfiniBand接口模块201。The mapping and flow control module 202 receives the data sent by the virtual channel transmission buffer 2012 of the InfiniBand interface module 201, and according to the current state of the virtual channel transmission buffer 2012, adds corresponding flow control information to the InfiniBand data packet and sends it to the data processing module 203; Or receive the data sent by the data processing module 203 , extract the flow control information from the data packet of the data, and send the data packet without the flow control information to the InfiniBand interface module 201 .
数据处理模块203接收映射和流控模块202发送的数据,将该数据的数据包加上头信息并计算校验和后发送给光网络接口模块204,或接收光网络接口模块204发送的数据,将该数据的数据包去掉头信息并检查计算校验和后发送给映射和流控模块202。The data processing module 203 receives the data sent by the mapping and flow control module 202, adds header information to the data packet of the data and calculates the checksum and sends it to the optical network interface module 204, or receives the data sent by the optical network interface module 204, and sends the data to the optical network interface module 204. The data packet of the data is sent to the mapping and flow control module 202 after removing the header information and checking and calculating the checksum.
光网络接口模块204接收数据处理模块203发送的数据发送给光网络端口,或接收光网络端口发送的数据发送给数据处理模块203。The optical network interface module 204 receives the data sent by the data processing module 203 and sends it to the optical network port, or receives the data sent by the optical network port and sends it to the data processing module 203 .
管理模块205通过向其它各模块发送管理信息和接收其它各模块的上报信息与其它各模块相连。管理模块205向InfiniBand接口模块201发送端口控制信息,接收InfiniBand接口模块201发送的端口状态上报信息、向映射和流控模块202发送流控策略信息,接收映射和流控模块202发送的流控状态上报信息、向数据处理模块203发送控制信息,接收数据处理模块203发送的数据包统计上报信息、向光网络接口模块204发送端口控制信息,接收光网络接口模块204发送的端口状态上报信息。The management module 205 is connected to other modules by sending management information to other modules and receiving reported information from other modules. The management module 205 sends port control information to the InfiniBand interface module 201, receives the port status report information sent by the InfiniBand interface module 201, sends flow control policy information to the mapping and flow control module 202, and receives the flow control status sent by the mapping and flow control module 202 Report information, send control information to the data processing module 203, receive data packet statistics report information sent by the data processing module 203, send port control information to the optical network interface module 204, and receive port status report information sent by the optical network interface module 204.
图3为图2所示实施例的传输设备连接IB网和SDH网的连接示意图。如图3所示,本实施例的基于光网络的IB传输设备302一端与SDH环网中的分插复用器303相连,另一端与IB网的IB交换机/IB路由器/IB通道适配器301相连。Fig. 3 is the connection schematic diagram of the transmission equipment of the embodiment shown in Fig. 2 connecting the IB network and the SDH network. As shown in Figure 3, one end of the
本发明实现在光网络中传输InfiniBand数据的方法为:在InfiniBand数据发送端,将InfiniBand数据帧作为光网络可以传输的高级数据链路控制协议(HDLC)数据帧的净荷,封装在HDLC数据帧中,并将该数据帧发送到光网络端口,该数据帧通过光网络传输到数据接收端的光网络端口,在数据接收端将封装在HDLC数据帧中的InfiniBand数据帧取出发送给数据InfiniBand接收端。The present invention realizes the method for transmitting InfiniBand data in the optical network as follows: at the InfiniBand data sending end, the InfiniBand data frame is used as the payload of the high-level data link control protocol (HDLC) data frame that the optical network can transmit, and is encapsulated in the HDLC data frame In, and send the data frame to the optical network port, the data frame is transmitted to the optical network port of the data receiving end through the optical network, and the InfiniBand data frame encapsulated in the HDLC data frame is taken out and sent to the data InfiniBand receiving end at the data receiving end .
图4为本发明的实现方法中使用的HDLC数据帧的帧结构示意图。如图4所示,该数据帧是将IB数据帧增加一个6字节(byte)的流控信息头,再作为HDLC数据帧的净荷封装到HDLC数据帧中后形成的。FIG. 4 is a schematic diagram of the frame structure of the HDLC data frame used in the implementation method of the present invention. As shown in FIG. 4 , the data frame is formed by adding a 6-byte flow control information header to the IB data frame, and encapsulating it into the HDLC data frame as the payload of the HDLC data frame.
其中,IB数据帧包含信息头、IB数据净荷、不变循环冗余码校验(ICRC)和可变循环冗余码校验(VCRC)。其具体结构参见图5,图5为IB数据帧的结构示意图,如图5所示,IB数据帧的信息头包含局部路由头部信息(LRH)、全局路由头部信息(GRH)、基本传输层头部信息(BTH)、传输层扩展头(ETHs)和立即数(ImmData)。IB数据帧的各个字段的简要说明参见表一。Wherein, the IB data frame includes a header, an IB data payload, an invariant cyclic redundancy check (ICRC) and a variable cyclic redundancy check (VCRC). Its specific structure refers to Fig. 5, and Fig. 5 is the structural diagram of IB data frame, and as shown in Fig. 5, the information header of IB data frame includes local routing header information (LRH), global routing header information (GRH), basic transmission Layer header information (BTH), transport layer extension headers (ETHs) and immediate data (ImmData). See Table 1 for a brief description of each field of the IB data frame.
表一Table I
其它字段的说明如下:The other fields are described as follows:
◆标志(Flag),占用1byte:Flag用于标识一个帧的起始和结束,固定为0x7E。如果有两个连续的帧,那么前一帧和后一帧之间只需要一个Flag标志,而不需要两个连续的0x7E去区分连续的帧;当没有数据要发送的时候,就发送连续的Flag到SDH/SONET上,即连续的Flag被认为是一个空的帧。◆Flag, occupying 1 byte: Flag is used to mark the start and end of a frame, and it is fixed at 0x7E. If there are two consecutive frames, only one Flag is needed between the previous frame and the next frame, instead of two consecutive 0x7E to distinguish consecutive frames; when there is no data to send, send consecutive Flag to SDH/SONET, that is, consecutive Flags are considered as an empty frame.
◆地址(Address),占用1byte:地址字段用来标识一个HDLC帧的目的地址。当该字段为0xFF时,表示是广播地址,所有节点都会接收该帧数据。如果该地址是无效地址,那么该帧数据就不会被接收或被忽略掉了。◆Address, occupying 1 byte: the address field is used to identify the destination address of an HDLC frame. When this field is 0xFF, it means broadcast address, and all nodes will receive the frame data. If the address is an invalid address, then the frame data will not be received or ignored.
◆控制(Control),占用1byte:Control字段用来标识一个HDLC帧的类型,表明该帧是HDLC协议中的Information、Supervisory或Unnumbered类型。◆Control (Control), occupying 1 byte: the Control field is used to identify the type of an HDLC frame, indicating that the frame is Information, Supervisory or Unnumbered in the HDLC protocol.
◆协议(Protocol),占用2bytes:Protocol字段用来标识Payload中的协议类型,在本发明中它用于表示净荷(Payload)中包含的是基于IB的SDH/SONET数据,该字段的定义来源于因特网标准——RFC1661,用户自定义的字段需要向因特网数据分配局Internet Assigned Numbers Authority(IANA)申请,本实施例中该字段暂定为0xC031。◆Protocol (Protocol), occupying 2bytes: the Protocol field is used to identify the protocol type in the Payload. In the present invention, it is used to indicate that the payload (Payload) contains SDH/SONET data based on IB. The definition source of this field According to the Internet standard—RFC1661, user-defined fields need to apply to the Internet Assigned Numbers Authority (IANA), the Internet Assigned Numbers Authority (IANA). In this embodiment, this field is tentatively set to 0xC031.
◆流控信息头(Flow Control Header),占用6bytes:用于两台实现在光网络中传输InfiniBand数据的设备之间实现流控,本发明方法采用与InfiniBand协议相同的基于信用度的流控机制。◆Flow Control Header (Flow Control Header), occupying 6 bytes: used to implement flow control between two devices that transmit InfiniBand data in the optical network. The method of the present invention uses the same credit-based flow control mechanism as the InfiniBand protocol.
◆保留(Reserved),占用1byte:保留字段,未来扩展用。◆Reserved (Reserved), occupying 1 byte: Reserved field for future expansion.
◆校验和(FCS),占用4bytes:从Address字段开始到Payload字段结束的校验和。◆Checksum (FCS), occupying 4bytes: the checksum from the address field to the end of the Payload field.
上述方法可以通过使用上述的基于SDH的IB传输设备来具体实现,其过程仍参见图2。其中,发送方向是指从InfiniBand到SDH/SONET端口的方向,接收方向是指从SDH/SONET到InfiniBand端口的方向。The above method can be specifically realized by using the above SDH-based IB transmission equipment, and the process still refers to FIG. 2 . Wherein, the sending direction refers to the direction from InfiniBand to the SDH/SONET port, and the receiving direction refers to the direction from SDH/SONET to the InfiniBand port.
其发送流程如下:The sending process is as follows:
第一步:IB接口模块201的IB接口电路2011从IB端口收到数据后,根据该数据相应的VL号,把接收到的数据放入VL接收缓冲器2012中相应的VL缓冲队列VL0-VLn中,同时要根据VL接收缓冲器2012回送给IB接口电路2011的VL缓冲器的状态TXBS,实现IB接口侧基于VL的流控,该流控机制的实现符合IB协议采用的基于信用度的流控机制的规定,再根据管理模块205发送来的调度机制,例如VL间采用加权轮询调度方式(WRR),通过VL MUX把VL缓冲队列中的数据输出到映射和流控模块202。The first step: After the IB interface circuit 2011 of the IB interface module 201 receives the data from the IB port, according to the corresponding VL number of the data, the received data is put into the corresponding VL buffer queue VL0-VLn in the VL receiving buffer 2012 At the same time, according to the state TXBS of the VL buffer sent back to the IB interface circuit 2011 by the VL receiving buffer 2012, the VL-based flow control at the IB interface side is realized. The realization of the flow control mechanism conforms to the credit-based flow control adopted by the IB protocol According to the regulation of the mechanism, according to the scheduling mechanism sent by the management module 205, for example, a weighted round-robin scheduling method (WRR) is adopted between VLs, and the data in the VL buffer queue is output to the mapping and flow control module 202 through the VL MUX.
第二步:映射和流控模块202收到IB接口模块发来的数据后,根据VL接收缓存器当前的状态,在IB数据包加上相应的流控信息,再将该数据发送给数据处理模块203。Step 2: After the mapping and flow control module 202 receives the data sent by the IB interface module, according to the current state of the VL receiving buffer, add the corresponding flow control information to the IB data packet, and then send the data to the data processing Module 203.
第三步:数据处理模块203接收到包含流控信息的数据包,将其作为光网络可以传输的HDLC数据帧的净荷,封装在HDLC数据帧中,完成数据的成帧、校验和的计算工作,然后将该数据通过SDH接口模块204发送到SDH端口。Step 3: the data processing module 203 receives the packet containing the flow control information, uses it as the payload of the HDLC data frame that the optical network can transmit, encapsulates it in the HDLC data frame, and completes the framing and checksum of the data Calculate the work, and then send the data to the SDH port through the SDH interface module 204.
其接收流程如下:The receiving process is as follows:
第一步:SDH接口模块204从SDH端口接收数据并发送给数据处理模块203。Step 1: The SDH interface module 204 receives data from the SDH port and sends it to the data processing module 203 .
第二步:数据处理模块203将接收到的数据去掉HDLC的FLAG、Address、Control、Protocol等头信息,检查校验和并将处理后的数据发送给映射和流控模块202。Step 2: The data processing module 203 removes HDLC header information such as FLAG, Address, Control, and Protocol from the received data, checks the checksum and sends the processed data to the mapping and flow control module 202 .
第三步:映射和流控模块202从数据中取出中6字节的流控信息,把去掉流控信息的数据包发送给IB接口模块201,同时要根据VL发送缓冲器2013回送给映射和流控模块202的VL接收缓冲器的状态RXBS,实现基于VL的流控。Step 3: the mapping and flow control module 202 takes out the 6-byte flow control information from the data, sends the data packet with the flow control information removed to the IB interface module 201, and sends it back to the mapping and flow control information according to the VL sending buffer 2013 The VL of the flow control module 202 receives the state RXBS of the buffer, and implements flow control based on the VL.
第四步:IB接口模块201根据收到的数据的VL号不同,把数据放入VL接收缓存中VL队列中相应的位置,根据管理模块205发送来的调度机制,例如VL间采用加权轮询调度方式(WRR),通过VL MUX把VL缓冲队列中的数据通过IB接口电路2011输出到IB端口。Step 4: The IB interface module 201 puts the data into the corresponding position in the VL queue in the VL receive cache according to the different VL numbers of the received data, and according to the scheduling mechanism sent by the management module 205, for example, weighted polling is adopted between VLs Scheduling mode (WRR), the data in the VL buffer queue is output to the IB port through the IB interface circuit 2011 by the VL MUX.
由此可见,本发明的基于光网络的InfiniBand通信协议的传输设备及传输方法利用广泛使用的SDH/SONET网络,实现了IB在广域范围的可靠传输。相对于现有技术,本发明很好的解决了IB远距离传输的问题,可以实现基于IB的服务器远程集群、远程存储等功能,大大扩展了IB的应用范围。It can be seen that the transmission equipment and transmission method based on the InfiniBand communication protocol of the optical network of the present invention utilize the widely used SDH/SONET network to realize reliable transmission of IB in a wide area. Compared with the prior art, the present invention well solves the problem of IB long-distance transmission, can realize functions such as server remote clustering and remote storage based on IB, and greatly expands the application range of IB.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021465282A CN100372334C (en) | 2002-10-21 | 2002-10-21 | A device and method for transmitting InfiniBand data in an optical network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021465282A CN100372334C (en) | 2002-10-21 | 2002-10-21 | A device and method for transmitting InfiniBand data in an optical network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1492643A CN1492643A (en) | 2004-04-28 |
CN100372334C true CN100372334C (en) | 2008-02-27 |
Family
ID=34232775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021465282A Expired - Lifetime CN100372334C (en) | 2002-10-21 | 2002-10-21 | A device and method for transmitting InfiniBand data in an optical network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100372334C (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100421434C (en) * | 2004-08-29 | 2008-09-24 | 华为技术有限公司 | Device and method for docking synchronous digital sequence/synchronous optical network network and advanced switching platform |
CN1863013B (en) * | 2005-12-28 | 2010-05-05 | 华为技术有限公司 | Network terminal apparatus in passive light network and data processing method thereof |
WO2011057447A1 (en) * | 2009-11-13 | 2011-05-19 | 华为技术有限公司 | Router and cluster router |
CN103765833B (en) * | 2011-08-23 | 2017-07-04 | 英特尔公司 | The method and device of the exchange for enabling GID in for infinite bandwidth woven structure |
CN103401775B (en) * | 2013-07-18 | 2017-07-21 | 杭州华为数字技术有限公司 | Source messages conversion equipment and its message forwarding method, object message conversion equipment and its message forwarding method |
CN107948105B (en) * | 2018-01-02 | 2020-08-25 | 联想(北京)有限公司 | Method and system for controlling port state of equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1152983A (en) * | 1994-05-23 | 1997-06-25 | 英国电讯公司 | Processing for optical data packet |
JPH11136194A (en) * | 1997-10-28 | 1999-05-21 | Nippon Telegr & Teleph Corp <Ntt> | Light source control method for optical bus circuit device |
US20020165978A1 (en) * | 2001-05-07 | 2002-11-07 | Terence Chui | Multi-service optical infiniband router |
-
2002
- 2002-10-21 CN CNB021465282A patent/CN100372334C/en not_active Expired - Lifetime
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1152983A (en) * | 1994-05-23 | 1997-06-25 | 英国电讯公司 | Processing for optical data packet |
JPH11136194A (en) * | 1997-10-28 | 1999-05-21 | Nippon Telegr & Teleph Corp <Ntt> | Light source control method for optical bus circuit device |
US20020165978A1 (en) * | 2001-05-07 | 2002-11-07 | Terence Chui | Multi-service optical infiniband router |
Also Published As
Publication number | Publication date |
---|---|
CN1492643A (en) | 2004-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101277195B (en) | Switching network communication system, implementing method and switching unit | |
CN101277196B (en) | Communication system, communication method and cable fastener plate based on PCIE switching network | |
JP5258976B2 (en) | Scalable network element using segmentation and reassembly (SAR) function to exchange time division multiplexed signals | |
CN102468899B (en) | Channelizing STM-1 access distribution method of and system thereof | |
JP7027788B2 (en) | Transmission equipment, transmission method and processing equipment | |
US11902172B2 (en) | Device and method for transferring identification and/or data flow control information between devices | |
CN101350757A (en) | Industrial data bus system, industrial data bus equipment and implementation method thereof | |
JPS60136442A (en) | Transmission system of packet switching data | |
US7751335B2 (en) | Failure handling system | |
US20030235214A1 (en) | Service channel over the Ethernet inter-frame gap | |
US20130188655A1 (en) | Encapsulation of data | |
WO2012000374A1 (en) | Method and system for collectively processing interface services | |
CN100372334C (en) | A device and method for transmitting InfiniBand data in an optical network | |
CN101399751B (en) | Switching system and method in a communication network | |
CN115022208A (en) | A TTE network traffic monitoring device and method | |
CA2655368A1 (en) | Data transmission | |
CN1738224B (en) | Circuit and method for TDM data and frame format conversion, transmission and switching system and method | |
CN101090365B (en) | Asynchronous serial data communication channel simulation method and equipment | |
CN100518140C (en) | Method and device for realizing long-distance transmission of SPI4Ⅱ interface | |
CN101159694A (en) | Method of preventing fail fragment reassembly of IP sharing distributed system | |
CN100514935C (en) | Network-unit apparatus management information transmission method and apparatus and network-unit apparatus | |
CN101873247B (en) | Management method and system for controlling data transmission | |
US7590135B2 (en) | Methods and apparatus to perform security related operations on received signals | |
CN102238063B (en) | Message processing method and equipment | |
CN101056474B (en) | Processing method of the passive optical network optical line terminal service |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211222 Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province Patentee after: xFusion Digital Technologies Co., Ltd. Address before: 518057 HUAWEI building, road, Shenzhen science and Technology Park Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
CX01 | Expiry of patent term | ||
CX01 | Expiry of patent term |
Granted publication date: 20080227 |