WO2010069193A1 - Data communication method and ethernet device - Google Patents
Data communication method and ethernet device Download PDFInfo
- Publication number
- WO2010069193A1 WO2010069193A1 PCT/CN2009/074222 CN2009074222W WO2010069193A1 WO 2010069193 A1 WO2010069193 A1 WO 2010069193A1 CN 2009074222 W CN2009074222 W CN 2009074222W WO 2010069193 A1 WO2010069193 A1 WO 2010069193A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- rate
- chip
- mac
- phy
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/14—Multichannel or multilink protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/324—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/04—Distributors combined with modulators or demodulators
- H04J3/047—Distributors with transistors or integrated circuits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/24—Time-division multiplex systems in which the allocation is indicated by an address the different channels being transmitted sequentially
- H04J3/247—ATM or packet multiplexing
Definitions
- the present invention relates to the field of Ethernet technologies, and more particularly to a data communication method and an Ethernet device. Background of the invention
- the current broadband access-to-home technology mainly includes XDSL technology, Ethernet technology and FTTH technology, which use telephone lines, network cables and fiber-optic transmission media to the home.
- LRE Long Range Ethernet
- Ethernet technology can also be accessed by telephone lines, which greatly reduces the barriers to Ethernet in practical applications.
- LRE Long Range Ethernet
- an Ethernet device or a single board of a rack device
- an Ethernet device generally supports 24 ports, or It is 48 ports, and XDSL devices can be ⁇ to 72 ports.
- Ethernet devices such as Ethernet switches
- a medium independent interface ( ⁇ , Medium Independent Interface) is used between the physical layer (PHY) chip and the medium access control layer (MAC) chip in the Ethernet device.
- the Ethernet media interface includes: a media independent interface, and a cylinder.
- ⁇ refers to the media is copper shaft, fiber, cable, etc., because these media The related work is done by the PHY or MAC chip.
- ⁇ Supports 10 megabits and 100 megabits of operation.
- One ⁇ interface consists of 14 signal lines. Its support is flexible, but one drawback is that there is too much signal line for a ⁇ interface.
- the RMII is a cylindrical ⁇ interface that doubles the signal line in data transmission and reception, so it typically requires a 50 megabit bus clock.
- RMII is generally used in multi-port switches. It does not arrange for each port to receive and send two clocks. Instead, all data ports share one clock for all ports. This saves a lot of port data lines. .
- One port of the RMII requires seven signal lines, which is twice as small as ⁇ , so the switch can access ports with twice the data. Like ⁇ , RMII supports 10 Mbps and 100 Mbps bus interface speeds.
- SMII has fewer signal lines than RMII, and S means serial. Because it uses only one signal line to transmit data, and one signal line transmits and receives data, so in order to meet the 100 M demand on the clock, its clock frequency is 4 ⁇ high, reaching 125M, why use 125M, because the data Some control information is transmitted inside the line.
- SMII The port uses only 4 signal lines to transmit 100M signals, which is about twice as large as the RMII. SMII's support in the industry is very high. For the same reason, the data transmission and reception of all ports share the same external 125M clock.
- the interface between the Ethernet PHY chip and the MAC layer chip is one-to-one, that is, each physical layer interface uses a separate port interface to perform one-to-one communication with the corresponding MAC layer port, between the ports. Independent of each other, do not share data lines.
- FIG. 1 is a schematic diagram of a connection between a PHY chip and a MAC chip in an Ethernet device in the prior art.
- the number of ports supported by the MAC chip is relatively large, generally 24, and the number of ports supported by the PHY chip is relatively small, generally 8, so that one MAC chip can be connected.
- the interface between the PHY chip, the PHY chip and the MAC chip is one-to-one. The method shown in Figure 1 greatly simplifies the design and cost of the Ethernet PHY chip.
- the PHY chip Since the ports between the MAC and the PHY are one-to-one and the input and output rates are the same, only the PHY chip needs to be very With less buffer storage, and the number of ports supported by the PHY chip is small, the number of pins required is small, so the design and cost of the PHY chip can be greatly reduced.
- the drawback of this method is that the MAC layer chip cannot support a large number of ports.
- the new LRE technology supports variable rates below 100Mbps, such as 33Mbps and 50Mbps, and in broadband access-to-home applications, this speed is sufficient for many years. Cost and interface density are a key factor in broadband applications.
- the number of ports supported by the MAC layer chip is relatively large (for example, 24), while the number of ports supported by the PHY chip is relatively small (for example, 8), and each port requires a separate data interface, so the MAC layer
- the present invention provides two data communication methods that enable a single MAC chip in an Ethernet device to support a larger port density and reduce the cost of broadband access to the home application.
- the present invention also provides an Ethernet device in which a single MAC chip can support a larger port density, thereby reducing the cost of broadband access to the home application.
- the present invention also provides a PHY chip and a MAC chip that enable a single MAC chip in an Ethernet device to support a larger port density and reduce the cost of broadband access to the home application.
- the present invention discloses a data communication method, and the method includes:
- the physical layer PHY chip combines the n-channel first-rate physical layer data received from the n ports into a second-rate data, and sends the data to the MAC chip through an interface between the PHY chip and the media access control layer MAC chip; a natural number greater than one;
- the MAC chip When the MAC chip receives the data of the second rate from the PHY chip, it demultiplexes the data of the first rate of the n channels.
- the invention also discloses a data communication method, the method comprising:
- the MAC chip combines the n-channel first-rate MAC layer data into one second-rate data, and then sends the signal to the PHY chip through an interface between the PHY chip and the MAC chip; n is a natural number greater than one;
- the PHY chip When the PHY chip receives the data of the second rate from the MAC chip, it demultiplexes and synthesizes the first rate data.
- the invention also discloses an Ethernet device, comprising: a MAC chip and one or more PHY chips connected to the MAC chip; each PHY chip comprises: a first composite processing module; the MAC chip comprises: a second composite processing Module
- Each first composite processing module is configured to combine n-channel first rate data from n ports of the PHY chip to which it belongs to form a second rate data, and then send the signal to the MAC through an interface between the PHY chip and the MAC chip.
- Chip; n is a natural number greater than one;
- the second composite processing module is configured to receive the second rate data from the PHY chip and decompose the data into the first rate of the n channels.
- the present invention discloses a PHY chip.
- the PHY chip includes: a first composite processing module, configured to combine n-channel first rate data from n ports of the PHY chip to which the PHY chip belongs to form a second rate data, and then pass The interface between the PHY chip and the MAC chip is sent to the MAC chip; n is a natural number greater than one.
- the present invention discloses a MAC chip.
- the MAC chip includes: a second composite processing module, configured to combine the n-channel first-rate MAC layer data into a second-rate data, and pass between the PHY chip and the MAC chip.
- the interface is sent to the PHY chip; n is a natural number greater than one.
- the PHY chip of the present invention combines n first-rate physical layer data received from multiple ports into one second-rate data and sends the data to the MAC through an interface between the PHY chip and the MAC chip.
- a chip when the MAC chip receives the data of the second rate from the PHY chip, the technical solution of combining the data into multiple channels of the first rate, because the multi-path physical layer data is combined into one channel of data, and then passes through the PHY chip and the MAC.
- the ⁇ transmission between the chips thus enabling one ⁇ interface to support multiple physical interfaces, thereby enabling a single MAC chip to support a larger port density and reducing the cost of broadband access to the home application.
- FIG. 1 is a schematic diagram of connection between a PHY chip and a MAC chip in an Ethernet device in the prior art
- FIG. 2 is a flowchart of a data communication method according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of a data communication method in an embodiment of the present invention.
- FIG. 4 is a block diagram showing the structure of an Ethernet device according to an embodiment of the present invention. Mode for carrying out the invention
- the core idea of the present invention is: to change the one-to-one design between the physical layer port and the MAC layer port (the port) of the current Ethernet PHY chip to a many-to-one design, thereby the number of port pins in the same port. Under the condition, support a larger number of physical layer ports, improve transmission efficiency, and reduce equipment costs.
- FIG. 2 is a flow chart of a data communication method according to an embodiment of the present invention. As shown in Figure 2, the method includes the following steps:
- Step 201 The physical layer PHY chip combines the n-channel first-rate physical layer data received from the n ports into a second-rate data, and sends the data to the MAC through an interface between the PHY chip and the media access control layer MAC chip.
- Chip; n is a natural number greater than one.
- Step 202 When the MAC chip receives the data of the second rate from the PHY chip, the data is combined into n-channel first rate data.
- Figure 2 shows the process by which the PHY chip sends data to the MAC chip.
- the process of the MAC chip transmitting data to the PHY chip is: the MAC chip combines the n-channel first-rate MAC layer data into one second-rate data and sends the signal to the PHY chip through the interface between the PHY chip and the MAC chip; the PHY chip Upon receiving the data of the second rate from the MAC chip, the solution is combined into n second rate data.
- the first rate data of the n channels is combined into the second rate data of one channel in a time division multiplexing manner; wherein the second rate is at least n times the first rate.
- the interface between the PHY chip and the MAC chip is RMII, SMII or ⁇ .
- FIG. 3 is a schematic diagram of a data communication method in an embodiment of the present invention.
- the port between the ⁇ chip and the MAC chip Take the SMII as an example.
- the rate is 125 Mbps, and the rate at which valid data is transmitted is 100 Mbps.
- the LRE supports an external physical port of 50 Mbps, the same SMII port can transmit data of two 50 Mbps LRE physical ports.
- the valid data of the two 50 Mbps LRE ports can be time division multiplexed, for example, in bytes. Multiplexing, first transfer one byte of data of the first LRE port, then transfer one byte of data of another LRE port, and so on, the effective data of the two LRE ports is exactly 100Mbps.
- the same SMII port can transmit data of four 25 Mbps LRE physical ports.
- the effective data of the four 25 Mbps LRE ports are multiplexed in bytes, four The valid data of the LRE port is recombined to exactly 100 Mbps.
- the composite processing module in the PHY chip multiplexes and demultiplexes the data according to the data transmission direction and the data reception direction of the PHY chip with respect to the MAC chip. Since the data received by the composite processing module is variable rate data, and the composite data is the standard rate data that caters to the SMII port, the PHY chip requires two working clocks, namely: a variable rate reference clock and a standard rate reference. clock. Referring to FIG.
- the working clock of the LRE physical port of the PHY chip and the original PHY module therein is a variable rate reference clock;
- the working clock of the interface of the composite processing module of the PHY chip connected to the original PHY module is a variable rate reference clock,
- the working clock of the interface of the composite processing module connected to the SMII port is a standard rate reference clock;
- the working clock of the SMII port of the PHY chip is a standard rate reference clock.
- the composite processing module in the MAC chip multiplexes and demultiplexes the data according to the data transmission direction and the data reception direction of the MAC chip with respect to the PHY chip.
- the same MAC chip requires two operating clocks: the variable rate reference clock and the standard rate reference clock.
- the working clock of the SMII port of the MAC chip is a standard rate reference clock
- the working clock of the interface of the composite processing module of the MAC chip connected to the SMII interface is a standard rate reference clock
- the composite processing module is connected to the original MAC module.
- the working clock of the interface is a standard rate reference clock; the working clock of the original MAC module in the MAC chip is a standard rate reference clock; wherein the composite processing module in the MAC chip demultiplexes the data from the SMII interface in units of bytes ( Assuming that the PHY chip is multiplexed in units of bytes to obtain multiplexed variable rate data, the multiplexed variable rate data is multiplexed into a standard rate data in units of data frames, and then sent to the original
- the MAC module performs MAC layer processing, so a variable rate reference clock is required in the composite processing module.
- the demultiplexing may be performed according to a predetermined time division multiplexing manner. For example, multiplexing is performed in units of bytes when multiplexing, that is, one byte of data of the first LRE port is transmitted first, and then one byte of data of the second LRE port is transmitted, and thus, when it is demultiplexed, Demultiplexing the first byte received into the data of the first LRE port, demultiplexing the second byte into the data of the second LRE port, and demultiplexing the third byte into the first LRE The data of the port, the fourth byte is demultiplexed into the data of the second LRE port, and so on.
- multiplexing can also be performed in units of bits, that is, one bit of data of the first LRE port is transmitted first, and then one bit of data of the second LRE port is transmitted, and so on.
- the LRE port data carries the corresponding LRE port identifier, and the demultiplexing can be performed according to the LRE port identifier.
- LRE port LRE physical port
- Each LRE port has a variable rate data input of 50 Mbps.
- the LRE port and the original PHY module of the PHY chip both operate at a 50 Mbps reference clock, and the processing flow for transmitting data includes:
- the data input from the eight LRE ports reaches the composite processing module of the PHY chip at a rate of 50 Mbps after being processed by the original PHY module.
- the composite processing module of the PHY chip combines 8 channels of 50 Mbps data in units of bytes to obtain 4 channels of 100 Mbps data and sends them to the MAC chip through 4 SMII ports.
- the data of the LRE ports 1 and 2 are combined into one channel in units of bytes, and the data of the LRE physical ports 3 and 4 are combined into one channel in units of bytes, and the data of the LRE ports 5 and 6 are in bytes.
- the unit is combined into one way, and the data of the LRE ports 7 and 8 are combined into one way in units of bytes; taking the data combination of the LRE ports 1 and 2 as an example, the data of the LRE port 1 of one byte is transmitted first. Then transfer one byte of LRE port 2 data, then transfer one byte of LRE port 1 data, transfer one byte of LRE port 2 data, ..., and so on.
- the four SMII ports of the MAC chip receive the four channels of 100 Mbps data and send the data to the composite processing module of the MAC chip;
- the composite processing module of the MAC chip first decompresses four channels of 100 Mbps data and restores them to eight channels of 50 Mbps data.
- the decomposed processing in this step is described by taking the first 100 Mbps data as an example:
- the composite processing module of the MAC chip will be the first of the first 100 Mbps data.
- the byte is used as the data of LRE port 1
- the second byte is used as the data of LRE port 2
- the third byte is used as the data of port 1
- the fourth byte is used as the data of port 2, ... ..., and so on, to decompose the first 100 Mbps data into two
- the composite processing module of the MAC chip combines the demultiplexed eight channels of 50 Mbps data into two units of data frames, and obtains four channels of 100 Mbps data, and then sends the data to the original MAC module for MAC layer processing.
- the frame header of the data frame includes some MAC layer information required for MAC layer processing, including The source MAC address and the destination MAC address are the same. Therefore, in this step, the data needs to be combined into data of 100 Mbps in units of data frames, and then sent to the original MAC module for processing.
- the process of time division multiplexing in units of data frames in this step is similar to the above process of time division multiplexing in units of bytes, and will not be repeated here.
- the original MAC module of the MAC chip will correspond to the data of LRE ports 1 and 2, the data corresponding to LRE ports 3 and 4, the data corresponding to ports 5 and 6, and the data corresponding to ports 7 and 8, respectively.
- the frame is combined into 4 channels of data at a rate of 100 Mbps and sent to the composite processing module of the MAC chip.
- the composite processing module of the MAC chip decomposes each 100 Mbps data sent by the original MAC module in units of data frames to obtain 8 channels of 50 Mbps data.
- the composite processing module of the MAC chip will have the first 100 Mbps number.
- the two channels of 50 Mbps corresponding to LRE ports 1 and 2 are decomposed, and so on, and the second/three/four way 100 Mbps solution is combined to correspond to ports 3/4/7 and 4. /6/8 two-way 50Mbps data.
- the composite processing module of the MAC chip combines the eight channels of 50 Mbps data in units of bytes to obtain four channels of 100 Mbps data and transmits them to the PHY chip through four SMII ports.
- the four SMIIs of the PHY chip receive the four 100 Mbps data and send them to the composite processing module of the PHY chip.
- the composite processing module of the PHY chip decomposes the four channels of 100 Mbps data in units of bytes, and obtains eight channels of 50 Mbps data and transmits the data to the original PHY module;
- the original PHY module performs physical layer processing on the eight channels of 50 Mbps data, and then transmits them through the LRE ports 1 to 8, respectively.
- a 24-port MAC chip can only connect three 8-port PHY chips in the existing manner.
- the effective data rate of the SMII port is 100 Mbps
- the rate of the LRE port data is 50 Mbps
- a 24-port MAC chip can connect six 8-port PHY chips; if the LRE port data At a rate of 25 Mbps, a 24-port MAC chip can connect to 12 8-port PHY chips.
- the effective data rate of the RMII port is 50 Mbps. If the LRE port data rate is 25 Mbps, a 24-port MAC chip can connect six 8-port PHY chips.
- the device includes: a MAC chip and one or more PHY chips connected to the MAC chip; each PHY chip includes: a PHY module and a first composite processing module; and the MAC chip includes: a MAC module and a second composite Processing module; wherein Each PHY module is configured to process, after processing the physical layer data of the first rate of the n-channel received from the n ports of the chip to which it belongs, to the first composite module;
- Each first composite processing module is configured to combine the data of the first rate of the n-way from the n ports of the chip to which the UI module is sent into a second rate data, and then pass between the chip and the MAC chip.
- the interface is sent to the MAC chip;
- the second composite processing module is configured to receive the second rate data from the PHY chip, and decompose the data into the first rate of the n channels and send the data to the MAC module;
- the MAC module is configured to receive data from the second composite processing module and process the same.
- the MAC module is configured to send the MAC layer data to the second composite processing module
- the second composite processing module is configured to combine the n-channel first-rate MAC layer data into a second rate.
- the first composite processing module is configured to receive the second rate data from the MAC chip, and decompose the data into the n-channel first rate and send the data to a PHY module, configured to receive n-channel first rate data from the first composite processing module and perform processing separately.
- the first composite processing module is configured to combine the n-channel first rate data of the n ports from the PHY chip to which the PHY module is transmitted in a time division multiplexing manner, in units of bytes or bits.
- a second rate data configured to decompose the second rate data from the MAC chip into bytes or bits into n-channel first rate data, and send the data to the PHY module; wherein, the second rate is at least the first N times the rate.
- a second composite processing module configured to combine n first-rate MAC layer data in a time division multiplexing manner into a second rate data in units of bytes or bits; and to use the second rate data from the PHY chip, The data is decomposed into n-channel first rate in units of bytes or bits and sent to the MAC module.
- the second composite processing module is further used to be from a MAC mode
- the MAC layer data of the n first rate is combined into bytes or bits.
- the second rate data is sent to the PHY chip through the interface between the PHY chip and the MAC chip; further used to receive the second rate data from the PHY chip, and is decomposed into n channels in units of bytes or bits.
- the decomposed n-channel first rate data is combined into a second rate data in units of data frames in a time division multiplexing manner, and then sent to the MAC module.
- the working clock of the PHY chip includes: a reference clock of a first rate and a reference clock of a second rate; and an operating clock of the MAC chip includes: a reference clock of the first rate and a reference clock of the second rate.
- the interface between the PHY chip and the MAC chip is RMII, SMII or ⁇ .
- the chip of the present invention combines the n-level first-rate physical layer data received from a plurality of ports into a second-rate data and transmits the data to the MAC chip through an interface between the chip and the MAC chip.
- the MAC chip receives the data of the second rate from the PHY chip
- the technical solution of recombining into the data of the multiple first rate is formed by combining the multiple physical layer data into one data and then passing through the PHY chip and the MAC chip.
- the transmission between the two so that a single interface can support multiple physical interfaces, which enables a single MAC chip to support a larger port density, reducing the cost of broadband access to the home application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
Description
一种数据通信方法和一种以太网设备 技术领域 Data communication method and an Ethernet device
本发明涉及以太网技术领域, 尤指一种数据通信方法和一种以太网 设备。 发明背景 The present invention relates to the field of Ethernet technologies, and more particularly to a data communication method and an Ethernet device. Background of the invention
目前的宽带接入到户技术, 主要有 XDSL技术、 以太网技术和 FTTH技术, 分别使用电话线、 网线和光纤传输介质到户。 在新的长 巨离以太网 ( LRE , Long Range Ethernet )技术出现以后, 以太网技 术也可以使用电话线接入到户,这大大减少了以太网在实际应用中的 障碍。 但以太网设备和 XDSL设备相比, 还有一个比较明显的劣势 是支持的端口数目较少, 目前一台以太网设备(或者是一个机架设备 的单板)一般支持 24个端口, 或者最多是 48个端口, 而 XDSL设 备则可以^ ^到 72个端口。 The current broadband access-to-home technology mainly includes XDSL technology, Ethernet technology and FTTH technology, which use telephone lines, network cables and fiber-optic transmission media to the home. After the emergence of the new Long Range Ethernet (LRE) technology, Ethernet technology can also be accessed by telephone lines, which greatly reduces the barriers to Ethernet in practical applications. However, compared with XDSL devices, there is a significant disadvantage in that the number of supported ports is small. Currently, an Ethernet device (or a single board of a rack device) generally supports 24 ports, or It is 48 ports, and XDSL devices can be ^^ to 72 ports.
在实际应用当中, 高层楼宇很多, 比如一个 18层的楼宇大概有 128户, 而这种时候, 显然一台接入设备支持的端口数目越多越好。 因此, 以太网设备(如以太网交换机等)需要提供更多数目的物理端 口, 才可以进一步提高在宽带接入应用中的核心竟争力。 In practical applications, there are many high-rise buildings, such as an 18-story building with about 128 households. In this case, it is obvious that the number of ports supported by an access device is as high as possible. Therefore, Ethernet devices (such as Ethernet switches) need to provide a larger number of physical ports to further enhance the core competitiveness in broadband access applications.
目前, 以太网设备中物理层 (PHY ) 芯片和媒体访问控制层 ( MAC )芯片之间采用的是媒体独立接口( ΜΠ, Medium Independent Interface )„ 以太网媒体接口有: 媒体独立接口 ΜΠ、 筒化的媒体独立 接口 RMII和串行媒体独立接口 SMII, 所有的这些接口都从 ΜΠ 而 来。 ΜΠ 是指不用考虑媒体是铜轴、 光纤、 电缆等, 因为这些媒体处 理的相关工作都由 PHY 或者 MAC 芯片完成。 ΜΠ 支 持 10 兆和 100 兆的操作, 一个 ΜΠ接口由 14 根信号线组成, 它的支持还是比 较灵活的 , 但是有一个缺点是一个 ΜΠ接口用的信号线太多。 Currently, a medium independent interface (ΜΠ, Medium Independent Interface) is used between the physical layer (PHY) chip and the medium access control layer (MAC) chip in the Ethernet device. The Ethernet media interface includes: a media independent interface, and a cylinder. The media independent interface RMII and the serial media independent interface SMII, all of which come from the 。. ΜΠ refers to the media is copper shaft, fiber, cable, etc., because these media The related work is done by the PHY or MAC chip. ΜΠ Supports 10 megabits and 100 megabits of operation. One ΜΠ interface consists of 14 signal lines. Its support is flexible, but one drawback is that there is too much signal line for a ΜΠ interface.
RMII 是筒化的 ΜΠ 接口, 在数据的收发上它比 ΜΠ 接口少了 一倍的信号线, 所以它一般要求是 50 兆的总线时钟。 RMII —般用 在多端口的交换机, 它不是每个端口安排收、 发两个时钟, 而是所有 的数据端口共用一个时钟用于所有端口的收发,这里就节省了不少的 端口数据线数目。 RMII 的一个端口要求 7 根信号线, 比 ΜΠ 少了 一倍,所以交换机能够接入多一倍数据的端口。和 ΜΠ —样, RMII 支 持 10 兆和 100 兆的总线接口速度。 The RMII is a cylindrical ΜΠ interface that doubles the signal line in data transmission and reception, so it typically requires a 50 megabit bus clock. RMII is generally used in multi-port switches. It does not arrange for each port to receive and send two clocks. Instead, all data ports share one clock for all ports. This saves a lot of port data lines. . One port of the RMII requires seven signal lines, which is twice as small as ΜΠ, so the switch can access ports with twice the data. Like ΜΠ, RMII supports 10 Mbps and 100 Mbps bus interface speeds.
SMII有比 RMII 更少的信号线数目, S 表示串行的意思。 因为 它只用一根信号线传送发送数据, 一根信号线传输接收数据, 所以在 时钟上为了满足 100 M的需求, 它的时钟频率 4艮高, 达到了 125M, 为什么用 125M, 是因为数据线里面会传送一些控制信息。 SMII — 个端口仅用 4 根信号线完成 100M信号的传输,比起 RMII 差不多又 少了一倍的信号线。 SMII 在工业界的支持力度是很高的。 同理, 所 有端口的数据收发都公用同一个外部的 125M 时钟。 SMII has fewer signal lines than RMII, and S means serial. Because it uses only one signal line to transmit data, and one signal line transmits and receives data, so in order to meet the 100 M demand on the clock, its clock frequency is 4艮 high, reaching 125M, why use 125M, because the data Some control information is transmitted inside the line. SMII — The port uses only 4 signal lines to transmit 100M signals, which is about twice as large as the RMII. SMII's support in the industry is very high. For the same reason, the data transmission and reception of all ports share the same external 125M clock.
由上可见, 以太网的 PHY 芯片和 MAC 层芯片之间的接口都是 一对一的,即每个物理层接口使用独立的 ΜΠ接口与对应的 MAC 层 端口进行一对一通信, 端口之间互相独立, 不共享数据线。 It can be seen that the interface between the Ethernet PHY chip and the MAC layer chip is one-to-one, that is, each physical layer interface uses a separate port interface to perform one-to-one communication with the corresponding MAC layer port, between the ports. Independent of each other, do not share data lines.
图 1是现有技术中以太网设备中的 PHY芯片和 MAC芯片的连 接示意图。 如图 1所示, 在现有技术中, MAC芯片支持的端口数目 比较多, 一般为 24个, 而 PHY芯片支持的端口数目相对较少, 一般 为 8个, 因此, 一个 MAC芯片可以接多个 PHY芯片, PHY芯片和 MAC芯片之间的接口连接是一对一的。 图 1 所示的这种方法大大筒化了以太网 PHY 芯片的设计和成 本, 由于 MAC和 PHY之间的端口是一对一的, 并且输入和输出的 速率相同, 所以 PHY 芯片中只需要很少的緩沖存储, 并且 PHY 芯 片支持的端口数目不多, 所需要的管脚数目较少, 因此可以大大筒化 PHY芯片 的设计和成本。 但这种方法的缺陷是导致 MAC 层芯片无 法支持大的端口数目。 FIG. 1 is a schematic diagram of a connection between a PHY chip and a MAC chip in an Ethernet device in the prior art. As shown in FIG. 1 , in the prior art, the number of ports supported by the MAC chip is relatively large, generally 24, and the number of ports supported by the PHY chip is relatively small, generally 8, so that one MAC chip can be connected. The interface between the PHY chip, the PHY chip and the MAC chip is one-to-one. The method shown in Figure 1 greatly simplifies the design and cost of the Ethernet PHY chip. Since the ports between the MAC and the PHY are one-to-one and the input and output rates are the same, only the PHY chip needs to be very With less buffer storage, and the number of ports supported by the PHY chip is small, the number of pins required is small, so the design and cost of the PHY chip can be greatly reduced. However, the drawback of this method is that the MAC layer chip cannot support a large number of ports.
在新的 LRE技术支持 100Mbps速率以下的可变速率,如 33Mbps 和 50Mbps等, 并且在宽带接入到户应用中, 这个速度足够使用很多 年的时间。 在宽带应用中, 成本和接口密度是一个比较关键的因素。 The new LRE technology supports variable rates below 100Mbps, such as 33Mbps and 50Mbps, and in broadband access-to-home applications, this speed is sufficient for many years. Cost and interface density are a key factor in broadband applications.
由于现有技术中, MAC 层芯片支持的端口数目比较多 (比如 24 个) , 而 PHY 芯片支持的端口数目比较少 (比如 8个) , 而每个端 口需要各自独立的数据接口,所以 MAC 层芯片需要支持的管脚数目 比较多, 难以支持到比较大的数目, 比如 64个, 或者是 72个, 在这 种情况下, 即使采用 SMII 接口, 也是需要 4*64=256个管脚。 需要 的管脚数目太多,这是以太网交换机的 MAC 芯片无法在最优性价比 下做到单芯片支持大端口数目的主要原因。 因此, 如何在现有的 ΜΠ 接口上支持更大的端口密度和进一步降低成本成为了宽带接入到户 应用中的重要问题。 发明内容 In the prior art, the number of ports supported by the MAC layer chip is relatively large (for example, 24), while the number of ports supported by the PHY chip is relatively small (for example, 8), and each port requires a separate data interface, so the MAC layer The number of pins that the chip needs to support is relatively large, and it is difficult to support a relatively large number, such as 64 or 72. In this case, even if the SMII interface is used, 4*64=256 pins are required. The number of pins required is too large. This is the main reason why the MAC chip of an Ethernet switch cannot support the large number of ports on a single chip at an optimal price/performance ratio. Therefore, how to support larger port density and further reduce costs on existing ΜΠ interfaces has become an important issue in broadband access-to-home applications. Summary of the invention
本发明提供了两种数据通信方法, 该方法使得以太网设备中的单 个 MAC芯片能够支持更大的端口密度, 降低了宽带接入到户应用的 成本。 The present invention provides two data communication methods that enable a single MAC chip in an Ethernet device to support a larger port density and reduce the cost of broadband access to the home application.
本发明还提供了一种以太网设备, 该设备中的单个 MAC芯片能 够支持更大的端口密度, 从而降低了宽带接入到户应用的成本。 本发明还提供了一种 PHY芯片和一种 MAC芯片, 该 PHY芯片 和 MAC芯片使得以太网设备中的单个 MAC芯片能够支持更大的端 口密度, 降低了宽带接入到户应用的成本。 The present invention also provides an Ethernet device in which a single MAC chip can support a larger port density, thereby reducing the cost of broadband access to the home application. The present invention also provides a PHY chip and a MAC chip that enable a single MAC chip in an Ethernet device to support a larger port density and reduce the cost of broadband access to the home application.
为达到上述目的, 本发明的技术方案具体是这样实现的: 本发明公开了一种数据通信方法, 该方法包括: To achieve the above objective, the technical solution of the present invention is specifically implemented as follows: The present invention discloses a data communication method, and the method includes:
物理层 PHY芯片将从 n个端口接收的 n路第一速率的物理层数 据复合成一路第二速率的数据后, 通过 PHY芯片和媒体访问控制层 MAC芯片之间的接口发送给 MAC芯片; n为大于 1的自然数; The physical layer PHY chip combines the n-channel first-rate physical layer data received from the n ports into a second-rate data, and sends the data to the MAC chip through an interface between the PHY chip and the media access control layer MAC chip; a natural number greater than one;
MAC芯片接收到所述来自 PHY芯片的第二速率的数据时,解复 合成 n路第一速率的数据。 When the MAC chip receives the data of the second rate from the PHY chip, it demultiplexes the data of the first rate of the n channels.
本发明还公开了一种数据通信方法, 该方法包括: The invention also discloses a data communication method, the method comprising:
MAC芯片将 n路第一速率的 MAC层数据复合成一路第二速率 数据后, 通过 PHY芯片和 MAC芯片之间的接口发送给 PHY芯片; n为大于 1的自然数; The MAC chip combines the n-channel first-rate MAC layer data into one second-rate data, and then sends the signal to the PHY chip through an interface between the PHY chip and the MAC chip; n is a natural number greater than one;
PHY芯片接收到所述来自 MAC芯片的第二速率的数据时,解复 合成 n路第一速率数据。 When the PHY chip receives the data of the second rate from the MAC chip, it demultiplexes and synthesizes the first rate data.
本发明还公开了一种以太网设备, 该设备包括: MAC芯片和与 该 MAC芯片连接的一个以上的 PHY芯片; 每个 PHY芯片包括: 第 一复合处理模块; MAC芯片包括: 第二复合处理模块; The invention also discloses an Ethernet device, comprising: a MAC chip and one or more PHY chips connected to the MAC chip; each PHY chip comprises: a first composite processing module; the MAC chip comprises: a second composite processing Module
每个第一复合处理模块, 用于将来自自身所属 PHY芯片的 n个 端口的 n路第一速率的数据复合成一路第二速率数据后, 通过 PHY 芯片和 MAC芯片之间的接口发送给 MAC芯片; n为大于 1的自然 数; Each first composite processing module is configured to combine n-channel first rate data from n ports of the PHY chip to which it belongs to form a second rate data, and then send the signal to the MAC through an interface between the PHY chip and the MAC chip. Chip; n is a natural number greater than one;
第二复合处理模块, 用于接收来自 PHY芯片的第二速率数据, 并解复合成 n路第一速率的数据。 本发明公开了一种 PHY芯片, 该 PHY芯片包括: 第一复合处理 模块, 用于将来自自身所属 PHY芯片的 n个端口的 n路第一速率的 数据复合成一路第二速率数据后, 通过 PHY芯片和 MAC芯片之间 的接口发送给 MAC芯片; n为大于 1的自然数。 The second composite processing module is configured to receive the second rate data from the PHY chip and decompose the data into the first rate of the n channels. The present invention discloses a PHY chip. The PHY chip includes: a first composite processing module, configured to combine n-channel first rate data from n ports of the PHY chip to which the PHY chip belongs to form a second rate data, and then pass The interface between the PHY chip and the MAC chip is sent to the MAC chip; n is a natural number greater than one.
本发明公开了一种 MAC芯片, 该 MAC芯片包括: 第二复合处 理模块, 用于将 n路第一速率的 MAC层数据复合成一路第二速率数 据后, 通过 PHY芯片和 MAC芯片之间的接口发送给 PHY芯片; n 为大于 1的自然数。 The present invention discloses a MAC chip. The MAC chip includes: a second composite processing module, configured to combine the n-channel first-rate MAC layer data into a second-rate data, and pass between the PHY chip and the MAC chip. The interface is sent to the PHY chip; n is a natural number greater than one.
由上述技术方案可见, 本发明这种 PHY芯片将从多个端口接收 的 n 路第一速率的物理层数据复合成一路第二速率的数据并通过 PHY芯片和 MAC芯片之间的接口发送给 MAC芯片; MAC芯片接 收到所述来自 PHY芯片的第二速率的数据时, 解复合成多路第一速 率的数据的技术方案, 由于将多路物理层数据复合成一路数据后通过 PHY芯片和 MAC芯片之间的 ΜΠ传输,因此使得一个 ΜΠ接口可以 支持多个物理接口, 进而使得单个 MAC芯片能够支持更大的端口密 度, 降低了宽带接入到户应用的成本 附图简要说明 It can be seen from the foregoing technical solution that the PHY chip of the present invention combines n first-rate physical layer data received from multiple ports into one second-rate data and sends the data to the MAC through an interface between the PHY chip and the MAC chip. a chip; when the MAC chip receives the data of the second rate from the PHY chip, the technical solution of combining the data into multiple channels of the first rate, because the multi-path physical layer data is combined into one channel of data, and then passes through the PHY chip and the MAC. The ΜΠ transmission between the chips, thus enabling one ΜΠ interface to support multiple physical interfaces, thereby enabling a single MAC chip to support a larger port density and reducing the cost of broadband access to the home application.
图 1是现有技术中以太网设备中的 PHY芯片和 MAC芯片的连接 示意图; 1 is a schematic diagram of connection between a PHY chip and a MAC chip in an Ethernet device in the prior art;
图 2是本发明实施例一种数据通信方法的流程图; 2 is a flowchart of a data communication method according to an embodiment of the present invention;
图 3是本发明实施例中的数据通信方法的图形示意图; 3 is a schematic diagram of a data communication method in an embodiment of the present invention;
图 4是本发明实施例一种以太网设备的组成结构框图。 实施本发明的方式 4 is a block diagram showing the structure of an Ethernet device according to an embodiment of the present invention. Mode for carrying out the invention
本发明的核心思想是: 将目前以太网 PHY芯片的物理层端口和 MAC层端口 ( ΜΠ端口)之间的一对一的设计, 改为多对一的设计, 从而在同样 ΜΠ端口管脚数目的条件下,支持更多数目的物理层端口, 提高传输效率, 降低设备成本。 The core idea of the present invention is: to change the one-to-one design between the physical layer port and the MAC layer port (the port) of the current Ethernet PHY chip to a many-to-one design, thereby the number of port pins in the same port. Under the condition, support a larger number of physical layer ports, improve transmission efficiency, and reduce equipment costs.
为使本发明的目的、 技术方案及优点更加清楚明白, 以下对本发 明进一步详细说明。 In order to make the objects, technical solutions and advantages of the present invention more comprehensible, the present invention will be further described in detail below.
图 2是本发明实施例一种数据通信方法的流程图。 如图 2所示, 该方法包括以下步骤: 2 is a flow chart of a data communication method according to an embodiment of the present invention. As shown in Figure 2, the method includes the following steps:
步骤 201 , 物理层 PHY芯片将从 n个端口接收的 n路第一速率 的物理层数据复合成一路第二速率的数据后, 通过 PHY芯片和媒体 访问控制层 MAC芯片之间的接口发送给 MAC芯片; n为大于 1的 自然数。 Step 201: The physical layer PHY chip combines the n-channel first-rate physical layer data received from the n ports into a second-rate data, and sends the data to the MAC through an interface between the PHY chip and the media access control layer MAC chip. Chip; n is a natural number greater than one.
步骤 202, MAC芯片接收到所述来自 PHY芯片的第二速率的数 据时, 解复合成 n路第一速率的数据。 Step 202: When the MAC chip receives the data of the second rate from the PHY chip, the data is combined into n-channel first rate data.
图 2中给出了 PHY芯片向 MAC芯片发送数据的过程。 同样, MAC芯片向 PHY芯片发送数据的过程为: MAC芯片将 n路第一速 率的 MAC层数据复合成一路第二速率数据并通过 PHY芯片和 MAC 芯片之间的接口发送给 PHY芯片; PHY芯片接收到所述来自 MAC 芯片的第二速率的数据时, 解复合成 n路第二速率数据。 Figure 2 shows the process by which the PHY chip sends data to the MAC chip. Similarly, the process of the MAC chip transmitting data to the PHY chip is: the MAC chip combines the n-channel first-rate MAC layer data into one second-rate data and sends the signal to the PHY chip through the interface between the PHY chip and the MAC chip; the PHY chip Upon receiving the data of the second rate from the MAC chip, the solution is combined into n second rate data.
在本发明的一个实施例中,以时分复用方式将 n路的第一速率数 据复合成一路的第二速率数据; 其中, 第二速率至少为第一速率的 n 倍。且上述 PHY芯片和 MAC芯片之间的接口为 RMII、 SMII或 ΜΠ。 In an embodiment of the present invention, the first rate data of the n channels is combined into the second rate data of one channel in a time division multiplexing manner; wherein the second rate is at least n times the first rate. And the interface between the PHY chip and the MAC chip is RMII, SMII or ΜΠ.
图 3是本发明实施例中的数据通信方法的图形示意图。参见图 3 , 这里 ΡΗΥ芯片和 MAC芯片之间的端口以 SMII为例, SMII的端口 速率是 125Mbps, 其传输有效数据的速率是 100Mbps。 如果 LRE支 持 50Mbps 的对外的物理端口, 同样一个 SMII 端口可以传输两个 50Mbps的 LRE物理端口的数据,这两个 50Mbps的 LRE端口的有效 数据可以采用时分复用方式, 比如以字节为单位进行复用, 先传输第 一个 LRE端口的一个字节数据, 再传输另一个 LRE端口的一个字节 数据, 如此反复, 两个 LRE端口的有效数据复合后正好为 100Mbps。 同理, 如果 LRE支持 25Mbps的对外的物理端口, 同样一个 SMII端 口可以传输四个 25Mbps的 LRE物理端口的数据, 这四个 25Mbps的 LRE端口的有效数据以字节为单位进行复用, 四个 LRE端口的有效 数据复合后正好为 100Mbps。 3 is a schematic diagram of a data communication method in an embodiment of the present invention. Referring to Figure 3, here is the port between the ΡΗΥ chip and the MAC chip. Take the SMII as an example. The port of the SMII. The rate is 125 Mbps, and the rate at which valid data is transmitted is 100 Mbps. If the LRE supports an external physical port of 50 Mbps, the same SMII port can transmit data of two 50 Mbps LRE physical ports. The valid data of the two 50 Mbps LRE ports can be time division multiplexed, for example, in bytes. Multiplexing, first transfer one byte of data of the first LRE port, then transfer one byte of data of another LRE port, and so on, the effective data of the two LRE ports is exactly 100Mbps. Similarly, if the LRE supports 25 Mbps external physical port, the same SMII port can transmit data of four 25 Mbps LRE physical ports. The effective data of the four 25 Mbps LRE ports are multiplexed in bytes, four The valid data of the LRE port is recombined to exactly 100 Mbps.
在图 3中, 为了完成上述处理, 需要对现有的 PHY芯片和 MAC 芯片进行如下的改进: In Figure 3, in order to complete the above processing, the following improvements are required to the existing PHY chip and MAC chip:
( 1 )在原有 PHY芯片功能模块的基础上增加可变速率参考时钟 和复合处理模块 (1) Adding a variable rate reference clock and a composite processing module based on the original PHY chip function module
PHY芯片中的复合处理模块, 按照 PHY芯片相对于 MAC芯片 的数据发送方向和数据接收方向分别对数据进行复用和解复用处理。 由于复合处理模块所接收的数据是可变速率的数据,而复合后的数据 是迎合 SMII端口的标准速率数据,因此 PHY芯片需要两个工作时钟, 分别为: 可变速率参考时钟和标准速率参考时钟。 参见图 3 , PHY芯 片的 LRE物理端口和其中的原 PHY模块的工作时钟为可变速率参考 时钟; PHY芯片的复合处理模块的与原 PHY模块连接的接口的工作 时钟为可变速率参考时钟, 而复合处理模块的与 SMII端口连接的接 口的工作时钟为标准速率参考时钟; PHY芯片的 SMII端口的工作时 钟为标准速率参考时钟。 The composite processing module in the PHY chip multiplexes and demultiplexes the data according to the data transmission direction and the data reception direction of the PHY chip with respect to the MAC chip. Since the data received by the composite processing module is variable rate data, and the composite data is the standard rate data that caters to the SMII port, the PHY chip requires two working clocks, namely: a variable rate reference clock and a standard rate reference. clock. Referring to FIG. 3, the working clock of the LRE physical port of the PHY chip and the original PHY module therein is a variable rate reference clock; the working clock of the interface of the composite processing module of the PHY chip connected to the original PHY module is a variable rate reference clock, The working clock of the interface of the composite processing module connected to the SMII port is a standard rate reference clock; the working clock of the SMII port of the PHY chip is a standard rate reference clock.
( 2 )在原有 MAC 芯片功能模块的基础上增加可变速率参考时 钟和复合处理模块 (2) When adding variable rate reference based on the original MAC chip function module Clock and composite processing module
MAC芯片中的复合处理模块, 按照 MAC芯片相对于 PHY芯片 的数据发送方向和数据接收方向分别对数据进行复用和解复用处理。 同样 MAC芯片需要两个工作时钟, 分别为: 可变速率参考时钟和标 准速率参考时钟。 参见图 3 , MAC芯片的 SMII端口的工作时钟为标 准速率参考时钟; MAC芯片的复合处理模块的与 SMII接口连接的接 口的工作时钟为标准速率参考时钟, 而复合处理模块与原 MAC模块 连接的接口的工作时钟为标准速率参考时钟; MAC芯片中的原 MAC 模块的工作时钟为标准速率参考时钟; 其中 MAC芯片中的复合处理 模块将来自 SMII接口的数据以字节为单位解复用处理(假设 PHY芯 片是以字节为单位进行复用处理的)得到多路可变速率数据, 再将所 述多路可变速率数据以数据帧为单位复用成一路标准速率的数据后 发送给原 MAC模块进行 MAC层处理, 因此该复合处理模块中的需 要可变速率参考时钟。 The composite processing module in the MAC chip multiplexes and demultiplexes the data according to the data transmission direction and the data reception direction of the MAC chip with respect to the PHY chip. The same MAC chip requires two operating clocks: the variable rate reference clock and the standard rate reference clock. Referring to FIG. 3, the working clock of the SMII port of the MAC chip is a standard rate reference clock; the working clock of the interface of the composite processing module of the MAC chip connected to the SMII interface is a standard rate reference clock, and the composite processing module is connected to the original MAC module. The working clock of the interface is a standard rate reference clock; the working clock of the original MAC module in the MAC chip is a standard rate reference clock; wherein the composite processing module in the MAC chip demultiplexes the data from the SMII interface in units of bytes ( Assuming that the PHY chip is multiplexed in units of bytes to obtain multiplexed variable rate data, the multiplexed variable rate data is multiplexed into a standard rate data in units of data frames, and then sent to the original The MAC module performs MAC layer processing, so a variable rate reference clock is required in the composite processing module.
上述方案, 在以时分复用方式将多路数据复合成一路数据后, 当 在解复用时, 可以根据预定好的时分复用方式进行解复用。 例如在复 用时以字节为单位进行复用, 即先传输第一个 LRE端口的一个字节 数据, 再传输第二个 LRE端口的一个字节数据, 如此反复, 则在解 复用时, 将接收的第一个字节解复为第一个 LRE端口的数据, 将第 二个字节解复为第二个 LRE端口的数据, 将第三个字节解复为第一 个 LRE端口的数据, 将第四个字节解复为第二个 LRE端口的数据, 如此反复。 同理, 也可以以比特(bit )为单位进行复用, 即先传输第 一个 LRE端口的一个比特的数据, 再传输第二个 LRE端口的一个比 特数据, 如此反复。 In the above solution, after multiplexing the multiplexed data into one channel of data in a time division multiplexing manner, when demultiplexing, the demultiplexing may be performed according to a predetermined time division multiplexing manner. For example, multiplexing is performed in units of bytes when multiplexing, that is, one byte of data of the first LRE port is transmitted first, and then one byte of data of the second LRE port is transmitted, and thus, when it is demultiplexed, Demultiplexing the first byte received into the data of the first LRE port, demultiplexing the second byte into the data of the second LRE port, and demultiplexing the third byte into the first LRE The data of the port, the fourth byte is demultiplexed into the data of the second LRE port, and so on. Similarly, multiplexing can also be performed in units of bits, that is, one bit of data of the first LRE port is transmitted first, and then one bit of data of the second LRE port is transmitted, and so on.
此外, 在将多路数据复合成一路数据时, 还可以在复用后的每个 LRE端口数据中携带相应的 LRE端口标识,则解复用就可以根据 LRE 端口标识进行。 In addition, when multiplexing multiple channels of data into one channel of data, it is also possible to The LRE port data carries the corresponding LRE port identifier, and the demultiplexing can be performed according to the LRE port identifier.
下面给出一个具体的例子: 参照图 3 , 以连接 MAC芯片的一个 8 (相当于图 3中的 n等于 8 ) LRE物理端口 (以下筒称 LRE端口) 的 PHY芯片为例, 设所述 8个 LRE端口均有 50Mbps的可变速率数 据输入, 该 PHY芯片的 LRE端口和原 PHY模块均工作在 50Mbps 参考时钟下, 则发送数据的处理流程包括: A specific example is given below: Referring to FIG. 3, an PHY chip that connects an 8 (corresponding to n in FIG. 3 equal to 8) LRE physical port (hereinafter referred to as LRE port) of the MAC chip is taken as an example. Each LRE port has a variable rate data input of 50 Mbps. The LRE port and the original PHY module of the PHY chip both operate at a 50 Mbps reference clock, and the processing flow for transmitting data includes:
( 11 ) 8个 LRE端口输入的数据经过原 PHY模块进行物理层处 理后仍以 50Mbps的速率到达 PHY芯片的复合处理模块。 (11) The data input from the eight LRE ports reaches the composite processing module of the PHY chip at a rate of 50 Mbps after being processed by the original PHY module.
( 12 ) PHY芯片的复合处理模块将 8路的 50Mbps的数据以字节 为单位两两进行复合得到 4路 100Mbps的数据后通过 4个 SMII端口 发送至 MAC芯片。 (12) The composite processing module of the PHY chip combines 8 channels of 50 Mbps data in units of bytes to obtain 4 channels of 100 Mbps data and sends them to the MAC chip through 4 SMII ports.
本步骤中, LRE端口 1和 2的数据被以字节为单位复合成一路, LRE物理端口 3和 4的数据被以字节为单位复合成一路, LRE端口 5 和 6的数据被以字节为单位复合成一路, 以及 LRE端口 7和 8的数 据被以字节为单位复合成一路; 以其中的 LRE端口 1和 2的数据复 合为例, 先传输一个字节的 LRE端口 1 的数据, 然后传输一个字节 的 LRE端口 2的数据, 再传输一个字节的 LRE端口 1的数据, 传输 一个字节的 LRE端口 2的数据, ......, 依次类推。 In this step, the data of the LRE ports 1 and 2 are combined into one channel in units of bytes, and the data of the LRE physical ports 3 and 4 are combined into one channel in units of bytes, and the data of the LRE ports 5 and 6 are in bytes. The unit is combined into one way, and the data of the LRE ports 7 and 8 are combined into one way in units of bytes; taking the data combination of the LRE ports 1 and 2 as an example, the data of the LRE port 1 of one byte is transmitted first. Then transfer one byte of LRE port 2 data, then transfer one byte of LRE port 1 data, transfer one byte of LRE port 2 data, ..., and so on.
( 13 ) MAC芯片的 4个 SMII端口接收所述 4路 100Mbps的数 据后发送至 MAC芯片的复合处理模块; (13) The four SMII ports of the MAC chip receive the four channels of 100 Mbps data and send the data to the composite processing module of the MAC chip;
( 14 ) MAC芯片的复合处理模块首先将 4路 100Mbps的数据进 行解复合处理, 还原成 8路的 50Mbps的数据。 (14) The composite processing module of the MAC chip first decompresses four channels of 100 Mbps data and restores them to eight channels of 50 Mbps data.
这里对本步骤中的解复合处理以第一路 100Mbps 的数据为例进 行说明: MAC芯片的复合处理模块将第一路 100Mbps的数据的第一 个字节作为 LRE端口 1的数据, 将第二个字节作为 LRE端口 2的数 据, 将第三个字节作为端口 1的数据, 将第四个字节作为端口 2的数 据, ......, 依次类推, 将第一路的 100Mbps 的数据解复合成两路Here, the decomposed processing in this step is described by taking the first 100 Mbps data as an example: The composite processing module of the MAC chip will be the first of the first 100 Mbps data. The byte is used as the data of LRE port 1, the second byte is used as the data of LRE port 2, the third byte is used as the data of port 1, and the fourth byte is used as the data of port 2, ... ..., and so on, to decompose the first 100 Mbps data into two
50Mbps的数据, 且分别对应 LRE端口 1和 2。 其它路数据的解复合 过程相同, 这里不再复述。 50 Mbps data, and corresponding to LRE ports 1 and 2, respectively. The solution process of the other road data is the same, and will not be repeated here.
( 15 ) MAC芯片的复合处理模块将所述解复用后的 8路 50Mbps 的数据再以数据帧为单位两两进行复合得到 4路 100Mbps的数据后 发送至原 MAC模块进行 MAC层处理。 (15) The composite processing module of the MAC chip combines the demultiplexed eight channels of 50 Mbps data into two units of data frames, and obtains four channels of 100 Mbps data, and then sends the data to the original MAC module for MAC layer processing.
由于原 MAC模块是工作在标准的 100Mbps参考时钟下, 且在进 行 MAC层处理时是以数据帧为单位进行处理的, 数据帧的帧头包括 一些 MAC层处理需要用到的 MAC层信息, 包括源 MAC地址和目 的 MAC地址等, 因此本步骤中需要将数据再以数据帧为单位两两复 合成 100Mbps速率的数据后发送至原 MAC模块进行处理。本步骤中 以数据帧为单位进行时分复用的过程与上述以字节为单位进行时分 复用的过程类似, 这里不再复述。 Since the original MAC module works under the standard 100 Mbps reference clock and is processed in units of data frames when performing MAC layer processing, the frame header of the data frame includes some MAC layer information required for MAC layer processing, including The source MAC address and the destination MAC address are the same. Therefore, in this step, the data needs to be combined into data of 100 Mbps in units of data frames, and then sent to the original MAC module for processing. The process of time division multiplexing in units of data frames in this step is similar to the above process of time division multiplexing in units of bytes, and will not be repeated here.
下面将上述过程的逆过程, 即接收数据的处理流程筒单介绍如 下: The reverse process of the above process, that is, the processing flow of receiving data, is as follows:
( 21 ) MAC芯片的原 MAC模块将对应于 LRE端口 1和 2的数 据、 对应于 LRE端口 3和 4数据、 对应于端口 5和 6的数据以及对 应于端口 7和 8的数据, 分别以数据帧为单位复合成 100Mbps速率 的 4路数据后发送至 MAC芯片的复合处理模块。 (21) The original MAC module of the MAC chip will correspond to the data of LRE ports 1 and 2, the data corresponding to LRE ports 3 and 4, the data corresponding to ports 5 and 6, and the data corresponding to ports 7 and 8, respectively. The frame is combined into 4 channels of data at a rate of 100 Mbps and sent to the composite processing module of the MAC chip.
( 22 ) MAC 芯片的复合处理模块将原 MAC模块发送的每一路 100Mbps的数据以数据帧为单位进行解复合处理得到 8路 50Mbps的 数据。 (22) The composite processing module of the MAC chip decomposes each 100 Mbps data sent by the original MAC module in units of data frames to obtain 8 channels of 50 Mbps data.
本步骤中, MAC芯片的复合处理模块将第一路的 100Mbps的数 据以数据帧为单位解复合成对应于 LRE端口 1和 2的两路 50Mbps 的数据, 以此类推, 将第二 /三 /四路的 100Mbps解复合成对应于端口 3/4/7和 4/6/8的两路 50Mbps的数据。 In this step, the composite processing module of the MAC chip will have the first 100 Mbps number. According to the data frame unit, the two channels of 50 Mbps corresponding to LRE ports 1 and 2 are decomposed, and so on, and the second/three/four way 100 Mbps solution is combined to correspond to ports 3/4/7 and 4. /6/8 two-way 50Mbps data.
( 23 )MAC芯片的复合处理模块将所述 8路 50Mbps的数据以字 节为单位两两进行复合得到 4路 100Mbps的数据后通过 4个 SMII端 口发送至 PHY芯片。 (23) The composite processing module of the MAC chip combines the eight channels of 50 Mbps data in units of bytes to obtain four channels of 100 Mbps data and transmits them to the PHY chip through four SMII ports.
( 24 ) PHY芯片的 4个 SMII接收到所述 4路 100Mbps的数据后 发送至 PHY芯片的复合处理模块。 (24) The four SMIIs of the PHY chip receive the four 100 Mbps data and send them to the composite processing module of the PHY chip.
( 25 ) PHY芯片的复合处理模块将所述 4路 100Mbps的数据以 字节为单位进行解复合处理, 得到 8路的 50Mbps的数据后发送至原 PHY模块; (25) The composite processing module of the PHY chip decomposes the four channels of 100 Mbps data in units of bytes, and obtains eight channels of 50 Mbps data and transmits the data to the original PHY module;
( 26 )原 PHY模块对所述 8路 50Mbps的数据进行物理层处理后 分别通过 LRE端口 1 ~ 8发送出去。 (26) The original PHY module performs physical layer processing on the eight channels of 50 Mbps data, and then transmits them through the LRE ports 1 to 8, respectively.
可以看出, 通过上述方案, 一个 24端口的 MAC芯片, 以现有的 方式只能连接 3个 8端口的 PHY芯片。 而应用本发明的方案, SMII 端口的有效数据速率为 100Mbps的情况下, 如果 LRE端口数据的速 率为 50Mbps, 则一个 24端口的 MAC芯片, 可以连接 6个 8端口的 PHY芯片; 如果 LRE端口数据的速率为 25Mbps, 则一个 24端口的 MAC芯片, 可以连接 12个 8端口的 PHY芯片。 同样 RMII端口的 有效数据速率为 50Mbps, 如果 LRE端口数据的速率为 25Mbps, 则 一个 24端口的 MAC芯片, 可以连接 6个 8端口的 PHY芯片。 It can be seen that with the above scheme, a 24-port MAC chip can only connect three 8-port PHY chips in the existing manner. With the solution of the present invention, if the effective data rate of the SMII port is 100 Mbps, if the rate of the LRE port data is 50 Mbps, a 24-port MAC chip can connect six 8-port PHY chips; if the LRE port data At a rate of 25 Mbps, a 24-port MAC chip can connect to 12 8-port PHY chips. Similarly, the effective data rate of the RMII port is 50 Mbps. If the LRE port data rate is 25 Mbps, a 24-port MAC chip can connect six 8-port PHY chips.
图 4 是本发明实施例一种以太网设备的组成结构框图。 如图 4 所示, 该设备包括: MAC芯片和与该 MAC芯片连接的一个以上的 PHY 芯片; 每个 PHY 芯片包括: PHY模块和第一复合处理模块; MAC芯片包括: MAC模块和第二复合处理模块; 其中, 每个 PHY模块,用于将从自身所属 ΡΗΥ芯片的 η个端口接收的 η路第一速率的物理层数据处理完后发送给第一复合理模块; 4 is a block diagram showing the structure of an Ethernet device according to an embodiment of the present invention. As shown in FIG. 4, the device includes: a MAC chip and one or more PHY chips connected to the MAC chip; each PHY chip includes: a PHY module and a first composite processing module; and the MAC chip includes: a MAC module and a second composite Processing module; wherein Each PHY module is configured to process, after processing the physical layer data of the first rate of the n-channel received from the n ports of the chip to which it belongs, to the first composite module;
每个第一复合处理模块, 用于将 ΡΗΥ模块发送的来自自身所属 ΡΗΥ芯片的 η个端口的 η路第一速率的数据复合成一路第二速率数 据后, 通过 ΡΗΥ芯片和 MAC芯片之间的接口发送给 MAC芯片; 第二复合处理模块, 用于接收来自 PHY芯片的第二速率数据, 并解复合成 n路第一速率的数据后发送给 MAC模块; Each first composite processing module is configured to combine the data of the first rate of the n-way from the n ports of the chip to which the UI module is sent into a second rate data, and then pass between the chip and the MAC chip. The interface is sent to the MAC chip; the second composite processing module is configured to receive the second rate data from the PHY chip, and decompose the data into the first rate of the n channels and send the data to the MAC module;
MAC模块,用于接收来自第二复合处理模块的数据并进行处理。 在图 4中, MAC模块, 用于将 MAC层数据处理完后, 发送给 第二复合处理模块;第二复合处理模块,用于将 n路第一速率的 MAC 层数据复合成一路第二速率数据后, 通过 PHY芯片和 MAC芯片之 间的接口发送给 PHY芯片; 第一复合处理模块, 用于接收来自 MAC 芯片的第二速率数据,并解复合成 n路第一速率的数据后发送给 PHY 模块; PHY模块, 用于接收来自第一复合处理模块的 n路第一速率 数据并分别进行处理。 The MAC module is configured to receive data from the second composite processing module and process the same. In FIG. 4, the MAC module is configured to send the MAC layer data to the second composite processing module, and the second composite processing module is configured to combine the n-channel first-rate MAC layer data into a second rate. After the data is sent to the PHY chip through the interface between the PHY chip and the MAC chip; the first composite processing module is configured to receive the second rate data from the MAC chip, and decompose the data into the n-channel first rate and send the data to a PHY module, configured to receive n-channel first rate data from the first composite processing module and perform processing separately.
在图 4中, 第一复合处理模块, 用于以时分复用方式将 PHY模 块发送的来自自身所属 PHY芯片的 n个端口的 n路第一速率的数据, 以字节或比特为单位复合成一路第二速率数据; 用于将来自 MAC芯 片的第二速率数据,以字节或比特为单位解复合成 n路第一速率的数 据后发送给 PHY模块; 其中, 第二速率至少为第一速率的 n倍。 In FIG. 4, the first composite processing module is configured to combine the n-channel first rate data of the n ports from the PHY chip to which the PHY module is transmitted in a time division multiplexing manner, in units of bytes or bits. a second rate data; configured to decompose the second rate data from the MAC chip into bytes or bits into n-channel first rate data, and send the data to the PHY module; wherein, the second rate is at least the first N times the rate.
第二复合处理模块, 用于以时分复用方式将 n 路第一速率的 MAC层数据以字节或比特为单位复合成一路第二速率数据; 用于将 来自 PHY芯片的第二速率数据, 以字节或比特为单位解复合成 n路 第一速率的数据后发送给 MAC模块。 a second composite processing module, configured to combine n first-rate MAC layer data in a time division multiplexing manner into a second rate data in units of bytes or bits; and to use the second rate data from the PHY chip, The data is decomposed into n-channel first rate in units of bytes or bits and sent to the MAC module.
在图 4中, 所述第二复合处理模块, 进一步用于将来自 MAC模 块的第二速率的 MAC层数据以数据帧为单位解复合成 n路第一速率 的 MAC层数据后, 再将所述 n路第一速率的 MAC层数据以字节或 比特为单位复合成一路第二速率数据后通过 PHY芯片和 MAC芯片 之间的接口发送给 PHY芯片;进一步用于在接收来自 PHY芯片的第 二速率数据, 并以字节或比特为单位解复合成 n 路第一速率的数据 后,以时分复用方式将所述解复合后的 n路第一速率数据以数据帧为 单位复合成一路第二速率的数据后发送给 MAC模块。 In FIG. 4, the second composite processing module is further used to be from a MAC mode After the MAC layer data of the second rate of the block is decomposed into the first layer of the MAC layer data in the data frame unit, the MAC layer data of the n first rate is combined into bytes or bits. The second rate data is sent to the PHY chip through the interface between the PHY chip and the MAC chip; further used to receive the second rate data from the PHY chip, and is decomposed into n channels in units of bytes or bits. After the data of the rate, the decomposed n-channel first rate data is combined into a second rate data in units of data frames in a time division multiplexing manner, and then sent to the MAC module.
在图 4 中, PHY芯片的工作时钟包括: 第一速率的参考时钟和 第二速率的参考时钟; MAC 芯片的工作时钟包括: 第一速率的参考 时钟和第二速率的参考时钟。 In FIG. 4, the working clock of the PHY chip includes: a reference clock of a first rate and a reference clock of a second rate; and an operating clock of the MAC chip includes: a reference clock of the first rate and a reference clock of the second rate.
在图 4中,所述 PHY芯片和 MAC芯片之间的接口为 RMII、 SMII 或 ΜΠ。 In FIG. 4, the interface between the PHY chip and the MAC chip is RMII, SMII or ΜΠ.
需要说明的是, 为了筒单起见, 在图 4中只画出了一个 ΡΗΥ芯 片的内部结构, 而其它 ΡΗΥ芯片的内部结构未画出。 It should be noted that, for the sake of simplicity, only the internal structure of one core piece is shown in Fig. 4, and the internal structure of the other chip is not shown.
综上所述, 本发明这种 ΡΗΥ芯片将从多个端口接收的 η路第一 速率的物理层数据复合成一路第二速率的数据并通过 ΡΗΥ 芯片和 MAC芯片之间的接口发送给 MAC芯片; MAC芯片接收到所述来自 PHY 芯片的第二速率的数据时, 解复合成多路第一速率的数据的技 术方案, 由于将多路物理层数据复合成一路数据后通过 PHY芯片和 MAC芯片之间的 ΜΠ传输, 因此使得一个 ΜΠ接口可以支持多个物 理接口, 进而使得单个 MAC芯片能够支持更大的端口密度, 降低了 宽带接入到户应用的成本。 In summary, the chip of the present invention combines the n-level first-rate physical layer data received from a plurality of ports into a second-rate data and transmits the data to the MAC chip through an interface between the chip and the MAC chip. When the MAC chip receives the data of the second rate from the PHY chip, the technical solution of recombining into the data of the multiple first rate is formed by combining the multiple physical layer data into one data and then passing through the PHY chip and the MAC chip. The transmission between the two, so that a single interface can support multiple physical interfaces, which enables a single MAC chip to support a larger port density, reducing the cost of broadband access to the home application.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明 的保护范围, 凡在本发明的精神和原则之内所做的任何修改、 等同替 换、 改进等, 均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included. It is within the scope of the invention.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200810240258.3A CN101437035A (en) | 2008-12-18 | 2008-12-18 | Data communication method and Ethernet equipment |
| CN200810240258.3 | 2008-12-18 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2010069193A1 true WO2010069193A1 (en) | 2010-06-24 |
Family
ID=40711257
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2009/074222 Ceased WO2010069193A1 (en) | 2008-12-18 | 2009-09-25 | Data communication method and ethernet device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101437035A (en) |
| WO (1) | WO2010069193A1 (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101437035A (en) * | 2008-12-18 | 2009-05-20 | 杭州华三通信技术有限公司 | Data communication method and Ethernet equipment |
| WO2011152818A1 (en) | 2010-06-01 | 2011-12-08 | Hewlett-Packard Development Company, L.P. | Multiplexed serial media independent interface |
| CN103078849B (en) * | 2012-12-27 | 2015-09-30 | 中国航空工业集团公司第六三一研究所 | Multi-path serial interface protocol switches retransmission method |
| CN103718515B (en) * | 2013-03-21 | 2016-11-02 | 华为技术有限公司 | Transmission device, connection mechanism and method |
| CN105718401B (en) * | 2014-12-05 | 2018-08-21 | 上海航天有线电厂有限公司 | The multiplexing method and system of a kind of multichannel SMII signals to MII signals all the way |
| DE102021104130A1 (en) * | 2021-02-22 | 2022-08-25 | HARTING Electronics GmbH | Single Pair Ethernet switching device |
| CN113556619B (en) * | 2021-07-15 | 2024-04-19 | 广州市奥威亚电子科技有限公司 | Device and method for link transmission and method for link reception |
| CN114499762A (en) * | 2022-02-11 | 2022-05-13 | 深圳震有科技股份有限公司 | Communication system, multi-path forwarding method under 5G network and communication equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020181486A1 (en) * | 2001-06-01 | 2002-12-05 | Cantwell Robert W. | System and method of multiplexing data from multiple ports |
| CN1855858A (en) * | 2005-04-26 | 2006-11-01 | 杭州华为三康技术有限公司 | Device and method for duplexing and deduplexing physical layer of Ethernet |
| CN101035143A (en) * | 2006-03-09 | 2007-09-12 | 杭州华为三康技术有限公司 | Physical layer chip, method for transferring the signal and switcher |
| CN101437035A (en) * | 2008-12-18 | 2009-05-20 | 杭州华三通信技术有限公司 | Data communication method and Ethernet equipment |
-
2008
- 2008-12-18 CN CN200810240258.3A patent/CN101437035A/en active Pending
-
2009
- 2009-09-25 WO PCT/CN2009/074222 patent/WO2010069193A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020181486A1 (en) * | 2001-06-01 | 2002-12-05 | Cantwell Robert W. | System and method of multiplexing data from multiple ports |
| CN1855858A (en) * | 2005-04-26 | 2006-11-01 | 杭州华为三康技术有限公司 | Device and method for duplexing and deduplexing physical layer of Ethernet |
| CN101035143A (en) * | 2006-03-09 | 2007-09-12 | 杭州华为三康技术有限公司 | Physical layer chip, method for transferring the signal and switcher |
| CN101437035A (en) * | 2008-12-18 | 2009-05-20 | 杭州华三通信技术有限公司 | Data communication method and Ethernet equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101437035A (en) | 2009-05-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2010069193A1 (en) | Data communication method and ethernet device | |
| US20110310905A1 (en) | Method for data communication and device for ethernet | |
| US8488467B2 (en) | Method and system for a gigabit ethernet IP telephone chip with 802.1p and 802.1Q quality of service (QoS) functionalities | |
| KR101643671B1 (en) | Network device and information transmission method | |
| JP6254267B2 (en) | Reconfigurable and variable rate shared multitransponder architecture for flexible Ethernet based optical networks | |
| US7106760B1 (en) | Channel bonding in SHDSL systems | |
| JP2003524323A (en) | Crossbar integrated circuit with parallel channels for communication devices | |
| US20020021720A1 (en) | Multiplexed signal transmitter/receiver, communication system, and multiplexing transmission method | |
| CN102164062A (en) | System and method for frequency division multiplexed high speed physical layer devices | |
| US20060146808A1 (en) | Reconfigurable interconnect/switch for selectably coupling network devices, media, and switch fabric | |
| US20090232133A1 (en) | Ethernet access device and method thereof | |
| US9071373B2 (en) | Multiplexed serial media independent interface | |
| JP2015515195A (en) | Multiple serial media independent interface | |
| CN101166064A (en) | Conversion device used in radio frequency remote distribution system in communication system | |
| WO2007143944A1 (en) | Method and apparatus for forwarding data in ethernet | |
| CN100508602C (en) | Video data transmission system and method based on E1 interface | |
| CN100555917C (en) | Optical transferred synthetized accessing PDH device in multiple services | |
| CN101112034B (en) | Method and system for realizing crossover and transparent multiplexing based on general framing procedure | |
| US20100103954A1 (en) | Multiple Infiniband Ports Within A Higher Data Rate Port Using Multiplexing | |
| US20200169350A1 (en) | Method And Apparatus For Processing Bit Block Stream, Method And Apparatus For Rate Matching Of Bit Block Stream, And Method And Apparatus For Switching Bit Block Stream | |
| CN100473029C (en) | Gigabit Ethernet data service access device | |
| CN100586125C (en) | Ethernet physical layer cross device and cross method | |
| JP3785405B2 (en) | Data transmission system | |
| KR100284004B1 (en) | Host Digital Terminal in Demand-Density Optical Subscriber Transmitter | |
| CN102510484A (en) | Video optical transceiver, and video transmission system and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 09832875 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 09832875 Country of ref document: EP Kind code of ref document: A1 |