WO2015131722A1 - Interface card and control method - Google Patents

Interface card and control method Download PDF

Info

Publication number
WO2015131722A1
WO2015131722A1 PCT/CN2015/071650 CN2015071650W WO2015131722A1 WO 2015131722 A1 WO2015131722 A1 WO 2015131722A1 CN 2015071650 W CN2015071650 W CN 2015071650W WO 2015131722 A1 WO2015131722 A1 WO 2015131722A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
interface
control
channel
control channel
Prior art date
Application number
PCT/CN2015/071650
Other languages
French (fr)
Chinese (zh)
Inventor
毕杰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131722A1 publication Critical patent/WO2015131722A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of data communications, and in particular, to an interface card and a control method.
  • the Internet Protocol Radio Access Network generally includes three parts: a backbone network, a metropolitan area network, and an access network. Communication equipment manufacturers have launched different series of products for each of these three parts to meet the needs of different devices. For example, an interface card for the core aggregation device facing the IPRAN is launched for the backbone network, and an interface card for the 300 mm deep chassis access device in the access device facing the IPRAN is introduced for the access network.
  • an interface card for the core aggregation device facing the IPRAN is launched for the backbone network
  • an interface card for the 300 mm deep chassis access device in the access device facing the IPRAN is introduced for the access network.
  • the interface cards of different devices cannot be used interchangeably. That is, the same interface card cannot be compatible with the core aggregation device and the access device.
  • embodiments of the present invention are directed to providing an interface card and a control method for implementing compatibility of an interface card with a core aggregation device and an access device.
  • the first aspect of the present invention provides an interface card, including: an interface card backplane template, a control module, a local CPU module, a service processing module, and an external communication interface; the interface card backplane module is used for the convergence device line.
  • the card mother board or the access device backplane is connected;
  • the interface card backplane module includes: a status interface, a control interface, and a service interface;
  • the service interface is connected to the service processing module, and the service processing module and the external a communication interface is connected to form a service channel of the interface card;
  • the control interface is connected to the control module to form an external control channel of the interface card;
  • the control module is connected to the local CPU module to form the interface a local control channel of the card; the control module further interfaces with the state and the service processing module connection;
  • the control module obtains a rack type indication signal by the status interface, and determines, according to the rack type indication signal, that the interface card backplane module is currently connected to the convergence device line card motherboard, The control channel of the service channel is switched to the external control channel, so that the aggregation device line card motherboard can initialize the service processing module through the external control channel; based on the frame type indication signal, When the interface card backplane module is currently connected to the access device backplane, the control channel of the service channel is switched to the local control channel, so that the local CPU module passes the local control channel pair.
  • the service processing module performs initial configuration.
  • the interface card backplane template further includes: an outband communication interface connected to the local CPU module to form an outband communication channel of the interface card.
  • the interface card further includes: a bridge module, which is respectively connected to the control interface and the control module, and constitutes the external control channel.
  • the control module when the control interface is a PCI-E interface, includes: a first interface conversion module, a second interface conversion module, an LBS switching module, and a reset circuit module; wherein the bridge module and the The first interface conversion module is connected; the first interface conversion module is connected to the LBS switching module; the LBS switching module is respectively connected to the second interface conversion module, the state interface, and the service processing module; The second interface conversion module is connected to the local CPU module; the reset circuit module is respectively connected to the bridge module, the first interface conversion module, the second interface conversion module, the LBS switching module, and the The local CPU module and status interface are connected.
  • the embodiment of the present invention provides a control method, which is applied to an interface card, where the interface card includes an interface card backplane template, a control module, a local CPU module, and a service processing module; and the interface card backplane module includes a state interface, a control interface, and a service interface; the control module is connected to the control interface to form an external control channel of the interface card; the control module is connected to the local CPU module to form a local interface card Control channel The control module is connected to the service interface to form a service channel of the interface card; the method includes: the control module obtains a rack type indication signal by the status interface; and the control module is based on the rack type indication After the signal is determined that the interface card backplane module is currently connected to the aggregation device line card motherboard, the control channel of the service channel is switched to the external control channel, so that the convergence device line card motherboard can pass The external control channel performs initial configuration on the service processing module; the control module determines, after the interface card backplane module is currently
  • control module switches the control channel of the service channel to the external control channel, including: the control module controls the local CPU module to reset, and controls the service processing module to reset, so as to The control channel of the service channel is switched to the external control channel.
  • the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module; the control module switches the control channel of the service channel to
  • the external control channel includes: the control module controls the local CPU module to reset, and controls the bridge module and the service processing module to reset to switch the control channel of the service channel to the external control aisle.
  • control module switches the control channel of the service channel to the local control channel, and the control module controls the local CPU module and the service processing module to reset to perform the service.
  • the control channel of the channel is switched to the local control channel.
  • the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module; the control module switches the control channel of the service channel to
  • the local control channel includes: the control module controls the local CPU module and the service processing module to reset, and controls the bridge module to reset to switch the control channel of the service channel to the external control aisle.
  • the embodiment of the invention provides an interface card and a control method.
  • the interface card includes: an interface card backplane template, a control module, a local CPU module, and a service processing for connecting to the aggregation device line card motherboard or the access device backplane.
  • the module and the external communication interface; the interface card backplane module includes: a status interface, a control interface, and a service interface; wherein, the control module determines the interface card backplane module current and the convergence device line card motherboard according to the rack type indication signal obtained by the state interface
  • the connection is still connected to the access device backplane; if it is connected to the aggregation device line card motherboard, the control channel of the service channel is switched to the external control channel; if connected to the access device backplane, the control channel of the service channel is switched.
  • the control module can determine which device is currently connected according to the rack type indication signal sent by the status interface, and then select the corresponding control channel for initial configuration, thus implementing the interface card for core aggregation.
  • the device is compatible with the access device.
  • FIG. 1 is a schematic structural diagram of an interface card according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a connection relationship between a line card motherboard of an aggregation device and an interface card according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a connection relationship between an access device backplane and an interface card according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a connection manner between a control interface and a control module according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a working process of an interface card according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an interface card in a PCI-E interface when the control interface is in the embodiment of the present invention
  • FIG. 7 is a schematic diagram of a working process of an interface card in a PCI-E interface when the control interface is in the embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of a control method in an embodiment of the present invention.
  • the embodiment of the invention provides an interface card, which can be inserted on the motherboard of the aggregation device line card or inserted on the backplane of the access device.
  • FIG. 1 is a schematic structural diagram of an interface card according to an embodiment of the present invention.
  • the interface card includes: an interface card backplane template 11 , a control module 12 , and a central processing unit (CPU) module 13 .
  • the service interface 113 is connected to the service processing module 14, and the service processing module 14 is connected to the external communication interface 15, so that the service interface 113, the service processing module 14, and the external communication interface 15 constitute a service channel of the interface card;
  • the control interface 112 is connected to the control module 12 to form an external control channel of the interface card.
  • the control module 12 is connected to the local CPU module 13 to form a local control channel of the interface card.
  • the control module 12 is also connected to the state interface 111 and the service processing module 14, respectively. .
  • the interface card backplane module 11 After the interface card is inserted into the aggregation device or the access device, the interface card backplane module 11 is connected to the aggregation device line card motherboard or the access device backplane. At this time, the interface card backplane module 11 is connected to the convergence device line card. The board or the access device backplane obtains the rack type indication signal. For example, when the interface card backplane module 11 is connected to the sink device line card motherboard, the state interface 111 obtains the rack type indication signal of 0, and the interface card backplane When the module 11 is connected to the access device backplane, the status interface 111 obtains a rack type indication signal of 1.
  • control module 12 determines whether the interface card backplane module 11 is currently connected to the aggregation device line card motherboard or the access device backplane based on the rack type indication signal; if it is determined that the interface card backplane module 11 is currently connected to the convergence device line Card connection, then, control module 12 will interface card business The control channel of the channel is switched to the external control channel, so that the aggregation device line card motherboard can access the service processing module 14 through the external control channel and initialize the configuration. At this time, the local control channel is not enabled; if it is determined The interface card backplane module 11 is currently connected to the access device backplane. Then, the control module 12 switches the control channel of the service channel of the interface card to the local control channel, so that the local CPU module 13 can process the service through the local control channel. Module 14 performs an initial configuration, at which point the external control channel is not enabled.
  • the interface card begins to work.
  • the interface card further includes a clock module 16 and a power module 17 .
  • the interface card backplane module 11 further includes a clock interface 114 and a power interface 115.
  • the clock module 16 is connected to the clock interface 114 to synchronize. Time; the power module 17 is connected to the power interface 115 to implement power supply.
  • FIG. 2 is a schematic diagram of a connection relationship between a line card motherboard and an interface card of an aggregation device according to an embodiment of the present invention.
  • a service channel of the interface card 1 is connected to the motherboard 2 through an interface card backplane module;
  • the motherboard sub-card interface module 21 receives the service packet sent by the service interface of the interface card, and performs the cache processing by the motherboard service module 22, and provides a service forwarding channel, so that the service packet is normally sent to the motherboard rack backplane.
  • the interface module 23 in the downlink direction, the motherboard rack backplane interface module 23 receives and processes the service packet from the aggregation device switching unit, and then sends the packet to the motherboard subcard interface module 21 through the service forwarding channel, and sends it to the motherboard Corresponding interface card;
  • the external control channel of the interface card 1 is connected to the motherboard 2 through the interface card backplane module, and the motherboard CPU module 24 is connected to the central control unit of the convergence device through the motherboard rack backplane interface module 23, and also controls the switch module 25 and the mother.
  • the external control channel of the motherboard formed by the board interface module 21 is connected to the external control channel of the interface card 1 to configure and monitor the service processing module of the interface card 1 through the external control channel.
  • FIG. 3 is a schematic diagram of a connection relationship between an access device backplane and an interface card according to an embodiment of the present invention.
  • the service channel of the interface card 1 is connected to the access device rack backplane 2 through the interface card backplane module.
  • the service processing module receives the service message from the external communication interface module for caching and The corresponding packet is processed, and then sent to the access device rack backplane 2 by the interface card backplane module through the service channel, and forwarded by the access device rack backplane 2 to the access device switching unit 31, and the access device exchanges
  • the unit 31 forwards the packet to the outbound interface card according to the content of the packet, and the service processing module of the outbound interface card performs corresponding processing to find the egress port corresponding to the packet, and the packet is correspondingly received.
  • the port is sent out;
  • the local CPU module of the interface card 1 is connected to the access device central control unit 32 through an out-of-band communication channel.
  • the interface card 1 first loads the driver software of the interface card through the channel, and the local CPU module runs the program and processes the service module. Perform configuration management.
  • the central control unit 32 of the access device performs protocol packet transmission and reception with the local CPU module of the interface card 1 through the outband communication channel, and obtains an operation status message of the interface card 1.
  • control module 12 controls the local CPU module 13 to reset and controls the service processing module 14 to reset, thereby switching the control channel of the service channel of the interface card to an external control channel; 12, by controlling the local CPU module 13 and the service processing module 14 to reset, to switch the control channel of the service channel to the local control channel.
  • FIG. 4 is a schematic diagram of a connection manner between a control interface and a control module according to an embodiment of the present invention.
  • the interface card further includes: a bridge module 18, and a control interface 112, respectively.
  • the control module 12 is connected to form an external control channel of the interface card.
  • control module 12 can switch the control channel of the service channel to the external control channel by controlling the local CPU module 13 to reset and control the bridge module 18 and the service processing module 14 to be reset.
  • the control module 12 controls the local CPU module 13 And the service processing module 14 is reset, and the bridge module 18 is controlled to reset, so as to switch the control channel of the service channel to the external control channel.
  • the interface card backplane template 11 further includes an out-of-band communication interface 116 coupled to the local CPU module 13 to form an out-of-band communication channel of the interface card. If the interface card backplane module 11 is currently connected to the access device backplane, the local CPU module 13 and the access device central control unit are connected through an outband communication channel, and the interface card first loads the interface card through the channel. The program is run by the local CPU module 13 to initialize the business processing module 14.
  • the central control unit of the access device can also perform protocol packet sending and receiving with the local CPU module 13 through the outband communication channel, and obtain the function of the interface card running status.
  • FIG. 5 is a schematic diagram of a working process of an interface card according to an embodiment of the present invention. Referring to FIG. 5, the process includes:
  • S502 The control module determines whether the interface card is inserted into the aggregation device motherboard according to the frame backplane type indication signal; if yes, execute S503; if not, determine that the interface card is inserted into the access device rack, and execute S506;
  • control module resets the local CPU module according to the frame backplane type indication signal, and resets the bridge module and the service processing module.
  • S504 The control module switches the control channel of the service processing module to the external control channel.
  • the motherboard CPU module accesses the service processing module through an external control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
  • S506 The control module resets the bridge module, and resets the local CPU module and the service processing module.
  • control module switches the control channel of the service processing module to the local control channel.
  • S508 the local CPU module is started, and the driver of the interface card is obtained from the central control unit of the access device through an out-band communication channel and runs;
  • the local CPU module accesses the service processing module through the local control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
  • FIG. 6 is an interface card in the embodiment of the present invention, and the control interface is a new generation peripheral unit.
  • FIG. 6 is a schematic diagram of a structure of a PCI-E (Peripheral Component Interconnection-Express) interface.
  • the control module 12 further includes: An interface conversion module 121, a second interface conversion module 122, a local control bus (LBS, local control bus) switching module 123 and a reset circuit module 124;
  • the control interface 112 is connected to the bridge module 18 to form a PCI-E channel; the bridge module 18 is connected to the first interface conversion module 121 to form a PCI channel; the first interface conversion module 121 is connected to the LBS switching module 123 to form an LBS channel 1
  • the LBS switching module 123 is connected to the second interface conversion module 122 to form the LBS channel 2; the LBS switching module 123 is connected to the service processing module 14 to form the LBS channel 3; the LBS switching module 123 is also connected to the status interface 111;
  • the module 122 is connected to the local CPU module 13 to form an IFC (Integral Flash Controller interface integrated with the CPU), and the reset circuit module 124 and the bridge module 18, the first interface conversion module 121, and the second interface conversion module 122, respectively.
  • the LBS switching module 123, the local CPU module 13, and the status interface 111 are connected.
  • FIG. 7 is a schematic diagram of the working process of the interface card in the embodiment of the present invention when the control interface is a PCI-E interface. Referring to FIG. 7, the process includes:
  • S702 The control module determines whether the interface card is inserted into the aggregation device motherboard according to the frame backplane type indication signal; if yes, execute S703; if not, determine that the interface card is inserted into the access device backplane, and execute S708;
  • the reset circuit module resets the local CPU module and the second interface conversion module according to the frame backplane type indication signal, and resets the bridge module, the first interface conversion module, and the LBS switching module;
  • the bridge module converts the PCI-E interface into a PCI interface.
  • the first interface conversion module converts the PCI interface into an LBS interface to form an LBS channel. 1;
  • the LBS switching module connects the LBS channel 1 and the LBS channel 3;
  • the external control channels of the interface cards formed by the PCI-E channel, the PCI channel, the LBS channel 1 and the LBS channel 3 are connected.
  • the motherboard CPU module accesses the service processing module through an external control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
  • the reset circuit module resets the bridge module and the first interface conversion module according to the backplane type indication signal, and resets the local CPU module, the second interface conversion module, and the LBS switching module;
  • the second interface conversion module converts the IFC interface of the local CPU module into an LBS interface.
  • the LBS channel 2 is in communication with the local control channel formed by the LBS channel 3.
  • S710 The local CPU module is started, and the driver of the interface card is obtained from the central control unit of the access device through an out-band communication channel and runs;
  • S711 The local CPU module accesses the service processing module through the local control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
  • control module of the interface card can determine which device is currently connected according to the rack type indication signal sent by the status interface, and then select the corresponding control channel for initial configuration, thus implementing the interface card for the core aggregation device and Access device compatibility.
  • an embodiment of the present invention provides a control method, which is applied to an interface card, which is consistent with the interface card described in one or more of the foregoing embodiments.
  • FIG. 8 is a schematic flowchart of a control method in an embodiment of the present invention. Referring to FIG. 8, the method includes:
  • the control module obtains a rack type indication signal by the status interface.
  • the control module determines, according to the frame type indication signal, that the interface card backplane module is currently connected to the aggregation device line card motherboard, and then switches the control channel of the service channel to an external control channel, so that the convergence device line card motherboard can pass the external
  • the control channel initializes the service processing module Set
  • the S802 can include: the control module controls the local CPU module reset, and controls the service processing module to reset to switch the control channel of the service channel to the external control channel.
  • the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module;
  • the S802 can include: the control module controls the local CPU module reset, and controls the bridge module and the service processing module to reset to switch the control channel of the service channel to the external control channel.
  • the control module determines, according to the frame type indication signal, that the interface card backplane module is currently connected to the access device backplane, and then switches the control channel of the service channel to the local control channel, so that the local CPU module processes the service through the local control channel.
  • the module is initialized.
  • S803 can include: the control module controls the local CPU module and the service processing module to reset to switch the control channel of the service channel to the local control channel.
  • the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module;
  • S803 may include: the control module controls the local CPU module and the service processing module to reset, and controls the bridge module reset to switch the control channel of the service channel to the external control channel.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Bus Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An interface card is disclosed in an embodiment of the present invention. The card comprises: an interface card backplane module used for connecting to a line card motherboard of an aggregation device or to a backplane of an access device; a control module; a local CPU module; a service processing module, and an external communication interface. The interface card backplane module comprises: a status interface, a control interface, and a service interface. The control module determines, according to a machine rack-type indicator signal obtained by the status interface, whether the interface card backplane module is currently connected to a line card motherboard of an aggregation device or to a backplane of an access device; if connected to a line card motherboard of an aggregation device, then the control module switches the service-channel control channel to an external control channel; if connected to a backplane of an access device, then the control module switches the service-channel control channel to a local control channel. A control method is also provided in an embodiment of the present invention.

Description

一种接口卡及控制方法Interface card and control method 技术领域Technical field
本发明涉及数据通信领域,尤其涉及一种接口卡及控制方法。The present invention relates to the field of data communications, and in particular, to an interface card and a control method.
背景技术Background technique
目前,互联协议无线接入网络(IPRAN,Internet Protocol Radio Access Network)一般包括骨干网、城域网、接入网三部分。通信设备制造商针对这三部分组网各自推出了不同的系列产品,以满足不同设备的需求。比如,针对骨干网推出面对IPRAN的核心汇聚设备的接口卡,而针对接入网推出面对IPRAN的接入设备中的300mm深机架的接入设备的接口卡。但是,由于两种设备物理上相互不兼容,所以,面对不同设备接口卡也不能互换使用,也就是说,同一接口卡无法兼容核心汇聚设备和接入设备。At present, the Internet Protocol Radio Access Network (IPRAN) generally includes three parts: a backbone network, a metropolitan area network, and an access network. Communication equipment manufacturers have launched different series of products for each of these three parts to meet the needs of different devices. For example, an interface card for the core aggregation device facing the IPRAN is launched for the backbone network, and an interface card for the 300 mm deep chassis access device in the access device facing the IPRAN is introduced for the access network. However, since the two devices are physically incompatible with each other, the interface cards of different devices cannot be used interchangeably. That is, the same interface card cannot be compatible with the core aggregation device and the access device.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种接口卡及控制方法,以实现接口卡对于核心汇聚设备和接入设备的兼容。In view of this, embodiments of the present invention are directed to providing an interface card and a control method for implementing compatibility of an interface card with a core aggregation device and an access device.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供一种接口卡,包括:接口卡背板模板、控制模块、本地CPU模块、业务处理模块及外部通信接口;所述接口卡背板模块用于与汇聚设备线卡母板或接入设备背板连接;所述接口卡背板模块包括:状态接口、控制接口、业务接口;所述业务接口与所述业务处理模块连接,所述业务处理模块与所述外部通信接口连接,构成所述接口卡的业务通道;所述控制接口与所述控制模块连接,构成所述接口卡的外部控制通道;所述控制模块与所述本地CPU模块连接,构成所述接口卡的本地控制通道;所述控制模块还分别与所述状态接口以及所述业务处理模块 连接;The first aspect of the present invention provides an interface card, including: an interface card backplane template, a control module, a local CPU module, a service processing module, and an external communication interface; the interface card backplane module is used for the convergence device line. The card mother board or the access device backplane is connected; the interface card backplane module includes: a status interface, a control interface, and a service interface; the service interface is connected to the service processing module, and the service processing module and the external a communication interface is connected to form a service channel of the interface card; the control interface is connected to the control module to form an external control channel of the interface card; the control module is connected to the local CPU module to form the interface a local control channel of the card; the control module further interfaces with the state and the service processing module connection;
其中,所述控制模块由所述状态接口获得机架类型指示信号;基于所述机架类型指示信号,确定所述接口卡背板模块当前与所述汇聚设备线卡母板连接时,将所述业务通道的控制通道切换为所述外部控制通道,以使所述汇聚设备线卡母板能够通过所述外部控制通道对所述业务处理模块进行初始化配置;基于所述机架类型指示信号,确定所述接口卡背板模块当前与所述接入设备背板连接时,将所述业务通道的控制通道切换为所述本地控制通道,以使所述本地CPU模块通过所述本地控制通道对所述业务处理模块进行初始化配置。The control module obtains a rack type indication signal by the status interface, and determines, according to the rack type indication signal, that the interface card backplane module is currently connected to the convergence device line card motherboard, The control channel of the service channel is switched to the external control channel, so that the aggregation device line card motherboard can initialize the service processing module through the external control channel; based on the frame type indication signal, When the interface card backplane module is currently connected to the access device backplane, the control channel of the service channel is switched to the local control channel, so that the local CPU module passes the local control channel pair. The service processing module performs initial configuration.
上述方案中,所述接口卡背板模板还包括:带外通信接口,与所述本地CPU模块连接,构成所述接口卡的带外通信通道。In the above solution, the interface card backplane template further includes: an outband communication interface connected to the local CPU module to form an outband communication channel of the interface card.
上述方案中,所述接口卡还包括:桥接模块,分别与所述控制接口以及所述控模块连接,构成所述外部控制通道。In the above solution, the interface card further includes: a bridge module, which is respectively connected to the control interface and the control module, and constitutes the external control channel.
上述方案中,当所述控制接口为PCI-E接口时,所述控制模块包括:第一接口转换模块、第二接口转换模块、LBS切换模块及复位电路模块;其中,所述桥接模块与所述第一接口转换模块连接;所述第一接口转换模块与所述LBS切换模块连接;所述LBS切换模块分别与所述第二接口转换模块、所述状态接口以及所述业务处理模块连接;所述第二接口转换模块与所述本地CPU模块连接;所述复位电路模块分别与所述桥接模块、所述第一接口转换模块、所述第二接口转换模块、所述LBS切换模块、所述本地CPU模块及状态接口连接。In the above solution, when the control interface is a PCI-E interface, the control module includes: a first interface conversion module, a second interface conversion module, an LBS switching module, and a reset circuit module; wherein the bridge module and the The first interface conversion module is connected; the first interface conversion module is connected to the LBS switching module; the LBS switching module is respectively connected to the second interface conversion module, the state interface, and the service processing module; The second interface conversion module is connected to the local CPU module; the reset circuit module is respectively connected to the bridge module, the first interface conversion module, the second interface conversion module, the LBS switching module, and the The local CPU module and status interface are connected.
第二方面,本发明实施例提供一种控制方法,应用于一接口卡,所述接口卡包括接口卡背板模板、控制模块、本地CPU模块及业务处理模块;所述接口卡背板模块包括:状态接口、控制接口、业务接口;所述控制模块与所述控制接口连接,构成所述接口卡的外部控制通道;所述控制模块与所述本地CPU模块连接,构成所述接口卡的本地控制通道;所述业务处 理模块与所述业务接口连接,构成所述接口卡的业务通道;所述方法包括:所述控制模块由所述状态接口获得机架类型指示信号;所述控制模块基于所述机架类型指示信号确定所述接口卡背板模块当前与所述汇聚设备线卡母板连接后,将所述业务通道的控制通道切换为所述外部控制通道,以使所述汇聚设备线卡母板能够通过所述外部控制通道对所述业务处理模块进行初始化配置;所述控制模块基于所述机架类型指示信号确定所述接口卡背板模块当前与所述接入设备背板连接后,将所述业务通道的控制通道切换为所述本地控制通道,以使所述本地CPU模块通过所述本地控制通道对所述业务处理模块进行初始化配置。In a second aspect, the embodiment of the present invention provides a control method, which is applied to an interface card, where the interface card includes an interface card backplane template, a control module, a local CPU module, and a service processing module; and the interface card backplane module includes a state interface, a control interface, and a service interface; the control module is connected to the control interface to form an external control channel of the interface card; the control module is connected to the local CPU module to form a local interface card Control channel The control module is connected to the service interface to form a service channel of the interface card; the method includes: the control module obtains a rack type indication signal by the status interface; and the control module is based on the rack type indication After the signal is determined that the interface card backplane module is currently connected to the aggregation device line card motherboard, the control channel of the service channel is switched to the external control channel, so that the convergence device line card motherboard can pass The external control channel performs initial configuration on the service processing module; the control module determines, after the interface card backplane module is currently connected to the access device backplane, based on the rack type indication signal, The control channel of the service channel is switched to the local control channel, so that the local CPU module performs initial configuration on the service processing module through the local control channel.
上述方案中,所述控制模块将所述业务通道的控制通道切换为所述外部控制通道,包括:所述控制模块控制所述本地CPU模块复位,并控制所述业务处理模块去复位,以将所述业务通道的控制通道切换为所述外部控制通道。In the above solution, the control module switches the control channel of the service channel to the external control channel, including: the control module controls the local CPU module to reset, and controls the service processing module to reset, so as to The control channel of the service channel is switched to the external control channel.
上述方案中,所述接口卡还包括桥接模块,设置在所述外部控制通道中,并分别与所述控制接口以及所述控制模块连接;所述控制模块将所述业务通道的控制通道切换为所述外部控制通道,包括:所述控制模块控制所述本地CPU模块复位,并控制所述桥接模块以及所述业务处理模块去复位,以将所述业务通道的控制通道切换为所述外部控制通道。In the above solution, the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module; the control module switches the control channel of the service channel to The external control channel includes: the control module controls the local CPU module to reset, and controls the bridge module and the service processing module to reset to switch the control channel of the service channel to the external control aisle.
上述方案中,所述控制模块将所述业务通道的控制通道切换为所述本地控制通道,包括:所述控制模块控制所述本地CPU模块及所述业务处理模块去复位,以将所述业务通道的控制通道切换为所述本地控制通道。In the above solution, the control module switches the control channel of the service channel to the local control channel, and the control module controls the local CPU module and the service processing module to reset to perform the service. The control channel of the channel is switched to the local control channel.
上述方案中,所述接口卡还包括桥接模块,设置在所述外部控制通道中,并分别与所述控制接口以及所述控制模块连接;所述控制模块将所述业务通道的控制通道切换为所述本地控制通道,包括:所述控制模块控制所述本地CPU模块及所述业务处理模块去复位,并控制所述桥接模块复位,以将所述业务通道的控制通道切换为所述外部控制通道。 In the above solution, the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module; the control module switches the control channel of the service channel to The local control channel includes: the control module controls the local CPU module and the service processing module to reset, and controls the bridge module to reset to switch the control channel of the service channel to the external control aisle.
本发明实施例提供了一种接口卡及控制方法,接口卡包括;用于与汇聚设备线卡母板或接入设备背板连接的接口卡背板模板、控制模块、本地CPU模块、业务处理模块及外部通信接口;接口卡背板模块包括:状态接口、控制接口及业务接口;其中,控制模块根据状态接口获得的机架类型指示信号确定接口卡背板模块当前与汇聚设备线卡母板连接还是与接入设备背板连接;若与汇聚设备线卡母板连接,则将业务通道的控制通道切换为外部控制通道;若与接入设备背板连接,则将业务通道的控制通道切换为本地控制通道,也就是说,控制模块能够根据状态接口发送的机架类型指示信号确定当前连接的是什么设备,进而选择对应的控制通道来进行初始化配置,如此,实现了接口卡对于核心汇聚设备和接入设备的兼容。The embodiment of the invention provides an interface card and a control method. The interface card includes: an interface card backplane template, a control module, a local CPU module, and a service processing for connecting to the aggregation device line card motherboard or the access device backplane. The module and the external communication interface; the interface card backplane module includes: a status interface, a control interface, and a service interface; wherein, the control module determines the interface card backplane module current and the convergence device line card motherboard according to the rack type indication signal obtained by the state interface The connection is still connected to the access device backplane; if it is connected to the aggregation device line card motherboard, the control channel of the service channel is switched to the external control channel; if connected to the access device backplane, the control channel of the service channel is switched. For the local control channel, that is, the control module can determine which device is currently connected according to the rack type indication signal sent by the status interface, and then select the corresponding control channel for initial configuration, thus implementing the interface card for core aggregation. The device is compatible with the access device.
附图说明DRAWINGS
图1为本发明实施例中的接口卡的结构示意图;1 is a schematic structural diagram of an interface card according to an embodiment of the present invention;
图2为本发明实施例中的汇聚设备线卡母板与接口卡的连接关系示意图;2 is a schematic diagram of a connection relationship between a line card motherboard of an aggregation device and an interface card according to an embodiment of the present invention;
图3为本发明实施例中的接入设备背板与接口卡的连接关系示意图;3 is a schematic diagram of a connection relationship between an access device backplane and an interface card according to an embodiment of the present invention;
图4为本发明实施例中的控制接口与控制模块之间的连接方式的示意图;4 is a schematic diagram of a connection manner between a control interface and a control module according to an embodiment of the present invention;
图5为本发明实施例中的接口卡的工作流程示意图;FIG. 5 is a schematic diagram of a working process of an interface card according to an embodiment of the present invention;
图6为本发明实施例中的接口卡在控制接口为PCI-E接口时的结构示意图;6 is a schematic structural diagram of an interface card in a PCI-E interface when the control interface is in the embodiment of the present invention;
图7为本发明实施例中的接口卡在控制接口为PCI-E接口时的工作流程示意图;FIG. 7 is a schematic diagram of a working process of an interface card in a PCI-E interface when the control interface is in the embodiment of the present invention;
图8为本发明实施例中的控制方法的流程示意图。 FIG. 8 is a schematic flowchart diagram of a control method in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
本发明实施例提供了一种接口卡,该卡可以插在汇聚设备线卡母板上,也可以插在接入设备背板上。The embodiment of the invention provides an interface card, which can be inserted on the motherboard of the aggregation device line card or inserted on the backplane of the access device.
图1为本发明实施例中的接口卡的结构示意图,参考图1所示,该接口卡包括:接口卡背板模板11、控制模块12、本地中央处理器(CPU,Central Processing Unit)模块13、业务处理模块14及外部通信接口15;其中,接口卡背板模块11与汇聚设备线卡母板或接入设备背板连接;接口卡背板模块11包括:状态接口111、控制接口112、业务接口113。FIG. 1 is a schematic structural diagram of an interface card according to an embodiment of the present invention. Referring to FIG. 1 , the interface card includes: an interface card backplane template 11 , a control module 12 , and a central processing unit (CPU) module 13 . The service processing module 14 and the external communication interface 15; wherein the interface card backplane module 11 is connected to the aggregation device line card motherboard or the access device backplane; the interface card backplane module 11 includes: a status interface 111, a control interface 112, Service interface 113.
在本实施例中,业务接口113与业务处理模块14连接,业务处理模块14与外部通信接口15连接,这样,业务接口113、业务处理模块14以及外部通信接口15构成接口卡的业务通道;In this embodiment, the service interface 113 is connected to the service processing module 14, and the service processing module 14 is connected to the external communication interface 15, so that the service interface 113, the service processing module 14, and the external communication interface 15 constitute a service channel of the interface card;
控制接口112与控制模块12连接,构成接口卡的外部控制通道;控制模块12与本地CPU模块13连接,构成接口卡的本地控制通道;控制模块12还分别与状态接口111以及业务处理模块14连接。The control interface 112 is connected to the control module 12 to form an external control channel of the interface card. The control module 12 is connected to the local CPU module 13 to form a local control channel of the interface card. The control module 12 is also connected to the state interface 111 and the service processing module 14, respectively. .
当接口卡插入汇聚设备或接入设备后,首先,接口卡背板模块11与汇聚设备线卡母板或接入设备背板连接,此时,接口卡背板模块11由汇聚设备线卡母板或接入设备背板获得机架类型指示信号,比如,接口卡背板模块11与汇聚设备线卡母板连接时,状态接口111获得的机架类型指示信号为0,而接口卡背板模块11与接入设备背板连接时,状态接口111获得的机架类型指示信号为1。After the interface card is inserted into the aggregation device or the access device, the interface card backplane module 11 is connected to the aggregation device line card motherboard or the access device backplane. At this time, the interface card backplane module 11 is connected to the convergence device line card. The board or the access device backplane obtains the rack type indication signal. For example, when the interface card backplane module 11 is connected to the sink device line card motherboard, the state interface 111 obtains the rack type indication signal of 0, and the interface card backplane When the module 11 is connected to the access device backplane, the status interface 111 obtains a rack type indication signal of 1.
然后,控制模块12基于机架类型指示信号确定接口卡背板模块11当前与汇聚设备线卡母板连接还是与接入设备背板连接;若确定出接口卡背板模块11当前与汇聚设备线卡连接,那么,控制模块12将接口卡的业务 通道的控制通道切换为外部控制通道,这样,汇聚设备线卡母板就能够通过外部控制通道访问对业务处理模块14,并对其进行初始化配置,此时,本地控制通道不启用;若确定出接口卡背板模块11当前与接入设备背板连接,那么,控制模块12将接口卡的业务通道的控制通道切换为本地控制通道,这样,本地CPU模块13通过本地控制通道就可以对业务处理模块14进行初始化配置,此时,外部控制通道不启用。Then, the control module 12 determines whether the interface card backplane module 11 is currently connected to the aggregation device line card motherboard or the access device backplane based on the rack type indication signal; if it is determined that the interface card backplane module 11 is currently connected to the convergence device line Card connection, then, control module 12 will interface card business The control channel of the channel is switched to the external control channel, so that the aggregation device line card motherboard can access the service processing module 14 through the external control channel and initialize the configuration. At this time, the local control channel is not enabled; if it is determined The interface card backplane module 11 is currently connected to the access device backplane. Then, the control module 12 switches the control channel of the service channel of the interface card to the local control channel, so that the local CPU module 13 can process the service through the local control channel. Module 14 performs an initial configuration, at which point the external control channel is not enabled.
最后,在业务处理模块14初始化完毕之后,接口卡开始工作。Finally, after the business processing module 14 is initialized, the interface card begins to work.
需要说明的是,仍参考图1,接口卡还包括时钟模块16以及电源模块17,接口卡背板模块11中还包括时钟接口114以及电源接口115;时钟模块16与时钟接口114连接,以同步时间;电源模块17与电源接口115连接,以实现供电。It should be noted that, referring to FIG. 1 , the interface card further includes a clock module 16 and a power module 17 . The interface card backplane module 11 further includes a clock interface 114 and a power interface 115. The clock module 16 is connected to the clock interface 114 to synchronize. Time; the power module 17 is connected to the power interface 115 to implement power supply.
图2为本发明实施例中的汇聚设备线卡母板与接口卡的连接关系示意图,参见图2所示,接口卡1的业务通道通过接口卡背板模块与母板2连接;在上行方向,母板子卡接口模块21收到接口卡的业务接口发送的业务报文,由母板业务模块22进行缓存后处理,并提供业务转发通道,使业务报文正常发送至母板机架背板接口模块23;在下行方向,母板机架背板接口模块23接收并处理来自汇聚设备交换单元的业务报文,查表后通过业务转发通道发往母板子卡接口模块21,并下发给对应的接口卡;2 is a schematic diagram of a connection relationship between a line card motherboard and an interface card of an aggregation device according to an embodiment of the present invention. Referring to FIG. 2, a service channel of the interface card 1 is connected to the motherboard 2 through an interface card backplane module; The motherboard sub-card interface module 21 receives the service packet sent by the service interface of the interface card, and performs the cache processing by the motherboard service module 22, and provides a service forwarding channel, so that the service packet is normally sent to the motherboard rack backplane. The interface module 23; in the downlink direction, the motherboard rack backplane interface module 23 receives and processes the service packet from the aggregation device switching unit, and then sends the packet to the motherboard subcard interface module 21 through the service forwarding channel, and sends it to the motherboard Corresponding interface card;
接口卡1的外部控制通道通过接口卡背板模块与母板2连接,母板CPU模块24通过母板机架背板接口模块23与汇聚设备中央控制单元连接,还通过控制交换模块25与母板子卡接口模块21构成的母板外接控制通道与接口卡1的外部控制通道连通,以通过外部控制通道对接口卡1的业务处理模块进行配置及状态监控。The external control channel of the interface card 1 is connected to the motherboard 2 through the interface card backplane module, and the motherboard CPU module 24 is connected to the central control unit of the convergence device through the motherboard rack backplane interface module 23, and also controls the switch module 25 and the mother. The external control channel of the motherboard formed by the board interface module 21 is connected to the external control channel of the interface card 1 to configure and monitor the service processing module of the interface card 1 through the external control channel.
图3为本发明实施例中的接入设备背板与接口卡的连接关系示意图,参见图3所示,接口卡1的业务通道通过接口卡背板模块与接入设备机架背板2连接;业务处理模块从外部通信接口模块收到业务报文进行缓存及 相应报文处理,接着,通过业务通道由接口卡背板模块发给接入设备机架背板2,并由接入设备机架背板2转发给接入设备交换单元31,接入设备交换单元31在收到业务报文后,根据报文的头部内容转发到出方向接口卡,出方向接口卡的业务处理模块进行相应处理后找到报文对应的出端口,并将报文从对应端口发送出去;FIG. 3 is a schematic diagram of a connection relationship between an access device backplane and an interface card according to an embodiment of the present invention. Referring to FIG. 3, the service channel of the interface card 1 is connected to the access device rack backplane 2 through the interface card backplane module. The service processing module receives the service message from the external communication interface module for caching and The corresponding packet is processed, and then sent to the access device rack backplane 2 by the interface card backplane module through the service channel, and forwarded by the access device rack backplane 2 to the access device switching unit 31, and the access device exchanges After receiving the service packet, the unit 31 forwards the packet to the outbound interface card according to the content of the packet, and the service processing module of the outbound interface card performs corresponding processing to find the egress port corresponding to the packet, and the packet is correspondingly received. The port is sent out;
接口卡1的本地CPU模块都与接入设备中央控制单元32通过带外通信通道连接,接口卡1首先通过该通道加载接口卡的驱动程序软件,本地CPU模块运行该程序,并对业务处理模块进行配置管理。接入设备中央控制单元32通过带外通信通道与接口卡1的本地CPU模块进行协议报文收发,获取接口卡1的运行状态消息等。The local CPU module of the interface card 1 is connected to the access device central control unit 32 through an out-of-band communication channel. The interface card 1 first loads the driver software of the interface card through the channel, and the local CPU module runs the program and processes the service module. Perform configuration management. The central control unit 32 of the access device performs protocol packet transmission and reception with the local CPU module of the interface card 1 through the outband communication channel, and obtains an operation status message of the interface card 1.
在实际应用中,参见图1所示,控制模块12通过控制本地CPU模块13复位,并控制业务处理模块14去复位,来实现将接口卡的业务通道的控制通道切换为外部控制通道;控制模块12通过控制本地CPU模块13及业务处理模块14去复位,来实现将业务通道的控制通道切换为本地控制通道。In an actual application, as shown in FIG. 1 , the control module 12 controls the local CPU module 13 to reset and controls the service processing module 14 to reset, thereby switching the control channel of the service channel of the interface card to an external control channel; 12, by controlling the local CPU module 13 and the service processing module 14 to reset, to switch the control channel of the service channel to the local control channel.
在另一实施例中,图4为本发明实施例中的控制接口与控制模块之间的连接方式的示意图,参见图4所示,接口卡还包括:桥接模块18,分别与控制接口112以及控制模块12连接,构成接口卡的外部控制通道。In another embodiment, FIG. 4 is a schematic diagram of a connection manner between a control interface and a control module according to an embodiment of the present invention. Referring to FIG. 4, the interface card further includes: a bridge module 18, and a control interface 112, respectively. The control module 12 is connected to form an external control channel of the interface card.
相应的,控制模块12可以通过控制本地CPU模块13复位,并控制桥接模块18以及业务处理模块14去复位,来实现将业务通道的控制通道切换为外部控制通道;控制模块12控制本地CPU模块13及业务处理模块14去复位,并控制桥接模块18复位,来实现将业务通道的控制通道切换为外部控制通道。Correspondingly, the control module 12 can switch the control channel of the service channel to the external control channel by controlling the local CPU module 13 to reset and control the bridge module 18 and the service processing module 14 to be reset. The control module 12 controls the local CPU module 13 And the service processing module 14 is reset, and the bridge module 18 is controlled to reset, so as to switch the control channel of the service channel to the external control channel.
仍参见图1所示,接口卡背板模板11还包括:带外通信接口116,与本地CPU模块13连接,构成接口卡的带外通信通道。当且仅当接口卡背板模块11当前与接入设备背板连接时,本地CPU模块13与接入设备中央控制单元通过带外通信通道连接,接口卡首先通过该通道加载接口卡的驱 动程序,本地CPU模块13运行该程序,以对业务处理模块14进行初始化配置。Still referring to FIG. 1, the interface card backplane template 11 further includes an out-of-band communication interface 116 coupled to the local CPU module 13 to form an out-of-band communication channel of the interface card. If the interface card backplane module 11 is currently connected to the access device backplane, the local CPU module 13 and the access device central control unit are connected through an outband communication channel, and the interface card first loads the interface card through the channel. The program is run by the local CPU module 13 to initialize the business processing module 14.
在实际应用中,接入设备中央控制单元还可以通过带外通信通道与本地CPU模块13进行协议报文收发,获取接口卡运行状态消息等功能。In an actual application, the central control unit of the access device can also perform protocol packet sending and receiving with the local CPU module 13 through the outband communication channel, and obtain the function of the interface card running status.
下面对上述接口卡的工作流程进行说明。The workflow of the above interface card will be described below.
图5为本发明实施例中的接口卡的工作流程示意图,参见图5所示,该流程包括:FIG. 5 is a schematic diagram of a working process of an interface card according to an embodiment of the present invention. Referring to FIG. 5, the process includes:
S501:当接口卡插入接入设备机架或汇聚设备母板后,控制模块读取状态接口发送的机架背板类型指示信号;S501: After the interface card is inserted into the access device rack or the aggregation device motherboard, the control module reads the rack backplane type indication signal sent by the status interface.
S502:控制模块根据机架背板类型指示信号判断接口卡是否插入汇聚设备母板;若是,执行S503;若否,则确定接口卡插入接入设备机架,执行S506;S502: The control module determines whether the interface card is inserted into the aggregation device motherboard according to the frame backplane type indication signal; if yes, execute S503; if not, determine that the interface card is inserted into the access device rack, and execute S506;
S503:控制模块根据机架背板类型指示信号复位本地CPU模块,将桥接模块和业务处理模块去复位;S503: The control module resets the local CPU module according to the frame backplane type indication signal, and resets the bridge module and the service processing module.
S504:控制模块将业务处理模块的控制通道切换至外部控制通道上;S504: The control module switches the control channel of the service processing module to the external control channel.
S505:母板CPU模块通过外部控制通道访问业务处理模块,并对其进行初始化配置;在配置完成后接口卡内业务报文可以正常收发,流程结束;S505: The motherboard CPU module accesses the service processing module through an external control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
S506:控制模块复位桥接模块,并将本地CPU模块和业务处理模块去复位;S506: The control module resets the bridge module, and resets the local CPU module and the service processing module.
S507:控制模块将业务处理模块的控制通道切换至本地控制通道上;S507: The control module switches the control channel of the service processing module to the local control channel.
S508:本地CPU模块启动,并通过带外通信通道从接入设备中央控制单元获取接口卡的驱动程序并运行;S508: the local CPU module is started, and the driver of the interface card is obtained from the central control unit of the access device through an out-band communication channel and runs;
S509:本地CPU模块通过本地控制通道访问业务处理模块,并对其进行初始化配置;在配置完成后接口卡内业务报文可以正常收发,流程结束。S509: The local CPU module accesses the service processing module through the local control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
在实际应用中,由于控制接口的不同,对应的控制模块的结构也会不同。比如,图6为本发明实施例中的接口卡在控制接口为新一代的外设部 件互连标准(PCI-E,Peripheral Component Interconnection-Express)接口时的结构示意图,参见图6所示,当控制接口112为PCI-E接口,那么,此时,上述控制模块12还包括:第一接口转换模块121、第二接口转换模块122、本地控制总线(LBS,Local Control Bus)切换模块123及复位电路模块124;In practical applications, the structure of the corresponding control module will be different due to different control interfaces. For example, FIG. 6 is an interface card in the embodiment of the present invention, and the control interface is a new generation peripheral unit. FIG. 6 is a schematic diagram of a structure of a PCI-E (Peripheral Component Interconnection-Express) interface. When the control interface 112 is a PCI-E interface, the control module 12 further includes: An interface conversion module 121, a second interface conversion module 122, a local control bus (LBS, local control bus) switching module 123 and a reset circuit module 124;
其中,控制接口112与桥接模块18连接,形成PCI-E通道;桥接模块18与第一接口转换模块121连接,形成PCI通道;第一接口转换模块121与LBS切换模块123连接,形成LBS通道1;LBS切换模块123与第二接口转换模块122连接,形成LBS通道2;LBS切换模块123与业务处理模块14连接,形成LBS通道3;LBS切换模块123还与状态接口111连接;第二接口转换模块122与本地CPU模块13连接,形成IFC(CPU自带的集成Flash控制接口,Integral Flash Controller)通道;复位电路模块124分别与桥接模块18、第一接口转换模块121、第二接口转换模块122、LBS切换模块123、本地CPU模块13及状态接口111连接。The control interface 112 is connected to the bridge module 18 to form a PCI-E channel; the bridge module 18 is connected to the first interface conversion module 121 to form a PCI channel; the first interface conversion module 121 is connected to the LBS switching module 123 to form an LBS channel 1 The LBS switching module 123 is connected to the second interface conversion module 122 to form the LBS channel 2; the LBS switching module 123 is connected to the service processing module 14 to form the LBS channel 3; the LBS switching module 123 is also connected to the status interface 111; The module 122 is connected to the local CPU module 13 to form an IFC (Integral Flash Controller interface integrated with the CPU), and the reset circuit module 124 and the bridge module 18, the first interface conversion module 121, and the second interface conversion module 122, respectively. The LBS switching module 123, the local CPU module 13, and the status interface 111 are connected.
那么,图7为本发明实施例中的接口卡在控制接口为PCI-E接口时的工作流程示意图,参见图7所示,该流程包括:7 is a schematic diagram of the working process of the interface card in the embodiment of the present invention when the control interface is a PCI-E interface. Referring to FIG. 7, the process includes:
S701:当接口卡插入接入设备机架/汇聚设备母板后,控制模块读取机架背板类型指示信号;S701: After the interface card is inserted into the access device rack/aggregation device motherboard, the control module reads the rack backplane type indication signal;
S702:控制模块根据机架背板类型指示信号判断接口卡是否插入汇聚设备母板;若是,执行S703;若否,确定接口卡插入接入设备背板,执行S708;S702: The control module determines whether the interface card is inserted into the aggregation device motherboard according to the frame backplane type indication signal; if yes, execute S703; if not, determine that the interface card is inserted into the access device backplane, and execute S708;
S703:复位电路模块根据机架背板类型指示信号,复位本地CPU模块和第二接口转换模块,将桥接模块、第一接口转换模块及LBS切换模块去复位;S703: the reset circuit module resets the local CPU module and the second interface conversion module according to the frame backplane type indication signal, and resets the bridge module, the first interface conversion module, and the LBS switching module;
S704:桥接模块将PCI-E接口转换为PCI接口;S704: The bridge module converts the PCI-E interface into a PCI interface.
S705:第一接口转换模块将PCI接口转换成LBS接口,形成LBS通道 1;S705: The first interface conversion module converts the PCI interface into an LBS interface to form an LBS channel. 1;
S706:LBS切换模块将LBS通道1与LBS通道3连接;S706: The LBS switching module connects the LBS channel 1 and the LBS channel 3;
此时,PCI-E通道、PCI通道、LBS通道1和LBS通道3构成的接口卡的外部控制通道连通。At this time, the external control channels of the interface cards formed by the PCI-E channel, the PCI channel, the LBS channel 1 and the LBS channel 3 are connected.
S707:母板CPU模块通过外部控制通道访问业务处理模块,并对其进行初始化配置;在配置完成后接口卡内业务报文可以正常收发,流程结束;S707: The motherboard CPU module accesses the service processing module through an external control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
S708:复位电路模块根据背板类型指示信号,复位桥接模块和第一接口转换模块,并将本地CPU模块、第二接口转换模块及LBS切换模块去复位;S708: the reset circuit module resets the bridge module and the first interface conversion module according to the backplane type indication signal, and resets the local CPU module, the second interface conversion module, and the LBS switching module;
S709:第二接口转换模块将本地CPU模块的IFC接口转换为LBS接口;S709: The second interface conversion module converts the IFC interface of the local CPU module into an LBS interface.
此时,LBS通道2与LBS通道3构成的本地控制通道连通。At this time, the LBS channel 2 is in communication with the local control channel formed by the LBS channel 3.
S710:本地CPU模块启动,并通过带外通信通道从接入设备中央控制单元获取接口卡的驱动程序并运行;S710: The local CPU module is started, and the driver of the interface card is obtained from the central control unit of the access device through an out-band communication channel and runs;
S711:本地CPU模块通过本地控制通道访问业务处理模块,并对其进行初始化配置;在配置完成后接口卡内业务报文可以正常收发,流程结束。S711: The local CPU module accesses the service processing module through the local control channel, and initializes the configuration. After the configuration is complete, the service packets in the interface card can be sent and received normally, and the process ends.
由上述可知,接口卡的控制模块能够根据状态接口发送的机架类型指示信号确定当前连接的是什么设备,进而选择对应的控制通道来进行初始化配置,如此,实现了接口卡对于核心汇聚设备和接入设备的兼容。It can be seen from the above that the control module of the interface card can determine which device is currently connected according to the rack type indication signal sent by the status interface, and then select the corresponding control channel for initial configuration, thus implementing the interface card for the core aggregation device and Access device compatibility.
基于同一发明构思,本发明实施例提供一种控制方法,该方法应用于一接口卡,该接口卡与上述一个或者多个实施例中所述的接口卡一致。Based on the same inventive concept, an embodiment of the present invention provides a control method, which is applied to an interface card, which is consistent with the interface card described in one or more of the foregoing embodiments.
图8为本发明实施例中的控制方法的流程示意图,参见图8所示,该方法包括:FIG. 8 is a schematic flowchart of a control method in an embodiment of the present invention. Referring to FIG. 8, the method includes:
S801:控制模块由状态接口获得机架类型指示信号;S801: The control module obtains a rack type indication signal by the status interface.
S802:控制模块基于机架类型指示信号确定接口卡背板模块当前与汇聚设备线卡母板连接后,将业务通道的控制通道切换为外部控制通道,以使汇聚设备线卡母板能够通过外部控制通道对业务处理模块进行初始化配 置;S802: The control module determines, according to the frame type indication signal, that the interface card backplane module is currently connected to the aggregation device line card motherboard, and then switches the control channel of the service channel to an external control channel, so that the convergence device line card motherboard can pass the external The control channel initializes the service processing module Set
S802可以包括:控制模块控制本地CPU模块复位,并控制业务处理模块去复位,以将业务通道的控制通道切换为外部控制通道。The S802 can include: the control module controls the local CPU module reset, and controls the service processing module to reset to switch the control channel of the service channel to the external control channel.
在另一实施例中,接口卡还包括桥接模块,设置在外部控制通道中,并分别与控制接口以及控制模块连接;In another embodiment, the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module;
相应地,S802可以包括:控制模块控制本地CPU模块复位,并控制桥接模块以及业务处理模块去复位,以将业务通道的控制通道切换为外部控制通道。Correspondingly, the S802 can include: the control module controls the local CPU module reset, and controls the bridge module and the service processing module to reset to switch the control channel of the service channel to the external control channel.
S803:控制模块基于机架类型指示信号确定接口卡背板模块当前与接入设备背板连接后,将业务通道的控制通道切换为本地控制通道,以使本地CPU模块通过本地控制通道对业务处理模块进行初始化配置。S803: The control module determines, according to the frame type indication signal, that the interface card backplane module is currently connected to the access device backplane, and then switches the control channel of the service channel to the local control channel, so that the local CPU module processes the service through the local control channel. The module is initialized.
S803可以包括:控制模块控制本地CPU模块及业务处理模块去复位,以将业务通道的控制通道切换为本地控制通道。S803 can include: the control module controls the local CPU module and the service processing module to reset to switch the control channel of the service channel to the local control channel.
在另一实施例中,接口卡还包括桥接模块,设置在外部控制通道中,并分别与控制接口以及控制模块连接;In another embodiment, the interface card further includes a bridge module, is disposed in the external control channel, and is respectively connected to the control interface and the control module;
此时,S803可以包括:控制模块控制本地CPU模块及业务处理模块去复位,并控制桥接模块复位,以将业务通道的控制通道切换为外部控制通道。At this time, S803 may include: the control module controls the local CPU module and the service processing module to reset, and controls the bridge module reset to switch the control channel of the service channel to the external control channel.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和 /或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each of the processes and/or blocks in the flowcharts and/or block diagrams, and in the flowcharts and/or block diagrams, can be implemented by computer program instructions. / or a combination of boxes. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (9)

  1. 一种接口卡,包括:接口卡背板模板、控制模块、本地中央处理器CPU模块、业务处理模块及外部通信接口;所述接口卡背板模块用于与汇聚设备线卡母板或接入设备背板连接;所述接口卡背板模块包括:状态接口、控制接口、业务接口;所述业务接口与所述业务处理模块连接,所述业务处理模块与所述外部通信接口连接,构成所述接口卡的业务通道;所述控制接口与所述控制模块连接,构成所述接口卡的外部控制通道;所述控制模块与所述本地CPU模块连接,构成所述接口卡的本地控制通道;所述控制模块还分别与所述状态接口以及所述业务处理模块连接;An interface card includes: an interface card backplane template, a control module, a local central processing unit CPU module, a service processing module, and an external communication interface; the interface card backplane module is used to connect with a convergence device line card motherboard or The interface card is connected to the device; the interface card backplane module includes: a status interface, a control interface, and a service interface; the service interface is connected to the service processing module, and the service processing module is connected to the external communication interface, and the configuration a service channel of the interface card; the control interface is connected to the control module to form an external control channel of the interface card; the control module is connected to the local CPU module to form a local control channel of the interface card; The control module is further connected to the state interface and the service processing module respectively;
    其中,所述控制模块由所述状态接口获得机架类型指示信号;基于所述机架类型指示信号,确定所述接口卡背板模块当前与所述汇聚设备线卡母板连接时,将所述业务通道的控制通道切换为所述外部控制通道,以使所述汇聚设备线卡母板能够通过所述外部控制通道对所述业务处理模块进行初始化配置;基于所述机架类型指示信号,确定所述接口卡背板模块当前与所述接入设备背板连接时,将所述业务通道的控制通道切换为所述本地控制通道,以使所述本地CPU模块通过所述本地控制通道对所述业务处理模块进行初始化配置。The control module obtains a rack type indication signal by the status interface, and determines, according to the rack type indication signal, that the interface card backplane module is currently connected to the convergence device line card motherboard, The control channel of the service channel is switched to the external control channel, so that the aggregation device line card motherboard can initialize the service processing module through the external control channel; based on the frame type indication signal, When the interface card backplane module is currently connected to the access device backplane, the control channel of the service channel is switched to the local control channel, so that the local CPU module passes the local control channel pair. The service processing module performs initial configuration.
  2. 根据权利要求1所述的接口卡,其中,所述接口卡背板模板还包括:带外通信接口,与所述本地CPU模块连接,构成所述接口卡的带外通信通道。The interface card of claim 1, wherein the interface card backplane template further comprises: an outband communication interface coupled to the local CPU module to form an outband communication channel of the interface card.
  3. 根据权利要求1所述的接口卡,其中,所述接口卡还包括:桥接模块,分别与所述控制接口以及所述控模块连接,构成所述外部控制通道。The interface card according to claim 1, wherein the interface card further comprises: a bridge module respectively connected to the control interface and the control module to form the external control channel.
  4. 根据权利要求3所述的接口卡,其中,当所述控制接口为新一代 的外设部件互连标准PCI-E接口时,所述控制模块包括:第一接口转换模块、第二接口转换模块、本地控制总线LBS切换模块及复位电路模块;The interface card according to claim 3, wherein when said control interface is a new generation When the peripheral component is interconnected with the standard PCI-E interface, the control module includes: a first interface conversion module, a second interface conversion module, a local control bus LBS switching module, and a reset circuit module;
    其中,所述桥接模块与所述第一接口转换模块连接;所述第一接口转换模块与所述LBS切换模块连接;所述LBS切换模块分别与所述第二接口转换模块、所述状态接口以及所述业务处理模块连接;所述第二接口转换模块与所述本地CPU模块连接;所述复位电路模块分别与所述桥接模块、所述第一接口转换模块、所述第二接口转换模块、所述LBS切换模块、所述本地CPU模块及状态接口连接。The bridge module is connected to the first interface conversion module; the first interface conversion module is connected to the LBS switch module; the LBS switch module is respectively connected to the second interface conversion module and the state interface And the service processing module is connected; the second interface conversion module is connected to the local CPU module; the reset circuit module is respectively connected to the bridge module, the first interface conversion module, and the second interface conversion module The LBS switching module, the local CPU module, and the state interface are connected.
  5. 一种控制方法,应用于一接口卡,所述接口卡包括接口卡背板模板、控制模块、本地中央处理器CPU模块及业务处理模块;所述接口卡背板模块包括:状态接口、控制接口、业务接口;所述控制模块与所述控制接口连接,构成所述接口卡的外部控制通道;所述控制模块与所述本地CPU模块连接,构成所述接口卡的本地控制通道;所述业务处理模块与所述业务接口连接,构成所述接口卡的业务通道;所述方法包括:A control method is applied to an interface card, the interface card includes an interface card backplane template, a control module, a local central processing unit CPU module, and a service processing module; the interface card backplane module includes: a status interface, a control interface a service interface; the control module is connected to the control interface to form an external control channel of the interface card; the control module is connected to the local CPU module to form a local control channel of the interface card; The processing module is connected to the service interface to form a service channel of the interface card; the method includes:
    所述控制模块由所述状态接口获得机架类型指示信号;The control module obtains a rack type indication signal by the state interface;
    所述控制模块基于所述机架类型指示信号确定所述接口卡背板模块当前与所述汇聚设备线卡母板连接后,将所述业务通道的控制通道切换为所述外部控制通道,以使所述汇聚设备线卡母板能够通过所述外部控制通道对所述业务处理模块进行初始化配置;After the control module determines that the interface card backplane module is currently connected to the convergence device line card motherboard, the control module switches the control channel of the service channel to the external control channel, Enabling the aggregation device line card motherboard to initialize the service processing module through the external control channel;
    所述控制模块基于所述机架类型指示信号确定所述接口卡背板模块当前与所述接入设备背板连接后,将所述业务通道的控制通道切换为所述本地控制通道,以使所述本地CPU模块通过所述本地控制通道对所述业务处理模块进行初始化配置。After the control module determines that the interface card backplane module is currently connected to the access device backplane, the control module switches the control channel of the service channel to the local control channel, so that The local CPU module performs initial configuration on the service processing module by using the local control channel.
  6. 根据权利要求5所述的方法,其中,所述控制模块将所述业务通道的控制通道切换为所述外部控制通道,包括:The method according to claim 5, wherein the control module switches the control channel of the service channel to the external control channel, including:
    所述控制模块控制所述本地CPU模块复位,并控制所述业务处理模 块去复位,以将所述业务通道的控制通道切换为所述外部控制通道。The control module controls the local CPU module to reset and controls the service processing module The block is reset to switch the control channel of the traffic channel to the external control channel.
  7. 根据权利要求5所述的方法,其中,所述接口卡还包括桥接模块,设置在所述外部控制通道中,并分别与所述控制接口以及所述控制模块连接;The method of claim 5, wherein the interface card further comprises a bridge module disposed in the external control channel and connected to the control interface and the control module respectively;
    所述控制模块将所述业务通道的控制通道切换为所述外部控制通道,包括:The control module switches the control channel of the service channel to the external control channel, including:
    所述控制模块控制所述本地CPU模块复位,并控制所述桥接模块以及所述业务处理模块去复位,以将所述业务通道的控制通道切换为所述外部控制通道。The control module controls the local CPU module to reset, and controls the bridge module and the service processing module to reset to switch the control channel of the service channel to the external control channel.
  8. 根据权利要求5所述的方法,其中,所述控制模块将所述业务通道的控制通道切换为所述本地控制通道,包括:The method according to claim 5, wherein the control module switches the control channel of the service channel to the local control channel, including:
    所述控制模块控制所述本地CPU模块及所述业务处理模块去复位,以将所述业务通道的控制通道切换为所述本地控制通道。The control module controls the local CPU module and the service processing module to reset to switch the control channel of the service channel to the local control channel.
  9. 根据权利要求5所述的方法,其中,所述接口卡还包括桥接模块,设置在所述外部控制通道中,并分别与所述控制接口以及所述控制模块连接;The method of claim 5, wherein the interface card further comprises a bridge module disposed in the external control channel and connected to the control interface and the control module respectively;
    所述控制模块将所述业务通道的控制通道切换为所述本地控制通道,包括:The control module switches the control channel of the service channel to the local control channel, including:
    所述控制模块控制所述本地CPU模块及所述业务处理模块去复位,并控制所述桥接模块复位,以将所述业务通道的控制通道切换为所述外部控制通道。 The control module controls the local CPU module and the service processing module to reset, and controls the bridge module to reset to switch the control channel of the service channel to the external control channel.
PCT/CN2015/071650 2014-10-17 2015-01-27 Interface card and control method WO2015131722A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410554048.7 2014-10-17
CN201410554048.7A CN105577389A (en) 2014-10-17 2014-10-17 Interface card and control method

Publications (1)

Publication Number Publication Date
WO2015131722A1 true WO2015131722A1 (en) 2015-09-11

Family

ID=54054567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/071650 WO2015131722A1 (en) 2014-10-17 2015-01-27 Interface card and control method

Country Status (2)

Country Link
CN (1) CN105577389A (en)
WO (1) WO2015131722A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350959B (en) * 2019-08-06 2022-12-02 杭州海康威视数字技术股份有限公司 Expandable machine frame equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852456A (en) * 2005-11-30 2006-10-25 华为技术有限公司 System for realizing business switch-over and method therefor
CN101247234A (en) * 2008-03-18 2008-08-20 中兴通讯股份有限公司 Network processing card and operation method thereof
CN101419486A (en) * 2008-11-28 2009-04-29 成都市华为赛门铁克科技有限公司 Two-machine server system and system rear panel
US20100131619A1 (en) * 2008-11-21 2010-05-27 Microsoft Corporation Creating cross-technology configuration settings

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206130A (en) * 2007-12-17 2008-06-25 中国电子科技集团公司第二十研究所 Automatic verification/calibration/test platform for electronic instrument
WO2011018677A1 (en) * 2009-08-14 2011-02-17 Sandisk Il Ltd. Dual interface card with backward and forward compatibility

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852456A (en) * 2005-11-30 2006-10-25 华为技术有限公司 System for realizing business switch-over and method therefor
CN101247234A (en) * 2008-03-18 2008-08-20 中兴通讯股份有限公司 Network processing card and operation method thereof
US20100131619A1 (en) * 2008-11-21 2010-05-27 Microsoft Corporation Creating cross-technology configuration settings
CN101419486A (en) * 2008-11-28 2009-04-29 成都市华为赛门铁克科技有限公司 Two-machine server system and system rear panel

Also Published As

Publication number Publication date
CN105577389A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
EP3176980B1 (en) Unified server communication method, baseboard management controller and server
US9690732B2 (en) Power-over-ethernet (POE)-enabled network device and USB device power negotiation using USB to POE protocol conversion
US8843688B2 (en) Concurrent repair of PCIE switch units in a tightly-coupled, multi-switch, multi-adapter, multi-host distributed system
WO2016107270A1 (en) Device managing method, device and device managing controller
CN105700957A (en) Technologies for out-of-band power-based task scheduling for data centers
US10614011B2 (en) Apparatus, method, and electronic device for implementing solid-state drive data interaction
JP2016076257A5 (en)
US9898435B2 (en) Aggregate baseboard management controller (BMC) controller
JP6550192B2 (en) Network device
US9804980B2 (en) System management through direct communication between system management controllers
CN107391419B (en) Support general sequence busbar concentrator of many host computers and automobile-used host computer
JP2017209869A5 (en)
US20200084304A1 (en) Auto-negotiation over extended backplane
WO2011157138A2 (en) Multi-core router
JP2013161477A (en) Motherboard including extension connector
US20180077245A1 (en) System and method for providing multiple ipmi serial over lan (sol) sessions in management controller stack
KR20160104079A (en) Communication device and method
WO2014201917A1 (en) Miniaturized calculation and storage merged system
CN105703935A (en) Server system with function of automatic switching of shared network
CN104219061B (en) Request the method and device of power consumption state variation
WO2015131722A1 (en) Interface card and control method
TWI528161B (en) Data transmitting system and data transmitting method
EP3363637A1 (en) Regenerative chip and contact control method therefor
US20140317320A1 (en) Universal serial bus devices supporting super speed and non-super speed connections for communication with a host device and methods using the same
JP2013258619A (en) Communication system and backup power supply method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15758142

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15758142

Country of ref document: EP

Kind code of ref document: A1