[go: up one dir, main page]

CN1149794C - Interface device and method for directly adapting Ethernet to physical channel - Google Patents

Interface device and method for directly adapting Ethernet to physical channel Download PDF

Info

Publication number
CN1149794C
CN1149794C CNB00800854XA CN00800854A CN1149794C CN 1149794 C CN1149794 C CN 1149794C CN B00800854X A CNB00800854X A CN B00800854XA CN 00800854 A CN00800854 A CN 00800854A CN 1149794 C CN1149794 C CN 1149794C
Authority
CN
China
Prior art keywords
frame
data transmission
data
type
sdh
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
Application number
CNB00800854XA
Other languages
Chinese (zh)
Other versions
CN1316146A (en
Inventor
���ٻ�
余少华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN INST OF POSTS AND TELECOMMUNICATIONS SCIENCE MINISTRY OF INFORMATION IND
Original Assignee
WUHAN INST OF POSTS AND TELECOMMUNICATIONS SCIENCE MINISTRY OF INFORMATION IND
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
Priority claimed from CN99116568A external-priority patent/CN1250294A/en
Application filed by WUHAN INST OF POSTS AND TELECOMMUNICATIONS SCIENCE MINISTRY OF INFORMATION IND filed Critical WUHAN INST OF POSTS AND TELECOMMUNICATIONS SCIENCE MINISTRY OF INFORMATION IND
Publication of CN1316146A publication Critical patent/CN1316146A/en
Application granted granted Critical
Publication of CN1149794C publication Critical patent/CN1149794C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

The present invention discloses an interfacing apparatus and method for adapting Ethernet directly to physical channel, which encapsulates MAC frames into SDH/SONET SPE/VC using LAPS. The LAPS encapsulation consists of the start Flag Sequence, address field (SAPI, Service Access Point Identifier), control field (0x03), Information field (Ipv4, Ipv6, or PPP protocol data unit), FCS (Frame check sequence) and the ending Flag Sequence. The Flag Sequence (0x7E) identifies the beginning/end of a LAPS frame. The present invention can be used to provide Ethernet interface in telecom SDH/SONET transmission device or provide facilities to remote access datacom device, such as core and edge routers, switch devices, IP based network accessing equipment, line cards, and interfacing units used in high speed application, e.g. Gigabit applications. By simplification of SDH/SONET, i.e. using simplified SDH/SONET, Ethernet could be applied to DWDM.

Description

以太网直接与物理信道适配的接口装置和方法Interface device and method for directly adapting Ethernet to physical channel

技术领域technical field

本发明涉及与Internet/Intranet(因特网/内部网)和LAN有关的数据网络和电信网络,特别涉及以太网直接与物理信道适配的接口装置和方法,其在电信SDH/SONET传输设备上提供以太网接口,或为远程接入数据通信设备如核心和边缘路由器、交换设备、基于IP的网络接入设备、线卡以及在高速应用中所采用的接口单元提供例如将MAC帧与SDH/SONET直接适配的功能。The present invention relates to data network and telecommunication network relevant with Internet/Intranet (Internet/intranet) and LAN, relate in particular to the interface device and method that Ethernet directly adapts to physical channel, it provides Ethernet on telecommunication SDH/SONET transmission equipment network interface, or provide remote access data communication equipment such as core and edge routers, switching equipment, IP-based network access equipment, line cards, and interface units used in high-speed applications, such as directly connecting MAC frames with SDH/SONET Adapted function.

背景技术Background technique

目前需要扩展包括以太网、快速以太网和千兆以太网在内的以太网应用。在基于电信的物理信道上传送以太网(由IEEE 802.3工作组定义),以连接专网和公网内的LAN、Internet/Intranet是一种简单、价廉的技术。There is a need to expand Ethernet applications including Ethernet, Fast Ethernet and Gigabit Ethernet. It is a simple and cheap technology to transmit Ethernet (defined by IEEE 802.3 working group) on a telecommunications-based physical channel to connect LAN and Internet/Intranet in private and public networks.

ITU-T G.707描述了SDH的优点和复用方法,规定了一组SDH比特率、网络接口节点(NNI)的总则和帧结构、9行N×270列的全部帧大小、分段开销及其字节分配、同步传送模块(STM)的国际互连安排、在NNI单元将元素复用和映射到STM-N的格式。ITU-T G.707 describes the advantages and multiplexing methods of SDH, and specifies a set of SDH bit rates, the general rules and frame structure of the network interface node (NNI), the overall frame size of 9 rows of N×270 columns, and segment overhead and its byte allocation, the international interconnection arrangement of the Synchronous Transport Module (STM), the multiplexing and mapping of elements to the STM-N format in the NNI unit.

在北美,与SDH对应的是SONET。SONET是美国(ANSI)的在光介质上同步数据传送标准,简称同步光网络。人们制定标准以使数字网络能够实现国际互连,以及已有传输系统能够通过支路设备能够充分利用光介质的优势。SONET定义了一个速率为51.84Mbps的基本速率、一套在基本速率倍数的光载波级。SONET是一种八位组同步复用方案,定义了一系列的标准速率和格式。尽管名字是光载波,但它并不仅仅限于光学链路,也定义了用于单模光纤、多模光纤以及CATY 75欧姆同轴电缆的电气标准。传送速率是51.84Mbps的整数倍,它可以用来携带T3/E3位同步信号。它也强烈建议采用G.703的E1/E3/E4/T1/E2/T4接口作为IP-over-SDH/SONET的物理层,以方便用户通过LAN接入。In North America, SDH corresponds to SONET. SONET is an American (ANSI) standard for synchronous data transmission on optical media, referred to as synchronous optical network. People develop standards to enable digital networks to achieve international interconnection, and existing transmission systems can take full advantage of the advantages of optical media through branch devices. SONET defines a basic rate of 51.84Mbps and a set of optical carrier levels at multiples of the basic rate. SONET is an octet synchronous multiplexing scheme that defines a series of standard rates and formats. Despite the name Optical Carrier, it is not limited to optical links, but also defines electrical standards for single-mode fiber, multimode fiber, and CATY 75-ohm coaxial cables. The transmission rate is an integer multiple of 51.84Mbps, and it can be used to carry T3/E3 bit synchronization signals. It also strongly recommends adopting E1/E3/E4/T1/E2/T4 interfaces of G.703 as the physical layer of IP-over-SDH/SONET to facilitate users to access via LAN.

SDH和SONET都提供了用于一系列线速的标准,最大线速为9.953Gbps,实际可能的最大线速约为20Gbps。Both SDH and SONET provide standards for a range of wire speeds, with a maximum wire speed of 9.953Gbps and a practical maximum possible wire speed of about 20Gbps.

现有的将以太网和SDH/SONET组合在一起的数据通信结构用PPP(点到点协议)和HDLC(高级数据链路控制),它在IETF(因特网工程任务组)中被规定为RFC1619。然而,在将RFC1619应用到以太网/快速以太网/千兆以太网与SDH/SONET的组合时,RFC1619存在以下主要缺陷:The existing data communication structure combining Ethernet and SDH/SONET uses PPP (Point-to-Point Protocol) and HDLC (High-level Data Link Control), which is specified as RFC1619 in IETF (Internet Engineering Task Force). However, when applying RFC1619 to the combination of Ethernet/Fast Ethernet/Gigabit Ethernet and SDH/SONET, RFC1619 has the following main defects:

(1)整套应用方案没有一个统一的国际标准支持,这造成不同制造商的设备间在专网或公网中互连困难;(1) There is no unified international standard support for the entire application solution, which makes it difficult to interconnect devices of different manufacturers in private or public networks;

(2)对于2.5Gb/s及以上速率,硬件转发部分开销太大,用于IP over WDM情况更是如此,因为RFC1919推荐使用LCP(链路控制协议)和魔数(MagicNumber),这两者都十分复杂。(2) For the rate of 2.5Gb/s and above, the overhead of hardware forwarding is too large, especially for IP over WDM, because RFC1919 recommends the use of LCP (Link Control Protocol) and Magic Number (MagicNumber), both of which It's all very complicated.

(3)使用RFC1619时,重发定时器的默认值在PPP中为3秒,这对于高速链路,过于迟钝。在具体工程应用中,要求支持2Mb/s(位/秒)到10000Mb/s的速率范围(相差4032倍),因此重发定时器的值应根据线路往返的时延确定。但是,这些在RFC1619中都没有作出规定,从而在不同厂商的设备互连时会出现不确定性。(3) When using RFC1619, the default value of the retransmission timer in PPP is 3 seconds, which is too slow for high-speed links. In specific engineering applications, it is required to support the rate range from 2Mb/s (bit/s) to 10000Mb/s (the difference is 4032 times), so the value of the retransmission timer should be determined according to the round-trip delay of the line. However, these are not stipulated in RFC1619, so there will be uncertainty when devices from different manufacturers are interconnected.

(4)LCP有10种配置包(Configuration Packet)、16种事件(Event)和12种动作(action)、及超过130种协议状态,这导致在MII和SDH/SONET间难以实现光分组交换,且费用昂贵。为了说明上述情况,表1列出了采用通常PPP over SDH/SONET标准在LCP有限状态机(Finite-State Machine)上的事件和动作。(4) LCP has 10 kinds of configuration packets (Configuration Packet), 16 kinds of events (Event) and 12 kinds of actions (action), and more than 130 kinds of protocol states, which makes it difficult to realize optical packet switching between MII and SDH/SONET, And expensive. In order to illustrate the above situation, Table 1 lists the events and actions on the LCP finite state machine (Finite-State Machine) using the usual PPP over SDH/SONET standard.

(5)IP over SONET/SDH中几乎没有使用PPP的填充字段,但RFC 2615依然保持填充字段。此外,该填充字段要求接收端能够区分信息字段和RFC标准定义的填充字段,这样又增加了处理开销。(5) In IP over SONET/SDH, there is almost no padding field using PPP, but RFC 2615 still maintains the padding field. In addition, the padding field requires the receiving end to be able to distinguish the information field from the padding field defined by the RFC standard, which increases processing overhead.

Ethernet over SDH/SONET(EOS)的最重要的特点是:The most important features of Ethernet over SDH/SONET (EOS) are:

(a)它既可用于SDH/SONET电信网,也可用于基于以太网的数据通信网。(a) It can be used in both SDH/SONET telecommunication network and data communication network based on Ethernet.

--带长距离以太网接口的SDH/SONET设备端到端连接;--End-to-end connection of SDH/SONET equipment with long-distance Ethernet interface;

--带SDH/SONET接口的以太网交换机。--Ethernet switch with SDH/SONET interface.

(b)在SDH/SONET终端用多芯片实现分出/插入(add/drop)10/100M以太网信号。(b) Realize splitting/inserting (add/drop) 10/100M Ethernet signals with multi-chips at SDH/SONET terminals.

(c)可用于前兆路由器的线卡。(c) Line cards available for precursor routers.

                      表1.事件和动作 事件  响应 Up=lower layer is UpDown=lower layer is DownOpen=administrative OpenClose=administrative CloseTO+=Timeout with counter>0TO-=Timeout with counter expiredRCR+=Receive-Configure-Request(Good)RCR-=Receive-Configure-Request(Bad)RCA=Receive-Configure-AckRCN=Receive-Configure-Nak/RejRTR=Receive-Terminate-RequestRTA=Receive-Terminate-AckRUC=Receive-Unknown-CodeRXJ+=Receive-Code-Reject(permitted)or Receive-Protocol-RejectRXJ-=Receive-Code-Reject(catastrophic)or Receive-Protocol-RejectRXR=Receive-Echo-Requestor Receive-Echo-Replyor Receive-Discard-Request  tlu=This-Layer-Uptld=This-Layer-Downtls=This-Layer-Startedtlf=This-Layer-Finishedirc=Initialize-Restart-Countzrc=Zero-Restart-Countscr=Send-Configure-Requestsca=Send-Configure-Ackscn=Send-Configure-Nak/Rejstr=Send-Terminate-Requeststa=Send-Terminate-Ackscj=Send-Code-Rejectser=Send-Echo-Reply Table 1. Events and actions event response Up=lower layer is UpDown=lower layer is DownOpen=administrative OpenClose=administrative CloseTO+=Timeout with counter>0TO-=Timeout with counter expiredRCR+=Receive-Configure-Request(Good)RCR-=Receive-Configure-Request(Bad)RCA =Receive-Configure-AckRCN=Receive-Configure-Nak/RejRTR=Receive-Terminate-RequestRTA=Receive-Terminate-AckRUC=Receive-Unknown-CodeRXJ+=Receive-Code-Reject(permitted) or Receive-Protocol-RejectRXJ-=Receive -Code-Reject (catastrophic) or Receive-Protocol-RejectRXR=Receive-Echo-Requestor Receive-Echo-Replyor Receive-Discard-Request tlu=This-Layer-Uptld=This-Layer-Downtls=This-Layer-Startedtlf=This-Layer-Finishedirc=Initialize-Restart-Countzrc=Zero-Restart-Countscr=Send-Configure-Requestsca=Send-Configure-Ackscn= Send-Configure-Nak/Rejstr=Send-Terminate-Requeststa=Send-Terminate-Ackscj=Send-Code-Rejectser=Send-Echo-Reply

综上所述,现有的以太网和SDH/SONET结合方案复杂、实现起来困难以及费用昂贵、缓慢、不稳定、不适合高速数据传送,特别是千兆速率的应用。To sum up, the existing combination scheme of Ethernet and SDH/SONET is complex, difficult to implement, expensive, slow, unstable, and not suitable for high-speed data transmission, especially for gigabit rate applications.

发明内容Contents of the invention

因此,本发明的主要目的是提出一种改进的方法和装置,用于提供物理层设备和网络层设备间例如以太网交换机和SDH/SONET网络的点到点连接、全双工、双向同时运行。本发明提出了一种新的电信SDH/SONET传输设备和远程接入数据通信设备间通信方式,将MAC帧直接适配到SDH/SONET中。Therefore, the main object of the present invention is to propose an improved method and apparatus for providing point-to-point connections between physical layer equipment and network layer equipment such as Ethernet switches and SDH/SONET networks, full duplex, bidirectional simultaneous operation . The invention proposes a new communication mode between the telecom SDH/SONET transmission equipment and the remote access data communication equipment, and directly adapts the MAC frame to the SDH/SONET.

为达到上面以及其他的目的,本发明提供一种从上层设备向下层设备传送数据包的数据传输装置,包括:第一接收装置,用于从上层设备接收数据包,将所述数据包转换成第一类帧;第一处理装置,用于将SAPI标识符所指示的数据包的字段和信息字段一起封装到所述第一类帧中,形成第二类帧;第二处理装置,用于将所述第二类帧封装到净荷部分,并且插入相应于所述数据包的适当开销,形成第三类帧;和第一发送装置,用于将所述第三类帧输出到下层设备。其中,所述第一处理装置将所述第二类帧封装成包括起始标志、含SAPI标识符的SAPI字段、控制字段、包括所述数据包的信息字段、FCS字段和结束标志的帧格式。In order to achieve the above and other objects, the present invention provides a data transmission device for transmitting data packets from upper-level equipment to lower-level equipment, including: a first receiving device for receiving data packets from upper-level equipment, and converting the data packets into The first type of frame; the first processing device is used to encapsulate the field and the information field of the data packet indicated by the SAPI identifier into the first type of frame to form a second type of frame; the second processing device is used to encapsulating the frame of the second type into the payload part, and inserting an appropriate overhead corresponding to the data packet to form a frame of the third type; and a first sending means for outputting the frame of the third type to the lower layer device . Wherein, the first processing device encapsulates the second type frame into a frame format including a start flag, a SAPI field containing a SAPI identifier, a control field, an information field including the data packet, an FCS field, and an end flag .

本发明还提供一种从上层设备向下层设备传送数据包的数据传输方法,包括下列步骤:从所述上层设备接收和缓冲数据包,适配上层设备的速率和下层设备的速率,将该数据包转换成第一类帧;将SAPI标识符所指示的数据包的字段和信息字段一起封装到所述第一类帧中,形成第二类帧;将所述第二类帧封装到净荷部分,并插入所述数据包的适当开销,形成第三类帧;和将所述第三类帧输出到下层设备。其中,所述第二类帧被封装成包括起始标志、含SAPI标识符的SAPI字段、控制字段、包括所述数据包的信息字段、FCS字段和结束标志的帧格式。The present invention also provides a data transmission method for transmitting data packets from an upper-layer device to a lower-layer device, comprising the following steps: receiving and buffering data packets from the upper-layer device, adapting the rate of the upper-layer device and the rate of the lower-layer device, and converting the data The packet is converted into a first-type frame; the field and the information field of the data packet indicated by the SAPI identifier are encapsulated into the first-type frame to form a second-type frame; the second-type frame is encapsulated into a payload part, and insert the appropriate overhead of the data packet to form a third type frame; and output the third type frame to the lower layer device. Wherein, the second type of frame is encapsulated into a frame format including a start flag, a SAPI field containing a SAPI identifier, a control field, an information field including the data packet, an FCS field and an end flag.

本发明还提供一种从下层设备向上层设备发送由第一类帧形成的数据包的数据传输装置,包括:第二接收装置,用于从所述下层设备接收数据包;帧解析装置,用于从所述第一类帧中移去开销;第三处理装置,用于从所述第一类帧的净荷部分提取包含在信息字段中的数据和SAPI字段,形成第二类帧;确定装置,用于比较SAPI字段的值与预设值,并且当SAPI字段数据值等于所设定的值时,确定输出实际提取的数据;第四处理装置,用于将所述第二类帧转换成与数据包相应的第三类帧;和第二发送装置,用于将提取的数据包发送到所述上层设备。其中,每个所述第二类帧包括:起始标志、地址字段、控制字段、信息字段、FCS字段和结束标志,所述SAPI字段位于所述地址字段。The present invention also provides a data transmission device for sending a data packet formed by a first type of frame from a lower layer device to an upper layer device, comprising: a second receiving device for receiving a data packet from the lower layer device; a frame parsing device for To remove the overhead from the first type of frame; the third processing means is used to extract the data and SAPI field contained in the information field from the payload part of the first type of frame to form the second type of frame; determine A device for comparing the value of the SAPI field with a preset value, and when the data value of the SAPI field is equal to the set value, determine to output the actually extracted data; the fourth processing device is used for converting the second type of frame into a third type of frame corresponding to the data packet; and second sending means for sending the extracted data packet to the upper layer device. Wherein, each second-type frame includes: a start flag, an address field, a control field, an information field, an FCS field, and an end flag, and the SAPI field is located in the address field.

本发明还提供一种从下层设备向上层设备发送由第一类帧形成的数据包的数据传输方法,包括下列步骤:从所述下层设备接收数据包;从所述第一类帧中移去开销;从所述第一类帧的净荷部分提取SAPI字段和包含在信息字段中的数据,形成第二类帧;将SAPI字段的值与预设值进行比较,当SAPI字段数据值等于所设定的值时,确定输出实际提取的数据;将所述第二类帧转换成与所述数据包相应的第三类帧;和将提取的数据包发送到所述上层设备。其中,每个所述第二类帧包括:起始标志、地址字段、控制字段、信息字段、FCS字段和结束标志,所述SAPI字段位于所述地址字段。The present invention also provides a data transmission method for sending a data packet formed by a first-type frame from a lower-layer device to an upper-layer device, comprising the following steps: receiving a data packet from the lower-layer device; removing the data packet from the first-type frame Overhead; extract the SAPI field and the data contained in the information field from the payload part of the first type frame to form the second type frame; compare the value of the SAPI field with a preset value, when the SAPI field data value is equal to the When the value is set, determine to output the actually extracted data; convert the second type frame into a third type frame corresponding to the data packet; and send the extracted data packet to the upper layer device. Wherein, each second-type frame includes: a start flag, an address field, a control field, an information field, an FCS field, and an end flag, and the SAPI field is located in the address field.

本发明还提供一种在上层设备和下层设备之间发送数据包的数据包接口装置,包括根据上述的数据传输装置和根据上述的数据传输装置。其中所述第二类帧被封装成包括起始标志、含SAPI标识符的SAPI字段、控制字段、包括所述数据包的信息字段、FCS字段和结束标志的帧格式。其中还包括:微处理器接口装置,用于使所述数据接口装置能接入其内的所有寄存器;用于测试的JTAG端口;用于暂时缓冲输入/输出配置数据的GPIO寄存器。The present invention also provides a data packet interface device for sending data packets between upper-layer equipment and lower-layer equipment, including the above-mentioned data transmission device and the above-mentioned data transmission device. The second type of frame is encapsulated into a frame format including a start flag, a SAPI field containing a SAPI identifier, a control field, an information field including the data packet, an FCS field and an end flag. It also includes: a microprocessor interface device for enabling the data interface device to access all registers therein; a JTAG port for testing; and a GPIO register for temporarily buffering input/output configuration data.

通过参照附图对本发明实施例的详细描述,本发明的其他方面和优点将变得更加清楚。Other aspects and advantages of the present invention will become more apparent through the detailed description of the embodiments of the present invention with reference to the accompanying drawings.

附图说明Description of drawings

通过参照附图的如下详细说明,不难理解本项发明:By referring to the following detailed description of the accompanying drawings, it is not difficult to understand the present invention:

图1所示为本发明Ethernet over LAPS的总的示意图,它提供点到点、全双工、同时双向运行,图中采用了以太网帧、LAPS和SDH间的关系来表示。Shown in Fig. 1 is the general schematic diagram of Ethernet over LAPS of the present invention, and it provides point-to-point, full-duplex, two-way operation simultaneously, has adopted the relation between Ethernet frame, LAPS and SDH to represent among the figure.

图2所示为STM-N中的Ethernet over LAPS的层/协议栈。Figure 2 shows the layer/protocol stack of Ethernet over LAPS in STM-N.

图3为sSTM中的Ethernet over LAPS的层/协议栈。Figure 3 shows the layer/protocol stack of Ethernet over LAPS in sSTM.

图4为本发明的LAPS帧格式。Fig. 4 is the LAPS frame format of the present invention.

图5为Etbernet over LAPS的示例性协议配置。Figure 5 is an exemplary protocol configuration of Etbernet over LAPS.

图6为根据本发明在Ethernet over LAPS中的协调子层/MII和LAPS/SDH间的关系。Fig. 6 is the relationship between the coordination sublayer/MII and LAPS/SDH in Ethernet over LAPS according to the present invention.

图7所示为本发明实现千兆以太网和SDH适配的功能单元的示例性配置。FIG. 7 shows an exemplary configuration of functional units implementing Gigabit Ethernet and SDH adaptation in the present invention.

图8所示为MAC、LAPS链路层和物理层间的原语关系。Figure 8 shows the primitive relationship among MAC, LAPS link layer and physical layer.

图9所示根据本发明实施例用于将MAC帧直接与SDH/SONET适配或简化SDH/SONET的Ethernet over SDH/SONET接口装置框图。FIG. 9 shows a block diagram of an Ethernet over SDH/SONET interface device for directly adapting a MAC frame to SDH/SONET or simplifying SDH/SONET according to an embodiment of the present invention.

图10所示为IEEE 802.3以太网MAC帧格式的示意图图,图中在阴影部分定义LAPS信息字段格式。Figure 10 is a schematic diagram of the IEEE 802.3 Ethernet MAC frame format, in which the format of the LAPS information field is defined in the shaded part.

图11所示为封装MAC字段后的LAPS帧格式。Figure 11 shows the LAPS frame format after encapsulating the MAC field.

图12A所示为STM-N的SPE/VC结构实例。Figure 12A shows an example of the SPE/VC structure of STM-N.

图12B所示为SONET和SDH的POH示意图。Figure 12B is a schematic diagram of POH for SONET and SDH.

图12C所示为STS-3c SPE或VC-4结构示意图。Figure 12C shows a schematic diagram of the structure of STS-3c SPE or VC-4.

图13所示为图9中转换器19的详细方框图。FIG. 13 is a detailed block diagram of converter 19 in FIG. 9 .

图14所示为带2个EOS端口的以太网2层交换机的示意图。Figure 14 shows a schematic diagram of an Ethernet Layer 2 switch with 2 EOS ports.

图15所示为根据本发明实施例的SDH专用网连接带EOS装置的10BASE-T和100BASE-T2层交换机、1000BASE-x交换机的示意图。FIG. 15 is a schematic diagram of SDH private network connecting 10BASE-T and 100BASE-T2 layer switches and 1000BASE-x switches with EOS devices according to an embodiment of the present invention.

图16所示为根据本发明实施例的SDH公网连接IEEE 802.3以太网3层交换机的示意图。FIG. 16 is a schematic diagram of an SDH public network connected to an IEEE 802.3 Ethernet layer 3 switch according to an embodiment of the present invention.

具体实施方式Detailed ways

下面参考所附附图,对本发明优选实施例予以详细说明。在下面的说明中,对于那些众所周知的功能或结构将不进行详细的说明,以免以不必要的细节掩盖本发明。The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. In the following description, well-known functions or constructions are not described in detail so as not to obscure the invention in unnecessary detail.

本发明将以太网适配到SDH/SONET或简化SDH/SONET网络。连接以太网交换机和SDH/SONET网络是提供Ethernet over WAN的十分吸引人的方式。连接一个或多个以太网交换机端口对以太网是透明的。The present invention adapts Ethernet to SDH/SONET or Simplified SDH/SONET network. Connecting Ethernet switches and SDH/SONET networks is a very attractive way to provide Ethernet over WAN. Connecting one or more Ethernet switch ports is transparent to Ethernet.

为清楚起见,下面给出本说明和附图所采用的缩写。For the sake of clarity, the abbreviations used in the description and drawings are given below.

AUI         附件单元接口AUI Accessory Unit Interface

FCS         帧校验序列FCS frame check sequence

GMII        千兆位介质独立接口GMII Gigabit Media Independent Interface

IPX         因特网包交换IPX Internet Packet Exchange

LAPS        SDH链路接入规程LAPS SDH link access procedures

LAN         局域网LAN Local area network

LLC         逻辑链路控制LLC Logical Link Control

MAC         介质接入控制MAC Media Access Control

MAU         介质附属单元MAU Media Attachment Unit

MDI         介质相关接口MDI Media Dependent Interface

MII         介质独立接口MII Media Independent Interface

SDH         同步数字体系SDH Synchronous Digital Hierarchy

STM         同步传送模块STM Synchronous Transport Module

sSTM        同步传送模块子模块sSTM Synchronous transfer module sub-module

VC          虚容器VC virtual container

SAPI        业务接入点标识符SAPI Service Access Point Identifier

PLS         物理层信令PLS Physical Layer Signaling

PCS         物理编码子层PCS Physical Coding Sublayer

PMA         物理介质附件PMA Physical Media Attachment

PHY         物理层设备PHY physical layer device

PMD         物理介质相关PMD Physical media related

UITS        否定应答信息传送业务UITS Negative Acknowledgment Information Transfer Service

HDLC        高级数据链路控制HDLC Advanced Data Link Control

SPE         同步净荷包络(envelope)SPE synchronous payload envelope (envelope)

TCP         传输控制协议TCP Transmission Control Protocol

UDP         用户数据报协议UDP User Datagram Protocol

图1为本发明Ethernet over LAPS总体方案示意图,它提供点到点、全双工、同时双向运行,它采用以太网帧、LAPS和SDH间的关系来描述。Fig. 1 is the Ethernet over LAPS overall scheme schematic diagram of the present invention, and it provides point-to-point, full-duplex, two-way operation simultaneously, and it adopts the relation between Ethernet frame, LAPS and SDH to describe.

如图1所示,LAPS用在802.3(802.3u/802.3z分别代表以太网/快速以太网/千兆以太网)链路层和MAC子层之间,物理层定义为包括各种高阶和低阶VC的SDH,第二层由三个子层组成:LLC/MAC/LAPS。LAPS是一种典型的HDLC,包括数据链路业务和协议规范,它们已被用于采用LAPS的IPover SDH。As shown in Figure 1, LAPS is used between the 802.3 (802.3u/802.3z represent Ethernet/Fast Ethernet/Gigabit Ethernet) link layer and the MAC sublayer, and the physical layer is defined as including various high-order and For SDH of low-order VC, the second layer consists of three sublayers: LLC/MAC/LAPS. LAPS is a typical HDLC, including data link services and protocol specifications, which have been used for IPover SDH using LAPS.

在这种结构中,只有一个由LAPS链路层提供给MAC子层、供以太网/快速以太网/千兆以太网的MAC帧使用的接入点。例如SAPI是“28(十进制)”。在MAC子层的整个MAC帧,在传送时,作为原语的参数被映射到LAPS链路层。在LAPS子层,把映射的MAC帧看作是没有改变它们的大小和序列的LAPS信息字段(它包括目的地地址、源地址、长度/类型、MAC客户数据、PAD字段(如有的话)和完整MAC帧的FCS字段)。LAPS链路层适配UITS,采用原语和参数通过相应业务接入点与SDH物理层进行交互。In this structure, there is only one access point provided by the LAPS link layer to the MAC sublayer for Ethernet/Fast Ethernet/Gigabit Ethernet MAC frames. For example, the SAPI is "28 (decimal)". The entire MAC frame at the MAC sublayer, when transmitted, is mapped to the LAPS link layer as parameters of primitives. At the LAPS sublayer, consider mapped MAC frames as LAPS information fields without changing their size and sequence (it includes destination address, source address, length/type, MAC client data, PAD field (if any) and the FCS field of the complete MAC frame). The LAPS link layer is adapted to the UITS, and uses primitives and parameters to interact with the SDH physical layer through the corresponding service access point.

LAPS是一种物理编码子层,通过SDH虚容器和接口速率提供点到点传送。所支持的UITS是无连接模式业务。在LAPS和SDH间采用速率适配。它提供一种调节以太网MAC MII速率到SDH VC速率的机制,由于SDH和MAC分别以周期性和突发性方式运行,它也阻止进入SDH VC的MAC帧被写到SDH开销。另一方面,也可在LAPS子层和协调子层之间采用速率适配。LAPS is a physical coding sublayer that provides point-to-point transmission through SDH virtual containers and interface rates. The supported UITS is a connectionless mode service. Adopt rate adaptation between LAPS and SDH. It provides a mechanism to adjust the Ethernet MAC MII rate to the SDH VC rate. Since SDH and MAC operate in periodic and bursty modes respectively, it also prevents MAC frames entering SDH VC from being written to SDH overhead. On the other hand, rate adaptation can also be employed between the LAPS sublayer and the coordination sublayer.

SDH传送被看作是一种面向八位组的同步点到点全双工链路。SDH帧是一种面向八位组的同步复用映射结构,它规定了一系列的标准速率、格式、和映射方法。表2所示为VC的带宽值,表3为目前规定的STM接口速率。无需使用控制信号。在向同步净荷包络中插入或从中提取信息期间,使用自同步扰码/解扰(X11+1)函数。SDH transmission is viewed as an octet-oriented synchronous point-to-point full-duplex link. The SDH frame is an octet-oriented synchronous multiplexing mapping structure, which specifies a series of standard rates, formats, and mapping methods. Table 2 shows the bandwidth value of VC, and Table 3 shows the currently specified STM interface rate. No need to use control signals. During the insertion or extraction of information into or from the synchronous payload envelope, a self-synchronous scrambling/descrambling (X 11 +1) function is used.

表2.SDH虚容器带宽     VC类型     VC带宽(kbit/s)     VC净荷(kbit/s)     VC-11     1,664     1,600     VC-12     2,240     2,176     VC-2     6,848     6,784     VC-3     48,960     48,384     VC-4     150,336     149,760     VC-4-4c     601,304     599,040     VC-4-16c     2,405,376     2,396,160     VC-4-64c*     9,621,504     9,584,640 Table 2. SDH virtual container bandwidth VC type VC bandwidth (kbit/s) VC payload (kbit/s) VC-11 1,664 1,600 VC-12 2,240 2,176 VC-2 6,848 6,784 VC-3 48,960 48,384 VC-4 150,336 149,760 VC-4-4c 601,304 599,040 VC-4-16c 2,405,376 2,396,160 VC-4-64c * 9,621,504 9,584,640

表3.STM接口速率     STM类型     STM比特率(kbit/s)     SSTM-11     2,880     SSTM-12     5,184     SSTM-14     9,792     SSTM-18     19,792     SSTM-116     37,444     SSTM-21     7,488     SSTM-22     14,400     SSTM-24     28,224     STM-0     51,840     STM-1     155,052     STM-4     622,080     STM-16     2,488,320     STM-64     9,953,280 Table 3. STM interface rate STM type STM bit rate (kbit/s) SSTM-11 2,880 SSTM-12 5,184 SSTM-14 9,792 SSTM-18 19,792 SSTM-116 37,444 SSTM-21 7,488 SSTM-22 14,400 SSTM-24 28,224 STM-0 51,840 STM-1 155,052 STM-4 622,080 STM-16 2,488,320 STM-64 9,953,280

SONET传送速率是是STS-1(51.840Mbps)的整数倍,下面是SONET目前使用的倍率:The SONET transmission rate is an integer multiple of STS-1 (51.840Mbps). The following are the multiples currently used by SONET:

STS-1:51.840MbpsSTS-1: 51.840Mbps

STS-3:155.520MbpsSTS-3: 155.520Mbps

STS-9:466.560MbpsSTS-9: 466.560Mbps

STS-12:622.080MbpsSTS-12: 622.080Mbps

STS-18:933.120MbpsSTS-18: 933.120Mbps

STS-24:1244.160MbpsSTS-24: 1244.160Mbps

STS-36:1866.240MbpsSTS-36: 1866.240Mbps

STS-48:2488.320MbpsSTS-48: 2488.320Mbps

STS-192:9953.280MbpsSTS-192: 9953.280Mbps

图2所示为STM-N中的Ethernet over LAPS的层/协议栈。在LAPS下方,有两种方式置入VC:(1)把LAPS帧置入低阶VC,根据SDH复用结构通过八位组交错将低阶VC复用到高阶VC,以复用段、再生段和电/光/无线电段顺序传送,然后,在接收端以相反顺序提取LAPS帧;(2)将LAPS帧置入SPE,SPE直接映射到高价VC,以复用段、再生段和电/光/无线电段顺序传送,然后,在接收端以相反顺序提取LAPS帧;Figure 2 shows the layer/protocol stack of Ethernet over LAPS in STM-N. Under LAPS, there are two ways to place VCs: (1) Put LAPS frames into low-order VCs, and multiplex low-order VCs to high-order VCs through octet interleaving according to the SDH multiplexing structure to multiplex sections, The regenerative section and the electrical/optical/radio section are transmitted sequentially, and then the LAPS frame is extracted in the reverse order at the receiving end; (2) The LAPS frame is put into the SPE, and the SPE is directly mapped to the high-priced VC, and the multiplex section, the regenerative section, and the electrical The /optical/radio segments are transmitted sequentially, and then, the LAPS frames are extracted in reverse order at the receiving end;

图3为sSTM中的Ethernet over LAPS的层/协议栈。在这种情况下,将LAPS帧置入低阶VC(VC11、VC12和VC2),根据SDH子复用结构通过八位组交错将低阶VC复用到子复用段,随后以再生段和电/光/无线电段顺序传送它们,然后在接收端以相反顺序提取LAPS帧;Figure 3 shows the layer/protocol stack of Ethernet over LAPS in sSTM. In this case, the LAPS frame is put into the low-order VCs (VC11, VC12, and VC2), and the low-order VCs are multiplexed into the sub-multiplex section through octet interleaving according to the SDH sub-multiplex structure, and then the regeneration section and Electrical/optical/radio segments transmit them sequentially, and then extract LAPS frames in reverse order at the receiving end;

图4为本发明的LAPS帧格式。如图4所示,LAPS包封由起始标志序列、地址字段(SAPI,业务接入点标识符)、控制字段(0x03)、信息字段(IPv4、IPv6或PPP协议数据单元)、FCS(帧校验序列)和帧结束标志序列,标志序列(0x7E)确定LAPS帧的起始和结束。Fig. 4 is the LAPS frame format of the present invention. As shown in Figure 4, LAPS encapsulation consists of start flag sequence, address field (SAPI, service access point identifier), control field (0x03), information field (IPv4, IPv6 or PPP protocol data unit), FCS (frame check sequence) and frame end flag sequence, the flag sequence (0x7E) determines the start and end of the LAPS frame.

图5为Ethernet over LAPS的示例性协议配置。在这种情况下,一个以太网接口通过SDH接入另外一个以太网接口的输入/输出网关。网关上设置两种类型的SDH和MAC物理接口,网络层维持不变,仍然是IPv4/IPv6/IPX。Figure 5 is an exemplary protocol configuration for Ethernet over LAPS. In this case, one Ethernet interface is connected to the input/output gateway of another Ethernet interface through SDH. Two types of SDH and MAC physical interfaces are set on the gateway, and the network layer remains unchanged, still IPv4/IPv6/IPX.

图6为根据本发明在Ethernet over LAPS中的协调子层/MII和LAPS/SDH间的关系。在这种情况下,在MAC功能子层下面,设置以太网快/速以太网/千兆以太网三种类型的物理接口,在SDH端通过LAPS实现MAC子层和SDH物理层的适配。Fig. 6 is the relationship between the coordination sublayer/MII and LAPS/SDH in Ethernet over LAPS according to the present invention. In this case, under the MAC functional sublayer, three types of physical interfaces of Ethernet Fast/Speed Ethernet/Gigabit Ethernet are set, and the adaptation of the MAC sublayer and the SDH physical layer is realized through LAPS at the SDH end.

LAPS链路实体通过协调子层和等价的MII(介质独立接口)从MAC层接收帧,这里没有地址过滤功能,LAPS和MAC的FCS计算分别参考ITU-T建议X.85/Y.1321和IEEE 802.3标准。Ethernet over LAPS的功能单元将所有输入的LAPS信息字段转发到除了源链路端口外的其对等连接链路,在转发前将一个或多个输入帧进入缓冲器。The LAPS link entity receives frames from the MAC layer through the coordination sublayer and the equivalent MII (Media Independent Interface). There is no address filtering function here. The FCS calculations of LAPS and MAC refer to ITU-T recommendations X.85/Y.1321 and IEEE 802.3 standard. The functional unit of Ethernet over LAPS forwards all incoming LAPS information fields to its peer connected link except the source link port, buffering one or more incoming frames before forwarding.

图7所示为根据本发明实施例实现千兆以太网与SDH的适配的功能单元的示例性配置。如图所示,只采用全双工方式。图中说明了IEEE 802.3以太网连同LAPS/SDH的功能单元。在SDH端,实现MAC子层和SDH物理层的适配,千兆以太网提供双电缆或4电缆接口、单模光纤接口、多模光纤接口和非掩蔽双绞线接口。FIG. 7 shows an exemplary configuration of functional units for realizing the adaptation between Gigabit Ethernet and SDH according to an embodiment of the present invention. As shown in the figure, only full-duplex mode is used. The figure illustrates the functional units of IEEE 802.3 Ethernet together with LAPS/SDH. At the SDH end, the adaptation of the MAC sublayer and the SDH physical layer is realized. Gigabit Ethernet provides dual-cable or 4-cable interfaces, single-mode optical fiber interfaces, multi-mode optical fiber interfaces and unshielded twisted pair interfaces.

图8所示为MAC、LAPS链路层和物理层间的原语关系。图中,LAPS提供一个SAP,值为28(十进制)的SAPI(服务访问点标识符)用于以太网/快速以太网/千兆以太网。原语“DL_UNACK_ACK request”用于从MAC层发送MAC帧到LAPS链路层,原语“DL_UNACK_DATA indication”  用于从LAPS链路层接收数据包到MAC链路层。在LAPS链路层和物理层之间,原语“PH_DATA request”用于建立从LAPS到物理层的链路,原语“PH_DATAindication”表示从物理层向LAPS链路发送用于链路建立的命令;原语“PH_DATA request”用于从LAPS链路层发送数据包到物理层,而原语“PH_DATA indication”用来从物理层接收数据包到LAPS链路层。Figure 8 shows the primitive relationship among MAC, LAPS link layer and physical layer. In the figure, LAPS provides a SAP, and a SAPI (Service Access Point Identifier) whose value is 28 (decimal) is used for Ethernet/Fast Ethernet/Gigabit Ethernet. The primitive "DL_UNACK_ACK request" is used to send MAC frames from the MAC layer to the LAPS link layer, and the primitive "DL_UNACK_DATA indication" is used to receive data packets from the LAPS link layer to the MAC link layer. Between the LAPS link layer and the physical layer, the primitive "PH_DATA request" is used to establish a link from LAPS to the physical layer, and the primitive "PH_DATAindication" means to send a command for link establishment from the physical layer to the LAPS link ; The primitive "PH_DATA request" is used to send data packets from the LAPS link layer to the physical layer, and the primitive "PH_DATA indication" is used to receive data packets from the physical layer to the LAPS link layer.

图9所示为根据本发明实施例的Ethernet over SDH/SONET中将MAC帧直接与SDH/SONET或简化SDH/SONET适配的接口装置框图。本发明的Ethernet over SDH/SONET接口装置(在下文中简写为EOS装置)可设置在电信SDH/SONET传输设备中以提供以太网接口,或设置在远程接入数据通信设备中,以提供155M、622M、2.5Gbps或10G的以太网接口,甚至连接在电信SDH/SONET传输设备和远程接入数据通信设备之间,以直接适配MAC帧到SDH/SONET。FIG. 9 is a block diagram of an interface device for directly adapting MAC frames to SDH/SONET or simplified SDH/SONET in Ethernet over SDH/SONET according to an embodiment of the present invention. The Ethernet over SDH/SONET interface device of the present invention (abbreviated as EOS device hereinafter) can be set in the telecommunication SDH/SONET transmission equipment to provide the Ethernet interface, or be set in the remote access data communication equipment to provide 155M, 622M , 2.5Gbps or 10G Ethernet interface, even connected between telecom SDH/SONET transmission equipment and remote access data communication equipment, to directly adapt MAC frames to SDH/SONET.

EOS装置在传送和接收两个方向执行标准的STS-3c/STM-1处理。EOS devices perform standard STS-3c/STM-1 processing in both transmit and receive directions.

在发送方向,以太网速率被适配到SDH/SONET速率,MII帧转换成LAPS帧,LAPS帧封装到SDH/SONET SPE/VC中。插入POH和TOH/SOH,所得到的STS信号以八位组宽传送到并行/串行转换器,然后通过线路端接口传送到光纤收发器。In the sending direction, the Ethernet rate is adapted to the SDH/SONET rate, MII frames are converted into LAPS frames, and the LAPS frames are encapsulated into SDH/SONET SPE/VC. Inserting POH and TOH/SOH, the resulting STS signal is sent octet-wide to a parallel/serial converter and then to a fiber optic transceiver through a line-side interface.

如图9所示,在发送方向,EOS装置1包括:发送(TX)FIFO 8,用来接收和缓冲来自以太网端的数据包(如IPv4或IPv6包、或PPP包、MPEG包、语音包以及其他数据包),将MII速率适配到LAPS的速率,例如适配并行突发的100M MII帧到周期性的155M LAPS帧;TX LAPS处理单元7,用于根据图4所示的格式将SAPI和数据包封装到LAPS帧中;扰码单元6,用来对LAPS帧进行扰码;SPE/VC生成单元5,用于产生指示SPE/VC位置的指针;SDH开销插入单元4,用来插入开销;TX SDH/SONET成帧器3,用来将扰码后的LAPS帧封装到SDH/SONET帧的SPE/VC中,形成SDH/SONET帧。As shown in Figure 9, in sending direction, EOS device 1 comprises: send (TX) FIFO 8, be used for receiving and buffering the data packet (such as IPv4 or IPv6 bag or PPP bag, MPEG bag, voice bag and other data packets), the MII rate is adapted to the rate of LAPS, such as adapting the 100M MII frame of parallel burst to the periodic 155M LAPS frame; TX LAPS processing unit 7, is used for according to the format shown in Figure 4 and data packets are encapsulated into the LAPS frame; the scrambling unit 6 is used to scramble the LAPS frame; the SPE/VC generation unit 5 is used to generate a pointer indicating the position of the SPE/VC; the SDH overhead insertion unit 4 is used to insert Overhead; TX SDH/SONET framer 3, used to encapsulate the scrambled LAPS frame into the SPE/VC of the SDH/SONET frame to form an SDH/SONET frame.

在接收方向,其处理过程与此相反。接收八位组宽的STS信号,Ethernetover SDH/SONET的接口装置给帧和TOH/SOH定位,解释指针,终止TOH/SOH和POH,提取SPE/VC4,然后从SPE/VC4净荷中提取出LAPS帧。SONET/SDH处理器由一个接收SONET/SDH处理器和一个发送SONET/SDH处理器组成。In the receive direction, the process is reversed. Receive octet-wide STS signal, Ethernetover SDH/SONET interface device locates frame and TOH/SOH, interprets pointers, terminates TOH/SOH and POH, extracts SPE/VC4, then extracts LAPS from SPE/VC4 payload frame. The SONET/SDH processor consists of a receive SONET/SDH processor and a transmit SONET/SDH processor.

图9中,在接收方向,EOS装置1包括:接收(RX)帧解析器(deframer)9,用于对接收到的SDH/SONET帧进行解析;SDH开销提取单元16,用来移去SDH/SONET帧的开销;指针处理单元10,用来定位和解释指针,提取SPE/VC4,从SPE/VC4分离出LAPS帧;解扰单元11,用于对提取的LAPS帧进行解扰;接收处理单元12,用于对LAPS帧进行帧解析,抽取封装在LAPS帧中的SAPI和数据包;接收FIFO 13,用于缓冲数据包,确定SAPI,将LAPS速率适配到MII的速率,例如,将周期性的155M的LAPS帧适配到并行突发的100M MII帧,发送数据包如IP包以及SAPI。EOS装置1还包括:用于监控TOH/SOH字节在各种状态的错误变化情况的SDH开销监控单元14;和监控POH字节在各种状态的错误变化情况的POH监控单元15。In Fig. 9, in the receiving direction, EOS device 1 includes: receiving (RX) frame parser (deframer) 9, is used for analyzing the received SDH/SONET frame; SDH overhead extracting unit 16, is used for removing SDH/SONET SONET frame overhead; pointer processing unit 10, used to locate and interpret pointers, extract SPE/VC4, and separate LAPS frames from SPE/VC4; descrambling unit 11, used to descramble the extracted LAPS frames; receiving processing unit 12, for frame parsing of the LAPS frame, extracting SAPI and data packets encapsulated in the LAPS frame; receiving FIFO 13, for buffering data packets, determining the SAPI, adapting the LAPS rate to the rate of the MII, for example, converting the cycle The permanent 155M LAPS frame is adapted to the parallel burst 100M MII frame, and sends data packets such as IP packets and SAPI. The EOS device 1 further includes: an SDH overhead monitoring unit 14 for monitoring error changes of TOH/SOH bytes in various states; and a POH monitoring unit 15 for monitoring error changes of POH bytes in various states.

接收处理单元中设置的确定单元(未示出)用来确定接收到的数据包的类型,生成一个相应的预定SAPI,校验发生在帧中的错误。The determining unit (not shown) provided in the receiving processing unit is used to determine the type of the received data packet, generate a corresponding predetermined SAPI, and check the error occurred in the frame.

此外,EOS装置1还包括:转换器19,它使上层设备的数据包与输入到第一接收装置的输入数据包在发送方向同步,以及使从第二发送装置中提取的数据包与上层设备的的数据包在接收方向同步;线路端接口2,用于通过TX线路发送SDH/SONET帧到外围SDH/SONET支持设备,如O/E模块(未示出),以及通过RX线路接收SDH/SONET帧;微处理器I/F(接口)18,它能够使EOS装置1接入其中的所有寄存器;用于测试的JTAG端口12;以及用于临时缓冲输入/输出包的通用输入输出(GPIO)寄存器21。In addition, the EOS device 1 also includes: a converter 19, which synchronizes the data packets of the upper-level equipment with the input data packets input to the first receiving means in the sending direction, and synchronizes the data packets extracted from the second sending means with the upper-level equipment. The data packets are synchronized in the receiving direction; the line-side interface 2 is used to send SDH/SONET frames to peripheral SDH/SONET support equipment through the TX line, such as O/E modules (not shown), and receive SDH/SONET frames through the RX line SONET frame; microprocessor I/F (interface) 18, it can make EOS device 1 access all registers wherein; JTAG port 12 for testing; ) register 21.

EOS装置的主要功能是:The main functions of the EOS device are:

●处理SDH/SONET段、线和通道层的信源和信宿,在发送和接收方向均有传送/分段E1、E2、F1和D1-D12开销接口。● Handle the source and sink of SDH/SONET segment, line and channel layer, and have transmission/segmentation E1, E2, F1 and D1-D12 overhead interfaces in both sending and receiving directions.

●通过以全双工映射LAPS帧到SDH/SONET或简化SDH/SONET净荷,实现STS-48c/STM-16或STS-12c/STM-4或STS-3c/STM-1数据流的处理。● Realize the processing of STS-48c/STM-16 or STS-12c/STM-4 or STS-3c/STM-1 data stream by mapping LAPS frame to SDH/SONET or simplified SDH/SONET payload in full duplex.

●用LAPS的多项式(X43+1)实现自同步扰码器/解扰器。• Implement a self-synchronizing scrambler/descrambler with the polynomial (X 43 +1) of LAPS.

●提供一个MII接口。●Provide a MII interface.

●提供用于控制、配置和状态监控的8位或16位微处理器接口。●Provide 8-bit or 16-bit microprocessor interface for control, configuration and status monitoring.

●LAPS处理与ITU-T建议X.86兼容。● LAPS processing is compatible with ITU-T recommendation X.86.

●兼容SDH/SONET规范如ANSI T1.105、Bellcore GR-253-CORE和ITUG.707。●Compatible with SDH/SONET specifications such as ANSI T1.105, Bellcore GR-253-CORE and ITUG.707.

●提供IEEE 1149.1 JTAG测试端口。●Provide IEEE 1149.1 JTAG test port.

●支持用于诊断的内环回通道测试。●Supports inner loopback channel test for diagnosis.

●提供一个8位通用I/O(GPIO)寄存器。●Provide an 8-bit general-purpose I/O (GPIO) register.

下面是本发明接口装置的接收和发送处理的详细说明。在随后的说明中,相关功能或操作以及功能块或单元能以可执行程序或硬件形式实现。它们将被省略,以避免对本发明主要方面的不必要的混淆。The following is a detailed description of the reception and transmission processing of the interface device of the present invention. In the following description, related functions or operations and functional blocks or units can be realized in the form of executable programs or hardware. They will be omitted to avoid unnecessarily obscuring the main aspects of the invention.

接收SDH/SONET处理Receive SDH/SONET processing

RX帧解析器9的功能相当一个SDH/SONET接收处理器。SDH/SONET接收处理器用于实现STS信号的成帧、解扰、包括B1和B2监控在内的TOH/SOH监控、AIS检测、指针处理、以及POH监控。接收SDH/SONET处理器执行以下功能:The function of the RX frame parser 9 is equivalent to an SDH/SONET receiving processor. The SDH/SONET receive processor is used to implement STS signal framing, descrambling, TOH/SOH monitoring including B1 and B2 monitoring, AIS detection, pointer processing, and POH monitoring. The receiving SDH/SONET processor performs the following functions:

●SDH/SONET成帧,检测[A1 A1 A2 A2]字节,这些字节将用于成帧,提供OOF和LOF指示符(单事件和第二事件,single event and second event)。● SDH/SONET framing, detect [A1 A1 A2 A2] bytes, these bytes will be used for framing, provide OOF and LOF indicators (single event and second event, single event and second event).

●用SDH/SONET帧同步扰码器对净荷进行扰码,扰码多项式为(X7+X6+1)。● Use SDH/SONET frame synchronous scrambler to scramble the payload, and the scrambling polynomial is (X 7 +X 6 +1).

●监控输入的B1字节,将其与重计算出的BIP-8值相比较。提供错误事件信息,包括单个位错误、错误帧和错误时间(Errored Second)的计数。• Monitor the incoming B1 byte and compare it to the recomputed BIP-8 value. Provide error event information, including single bit error, error frame and error time (Errored Second) count.

●监控输入的B2字节,将其与重计算出的BIP-86/24值相比较。提供错误事件信息,包括单个位错误、错误帧和错误时间的计数。• Monitor the incoming B2 byte and compare it to the recomputed BIP-86/24 value. Provides error event information, including counts of single bit errors, error frames, and error time.

●监控K1和K2字节,K1和K2用于发送线路/MS AIS或RDI,以及用于APS发信。●Monitor K1 and K2 bytes, K1 and K2 are used for sending line/MS AIS or RDI, and for APS sending.

●监控接收到的S1字节的4个LSB,以找出后续帧的一致值。• Monitor the 4 LSBs of the received S1 byte for consistent values in subsequent frames.

●监控M1字节,用于确定由远程终端在其接收到的信号中探测到的B2错误数。• Monitor the M1 byte for determining the number of B2 errors detected by the remote terminal in the signal it receives.

●TOH/SOH分离(drop)块输出接收到的E1、F1和E2字节以及2个串行DCC信道、SDCC(D1-D3)和LDCC(D4-D12)。- TOH/SOH drop block outputs received E1, F1 and E2 bytes and 2 serial DCC channels, SDCC (D1-D3) and LDCC (D4-D12).

●指针状态确定包括检查H1-H2字节,以建立接收指针的状态(正常、LOP、AIS)。如果指针状态正常,则读取第一个H1H2字节以确定SPE/VC的开始。• Pointer status determination includes checking the H1-H2 bytes to establish the status of the received pointer (OK, LOP, AIS). If the pointer status is normal, read the first H1H2 bytes to determine the start of the SPE/VC.

●POH监控模块由J1、B3、C2和G1监控组成,这些POH字节用来监控状态的错误或变化。● The POH monitoring module is composed of J1, B3, C2 and G1 monitoring, and these POH bytes are used to monitor errors or changes in status.

●监控/捕获J1字节,在SONET应用中,捕获64个连续的J1字节,在SDH应用中,EOS装置查找重复的16个连续的J1字节模式。• Monitor/capture J1 bytes. In SONET applications, 64 consecutive J1 bytes are captured. In SDH applications, the EOS device looks for repeated patterns of 16 consecutive J1 bytes.

●监控C2字节,以校验周期的分机类型。检查分支以找出具有相同C2字节的5个连续帧。● Monitor the C2 byte to verify the extension type of the cycle. Check the branches to find 5 consecutive frames with the same C2 byte.

●监控REI-P和RDI-P的G1。• Monitor G1 of REI-P and RDI-P.

●监控输入的B3字节,将其与再计算出的BIP-8值进行比较。提供错误事件信息,包括单个位错误、错误帧和错误时间的计数。• Monitor the incoming B3 byte and compare it to the recalculated BIP-8 value. Provides error event information, including counts of single bit errors, error frames, and error time.

●为了确定接收信号的误码率是在两个不同预设阈值之上或其之下,EOS装置设置两个B2错误率阈值块。当超过阈值时,通过中断来报告信号失效(SF)以及信号退化(SD)状态。• To determine whether the bit error rate of the received signal is above or below two different preset thresholds, the EOS device sets two B2 error rate threshold blocks. Signal failure (SF) and signal degradation (SD) status are reported by interrupts when thresholds are exceeded.

发送SDH/SONET处理Send SDH/SONET processing

TX成帧器3实现发送SDH/SONET处理器的功能。发送SDH/SONET处理器的功能是将LAPS帧封装到SPE/VC中。然后,它插入适当的POH和TOH/SOH,将最终STS信号输出到后接光纤收发器的并行串行转换器。TX framer 3 realizes the function of sending SDH/SONET processor. The function of sending SDH/SONET processor is to encapsulate LAPS frame into SPE/VC. It then inserts the appropriate POH and TOH/SOH to output the final STS signal to a parallel-to-serial converter followed by a fiber optic transceiver.

●同步净荷包络/虚容器(SPE/VC)生成块将来自系统接口的LAPS帧与通道开销(POH)字节复用,生成SONET的SPE或SDH的VC。●Synchronous Payload Envelope/Virtual Container (SPE/VC) generation block multiplexes LAPS frame from system interface with path overhead (POH) bytes to generate SONET SPE or SDH VC.

●支持下列POH字节:通道跟踪(J1)、通道BIP-8(B3),信号标签(C2)、通道状态(G1)。其他POH字节全部设置为零进行传输。● Supports the following POH bytes: Channel Tracking (J1), Channel BIP-8 (B3), Signal Label (C2), Channel Status (G1). The other POH bytes are all set to zero for transmission.

●执行AIS和无准备的信号插入。• Perform AIS and unprepared signal insertion.

●TOH/SOH生成,包括:●TOH/SOH generation, including:

帧字节A1A2-为了测试通过微处理器接口的固定的F628或强制错误(Forced Error),供测试用。Frame byte A1A2 - for testing the fixed F628 or forced error (Forced Error) through the microprocessor interface, for testing.

段跟踪(J0)-可通过微处理器接口编程。Segment Tracking (J0) - Programmable via microprocessor interface.

段增长(Section Growth J0)-固定模式2~12。Section Growth (Section Growth J0) - fixed mode 2~12.

段BIP-8(B1)-通过微处理器接口的计算的或强制的错误,供测试用。Section BIP-8(B1) - Calculated or Forced Errors via Microprocessor Interface, for testing purposes.

指令线(Orderwire,E1E2)-外部串行接口。Order wire (Orderwire, E1E2) - external serial interface.

段用户信道(F1)-外部串行接口。Segment User Channel (F1) - External Serial Interface.

数据通信信道(D1-D12)-外部串行接口。Data Communication Channels (D1-D12) - External Serial Interface.

指针字节(H1H2H3)-固定为522,禁止NDF,SS可编程。Pointer bytes (H1H2H3) - fixed at 522, NDF disabled, SS programmable.

线路BIP-96/24(B2)-通过微处理器接口计算的或强制的错误,供测试用。Line BIP-96/24(B2) - Errors calculated or forced through the microprocessor interface for testing purposes.

APS/MS AIS(K1K2)-可通过微处理器接口编程。APS/MS AIS (K1K2) - Programmable via microprocessor interface.

同步状态(S1)-可通过微处理器接口编程。Synchronous state (S1) - Programmable via microprocessor interface.

线路/MS REI(M1)-通过微处理器接口计算的或强制的错误,供测试用。Line/MS REI(M1) - Errors calculated or forced through the microprocessor interface for testing purposes.

●没有定义的TOH/SOH,全部设置为零进行传输。用SONET/SDH帧同步扰码器对净荷扰码,多项式为X7+X6+1。●Toh/Soh not defined, all set to zero for transmission. The payload is scrambled with a SONET/SDH frame synchronous scrambler, and the polynomial is X 7 +X 6 +1.

下面详细说明LAPS处理过程The LAPS processing process is described in detail below

LAPS处理LAPS processing

EOS装置1通过LAPS处理器从SONET净荷包络(SpE)中提取帧/包。EOS装置1也支持流通过模式(Flow-thru mode),该模式允许SPE直接通过系统接口。LAPS处理器为LLC和其他基于分组的数据进行LAPS类成帧。LAPS处理器是一个单信道引擎,用于按照ITU-T建议X.86将数据包封装到LAPS帧中。LAPS处理器只对字节对准的数据操作(例如消息的长度是整数字节)。在EOS模式,LAPS处理器分成接收LAPS处理器和发送LAPS处理器。The EOS device 1 extracts frames/packets from the SONET Payload Envelope (SpE) via the LAPS processor. The EOS device 1 also supports Flow-thru mode, which allows the SPE to pass directly through the system interface. The LAPS processor does LAPS-like framing for LLC and other packet-based data. The LAPS processor is a single channel engine used to encapsulate data packets into LAPS frames according to ITU-T Recommendation X.86. LAPS processors only operate on byte-aligned data (eg messages whose length is an integer number of bytes). In EOS mode, the LAPS processor is divided into a receiving LAPS processor and a transmitting LAPS processor.

封装encapsulation

LAPS链路实体通过协调子层和等效的MII(介质独立接口)接收来自MAC层的帧。这里没有使用地址过滤功能。The LAPS link entity receives frames from the MAC layer through the coordination sublayer and the equivalent MII (Media Independent Interface). The address filtering function is not used here.

图10所示为IEEE 802.3以太网MAC帧格式的示意图,图中阴影部分定义了LAPS信息字段格式。图11所示为封装MAC字段后的LAPS帧格式。LAPS和MAC的FCS计算分别参考ITU-T建议X.85/Y.1321和IEEE 802.3标准。Ethernet over LAPS的功能单元将所有输入LAPS信息字段转发除了源链路端口外的对等连接链路,在转发前,允许缓冲一个或多个输入帧。图4所表示的是协调子层/MII和LAPS/SDH的关系。Figure 10 is a schematic diagram of the IEEE 802.3 Ethernet MAC frame format, and the shaded part in the figure defines the format of the LAPS information field. Figure 11 shows the LAPS frame format after encapsulating the MAC field. The FCS calculations of LAPS and MAC refer to ITU-T recommendation X.85/Y.1321 and IEEE 802.3 standards respectively. The functional unit of Ethernet over LAPS forwards all input LAPS information fields to the peer connection link except the source link port, allowing one or more input frames to be buffered before forwarding. What Figure 4 shows is the relationship between the coordination sublayer/MII and LAPS/SDH.

接收LAPS处理器Receive LAPS Processor

接收LAPS处理器12的功能是提取LAPS帧、透明消除(TransparencyRemoval)、FCS错误校验、SPE/VC净荷的解扰、控制和地址字段选项删除以及性能监控。The functions of the receiving LAPS processor 12 are extracting LAPS frames, Transparency Removal, FCS error checking, descrambling of SPE/VC payload, control and address field option deletion, and performance monitoring.

在移去字段标志和字节填充的开始/结束后,剩下的净荷包括数据和FCS字段,更详细的细节请看附图。注意,在两个包间只需一个标志字节,包之间的所有标志都将丢弃。After removing the field flags and start/end of byte stuffing, the remaining payload consists of data and FCS fields, see attached image for more details. Note that only one flag byte is needed between two packets, all flags between packets will be discarded.

接收LAPS处理器执行以下功能:The receive LAPS processor performs the following functions:

●可选地对接收净荷自同步解扰(多项式X43+1)。- Optional self-synchronous descrambling of the received payload (polynomial X 43 +1).

●检测和终止LAPS帧,如帧定界标志检测。● Detection and termination of LAPS frames, such as frame delimitation marker detection.

●移去控制转义码(Control Escape)填充。● Remove Control Escape padding.

●计算任选FCS代码(32位),并与接收的FCS值进行比较。性能监控寄存器对错误进行累积。如果检测到FCS错误,输出的数据标记为错误数据。• Compute the optional FCS code (32 bits) and compare with the received FCS value. The performance monitoring registers accumulate errors. If an FCS error is detected, the output data is marked as error data.

●在字节流中(0x7D、0x7E)检测异常中止序列。• Detect abort sequence in byte stream (0x7D, 0x7E).

●任选地删除地址和控制字段。• Optionally remove address and control fields.

●提供任选的最小和最大包长度检测(SW配置),确定数据的RX_ERR信号,以标记错误状态。● Provide optional minimum and maximum packet length detection (SW configuration), determine the RX_ERR signal of the data to mark the error status.

●生成对八位组的性能监控:FCS错误、终止包、短包(Short Packet)、长包、由于RXFIFO错误丢弃的包。● Generate performance monitoring of octets: FCS error, termination packet, short packet (Short Packet), long packet, packet discarded due to RXFIFO error.

●任选地删除用于处理远端FIFO下溢情况的包填充。• Optionally remove packet stuffing to handle remote FIFO underflow conditions.

●在错误情况下生成中断。● Generates an interrupt on error conditions.

●自动删除生成包间隙标志。●Automatically delete the generated package gap flag.

●为了速率匹配,如果可能,移去可编程帧间间隙填充字节(0x7E)。• For rate matching, remove the programmable interframe gap padding byte (0x7E) if possible.

●通过转换器19,使来自SDH/SONET块的LAPS信息字段(MAC/GMAC帧)与MII/GMII接口的接收时钟(RX_CLK)同步。• Synchronize the LAPS information field (MAC/GMAC frame) from the SDH/SONET block with the receive clock (RX_CLK) of the MII/GMII interface through the converter 19 .

LAPS帧同步LAPS frame synchronization

标志序列(0x7E)确定LAPS帧的开始和结束。对接收到的SPE净荷数据逐个八位组搜索查找标志序列,以便给LAPS帧边界定位。用于确定标志序列的八位组值是可编程的,缺省值为0x7E。The flag sequence (0x7E) identifies the start and end of the LAPS frame. The received SPE payload data is searched octet by octet for a marker sequence to locate LAPS frame boundaries. The octet value used to determine the flag sequence is programmable with a default value of 0x7E.

两个连续标志序列构成一个空帧,对于空帧忽略不计。因此,N个连续标志序列构成N-1个空帧。对于太短的帧、无效的帧默默地予以丢弃。如果一个LAPS帧属于以下几类,把该帧看作无效帧:Two consecutive flag sequences constitute an empty frame and are ignored for empty frames. Therefore, N consecutive flag sequences constitute N-1 empty frames. Frames that are too short and invalid are silently discarded. An LAPS frame is considered invalid if it falls into any of the following categories:

a)不能由两个标志完全定界;a) cannot be completely delimited by two signs;

b)在帧标志间少于6个八位组;b) less than 6 octets between frame markers;

c)含有一个帧校验序列错误;c) contain a frame check sequence error;

d)含有一个与“4”(基于IPv4的业务)、“6”(基于IPv6的业务)、“255”(基于PPP的业务)不匹配的或者接收器不支持的业务接入点标识符;d) contains a service access point identifier that does not match "4" (IPv4-based service), "6" (IPv6-based service), "255" (PPP-based service) or is not supported by the receiver;

e)含有一个不能识别的控制字段值;e) contain an unrecognized control field value;

f)以一个多于6个“1”位的序列结束;f) ends with a sequence of more than 6 "1" bits;

LAPS八位组去填充处理LAPS octet destuffing process

LAPS八位组去填充过程(有时称作转义变换,Escaping Transform)在FCS计算之前、LAPS帧同步后应用于接收的LAPS帧。通过检测控制转义八位组(Control Escape Octet)标志序列的开始和结束间的整个LAPS帧,来实现八位组的去填充。一旦发现,从八位组流中移去控制转义八位组,其后的八位组用一个八位组去填充掩蔽八位组(Octet De-Stuffing Masking Octet)执行或异操作。不应把终止序列看作是转义序列(Escape Sequence)。The LAPS octet destuffing process (sometimes called Escaping Transform) is applied to received LAPS frames before FCS calculations and after LAPS frame synchronization. Octet destuffing is accomplished by detecting the entire LAPS frame between the start and end of the Control Escape Octet flag sequence. Once found, the control-escape octet is removed from the octet stream, and subsequent octets are de-stuffed with an octet to mask the octet (Octet De-Stuffing Masking Octet) to perform an OR operation. The termination sequence should not be considered an escape sequence (Escape Sequence).

控制转义八位组的值是可编程的,其缺省值为0x7D。八位组去填充掩蔽八位组也是可编程的,其缺省值为0x20。作为一个实例,0x7E被编码成0x7D、0x5E,0x7D被编码成0x7D、0x5D。The value of the control escape octet is programmable and has a default value of 0x7D. The octet destuffing masking octet is also programmable and has a default value of 0x20. As an example, 0x7E is encoded as 0x7D, 0x5E, and 0x7D is encoded as 0x7D, 0x5D.

LAPS终止序列LAPS termination sequence

在输入LAPS帧中,终止序列(后跟标志序列的控制转义码)的检测是可选的。终止序列标志着一个终止LAPS帧的结束。In incoming LAPS frames, detection of a termination sequence (a control escape code followed by a flag sequence) is optional. The termination sequence marks the end of a terminated LAPS frame.

发送LAPS处理器Send LAPS Processor

发送LAPS处理器7将基于包的信息插入到STS SPE中,它提供包封装、FCS字段生成、包间填充、TXFIFO错误恢复和扰码。发送LAPS处理器完成以下功能:The transmit LAPS processor 7 inserts packet-based information into the STS SPE, which provides packet encapsulation, FCS field generation, inter-packet stuffing, TXFIFO error recovery, and scrambling. The sending LAPS processor completes the following functions:

●将包封装到LAPS帧中,每个包以开始标志(0x7E)、任选FCS字段、任选地址和控制字段、结束标志(0x7E)封装。●Encapsulate the packet into the LAPS frame, each packet is encapsulated with a start flag (0x7E), an optional FCS field, an optional address and control field, and an end flag (0x7E).

●可选的自同步发送净荷扰码器(多项式为X43+1)。• Optional self-synchronizing transmit payload scrambler (polynomial is X 43 +1).

●按ITU-T X.85要求进行透明处理(对标志和控制转义码进行八位组填充)。在开始和结束字段标志间需进行字节填充。填充用后跟与0x20(十六进制)异或的原始字节、由控制转义组成的两个字节长的序列替换任何匹配标志或控制转义字节的字节。●Transparent processing according to ITU-T X.85 requirements (octet padding for flags and control escape codes). Byte padding is required between the start and end field markers. Padding replaces any byte matching a flag or control escape byte with a two-byte long sequence of control escape bytes followed by the original byte XORed with 0x20 (hexadecimal).

●生成开始和结束字段标志(0x7E)。注意,在两个包间可以共享单个标志。● Generate start and end field flags (0x7E). Note that a single flag can be shared between two packages.

●任选地为帧校验序列(FCS)生成32位CRC。• Optionally generate a 32-bit CRC for the Frame Check Sequence (FCS).

●提供FCS错误插入能力,以便在软件控制下进行测试。● Provides FCS error insertion capability for testing under software control.

●TX_PRTY错误产生中断。● TX_PRTY error generates an interrupt.

●提供FIFO下溢的可选择处理。当TXFIFO清空时间早于包结束时,会产生FIFO下溢情况。发生了这种情况时,会造成中断。此时,包可通过以下几种方式结束:生成FCS错误、生成终止序列,或可通过SW配置转义码在包间隙期间插入“填充”字节。● Provides optional handling of FIFO underflow. A FIFO underflow condition occurs when the TXFIFO is emptied before the end of the packet. When this happens, an outage is caused. At this point, the packet can end in several ways: by generating an FCS error, by generating a termination sequence, or by SW configurable escape codes to insert "padding" bytes during packet gaps.

●生成性能监控计数,包括:FIFO错误事件数、异常终止分组数、违反最小和最大包长参数的包数量(可配置SW)。● Generates performance monitoring counts, including: number of FIFO error events, number of abnormally terminated packets, number of packets violating minimum and maximum packet length parameters (SW configurable).

●通过转换器19,使从MII/GMII接收的MAC/GMAC帧与SDH/SONET块时钟同步。- Synchronization of MAC/GMAC frames received from MII/GMII with SDH/SONET block clock via converter 19 .

●如果必要,为了速率匹配,增加可编程速率包间间隙填充字节(0x7E)。● If necessary, for rate matching, add programmable rate inter-packet gap filling byte (0x7E).

FCS多项式FCS polynomial

EOS装置1支持CRC-32帧校验序列(FCS)生成和校验。The EOS device 1 supports CRC-32 frame check sequence (FCS) generation and verification.

FCS首先传送最低有效八位组(LSB),最低有效八位组包含有最高项的系数。EOS装置有两种FCS计算方式:按照LAPS的低有效位次序(Littleendian bit order)或高有效位次序(Big endian bit order)。The FCS transmits the least significant octet (LSB) first, which contains the coefficient of the highest term. There are two FCS calculation methods for EOS devices: according to LAPS's little endian bit order or high endian bit order.

下列多项式用来生成和校验FCS值CRC-32:1+x+x2+x4+x5+x7+x8+x10+x11+x12+x16+x22+x23+x26+x32。FCS字段由地址(SAPI值)、控制和信息字段的所有比特计算出来,但不包括为了透明而插入的任何八位组。这既不包括标志序列,也不包括FCS字段本身。对于两种FCS方法,CRC生成器和校验器均初始化成全部为逻辑“1”。FCS计算完成后,FCS值为1的补码,这就将这个新值插入FCS字段中。The following polynomials are used to generate and check the FCS value CRC-32: 1+x+x 2 +x 4 +x 5 +x 7 +x 8 +x 10 +x 11 +x 12 +x 16 +x 22 + x 23 +x 26 +x 32 . The FCS field is computed from all bits of the Address (SAPI value), Control and Information fields, excluding any octets inserted for transparency. This includes neither the flag sequence nor the FCS field itself. For both FCS methods, the CRC generator and checker are initialized to all logic "1". After the FCS calculation is complete, the FCS value is 1's complement, which inserts this new value into the FCS field.

下面,详细说明根据本发明数据在发送方向上的处理过程。Next, the process of data processing in the sending direction according to the present invention will be described in detail.

发送方向数据处理Send direction data processing

在发送方向,EOS装置1将基于分组的数据插入STS/STM SPE中。设备操作模式可通过管理控制接口来提供。寄存器值TX_EOS=1使设备处于EOS模式。In the transmit direction, the EOS device 1 inserts packet-based data into the STS/STM SPE. The device operating modes may be provided through a management control interface. Register value TX_EOS=1 puts the device in EOS mode.

发送FIFO接口Send FIFO interface

在EOS模式中,发送系统接口作为兼容MII接口运行。In EOS mode, the sending system interface operates as a compatible MII interface.

1.发送FIFO1. Send FIFO

TX FIFO 13,通过插入一个0x7E标志或通过同步TX FIFO的接收和发送端,将从转换器19接收到的MII突发帧(如100M)通过并行处理转换成周期性的LAPS帧(如155M)。TX FIFO 13 converts the MII burst frame (such as 100M) received from the converter 19 into a periodic LAPS frame (such as 155M) through parallel processing by inserting a 0x7E mark or by synchronizing the receiving and transmitting ends of the TX FIFO .

发送系统接口由在发送通道的发送方向上位于EOS装置之前的链路层设备控制。链路层设备提供一个用于同步所有接口传输的时钟到EOS装置接口。该约定要求EOS装置有一个速率匹配缓冲器(如FIFO)。FIFO大小的最小值为512字节。EOS装置也通过FIFO传输包的状态(分组/信元的开始/结束、分组的最后一个字是否由一个或两个八位组组成、包错误)。The transmission system interface is controlled by a link layer device located before the EOS device in the transmission direction of the transmission channel. The link layer device provides a clock for synchronizing all interface transfers to the EOS device interface. This agreement requires the EOS device to have a rate matching buffer (eg FIFO). The minimum value for the FIFO size is 512 bytes. The EOS device also transmits the status of the packet (start/end of packet/cell, whether the last word of the packet consists of one or two octets, packet error) via the FIFO.

2.发送FIFO错误2. Send FIFO error

在EOS模式中,FIFO态由EOS装置来监控,每当出现以下情况时,宣布出现FIFO错误状态:1)在包结束(TX_EOP指示)前接收到MII_TX_SOP,2)在跟随TX_CLAV信号的不确定的“发送窗口”之外激活MII_TX_ENB。通过设置MII_TX_FIFOERR_E=1向管理接口报告FIFO错误事件。EOS装置有一个8位FIFO错误计数器,记录受FIFO错误事件影响的每个包。In EOS mode, the FIFO status is monitored by the EOS device and a FIFO error status is declared whenever: 1) MII_TX_SOP is received before the end of packet (TX_EOP indication), 2) indeterminate following TX_CLAV signal Activate MII_TX_ENB outside the "transmit window". Report FIFO error events to the management interface by setting MII_TX_FIFOERR_E=1. EOS devices have an 8-bit FIFO error counter that records each packet affected by a FIFO error event.

当性能监控计数器被锁存时,该计数器值由MII_TX_FIFOERR_CNT[7:0]寄存器锁存,并且清空FIFO错误计数器。如果自LATCH_EVENT的最后上升沿以来至少出现一次FIFO错误事件,则设置FIFO错误事件位-MII_TX_FIFOERR_SECE。在EOS模式中(MII_TX_EOS=1),EOS装置终止错误的包。When the performance monitoring counter is latched, the counter value is latched by the MII_TX_FIFOERR_CNT[7:0] register, and the FIFO error counter is cleared. If at least one FIFO error event has occurred since the last rising edge of LATCH_EVENT, the FIFO error event bit - MII_TX_FIFOERR_SECE is set. In EOS mode (MII_TX_EOS=1), the EOS device terminates erroneous packets.

3.EOS错误包处理3. EOS error packet processing

在EOS运行模式(MII_TX_EOS=1)中,提供错误包处理过程。In the EOS operation mode (MII_TX_EOS=1), error packet processing is provided.

4.TX_ERR链路层指示4. TX_ERR link layer indication

当一个特殊的分组内含有错误并且应当终止或丢弃时(见MII_TX_ERR定义),发送系统接口提供了一种链路层设备能够用来指示给EOS装置的方法。The Transmitting System Interface provides a method that link layer devices can use to indicate to the EOS device when a particular packet contains an error and should be terminated or discarded (see MII_TX_ERR definition).

EOS装置1包含一个8位链路层错误计数器,它对从链路层接收到的有错误标志的每个包计数。当性能监控计数器被锁存时(LATCH_EVENT发送处于高位),该计数器的值由MII_TX_EOS_LLPKT_ERRCNT[7:0]寄存器锁存,清空链路层包错误计数器。如果自LATCH_EVENT的最后上升沿以来至少出现一次链路层包错误事件,则设置链路层错误包错误事件位,MII_TX_EOS_LLPKT_ERR_SECE。The EOS device 1 includes an 8-bit link layer error counter which counts each packet received from the link layer with an error flag. When the performance monitoring counter is latched (LATCH_EVENT transmission is high), the value of the counter is latched by the MII_TX_EOS_LLPKT_ERRCNT[7:0] register, and the link layer packet error counter is cleared. If at least one link layer packet error event has occurred since the last rising edge of LATCH_EVENT, the link layer error packet error event bit, MII_TX_EOS_LLPKT_ERR_SECE, is set.

5.最小/最大包大小5. Min/max packet size

EOS有一个选项,如果一个包超过了最小或最大包大小,则EOS装置认为该包出现了错误,并且不发送或终止该包。包大小仅仅指LAPS包的大小,不包括EOS装置插入的字节(标志序列、地址、控制、FIFO下溢、透明或FCS字节)。这些最小和最大值可通过管理控制接口编程。寄存器MII_TX_EOS_PMIN[3:0]包含最小包大小,其缺省值为6。寄存器MII_TX_EOS_PMAX[15:0]包含最大包大小,其缺省值为0x05E0。EOS has an option that if a packet exceeds the minimum or maximum packet size, the EOS device considers the packet to be in error and does not send or terminate the packet. The packet size refers only to the size of the LAPS packet and does not include bytes inserted by the EOS device (flag sequence, address, control, FIFO underflow, transparent or FCS bytes). These minimum and maximum values are programmable through the supervisory control interface. Register MII_TX_EOS_PMIN[3:0] contains the minimum packet size, whose default value is 6. Register MII_TX_EOS_PMAX[15:0] contains the maximum packet size, and its default value is 0x05E0.

EOS装置1通过管理接口的指令来禁止/允许最小和最大包大小校验。如果MII_TX_EOS_PMIN_ENB或MII_TX_EOS_PMAX_ENB=1,允许由于违反包大小限制的包终止。如果=0(缺省设置),则忽略包大小限制功能。The EOS device 1 disables/allows the minimum and maximum packet size checks by command of the management interface. If MII_TX_EOS_PMIN_ENB or MII_TX_EOS_PMAX_ENB=1, packet termination due to packet size limit violation is allowed. If = 0 (the default setting), the packet size limit function is ignored.

EOS装置1包含两个8位计数器,对每次的违反最小和最大包大小限制条件进行计数。当性能监控计数器被锁存时,这些计数器的值由MII_TX_EOS_PMIN_ERRCNT[7:0]和MIITX_EOS_PMAX_ERRCNT[7:0]寄存器锁存,清空包大小违例计数器。如果自LATCH_EVENT的最后上升沿以来至少出现一次包大小违例错误,则设置适当的包大小违例二次事件位,MII_TX_EOS_PMIN_ERR_SECE或MII_TX_EOS_PMAX_ERR_SECE。The EOS device 1 contains two 8-bit counters that count each violation of the minimum and maximum packet size constraints. When the performance monitoring counters are latched, the values of these counters are latched by the MII_TX_EOS_PMIN_ERRCNT[7:0] and MIITX_EOS_PMAX_ERRCNT[7:0] registers, clearing the packet size violation counters. If at least one packet size violation error has occurred since the last rising edge of LATCH_EVENT, set the appropriate packet size violation secondary event bit, MII_TX_EOS_PMIN_ERR_SECE or MII_TX_EOS_PMAX_ERR_SECE.

6.错误包终止6. Error Packet Termination

包开始传输后,如果接收或检测到错误情况,EOS装置1不能删除包,因此这些包将会被终止。EOS装置支持两种终止错误包的选择方法。After packets start to transmit, the EOS device 1 cannot delete packets if they are received or an error condition is detected, so these packets will be terminated. EOS devices support two options for terminating error packets.

缺省选项是通过插入终止序列0x7d7e来终止一个包。远端接收器接收到该代码后丢弃该包。另外一种方案是通过简单地反转FCS字节来终止错误包。终止模式由管理控制接口来控制。MII_TX_EOS_FCSABRT_ENB=1为FCS反转方法,MII_TX_EOS_FCSABRT_ENB=0(缺省设置)禁止FCS反转方法。The default option is to terminate a packet by inserting the termination sequence 0x7d7e. The remote receiver discards the packet after receiving this code. Another solution is to terminate error packets by simply inverting the FCS bytes. Termination mode is controlled by the management control interface. MII_TX_EOS_FCSABRT_ENB=1 is the FCS inversion method, and MII_TX_EOS_FCSABRT_ENB=0 (default setting) disables the FCS inversion method.

线路端包环回Line side packet loopback

为了进行测试,EOS装置1提供了用户环回包功能,它将从SONET/SDH信号中提取的包置入发送方向的FIFO中,在这里,替换从系统接口接收到的数据。然后这些数据进入发送端LAPS处理,最后送回到SONET/SDH线路。当MII_R_TO_T_LOOP设置为1时,环回功能激活。当MII_R_TO_T_LOOP设置为0时,禁止环回,进行正常的处理过程。这种环回功能主要是用于设备测试。在实际运行中,如果接收时钟快于发送时钟,而SONET/SDH净荷填充了数据包,则由于发送端不能容纳接收端的全部速率,将产生周期性错误。For testing, EOS device 1 provides user loopback packet function, which puts the packet extracted from SONET/SDH signal into FIFO in the sending direction, and replaces the data received from the system interface here. Then these data enter LAPS processing at the sending end, and finally send back to the SONET/SDH circuit. When MII_R_TO_T_LOOP is set to 1, the loopback function is activated. When MII_R_TO_T_LOOP is set to 0, loopback is disabled and normal processing is performed. This loopback function is mainly used for device testing. In actual operation, if the receiving clock is faster than the sending clock, and the SONET/SDH payload is filled with data packets, periodic errors will occur because the sending end cannot accommodate the full rate of the receiving end.

发送LAPS过程Send LAPS process

在发送系统接口后,在EOS模式(MII_TX_EOS=1)时,EOS装置1执行以下处理:After transmitting the system interface, in the EOS mode (MII_TX_EOS=1), the EOS device 1 performs the following processing:

1.在LAPS帧中封装包1. Encapsulate the packet in the LAPS frame

用于EOS的LAPS帧定义如图4所示。在EOS模式中(MII_TX_EOS=1),每个从链路层接收的LAPS包用在ITU-T X.85中定义的标志序列描绘,标志序列用来指示LAPS帧的开始和结束,其值为01111110(十六进制为0x7e)。The LAPS frame definition for EOS is shown in Figure 4. In EOS mode (MII_TX_EOS=1), each LAPS packet received from the link layer is described by the flag sequence defined in ITU-T X.85. The flag sequence is used to indicate the start and end of the LAPS frame, and its value is 01111110 (0x7e in hexadecimal).

作为选项之一,EOS装置可插入单个标志来指示一个帧的结束和下一个帧的开始,该项功能由管理接口来控制。如果MII_TX_EOS_EOP_FLAG=1,则EOS装置插入分离标志,以指示帧的开始和结束。如果MII_TX_EOS_EOP_FLAG=0(缺省设置),则只可插入单一的标志序列。As an option, EOS devices can insert a single flag to indicate the end of one frame and the start of the next, a function controlled by the management interface. If MII_TX_EOS_EOP_FLAG=1, the EOS device inserts a split flag to indicate the start and end of a frame. If MII_TX_EOS_EOP_FLAG=0 (default setting), only a single flag sequence can be inserted.

在禁止生成FCS字段的特殊情况下,EOS装置忽略MII_TX_EOS_EOP_FLAG,始终插入帧开始和结束标志序列。这是一种非标准运行模式,因为根据ITU-T X.85,FCS字段是必须遵循的。这种特性要求确保接收端在测试过程中能够正确运行。在该期间,禁止使用FCS,有可能是单字节的数据包。In the special case where the generation of the FCS field is prohibited, the EOS device ignores the MII_TX_EOS_EOP_FLAG and always inserts the frame start and end of frame flag sequences. This is a non-standard mode of operation because the FCS field is mandatory according to ITU-T X.85. This characteristic requires ensuring that the receiving end operates correctly during testing. During this period, the use of FCS is disabled, possibly for single-byte packets.

2.地址和控制字段2. Address and control fields

X.86标准定义了紧跟在帧开始标志序列后的两个字段:一个地址字段,该字段设置为0x0c;和一个控制字节,该字节定义为00000011。在EOS模式(MII_TX_EOS=1)中,EOS装置可选择插入这些字段,如果MII_TX_EOS_ADRCTL_INS=1。如果MII_TX_EOS_ADRCTL_INS=0(缺省设置),则不插入这些字段。The X.86 standard defines two fields immediately following the frame start flag sequence: an address field, which is set to 0x0c; and a control byte, which is defined as 00000011. In EOS mode (MII_TX_EOS=1), EOS devices may choose to insert these fields if MII_TX_EOS_ADRCTL_INS=1. These fields are not inserted if MII_TX_EOS_ADRCTL_INS=0 (default setting).

3.透明性处理3. Transparency processing

在EOS模式(MII_TX_EOS=1),八位组填充过程在一个被称作透明处理(Transparency Processing)的点上进行。一个特殊的八位组—控制转义码(01111101或十六进制0x7d)用作标志符以指示在接收端需要特殊处理的字节。控制转义码用来标志帧数据中任何特殊代码的出现。In EOS mode (MII_TX_EOS=1), the octet stuffing process takes place at a point called Transparency Processing. A special octet-control escape code (01111101 or hexadecimal 0x7d) is used as an identifier to indicate which bytes require special handling on the receiving end. Control escape codes are used to mark the presence of any special codes in the frame data.

进行FCS计算后,EOS装置检查任意两个标志序列间的整个帧。每次出现的标志为0x7e或0x7d的任何代码被后跟由与十六进制0x20码进行异或运算的原始八位组的控制转义八位组组成的两个八位组序列替换。EOS装置对下列字节序列进行透明处理,一个例外是EOS装置插入的用于描述帧的标志序列。净荷(在标志序列间)中的0x7e描述如下:After performing the FCS calculation, the EOS device examines the entire frame between any two marker sequences. Each occurrence of any code marked 0x7e or 0x7d is replaced by a two-octet sequence followed by a control-escape octet consisting of the original octet XORed with the hexadecimal 0x20 code. EOS devices transparently process the following byte sequences, with one exception being the flag sequence inserted by the EOS device to describe the frame. 0x7e in the payload (between flag sequences) is described as follows:

0x7e被编码为0x7d、0x5e;0x7e is encoded as 0x7d, 0x5e;

0x7d被编码为0x7d/0x5d。0x7d is encoded as 0x7d/0x5d.

SPE生成SPE generation

1.EOS操作(MII_TX_EOS=1)1. EOS operation (MII_TX_EOS=1)

随后EOS流映射到SONET/SDH同步净荷包络(SPE)的净荷中。EOS八位组边界与SPE八位组边界对齐。由于EOS帧长度可变,因此,它们被允许跨越SPE边界。在运行过程中当没有立即可插入SPE的LAPS帧时,发送标志序列来填充LAPS帧间的时间。这只是在两个完整的帧间才进行。对STS-3c/STM-1的Ethernet over SONET/SDH的可用信息速率是149.760Mbps。The EOS stream is then mapped into the payload of the SONET/SDH Synchronous Payload Envelope (SPE). EOS octet boundaries are aligned with SPE octet boundaries. Since EOS frames are variable in length, they are allowed to cross SPE boundaries. During operation, when there are no LAPS frames that can be inserted into the SPE immediately, the flag sequence is sent to fill the time between LAPS frames. This is only done between two full frames. The available information rate of Ethernet over SONET/SDH for STS-3c/STM-1 is 149.760Mbps.

2.FIFO下溢2. FIFO underflow

在EOS模式(MII_TX_EOS=1)中,理所当然在两个包间是空的,但在包发送时不应该是空的,即接收到MII_TX_SOP指示后不能是空的,但在接收到MII_TX_SOP指示之前可以是空的。如果发生了这种情况,EOS装置为处理FIFO下溢提供了两种选择方案:可用终止模式,终止包;或可发送一个特殊代码,MII_TX_EOS_FIFOUNDR_BYTE[7:0],填充SPE,直到FIFO中再次出现有效数据。寄存器MII_TX_EOS_FIFOUNDR_MODE控制响应;MII_TX_EOS_FIFOUNDR_MODE=0表示包将会被终止,这是缺省值。MII_TX_EOS_FIFOUNDR_MODE=1表示在下溢情况发生时,将会发送特殊FIFO下溢代码MII_TX_EOS_FIFOUNDR_BYTE[7:0]。MII_TX_EOS_FIFOUNDR_BYTE[7:0]缺省值为0x??。In EOS mode (MII_TX_EOS=1), it is of course empty between two packets, but it should not be empty when the packet is sent, that is, it cannot be empty after receiving the MII_TX_SOP instruction, but it can be before receiving the MII_TX_SOP instruction empty. If this happens, the EOS device provides two options for handling FIFO underflow: the termination mode can be used, a termination packet; or a special code, MII_TX_EOS_FIFOUNDR_BYTE[7:0], can be sent to fill the SPE until it appears again in the FIFO valid data. The register MII_TX_EOS_FIFOUNDR_MODE controls the response; MII_TX_EOS_FIFOUNDR_MODE=0 means that the packet will be terminated, which is the default value. MII_TX_EOS_FIFOUNDR_MODE=1 means that when underflow occurs, special FIFO underflow code MII_TX_EOS_FIFOUNDR_BYTE[7:0] will be sent. The default value of MII_TX_EOS_FIFOUNDR_BYTE[7:0] is 0x? ? .

SPE/VC生成SPE/VC generation

STS-3c SPE或VC-4的结构如图12A-C所示。SPE/VC的第一列是POH(通道开销)。通道开销有9个字节。这9个字节的顺序对SONET为J1、B3、C2、G1、F2、H4、Z3、Z4和Z5,对SDH为J1、B3、C2、G1、F2、H4、F3、K3和N1。通道开销的第一个字节是通道跟踪字节J1,通过相关的STS/AU指针指示其相对SONET/SDH TOH/SOH的位置。下面定义POH字节的发送值。这里SONET和SDH的字节名称不同,首先列出SONET的名称。The structure of STS-3c SPE or VC-4 is shown in Figure 12A-C. The first column of SPE/VC is POH (Path Overhead). Channel overhead is 9 bytes. The order of these 9 bytes is J1, B3, C2, G1, F2, H4, Z3, Z4 and Z5 for SONET and J1, B3, C2, G1, F2, H4, F3, K3 and N1 for SDH. The first byte of the channel overhead is the channel tracking byte J1, which indicates its position relative to SONET/SDH TOH/SOH through the relevant STS/AU pointer. The following defines the sent value of the POH byte. Here the byte names of SONET and SDH are different, and the names of SONET are listed first.

1.通道跟踪(J1)1. Channel tracking (J1)

在J1字节中,EOS可以发送一个16字节或64字节的通道跟踪消息,消息存储在MII_TX_J1_[63:0]_[7:0]中。如果MII_TX_J1_SEL=0,则J1字节以从MII_TX_J1_[15]_[7:0]到MII_TX_J1[0]_[7:0]的16字节序列重复发送,否则以从MII_TX_J1_[63]_[7:0]到MII_TX_J1_[0]_[7:0]的64字节序列重复发送(通常16字节序列用于SDH模式,64字节用于SONET模式)。In the J1 byte, EOS can send a 16-byte or 64-byte channel tracking message, and the message is stored in MII_TX_J1_[63:0]_[7:0]. If MII_TX_J1_SEL=0, the J1 byte is sent repeatedly in a 16-byte sequence from MII_TX_J1_[15]_[7:0] to MII_TX_J1[0]_[7:0], otherwise it is sent in sequence from MII_TX_J1_[63]_[7 :0] to MII_TX_J1_[0]_[7:0] 64-byte sequence repeated transmission (usually 16-byte sequence for SDH mode, 64-byte for SONET mode).

2.通道BIP-8(B3)2. Channel BIP-8 (B3)

如果B3_INV=0,则比特交错奇偶校验位8(BIP-8)作为偶数奇偶校验位(正常)发送,否则生成奇数奇偶校验位(不正确)。BIP-8对前一个SPE/VC(包括POH)的所有位进行计算,其值置入当前的SPE/VC的B3字节中。If B3_INV=0, Bit Interleaved Parity 8 (BIP-8) is sent as even parity (normal), otherwise odd parity is generated (incorrect). BIP-8 calculates all bits of the previous SPE/VC (including POH), and puts its value into the B3 byte of the current SPE/VC.

通过定义BIP-8,B3的第一位提供前一个SPE/VC所有字节的第一位的奇偶校验,B3的第二位提供前一个SPE/VC所有字节的第二位的奇偶校验,等等。By defining BIP-8, the first bit of B3 provides the parity check of the first bit of all bytes of the previous SPE/VC, and the second bit of B3 provides the parity check of the second bit of all bytes of the previous SPE/VC test, and so on.

3.信号标签(C2)3. Signal label (C2)

信号标签字节指示SPE/VC的组成。预设值TX_C2[7:0]插入到生成的C2字节中。The signal label byte indicates the composition of the SPE/VC. The preset value TX_C2[7:0] is inserted into the generated C2 byte.

4.通道状态(G1)4. Channel status (G1)

通道REIChannel REI

接收端监控接收的SPE/VC中的B3位错误。每个帧(0到8)检测到的B3错误数从接收端传输到发送端,插入到发送通道状态字节G1中,用作远程错误指示(Remote Error Indication)。如果FORCE_G1ERR=1,则G1的4个MSB(最高有效位)作为1000连续发送(作测试用)。否则如果PERI_INH=0,则它们设置为等于接收端POH监控模块最近检测到的B3错误数的二进制值(0000到1000,指示0到8)。否则,将它们全部设置为零。The receiving end monitors the B3 bit error in the received SPE/VC. The number of B3 errors detected in each frame (0 to 8) is transmitted from the receiving end to the sending end, and inserted into the sending channel status byte G1 as a remote error indication (Remote Error Indication). If FORCE_G1ERR=1, then the 4 MSBs (most significant bits) of G1 are sent continuously as 1000 (for testing). Otherwise if PERI_INH = 0, they are set to a binary value (0000 to 1000, indicating 0 to 8) equal to the number of B3 errors most recently detected by the POH monitoring module at the receiving end. Otherwise, set them all to zero.

通道RDIChannel RDI

G1的第5位可用作通道/管理单元远程故障指示(RDI-P),或者G1的第5、6和7位用作增强的RDI-P指示符。G1的第5、6和7位中的发送值或者从TX_G1[2:0]寄存器产生(如果PRDI_AUTO=0),或者EOS装置自动生成一个增强的RDI信号(如果PRDI_AUTO=1,PRDI_ENH=1),或者是一位RDI信号(如果PRDI_AUTO=1,PRDI_ENH=0)。G1的第5、6和7位中发送的值如表4所示。Bit 5 of G1 can be used as channel/snap remote fault indication (RDI-P), or bits 5, 6 and 7 of G1 can be used as enhanced RDI-P indicator. The transmit value in bits 5, 6 and 7 of G1 is either generated from the TX_G1[2:0] register (if PRDI_AUTO=0), or an enhanced RDI signal is automatically generated by the EOS device (if PRDI_AUTO=1, PRDI_ENH=1) , or a one-bit RDI signal (if PRDI_AUTO=1, PRDI_ENH=0). The values sent in bits 5, 6 and 7 of G1 are shown in Table 4.

表4通道RDI位值 PRDI_Auto  PRDI_ENH  RX_PAISRX_LOP  RX_UNEQ  RX_PLM  G1的5、6和7位 0  x  x  x  x  Tx_G1[2,0] 1  0  1  x  x  100  0  x  x  000  1  1  x  x  101  0  1  x  110  0  0  1  010  0  0  0  001 Table 4 channel RDI bit value PRDI_Auto PRDI_ENH RX_PAISRX_LOP RX_UNEQ RX_PLM 5, 6 and 7 bits of G1 0 x x x x Tx_G1[2,0] 1 0 1 x x 100 0 x x 000 1 1 x x 101 0 1 x 110 0 0 1 010 0 0 0 001

如果PRDI_AUTO=1,则上面所述的值最少发送20帧。一旦以相同值发送了20帧,则发送对应表4列出的当前态的故障指示值。G1的第8位(最低有效位)没有使用,设置为0。If PRDI_AUTO=1, a minimum of 20 frames is sent for the above stated value. Once 20 frames have been sent with the same value, the fault indication value corresponding to the current state listed in Table 4 is sent. The 8th bit (least significant bit) of G1 is not used and is set to 0.

5.其他POH字节5. Other POH bytes

EOS装置1不支持剩下的POH字节,这些字节以固定的全部零字节发送。这些字节包括通道用户信道(F2)、位置指示符(H4)、通道增长/用户信道(Z3/F3)、通道增长/通道APS信道(Z4/K3)以及前后连接监控字节(Z5/N1)。EOS device 1 does not support the remaining POH bytes, which are sent with fixed all zero bytes. These bytes include channel user channel (F2), position indicator (H4), channel growth/user channel (Z3/F3), channel growth/channel APS channel (Z4/K3), and front and rear connection monitoring bytes (Z5/N1 ).

SONET/SDH帧生成SONET/SDH frame generation

SONET/SDH帧生成模块通过生成传送(段)开销(TOH/SOH)字节、以来自SPE/VC的字节填充净荷、对除第一行的TOH/SOH字节外的所有字节扰码,来创建STS-3c/STM-1。The SONET/SDH frame generation module generates transport (segment) overhead (TOH/SOH) bytes, fills the payload with bytes from the SPE/VC, scrambles all bytes except the TOH/SOH bytes of the first row code to create STS-3c/STM-1.

1.帧对准1. Frame Alignment

相对于输入的TX_FRAME_IN,生成帧的位置是固定的。帧开始指示输出TX_FRAME_OUT与TX_FRAME_IN输入有一个固定的但非特指的关系。TX_FRAME_OUT上一个时钟周期宽脉冲与发送线路输出TX_DATA[7:0]数据字节的关系由MII_TX_FOUT_BYTE_TYPE[1:0]和TX_FOUT_BYTE_NUMBER[3:0]寄存器控制。The position of the generated frame is fixed relative to the input TX_FRAME_IN. The start of frame indication output TX_FRAME_OUT has a fixed but unspecified relationship to the TX_FRAME_IN input. The relationship between the wide pulse of one clock cycle on TX_FRAME_OUT and the output TX_DATA[7:0] data byte of the transmission line is controlled by the MII_TX_FOUT_BYTE_TYPE[1:0] and TX_FOUT_BYTE_NUMBER[3:0] registers.

2.净荷生成2. Payload generation

SONET或SDH净荷在正常情况下由SPE/VC字节填充而成。在STS-3c/STM-1模式(MII_TX_SIG_MODE=0)中,SPE/VC的J1字节放置在第10列第1行中。SONET or SDH payloads are normally padded with SPE/VC bytes. In STS-3c/STM-1 mode (MII_TX_SIG_MODE=0), the J1 byte of the SPE/VC is placed in the 10th column and the 1st row.

在线路(复用段,MS)告警指示信号(AIS)LAIS,或通道(管理单元,AU)告警指示信号(PAIS)发送期间,悬挂起SONET/SDH净荷的正常生成。MII_TX_LAIS和MII_TX_PAIS寄存器控制AIS的生成。如果MII_TX_LAIS或MII_TX PAIS=1,则整个净荷(9396或2349字节)全部以1字节填充。During the transmission of line (multiplex section, MS) alarm indication signal (AIS) LAIS, or channel (administrative unit, AU) alarm indication signal (PAIS), the normal generation of SONET/SDH payload is suspended. The MII_TX_LAIS and MII_TX_PAIS registers control AIS generation. If MII_TX_LAIS or MII_TX PAIS=1, the entire payload (9396 or 2349 bytes) is filled with 1 byte.

除非激活了AIS,否则,如果TX_UNEQ=1,则生成没有准备的SPE/VC(所有SPE/VC字节全部用零填充)。Unless AIS is activated, if TX_UNEQ = 1, an unprepared SPE/VC is generated (all SPE/VC bytes are filled with zeros).

3.TOH/SOH生成3. TOH/SOH generation

SONET TOH字节与SDH TOH字节基本上是一样的。下文中定义生成的所有TOH/SOH字节值。当SONET和SDH的字节名称不同时,首先列出SONET所用名称。标准中的空白之处是SONET中没有定义的或者是SDH非标准化保留字节。EOS装置1将这些字节全部用零填充。SONET TOH bytes are basically the same as SDH TOH bytes. All TOH/SOH byte values generated are defined below. When SONET and SDH have different byte names, the name used by SONET is listed first. The gaps in the standard are not defined in SONET or SDH non-standard reserved bytes. The EOS device 1 fills these bytes with all zeros.

在发送LAIS或PAIS过程中,悬挂起TOH/SOH字节的正常生成。如果MII_TX_LAIS=1,则正常生成TOH/SOH最开始的3行,但TOH/SOH剩余部分(以及所有SPE/VC字节)全部为设置1再进行发送。如果MII_TX_PAIS=1,则除第4行中所指针字节外,TOH/SOH所有行字节均正常生成。H1、H2和H3字节(以及所有SPE/VC字节)全部设置为1传送。During the transmission of LAIS or PAIS, the normal generation of TOH/SOH bytes is suspended. If MII_TX_LAIS=1, the first 3 lines of TOH/SOH are normally generated, but the rest of TOH/SOH (and all SPE/VC bytes) are all set to 1 before sending. If MII_TX_PAIS=1, except the pointer byte in the fourth row, all TOH/SOH row bytes are normally generated. H1, H2, and H3 bytes (and all SPE/VC bytes) are transmitted with all set to 1.

以下面固定模式正常生成帧字节:Frame bytes are generated normally with the following fixed pattern:

A1:1111_0110=F6;A1: 1111_0110 = F6;

A2:0010_1000=28。A2: 0010_1000=28.

为了测试之目的,A1和A2生成时可以包含错误。如果A1A2_ERR=0,不插入错误。当A1A2_ERR=1时,通过A1A2_ERR_PAT[15:0]的值与A1和A2进行异或运算生成8个帧的每个群中的m个连续帧(这里m相当于A1A2_ERR_NUM[2:0]的二进制数),A1的最高有效位与A1A2_ERR_PAT[15]进行异或运算,A2的最低有效位是A1A2_ERR_PAT[0]进行异或运算。For testing purposes, A1 and A2 can be generated with errors. If A1A2_ERR=0, no error is inserted. When A1A2_ERR=1, the value of A1A2_ERR_PAT[15:0] is XORed with A1 and A2 to generate m consecutive frames in each group of 8 frames (where m is equivalent to the binary value of A1A2_ERR_NUM[2:0] number), the most significant bit of A1 is XORed with A1A2_ERR_PAT[15], and the least significant bit of A2 is XORed with A1A2_ERR_PAT[0].

在16个连续帧的期间内,EOS装置连续发送包含在MII_TX_J0_[15:0]_[7:0]的16字节模式,从MII_TX_J0[15]_[7:0]字节开始按递减顺序发送。During 16 consecutive frames, the EOS device continuously transmits the 16-byte pattern contained in MII_TX_J0_[15:0]_[7:0], starting from the MII_TX_J0[15]_[7:0] byte in descending order send.

ITU-T G.707标准规定含第3条/G.831定义的段接入点标识符(SAPI)的16位段跟踪帧以连续J0字节连续发送。注意,只有帧开始标志符字节在其最高有效位应为1。The ITU-T G.707 standard stipulates that the 16-bit segment tracking frame containing the segment access point identifier (SAPI) defined in Article 3/G.831 is sent continuously in continuous J0 bytes. Note that only the Start of Frame Indicator byte shall have a 1 in its most significant bit.

目前,没有对SONET定义段跟踪功能。除非给SONET定义一个相似的段跟踪字段,否则所有的MII_TX_J0字节应采用0000_0001填充,因此,在J0中连续发送一个十进制的1。Z0字节在STS-12c/STM-4(MII_TX_SIG_MODE=1)模式中以2到12的二进制次序发送,在STS-3c/STM-1(MII_TX_SIG_MODE=0)模式中为2到3(这在GR-253中已作规定)。Currently, there is no segment tracking function defined for SONET. Unless a similar segment tracking field is defined for SONET, all MII_TX_J0 bytes shall be filled with 0000_0001, so a decimal 1 is sent consecutively in J0. Z0 bytes are sent in binary order 2 to 12 in STS-12c/STM-4 (MII_TX_SIG_MODE=1) mode, 2 to 3 in STS-3c/STM-1 (MII_TX_SIG_MODE=0) mode (this is in GR specified in -253).

如果MII_B1_INV=0,则B1 8位比特交错奇偶校验(BIP-8)以偶数奇偶校验位(正确态)发送,否则生成奇数奇偶校验位(不正确)。BIP-8对前一个扰码后STS-3c/STM-1帧的所有位进行计算,在扰码前置入当前帧的B1字节中。通过定义BIP-8,B1的第一位提供前一帧所有字节的第一位的奇偶校验,B1的第二位提供前一帧所有字节的第二位的奇偶校验,等等。If MII_B1_INV=0, B1 8-bit Bit Interleaved Parity (BIP-8) is sent with even parity (correct state), otherwise odd parity is generated (incorrect). BIP-8 calculates all bits of the STS-3c/STM-1 frame after the previous scrambled code, and puts it into the B1 byte of the current frame before the scrambled code. By definition of BIP-8, the first bit of B1 provides the parity of the first bit of all bytes in the previous frame, the second bit of B1 provides the parity of the second bit of all bytes in the previous frame, etc. .

定义指令线字节用来携带两个64kb/s的数字语音信号。F1字节给网络提供者使用。发送块接收3个串行输入:MII_TX_E1_DATA、MII_TX_E2_DATA和TX_F1_DATA,用来插入到发送的E1、E2和F1字节中。从EOS装置1输出一个单一的带缺口的64kHz时钟(MII_TX_E1E2F1_CLK),以便为这三个串行输入提供时钟参考。Define the command line byte to carry two 64kb/s digital voice signals. The F1 byte is used by the network provider. The transmit block receives 3 serial inputs: MII_TX_E1_DATA, MII_TX_E2_DATA and TX_F1_DATA for insertion into the transmitted E1, E2 and F1 bytes. A single notched 64kHz clock (MII_TX_E1E2F1_CLK) is output from EOS device 1 to provide the clock reference for the three serial inputs.

这些字节的第一位(最高有效位)应与输入帧开始脉中MII_TX_FRAME_IN对齐。在接收到E1、E2和F1字节的最后一位后,接收到的E1、E2和F1字节插入到输出的SONET/SDH帧中。The first (most significant bit) of these bytes should be aligned with MII_TX_FRAME_IN in the incoming frame start pulse. After receiving the last bit of E1, E2 and F1 bytes, the received E1, E2 and F1 bytes are inserted into the outgoing SONET/SDH frame.

TOH/SOH定义了两种DCC(数据通信通道),段/再生段DCC用D1、D2和D3字节来产生一个带缺口的192kb/s信道。线路/复用段DCC用D4到D12的字节来产生一个带缺口的576kb/s信道。发送端在两个串行输入:MII_TX_SDCC_DATA和MII_TX_LDCC_DATA,接收DCC数据。为了保证位同步,发送端输出两个时钟:MII_TX_SDCC_CLK,192kHz(带缺口);以及MII_TX_LDCC_CLK,576kHz(带缺口)。时钟信号能够使MII_TX_SDCC_DATA和MII_TX_LDCC_DATA位再定位到寄存器,以插入到TOH/SOH。MII_TX_SDCC_DATA和MII_TX_LDCC_DATA输入应根据MII_TX_SDCC_CLK和MII_TX_LDCC_CLK下降沿变化,因为重定时是在上升沿做出的。TOH/SOH defines two kinds of DCC (data communication channel), section/regeneration section DCC uses D1, D2 and D3 bytes to generate a 192kb/s channel with a gap. The line/multiplex section DCC uses bytes D4 to D12 to generate a gapped 576kb/s channel. The transmitter receives DCC data at two serial inputs: MII_TX_SDCC_DATA and MII_TX_LDCC_DATA. To ensure bit synchronization, the transmitter outputs two clocks: MII_TX_SDCC_CLK, 192kHz (notched); and MII_TX_LDCC_CLK, 576kHz (notched). The clock signal enables the MII_TX_SDCC_DATA and MII_TX_LDCC_DATA bits to be relocated to registers for insertion into the TOH/SOH. The MII_TX_SDCC_DATA and MII_TX_LDCC_DATA inputs should change according to the MII_TX_SDCC_CLK and MII_TX_LDCC_CLK falling edges because retiming is done on the rising edge.

H1和H2字节包含3个字段。由于SPE/VC与TOH同步生成,所以无需生成可变指针。与此相反,有效的H1和H2字节以固定指针值522(十进制)=10_0000_1010(二进制)生成,H3字节全部固定为0。这样,SPE/VC中J1字节在STS-3c/STM-1模式(MII_TX_SIG_MODE=0)中被放置在第1行第10列。The H1 and H2 bytes contain 3 fields. Since SPE/VC is generated synchronously with TOH, there is no need to generate variable pointers. In contrast, valid H1 and H2 bytes are generated with a fixed pointer value 522 (decimal) = 10_0000_1010 (binary), and the H3 bytes are all fixed at 0. In this way, the J1 byte in SPE/VC is placed in row 1, column 10 in STS-3c/STM-1 mode (MII_TX_SIG_MODE=0).

如果MII_TX_LAIS或TX_PAIS处于激活态,则H1、H2和H3字节在发送时全部设置为1。当MII_TX_LAIS或TX_PAIS转换为0时,EOS装置1在下一个帧中用一个有效的新数据标志(NDF)发送第一个H1字节。在第一个H1字节中以被禁止的NDF字段生成随后的帧。第一个H1-H2字节对以正常指针发送,此时:If MII_TX_LAIS or TX_PAIS is active, the H1, H2 and H3 bytes are all set to 1 when transmitted. When MII_TX_LAIS or TX_PAIS transitions to 0, the EOS device 1 sends the first H1 byte in the next frame with a valid New Data Flag (NDF). Subsequent frames are generated with the disabled NDF field in the first H1 byte. The first H1-H2 byte pair is sent as a normal pointer, at this time:

●NDF=0110;NDF = 0110;

●SS=TX_SDG_PG,0;SS = TX_SDG_PG, 0;

●指针值=10_0000_1010;● Pointer value = 10_0000_1010;

所有其他H1-H2字节对以级联指示字节发送,此时:All other H1-H2 byte pairs are sent in concatenated indication bytes, when:

●NDF=1001;NDF=1001;

●SS=TX_SDG_PG,0;SS = TX_SDG_PG, 0;

●指针值=11_1111_1111;● Pointer value = 11_1111_1111;

在下面B2字节的描述中,根据设备模式(STS-12c模式和STS-3c)的不同其值略有变化。为了描述两种模式的操作,采用下面的约定来区分每种模式的要求:STS-3c。TOH/SOH有12[3]个B2字节,它们一同提供BIP-96[BIP-24]检错能力。In the description of the B2 byte below, its value varies slightly depending on the device mode (STS-12c mode and STS-3c). In order to describe the operation of the two modes, the following convention is used to distinguish the requirements of each mode: STS-3c. TOH/SOH has 12[3] B2 bytes which together provide BIP-96[BIP-24] error detection capability.

每个B2字节为前一个帧中的12[3]组字节中的1组字节中的字节提供BIP-8奇偶校验。第j列中的B2字节为前一个帧(TOH/SOH开始3行除外)中位于第j+12k(j+3k)的字节提供BIP-8奇偶校验,这里k=0到89。如果B2_INV=0,则BIP-8以偶数奇偶校验位(正常态)发送,否则,生成奇数奇偶校验位(错误态)。BIP-8值在扰码前对前一个STS-3c/STM-1帧中的字节计算出来,在扰码前置入当前帧的B2字节中。Each B2 byte provides BIP-8 parity for bytes in 1 of the 12[3] groups of bytes in the previous frame. The B2 byte in the jth column provides BIP-8 parity for the byte at the j+12k (j+3k)th byte in the previous frame (except the first 3 rows of TOH/SOH), where k=0 to 89. If B2_INV=0, BIP-8 is sent with even parity bits (normal state), otherwise, odd parity bits are generated (error state). The BIP-8 value is calculated for the bytes in the previous STS-3c/STM-1 frame before scrambling, and is put into the B2 byte of the current frame before scrambling.

K1和K2的5位最高有效位用作自动保护交换(APS)信号。K2的3个最低有效位在线路/MS层用作AIS或远程故障指示(RDI),在SONET中,它们也用作APS信令。EOS装置1在发送的K1字节中插入MII_TX_K1[7:0],在发送的K2的5个MSB字节中插入MII_TX_K2[7:3]。The 5 most significant bits of K1 and K2 are used as Automatic Protection Switching (APS) signals. The 3 least significant bits of K2 are used as AIS or remote fault indication (RDI) at the line/MS layer, and in SONET they are also used as APS signaling. The EOS device 1 inserts MII_TX_K1[7:0] into the transmitted K1 byte, and inserts MII_TX_K2[7:3] into the 5 MSB bytes of the transmitted K2.

K2的3个LSB位由3个源控制,按照优先级,它们是:The 3 LSB bits of K2 are controlled by 3 sources, in order of priority, they are:

●如果TX_LAPS=1,发送时,将它们全部设置为1(同所有的线路/MS开销字节一样)。• If TX_LAPS = 1, when transmitting, set them all to 1 (as do all line/MS overhead bytes).

●如果LRDI_INH=0,以及如果(MII_RX_LOS AND NOTRX_LOS_INH)、MII_RX_LOF、MII_RX_LOC或MII_RX_LAIS中任何一个等于1,则它们以110码发送。无论何时激活该特殊事件,最少20帧的K2设置为110。• If LRDI_INH = 0, and if any of (MII_RX_LOS AND NOTRX_LOS_INH), MII_RX_LOF, MII_RX_LOC or MII_RX_LAIS is equal to 1, they are sent in code 110. Whenever this special event is activated, the K2 is set to 110 for a minimum of 20 frames.

●否则发送MII_TX_K2[2:0]码。• Otherwise send the MII_TX_K2[2:0] code.

RX_LOS可激活到高位(MII_RX_LOS_LEVEL=0,缺省值)或激活到低位(MII_RX_LOS_LEVEL=1)。在内部,如果MII_RX_LOS_LEVEL=1,则插入MII_RX_LOS以产生MII_RX_LOS。GR-253 R6-180到R-182要求规定了应在125μs的接收到的LOS、LOF或LAIS期间插入和移去RDI检测。RX_LOS can be activated high (MII_RX_LOS_LEVEL=0, default value) or activated low (MII_RX_LOS_LEVEL=1). Internally, if MII_RX_LOS_LEVEL=1, MII_RX_LOS is inserted to generate MII_RX_LOS. GR-253 R6-180 to R-182 requirements specify that RDI detection shall be inserted and removed during 125 μs of received LOS, LOF or LAIS.

该字节的4个LSB传送同步状态消息。设置发送的S1字节等于MII_TX_S1_[7:0]。The 4 LSBs of this byte convey the synchronization status message. Set the transmitted S1 byte equal to MII_TX_S1_[7:0].

接收端监控接收信号中的B2位错误,在STS-12c/STM-4模式中每帧检测到的B2错误数范围为每帧0到96个B2位,在STS-3c/STM-1模式中为每帧0到24个B2位。通常,线路/MS远程错误指示(REI)字节、M1字节传送在接收信号中检测到的B2错误计数。The receiver monitors the B2 bit errors in the received signal. The number of B2 errors detected per frame in STS-12c/STM-4 mode ranges from 0 to 96 B2 bits per frame. In STS-3c/STM-1 mode 0 to 24 B2 bits per frame. Typically, the Line/MS Remote Error Indication (REI) byte, the M1 byte, conveys a count of B2 errors detected in the received signal.

通过设置TX_M1_ERR=1,用户可强制发送REI错误指示。这时M1字节中发送24个数值中的任何一个(STS-3c/STM-1模式)。如果LREI_INH=0,则M1字节被设置成等于最近的B2错误计数。否则的话,M1字节全部设置为0。By setting TX_M1_ERR=1, the user can force to send REI error indication. At this time, any one of 24 values is sent in the M1 byte (STS-3c/STM-1 mode). If LREI_INH=0, the M1 byte is set equal to the most recent B2 error count. Otherwise, the M1 bytes are all set to zero.

由于Z1和Z2字节没有标准化,因此,EOS装置1将这些字节全部填充为0。Since the Z1 and Z2 bytes are not standardized, the EOS device 1 fills these bytes with all zeros.

扰码scramble code

用一个同步扰码序列对输入数据进行扰码,扰码多项式为x7+x6+1。在SPE/VC第一个字节开始处(在STS-3c/STM-1模式中位于1行10列的字节i)的扰码器初始化为1111111,对除第一行TOH/SOH字节外的整个SONET/SDH信号进行扰码。为了测试之目的,可通过设置SCRINH为1禁止扰码器。A synchronous scrambling sequence is used to scramble the input data, and the scrambling polynomial is x 7 +x 6 +1. The scrambler at the beginning of the first byte of SPE/VC (byte i located in row 1 and column 10 in STS-3c/STM-1 mode) is initialized to 1111111, except for the first row of TOH/SOH bytes The entire SONET/SDH signal is scrambled. For testing purposes, the scrambler can be disabled by setting SCRINH to 1.

从扰码单元6输出的已扰码的LAPS帧(如155M)被连接扰码单元6和SPE/BC生成单元5之间的FIFO单元(未示出)转换成SDH帧(如155M),该FIFO单元与PLL(锁相环路)协同工作。The scrambled LAPS frame (as 155M) output from the scrambling unit 6 is converted into an SDH frame (as 155M) by a FIFO unit (not shown) connected between the scrambling unit 6 and the SPE/BC generating unit 5, the The FIFO unit works in conjunction with a PLL (Phase Locked Loop).

下面描述数据在接收方向的处理过程。The processing of data in the receive direction is described below.

1.发送到接收环回和LOC1. Send to receive loopback and LOC

如果R_LOOP=1,EOS装置1接收部能被配置到环回生成发送信号。否则,选择从SONET/SDH接口接收到的信号。在环回中,TX_SONETCLK输入用于确定接收器成帧器和其他接收电路的时钟。如果没有选择环回,则RX_SONETCLK输入用于确定该电路的时钟。If R_LOOP=1, the EOS device 1 receiver can be configured to loop back to generate the transmit signal. Otherwise, the signal received from the SONET/SDH interface is selected. In loopback, the TX_SONETCLK input is used to clock the receiver framer and other receive circuitry. If loopback is not selected, the RX_SONETCLK input is used to clock the circuit.

RX_SONETCLK输入用TX_CLK输入监控时钟丢失。如果RX_SONETCLK上在16个TX_CLK周期没有检测到转换,则设置RX_LOC位。检测到转换时,清除它。如果RX_LOC从0转换到1或从1转换到0,设置RX_LOC_D delta位。The RX_SONETCLK input is monitored for loss of clock with the TX_CLK input. If no transition is detected on RX_SONETCLK for 16 TX_CLK cycles, the RX_LOC bit is set. When a transition is detected, it is cleared. If RX_LOC transitions from 0 to 1 or from 1 to 0, the RX_LOC_D delta bit is set.

2.传送开销监控2. Transmission overhead monitoring

TOH/SOH监控块由J0、B2、K1K2、S1和M1监控字节组成。这些TOH/SOH字节监控状态的错误或变化。The TOH/SOH monitoring block consists of J0, B2, K1K2, S1 and M1 monitoring bytes. These TOH/SOH bytes monitor for errors or changes in state.

2.1.J0监控2.1.J0 monitoring

J0监控有两种操作模式,一种用于SONET应用,一种用于SDH应用。在MII_RX_J0=0模式(SONET)中,J0监控包括检查其值与3个连续帧一致的接收到的J0字节值。当接收到一个一致的J0值时,把它写到MII_RX_J0_[15]_[7:0]。J0 monitoring has two modes of operation, one for SONET applications and one for SDH applications. In MII_RX_J0=0 mode (SONET), J0 monitoring consists of checking the received J0 byte value whose value is consistent with 3 consecutive frames. When a consistent J0 value is received, it is written to MII_RX_J0_[15]_[7:0].

在MII_RX_J0=1情况(SDH),J0字节可望包含一个重复的16字节段跟踪帧,该帧包括段接入点标志(SAPI)。J0监控包括跟踪16字节段跟踪帧开始、检查其值与3个连续段跟踪帧匹配一致的接收的段跟踪帧值。当接收到一个一致的帧值时,把它写到MII_RX_J0_[15:0]_[7:0]。段跟踪帧的第一个字节(它包括帧起始标志)写到MII_RX_J0_[15]_[7:0]。In the MII_RX_J0=1 case (SDH), the J0 byte is expected to contain a repeated 16-byte segment trace frame including the segment access point identifier (SAPI). J0 monitoring consists of tracking the start of the 16-byte segment trace frame, checking the received segment trace frame value for a value that matches 3 consecutive segment trace frames. When a consistent frame value is received, it is written to MII_RX_J0_[15:0]_[7:0]. The first byte of the segment trace frame (which includes the frame start flag) is written to MII_RX_J0_[15]_[7:0].

2.1.1.成帧2.1.1. Framing

除帧起始标志字节的最高有效位外,所有段跟踪帧字节的最高有效位均为0。J0监控器成帧器搜索15个连续J0字节,该字节最高有效位有一个0,后接的J0字节的最高有效位为1。当发现这种模式时,成帧器进入帧内,此时J0_OOF=0。一旦J0监控器成帧器为内帧,一直留在帧内直到接收到3个连续段跟踪帧中至少有1个最高有效位(MSB)位错误。如果MII_RX_J0=0,则J0帧指示节被约束在内帧状态,MII_J0_OOF=0。当MII_J0_OOF改变状态时,设置MII_J0_OOF_D delta位。The most significant bit of all segment trace frame bytes is 0 except for the most significant bit of the start of frame flag byte. The J0 monitor framer searches for 15 consecutive J0 bytes with a 0 in the most significant bit followed by a 1 in the most significant bit of the following J0 bytes. When this pattern is found, the framer goes into frame, J0_OOF=0 at this time. Once the J0 monitor framer is an intraframe, it stays in the frame until at least 1 most significant bit (MSB) bit error is received in 3 consecutive segment trace frames. If MII_RX_J0=0, the J0 frame indication section is constrained to the intraframe state, MII_J0_OOF=0. The MII_J0_OOF_D delta bit is set when MII_J0_OOF changes state.

2.1.2模式接收和比较2.1.2 Pattern reception and comparison

一旦在帧内,J0监控模块就查找3个连续的16字节(MII_RX_J0=1)或1个字节的段跟踪帧(MII_RX_J0=0)。当接收到3个连续相同的帧时,接收的帧就存入MII_RX_J0_[15:0]_[7:0](或在SONET模式下,存入MII_RX_J0[15][7:0])。接收的帧与这些寄存器的先期内容进行比较。当存储了一个新值时,就设置MII_RX_J0_D delta(变化)位。Once within a frame, the J0 monitoring module looks for 3 consecutive 16-byte (MII_RX_J0=1) or 1-byte segment trace frames (MII_RX_J0=0). When three consecutive identical frames are received, the received frame is stored in MII_RX_J0_[15:0]_[7:0] (or in SONET mode, stored in MII_RX_J0[15][7:0]). The received frame is compared with the previous contents of these registers. The MII_RX_J0_D delta (change) bit is set when a new value is stored.

2.2BIP-96(B2)校验2.2 BIP-96 (B2) verification

在下面B2的说明中,根据设备模式的不同(STS-3c),B2值略有变化。为了说明两种情况的运行,将利用以下约定来确定模式STS-3c的要求。EOS装置1校验接收的B2字节中正确的BIP-8值。(12[3]个B2字节组合在一起形成1个BIP-96[BIP-24])。除去TOH的最前3列(SONET中为SOH,SDH中为RSOH),对每帧的所有12[3]字节组计算BIP-96[BIP-24]偶数校验位。解扰之后对接收的数据进行计算,解扰之后将该值与下一帧的B2值进行比较。通过比较可以得到0到96[0到24]的不匹配(B2位错误)。每帧检测到的B2位错误数可以插入发送的M1字节。In the description of B2 below, the B2 value changes slightly depending on the device model (STS-3c). To illustrate the operation of both cases, the following conventions will be used to determine the requirements for mode STS-3c. The EOS device 1 checks for the correct BIP-8 value in the received B2 byte. (12[3] B2 bytes combined to form 1 BIP-96[BIP-24]). BIP-96 [BIP-24] even parity bits are calculated for all 12 [3] byte groups of each frame, except the first 3 columns of TOH (SOH in SONET and RSOH in SDH). The received data is calculated after descrambling, and the value is compared with the B2 value of the next frame after descrambling. A mismatch of 0 to 96 [0 to 24] can be obtained by comparison (B2 bit error). The number of B2 bit errors detected per frame can be inserted into the M1 bytes sent.

2.2.1B2错误计数2.2.1 B2 error count

ROS装置1包括一个20位的B2错误计数器,它对每个B2错误进行计数(当BIT_BLKCNT=0时)或对至少有一个B2错误的帧进行计数(当BIT_BLKCNT=1时)。当性能监控计数器被锁存时(LATCH_EVENT变成高电平),此计数器的值就由B2_ERRCNT[19:0]寄存器锁存,并清除B2错误计数器。如果从LATCH_EVENT的最后上升沿开始导致至少一个B2错误时,则设置B2错误第二事件位B2ERR_SECE,采用B2错误率门限模块。The ROS device 1 includes a 20-bit B2 error counter which counts each B2 error (when BIT_BLKCNT=0) or counts frames with at least one B2 error (when BIT_BLKCNT=1). When the performance monitoring counter is latched (LATCH_EVENT becomes high level), the value of this counter is latched by the B2_ERRCNT[19:0] register, and the B2 error counter is cleared. If at least one B2 error is caused from the last rising edge of LATCH_EVENT, the B2 error second event bit B2ERR_SECE is set, and the B2 error rate threshold module is used.

为了判定接收信号的误码率是否高于或低于两个规定的不同预定门限值(信号故障和信号衰减情况),EOS装置1提供了两个B2错误率门限模块。如果SF模块或SD模块判定错误率高于门限的话,就设置B2_ERR_SF或B2_ERR_SD。如果对应的错误率位改变了值的话,也设置delta位B2_ERR_SF_D或B2_ERR_SD_D。对于每种错误率门限模块,用户可以规定一个BLOCK寄存器和2对THRESH和GROUP寄存器。为了允许设置和清除状态位的滞后,每个错误率门限模块有1对THRESH和GROUP寄存器来设置状态,和1对THRESH和GROUP寄存器来清除状态。因此用于错误率门限模块的寄存器是In order to determine whether the bit error rate of the received signal is higher or lower than two different predetermined threshold values (signal failure and signal attenuation), the EOS device 1 provides two B2 error rate threshold modules. If the SF module or SD module judges that the error rate is higher than the threshold, set B2_ERR_SF or B2_ERR_SD. The delta bit B2_ERR_SF_D or B2_ERR_SD_D is also set if the corresponding error rate bit has changed value. For each error rate threshold module, users can specify a BLOCK register and 2 pairs of THRESH and GROUP registers. To allow hysteresis for setting and clearing the status bits, each error rate threshold block has 1 pair of THRESH and GROUP registers to set the status, and 1 pair of THRESH and GROUP registers to clear the status. So the registers for the error rate threshold block are

·当B2_ERR_SF=0,判定其是否应设置,使用:B2_BLOCK_SF[7:0],B2_THRESH_SET_SF[7:0],和B2_GROUP_SET_SF[5:0]When B2_ERR_SF=0, determine whether it should be set, use: B2_BLOCK_SF[7:0], B2_THRESH_SET_SF[7:0], and B2_GROUP_SET_SF[5:0]

·当B2_ERR_SF=1,判定其是否应清除,使用:B2_BLOCK_SF[7:0],B2_THRESH_CLR_SF[7:0],和B2_GROUP_CLR_SF[5:0]When B2_ERR_SF=1, determine whether it should be cleared, use: B2_BLOCK_SF[7:0], B2_THRESH_CLR_SF[7:0], and B2_GROUP_CLR_SF[5:0]

·当B2_ERR_SD=0,判定其是否应设置,使用:B2_BLOCK_SD[15:0],B2_THRESH_SET_SD[5:0],和B2_GROUP_SET_SD[5:0]When B2_ERR_SD=0, determine whether it should be set, use: B2_BLOCK_SD[15:0], B2_THRESH_SET_SD[5:0], and B2_GROUP_SET_SD[5:0]

·当B2_ERR_SD=1,判定其是否应清除,使用:B2_BLOCK_SD[15:0],B2_THRESH_CLR_SD[5:0],和B2_GROUP_CLR_SD[5:0]When B2_ERR_SD=1, determine whether it should be cleared, use: B2_BLOCK_SD[15:0], B2_THRESH_CLR_SD[5:0], and B2_GROUP_CLR_SD[5:0]

3.K1K2监控3. K1K2 monitoring

K1和K2字节是用于发送Line(线路)/MS AIS或RDI、及用于APS信令,通过监控该字节确定状态的改变。K1 and K2 bytes are used to send Line (line)/MS AIS or RDI, and for APS signaling, and determine the status change by monitoring this byte.

3.1 Line/MS AIS监控和LRDI的生成3.1 Line/MS AIS monitoring and LRDI generation

K2字节的3个LSB在线路/MS层上能够用作AIS或远端缺陷指示(RDI)。如果以“111”接收到K2_CONSEC[3:0]连续帧,就设置RX_LAIS,同时RX_LAIS_OUT输出为高位;如果K2_CONSEC[3:0]连续帧以“111”接收到,就清除RX_LAIS和RX_LAIS_OUT。当RX_LAIS状态改变时,就设置RX_LAIS_D delta位。The 3 LSBs of the K2 byte can be used as AIS or remote defect indication (RDI) at the line/MS layer. If K2_CONSEC[3:0] continuous frames are received with "111", RX_LAIS is set, and RX_LAIS_OUT output is high; if K2_CONSEC[3:0] continuous frames are received with "111", RX_LAIS and RX_LAIS_OUT are cleared. When the RX_LAIS state changes, the RX_LAIS_D delta bit is set.

3.2 Line/MS RDI监控3.2 Line/MS RDI monitoring

K2字节的3个LSB也可以用于监控K2_CONSEC[3:0]是以“110”连续接收还是连续不接收,发生这种情况时,就设置或清除RX_LRDI,当RX_LRDI改变状态时就设置RX_LRDI_D。The 3 LSBs of the K2 byte can also be used to monitor whether K2_CONSEC[3:0] is continuously receiving "110" or not receiving continuously. When this happens, set or clear RX_LRDI, and set RX_LRDI_D when RX_LRDI changes state .

3.3APS监控3.3APS monitoring

K1字节和K2字节的4个MSB是用于发送APS请求和信道数的,当在3个连续帧接收到同样的数值时,就将其写到RX_K1_[7:0]和RX_K2_[7:4]。然后将接收的值与寄存器原先的值进行比较,当出现一个新的12位值时,就设置RX_K1_D delta位。The 4 MSBs of the K1 byte and the K2 byte are used to send the APS request and the channel number. When the same value is received in 3 consecutive frames, it is written to RX_K1_[7:0] and RX_K2_[7 :4]. The received value is then compared with the previous value of the register, and the RX_K1_D delta bit is set when a new 12-bit value appears.

检查K1字节的稳定性。如果在12个连续帧中,没有3个连续帧以同样的K1字节接收到,就设置K1_UNSTAB位。当接收到连续3个相同的K1字节时就清除。如果K1_UNSTAB改变状态,就设置K1_UNSTAB_D delta位。K2的3位到0位包括APS模式信息。监控K2_CONSEC[3:0]的这些位以找出连续的同样值,出现上述情况时就写到RX_K2[3:0],除非K2字节的2位和1位为“11”(表示Line/MS AIS或RDI)。当写到RX_K2_[3:0]的为新值时,设置RX_K2_D delta位。Check the stability of the K1 byte. If out of 12 consecutive frames, no 3 consecutive frames are received with the same K1 byte, the K1_UNSTAB bit is set. Cleared when 3 consecutive identical K1 bytes are received. If K1_UNSTAB changes state, the K1_UNSTAB_D delta bit is set. Bits 3 to 0 of K2 include APS mode information. Monitor these bits of K2_CONSEC[3:0] to find the continuous same value, and write to RX_K2[3:0] when the above situation occurs, unless the 2 bits and 1 bits of the K2 byte are "11" (indicating Line/ MS AIS or RDI). When writing to RX_K2_[3:0] is a new value, set the RX_K2_D delta bit.

3个delta位MII_RX_K1_D、RX_K2_D以及MII_K1_UNSTAB_D均与APS监控有关,都能提供一个APS中断信号APS_INTB。此外,这些delta位还能提供标准的累加中断信号INTB。The three delta bits MII_RX_K1_D, RX_K2_D and MII_K1_UNSTAB_D are all related to APS monitoring and can provide an APS interrupt signal APS_INTB. Additionally, these delta bits provide the standard accumulation interrupt signal INTB.

3.4S1监控3.4S1 monitoring

监控接收到S1字节的4个LSB,在SONET模式下,MII_RX_SDH_S1=0,找出8个连续帧中的一致值,在SDH模式下,MII_RX_SDH_S1=1,找出3个连续帧中的一致值。当这些位包括相同的同步状态消息时,就将接收的值写到RX_S1[3:0],并将接收的值与该寄存器先前的值进行比较,当存储了一个新值时,就设置MII_RX_S1_D delta位。S1字节也用于消息故障检测。如果从LATCH_EVENT的最后一个上升沿开始没有消息能够满足上述有效准则(它是否与最后接收的值相同还是不同),就设置S1第二事件位S1_FAIL_SECE。Monitor the 4 LSBs of the received S1 byte. In SONET mode, MII_RX_SDH_S1=0, find the consistent value in 8 consecutive frames. In SDH mode, MII_RX_SDH_S1=1, find the consistent value in 3 consecutive frames . When these bits contain the same synchronization status message, the received value is written to RX_S1[3:0], and the received value is compared with the previous value of this register, when a new value is stored, MII_RX_S1_D is set delta bits. The S1 byte is also used for message failure detection. The S1 second event bit S1_FAIL_SECE is set if no message since the last rising edge of LATCH_EVENT satisfies the above validity criterion (whether it is the same or different from the last received value).

3.5 M1监控3.5 M1 monitoring

M1字节说明由远程终端在接收信号中检测的B2错误数。EOS装置1包含1个20位的M1错误计数器,当BIT_BLKCNT=0时,就计数由M1指示的每个错误;当BIT_BLKCNT=1时,就计数以M1接收的不等于0的每一帧。当MII_RX_SIG_MODE=1时,BIT_BLKCNT=0的M1的有效值范围是0到96;其他任何值都解释为0错误。当RX_SIG_MODE=0和BIT_BLKCNT=0时,M1的有效值范围是0到24;任何其他值都解释为0错误。当性能监控计数器被锁存时,该计数器的值是由M1_ERRCNT[19:0]寄存器锁存,并且清除M1错误计数器。The M1 byte specifies the number of B2 errors detected by the remote terminal in the received signal. The EOS device 1 includes a 20-bit M1 error counter. When BIT_BLKCNT=0, it counts every error indicated by M1; when BIT_BLKCNT=1, it counts every frame received with M1 not equal to 0. When MII_RX_SIG_MODE=1, the valid value range of M1 with BIT_BLKCNT=0 is 0 to 96; any other value is interpreted as 0 error. When RX_SIG_MODE=0 and BIT_BLKCNT=0, the valid value range of M1 is 0 to 24; any other value is interpreted as 0 error. When the performance monitoring counter is latched, the value of the counter is latched by the M1_ERRCNT[19:0] register, and the M1 error counter is cleared.

如果从LATCH_EVENT最后的上升沿开始已经有至少1个接收M1错误指示的话,就设置M1错误第二事件位M1 ERR SECE。If there has been at least one received M1 error indication since the last rising edge of LATCH_EVENT, the M1 error second event bit M1 ERR SECE is set.

4.传送开销分离(drop)4. Transmission overhead separation (drop)

TOH/SOH分离模块输出接收的E1、F1和E2字节,以及2个串行DCC信道。The TOH/SOH separation module outputs received E1, F1 and E2 bytes, and 2 serial DCC channels.

4.1指令线(E1和E2)和段用户信道(F1)4.1 Command line (E1 and E2) and segment user channel (F1)

3个串行输出MII_RX_E1_DATA、MII_RX_E2_DATA和MII_RX_F1_DATA包含接收的E1、E2和F1字节的值,同时提供单个带缺口的64kHz时钟参考输出(MII_RX_E1E2F1_CLK),在RX_FRAME_OUT上升沿之后,E1、E2和F1字节的MSB出现在第一个64kHz时钟周期(带缺口)。The 3 serial outputs MII_RX_E1_DATA, MII_RX_E2_DATA and MII_RX_F1_DATA contain the values of the received E1, E2 and F1 bytes while providing a single notched 64kHz clock reference output (MII_RX_E1E2F1_CLK), after the rising edge of RX_FRAME_OUT, the E1, E2 and F1 bytes The MSB appears on the first 64kHz clock cycle (notched).

4.2数据通信信道,DCC,(D1-D12)4.2 Data communication channel, DCC, (D1-D12)

TOH/SOH中定义了两个DCC。段/再生段DCC采用D1、D2和D3字节建立1个带缺口的192kb/s的信道,线路/复接段DCC采用D4到D12字节建立1个带缺口的576kb/s的信道。TOH/SOH分离模块通过2个串行信道输出DCC数据RX_SDCC_DATA和RX_LDCC_DATA。这些信道与输出MII_RX_SDCC_CLK和MII_RX_LDCC_CLK同步,DCC数据输出在RX_SDCC_CLK和RX_LDCC_CLK的下降沿改变。Two DCCs are defined in TOH/SOH. Section/regeneration section DCC uses D1, D2 and D3 bytes to establish a 192kb/s channel with gaps, and line/multiplex section DCC uses D4 to D12 bytes to establish a gapped 576kb/s channel. The TOH/SOH separation module outputs DCC data RX_SDCC_DATA and RX_LDCC_DATA through 2 serial channels. These channels are synchronized with the outputs MII_RX_SDCC_CLK and MII_RX_LDCC_CLK, and the DCC data output changes on the falling edge of RX_SDCC_CLK and RX_LDCC_CLK.

5.指针状态判定5. Pointer status determination

通过检查H1-H2字节来判定指针状态,建立STS-3c/AU-4接收指针态。Determine the pointer state by checking the H1-H2 bytes, and establish the STS-3c/AU-4 receiving pointer state.

5.1状态变化规则5.1 State change rules

在下列指针状态判定说明中,依据设备的模式(STS-3c),数目略有变化。为了说明两种情况的运行,将利用以下约定来确定模式(STS-3c)的要求:In the following pointer status determination descriptions, the numbers vary slightly depending on the model (STS-3c) of the device. To illustrate the operation of both cases, the following conventions will be utilized to determine the requirements of the mode (STS-3c):

第一对H1-H2字节包含STS-3c/AU-4指针,监控该字节对,它们可认为是下列3种状态中1种:The first pair of H1-H2 bytes contains the STS-3c/AU-4 pointer, monitor the byte pair, they can be considered as one of the following three states:

·正常(NORM=00)· Normal (NORM=00)

·告警指示信号(AIS=01)·Alarm indication signal (AIS=01)

·指针丢失((LOP=10)Lost pointer ((LOP=10)

剩余的11[2]对H1-H2字节用于监控正确级联指示。它们可认为是下列3种状态中1种:The remaining 11[2] pairs of H1-H2 bytes are used to monitor the correct concatenation indication. They can be considered as 1 of the following 3 states:

·级联(CONC=11)Cascading (CONC=11)

·告警指示信号(AISC=01)·Alarm indication signal (AISC=01)

·指针丢失(LOPC=10)Lost pointer (LOPC=10)

各自的状态存储于MII_PTR_STATE_[1:12]_[1:0][MII_PTR_STATE_[1:3]_[1:0]],这里MII_PTR_STATE_[i]_[1:0]表示第i对H1-H2字节的状态。然后,合并各对单独的H1-H2字节,确定STS-3c/AU-4指针状态。The respective states are stored in MII_PTR_STATE_[1:12]_[1:0][MII_PTR_STATE_[1:3]_[1:0]], where MII_PTR_STATE_[i]_[1:0] represents the i-th pair H1-H2 state of the byte. Then, combine the individual pairs of H1-H2 bytes to determine the STS-3c/AU-4 pointer status.

5.2 STS-3c/AU-4指针状态5.2 STS-3c/AU-4 pointer status

EOS装置1提供寄存器状态位MII_RX_PAIS和MII_RX_LOP,用于指示接收的STS-3c/AU-4指针的指针状态,它们可能为3种状态之一:EOS device 1 provides register status bits MII_RX_PAIS and MII_RX_LOP to indicate the pointer status of the received STS-3c/AU-4 pointer, which may be one of 3 states:

·正常(MII_RX_PAIS=0和RX_LOP=0)-MII_PTR_STATE_[1]_[1:0]为NORM(00),所有其他PTR_STATE_[i]_[1:0]为CONC(11)。• Normal (MII_RX_PAIS = 0 and RX_LOP = 0) - MII_PTR_STATE_[1]_[1:0] is NORM (00), all other PTR_STATE_[i]_[1:0] are CONC (11).

·通道/AU AIS(MII_RX_PAIS=1和RX_LOP=0)-所有PTR_STATE_[i]_[1:0]为AIS或AISC(01)。Channel/AU AIS (MII_RX_PAIS = 1 and RX_LOP = 0) - all PTR_STATE_[i]_[1:0] are AIS or AISC (01).

·指针丢失(MII_RX_PAIS=0和MII_RX_LOP=1)-所有其他情况(PTR_STATE_[i]_[1:0]值不能满足正常或通道/AU AIS标准)。Loss of pointer (MII_RX_PAIS = 0 and MII_RX_LOP = 1) - all other cases (PTR_STATE_[i]_[1:0] values do not meet normal or channel/AU AIS criteria).

MII_RX_PAIS和MII_RX_LOP信号提供通道远程故障指示(PRDI)。通过MII_RX_PAIS_D和MII_RX_LOP_D delta位指示状态位的改变。The MII_RX_PAIS and MII_RX_LOP signals provide channel remote fault indication (PRDI). Changes in status bits are indicated by the MII_RX_PAIS_D and MII_RX_LOP_D delta bits.

6.指针解释6. Pointer explanation

第一H1-H2字节对被解释为应用对SPE/VC的开始定位。指针解释规则如下:The first H1-H2 byte pair is interpreted as the application's start location for the SPE/VC. The pointer interpretation rules are as follows:

1.在正常运行期间,指针定位SPE/VC的开始。1. During normal operation, the pointer locates the start of the SPE/VC.

2.忽略当前接收到的指针的任何变化,除非连续3次接收到一个一致的新指针值,或者它先于规则3、4或5中的任何一条。任何连续3次接收到一致的新指针值优先于规则3或4。2. Ignore any change to the currently received pointer unless a consistent new pointer value is received 3 consecutive times, or it precedes any of rules 3, 4, or 5. Any consistent new pointer value received 3 consecutive times takes precedence over rules 3 or 4.

3.当MII_RX_SDH_PI=0,如果4位NDF位中至少3位匹配禁止指示(0110)以及10位指针值位中至少8位匹配当前接收到的其I位反转的指针,则指示一个正调整。认为跟在H3字节后的字节是正填充字节,当前接收到的指针值加1(模783)。3. When MII_RX_SDH_PI=0, if at least 3 of the 4 NDF bits match the disable indication (0110) and at least 8 of the 10 pointer value bits match the currently received pointer whose 1 bit is inverted, a positive adjustment is indicated . It is considered that the byte following the H3 byte is a positive filling byte, and the currently received pointer value is increased by 1 (modulo 783).

当MII_RX_SDH_PI=1,如果4位NDF位中至少3位匹配禁止指示(0110),指针值I-位中3位或更多位以及指针值D-位中2位或更少的位匹配当前接收到的其所有位反转的指针,并且接收到的SS-位是10或MII_RX_SS_EN=0,则指示一个正调整。认为跟在H3字节后的字节是正填充字节,当前接收到的指针值加1(模783)。When MII_RX_SDH_PI=1, if at least 3 of the 4 NDF bits match the disable indication (0110), 3 or more of the I-bits of the pointer value and 2 or less of the D-bits of the pointer value match the currently received A pointer with all its bits inverted and the received SS-bit is 10 or MII_RX_SS_EN=0 indicates a positive alignment. It is considered that the byte following the H3 byte is a positive filling byte, and the currently received pointer value is increased by 1 (modulo 783).

4.当MII_RX_SDH_PI=0,如果4位NDF位中至少3位匹配禁止指示(0110)以及10位指针值位中至少8位匹配当前接收到的其D位反转的指针,则指示一个负调整。H3字节被认为是负填充字节(它是SPE的一部分),当前接收到的指针值减1(模783)。4. When MII_RX_SDH_PI = 0, a negative adjustment is indicated if at least 3 of the 4 NDF bits match the disable indication (0110) and at least 8 of the 10 pointer value bits match the currently received pointer whose D bit is inverted . The H3 byte is considered a negative padding byte (it is part of the SPE) and the currently received pointer value is decremented by 1 (modulo 783).

当MII_RX_SDH_PI=1,如果4位NDF位中至少3位匹配禁止指示(0110),指针值D-位中3位或更多位以及指针值I-位中2位或更少的位匹配当前接收到的其所有位反转的指针,并且接收到的SS-位是10或MII_RX_SS_EN=0,则指示一个负调整。H3字节被认为是负填充字节(它是VC的一部分),当前接收到的指针值减1(模783)。When MII_RX_SDH_PI=1, if at least 3 of the 4 NDF bits match the disable indication (0110), 3 or more of the pointer value D-bits and 2 or less of the pointer value I-bits match the currently received A pointer with all its bits inverted and the received SS-bit is 10 or MII_RX_SS_EN=0 indicates a negative adjustment. The H3 byte is considered a negative padding byte (it is part of the VC) and the currently received pointer value is decremented by 1 (modulo 783).

5.当MII_RX_SDH_PI=0,如果4位NDF位中至少3位匹配禁止指示(1001),并且指针值在0到782之间,则接收到的指针替换当前接收到的指针值。5. When MII_RX_SDH_PI=0, if at least 3 of the 4 NDF bits match the prohibition indication (1001), and the pointer value is between 0 and 782, the received pointer replaces the currently received pointer value.

当MII_RX_SDH_PI=1,如果4位NDF位中至少3位匹配禁止指示(1001),指针值在0到782之间,并且接收到的SS-位是10或MII_RX_SS_EN=0,则接收到的指针替换当前接收到的指针值。When MII_RX_SDH_PI=1, if at least 3 of the 4 NDF bits match disable indication (1001), the pointer value is between 0 and 782, and the received SS-bit is 10 or MII_RX_SS_EN=0, then the received pointer replaces The currently received pointer value.

利用这些指针解释规则,指针解释器模块确定SPE/VC净荷和POH字节的位置。Using these pointer interpretation rules, the pointer interpreter module determines the location of the SPE/VC payload and POH bytes.

6.1指针处理6.1 Pointer handling

关于在EOS装置1中实现指针跟踪算法,请参考[G.783]和[GR-253]中的转换定义。指针跟踪状态机是基于ITU-T建议确定的指针跟踪状态机,它对Bellcore和ANSI标准一样有效。在Bellcore模式中,不出现从AIS到LOP的状态机转换(即通过设置BELLCORE位设置成逻辑1)。For the implementation of the pointer tracking algorithm in EOS device 1, please refer to the transition definitions in [G.783] and [GR-253]. The pointer tracking state machine is based on the pointer tracking state machine determined by the ITU-T recommendation, which is as valid for Bellcore as the ANSI standard. In Bellcore mode, there is no state machine transition from AIS to LOP (ie by setting the BELLCORE bit to logic 1).

EOS装置1使用了四个指针跟踪状态机,每个AU-4/STS-3c用一个。指针跟踪采用H11和H21字节,该指针从H1n和H2n字节的级联中提取,解释如下:EOS device 1 uses four pointer tracking state machines, one for each AU-4/STS-3c. Pointer tracking takes H11 and H21 bytes, the pointer is extracted from the concatenation of H1n and H2n bytes, explained as follows:

N=新数据标志位,在有效时=1001或0001/1101/1011/1000,在正常或失效时,它等于0110或1110/0010/0100/0111(即,可容忍单比特错误)。N=new data flag bit, when valid=1001 or 0001/1101/1011/1000, when normal or invalid, it is equal to 0110 or 1110/0010/0100/0111 (that is, single-bit error can be tolerated).

SS=指针跟踪状态机解释中的大小位,如果有效,通过将BELLCORE控制位设置为0。当BELLCORE设置为1时忽略这些位,但当它设置为0时,这些位为10。SS = Size bit in pointer tracking state machine interpretation, if valid, by setting the BELLCORE control bit to 0. These bits are ignored when BELLCORE is set to 1, but are 10 when it is set to 0.

I=增加位,定义为H1n的位7以及H2n的位1、3、5和7。I = Incremental bits, defined as bit 7 of H1n and bits 1, 3, 5 and 7 of H2n.

D=降低位,定义为H1n的位8以及H2n的位2、4、6和8。D = Lowered bits, defined as bit 8 of Hln and bits 2, 4, 6 and 8 of H2n.

负调整:反转的5个D-位,接收多数规则。通过将OR#Conf3中的正ITU位(Just ITU bit)设置为0,可启动[GR-253]的O3-92中10个对象中的8个。Negative adjustment: 5 D-bits inverted, receive majority rule. 8 of the 10 objects in O3-92 of [GR-253] can be enabled by setting the Just ITU bit to 0 in OR#Conf3.

正调整:反转的5个I-位,接收多数规则。通过将OR#Conf3中的正ITU位(Just ITU bit)设置为0,可启动[GR-253]的O3-92中10个对象中的8个。Positive justification: Inverted 5 I-bits, receive majority rule. 8 of the 10 objects in O3-92 of [GR-253] can be enabled by setting the Just ITU bit to 0 in OR#Conf3.

对STM-1/STS-3c运行模式,指针为一个二进制值,范围为0到782(十进制)。它是一个源自H1字节的两个最低有效位的10-位值,与级联的H2字节一同,形成一个偏离H3字节位置3个字节的偏置字段。例如,对STM-1信号,指针值为0表示VC-4在H3字节后3个字节位置处开始,而偏置87表示VC-4从K2字节后3个字节开始。For STM-1/STS-3c mode of operation, the pointer is a binary value ranging from 0 to 782 (decimal). It is a 10-bit value derived from the two least significant bits of the H1 byte, which, together with the concatenated H2 byte, form an offset field 3 bytes from the position of the H3 byte. For example, for an STM-1 signal, a pointer value of 0 indicates that VC-4 starts 3 bytes after the H3 byte, and an offset of 87 indicates that VC-4 starts 3 bytes after the K2 byte.

在STM-4/STS-12模式有4个字节-交错AU-4,因此有4个H1/H2字节对用于确定它们各自VC-4的开始(即,J1字节位置)。在这种情况下,4个指针跟踪状态机的运行等同于运行4×STM-1/STS-3c。In STM-4/STS-12 mode there are 4 bytes - interleaved AU-4, so there are 4 H1/H2 byte pairs used to determine the start of their respective VC-4 (ie J1 byte position). In this case, running 4 pointer tracking state machines is equivalent to running 4*STM-1/STS-3c.

在处理STS-12c/STM-4c时,宏1的指针跟踪状态机用于定位VC-4-4c的开始。使用H11和H21字节进行指针跟踪,指针从H11和H21字节级联中提取出来,指针解释如上面所述。但形成的偏置是一个12字节的计数值,其值从H3字节位置开始算起。例如,对STM-12c信号,指针值为0表示VC-4在H3字节后12个字节位置处开始,而偏置87表示VC-4从K2字节后12个字节开始。在相应宏(宏2-4)中也检查级联指示字节,根据[G.783]附件C中的每个状态机对应于LOP和HPAIS进行监控。下面的状态图说明了级联指示符的状态转换。转换定义请参考[G.783]。When processing STS-12c/STM-4c, the pointer tracking state machine of Macro 1 is used to locate the start of VC-4-4c. Use H11 and H21 bytes for pointer tracking, the pointer is extracted from the H11 and H21 byte concatenation, and the pointer interpretation is as described above. But the formed offset is a 12-byte count value whose value is counted from the H3 byte position. For example, for an STM-12c signal, a pointer value of 0 indicates that VC-4 starts 12 bytes after the H3 byte, and an offset of 87 indicates that VC-4 starts 12 bytes after the K2 byte. The concatenation indication byte is also checked in the corresponding macro (macro 2-4), monitored corresponding to LOP and HPAIS per state machine in Annex C of [G.783]. The state diagram below illustrates the state transitions of the cascade indicator. Please refer to [G.783] for conversion definition.

此外,8位计数器用来记录正和负调整事件,以及NDF事件。提供状态位用来指示负调整、正调整、NDF、无效指针、新指针和级联指示的检测。当进入上图中的LOP或LOPC态时,将在相关OR#IRQ2寄存器中设置LOP中断请求位。同样,如果进入了AIS或AISC态,将设置相关的HPAIS中断请求。In addition, 8-bit counters are used to record positive and negative adjustment events, as well as NDF events. Status bits are provided to indicate detection of negative justification, positive justification, NDF, invalid pointer, new pointer, and cascade indication. When entering the LOP or LOPC state in the above figure, the LOP interrupt request bit will be set in the relevant OR#IRQ2 register. Similarly, if the AIS or AISC state is entered, the relevant HPAIS interrupt request will be set.

处理完指针后,连接指针处理单元10和解扰单元11的FIFO单元(未示出)将SDH/SONET帧(如155.520Mb/s)转换成LAPS帧(如155.520Mb/s),用PLL来完成该动作。After processing the pointer, the FIFO unit (not shown) connecting the pointer processing unit 10 and the descrambling unit 11 converts the SDH/SONET frame (such as 155.520Mb/s) into a LAPS frame (such as 155.520Mb/s), and uses the PLL to complete the action.

7.通道开销监控7. Channel overhead monitoring

POH(通道开销)监控模块由J1、B3、C2和G1监控组成。这些通道开销字节用于监控状态中的错误或变化。The POH (path overhead) monitoring module consists of J1, B3, C2 and G1 monitoring. These channel overhead bytes are used to monitor for errors or changes in state.

7.1通道跟踪(J1)捕获/监控7.1 Channel Tracking (J1) Capture/Monitoring

通过插入J1字节,EOS装置1支持两种通道跟踪(J1)捕获方法。第一种主要用于SONET,在STS-3c/AU-4中捕获64个连续的J1字节。第二种用于SDH,查找重复的16个连续的J1字节模式。当在3个连续事件中检测到一致的16字节模式时,J1模式存储在指定的寄存器中。By inserting the J1 byte, the EOS device 1 supports two channel trace (J1) capture methods. The first is mainly used in SONET, capturing 64 consecutive J1 bytes in STS-3c/AU-4. The second, for SDH, looks for repeated patterns of 16 consecutive J1 bytes. When a consistent 16-byte pattern is detected in 3 consecutive events, the J1 pattern is stored in the specified register.

7.1.1SONETJ1捕获7.1.1 SONETJ1 Capture

当MII_RX_SDH_J1=0(SONET模式),EOS装置1能提供捕获通道跟踪消息样本。当J1_CAP从0转换成1,EOS装置1从特定分机连续捕获64个J1字节,将它们写到MII_RX_J1_[63:0]_[7:0]。When MII_RX_SDH_J1 = 0 (SONET mode), the EOS device 1 can provide capture channel trace message samples. When J1_CAP transitions from 0 to 1, EOS device 1 continuously captures 64 J1 bytes from the specified extension and writes them to MII_RX_J1_[63:0]_[7:0].

SONET中没有定义通道跟踪帧结构,但GR-253确实建议一个64字节的序列,该序列由一串ASCII字符组成,空字符(00)填充了62字节,结束为<CR>(0D)和<LF>(0A)字节。如果设置了J1_CRLF位,则EOS装置1捕获在J1字节位置中所接收的以{0A,0D}结束的第一个64字节字符串。如果J1_CRLF=0,EOS装置1捕获接下来的64字节的J1字节,不考虑它们的内容。一旦完成捕获,EOS装置1设置J1_CAP_E事件位。There is no channel trace frame structure defined in SONET, but GR-253 does suggest a 64-byte sequence consisting of a string of ASCII characters with a null character (00) filling the 62 bytes and ending with <CR> (0D) and <LF> (0A) bytes. If the J1_CRLF bit is set, the EOS device 1 captures the first 64-byte string received in the J1 byte position ending with {OA, 0D}. If J1_CRLF=0, the EOS device 1 captures the next 64 bytes of J1 bytes regardless of their content. Once the capture is complete, the EOS device 1 sets the J1_CAP_E event bit.

7.1.216字节J1监控7.1.2 16 byte J1 monitoring

如果MII_RX_SDH_J1=1(一般用于SDH模式),J1字节可望包含一个重复的16字节包括PAPI的通道跟踪帧。在这种模式中,不使用J1_CAP、J1_CRLF和J1_CAP_E位。J1监控包括自动跟踪16字节通道跟踪帧开始、检查接收通道跟踪帧值以找出与3个连续帧匹配一致的值。当接收到一个一致的帧值时,把它写到MII_RX_J1_[15:0]_[7:0]。通道跟踪帧的第一个字节(它包括帧起始标志)写到MII_RX_J1_[15]_[7:0]。If MII_RX_SDH_J1=1 (generally used in SDH mode), the J1 byte is expected to contain a repeated 16-byte channel trace frame including PAPI. In this mode, the J1_CAP, J1_CRLF and J1_CAP_E bits are not used. J1 monitoring includes automatic tracking of the 16-byte channel trace frame start, checking the receive channel trace frame value to find a value that matches 3 consecutive frames. When a consistent frame value is received, it is written to MII_RX_J1_[15:0]_[7:0]. The first byte of the channel trace frame (which includes the frame start flag) is written to MII_RX_J1_[15]_[7:0].

成帧.除帧起始标志字节的MSB外,所有通道跟踪帧字节的最高有效位均为0。J1监控器成帧器搜索15个连续J1字节,该字节最高有效位中具有0,后接最高有效位中具有1的J1字节。一旦搜索到这种模式,成帧器进入帧内,此时J1_OOF=0。一旦J1监控器成帧器为内帧,它便一直留在帧内直到接收到至少有1个最高有效位(MSB)位错误的3个连续通道跟踪帧中。(在SONET模式,J1帧指示保留在内帧状态,J1_OOF=0)。如果J1_OOF状态改变,则设置J1_OOF_D delta位。Framing. All channel trace frame bytes have the most significant bit set to 0 except for the MSB of the start-of-frame flag byte. The J1 monitor framer searches for 15 consecutive J1 bytes with a 0 in the most significant bit followed by a J1 byte with a 1 in the most significant bit. Once this pattern is found, the framer enters the frame, J1_OOF=0 at this time. Once the J1 monitor framer is intra-framed, it remains in-frame until it receives 3 consecutive channel trace frames with at least 1 most significant bit (MSB) bit error. (In SONET mode, the J1 frame indication remains in the intraframe state, J1_OOF=0). If the J1_OOF state changes, the J1_OOF_D delta bit is set.

模式接收和比较.一旦在帧内,J1监控模块查找3个连续的16字节的通道跟踪帧。当接收到3个连续相同的帧时,接收的帧就存入MII_RX_J1_[15:0]_[7:0]。Pattern reception and comparison. Once within the frame, the J1 monitoring module looks for 3 consecutive 16-byte channel trace frames. When 3 consecutive identical frames are received, the received frames are stored in MII_RX_J1_[15:0]_[7:0].

接收的帧与这些寄存器的先期内容进行比较,当存储了一个新值时,就设置RX_J1_D的delta位。The received frame is compared with the previous contents of these registers, and when a new value is stored, the delta bit of RX_J1_D is set.

7.2.BIP-8(B3)校验7.2.BIP-8(B3) verification

EOS装置1检查接收到的B3字节中正确的BIP-8值。通过对每帧SPE/VC(包括POH)中所有位计算BIP-8的偶数奇偶校验位。然后这些值与下一帧中接收到的B3值进行比较。比较的结果可能会是0到8不匹配(B3位错误),将该值插入到发送端G1字节中。The EOS device 1 checks for the correct BIP-8 value in the received B3 byte. By calculating the even parity bits of BIP-8 for all bits in each frame SPE/VC (including POH). These values are then compared with the B3 value received in the next frame. The result of the comparison may be 0 to 8 mismatches (B3 bit error), this value is inserted into the sender G1 byte.

EOS装置1包含一个16位B3错误计数器,该计数器对每个B3位错误(如果BIT_BLKCNT=0)或者至少有一个B3位错误(如果BIT_BLKCNT=1)的每个帧进行计数。当性能监控计数器被锁定时(LATCH_EVENT向高位转换),该计数器的值锁定到B3ERRCNT_[15:0]寄存器,清除B3错误计数器。如果自LATCH_EVENT最后上升沿开始已至少有一个B3错误,则设置B3错误二次事件位B3ERR_SECE。The EOS device 1 contains a 16-bit B3 error counter which counts every B3 bit error (if BIT_BLKCNT=0) or every frame with at least one B3 bit error (if BIT_BLKCNT=1). When the performance monitoring counter is locked (LATCH_EVENT transitions to a high bit), the value of the counter is locked to the B3ERRCNT_[15:0] register, and the B3 error counter is cleared. If there has been at least one B3 error since the last rising edge of LATCH_EVENT, the B3 Error Secondary Event bit B3ERR_SECE is set.

7.3.信号标签(C2)监控7.3. Signal tag (C2) monitoring

对接收到的C2字节进行监控,从而可确认接收到正确的净荷类型。在5个连续帧上接收到一致的C2值时,将接收到的值写到MII_RX_C2[7:0]中。当接收到一个新的C2值,设置MII_RX_C2D的delta位。The received C2 bytes are monitored to confirm that the correct payload type is received. When a consistent C2 value is received over 5 consecutive frames, write the received value into MII_RX_C2[7:0]. When a new C2 value is received, the delta bit of MII_RX_C2D is set.

接收到的C2的预期值留在EXP_C2[7:0]中。如果当前接收到的值与预期值不匹配,接收到的值也不符合以下条件则将净荷标签不匹配寄存器位MII_RX_PLM设置为高位:The received expected value of C2 is left in EXP_C2[7:0]. If the currently received value does not match the expected value, and the received value does not meet the following conditions, set the payload label mismatch register bit MII_RX_PLM to high:

●全部为0,没准备的标签;●All 0, unprepared label;

●01(十六进制),准备的非特定标签;01 (hexadecimal), prepared non-specific label;

●FC(十六进制),有净荷缺陷标签;● FC (hexadecimal), with a payload defect label;

●FF(十六进制),保留标签。● FF (hexadecimal), reserved label.

如果当前接收到的值是无标签、全部为零,EXP_C2!=00(十六进制),则未准备的寄存器位(Unequipped registerbit)MII_RX_UNEQ设置为高位。If the currently received value is untagged, all zeros, EXP_C2! = 00 (hexadecimal), then the unequipped register bit (Unequipped register bit) MII_RX_UNEQ is set to high.

MII_RX_PLM和MII_RX_UNEQ信号供通道RDI在发送端插入。当MII_RX_PLM或MII_RX_UNEQ改变其状态时,设置MII_RX_PLM或MII_RX_UNEQ delta位。MII_RX_PLM and MII_RX_UNEQ signals for channel RDI to insert on the transmit side. The MII_RX_PLM or MII_RX_UNEQ delta bit is set when MII_RX_PLM or MII_RX_UNEQ changes its state.

7.4.通道状态(G1)监控7.4. Channel status (G1) monitoring

G1监控包括通道REI监控和通道RDI监控。G1 monitoring includes channel REI monitoring and channel RDI monitoring.

7.4.1.通道REI监控7.4.1. Channel REI monitoring

通道状态字节的位1到位4(4个最高有效位)指示远程终端在其接收到的信号中检测到的B3错误数。只有在0到8间的二进制值是合法的。如果接收到的值大于8,将其解释为0错误(正如GR-253和ITU-T建议G.707所规定的一样)。EOS装置1包含一个16位的G1错误计数器,它计算G1指示的每个错误(如果BIT_BLKCNT=0)、或者接收到的头4个G1位不等于0的每个帧(如果BIT_BLKCNT=1)。当性能监控计数器被锁定时(LATCH_EVENT转换成高位),该计数器的值赋给G1_ERRCNT[15:0]寄存器,清空G1错误计数器。Bits 1 through 4 (the 4 most significant bits) of the Channel Status Byte indicate the number of B3 errors detected by the remote terminal in the signal it received. Only binary values between 0 and 8 are legal. If a value greater than 8 is received, it is interpreted as a 0 error (as specified in GR-253 and ITU-T Recommendation G.707). The EOS device 1 contains a 16-bit G1 error counter which counts every error indicated by G1 (if BIT_BLKCNT=0), or every frame received for which the first 4 G1 bits are not equal to 0 (if BIT_BLKCNT=1). When the performance monitoring counter is locked (LATCH_EVENT transitions to high), the value of the counter is assigned to the G1_ERRCNT[15:0] register, and the G1 error counter is cleared.

如果自LATCH_EVENT的最后上升沿以来已至少有一个接收到的G1错误指示,则设置G1错误第二次事件位G1ERR_SECE。The G1 Error Second Event bit G1ERR_SECE is set if there has been at least one received G1 error indication since the last rising edge of LATCH_EVENT.

7.4.2通道RDT监控7.4.2 Channel RDT monitoring

如果MII_RX_PRDI5=1,则EOS装置1可监控G1的第5位(RDI-P指示符);如果MII_RX_PRDI5=0,则可监控G1的第5、6和7位(增强RDI-P指示符)。监控过程包括检查G1_CONSEC[3:0]监控位的连续接收值中完全相同的值。当接收到完全相同的值,G1个5、6和7位写到MII_RX_G1[2:0]。接收值与该寄存器前面的值进行比较(所有3位都被写到,但如果MII_RX_PRDI5=1,只将G1的第5位和MUU_RX_G1[2]进行比较)。当存储一个新值时,设置MII_RX_G1_D delta位。If MII_RX_PRDI5=1, the EOS device 1 can monitor bit 5 of G1 (RDI-P indicator); if MII_RX_PRDI5=0, it can monitor bits 5, 6 and 7 of G1 (enhanced RDI-P indicator). The monitoring process includes checking for identical values in consecutive received values of the G1_CONSEC[3:0] monitoring bits. When the exact same value is received, bits 5, 6 and 7 of G1 are written to MII_RX_G1[2:0]. The received value is compared with the previous value of this register (all 3 bits are written, but if MII_RX_PRDI5=1, only bit 5 of G1 is compared with MUU_RX_G1[2]). When storing a new value, the MII_RX_G1_D delta bit is set.

7.5.其他POH字节7.5. Other POH bytes

EOS装置1对POH剩下的其他字节不予监控。这些字节包括通道用户信道(F2)、位置指示符(H4)、通道增长/用户信道(Z3/F3)、通道增长/通道APS信道(Z4/K3)以及前后连接监控(Z5/N1)字节。The EOS device 1 does not monitor the remaining bytes of the POH. These bytes include channel user channel (F2), location indicator (H4), channel growth/user channel (Z3/F3), channel growth/channel APS channel (Z4/K3), and front and rear connection monitoring (Z5/N1) words Festival.

8.接收净荷解扰8. Receive payload descrambling

从SONET/SDH信号中提取净荷后,净荷数据用自同步X43+1解扰器进行解扰。在所有模式中,寄存器MII_RX_DSCR_INH控制解扰器的运行。当MII_RX_DSCR_INH=0(缺省),解扰器正常工作。当MII_RX_DSCR_INH=1,解扰器禁止工作。After extracting the payload from the SONET/SDH signal, the payload data is descrambled with a self-synchronous X 43 +1 descrambler. In all modes, the register MII_RX_DSCR_INH controls the operation of the descrambler. When MII_RX_DSCR_INH=0 (default), the descrambler works normally. When MII_RX_DSCR_INH=1, the descrambler is disabled.

EOS装置1提供一个基于如下生成多项式X43+1的自同步解扰器。The EOS device 1 provides a self-synchronizing descrambler based on the generator polynomial X 43 +1 as follows.

9.接收LAPS处理9. Receive LAPS processing

在此处SPE已从SONET/SDH帧中提取,然后进入LAPS处理器做进一步的处理。在EOS模式下(MII_RX_EOS=1),LAPS处理过程为从SPE中提取LAPS包/帧。Here the SPE has been extracted from the SONET/SDH frame, and then enters the LAPS processor for further processing. In EOS mode (MII_RX_EOS=1), the LAPS processing process is to extract LAPS packets/frames from the SPE.

9.1 LAPS成帧器9.1 LAPS framer

在EOS模式下(MII_RX_EOS=1),通过识别帧起始/结束的标志序列(0x7e),从SPE净荷中提取LAPS帧。In EOS mode (MII_RX_EOS=1), the LAPS frame is extracted from the SPE payload by identifying the frame start/end flag sequence (0x7e).

EOS装置1检查净荷中的每个八位组,当位模式为0x7e的八位组被检查到时,EOS装置1就认为这是1个包的起始/结束,然后检查标志序列后的八位组。如果仍为0x7e,则认为它们是用于填充包间间隙的标志序列,并将其丢弃。跟随起始标志序列、且不等于0x7e的第一个八位组被认为是LAPS帧的第一个八位组。在帧起始标志之后,EOS装置1继续检查净荷的每个八位组,查找标志序列。如果找到了位模式0x7e位置,且其前面的八位组为控制转义码(0x7d),则此帧中止;否则,就认为是当前帧的正常结尾。在FCS字段的终止被禁止的特殊情况下,必须在帧信号之间检测最小量为2个标志序列。EOS device 1 checks each octet in the payload. When the octet with the bit pattern of 0x7e is detected, EOS device 1 thinks that this is the beginning/end of a packet, and then checks the octet after the flag sequence octet. If they are still 0x7e, they are considered to be flag sequences used to fill gaps between packets and discarded. The first octet following the start flag sequence and not equal to 0x7e is considered to be the first octet of the LAPS frame. After the start of frame flag, the EOS device 1 continues to check each octet of the payload, looking for the flag sequence. If the bit pattern 0x7e position is found and the preceding octet is a control escape code (0x7d), the frame is aborted; otherwise, it is considered to be the normal end of the current frame. In the special case where termination of the FCS field is disabled, a minimum of 2 marker sequences must be detected between frame signals.

9.2透明字节填充的删除9.2 Removal of transparent byte padding

9.3.1 EOS模式9.3.1 EOS mode

在EOS模式(MII_RX_EOS=1),在LAPS帧之后,EOS装置1将透明字节填充过程反过来,以恢复原始包信息流。FIFO下溢字节序列是由发送端在FIFO下溢过程中插入的,如果MII_RX_EOS_FIFOUNDR_MODE=1,则在透明处理过程中需要检测出,并删除。该缺省值被禁止:MII_RX_EOS_FIFOUNDR_MODE=0。特殊的FIFO下溢字节码可以利用寄存器MII_RX_EOS_FIFOUNDR_BYTE[7:0]编程。In EOS mode (MII_RX_EOS=1), after the LAPS frame, the EOS device 1 reverses the transparent byte stuffing process to restore the original packet flow. The FIFO underflow byte sequence is inserted by the sender during the FIFO underflow process. If MII_RX_EOS_FIFOUNDR_MODE=1, it needs to be detected and deleted during transparent processing. The default value is disabled: MII_RX_EOS_FIFOUNDR_MODE=0. The special FIFO underflow bytecode can be programmed using register MII_RX_EOS_FIFOUNDR_BYTE[7:0].

9.3.2下溢字节删除9.3.2 Underflow byte deletion

在EOS模式下,如果MII_RX_EOS_FIFOUNDR_MODE=1,匹配FIFO下溢字节(MII_RX_EOS_FIFOUNDR_BYTE[7:0])的字节如果其后没有紧跟控制转义码(0x7d)则被丢弃。In EOS mode, if MII_RX_EOS_FIFOUNDR_MODE=1, the byte matching the FIFO underflow byte (MII_RX_EOS_FIFOUNDR_BYTE[7:0]) is discarded if it is not followed by the control escape code (0x7d).

9.4错误帧9.4 Error frame

在EOS模式下(MII_RX_EOS=1),利用1个特殊的字节编码(0x7d7e)来指明该帧已被中止。如果接收到此字节码,含此字节码的帧就被中止。不将更多的八位组送入FIFO;如果该包是发送到链路层设备的,则标记为错误。In EOS mode (MII_RX_EOS=1), a special byte code (0x7d7e) is used to indicate that the frame has been aborted. If this bytecode is received, the frame containing this bytecode is aborted. No more octets are put into the FIFO; if the packet was sent to a link-layer device, it is marked as an error.

EOS装置1包括1个8位错误计数器,对其中检测到中止序列的每个包进行计数。当性能监控的计数器被锁存时(LATCH_EVENT变成高电平),该计数器的值由寄存器MII_RX_EOS_PABORT_ERRCNT[7:0]锁存,并清除包中止错误计数器。The EOS device 1 includes an 8-bit error counter that counts each packet in which an abort sequence is detected. When the performance monitoring counter is latched (LATCH_EVENT becomes high level), the value of the counter is latched by the register MII_RX_EOS_PABORT_ERRCNT[7:0], and the packet abort error counter is cleared.

如果从LATCH_EVENT的最后1个上升沿已导致至少1个包中止错误,则需设置包中止错误第二事件位MII_RX EOS_PABORT ERR_SECE。If at least 1 packet abort error has been caused from the last rising edge of LATCH_EVENT, the packet abort error second event bit MII_RX EOS_PABORT ERR_SECE needs to be set.

作为一种替换方案,也可以通过反转FCS字节来中止1个包。这对于EOS装置1接收LAPS处理器来说仅是1种FCS错误。其处理过程,如下段说明。As an alternative, it is also possible to abort 1 packet by inverting the FCS byte. This is only 1 type of FCS error for the EOS device 1 to receive the LAPS processor. Its processing process is described in the following paragraphs.

作为一种选项,EOS装置1也可以将包视为错误包,并因此根据其是否违反最小或最大包规定,而进行标记。包的大小只是指从EOS装置1出来的包大小,不包括去掉的标志序列、地址字节、控制字节、透明字节、FIFO下溢字节和FCS字节。通过管理接口可以对这些最小和最大长度编程。寄存器MII_RX_EOS_PMIN[3:0]包含最小包长,该寄存器的缺省值是0;寄存器MII_ RX_EOS_PMAX[15:0]含有最大长度,该寄存器的缺省值是0x05E0。As an option, the EOS device 1 can also treat packets as error packets and thus flag them according to whether they violate minimum or maximum packet regulations. The size of the packet refers only to the size of the packet coming out of the EOS device 1, excluding the removed flag sequence, address byte, control byte, transparent byte, FIFO underflow byte and FCS byte. These minimum and maximum lengths are programmable through the management interface. The register MII_RX_EOS_PMIN[3:0] contains the minimum packet length, and the default value of this register is 0; the register MII_RX_EOS_PMAX[15:0] contains the maximum length, and the default value of this register is 0x05E0.

当通过管理接口发指令时,EOS装置1可使最小和最大长度校验功能有效/无效。寄存器MII_RX_EOS_PMIN_ENB和MII_RX_EOS_PMAX_ENB(两个缺省值均为0)控制如何处理对最小和最大包长的违反,当任何一个寄存器设置为1时,任何违反对应的包长规定,都会标记为错误。When commanded through the management interface, the EOS device 1 can enable/disable the minimum and maximum length check functions. The registers MII_RX_EOS_PMIN_ENB and MII_RX_EOS_PMAX_ENB (both default values are 0) control how to deal with violations of the minimum and maximum packet lengths. When any register is set to 1, any violation of the corresponding packet length will be marked as an error.

EOS装置1包括两个8位错误计数器,对每个违反最小和最长包长限制的违例进行计数。当性能监控计数器被锁存时(LATCH_EVENT变为高电平),这些计数器值由寄存器MII_RX_EOS_PMIN_ERRCNT[7:0]和MII_RX_EOS_PMAX_ERRCNT[7:0]锁存,并清除包违例计数器。The EOS device 1 includes two 8-bit error counters, counting each violation of the minimum and maximum packet length constraints. When the performance monitoring counters are latched (LATCH_EVENT goes high), these counter values are latched by registers MII_RX_EOS_PMIN_ERRCNT[7:0] and MII_RX_EOS_PMAX_ERRCNT[7:0], and the packet violation counters are cleared.

如果从LATCH_EVENT的最后上升沿开始已导致至少1个包大小违例错误的话,就设置合适的包长违例第二事件位MII_RX_EOS_PMIN_ERR_SECE或MII_RX_EOS_PMAX_ERR_SECE。If at least 1 packet size violation error has been caused since the last rising edge of LATCH_EVENT, the appropriate packet size violation second event bit MII_RX_EOS_PMIN_ERR_SECE or MII_RX_EOS_PMAX_ERR_SECE is set.

9.5帧校验序列(FCS)字段9.5 Frame Check Sequence (FCS) Field

在EOS模式下(MII_RX_EOS=1),计算出FCS,并在每帧的结尾处对FCS字节进行检查。该选项由寄存器MII_RX_EOS_FCS_INH控制,值MII_RX_EOS_FCS_INH=0时FCS有效;值MII_RX_EOS_FCS_INH=1时FCS无效。仅采用32位的校验序列(CRC-32)。MII_RX_EOS_FCS_MODE=0使设备运行为FCS-32模式。In EOS mode (MII_RX_EOS=1), the FCS is calculated and the FCS bytes are checked at the end of each frame. This option is controlled by the register MII_RX_EOS_FCS_INH. When the value MII_RX_EOS_FCS_INH=0, the FCS is valid; when the value MII_RX_EOS_FCS_INH=1, the FCS is invalid. Only a 32-bit check sequence (CRC-32) is used. MII_RX_EOS_FCS_MODE=0 makes the device operate in FCS-32 mode.

EOS装置1提供CRC-32功能,采用生成多项式为:1+x+x2+x4+x5+x7+x8+x10+x11+x12+x16+x22+x23+x26+x32。对除标志序列和FCS字段自己本身外的所有帧码位计算FCS字段。EOS device 1 provides CRC-32 function, using generator polynomial as: 1+x+x 2 +x 4 +x 5 +x 7 +x 8 +x 10 +x 11 +x 12 +x 16 +x 22 + x 23 +x 26 +x 32 . The FCS field is calculated for all frame code points except the flag sequence and the FCS field itself.

如果MII_RX_EOS_FCS_BIT_ORDR=0(缺省值),采用高有效位(先为MSB)次序将接收的信号读进移位寄存器;如果MII_RX_EOS_FCS_BIT_ORDR=1,采用低有效位(首先为LSB)次序将接收的信号读进移位寄存器。无论是那种情况,FCS计算后,数据都是采用高有效位进行存储,以便处理。If MII_RX_EOS_FCS_BIT_ORDR=0 (default value), the received signal is read into the shift register in the order of the most significant bit (MSB first); if MII_RX_EOS_FCS_BIT_ORDR=1, the received signal is read in the order of the least significant bit (LSB first) into the shift register. In either case, after the FCS is calculated, the data is stored in the most significant bits for processing.

得到的FCS结果值与接收到的FCS字段值进行比较,如果检测到错误,就告知管理控制接口,对应的计数器加1,FIFO中包的最后1个字标记为错误。EOS装置1包含一个20位的FCS错误计数器,对每个FCS CRC违例进行计数。当性能监控计数器被锁存时(LATCH_EVENT变为高电平),该计数器的值由寄存器MII_RX_EOS_FCS_ERRCNT[19:0]锁存,并清除FCS错误计数器。The obtained FCS result value is compared with the received FCS field value. If an error is detected, the management control interface is notified, the corresponding counter is incremented by 1, and the last word of the packet in the FIFO is marked as an error. EOS device 1 contains a 20-bit FCS error counter that counts each FCS CRC violation. When the performance monitoring counter is latched (LATCH_EVENT becomes high level), the value of the counter is latched by the register MII_RX_EOS_FCS_ERRCNT[19:0], and the FCS error counter is cleared.

如果从LATCH_EVENT的最后上升沿开始已导致至少1个FCS错误,则设置FCS错误第二事件位MII_RX_EOS_FCS_ERR_SECE。If at least 1 FCS error has been caused since the last rising edge of LATCH_EVENT, the FCS Error Second Event bit MII_RX_EOS_FCS_ERR_SECE is set.

FCS校验后,终止FCS字节(它们没有存储到FIFO)。如果通过管理接口禁止FCS校验的话,最后2或4个字节就发送到FIFO。假定检测到一个FCS错误,当发送到链路层设备时,标记包为错误(RX_ERR)。After the FCS check, terminate the FCS bytes (they are not stored to the FIFO). The last 2 or 4 bytes are sent to the FIFO if FCS checking is disabled through the management interface. Assuming an FCS error is detected, the packet is marked as errored (RX_ERR) when sent to the link layer device.

9.6LAPS帧终止9.6 LAPS Frame Termination

在EOS模式(MII_RX_EOS=1)下,FCS计算之后,监控下列LAPS字节,并选择性地终止。In EOS mode (MII_RX_EOS=1), after FCS calculation, the following LAPS bytes are monitored and optionally terminated.

9.6.1标志序列9.6.1 Flag sequence

所有用于帧描绘和内帧填充目的而出现的标志序列都被删除。帧信息的起始和结束标志仍由EOS装置1保留,通过RX_SOP和RX_EOP信号发送给链路层。All flag sequences present for frame delineation and intraframe filling purposes are removed. The start and end flags of the frame information are still reserved by the EOS device 1 and sent to the link layer through the RX_SOP and RX_EOP signals.

9.6.2地址和控制字节9.6.2 Address and Control Bytes

地址和控制字节(跟随标志序列的LAPS帧中的前两个字节)是由EOS装置1监控,监控包括检查有效地址字段和控制字段(0xFF03)。如果检测到不匹配,就认为该字段是压缩的,不发送出去。如果检测到无效值,这两个字节不被分离,通过MII接口传递到链路层。通过设置MII_RX_EOS_ADRCTL_INVALID=1告知管理控制接口检测到无效地址和控制字段。通过设置MII_RX_EOS_ADRCTL_INVALID_D的相应delta位为1,表示MII_RX_EOS_ADRCTL_INVALID的状态发生改变。The address and control bytes (the first two bytes in the LAPS frame following the flag sequence) are monitored by the EOS device 1, which includes checking the valid address field and the control field (0xFF03). If a mismatch is detected, the field is considered compressed and not sent. If an invalid value is detected, the two bytes are not separated and passed to the link layer through the MII interface. The management control interface is notified of the detection of an invalid address and control field by setting MII_RX_EOS_ADRCTL_INVALID=1. By setting the corresponding delta bit of MII_RX_EOS_ADRCTL_INVALID_D to 1, it indicates that the state of MII_RX_EOS_ADRCTL_INVALID has changed.

如果检测到有效地址和控制字段,EOS装置1就终止这两个字节,不传递到RX FIFO。通过设置MII_RX_EOS_ADRCTL_DROP_INH=1,可以禁止删除有效地址和控制字节。该寄存器的缺省值为0(自动分离有效)。If a valid address and control field is detected, the EOS device 1 terminates these two bytes without passing to the RX FIFO. By setting MII_RX_EOS_ADRCTL_DROP_INH = 1, the effective address and control bytes can be prohibited from being deleted. The default value of this register is 0 (automatic separation is valid).

9.6.3 FCS字节9.6.3 FCS bytes

如在FCS一节中提到的,EOS装置1也可以终止4个FCS字节。如果通过管理控制接口(MII_RX_EOS_FCS_INH=1)禁止FCS校验,终止功能也被禁止,LAPS帧最后4个字节就发送到链路层。As mentioned in the FCS section, EOS device 1 may also terminate with 4 FCS bytes. If the FCS check is prohibited through the management control interface (MII_RX_EOS_FCS_INH=1), the termination function is also prohibited, and the last 4 bytes of the LAPS frame are sent to the link layer.

10接收FIFO接口10 Receive FIFO interface

10.1系统端包环回10.1 System side packet loopback

EOS装置1通过系统接口为用户提供环回接受的包功能。The EOS device 1 provides the user with the function of loopback receiving packets through the system interface.

当SYS_T_TO_R_LOOP=1,从链路层设备接收的包从发送FIFO直接路由到接收FIFO,再输出回始发信元数据的链路层设备。当SYS_T_TO_R_LOOP设置为0时,在SONET/SDH链路信号内接收的包,发送到接收FIFO,然后输出到系统接口。When SYS_T_TO_R_LOOP=1, the packet received from the link layer device is directly routed from the sending FIFO to the receiving FIFO, and then output back to the link layer device that originally sent the cell data. When SYS_T_TO_R_LOOP is set to 0, packets received within the SONET/SDH link signal are sent to the receive FIFO and then output to the system interface.

10.2FIFO处理过程10.2 FIFO processing

EOS装置1将包写到FIFO,准备通过接收系统接口输出到链路层设备。FIFO最小值为512个八位组。连同包,下列可应用的标识符必须伴随FIFO的每个字:包的开始、包的结束、包是否结束,字中(1或2)有几个八位组、以及包是否出错。一旦在包信号里检测到错误,包不再有更多的字节装入FIFO中。The EOS device 1 writes the packet to the FIFO, ready to be output to the link layer device through the interface of the receiving system. The minimum FIFO size is 512 octets. Along with packets, the following applicable identifiers must accompany each word of the FIFO: start of packet, end of packet, whether the packet is over, how many octets are in the word (1 or 2), and whether the packet is in error. Once an error is detected in the packet signal, no further bytes are loaded into the FIFO for the packet.

FIFO状态由EOS装置1监控。通过设置MII_RX_FIFOOVER_E=1,向管理控制接口报告FIFO上溢事件,FIFO下溢的发生同时也会使对应的性能监控计数器增加。The FIFO status is monitored by the EOS device 1 . By setting MII_RX_FIFOOVER_E=1, the FIFO overflow event is reported to the management control interface, and the occurrence of FIFO underflow will also increase the corresponding performance monitoring counter.

EOS装置1包括一个8位FIFO下溢错误的计数器,对受FIFO下溢事件影响的每个包进行计数。当性能监控计数器被锁存时(LATCH_EVENT变为高电平),该计数器的值就由寄存器MII_RX_FIFOOVER_ERRCNT[7:0]锁存,并清除FIFO下溢错误计数器。The EOS device 1 includes an 8-bit FIFO underflow error counter, counting each packet affected by the FIFO underflow event. When the performance monitoring counter is latched (LATCH_EVENT becomes high level), the value of the counter is latched by the register MII_RX_FIFOOVER_ERRCNT[7:0], and the FIFO underflow error counter is cleared.

如果从LATCH_EVENT的最后上升沿开始导致至少1个FIFO下溢事件的话,就设置FIFO下溢错误事件位MII_RX_FIFOOVER_ERR_SECE。The FIFO underflow error event bit MII_RX_FIFOOVER_ERR_SECE is set if at least one FIFO underflow event has occurred since the last rising edge of LATCH_EVENT.

一旦检测到下溢错误,就不再有包的字节送入FIFO。在EOS模式(MII_RX_EOS=1)下,包的最后1个字标记为错误(RX_ERR)。Once an underflow error is detected, no more bytes of the packet are sent to the FIFO. In EOS mode (MII_RX_EOS=1), the last word of the packet is marked as an error (RX_ERR).

FIFO就在接收系统兼容接口之前,其目的是完成SONET时钟域和链路层时钟域之间的速率匹配功能。The FIFO is just before the compatible interface of the receiving system, and its purpose is to complete the rate matching function between the SONET clock domain and the link layer clock domain.

10.3错误包处理10.3 Error Packet Handling

RX处理单元12提供一个决定单元(determining unit)(未示出),它用来确定接收数据包类型、生成相应的预定SAPI,议及校验发生在帧中的错误。The RX processing unit 12 provides a determining unit (not shown), which is used to determine the type of the received data packet, generate a corresponding predetermined SAPI, and check errors occurring in the frame.

在EOS模式(MII_RX_EOS=1)下,对于由FIFO上溢事件破坏的包,EOS装置1用RX_ERR将其标记为错误包。In EOS mode (MII_RX_EOS=1), for a packet corrupted by a FIFO overflow event, the EOS device 1 marks it as an error packet with RX_ERR.

无效帧为:Invalid frames are:

a)没有正确的以两个标志序列为界;或a) is not correctly bounded by two flag sequences; or

b)帧标志序列间的八位组少于8;或b) fewer than 8 octets between frame marker sequences; or

c)包含有一个帧校验序列差错;或c) contains a frame check sequence error; or

d)包含一个接收器不匹配或不支持的服务访问点标识符(见ITU-T X.85的A.3.3);或d) contain a service access point identifier that the receiver does not match or support (see A.3.3 of ITU-T X.85); or

e)包含一个不可识别的控制字段值;或e) contains an unrecognized control field value; or

f)结束标志为超过六个“1”位的序列。f) The end flag is a sequence of more than six "1" bits.

无效帧将被丢弃,不通知发方,也不产生任何动作。Invalid frames will be discarded without notification to the sender and without any action.

10.4.接收数据奇偶校验10.4. Receive data parity check

作为MAC-PHY的规定,EOS装置1提供1个奇偶检验位,跟随发送到链路层的每个八位组或两个八位组的字(MII_RX_SYS_DAT[15:0])。在RX_PRTY管脚提供该奇偶校验位。作为缺省(MII_RX_PRTY_MODE=0),该位提供奇数奇偶校验;当MII_RX_PRTY_MODE=1时,提供偶数奇偶校验。As specified by the MAC-PHY, the EOS device 1 provides 1 parity bit following every octet or word of two octets sent to the link layer (MII_RX_SYS_DAT[15:0]). This parity bit is provided at the RX_PRTY pin. By default (MII_RX_PRTY_MODE=0), this bit provides odd parity; when MII_RX_PRTY_MODE=1, even parity is provided.

RX_FIFO 13中执行从LAPS到MII的速率适配。从RX_LAPS处理单元12输出的周期性LAPS帧(如155M),转换成突发的MII帧(如100M)。在TX FIFO执行相反的速率适配过程。经过处理后,接收到的SDH/SONET帧转换成MII帧,通过转换器19传送到以太网层。Rate adaptation from LAPS to MII is performed in RX_FIFO 13. Periodic LAPS frames (such as 155M) output from the RX_LAPS processing unit 12 are converted into burst MII frames (such as 100M). The reverse rate adaptation process is performed in the TX FIFO. After processing, the received SDH/SONET frames are converted into MII frames and transmitted to the Ethernet layer through the converter 19 .

MII接口要求MII interface requirements

EOS装置1对MII接口的要求是基于IEEE 802.3对协调子层和介质独立接口的定义。The requirements of EOS device 1 for the MII interface are based on the IEEE 802.3 definition of the Coordination Sublayer and the Media Independent Interface.

图13是图9中的转换器19的详细功能模块图。图中所用的定义如下:FIG. 13 is a detailed functional block diagram of the converter 19 in FIG. 9 . The definitions used in the figure are as follows:

TX_ER:发送编码错误;TXD:发送数据;TX_EN:发送允许;TX_CLK:发送时钟;GTX_CLK:千兆位发送时钟;COL:冲突检测;RXD:接收数据;RX_EN:接收使能;RX_CLK:接收时钟;CRS:载波侦听;RX_DV:接收数据有效;MDC:管理数据时钟;MDIO:管理数据输入/输出;TSOF:帧发送开始;TEOF:帧发送结束;TCLK:发送时钟;TENA:发送写允许;TFA:发送帧可用;TxDATA:发送数据;RSOF:帧接收开始;REOF:帧接收结束;RCLK:接收时钟;RV:接收数据有效;RFA:接收帧可用;RxDATA:接收数据。TX_ER: Send encoding error; TXD: Send data; TX_EN: Send enable; TX_CLK: Send clock; GTX_CLK: Gigabit send clock; COL: Collision detection; RXD: Receive data; RX_EN: Receive enable; RX_CLK: Receive clock; CRS: carrier sense; RX_DV: received data is valid; MDC: management data clock; MDIO: management data input/output; TSOF: start of frame transmission; TEOF: end of frame transmission; TCLK: transmission clock; TENA: transmission write permission; TFA : Transmit frame available; TxDATA: Transmit data; RSOF: Start of frame reception; REOF: End of frame reception; RCLK: Receive clock; RV: Receive data valid; RFA: Receive frame available; RxDATA: Receive data.

应指出的是,标记括号的信号项是变化的,这里有两种选择方法:对于Ethernet/Fast(快速)Ethernet over SDH/SONET情况,使用的是TxDATA<7:0>(8×19.44MHZ)、RxDATA<7:0>(8×19.44MHZ)、TXD<3:0>(4×25MHZ)、RXD<3:0>(4×25MHZ)以及TX_CLK(25MHZ)。对于Gigabit(前兆位)Ethernetover SDH/SONET包括GTX_CLK方向在内使用的是:TxDATA<31:0>(32×78.76MHZ)/<63:0>(64×38.88MHZ)、RxDATA<31:0>(32×78.76MHZ)/<63:0>(64×38.88MHZ)、TXD<7:0>(8×125MHZ)、RXD<7:0>(8×125MHZ)以及GTX_CLK(125MHZ)。It should be pointed out that the signal items marked with parentheses change, and there are two selection methods here: For Ethernet/Fast (fast) Ethernet over SDH/SONET, TxDATA<7:0> (8×19.44MHZ) is used , RxDATA<7:0>(8×19.44MHZ), TXD<3:0>(4×25MHZ), RXD<3:0>(4×25MHZ) and TX_CLK(25MHZ). For Gigabit (preamble bit) Ethernetover SDH/SONET including GTX_CLK direction, use: TxDATA<31:0>(32×78.76MHZ)/<63:0>(64×38.88MHZ), RxDATA<31:0> (32×78.76MHZ)/<63:0>(64×38.88MHZ), TXD<7:0>(8×125MHZ), RXD<7:0>(8×125MHZ) and GTX_CLK(125MHZ).

如图13所示,转换器19执行MII/GMII接口和WRI接口间的转换功能。As shown in FIG. 13, the converter 19 performs the conversion function between the MII/GMII interface and the WRI interface.

1.输入和输出间转换模块的同步1. Synchronization of conversion modules between input and output

MII和GMII与IEEE 802.3标准兼容。TX_CLK(发送时钟)或GTX_CLK(千兆位发送时钟)是一个为TX_EN、TXD以及TX_ER转移提供定时参考的连续时钟。RX_CLK(发送时钟或千兆位发送时钟)是一个为TX_DV、RXD以及RX_ER转移提供定时参考的连续时钟。当自动协商处理选择全双工工作模式时,COL(冲突检测)信号和CRS(载波侦听)的工作状态没有详细说明。MII and GMII are compatible with IEEE 802.3 standard. TX_CLK (Transmit Clock) or GTX_CLK (Gigabit Transmit Clock) is a continuous clock that provides a timing reference for TX_EN, TXD, and TX_ER transfers. RX_CLK (Transmit Clock or Gigabit Transmit Clock) is a continuous clock that provides the timing reference for TX_DV, RXD, and RX_ER transitions. When the auto-negotiation process selects the full-duplex working mode, the working states of the COL (collision detection) signal and the CRS (carrier sense) are not described in detail.

在EOS装置的发送方向,MII/GMII和WRI接口分别为输入和输出接口,在接收方向,MII/GMII和WRI接口分别为输出和输入接口。WRI接口提供以下两种并行的发送和接收数据转移方式,这两种方式均采用独立于线速的时钟速率:在STM-1/OC-3c速率时为8bits(位)×19.44MHz;在STM-16/OC-48c速率为32bits×78.76MHz/64bits×38.88MHz。EOS芯片支持通过转换器和LAPS处理器间的FIFO实现帧速率去耦。In the sending direction of the EOS device, the MII/GMII and WRI interfaces are input and output interfaces respectively, and in the receiving direction, the MII/GMII and WRI interfaces are output and input interfaces respectively. The WRI interface provides the following two parallel transmission and reception data transfer methods, both of which use a clock rate independent of the wire speed: 8bits (bits) × 19.44MHz at the STM-1/OC-3c rate; -16/OC-48c rate is 32bits×78.76MHz/64bits×38.88MHz. The EOS chip supports frame rate decoupling through a FIFO between the converter and the LAPS processor.

为了简化MII/GMII层和EOS间的接口、支持多种物理层(PHY)接口,使用了转换器19和FIFO。提供控制信号支持MII/GMII层和EOS层设备两者,以便允许EOS在WRI接口执行流控制。由于总线接口是基于点到点连接,因此,EOS装置的接收接口通过FIFO和转换器19将数据推入MII/GMII层设备。在发送和接收接口可用帧状态颗粒(granularity)是基于八位组。在接收方向,当EOS层设备在其接收FIFO中存储了一个帧的结束(一个小的LAPS帧或一个大的LAPS帧结束)或预定数个字节时,通过转换器19向MII/GMII层设备发送带内地址(in-band address),后跟FIFO数据。在WRI接口总线的数据贴上接收有效信号(RV)的标志。In order to simplify the interface between MII/GMII layer and EOS, and support multiple physical layer (PHY) interfaces, converter 19 and FIFO are used. Control signals are provided to support both MII/GMII layer and EOS layer devices to allow EOS to perform flow control at the WRI interface. Since the bus interface is based on a point-to-point connection, the receiving interface of the EOS device pushes the data into the MII/GMII layer device through FIFO and converter 19 . The frame state granularity available at the transmit and receive interfaces is based on octets. In the receiving direction, when the EOS layer device has stored the end of a frame (the end of a small LAPS frame or a large LAPS frame) or a predetermined number of bytes in its receive FIFO, the MII/GMII layer is sent to the MII/GMII layer by the converter 19 The device sends the in-band address, followed by the FIFO data. The data on the WRI interface bus is marked with a receive valid signal (RV).

具有多个FIFO的多端口EOS装置在其FIFO中有足够的数据时,每个端口可以循环(round-bin)方式工作。WRI接口根据IEEE 802.3x和相关的转换器19通过不维持允许信号(RENB)可暂停数据流。在发送方向,当EOS层设备有空间给发送FIFO中预定数个字节时,通过声明一个发送帧到达(transmitframe available,TFA)经转换器19通知MII/GMII层设备。MII/GMII层设备能在WRI接口用一个允许信号(TENB)将后跟帧数据的带内地址写到EOS层设备。转换器19监控TFA从高到低的转变,该转变表示发送FIFO接近满了(FIFO中剩下的字节数可由用户选择,但必须预定义),悬挂数据转移以避免下溢。转换器19通过不维持允许信号(TENB)可暂停数据流。A multi-port EOS device with multiple FIFOs can operate in a round-bin manner for each port when there is enough data in its FIFO. The WRI interface can suspend the data flow according to IEEE 802.3x and the associated switch 19 via the enable-not-maintain signal (RENB). In the sending direction, when the EOS layer device has space to send a predetermined number of bytes in the FIFO, it will notify the MII/GMII layer device through the converter 19 by declaring that a transmit frame is available (transmitframe available, TFA). The MII/GMII layer device can use a enable signal (TENB) on the WRI interface to write the in-band address followed by the frame data to the EOS layer device. Translator 19 monitors TFA for a high to low transition indicating that the transmit FIFO is nearly full (the number of bytes remaining in the FIFO is user-selectable but must be predefined), suspending data transfers to avoid underflow. Converter 19 can suspend data flow by not asserting enable signal (TENB).

在发送方向,WRI-PHY定义帧级转移控制。由于帧大小是可变的,不提供任何可用字节数保证,在发送和接收两个方向信号,在STFA上提供选择的可用EOS发送帧,在信号RV上接收数据有效。STFA和RV一直反映数据正被转移到后从其转出的选择的EOS的状态。RV指示有效数据在接收数据总线上是否可用,并被定义为数据转移可与帧边界对齐。用带内寻址选择物理层端口。在发送方向,MII/GMII设备通过在TxDATA<7:0>或TxDATA<31:0>/TxDATA<63:0>总线上发送地址来选择EOS端口,总线上有TSX信号处于激活态、TENB信号处于非激活态标志。所有标志了TENB处于激活态的后续TxDATA<7:0>或TxDATA<31:0>/TxDATA<63:0>总线操作是用于指定端口的帧数据。在接收方向,MII/GMII设备,通过在RxDATA<7:0>或RxDATA<31:0>/RxDATA<63:0>总线上发送地址来指定选择端口,总线有RSX信号处于激活态、RV信号处于非激活态标志。所有标志了RV处于激活态的后续RxDATA<7:0>或RxDATA<31:0>/RxDATA<63:0>总线操作是用于指定端口的帧数据。In the transmit direction, WRI-PHY defines frame-level transfer control. Since the frame size is variable, it does not provide any guarantee of the number of available bytes. In both directions of sending and receiving signals, a selection of available EOS sending frames is provided on the STFA, and the received data is valid on the signal RV. STFA and RV always reflect the state of the selected EOS from which data is being transferred to and then transferred from. RV indicates whether valid data is available on the receive data bus and is defined such that data transfers can be aligned to frame boundaries. The physical layer port is selected with in-band addressing. In the transmit direction, the MII/GMII device selects the EOS port by sending an address on the TxDATA<7:0> or TxDATA<31:0>/TxDATA<63:0> bus with the TSX signal active, the TENB signal Inactive flag. All subsequent TxDATA<7:0> or TxDATA<31:0>/TxDATA<63:0> bus transactions that mark TENB active are frame data for the specified port. In the receive direction, the MII/GMII device specifies the selected port by sending an address on the RxDATA<7:0> or RxDATA<31:0>/RxDATA<63:0> bus with the RSX signal active and the RV signal Inactive flag. All subsequent RxDATA<7:0> or RxDATA<31:0>/RxDATA<63:0> bus transactions that mark RV active are frame data for the specified port.

为了支持现有的少量的多端口EOS层设备以及将来高密度多端口设备,当EOS层设备的端口数量有限时,采用DFTA信号的字节级转移提供一种更简单的实现方法,同时减少所需的寻址管脚。在这种情况下,随着端口数量的增加,直接访问就变得毫无理由。当端口数量多时,采用TADR总线使帧级转移所需的管脚数量少得多。带内寻址保证两种方法的协议保留一致。然而系统设计者和物理层设备制造商具体选用那种方法取决于那种方法更适合其想得到的应用。In order to support the existing small number of multi-port EOS layer devices and future high-density multi-port devices, when the number of ports of the EOS layer device is limited, the byte-level transfer of the DFTA signal provides a simpler implementation method while reducing the number of required addressing pins. In this case, as the number of ports increases, direct access becomes unreasonable. When the number of ports is large, the number of pins required for frame-level transfer is much smaller by using the TADR bus. In-band addressing guarantees that the protocol remains the same for both methods. However, which method the system designer and physical layer device manufacturer chooses depends on which method is more suitable for the application they want.

2.转换器19的数据结构2. Data structure of converter 19

应采用一个定义的数据结构将帧写到发送FIFO以及从接收FIFO中读取帧。八位组以在SDH/SONET线路中发送或接收的相同顺序读写。在一个八位组中最高有效位(位7)首先发送(参见图7/ITU-T建议草案X.86)。EOS装置可用来转移1个字节的帧。在这种情况下,同时声明帧信号的开始和结束。对于帧长度超过EOS装置FIFO的帧,帧必须通过WRI接口转移。在每个段每个帧数据的字节数可以固定不变,也可以是变化的,这取决于具体的应用。MII/GMII可通过转换器19在MII/GMII接口发送固定大小的帧段,或者当FIFO满时在WRI接口上使用TFA信号来确定。对于多MII/GMII端口应用,用TPAS(发送端口地址选择,Transmit Port Address Selection)指示TxDATA总线上的带内端口地址选择有效。当TPAS处于高位、TENB也是高位时,TxDATA[7:0]或TxDATA<31:0>/TxDATA<63:0>的值是要选择的发送FIFO的地址。TxDATA总线上的随后数据转移填充到该带内地址指定的FIFO中。对于单一端口的EOS装置,TPAS信号是可选项,因为当TENB处于高位时,EOS装置将忽略带内地址。只有在没有声明TENB时,TPAS才有效。A defined data structure should be used to write frames to the transmit FIFO and to read frames from the receive FIFO. Octets are read and written in the same order as they are sent or received on the SDH/SONET line. The most significant bit (bit 7) is sent first in an octet (see Figure 7/ITU-T Draft Recommendation X.86). EOS devices can be used to transfer 1-byte frames. In this case, both the start and end of the frame signal are declared. For frames whose frame length exceeds the FIFO of the EOS device, the frame must be transferred through the WRI interface. The number of bytes of data per frame in each segment can be fixed or variable, depending on the specific application. MII/GMII can be determined by sending fixed size frame segments on the MII/GMII interface through the converter 19, or using the TFA signal on the WRI interface when the FIFO is full. For multiple MII/GMII port applications, TPAS (Transmit Port Address Selection) is used to indicate that the in-band port address selection on the TxDATA bus is valid. When TPAS is high and TENB is also high, the value of TxDATA[7:0] or TxDATA<31:0>/TxDATA<63:0> is the address of the transmit FIFO to be selected. Subsequent data transfers on the TxDATA bus fill the FIFO specified by this in-band address. For single-port EOS devices, the TPAS signal is optional because EOS devices will ignore in-band addresses when TENB is high. TPAS is only valid if no TENB is declared.

在32位/64位总线接口以及8位总线接口,没有示出多端口EOS装置的带内端口地址。转换器19应在与数据相同的总线上发送MII/GMII端口地址,该总线标志TPAS信号处于激活态,TENB信号处于非激活态。WRI接口上随后的数据转移使用带内地址选择的发送FIFO。在接收接口,在转移帧数据前EOS装置用RPAS(接收端口地址选择,Receive Port Address Selection)信号处于激活态,RV信号处于非激活态报告带内接收FIFO地址(the receive FIFO addressin-band)。对于这两种情况,超出FIFO大小的大帧通过在每个段中加上适当的带内地址前缀,经WRI接口转移。In the 32-bit/64-bit bus interface and the 8-bit bus interface, the in-band port address of the multi-port EOS device is not shown. The converter 19 should send the MII/GMII port address on the same bus as the data, and the bus flag TPAS signal is in an active state, and the TENB signal is in an inactive state. Subsequent data transfers on the WRI interface use the transmit FIFO with in-band address selection. On the receiving interface, before transferring the frame data, the EOS device uses the RPAS (Receive Port Address Selection) signal to be active, and the RV signal to be inactive to report the receive FIFO address in-band (the receive FIFO address in-band). For both cases, large frames exceeding the size of the FIFO are diverted via the WRI interface by prefixing each segment with the appropriate in-band address.

带内地址在以TPAS/RPAS信号标志的单个时钟周期操作中规定。端口地址由TxDATA[7:0]和RxDATA[7:0]信号或TxDATA[31:0]/TxDATA[63:0]以及RxDATA[31:0]/RxDATA[63:0]信号确定。在数值编码方式下,地址是TxDATA[7:0]和RxDATA[7:0]信号或TxDATA[31:0]/TxDATA[63:0]和RxDATA[31:0]/RxDATA[63:0]信号的数值,此时,位0是最低有效位,位7是最高有效位。这样,一个单接口可支持多达256的端口。对32位接口,忽略掉上面的24位,对64位接口,忽略掉上面的56位。The in-band address is specified in a single clock cycle operation marked by the TPAS/RPAS signal. The port address is determined by the TxDATA[7:0] and RxDATA[7:0] signals or the TxDATA[31:0]/TxDATA[63:0] and RxDATA[31:0]/RxDATA[63:0] signals. In the numerical encoding mode, the address is TxDATA[7:0] and RxDATA[7:0] signals or TxDATA[31:0]/TxDATA[63:0] and RxDATA[31:0]/RxDATA[63:0] The value of the signal, where bit 0 is the least significant bit and bit 7 is the most significant bit. Thus, a single interface can support up to 256 ports. For 32-bit interfaces, ignore the upper 24 bits, and for 64-bit interfaces, ignore the upper 56 bits.

根据ITU-T建议草案,在LAPS处理器中必须处理帧校验序列(FCS)。如果EOS装置在传送前不以可选项方式插入FCS字节,则在包结尾应该包括这些字节。如果EOS装置在接收方向没有剥离FCS字段,则在包结尾应保留这些字节。According to the draft ITU-T Recommendation, the Frame Check Sequence (FCS) has to be processed in the LAPS processor. If the EOS device does not optionally insert FCS bytes before transmission, these bytes shall be included at the end of the packet. If the EOS device does not strip the FCS field in the receive direction, these bytes shall remain at the end of the packet.

管理控制接口management control interface

下面描述对应于EOS装置的管理控制接口,定义可供外部微处理器读写的所有寄存器地址。这里使用了一张表,该表了包含公共配置和总体状态映射(Summary Status Map),后者拥有整个设备公用的控制和监控参数。在发送端,该表为管理控制接口寄存器映射,在接收端,每个块是管理控制接口寄存器映射。微处理器总线地址的最高有效位ADDR[8:0]指明映射是否与发送或接收方向有关。ADDR[7:0]指示特殊映射,这些值采用后面详述的每个映射识别。公共配置和总体映射为ADDR[8]=0。The following describes the management control interface corresponding to the EOS device, defining all register addresses that can be read and written by the external microprocessor. A table is used here that contains the common configuration and the Summary Status Map, which holds control and monitoring parameters common to the entire device. On the sending side, the table is a management control interface register map, and on the receiving side, each block is a management control interface register map. The most significant bits ADDR[8:0] of the microprocessor bus address indicate whether the mapping is related to the transmit or receive direction. ADDR[7:0] indicate special mappings, and these values are identified with each mapping detailed later. The common configuration and overall mapping is ADDR[8]=0.

1.中断或轮询(polled)操作1. Interrupt or polling (polled) operation

管理控制接口以中断驱动或轮询模式两种方式工作。在这两种模式中,公共配置和总体状态映射地址0x002中的EOS装置寄存器位SUM INT用于决定EOS装置中的监控寄存器状态是否已发生了变化。The management control interface works in interrupt-driven or polling mode. In both modes, the EOS device register bit SUM INT in the common configuration and overall status map address 0x002 is used to determine whether the monitoring register status in the EOS device has changed.

1.1中断源1.1 Interrupt sources

1.1.1发送端1.1.1 Sending end

发送端寄存器映射(Transmit Side register map)几乎是确定SONET/SDH信号组成以及提供LAPS、SONET/SDH POH和SONET/SDH TOH/SOH值的全部规定参数(provisioning parameters)。除这些规定参数外,发送端寄存器映射包括系统接口和通用I/O监控器。如果这些指示中的任何一个处于激活态,则寄存器0x002中的SUM_INT位为高位(逻辑1)。如果SUM_INT_MASK=0,微处理器接口中断输出(INTB)处于激活态(逻辑0)。Transmit Side register map (Transmit Side register map) almost determines the SONET/SDH signal composition and provides all provisioning parameters of LAPS, SONET/SDH POH and SONET/SDH TOH/SOH values. In addition to these specified parameters, the transmitter register map includes system interfaces and general I/O monitors. If any of these indications is active, the SUM_INT bit in Register 0x002 is high (logic 1). If SUM_INT_MASK=0, the microprocessor interface interrupt output (INTB) is active (logic 0).

1.1.2接收端1.1.2 Receiver

该表也包含寄存器0x005中接收端的总体状态位。这些位提供寄存器0x002中的SUM_INT位。如果总体状态位中的任何一个为“1”,并且相应的掩蔽位为“0”,则设置SUM_INT位为“1”。如果表(TBD)中一个或多个相应位组为“1”,则表中寄存器0x005(TBD)中总体状态位为“1”。可掩蔽单个TOH/SOH delta和第二次事件位(Second event bit)(表(TBD),例如地址为0x204-0x206)。This table also contains the overall status bits of the receiver in Register 0x005. These bits feed the SUM_INT bits in Register 0x002. If any of the overall status bits is "1", and the corresponding mask bit is "0", then the SUM_INT bit is set to "1". The overall status bit in register 0x005 (TBD) in the table is "1" if one or more of the corresponding bit groups in the table (TBD) is "1". A single TOH/SOH delta and Second event bit (Table (TBD), e.g. address 0x204-0x206) can be masked.

1.2中断驱动1.2 Interrupt-driven

在中断驱动模式中,应清除公共配置和总体状态映射的寄存器0x006的SUM_INT_MASK位(设置为0)。这允许INTB输出成为激活位(逻辑0)。该输出是INTB=!(!SUM_INT_MASK && SUM_INT)。此外,应清空接收端的MII_RX_APS_INT_MASK位(设置为逻辑0)。这允许APS_INTB输出成为激活位(逻辑0),该输出是APS_INTB=!(!MII_RX_APS_INT_MASK &&MII_RX_APS_INT)。如果发生了中断,微处理器首先读取总体状态寄存器0x004-0x005以确定激活的中断源类,然后读取该类中的特殊寄存器,以确定中断的精确原因。In interrupt-driven mode, the SUM_INT_MASK bit of Register 0x006 of the Common Configuration and Overall Status Map should be cleared (set to 0). This allows the INTB output to be an active bit (logic 0). The output is INTB=! (!SUM_INT_MASK && SUM_INT). Additionally, the MII_RX_APS_INT_MASK bit should be cleared (set to logic 0) on the receiver side. This allows the APS_INTB output to be an active bit (logic 0), which output is APS_INTB=! (!MII_RX_APS_INT_MASK &&MII_RX_APS_INT). If an interrupt has occurred, the microprocessor first reads the overall status registers 0x004-0x005 to determine the active interrupt source class, and then reads the special registers within that class to determine the precise cause of the interrupt.

1.3轮询模式1.3 Polling mode

在轮询模式中,应设置SUM INT MASK和MII RX_APS_INT MASK位(为逻辑1),以抑制所有硬件中断以及运行在轮询模式中。在这种模式中,EOS装置1输出INTB,APS_INTB保持在非激活状态(逻辑1)。In polling mode, the SUM INT MASK and MII RX_APS_INT MASK bits should be set (to logic 1) to suppress all hardware interrupts and operate in polling mode. In this mode, the EOS device 1 outputs INTB and APS_INTB remains inactive (logic 1).

应指出的是,SUM_INT_MASK和MII_RX_APS_INT_MASK位不影响寄存器位SUM_INT和MII_RX_APS_INT的状态。可以轮询这些位以确定是否需要进一步询问寄存器。It should be noted that the SUM_INT_MASK and MII_RX_APS_INT_MASK bits do not affect the state of register bits SUM_INT and MII_RX_APS_INT. These bits can be polled to determine if the register needs to be interrogated further.

微处理器接口microprocessor interface

连接EOS装置的微处理器接口18使系统能够接入OS装置中的所有寄存器。微处理器接口可以运行在中断驱动或轮询模式。在中断模式,EOS装置支持多种中断源。无论在那种模式,EOS装置均可掩蔽任何中断。The microprocessor interface 18 to the EOS device enables the system to access all registers in the OS device. The microprocessor interface can run in interrupt driven or polled mode. In interrupt mode, EOS devices support multiple interrupt sources. Regardless of the mode, the EOS device can mask any interruption.

由于本发明的EOS装置中的其他段是众所周知的,在此略去相关的描述。Since other segments in the EOS device of the present invention are well known, related descriptions are omitted here.

上面参照SDH/SONET描述了本发明,然而,本发明也可用在简化SDH/SONET中。简化SDH/SONET是指简化的SDH/SONET,其中终止POH、以降低处理器的负载。The invention has been described above with reference to SDH/SONET, however, the invention can also be used in simplified SDH/SONET. Simplified SDH/SONET refers to a simplified SDH/SONET in which the POH is terminated to reduce processor load.

图14所示为根据本发明实施例,使SDH专用网与具有EOS装置的10BASE-T、100BASE-T和1000BASE-x的2层交换机(命名为S24-2OC-48)连接的示例图。Fig. 14 shows according to the embodiment of the present invention, makes the SDH private network connect with the 2-layer switch (named as S24-2OC-48) of 10BASE-T, 100BASE-T and 1000BASE-x with EOS device.

图中所用的定义如下:GMAC,千兆位介质接入控制;GMII,千兆位介质独立接口;MAC,介质接入控制;交换控制内存(Switch control Memory):用于交换过程中读和写数据;I2C接口,用于提供E2PROM接口;CPU接口单元:用于提供对外部微机主机的接口功能;帧缓冲器:用于存储高速数据;帧存储器,用于以常规方式存储数据;Gigabit Ethernet over STM-16c/OC-48C,提供两个千兆以太网映射的EOS单元。The definitions used in the figure are as follows: GMAC, Gigabit Media Access Control; GMII, Gigabit Media Independent Interface; MAC, Media Access Control; Switch Control Memory (Switch control Memory): used for reading and writing during switching Data; I 2 C interface, used to provide E 2 PROM interface; CPU interface unit: used to provide the interface function to the external microcomputer host; frame buffer: used to store high-speed data; frame memory, used to store data in a conventional way ;Gigabit Ethernet over STM-16c/OC-48C, providing two Gigabit Ethernet mapping EOS units.

根据图9的框图所示的单个OC-48c/STM-16c展示单个GMII信道。24端口10/100 MAC用于提供二十四个MAC端口处理。MAC帧引擎(MACFrame Engine,MFE)是S24-2GEOC48中的主MAC帧缓冲和转发引擎。MAC搜索引擎(MSE)用于提供目的地地址搜索功能。A single OC-48c/STM-16c shown in the block diagram according to FIG. 9 exhibits a single GMII channel. A 24-port 10/100 MAC is used to provide twenty-four MAC port processing. MAC Frame Engine (MACFrame Engine, MFE) is the main MAC frame buffering and forwarding engine in S24-2GEOC48. The MAC Search Engine (MSE) is used to provide the destination address search function.

S24-2GEOC48的基本特征如下:The basic features of S24-2GEOC48 are as follows:

● STM-16c/OC-48c上的2个千兆以太网端口;● 2 Gigabit Ethernet ports on STM-16c/OC-48c;

●带MII接口的24个10/100Mbps自动侦听、快速以太网端口;●24 10/100Mbps automatic listening and fast Ethernet ports with MII interface;

●支持IEEE 802.1d生成树算法;●Support IEEE 802.1d spanning tree algorithm;

●2层交换。Layer 2 switching.

--内部交换数据库内存支持多达2k的MAC地址、高达64k的用于SNMP网络管理CPU存储器、基于Web的网络管理控制台接口或RS-232本地控制台接口或并行接口。--Internal exchange database memory supports up to 2k MAC addresses, up to 64k CPU memory for SNMP network management, Web-based network management console interface or RS-232 local console interface or parallel interface.

---在24+2(EOS)系统中支持多达16k的MAC地址。--- Support up to 16k MAC addresses in 24+2 (EOS) system.

●通过IGMP探听支持IP多播;●Support IP multicast through IGMP snooping;

●高速MAC帧转发,转发速率大于每秒300万MAC帧(3Mpps),以及全线速过滤;●High-speed MAC frame forwarding, forwarding rate greater than 3 million MAC frames per second (3Mpps), and full wire-speed filtering;

●采用真正的非模块化体系结构,支持超过6Mpps(每秒600万包)吞吐量的系统。●Adopt a real non-modular architecture to support a system with a throughput of more than 6Mpps (6 million packets per second).

●在进入端口单存储和转发,在目的地端口直通交换●Single store-and-forward on ingress port, cut-through switching on destination port

●通过单存储和转发交换技术,延时非常低;●With single store and forward switching technology, the delay is very low;

●全双工以太网IEEE 802.3x流控制使业务拥塞最小化;●Full-duplex Ethernet IEEE 802.3x flow control minimizes traffic congestion;

●对半双工端口采用背压(backpressure)流控制(IEEE802.3x);●Adopt backpressure flow control (IEEE802.3x) for half-duplex ports;

●提供端口和ID标志的虚拟局域网(VLAN)802.1Q;●Virtual local area network (VLAN) 802.1Q with port and ID flags;

●VLAN ID标志插入/提取;●VLAN ID flag insertion/extraction;

●支持IEEE 802.1p/Q服务质量,其具有4个优先发送队列、加权公平队列、以及用户映射优先级和权重●Support IEEE 802.1p/Q service quality, which has 4 priority sending queues, weighted fair queues, and user mapping priority and weight

●支持以太网多播和广播;●Support Ethernet multicast and broadcast;

●提供源、目的和协议过滤;●Provide source, destination and protocol filtering;

●严格的电可擦除只读存储器提(EEPROM)提供配置数据保护。● Strict electrically erasable read-only memory (EEPROM) provides configuration data protection.

S24-2GEOC48是一个26端口的10/100/1000Mbps Gigabit Ethernet overover STM-16c/OC-48c带有片内地址存储空间的非模块化以太网交换芯片。片内地址存储器支持多达2K的MAC地址以及多达256个IEEE 802.1Q虚拟局域网(VLAN)。在10/100Mbps端口S24-2GEOC48支持端口中继(port trunking)/负载共享。端口中继/负载共享可用于内连交换机间的端口分组,以增加网络带宽效率。帧缓冲存储器接口采用性能价格合算的、高性能流水式同步突发SRAM,以同时在所有外部端口支持全线速。在半双工模式,所有端口支持背压流控制,将长期激活突发的数据丢失的威胁降到最小。在全双工模式,提供IEEE 802.3x流控制。在全双工情况下,端口0-11支持200Mbps聚集带宽连接,端口12支持2 Gbps到桌面计算机、服务器或其他高性能交换机。对26个端口中的每个端口独立收集以太网SNMP和远程接口管理信息库(RMONMIB)的统计信息。通过CPU接口提供对这些统计计数器/寄存器的接入。通过CPU接口接收和发送SNMP管理帧,形成一个完整的网络管理方案。S24-2GEOC48用0.18μm技术制造。容许的输入电压为3.3V,输出直接与LVTTL电平相连接。S24-2GEOC48 is a 26-port 10/100/1000Mbps Gigabit Ethernet overover STM-16c/OC-48c non-modular Ethernet switch chip with on-chip address storage space. On-chip address memory supports up to 2K MAC addresses and up to 256 IEEE 802.1Q virtual local area networks (VLANs). The S24-2GEOC48 supports port trunking/load sharing on 10/100Mbps ports. Port trunking/load sharing can be used to group ports between interconnected switches to increase network bandwidth efficiency. The framebuffer memory interface uses cost-effective, high-performance pipelined synchronous burst SRAM to support full line rate on all external ports simultaneously. In half-duplex mode, all ports support backpressure flow control, which minimizes the threat of long-term active bursts of data loss. In full-duplex mode, IEEE 802.3x flow control is provided. At full duplex, ports 0-11 support 200Mbps aggregate bandwidth connections, and port 12 supports 2 Gbps to desktop computers, servers, or other high-performance switches. Collect Ethernet SNMP and Remote Interface Management Information Base (RMONMIB) statistics independently for each of the 26 ports. Access to these statistical counters/registers is provided through the CPU interface. Receive and send SNMP management frames through the CPU interface to form a complete network management solution. S24-2GEOC48 is fabricated with 0.18μm technology. The allowable input voltage is 3.3V, and the output is directly connected to the LVTTL level.

如图所示,当在交换机和传输设备(如ADM)之间通信时,本发明的EOS装置可内装在10M/100M/1000M局域网2层交换机中。As shown in the figure, the EOS device of the present invention can be built into a 10M/100M/1000M LAN layer 2 switch when communicating between the switch and transmission equipment (such as ADM).

24个10/100介质接入控制器(MAC)提供进入S24-2GEOC48的协议接口。这些MAC完成MAC帧校验的要求,以保证提供给MAC帧引擎的每个MAC帧符合所有IEEE 802.3标准。丢弃那些长度大于1518字节(带VLAN标志为1522字节)以及小于64字节的数据MAC帧,VHS 108已经设计成支持输入MAC帧间的最小帧间间隙。Twenty-four 10/100 media access controllers (MACs) provide protocol interfaces into the S24-2GEOC48. These MACs perform the MAC frame verification requirements to ensure that each MAC frame presented to the MAC frame engine complies with all IEEE 802.3 standards. Discard data MAC frames whose length is greater than 1518 bytes (1522 bytes with VLAN tag) and less than 64 bytes. VHS 108 has been designed to support the minimum interframe gap between incoming MAC frames.

MAC帧引擎(MFE)是S24-2GEOC48中的主MAC帧缓冲器和转发引擎。因此,MFE控制进出外部帧存储缓冲器的MAC帧的存储,留意帧缓冲器的可用性,以及安排输出MAC帧发送。当MAC帧数据被缓冲时,MFE从每个MAC帧首标中提取必须的信息,将其发送到搜索引擎中进行处理。搜索结果送回MFE,从而安排MAC帧发送及其优先级。当选定一个MAC帧发送时,MFE从外部缓冲存储器读取MAC帧,将其放置到输出端口的输出FIFO中。The MAC Frame Engine (MFE) is the main MAC Frame Buffer and Forwarding Engine in the S24-2GEOC48. Thus, the MFE controls the storage of MAC frames to and from the external frame storage buffers, keeps track of frame buffer availability, and schedules outgoing MAC frame transmissions. When the MAC frame data is buffered, the MFE extracts the necessary information from the header of each MAC frame and sends it to the search engine for processing. The search results are sent back to the MFE, which schedules MAC frame transmission and its priority. When selecting a MAC frame to send, MFE reads the MAC frame from the external buffer memory and places it in the output FIFO of the output port.

MFE可管理S24-2GEOC48所有端口的输出发送队列。一旦在MSE中完成目的地地址搜索,作出的交换决定送回到MFE,将MAC帧插入到适当的输出队列。帧是进入高优先级还是进入低优先级队列由VLAN优先级标志信息或IP首标中的业务类型/不网业务(TOS/DS)字段来控制。配置寄存器可确定QoS映射所采用的是VLAN优先级标签还是TOS/DS字段。一旦采用VLAN优先级标签进行QoS映射,用户也可通过寄存器VLAN优先级映射方法映射发送优先级,以及通过寄存器VLAN丢弃映射寄存器指定丢弃的先后次序。当系统采用TOS/DS编码点字段来映射QoS时,可选用TOS字节(参考RFC 791)或TOS字节的位[3:5](参考RFC 2460以及IETF站点上的其他RFC文档)来映射发送队列的优先级以及帧丢弃的先后次序。用户能够控制所选的TOS映射字段。TOS字段映射到高优先级队列或低优先级队列由寄存器TOS优先级映射和TOS丢弃映射处理。S24-2GEOC48用加权循环(Weighted Round R0bin,WRR)以及加权随机早期检测/丢弃(WeightedRandom Early Detection/Drop,WRED)安排帧发送。为使S24-2GEOC48有QoS能力,需一个EEPROM(4k字节)来改变缺省寄存器配置,开启QoS。MFE can manage the output sending queues of all ports of S24-2GEOC48. Once the destination address search is done in the MSE, the switching decision made is sent back to the MFE, which inserts the MAC frame into the appropriate output queue. Whether the frame enters the high-priority queue or the low-priority queue is controlled by the VLAN priority flag information or the service type/non-network service (TOS/DS) field in the IP header. The configuration register determines whether the VLAN priority tag or the TOS/DS field is used for QoS mapping. Once the VLAN priority tag is used for QoS mapping, the user can also map the sending priority through the register VLAN priority mapping method, and specify the order of discarding through the register VLAN drop mapping register. When the system uses the TOS/DS code point field to map QoS, it can use the TOS byte (refer to RFC 791) or bits [3:5] of the TOS byte (refer to RFC 2460 and other RFC documents on the IETF site) to map The priority of the sending queue and the order in which frames are discarded. The user is able to control the selected TOS mapping fields. The mapping of the TOS field to a high-priority queue or a low-priority queue is handled by registers TOS Priority Mapping and TOS Dropping Mapping. S24-2GEOC48 uses Weighted Round R0bin (WRR) and Weighted Random Early Detection/Drop (WeightedRandom Early Detection/Drop, WRED) to arrange frame transmission. In order to make S24-2GEOC48 have QoS capability, an EEPROM (4k bytes) is needed to change the default register configuration and enable QoS.

开启电源后,S24-2GEOC48能立即开始地址学习和MAC帧转发。MAC搜索引擎(MSE)为S24-2GEOC48输入端口上接收到的每个有效MAC帧检查其内部交换数据库存储内容。当MSE在其数据库内没有发现匹配时,检测到未知的源和目的地MAC地址。通过在交换数据库存储器中生成一个新项目,同时在该位置存储必要的分辨信息,来学习这些未知源MAC地址。在搜索到一个学习过的目的地MAC地址之后,将返回该MAC地址控制表(MACAddress Control Table,MACT)项目的新内容。在每次源地址搜索后,MACT项目变化标志(aging flag)更新。那些在一个用户可配置的时间周期内(从5到7200秒)没有被接入的MACT项目将被移去。变化时间周期可用存储在寄存器MAC地址变化时间的低和高的16位值配置。在每个时间周期中,所有MACT项目变化检查1次。如果MAC项目在下一时间周期结束前没有使用,则将其删除。After turning on the power, S24-2GEOC48 can start address learning and MAC frame forwarding immediately. The MAC Search Engine (MSE) checks its internal switching database storage for each valid MAC frame received on the input port of the S24-2GEOC48. Unknown source and destination MAC addresses are detected when the MSE finds no match within its database. These unknown source MAC addresses are learned by creating a new entry in the exchange database memory while storing the necessary resolution information at that location. After searching for a learned destination MAC address, the new content of the MAC Address Control Table (MACAddress Control Table, MACT) item will be returned. After each source address search, the MACT item aging flag is updated. MACT items that have not been accessed for a user configurable period of time (from 5 to 7200 seconds) will be removed. The change time period can be configured with the low and high 16-bit values stored in register MAC Address Change Time. In each time period, all MACT item changes are checked 1 time. If a MAC entry is not used before the end of the next time period, it is deleted.

S24-2GEOC48支持隔离模式,此时端口0~23的每个端口只允许直接与基于OC-48的上行链路端口通信。因此,该模式保证来自端口0~23中一个端口的数据不会被其他端口直接看到。这种特性通常是在住宅接入到ISP(因特网服务供应商)应用中希望得到的,从而提供用户传送数据的保密性。S24-2GEOC48 supports isolation mode, at this time each port of port 0~23 is only allowed to communicate directly with the uplink port based on OC-48. Therefore, this mode ensures that data from one of ports 0-23 is not directly seen by other ports. This feature is typically desired in residential access to ISP (Internet Service Provider) applications, to provide privacy of user transmitted data.

S24-2GEOC48采用标准严格端口接口使外部主机接入内部寄存器,如图14所示的管理总线。这种接口由3个管脚组成:TRANSMIT DATA、RECEIVEDATA和GROUNG。TRANSMIT DATA和RECEIVE DATA管脚提供向S24-2GEOC48的地址和数据内容的输入。提供一个简单的2线串行接口,允许从EEPROM配置S24-2GEOC48。VHS108采用一个带一个I2C接口的4K比特EEPROM。S24-2GEOC48 uses a standard strict port interface to allow the external host to access the internal registers, as shown in Figure 14 the management bus. This interface consists of 3 pins: TRANSMIT DATA, RECEIVEDATA and GROUNG. The TRANSMIT DATA and RECEIVE DATA pins provide input to the address and data content of the S24-2GEOC48. A simple 2-wire serial interface is provided allowing configuration of the S24-2GEOC48 from EEPROM. The VHS108 uses a 4K-bit EEPROM with an I 2 C interface.

支持EOS应用的另外一个实例是系统供应商在其设备中提供连接10/100/1000M以太网交换机的以太网接口,以及连接SDH/SONET传输系统的OC-3/STM-1或OC-48/STM-16接口。在另外一端,采用相反的变换形式。Another example of supporting EOS applications is that system suppliers provide Ethernet interfaces connected to 10/100/1000M Ethernet switches in their equipment, and OC-3/STM-1 or OC-48/ STM-16 interface. At the other end, the opposite transformation is used.

图15所示为根据本发明一实施例的SDH专用网连接带EOS装置的10BASE-T和100BASE-T2层交换机、1000BASE-x交换机的示意图。如图所示,当在以太网交换机和传输设备(如ADM)之间进行通信时,本发明的EOS装置设置在10M/100M/1000M局域网2层交换机中。FIG. 15 is a schematic diagram of SDH private network connecting 10BASE-T and 100BASE-T2 layer switches and 1000BASE-x switches with EOS devices according to an embodiment of the present invention. As shown in the figure, when communicating between an Ethernet switch and a transmission device (such as ADM), the EOS device of the present invention is set in a 10M/100M/1000M LAN layer 2 switch.

图16所示为根据本发明另一实施例的SDH公网连接IEEE 802.3以太网3层交换机的示例图。如图所示,当在以太网交换机和传输设备(如ADM)之间以全线速高速通信时,EOS装置设置在10M/100M/1000M局域网3层交换机中。Fig. 16 shows an example diagram of an SDH public network connected to an IEEE 802.3 Ethernet layer 3 switch according to another embodiment of the present invention. As shown in the figure, the EOS device is set in a 10M/100M/1000M LAN layer 3 switch when communicating at full line speed between an Ethernet switch and a transmission device (such as ADM).

图15和16所示的示例中,根据本发明的EOS装置可另外设置在传输设备中(如ADM)。通过采用这种网络体系结构,本发明的益处在于可在传输设备中提供以太网接口。这种网络结构能扩展以太网传送距离,拓宽传输设备的应用范围,进行接入和传输,在简化SDH/SONET情况下,可用于DWDM,使以太网和SDH/SONET结合在一起,无需ATM设备。In the examples shown in FIGS. 15 and 16, the EOS device according to the present invention may be additionally provided in a transmission device (such as an ADM). By employing this network architecture, the present invention has the benefit of providing an Ethernet interface in the transmission device. This network structure can expand the transmission distance of Ethernet, broaden the application range of transmission equipment, and perform access and transmission. In the case of simplified SDH/SONET, it can be used for DWDM, so that Ethernet and SDH/SONET can be combined without ATM equipment. .

此外,将根据本发明的EOS装置连接在传输设备和局域网交换机之间,以提供点到点全双工同时双向运行,从而使以太网运行在广域网上成为一种实用方法。Furthermore, connecting the EOS device according to the present invention between the transmission equipment and the LAN switch to provide point-to-point full-duplex simultaneous bi-directional operation makes it a practical method for Ethernet to operate over a wide area network.

另外,通过SDH/SONET的VC的级联,以太网帧可以MPEG帧以及音频帧等进行封装并传送。同样,通过调节VC中的指针,相互隔离很远的发送端和接收端很容易达到同步。In addition, through the cascading of SDH/SONET VCs, Ethernet frames can be encapsulated and transmitted in MPEG frames and audio frames. Similarly, by adjusting the pointer in the VC, the sending end and the receiving end that are far away from each other can easily achieve synchronization.

                           工业实用性Industrial applicability

从上面参照附图的的说明可以看出,本发明揭示了一种直接将以太网适配到物理信道的新的接口装置和方法。本发明在电信SDH/SONET传输设备上提供以太网接口,或实现远程接入数据通信设备,如核心和边缘路由器、交换机设备、基于IP的网络接入设备、线卡、高速接口单元,如直接适配MAC帧到SDH/SONET。通过简化SDH/SONET,如采用简化的SDH/SONET,以太网可用于DWDM。As can be seen from the above description with reference to the accompanying drawings, the present invention discloses a new interface device and method for directly adapting Ethernet to physical channels. The present invention provides an Ethernet interface on telecommunication SDH/SONET transmission equipment, or realizes remote access to data communication equipment, such as core and edge routers, switch equipment, network access equipment based on IP, line cards, high-speed interface units, such as direct Adapt MAC frames to SDH/SONET. By simplifying SDH/SONET, such as adopting simplified SDH/SONET, Ethernet can be used for DWDM.

以上详细描述了本发明的各个方面,但是,应理解的是,本领域内的普通技术人员可依据本发明的公开对这些示例性实施例进行各种修改。所作出的这些修改和变型均落入由所附权利要求限定的本发明范围和宗旨内。Various aspects of the present invention have been described in detail above, but it should be understood that those skilled in the art can make various modifications to these exemplary embodiments based on the disclosure of the present invention. Such modifications and variations are made within the scope and spirit of the invention as defined by the appended claims.

Claims (86)

1.一种从上层设备向下层设备传送数据包的数据传输装置,包括:1. A data transmission device for transmitting data packets from an upper-level device to a lower-level device, comprising: 第一接收装置,用于从上层设备接收数据包,将所述数据包转换成第一类帧;The first receiving device is used to receive data packets from upper-layer equipment, and convert the data packets into first-type frames; 第一处理装置,用于将SAPI标识符所指示的数据包的字段和信息字段一起封装到所述第一类帧中,形成第二类帧;The first processing means is used to encapsulate the field and the information field of the data packet indicated by the SAPI identifier into the first type frame to form a second type frame; 第二处理装置,用于将所述第二类帧封装到净荷部分,并且插入相应于所述数据包的适当开销,形成第三类帧;和The second processing means is used for encapsulating the frame of the second type into the payload part, and inserting an appropriate overhead corresponding to the data packet to form a frame of the third type; and 第一发送装置,用于将所述第三类帧输出到下层设备。The first sending device is configured to output the third type frame to the lower layer device. 2.如权利要求1所述的数据传输装置,其中,所述第一处理装置将所述第二类帧封装成包括起始标志、含SAPI标识符的SAPI字段、控制字段、包括所述数据包的信息字段、FCS字段和结束标志的帧格式。2. The data transmission device as claimed in claim 1, wherein said first processing means encapsulates said second type of frame to include a start flag, a SAPI field containing a SAPI identifier, a control field, including said data The frame format of the packet's information field, FCS field, and end flag. 3.如权利要求2所述的数据传输装置,其中,所述第一接收装置是用于接收和缓冲输入数据包,并且适配上层设备的速率与下层设备的速率的第一FIFO。3. The data transmission device according to claim 2, wherein the first receiving means is a first FIFO for receiving and buffering input data packets and adapting the rate of the upper layer device and the rate of the lower layer device. 4.如权利要求3所述的数据传输装置,还包括扰码装置,用于对所述第二类帧用从多项式g(x)=x7+1生成的帧同步扰码序列执行扰码操作。4. The data transmission device as claimed in claim 3, further comprising scrambling means for performing scrambling on said second type frame with a frame synchronous scrambling sequence generated from polynomial g(x)= x7 +1 operate. 5.如权利要求4所述的数据传输装置,还包括指针处理装置,用于在所述第三类帧中插入指示净荷起始位置的指针。5. The data transmission device according to claim 4, further comprising pointer processing means for inserting a pointer indicating the starting position of the payload into the third type frame. 6.如权利要求5所述的数据传输装置,还包含成帧装置,用于将扰码后的第二类帧封装到所述第三类帧中。6. The data transmission device according to claim 5, further comprising framing means for encapsulating the scrambled second-type frames into the third-type frames. 7.如权利要求6所述的数据传输装置,其中,所述第二类帧的起始标志和结束标志是“0x7E”。7. The data transmission device according to claim 6, wherein the start flag and the end flag of the second type frame are "0x7E". 8.如权利要求7所述的数据传输装置,其中,所述标志“0x7E”在帧与帧之间的时间填充期间发送。8. The data transmission device according to claim 7, wherein the flag "0x7E" is transmitted during time filling between frames. 9.如权利要求8所述的数据传输装置,其中,所述成帧装置实现透明性处理(八位组填充)。9. The data transmission device according to claim 8, wherein said framing means implements transparency processing (octet stuffing). 10.如权利要求9所述的数据传输装置,其中,所述第一处理装置利用生成多项式1+x+x2+x4+x5+x7+x8+x10+x11+x12+x16+x22+x23+x26+x32对除起始标志、结束标志以及FCS字段本身之外帧的所有八位组计算32位帧校验序列字段。10. The data transmission device according to claim 9, wherein said first processing means utilizes a generator polynomial 1+x+x 2 +x 4 +x 5 +x 7 +x 8 +x 10 +x 11 +x 12 +x 16 +x 22 +x 23 +x 26 +x 32 Compute the 32-bit Frame Check Sequence field for all octets of the frame except the Start Flag, End Flag, and the FCS field itself. 11.如权利要求5所述的数据传输装置,其中,所述净荷部分包括一个或多个用于携带所述第一类帧的净荷子部分。11. The data transmission device according to claim 5, wherein the payload part comprises one or more payload subparts for carrying the first type frame. 12.如权利要求2所述的数据传输装置,其中,所述第一处理装置从所述第一接收装置获得SAPI。12. The data transmission device of claim 2, wherein the first processing device obtains the SAPI from the first receiving device. 13.如权利要求2所述的数据传输装置,其中,前一个所述第二类帧的结束标志是随后所述的第二类帧的起始标志。13. The data transmission device according to claim 2, wherein the end marker of the previous frame of the second type is the start marker of the subsequent frame of the second type. 14.如权利要求2所述的数据传输装置,里面还包括线路端包环回装置,用于将从第二类帧提取的第一类帧,环回到第一处理装置,用于测试。14. The data transmission device according to claim 2, further comprising a line-side packet loopback device for looping the first type frame extracted from the second type frame back to the first processing device for testing. 15.如权利要求11所述的数据传输装置,其中,所述净荷部分是虚容器或虚容器的级联,虚容器是净荷子部分。15. The data transmission device according to claim 11, wherein the payload part is a virtual container or a concatenation of virtual containers, and the virtual container is a payload sub-part. 16.根据前述权利要求中任何一个所述的数据传输装置,其中,所述开销包括以单个虚容器或级联方式的通道跟踪字节(J1)、通道BIP-8字节(B3)、信号标签字节(C2)、通道状态字节(G1)。16. The data transfer device according to any one of the preceding claims, wherein said overhead comprises lane trace bytes (J1), lane BIP-8 bytes (B3), signal Tag byte (C2), channel status byte (G1). 17.如权利要求2到15中任何一个所述的数据传输装置,其中,所述下层为物理层,并且是SDH/SONET或简化SDH/SONET。17. The data transmission device according to any one of claims 2 to 15, wherein the lower layer is a physical layer and is SDH/SONET or simplified SDH/SONET. 18.如权利要求2到15中任何一个所述的数据传输装置,其中,所述上层是以太网MAC层,所述第一类帧是MAC帧,所述第二类帧是LAPS帧,所述第三类帧是SDH/SONET帧。18. The data transmission device according to any one of claims 2 to 15, wherein the upper layer is an Ethernet MAC layer, the first type frame is a MAC frame, and the second type frame is a LAPS frame, so The third type of frame mentioned above is SDH/SONET frame. 19.如权利要求2到15中任何一个所述的数据传输装置,其中,所述数据传输装置内置在SDH/SONET传输设备中。19. The data transmission device according to any one of claims 2 to 15, wherein said data transmission device is built in SDH/SONET transmission equipment. 20.如权利要求2到15中任何一个所述的数据传输装置,其中,所述数据传输装置内置在以太网交换设备中。20. The data transmission device according to any one of claims 2 to 15, wherein the data transmission device is built in an Ethernet switching device. 21.如权利要求2到15中任何一个所述的数据传输装置,其中,所述数据传输装置是以太网交换设备、或以太网/快速以太网/千兆以太网2层/3层交换机或相关的路由器。21. The data transmission device according to any one of claims 2 to 15, wherein the data transmission device is an Ethernet switching device, or an Ethernet/Fast Ethernet/Gigabit Ethernet layer 2/3 layer switch or associated router. 22.如权利要求20所述的数据传输装置,其中,所述以太网交换设备是以太网/快速以太网/千兆以太网2层/3层交换机或相关的路由器。22. The data transmission device according to claim 20, wherein the Ethernet switching device is an Ethernet/Fast Ethernet/Gigabit Ethernet Layer 2/3 switch or a related router. 23.如权利要求18所述的数据传输装置,其中,所述数据传输设备通过转换器使接收到的MAC/GMAC帧从MII/GMII同步映射到SDH/SONET模块。23. The data transmission device according to claim 18, wherein, the data transmission device makes the received MAC/GMAC frame synchronously mapped from the MII/GMII to the SDH/SONET module through the converter. 24.如权利要求17所述的数据传输装置,其中,为了速率适配,所述数据传输装置以{0x7d,0xdd}的形式在所述第二类帧内加入可编程速率适配填充字节(0xdd)。24. The data transmission device according to claim 17, wherein, for rate adaptation, the data transmission device adds programmable rate adaptation padding bytes in the second type frame in the form of {0x7d, 0xdd} (0xdd). 25.一种从上层设备向下层设备传送数据包的数据传输方法,包括下列步骤:25. A data transmission method for transmitting data packets from an upper layer device to a lower layer device, comprising the following steps: 从所述上层设备接收和缓冲数据包,适配上层设备的速率和下层设备的速率,将该数据包转换成第一类帧;receiving and buffering a data packet from the upper-layer device, adapting the rate of the upper-layer device and the rate of the lower-layer device, and converting the data packet into a first-type frame; 将SAPI标识符所指示的数据包的字段和信息字段一起封装到所述第一类帧中,形成第二类帧;Encapsulating the field and the information field of the data packet indicated by the SAPI identifier into the first type of frame to form a second type of frame; 将所述第二类帧封装到净荷部分,并插入所述数据包的适当开销,形成第三类帧;和encapsulating the second type frame into a payload part, and inserting appropriate overhead of the data packet to form a third type frame; and 将所述第三类帧输出到下层设备。Output the third type frame to the lower layer device. 26.如权利要求25所述的数据传输方法,其中,所述第二类帧被封装成包括起始标志、含SAPI标识符的SAPI字段、控制字段、包括所述数据包的信息字段、FCS字段和结束标志的帧格式。26. The data transmission method according to claim 25, wherein the second type frame is encapsulated to include a start flag, a SAPI field containing a SAPI identifier, a control field, an information field including the data packet, an FCS Frame format for fields and end markers. 27.如权利要求26所述的数据传输方法,还包含扰码步骤,用于对第二类帧用以多项式g(x)=x7+1生成的帧同步扰码序列执行扰码操作。27. The data transmission method according to claim 26, further comprising a scrambling step for performing a scrambling operation on the frame synchronization scrambling sequence generated by the polynomial g(x)=x 7 +1 for the frame of the second type. 28.如权利要求27所述的数据传输方法,还包括用于在所述第三类帧中插入指示净荷部分起始位置的指针的步骤。28. The data transmission method according to claim 27, further comprising a step of inserting a pointer indicating the starting position of the payload part in the third type frame. 29.如权利要求28所述的数据传输方法,还包含将扰码后的第二类帧封装到第三类帧中的步骤。29. The data transmission method according to claim 28, further comprising the step of encapsulating the scrambled second-type frames into third-type frames. 30.如权利要求28所述的数据传输方法,其中,所述第二类帧的起始标志和结束标志是“0x7E”。30. The data transmission method according to claim 28, wherein the start flag and the end flag of the second type frame are "0x7E". 31.如权利要求30所述的数据传输方法,还包括透明性处理(八位组填充)的步骤。31. The data transmission method according to claim 30, further comprising the step of transparency processing (octet stuffing). 32.如权利要求31所述的数据传输方法,还包括计算步骤,用于利用生成多项式1+x+x2+x4+x5+x7+x8+x10+x11+x12+x16+x22+x23+x26+x32,对除起始标志、结束标志以及FCS字段本身之外帧的所有八位组计算32位帧校验序列。32. The data transmission method as claimed in claim 31 , further comprising a calculation step for utilizing the generator polynomial 1+x+x 2 +x 4 +x 5 +x 7 +x 8 +x 10 +x 11 +x 12 +x 16 +x 22 +x 23 +x 26 +x 32 Compute the 32-bit frame check sequence for all octets of the frame except the start flag, end flag, and the FCS field itself. 33.如权利要求32所述的数据传输方法,其中,所述净荷部分包括多个用于携带所述第一类帧的净荷子部分。33. The data transmission method according to claim 32, wherein the payload part comprises a plurality of payload subparts for carrying the first type frame. 34.如权利要求26所述的数据传输方法,其中,对于第二类帧,前一帧的结束标志是随后帧的起始标志。34. The data transmission method according to claim 26, wherein, for the second type of frame, the end marker of the previous frame is the start marker of the subsequent frame. 35.如权利要求26所述的数据传输方法,其中,所述净荷部分是虚容器或虚容器的级联,虚容器是净荷子部分。35. The data transmission method according to claim 26, wherein the payload part is a virtual container or a concatenation of virtual containers, the virtual container being a payload sub-part. 36.如权利要求26到35中任何一个所述的数据传输方法,其中,所述开销包括以单个虚容器或级联方式的通道跟踪字节(J1)、通道BIP-8字节(B3)、信号标签字节(C2)、通道状态字节(G1)。36. The data transmission method according to any one of claims 26 to 35, wherein said overhead includes channel trace bytes (J1), channel BIP-8 bytes (B3) in a single virtual container or in concatenation , signal label byte (C2), channel status byte (G1). 37.如权利要求26到35中任何一个所述的数据传输方法,其中,所述下层为物理层,并且是SDH/SONET或简化SDH/SONET。37. The data transmission method according to any one of claims 26 to 35, wherein said lower layer is a physical layer and is SDH/SONET or simplified SDH/SONET. 38.如权利要求26到35中任何一个所述的数据传输方法,其中,所述上层是以太网MAC层,所述第一类帧是MAC帧,所述第二类帧是LAPS帧,所述第三类帧是SDH/SONET帧。38. The data transmission method according to any one of claims 26 to 35, wherein the upper layer is an Ethernet MAC layer, the first type frame is a MAC frame, and the second type frame is a LAPS frame, so The third type of frame mentioned above is SDH/SONET frame. 39.如权利要求38所述的数据传输方法,其中,所述以太网层是IEEE802.3/802.3u/802.3z的以太网层。39. The data transmission method according to claim 38, wherein the Ethernet layer is an Ethernet layer of IEEE802.3/802.3u/802.3z. 40.如权利要求38所述的数据传输方法,还包括通过转换器使接收到的MAC/GMAC帧从MII/GMII同步映射到SDH/SONET模块的步骤。40. The data transmission method according to claim 38, further comprising the step of synchronously mapping the received MAC/GMAC frame from the MII/GMII to the SDH/SONET module through the converter. 41.如权利要求37所述的数据传输方法,为了速率适配,还包括以{0x7d,0xdd}的形式在所述第二类帧内加入可编程速率适配填充字节(0xdd)的步骤。41. The data transmission method according to claim 37, for rate adaptation, further comprising the step of adding a programmable rate adaptation stuffing byte (0xdd) in the second type frame in the form of {0x7d, 0xdd} . 42.一种从下层设备向上层设备发送由第一类帧形成的数据包的数据传输装置,包括:42. A data transmission device for sending a data packet formed by a first type frame from a lower layer device to an upper layer device, comprising: 第二接收装置,用于从所述下层设备接收数据包;a second receiving device, configured to receive data packets from the lower layer device; 帧解析装置,用于从所述第一类帧中移去开销;frame parsing means for removing overhead from said first type of frame; 第三处理装置,用于从所述第一类帧的净荷部分提取包含在信息字段中的数据和SAPI字段,形成第二类帧;The third processing means is used to extract the data contained in the information field and the SAPI field from the payload part of the first type frame to form the second type frame; 确定装置,用于比较SAPI字段的值与预设值,并且当SAPI字段数据值等于所设定的值时,确定输出实际提取的数据;Determining means for comparing the value of the SAPI field with a preset value, and when the data value of the SAPI field is equal to the set value, it is determined to output the actually extracted data; 第四处理装置,用于将所述第二类帧转换成与数据包相应的第三类帧;和a fourth processing means for converting the second type frame into a third type frame corresponding to the data packet; and 第二发送装置,用于将提取的数据包发送到所述上层设备。The second sending means is used for sending the extracted data packet to the upper layer device. 43.如权利要求42所述的数据传输装置,其中,每个所述第二类帧包括:起始标志、地址字段、控制字段、信息字段、FCS字段和结束标志,所述SAPI字段位于所述地址字段。43. The data transmission device as claimed in claim 42, wherein each of the second type frames includes: a start flag, an address field, a control field, an information field, an FCS field, and an end flag, and the SAPI field is located in the address field. 44.如权利要求43所述的数据传输装置,其中,所述第二发送装置是用于接收和缓冲输入数据包,并且适配下层设备的速率与上层设备的速率的第二FIFO。44. The data transmission device according to claim 43, wherein said second sending means is a second FIFO for receiving and buffering input data packets, and adapting the rate of the lower layer device and the rate of the upper layer device. 45.如权利要求44所述的数据传输装置,还包括解扰装置,用于对所述第一类帧用以多项式为g(x)=x7+1生成的帧同步扰码序列执行解扰操作。45. The data transmission device according to claim 44, further comprising a descrambling device for performing descrambling on the frame synchronization scrambling sequence generated by the polynomial g(x)=x 7 +1 for the first type frame disturbing operation. 46.如权利要求45所述的数据传输装置,还包括指针处理装置,用于采用指针对封装在所述第一类帧中的净荷部分起始位置定位。46. The data transmission device according to claim 45, further comprising pointer processing means for positioning the starting position of the payload part encapsulated in the first type frame by using the pointer. 47.如权利要求46所述的数据传输装置,其中,所述第二类帧的起始标志和结束标志是“0x7E”。47. The data transmission device according to claim 46, wherein the start flag and the end flag of the second type frame are "0x7E". 48.如权利要求47所述的数据传输装置,其中,所述帧解析装置移去帧间填充。48. The data transmission device according to claim 47, wherein said frame parsing means removes interframe padding. 49.如权利要求48所述的数据传输装置,其中,所述帧解析装置执行透明性处理。49. The data transmission device according to claim 48, wherein said frame parsing means performs transparency processing. 50.如权利要求49所述的数据传输装置,其中,通过利用生成多项式1+x+x2+x4+x5+x7+x8+x10+x11+x12+x16+x22+x23+x26+x32对起始标志和结束标志间的所有八位组计算FCS,来校验所述接收的FCS字段。50. The data transmission device according to claim 49, wherein, by using the generator polynomial 1+x+x 2 +x 4 +x 5 +x 7 +x 8 +x 10 +x 11 +x 12 +x 16 + x 22 +x 23 +x 26 +x 32 calculates the FCS for all octets between the start flag and the end flag to check the received FCS field. 51.如权利要求50所述的数据传输装置,还包括开销监控装置,用于在数据接收过程中监控所述的第一类帧中开销的状态错误。51. The data transmission device according to claim 50, further comprising an overhead monitoring device, configured to monitor the state error of the overhead in the first type frame during the data receiving process. 52.如权利要求51所述的数据传输装置,其中,所述净荷部分包括多个用于由所述第一类帧携带的净荷子部分。52. The data transmission apparatus of claim 51, wherein the payload portion comprises a plurality of payload sub-portions for being carried by the first type frame. 53.如权利要求52所述的数据传输装置,其中,对于第二类帧,前一帧的结束标志是前一帧之后的紧邻随后帧的起始标志。53. The data transmission device according to claim 52, wherein, for the second type of frame, the end marker of the previous frame is the start marker of the immediately following frame after the previous frame. 54.如权利要求53所述的数据传输装置,其中,所述净荷部分是虚容器或虚容器的级联,虚容器是净荷子部分。54. The data transmission device of claim 53, wherein the payload part is a virtual container or a concatenation of virtual containers, the virtual container being a payload sub-part. 55.如权利要求43到54中任何一个所述的数据传输装置,其中,所述开销包括以单个虚容器或级联方式的通道跟踪字节(J1)、通道BIP-8字节(B3)、信号标签字节(C2)、通道状态字节(G1)。55. The data transmission device according to any one of claims 43 to 54, wherein said overhead includes channel trace bytes (J1), channel BIP-8 bytes (B3) in a single virtual container or in concatenation , signal label byte (C2), channel status byte (G1). 56.如权利要求43到54中任何一个所述的数据传输装置,其中,所述下层为物理层,并且是SDH/SONET或简化SDH/SONET。56. The data transmission device according to any one of claims 43 to 54, wherein said lower layer is a physical layer and is SDH/SONET or Simplified SDH/SONET. 57.如权利要求43到54中任何一个所述的数据传输装置,其中,所述上层是以太网MAC层,所述第一类帧是SDH/SONET帧,所述第二类帧是LAPS帧,所述第三类帧是MAC帧。57. The data transmission device according to any one of claims 43 to 54, wherein the upper layer is an Ethernet MAC layer, the first type frame is an SDH/SONET frame, and the second type frame is a LAPS frame , the third type of frame is a MAC frame. 58.如权利要求43到54中任何一个所述的数据传输装置,其中,所述数据传输装置内置在SDH/SONET传输设备中。58. The data transmission device according to any one of claims 43 to 54, wherein said data transmission device is built in SDH/SONET transmission equipment. 59.如权利要求43所述的数据传输装置,其中,所述数据传输装置内置在以太网交换设备中。59. The data transmission device according to claim 43, wherein the data transmission device is built in an Ethernet switching device. 60.如权利要求43所述的数据传输装置,其中,所述数据传输装置是以太网交换设备、或以太网/快速以太网/千兆以太网2层/3层交换机或相关的路由器。60. The data transmission device according to claim 43, wherein the data transmission device is an Ethernet switching device, or an Ethernet/Fast Ethernet/Gigabit Ethernet Layer 2/3 switch or a related router. 61.如权利要求59所述的数据传输装置,其中,所述以太网交换设备是以太网/快速以太网/千兆以太网2层/3层交换机或相关的路由器。61. The data transmission device of claim 59, wherein the Ethernet switching device is an Ethernet/Fast Ethernet/Gigabit Ethernet Layer 2/3 switch or a related router. 62.如权利要求56到61中任何一个所述的数据传输装置,其中,为了速率适配,所述数据传输装置把以{0x7d,0xdd}的形式在所述第二类帧内存在的可编程速率适配填充字节去掉。62. The data transmission device according to any one of claims 56 to 61, wherein, for rate adaptation, the data transmission device uses {0x7d, 0xdd} in the form of {0x7d, 0xdd} in the second type of frame Program rate adaptation stuffing bytes removed. 63.如权利要求56到61中任何一个所述的数据传输装置,其中,所述数据传输装置在MII/GMII接口通过转换器使作为LAPS信息字段的MAC/GMAC帧从SDH/SONET模块同步映射到接收时钟。63. The data transmission device as described in any one of claims 56 to 61, wherein the data transmission device makes the MAC/GMAC frame as the LAPS information field synchronously mapped from the SDH/SONET module through a converter at the MII/GMII interface to the receive clock. 64.一种从下层设备向上层设备发送由第一类帧形成的数据包的数据传输方法,包括下列步骤:64. A data transmission method for sending a data packet formed by a first-type frame from a lower-level device to a higher-level device, comprising the following steps: 从所述下层设备接收数据包;receiving a data packet from the lower layer device; 从所述第一类帧中移去开销;removing overhead from said first type of frame; 从所述第一类帧的净荷部分提取SAPI字段和包含在信息字段中的数据,形成第二类帧;Extracting the SAPI field and the data contained in the information field from the payload part of the first type frame to form a second type frame; 将SAPI字段的值与预设值进行比较,当SAPI字段数据值等于所设定的值时,确定输出实际提取的数据;Compare the value of the SAPI field with the preset value, and when the data value of the SAPI field is equal to the set value, determine to output the actually extracted data; 将所述第二类帧转换成与所述数据包相应的第三类帧;和converting the second type frame into a third type frame corresponding to the data packet; and 将提取的数据包发送到所述上层设备。Send the extracted data packet to the upper layer device. 65.如权利要求64所述的数据传输方法,其中,每个所述第二类帧包括:起始标志、地址字段、控制字段、信息字段、FCS字段和结束标志,所述SAPI字段位于所述地址字段。65. The data transmission method as claimed in claim 64, wherein each said second type frame comprises: a start flag, an address field, a control field, an information field, an FCS field, and an end flag, and the SAPI field is located in the address field. 66.如权利要求65所述的数据传输方法,还包括接收和缓冲输入数据包,适配下层设备的速率与上层设备的速率的步骤。66. The data transmission method according to claim 65, further comprising the steps of receiving and buffering input data packets, and adapting the rate of the lower layer device and the rate of the upper layer device. 67.如权利要求66所述的数据传输方法,还包括扰码步骤,用于对所述第一类帧用以多项式为g(x)=x7+1生成的帧同步扰码序列执行解扰操作。67. The data transmission method as claimed in claim 66, further comprising a scrambling step, which is used to decompose the frame synchronous scrambling sequence generated by the polynomial g(x)=x 7 +1 for the first type frame disturbing operation. 68.如权利要求67所述的数据传输方法,还包括采用指针对封装在所述第一类帧中的净荷的起始位置定位的步骤。68. The data transmission method according to claim 67, further comprising the step of using a pointer to locate the starting position of the payload encapsulated in said first type frame. 69.如权利要求68所述的数据传输方法,其中,所述第二类帧的起始标志和结束标志是“0x7E”。69. The data transmission method according to claim 68, wherein the start flag and the end flag of the second type frame are "0x7E". 70.如权利要求69所述的数据传输方法,还包括移去帧间填充的步骤。70. The method of data transmission as claimed in claim 69, further comprising the step of removing interframe padding. 71.如权利要求70所述的数据传输方法,其中,通过利用生成多项式1+x+x2+x4+x5+x7+x8+x10+x11+x12+x16+x22+x23+x26+x32对第二类帧的起始标志和结束标志间的所有八位组计算FCS,来校验所述接收的FCS字段。71. The data transmission method as claimed in claim 70, wherein, by using the generator polynomial 1+x+x 2 +x 4 +x 5 +x 7 +x 8 +x 10 +x 11 +x 12 +x 16 + x 22 +x 23 +x 26 +x 32 calculate the FCS for all octets between the start flag and the end flag of the second type of frame to check the received FCS field. 72.如权利要求71所述的数据传输方法,还包括用于在接收过程中监控所述的第一类帧开销的状态错误的步骤。72. The data transmission method as claimed in claim 71, further comprising the step of monitoring the state error of said first type frame overhead during the receiving process. 73.如权利要求72所述的数据传输方法,其中,所述净荷部分包括多个被所述第一类帧携带的净荷子部分。73. The data transmission method according to claim 72, wherein said payload part comprises a plurality of payload subparts carried by said first type frame. 74.如权利要求73所述的数据传输方法,其中,对于第二类帧,前一帧的结束标志是随后帧的起始标志。74. The data transmission method according to claim 73, wherein, for the second type of frame, the end marker of the previous frame is the start marker of the subsequent frame. 75.如权利要求74所述的数据传输方法,其中,所述净荷部分是虚容器或虚容器的级联,虚容器是净荷子部分。75. The data transmission method of claim 74, wherein the payload portion is a virtual container or a concatenation of virtual containers, the virtual container being a payload sub-part. 76.如权利要求65到75中任何一个所述的数据传输方法,其中,所述开销包括以单个虚容器或级联方式的通道跟踪字节(J1)、通道BIP-8字节(B3)、信号标签字节(C2)、通道状态字节(G1)。76. The data transmission method according to any one of claims 65 to 75, wherein said overhead includes channel trace bytes (J1), channel BIP-8 bytes (B3) in a single virtual container or in concatenation , signal label byte (C2), channel status byte (G1). 77.如权利要求65到75中任何一个所述的数据传输方法,其中,所述下层为物理层,并且是SDH/SONET或简化SDH/SONET。77. The data transmission method according to any one of claims 65 to 75, wherein said lower layer is a physical layer and is SDH/SONET or simplified SDH/SONET. 78.如权利要求65到75中任何一个所述的数据传输方法,其中,所述上层是以太网MAC层,所述第一类帧是SDH/SONET帧,所述第二类帧是LAPS帧,所述第三类帧是MAC帧。78. The data transmission method according to any one of claims 65 to 75, wherein said upper layer is an Ethernet MAC layer, said first type frame is an SDH/SONET frame, and said second type frame is a LAPS frame , the third type of frame is a MAC frame. 79.如权利要求78所述的数据传输方法,其中,所述以太网层为IEEE802.3/802.3u/802.3z以太网层。79. The data transmission method according to claim 78, wherein the Ethernet layer is an IEEE802.3/802.3u/802.3z Ethernet layer. 80.如权利要求77所述的数据传输方法,为了速率适配,还包括把以{0x7d,0xdd}的形式在所述第二类帧内存在的可编程速率适配填充字节去掉的步骤。80. The data transmission method according to claim 77, for rate adaptation, further comprising the step of removing the programmable rate adaptation stuffing bytes existing in the second type frame in the form of {0x7d, 0xdd} . 81.如权利要求78所述的数据传输方法,还包括在MII/GMII接口通过转换器使LAPS信息字段(MAC/GMAC帧)从SDH/SONET模块到RX_CLK同步的步骤。81. The data transmission method as claimed in claim 78, further comprising the step of synchronizing the LAPS information field (MAC/GMAC frame) from the SDH/SONET module to the RX_CLK through the converter at the MII/GMII interface. 82.一种在上层设备和下层设备之间发送数据包的数据包接口装置,包括根据权利要求1所述的数据传输装置和根据权利要求42所述的数据传输装置。82. A data packet interface device for sending data packets between an upper layer device and a lower layer device, comprising the data transmission device according to claim 1 and the data transmission device according to claim 42. 83.如权利要求82所述的数据包接口装置,其中所述第二类帧被封装成包括起始标志、含SAPI标识符的SAPI字段、控制字段、包括所述数据包的信息字段、FCS字段和结束标志的帧格式。83. The packet interface device of claim 82, wherein the second type frame is encapsulated to include a start flag, a SAPI field containing a SAPI identifier, a control field, an information field including the packet, an FCS Frame format for fields and end markers. 84.如权利要求82或83所述的数据包接口装置,还包括线路端接口装置,用于从下层设备发送/接收数据包。84. A data packet interface device as claimed in claim 82 or 83, further comprising line-side interface means for sending/receiving data packets from an underlying device. 85.如权利要求84所述的数据包接口装置,还包括变换装置,用于在发送方向,使上层设备的数据包与输入到所述第一接收装置过程的数据包同步;在接收方向,使从第二发送装置提取的数据包与所述上层设备的数据包同步。85. The data packet interface device as claimed in claim 84, further comprising a conversion device, used to synchronize the data packet of the upper layer equipment with the data packet input to the first receiving means process in the sending direction; in the receiving direction, and synchronizing the data packets extracted from the second sending means with the data packets of the upper layer device. 86.如权利要求85所述的数据包接口装置,还包括:微处理器接口装置,用于使所述数据接口装置能访问其中的所有寄存器;用于测试的JTAG端口;用于暂时缓冲输入/输出配置数据的GPIO寄存器。86. The packet interface device of claim 85, further comprising: a microprocessor interface device for enabling said data interface device to access all registers therein; a JTAG port for testing; for temporarily buffering input / Output GPIO register for configuration data.
CNB00800854XA 1999-07-27 2000-07-26 Interface device and method for directly adapting Ethernet to physical channel Expired - Lifetime CN1149794C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN99116568A CN1250294A (en) 1999-07-27 1999-07-27 Adaption method for fusion of Ethernet with synchronizing digital system or synchronizing optical network
CN99116568.3 1999-07-27
PCT/CN2000/000211 WO2001008356A1 (en) 1999-07-27 2000-07-26 Interfacing apparatus and method for adpating ethernet directly to physical channel

Publications (2)

Publication Number Publication Date
CN1316146A CN1316146A (en) 2001-10-03
CN1149794C true CN1149794C (en) 2004-05-12

Family

ID=34195300

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB00800854XA Expired - Lifetime CN1149794C (en) 1999-07-27 2000-07-26 Interface device and method for directly adapting Ethernet to physical channel

Country Status (1)

Country Link
CN (1) CN1149794C (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1301599C (en) * 2002-06-04 2007-02-21 中兴通讯股份有限公司 Method for positioning up branch signal multi-frame and pointer
US7209978B2 (en) * 2002-12-13 2007-04-24 Cisco Technology, Inc. Arrangement in a router of a mobile network for optimizing use of messages carrying reverse routing headers
CN100464517C (en) * 2003-08-08 2009-02-25 华为技术有限公司 Device and method for identifying frame check sequence in general frame processing encapsulation mode
US8233462B2 (en) 2003-10-15 2012-07-31 Qualcomm Incorporated High speed media access control and direct link protocol
US9226308B2 (en) 2003-10-15 2015-12-29 Qualcomm Incorporated Method, apparatus, and system for medium access control
CN1894914B (en) * 2003-10-15 2010-06-16 高通股份有限公司 High-speed media access control with interoperability with legacy systems
US8842657B2 (en) 2003-10-15 2014-09-23 Qualcomm Incorporated High speed media access control with legacy system interoperability
US8462817B2 (en) 2003-10-15 2013-06-11 Qualcomm Incorporated Method, apparatus, and system for multiplexing protocol data units
US8483105B2 (en) 2003-10-15 2013-07-09 Qualcomm Incorporated High speed media access control
US8903440B2 (en) 2004-01-29 2014-12-02 Qualcomm Incorporated Distributed hierarchical scheduling in an ad hoc network
CN1310474C (en) * 2004-08-02 2007-04-11 中兴通讯股份有限公司 Address learning method based on station point information in resilient packet ring
US7664879B2 (en) * 2004-11-23 2010-02-16 Cisco Technology, Inc. Caching content and state data at a network element
US8600336B2 (en) 2005-09-12 2013-12-03 Qualcomm Incorporated Scheduling with reverse direction grant in wireless communication systems
CN101184098B (en) * 2007-12-11 2011-11-02 华为技术有限公司 Data transmission method and transmission apparatus
CN101286900B (en) * 2008-05-14 2010-07-28 华为技术有限公司 Port fault detection method, device and access device
US9129072B2 (en) * 2012-10-15 2015-09-08 Qualcomm Incorporated Virtual GPIO
CN102916759B (en) * 2012-10-26 2015-05-13 郑州威科姆科技股份有限公司 Method for calibrating E1 data frame precision time and processing time mark information
CN106502950B (en) * 2016-09-30 2019-10-01 株洲太昌电子信息技术股份有限公司 A kind of method and system for transmitting file by serial ports
CN110622489A (en) * 2017-04-14 2019-12-27 深圳配天智能技术研究院有限公司 Conversion device and control system
WO2018214167A1 (en) * 2017-05-26 2018-11-29 深圳配天智能技术研究院有限公司 Servo system, motor, absolute encoder, and signal processing circuit for same
CN107483279B (en) * 2017-10-10 2020-06-12 福建星网智慧软件有限公司 Method for local batch operation of network equipment based on Ethernet frame
CN112039629B (en) 2019-06-04 2023-11-17 华为技术有限公司 An Ethernet data transmission method and communication equipment
CN114389753B (en) * 2021-12-15 2024-01-30 中国电子科技集团公司第三十研究所 A POS interface capable of adapting to multiple rates
CN118250220B (en) * 2024-05-28 2024-08-13 科谱半导体(天津)有限公司 Data transmitting and receiving method, mac device, electronic equipment and storage medium
CN120186243B (en) * 2025-05-22 2025-08-01 浪潮电子信息产业股份有限公司 Interface conversion method, device, product and computer readable storage medium

Also Published As

Publication number Publication date
CN1316146A (en) 2001-10-03

Similar Documents

Publication Publication Date Title
CN1149794C (en) Interface device and method for directly adapting Ethernet to physical channel
CN1159888C (en) Data transmission device and method for transmitting data between physical layer and network layer side equipment
CN1618223A (en) Resilient multiple service ring
US7031341B2 (en) Interfacing apparatus and method for adapting Ethernet directly to physical channel
US6961348B2 (en) Data transmission apparatus and method for transmitting data between physical layer side device and network layer device
CN1027214C (en) Hub and interface for isochronous token-ring
WO2017202158A1 (en) Data forwarding method and device
US20040184450A1 (en) Method and system for transport and routing of packets over frame-based networks
US20040252688A1 (en) Routing packets in frame-based data communication networks
CN1268092C (en) Interface device and method for direct match of Ethernet with physical channel
CN1543162A (en) Method and adaptation device for mixed transmission of variable-length data packets and fixed-length cells
US8542694B1 (en) System and method for packet and time division multiplexed transport
CN1757210A (en) A method and apparatus for transporting packet data over an optical network
CN1720692A (en) Multi-service ring based on N-sub-ring structure of multiple FEs, GEs and 10GEs
WO2007104200A1 (en) A method for transferring data from high-speed ethernet to optical transport network as well as the data interface and device thereof
CN1367969A (en) Artificial line exchanging system and method, and sender-receiver-side transmitters for said system
CN1377162A (en) Data transmission device and method between physical layer and network layer
EP2011284A2 (en) Interface between a synchronous network and high-speed ethernet
US7245633B1 (en) Multiplexing method for gigabit ethernet signals in the synchronous digital hierarchy
EP1188276B1 (en) Method and node for routing a high-speed frame within a mesh-type network, and transmit end-station therefor
CN1677960A (en) Method and apparatus for exchanging asynchronous transfer mode, time division multiplexing and packet data
US20050249247A1 (en) Methods and apparatus for multiplexing multiple signal sources over a single full duplex ETHERNET link
JP4350610B2 (en) Data processing method and data processing apparatus
CN101019356A (en) Pause frame reconciliation in end-to-end and local flow control for ETHERNET over SONET
US8228943B2 (en) Systems and methods for providing framing mapping, muxing and data processing

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
CX01 Expiry of patent term

Granted publication date: 20040512

CX01 Expiry of patent term