1.SFP光模块数据结构说明 

       SFP光模块作一种通用的光电转换模块,为了具备普遍的通用性,兼容更多的主机设备,所以在结构、硬件及软件上都进行了统一的规范,软件上的统一规范标准为SFF-8472,其中对A0H与A2H的数据结构作了详细的定义,主机可以通过两线接口对数据进行访问。见下表所示:

 

图1 A0H&A2H数据结构表

 

 

       2.A0H数据结构说明

       A0H的256个字节主要包含光模块的一些识别信息,模块信息例如:厂商名称、厂商型号、序列号、连接器类型、波长、传输距离、生产日期等基本的模块信息;不同的主机厂商对这些信息的具体定义会有所区别,也就是通常所讲的不同品牌设备的编码不同。见下表所示:

 

 

表1 A0H数据结构表内容简介

A0h

#Bytes

Name

Description

BASE ID FIELDS

0

1

iddentifier

Type of transceiver

1

1

Ext.Iddentifier

Extended identifier of type of transceiver

2

1

Connector

Code for connector type

3-10

8

Transceiver

Code for electronic or optical compatibility

11

1

Encoding

Code for high speed serial encoding algorithm

12

1

BR,Nomonal

Nominal signalling rate,units of 100MBd. (see details for rates>25.0Gb/s)

13

1

Rate Iddentifier

Type of rate select functionality

14

1

Length(SMF,km)

Link length supported for single mode fiber, units of km

15

1

Length(SMF)

Link length supported for single mode fiber, units of 100m

16

1

Length(50μm)

Link length supported for 50μm OM2 fiber, units of 10 m

17

1

Length(62.5μm)

Link length supported for 62.5μm OM1 fiber,units of 10m

18

1

Length(OM4 or copper cable)

Link length supported for 50μm OM4 fiber, units of 10m. Alternatively copper or direct attach cable, units of m

19

1

Length(OM3)

Link length supported for 50μm OM3 fiber, units of 10m 20-35

20-35

16

Vendor name

SFP vendor name(ASCII)

36

1

Transecier

Code for electronic or optical compatibility

37-39

3

Vendor  OUI

SFP vendor IEEE company ID

40-55

16

Vendor  PN

Part number provided by SFP vendor (ASCII)

56-59

4

Vendor  rev

Revision level for part number provided by vendor (ASCII)

60-61

2

Wavelength

Laser wavelength (Passive/Active Cable Specification Compliance)

62

1

Unallocated

 

63

1

CC_BASE

Check code for Base ID Fields (addresses 0 to 62)

EXTENDED ID FIELDS

64-65

2

Options

Indicates which optional transceiver signals are implemented

66

1

BR,max

Upper bit rate margin,units of %(see details for rates>25.0Gb/s)

67

1

BR,min

Lower bit rate margin,units of %(see details for rates>25.0Gb/s)

68-83

16

Vendor SN

Serial number provided by vendor (ASCII)

84-91

8

Date code

Vendor's manufacturing date code

92 1 Diagnostic Indicates which type of diagnostic monitoring is implemented Monitoring Type(if any) in the transceiver

93

1

Enhanced Options

Indicates which optional enhanced features are implemented (if any) in the transceiver

94 1 SFF-8472
Compliance
Indicates which revision of SFF-8472 the transceiver complies with.

95

1

CC_EXT

Check code for the Extended ID Fields (addresses 64 to 94)

VENDOR SPECIFIC ID FIELDS

96-127

32

Vendor Specific

Vendor Specific EEPROM

128-255

128

Reserved

Reserved for SFF-8079

 

       3.A2H数据结构说明

       A2H中主要包含了一些模块的功能数据,一般在正常使用的时候该数据区域会被定义成写保护模式,防止数据被篡改而影响模块的正常使用,该数据表会包括一些例如:模块工作告警阈值、数字诊断功能(DOM或DDM功能)、一些状态控制字节、模块校正及调试数据等。见下表所示:

 


表2 A2H数据结构表内容简介

A2h

#Bytes

Name

Description

DIAGNOSTIC AND CONTROL/STATUS FIELDS

0-39

40

A/W Thresholds

Diagnostic Flag Alarm and Warning Thresholds (see Table 9-5)

40-55

16

Optional A/W Thresholds 

Thresholds for optional Laser Temperature and TEC Current alarms and warnings

56-91

36

Ext Cal Constants

Diagnostic calibration constants for optional External Calibration

92-94

3

Unallocated

 

95

1

CC_DMI

Check code for Base Diagnostic Fields (addresses 0 to 94)

96-105

10

Diagnostics

Diagnostic Monitor Data (internally or externally calibrated)

106-109

4

Optional Diagnostics

Monitor Data for Optional Laser temperature and TEC current

110

1

Status/Control

Optional Status and Control Bits

111

1

Reserved

Reserved for SFF-8079

112-113

2

Alarm Flags

Diagnostic Alarm Flag Status Bits

114

1

Unallocated

 

115

1

CDR Unlocked

Optional flags indicating that Tx or Rx CDR is unlocked

116-117

2

Warning Flags

Diagnostic Warning Flag Status Bits

118-119

2

Ext Status/Control

Extended module control and status bytes

GENERAL USE FIELDS

120-126

7

Vendor Specific

Vendor specific memory addresses

127

1

Table Select

Optional Page Selec


 

表3 A2H Page数据结构表内容简介

A2h

#Bytes

Name

Description

Page 00-01h

128-247

120

User EEPROM

User writable non-volatile memory

248-255

8

Vendor Control

Vendor specific control addresses

Page 02h

128-129

2

Reserved

Reserved for SFF-8690

130

1

Reserved

Reserved for future receiver controls

131

1

Rx Decision Threshold
 

RDT value setting

132-172

41

Reserved

Reserved for SFF-8690

173-255

83

Unallocated

 

      A2H中定义的数字诊断功能在日常设备使用中可以非常方便的辅助运维人员判断链路及设备端口的状态是否处于正常工作,目前市场主流的交换机都支持数字诊断功能的识别,通过输入简单的主机命令就能实时显示出来,也可以通过网络管理软件同时管理网络所有节点端口的状态,方便及时排查与网络维护。见下图所示:

 

图2 交换机读取光模块数字诊断信息

 

      摩泰光电竭诚为您服务。