WO2006114032A1 - An appratus for multiplexing, demultiplxing and series multiplexing in the physical layer of the ethernet and the method thereof - Google Patents
An appratus for multiplexing, demultiplxing and series multiplexing in the physical layer of the ethernet and the method thereof Download PDFInfo
- Publication number
- WO2006114032A1 WO2006114032A1 PCT/CN2005/001985 CN2005001985W WO2006114032A1 WO 2006114032 A1 WO2006114032 A1 WO 2006114032A1 CN 2005001985 W CN2005001985 W CN 2005001985W WO 2006114032 A1 WO2006114032 A1 WO 2006114032A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- port
- multiplexing
- physical layer
- layer
- Prior art date
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/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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/4013—Management of data rate on the bus
- H04L12/40136—Nodes adapting their rate to the physical link properties
Definitions
- the present invention relates to Ethernet physical layer information processing, and in particular, to an Ethernet physical layer multiplexing, demultiplexing, multiplexing and demultiplexing apparatus and method, and an Ethernet physical layer multiplexing cascade apparatus and method. Background technique
- the specifications of the physical layer access chips on the market today are 10/100M adaptive, GE (Gigabit Ethernet, Gigabit Ethernet), and 10GE.
- the main function of this type of chip is to complete the physical layer codec, analog-to-digital conversion, clock recovery, and analog amplification, etc., to convert the physical layer signal into the MAC layer signal.
- the internal structure block diagram of the chip is as shown in FIG. 2 below, including: 8 analog interface units 21, 8 analog/digital conversion units 22, 8 clock and code decoding units 23, 8 MAC layer interface processing units 24, and 8 digital interface units 25, physical layer signals enter the physical layer multiplexing/demultiplexing chip from the analog interface 21, and the analog signals are converted into digital signals by the analog/digital conversion unit 22, and pass through the clock and encoding/decoding unit. 23 performing clock extraction and decoding processing, extracting data information and a clock signal of the MAC layer from the encoded signal of the physical layer, and then converting the decoded signal into a MAC layer signal format of the same specification through the MAC layer interface processing unit 24, Finally, it is sent to the MAC layer through the digital interface unit 25.
- the number of the analog interface unit 21 of the physical layer and the number of the digital interface unit 25 of the MAC layer is corresponding, and the internal principle block diagram is divided into eight paths.
- the flow from the digital interface of the MAC layer to the analog interface of the physical layer is exactly the opposite of the flow from the analog interface of the physical layer to the digital interface of the MAC layer.
- the digital signal of the MAC layer enters the Ethernet physical layer chip from the digital interface unit 25, after
- the MAC layer interface processing unit 24 obtains the physical layer signal format of different specifications required by each physical port, encodes it by the clock and encoding/decoding unit 23, and converts it into an analog signal through the analog/digital conversion unit 22, and finally passes through the analog interface unit. 21 is sent to the physical layer.
- broadband access is a technology development trend.
- the average bandwidth per user access is relatively low, such as 10M.
- the access bandwidth can meet more than 80% of broadband access applications.
- the MAC layer chip used in the current Ethernet products is biased toward the enterprise network market, and the access speed of each port is 100M or 1G/10G.
- the MAC layer chip and the above physical layer chip are applied to the broadband access, Each user needs a corresponding port, which results in a large amount of bandwidth waste.
- the uplink interface of the physical layer chip is a digital interface, it can only be connected to the MAC layer chip, and cannot support the downlink interface of another physical layer chip.
- the uplink interface of the physical layer chip is a digital interface, it cannot be directly connected to the downlink physical analog interface of the 100 Mbps physical layer chip. Therefore, it is desirable to be able to provide an apparatus and method for implementing physical layer multiplexing cascades. Summary of the invention
- the problem to be solved by the present invention is to provide an Ethernet physical layer multiplexing and demultiplexing apparatus and method, which solves the disadvantages of a MAC layer port corresponding to only one physical layer port in the prior art.
- Another technical problem to be solved by the present invention is to provide a device for implementing Ethernet physical layer multiplexing cascade to overcome the disadvantages that the physical layer chips of different rates cannot be cascaded in the prior art, and simplify the rack.
- Line card design for devices is to provide a device for implementing Ethernet physical layer multiplexing cascade to overcome the disadvantages that the physical layer chips of different rates cannot be cascaded in the prior art, and simplify the rack.
- Another technical problem to be solved by the present invention is to provide a method for implementing Ethernet physical layer multiplexing cascade, and the physical layer multiplexing technology and the multiplexing cascade technology are better applied in the broadband access field, and the MAC layer is reduced. Number of chip ports, low network access costs.
- an Ethernet physical layer multiplexing device which includes:
- the conversion unit receives one or more physical layer low speed signals, and converts each low speed signal into a MAC layer low speed signal;
- the signal multiplexing unit receives a MAC layer low-speed signal output by the physical layer signal conversion unit, and sets a port flag for each low-speed signal, and complexes the multi-channel low-speed signal with the port flag set by time division Use to output a MAC layer high speed signal.
- the signal multiplexing unit further includes: a port tag setting subunit, a port tag a storage subunit and a first random storage subunit,
- the port tag setting subunit is configured to set a port flag for each low speed signal;
- the port tag storage subunit is configured to store a port tag set by each low speed signal;
- the first random storage sub-unit is configured to store a low-speed signal for setting a port flag in units of time slots, and to read a MAC layer high-speed signal driven by the high-speed clock signal.
- the port flag is set according to an input physical port of the signal multiplexing unit or according to a service characteristic of the input low speed signal.
- the port flag is set by the data frame of the low speed signal or by the fixed data length of the low speed signal.
- the high speed clock signal is obtained by multiplying a low speed clock extracted from a low speed signal or directly by a clock generating circuit.
- the present invention also provides an Ethernet physical layer demultiplexing apparatus, including: a demultiplexing unit, receiving a MAC layer high speed signal, demultiplexing into a low speed signal, and determining a downlink sending port according to a port flag in the low speed signal;
- the MAC layer signal conversion unit receives the low speed signal sent by the demultiplexing unit, converts the signal into a physical layer signal, and sends the signal to the physical layer.
- the demultiplexing unit further includes: a port tag determining subunit and a second random storing subunit;
- the port tag determining subunit determines a downlink signal port according to a port flag in the received high speed signal
- the second random storage sub-unit is configured to store a high-speed signal, and at least two idle signals are read by driving of the low-speed clock signal, and sent to a corresponding downlink signal port in the signal conversion unit of the MAC layer.
- the low speed clock signal is derived from a low speed clock extracted from a low speed signal sent from the physical layer, or directly from a clock generation circuit.
- the present invention also provides an Ethernet physical layer multiplexing and demultiplexing apparatus, comprising: a physical layer signal and a MAC layer signal mutual conversion unit, and a signal multiplexing demultiplexing unit;
- the conversion unit receives one or more physical layer low speed signals, and converts each low speed signal into a MAC layer low speed signal;
- the MAC layer signal conversion unit receives the multiplexing demultiplexing unit The low-speed signal sent, converts the signal into a physical layer signal, and sends it to the physical layer;
- the signal multiplexing demultiplexing unit receives the MAC layer low speed signal output by the physical layer signal and the MAC layer signal mutual conversion unit, and sets a port flag for each low speed signal, and sets the multi-channel low speed signal with the port flag set by time. Multiplexing mode multiplexing output The MAC layer high-speed signal; and receives the MAC layer high-speed signal, demultiplexes into a low-speed signal, and determines the downlink transmission port according to the port flag in the low-speed signal.
- the present invention provides an Ethernet physical layer multiplexing method, including:
- the port is marked with the low rate MAC signal, and the port tag is stored;
- Step C further includes:
- the MAC layer signal low speed signal for setting the port flag is stored in units of time slots; and the high speed signal of the MAC layer is read by the high speed clock signal.
- the present invention provides an Ethernet physical layer demultiplexing method, including:
- the present invention provides an Ethernet physical layer multiplexing demultiplexing method, including: in an uplink direction,
- the low speed signal is output from the corresponding lower port.
- the present invention further provides an apparatus for implementing Ethernet physical layer multiplexing cascade, comprising at least two physical layer multiplexing chips, wherein an uplink digital interface of the uppermost physical layer multiplexing chip and a medium access control layer chip interface Connected, the downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and further includes:
- a digital-to-analog conversion module corresponding to each lower physical layer multiplexing chip, respectively
- the uplink digital interface of the layer physical layer multiplexing chip and the downlink analog interface of the upper physical layer multiplexing chip are connected, and are used for converting the high-speed digital signal outputted by the lower layer physical layer multiplexing chip uplink digital interface into an analog signal, and The low-speed analog signal outputted by the upper layer physical layer multiplexing chip downlink analog interface is converted into a digital signal.
- the digital/analog conversion module includes:
- a signal conversion circuit configured to perform conversion of the upper layer high speed digital signal to an analog signal, and conversion of the lower layer low speed analog signal to the digital signal;
- a clock circuit coupled to the signal conversion circuit for providing a clock signal required for signal conversion
- An encoding/decoding circuit is coupled to the signal conversion circuit for providing encoding and decoding required for signal conversion.
- the clock circuit and the encoding/decoding circuit are provided by the lower physical layer multiplexing chip.
- the digital/analog conversion module is integrated on a lower physical layer multiplexing chip corresponding thereto.
- the digital/analog conversion module and all the cascaded physical layer multiplexing chips are integrated on the same chip.
- the present invention also provides a method for implementing Ethernet physical layer multiplexing cascade, which is used for cascading two or more levels of physical layer multiplexing chips, wherein the upper layer of the physical layer multiplexing chip uplink digital interface and media The access control layer chip interface is connected, and the downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and the method includes the following steps:
- A When receiving an uplink signal, record a correspondence between the uplink signal and a physical port;
- the physical port to which the downlink signal should be distributed is searched according to the corresponding relationship between the recorded uplink signal and the physical port, and the downlink signal is sent to the physical port;
- step A specifically includes:
- the global physical port number is directly configured on the physical port of the lower layer physical layer multiplexing chip.
- step A specifically includes:
- the uplink signal is marked with an offset flag corresponding to the private physical port number according to the private physical port number;
- step A2 ′ is specifically:
- the offset flag is added before the frame header of the upstream data frame.
- the step C includes:
- the invention also provides an Ethernet multiplexing cascade device, comprising:
- a lower layer multiplexing device for multiplexing at least two low-speed analog signals from a user upstream direction into a high-speed digital signal, and recording a first-layer VLAN tag; and demultiplexing the high-speed digital signal in a downlink direction A low-speed analog signal, and selecting a downlink port according to the first layer VLAN tag;
- a signal conversion device having a digital interface coupled to the lower layer multiplexing device
- An upper multiplexing device coupled to the analog interface of the signal conversion device for multiplexing at least two high-speed analog signals from the upstream direction into higher-speed digital signals and recording corresponding second-layer VLAN tags; Downstream direction demultiplexes the higher speed digital signal into a high speed analog signal; selects the downstream port according to the above second layer VLAN tag.
- the present invention also provides an Ethernet multiplexing cascade device for connecting a plurality of users to a network, including an upper layer multiplexing device and a lower layer multiplexing device, wherein the upper layer multiplexing device decomposes the downlink signal and ranks first in the signal.
- the layer VLAN tag finds the correct downlink port; and the lower layer multiplexing device decomposes the downlink signal from the upper layer multiplexing device and finds the correct downlink port according to the second layer VLAN tag in the signal so that the signal arrives at the user.
- the present invention has the following advantages:
- the device of the invention adds signal multiplexing, demultiplexing or the existing physical layer chip
- the multiplexing and demultiplexing unit reaches one or a few high-speed uplink interfaces, and corresponds to multiple low-rate downlink physical interfaces.
- the method of the present invention is to input multiple low-rate physical ports in the uplink direction and multiplex them to a high rate by multiplexing the input of multiple physical layers.
- the MAC layer corresponds to the interface, and the multiplexing flag is marked during multiplexing, and source port learning is performed.
- the service from the high-speed MAC layer to the upper interface is sent to the corresponding downlink physical port through tag search, and the demultiplexing function is completed.
- one or a few high-speed uplink interfaces are achieved, corresponding to the goals of multiple low-rate downlink physical interfaces.
- the present invention is directed to the characteristics of an Ethernet physical layer multiplexing chip, and a digital/analog conversion module is added between the digital interface of the lower physical layer multiplexing chip and the analog interface of the upper physical layer multiplexing chip to implement a multi-layer physical layer complex.
- a digital/analog conversion module is added between the digital interface of the lower physical layer multiplexing chip and the analog interface of the upper physical layer multiplexing chip to implement a multi-layer physical layer complex.
- a high-density 10GE forwarding chip is a technology development trend. If such a high-performance multi-port 10GE forwarding chip is used as a forwarding engine for a rack-mounted device, the present invention provides a high-density low-speed.
- the interface board multiplexes multiple FE/GE physical layer interfaces to a higher-speed MAC layer interface, which greatly saves equipment line card costs.
- FIG. 1 is a view of a prior art Ethernet physical layer multiplexing demultiplexing chip
- FIG. 2 is an internal structural diagram of an Ethernet physical layer multiplexing demultiplexing chip of FIG. 1;
- FIG. 3 is a structural diagram of an Ethernet physical layer multiplexing device of the present invention.
- FIG 4 is an internal structural diagram of the signal multiplexing unit of Figure 3;
- FIG. 5 is a structural diagram of an Ethernet physical layer demultiplexing apparatus of the present invention.
- Figure 6 is a diagram showing the internal structure of the signal demultiplexing unit of Figure 5;
- FIG. 7 is a structural diagram of an Ethernet physical layer multiplexing demultiplexing apparatus of the present invention.
- FIG. 8 is an internal structural diagram of a signal multiplexing demultiplexing unit in FIG.
- FIG. 9 is a flowchart of a method for multiplexing an Ethernet physical layer
- Figure 10 is a flow chart of the Ethernet physical layer demultiplexing method.
- FIG. 11 is a structural block diagram of an apparatus for implementing Ethernet physical layer multiplexing cascade according to the present invention
- FIG. 12 is a structural block diagram of a digital/analog conversion module in an apparatus for implementing Ethernet physical layer multiplexing cascade according to the present invention
- FIG. 15 is a flowchart of implementing a second embodiment of a method for implementing Ethernet physical layer multiplexing cascade according to the present invention. detailed description
- the Ethernet physical layer multiplexing device of the present invention includes a physical layer signal conversion unit 31, a signal multiplexing unit 32, and a digital interface unit 33.
- the physical layer signal conversion unit 31 receives one or more physical layer low-speed signals, and converts each physical layer low-speed signal into a corresponding MAC layer low-speed signal by performing analog-to-digital conversion, clock extraction, decoding, and MAC interface processing on each signal.
- the signal multiplexing unit 32 receives the MAC layer low-speed signal output by the physical layer signal conversion unit 31, and sets a port flag for each MAC layer low-speed signal, and divides the multi-channel low-speed signal with the port flag set by time division multiplexing.
- the mode is multiplexed into a MAC layer high speed signal, which is sent to the MAC layer through the digital interface unit 33.
- the internal structure of the signal multiplexing unit 32 is as shown in FIG. 4, and includes: a port label setting subunit 321, a port label storage subunit 322, and a first random storage subunit 323.
- the port tag setting sub-unit 321 is configured to set a port flag for each MAC layer low-speed signal;
- the port tag storage sub-unit 322 is configured to store a port flag set for each low-speed signal;
- the first random storage sub-unit 323 It is used to store a MAC layer low speed signal for setting a port flag in units of time slots, and to read a MAC layer high speed signal driven by a high speed clock signal.
- the high speed clock signal can be obtained by multiplying the low speed clock extracted from the low layer signal of the physical layer, or directly by the clock generating circuit.
- the port tag is set by the input physical port of the signal multiplexing unit 32 or according to the traffic characteristics of the input low speed signal.
- the port tag setting sub-unit 321 in the signal multiplexing unit 32 first sets and inputs the physical basis according to the configuration.
- the input port tag can be a private tag set according to the input physical port, or a VLAN tag that enters an Ethernet data frame, a VPN tag, or any available tag at the head of the data frame.
- the port tag storage sub-unit 322 then stores the port tag, establishing a correspondence between the tag and the physical port.
- the input data frame does not carry the VLAN tag, set the pre-configured VLAN tag according to the corresponding input physical port, and remember which downlink physical ingress port the VLAN tag belongs to. .
- VLAN tagging if the input data frame itself already carries a VLAN Label, then you can replace the original VLAN tag according to the configuration, or set a VLAN tag in front of the existing tag; you can also recognize the VLAN tag carried by itself.
- the eight physical layer low-speed signals are FE signals, both of which are 100M, and the MAC layer high-speed signal is one GE.
- the marked data frame is transmitted from the GE port in time division multiplexing mode, since one GE port can transmit data frames of 10 FE ports, the data frames of the eight FE ports can be sent from one GE port.
- the port flag can also be set according to the fixed data length of the low speed signal. Just mark it before each fixed length. For example, a 1500-byte Ethernet data frame is normally set to an input physical port mark in front of the entire data frame, but it can also be a fixed length, such as one mark per 500 bytes divided from a physical port three times.
- Sending to the upstream multiplexed port has the advantage of reducing the storage pressure of the multiplexing and demultiplexing module, but many long data frames are broken down into multiple blocks, so the port tag needs to be able to represent the order of each block.
- the subsequent corresponding MAC layer processing also needs to support the reorganization of the data frame.
- the present invention is not limited thereto. It can be a multi-path physical layer low-speed signal multiplexed into one MAC layer high-speed signal, or multiple multi-channel low-speed signals multiplexed into several high-speed signals, thereby realizing one or a few high-speed pairs.
- the upper interface corresponds to multiple low-speed downlink physical interfaces.
- the Ethernet physical layer demultiplexing apparatus of the present invention comprises: a MAC layer signal converting unit 41, a signal demultiplexing unit 42 and a digital interface unit 43, and the signal demultiplexing unit 42 receives the MAC layer from the digital interface unit 43 through the digital interface unit 43.
- a high-speed signal the signal demultiplexing unit 42 demultiplexes the MAC layer high-speed signal into a MAC layer low-speed signal, and determines a downlink transmission port according to the port identifier in the low-speed signal
- the MAC layer signal conversion unit 41 receives the The low speed signal sent from the demultiplexing unit 42 converts the signal into a physical layer signal and transmits it to the physical layer.
- the signal demultiplexing unit 42 further includes: a port tag determining subunit 421 and a second random storing subunit 423; the second random storing subunit 423 is configured to store From the MAC layer high speed signal from the digital interface unit 43, the port flag determining subunit 421 receives the port flag in the high speed signal, and determines the downlink signal port by looking up the information in the port tag storage subunit 322; and passes the low speed
- the driving of the clock signal reads out at least two idle signals and sends them to corresponding downlink signal ports in the MAC layer signal converting unit 41.
- the low speed clock signal is derived from a low speed clock extracted from a low speed signal sent from the physical layer, or directly from a clock generation circuit.
- the downlink port is determined to be sent from the corresponding downlink physical port.
- the port tag For example, according to the VLAN tag of the incoming data frame of the uplink port, after finding the corresponding sending port, the VLAN tag can be carried or the VLAN tag can be removed.
- the physical layer demultiplexing device corresponding to the above-mentioned 8-port physical layer multiplexing device, the MAC layer high-speed data frame from the GE port must carry the port tag, that is, the specific value of the VLAN must be carried.
- the private tag is removed, and the internal private VLAN value is removed, and then sent out from the corresponding physical port.
- the demultiplexing process from one GE port to eight FE ports is completed.
- an Ethernet physical layer multiplexing and demultiplexing device can be formed, which is demultiplexed by multiplexing between two physical layer low speed signals and one MAC layer high speed signal.
- the method includes: an analog interface unit 61, an analog-to-digital conversion unit 62, a digital-to-analog conversion unit 63, a decoding unit 64, an encoding unit 65, a MAC interface processing unit 66, and a signal multiplexing demultiplexing unit 67.
- a digital interface unit 68 in the uplink direction, the two physical layer low speed signals respectively pass through the analog interface unit
- the signal multiplexing demultiplexing unit 67 receives the MAC layer low speed signal, and sets a port flag of the MAC layer low speed signal, and multiplexes two MAC layer low speed signals into one MAC layer in a time division multiplexing manner.
- the high speed signal is finally sent by the digital interface unit 68 to the MAC layer.
- the signal multiplexing and demultiplexing unit 67 receives the high-speed signal from one MAC layer through the digital interface unit 68, demultiplexes it into two MAC layer low-speed signals, and determines the sending port according to the port identifier;
- the MAC interface processing unit 66, the encoding unit 65, the digital to analog conversion unit 63, and the analog interface unit 61 are sent to the object The management layer.
- the internal structure of the signal multiplexing demultiplexing unit is as shown in FIG. 8, and includes a port tag setting subunit 671, a first random storage subunit 672, a port tag storage subunit 673, a port tag judging subunit 674, and a second random number.
- a storage subunit 675 the port tag setting subunit 671 is configured to set a port flag for each low speed signal; the port tag storage subunit 673 is configured to store a port flag set for each low speed signal; the first random storage The sub-unit 672 is configured to store the low-speed signal of the port flag set in units of time slots, and read out a MAC layer high-speed signal by driving the high-speed clock signal.
- the port tag determining sub-unit 674 determines a downlink signal port according to the port flag in the received high-speed signal and by searching for information in the port tag storage sub-unit 673; the second random storage sub-unit 675 is configured to store a high-speed signal At least two low-speed signals are read by driving of the low-speed clock signal, and sent to the corresponding downlink signal end ⁇ in the MAC layer signal conversion unit.
- the analog interface unit 61, the analog-to-digital conversion unit 62, the digital-to-analog conversion unit 63, the decoding unit 64, the encoding unit 65, the MAC interface processing unit 66, and the signal multiplexing demultiplexing unit 67 constitute a physical layer signal and a MAC layer.
- the signal conversion unit may also be an integrated body of the physical layer signal conversion unit and the MAC layer signal conversion unit in the above embodiment.
- the analog input port, the digital-to-analog conversion unit, the code decoding unit, and the MAC layer data processing unit in the Ethernet physical layer multiplexing demultiplexing device of the present invention correspond to, wherein the digital-to-analog conversion circuit and the analog-to-digital conversion circuit can be integrated.
- the unit may be a separate unit; the decoding unit and the coding unit may be integrated or may be a separate unit; the signal multiplexing unit and the signal demultiplexing unit may be integrated or may be separate units.
- An Ethernet physical layer multiplexing method of the present invention includes: sl01, converting at least two low-rate physical layer signals into corresponding low-rate MAC layer signals;
- Sl03 stores the MAC layer signal low-speed signal of the port flag in the slot unit; sl04, and reads the MAC layer high-speed signal with the high-speed clock signal.
- An Ethernet physical layer demultiplexing method of the present invention includes: s201, receiving a high-speed signal of a MAC layer;
- An Ethernet physical layer multiplexing demultiplexing method of the present invention includes:
- the low speed signal is output from the corresponding downstream port.
- the present invention is directed to the characteristics of the Ethernet physical layer multiplexing chip, and further increases the digital/analog conversion module between the digital interface of the lower physical layer multiplexing chip and the analog interface of the upper physical layer multiplexing chip, which will be further
- the digital signal outputted after being converted into an analog signal is output to an analog interface of the upper physical layer multiplexing chip, and the downlink interface of the upper physical layer multiplexing chip supports receiving and processing data frames with a private physical port path, and
- the learning and forwarding functions based on physical port paths enable the cascading of multiple layers of physical layer multiplexing chips.
- the added digital/analog conversion module is integrated on the lower physical layer multiplexing chip, so that the lower physical layer multiplexing chip provides an uplink digital interface and an uplink analog interface.
- the multiplexed chip is used alone, the digital interface is directly connected to the MAC layer chip, and when the cascading application is used, the analog interface is used to interface with the downstream analog interface of the upper chip.
- the present invention further increases a digital/analog conversion module between the digital interface of the lower physical layer multiplexing chip and the analog interface of the upper physical layer multiplexing chip, and the cascade of the two or more multiplexing chips is realized by the module.
- FIG. 11 shows an apparatus for implementing Ethernet physical layer multiplexing cascade according to the present invention.
- the lower physical layer multiplexing chip S11, S12 and the upper physical layer multiplexing chip S3 are common multiplexing chips of different rate grades, and the upper physical layer multiplexing chip S3 uplink digital interface and the same rate MAC layer chip S4 interface Connected, the lower physical layer multiplexing chip provides the user with an analog access port. How many analog ports of the upper physical layer multiplexing chip can provide the number of lower physical layer multiplexing chips to be connected to them.
- Each lower physical layer multiplexing chip corresponds to a digital/analog conversion module.
- the digital/analog conversion module S21 corresponds to the lower physical layer multiplexing chip S11
- the digital/analog conversion modules are respectively connected to the uplink digital interface of the lower physical layer multiplexing chip and the downlink analog interface of the upper physical layer multiplexing chip, and are used for converting the high speed digital signal outputted by the lower physical layer multiplexing chip uplink digital interface into The analog signal is converted into a digital signal by the low-speed analog signal outputted by the upper layer physical layer multiplexing chip downlink analog interface.
- the same structure as the above two-layer multiplexing cascade can also realize the cascade of multiple layers of physical layer multiplexing chips.
- the uplink digital interface of the uppermost physical layer multiplexing chip is connected to the MAC layer chip interface, and the downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and the physical layer multiplexing chips of the lowermost layer and the middle layer are connected.
- Corresponding to a digital-to-analog conversion module the conversion of the downlink physical interface of the lower physical layer multiplexing chip and the downlink analog interface signal of the upper physical layer multiplexing chip is realized.
- the uppermost physical layer multiplexing chip supports two application modes, one is a separate application mode, that is, a non-cascading physical layer multiplexing chip mode, in which case the physical port number of the multiplexing chip according to the data frame Put the corresponding private physical layer multiplexed port tag.
- the other is a cascade application mode, in which the multiplex chip recognizes the mark of the lower multiplex chip, and adds an offset mark to the original mark according to the port of the input signal to correctly identify the transmission of the input signal. path.
- the digital interface of the signal conversion circuit 41 is connected to the digital interface of the lower physical layer multiplexing chip, and the analog interface is connected to the analog interface of the upper physical layer multiplexing chip for completing the conversion of the relatively high speed digital signal from the upper layer to the analog signal. And the conversion of relatively low-speed analog signals from the lower layer to digital signals.
- the clock circuit 42 and the encoding/decoding circuit 43 respectively connected to the signal conversion circuit 41 supply the signal conversion circuit 41 with the clock signal and codec required for signal conversion, respectively.
- the common physical layer multiplexing chip includes a clock and a codec processing circuit. Therefore, the clock circuit and the encoding/decoding circuit required by the digital-to-analog conversion module can also be multiplexed by the corresponding lower physical layer.
- the chip is available.
- the digital/analog conversion module can also be integrated on the corresponding lower physical layer multiplexing chip, so that the multiplexing chip simultaneously provides a digital interface and an analog interface.
- the chip is used alone, the digital interface is directly connected to the MAC layer chip; in the cascade application, the analog interface is used to interface with the downlink analog interface of the upper chip.
- all the cascaded chips and the digital/analog conversion modules required for the cascade can be simultaneously integrated on the same chip to meet the access requirements of the low-end users, while reducing the number of ports of the chip used by the MAC layer. , reduce the cost of broadband access.
- this multiplexer can be applied to the local office or to the user.
- the cascading method of multiplexing 10 Mbps signals into 10GE signals as shown in Figure 13: Multiplex cascading 8 x 8 x 8 10 Mbps physical port signals into one 10GE signal.
- a GE multiplex chip directly cascades eight 100 Mbps multiplexed chips, and each 100 Mbps multiplex chip directly cascades eight 10 Mbps multiplexed chips, so that 8 x 8 x 8 10 Mbps interfaces can be directly output.
- the line card design of the rack-mounted device can be greatly simplified, and the network access cost can be reduced.
- FIG. 14 shows an implementation flow of a first embodiment of a method for implementing Ethernet physical layer multiplexing cascade according to the present invention:
- step 601 the global physical port number is directly configured on the physical port of the lowermost physical layer multiplexing chip.
- each port corresponds to a unique number, that is, global. Physical port number.
- the port number traverses the intermediate layer and the uppermost physical layer multiplexing chip to reach the interface of the MAC layer chip, while maintaining the global uniformity of the physical port.
- Step 602 The multiplexer receives the uplink signal, and establishes a source port path table according to the global physical port number, that is, establishes a correspondence between the uplink signal and the physical port, so that when the downlink signal is received, the downlink signal should be distributed according to the corresponding relationship. Physical port.
- the physical layer multiplexing chip After receiving the uplink signal, the physical layer multiplexing chip performs analog-to-digital conversion on the signal, and after the clock and the codec process, the data frame with the global physical port mark is sent to the MAC layer processing interface. After processing the data frame, the MAC layer processing interface sends a data frame with a global physical port tag to the upper physical layer multiplexing chip. However, the data frame cannot be directly sent to the analog port of the upper physical layer multiplexing chip, and it needs to be converted first, and the output digital signal is converted into an analog signal. Step 603: Convert the digital signal outputted by the uplink digital interface of the lower layer physical layer multiplexing chip into an analog signal, and output it to the downlink analog interface of the upper physical layer multiplexing chip connected thereto.
- Step 604 When the physical layer multiplexing chip receives the downlink signal, it searches for a physical port to which the downlink signal should be distributed according to the established source port path table, and sends the downlink signal to the physical port.
- the source port path table is searched according to the global port flag information in the downlink signal, so that the downlink physical port that the signal should be distributed can be obtained, so that the data frame can be sent out from the correct downlink port through the port.
- Step 605 Convert the analog signal outputted by the downlink analog interface of the upper layer physical layer multiplexing chip into a digital signal, and output it to the uplink digital interface of the lower physical layer multiplexing chip connected thereto.
- FIG. 15 shows an implementation flow of a second embodiment of a method for implementing Ethernet physical layer multiplexing cascade according to the present invention:
- a private physical port number is configured on the physical port of the physical layer multiplexing chip of each layer.
- each layer of the multiplexed chip has eight physical ports, and each chip separately configures the eight ports, that is, each of the physical layer multiplexed chips is individually configured.
- Physical port number For example, two 8-port 10Mbps multiplexers are labeled with a private physical port for the data frame coming in from the first physical port. Then, the data frames whose two flags are all 1 belong to the uplink interface of the two physical layer multiplexing chips, and therefore are sent to different downlink interfaces of the upper multiplexing chip.
- the upper multiplex chip adds a layer of offset mark, for example, the data frame coming in from the first uplink interface is preceded by an offset of 10; the data frame that travels from the second one is It is preceded by an offset of 20.
- the data frames with the lower physical port tags from the different interfaces are 1 and become physical port tags 11 and 21 respectively.
- the upper multiplexing chip can know its corresponding downlink physical end ⁇ according to the offset flag in the data frame.
- Step 702 When the physical layer multiplexing chip receives the uplink signal, the uplink signal is marked with an offset corresponding to the private physical port number according to the private physical port number, that is, the correspondence between the uplink signal and the physical port is established, so as to receive When the downlink signal is received, the physical port to which the downlink signal should be distributed is obtained according to the correspondence.
- the offset label corresponding to each physical port can be the same as or different from the configured private physical port number.
- the physical layer multiplexing chip After receiving the uplink signal, the physical layer multiplexing chip performs analog-to-digital conversion on the signal. After the clock and codec processing, the data frame with the lower offset flag is sent to the MAC layer processing interface. The MAC layer processing interface adds an offset flag corresponding to the layered physical port to the data frame. The offset flag can be added in the VLAN domain of the upstream data frame or in front of the frame header of the upstream data frame.
- the data frame with the multi-layer offset flag is then sent to the upper physical layer multiplexed chip.
- the data frame cannot be directly sent to the analog port of the upper physical layer multiplexing chip, and it needs to be converted first, and the output digital signal is converted into an analog signal.
- Step 703 Establish a source port path table on each layer physical layer multiplexing chip according to the offset flag.
- each layer of the physical layer multiplexing chip maintains its own source port path table, and each port in the source port path table in the physical layer multiplexing chip of each layer only corresponds to one layer of offset flag.
- Step 704 Convert the digital signal outputted by the uplink digital interface of the lower layer physical layer multiplexing chip into an analog signal, and output it to the downlink analog interface of the upper physical layer multiplexing chip connected thereto.
- Step 705 When the physical layer multiplexing chip receives the downlink signal, it searches for a physical port to which the downlink signal should be distributed according to the established source port path table, and sends the downlink signal to the physical port.
- the multiplexed chip acquires its destination address according to the received downlink signal; queries the source port path table maintained by the multiplexed chip according to the destination address, and obtains a physical port to which the downlink signals after demultiplexing should be distributed; The interface strips the offset flag of the outermost layer of the downlink signal; and then sends the downlink signal after the offset offset flag to the corresponding physical end ⁇ .
- Step 706 Convert the analog signal outputted by the downlink analog interface of the upper layer physical layer multiplexing chip into a digital signal, and output the digital signal to the upper digital interface of the lower physical layer multiplexing chip connected thereto.
- the present invention performs the functions of the digital interface and the analog interface through the lower layer physical layer multiplexing chip uplink interface, and performs multiplexing layers of different rate levels in two or more layers.
- the downlink interface of the upper physical layer multiplexing chip receives and processes the data frame with the private physical port path, and supports the learning and forwarding search function based on the physical port path, so that the data frame through the multi-layer cascade multiplexing is correct.
- the downlink interface is sent out.
- an Ethernet multiplexing cascade device of the present invention includes: a lower layer multiplexing device for multiplexing at least two low-speed analog signals from a user upstream direction into a high-speed digital signal, and recording a first a VLAN tag of one layer; demultiplexing the high speed digital signal into a low speed analog signal in the downlink direction, and according to the above first layer VLAN tag Selecting a downlink port; a signal conversion device having a digital interface coupled to the lower layer multiplexing device; an upper multiplexing device coupled to the analog interface of the signal conversion device for multiplexing at least two high-speed analog signals from the upstream direction Use as a higher speed digital signal and record the corresponding Layer 2 VLAN tag; Demultiplex the higher speed digital signal into a high speed analog signal in the downstream direction; Select the downstream port according to the Layer 2 VLAN tag above.
- An Ethernet multiplexing cascade device for connecting multiple users to a network, including an upper layer multiplexing device and a lower layer multiplexing device, wherein the upper layer multiplexing device decomposes the downlink signal according to the first layer VLAN in the signal The tag finds the correct downstream port; and the lower layer multiplexing device decomposes the downstream signal from the upper multiplexing device and finds the correct downstream port according to the second layer VLAN tag in the signal so that the signal reaches the user.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
An apparatus is for multiplexing and demultiplexing in physical layer of the Ethernet. The multiplexing and demultiplexing apparatus comprises a conversion unit for interconverting the signal of the physical layer and the signal of the MAC layer, and a multiplexing and demultiplexing unit. And a method for multiplexing, demultiplexing and multiplexing and demultiplexing the signal of the physical layer in the Ethernet comprises the step of: in the uplink, converting the low rate physical layer signal to the low rate MAC signal, setting and storing the port tag, and then multiplexing the MAC signal to the high rate MAC signal; in the downlink, demultiplexing the high rate MAC signal to the low rate MAC signal, reading the low rate MAC signal and the port tag by the low clock signal, determining the downlink port based on the port tag, and outputting the low rate MAC signal. The invention reaches the arm, by above described apparatus and method, that one or a few high rate uplink interfaces can respond to low rate downlink physical interfaces. An apparatus is for series multiplexing in the physical layer of the Ethernet and the method thereof.
Description
以太网物理层复用和解复用装置以及复用级连装置及方法 技术领域 Ethernet physical layer multiplexing and demultiplexing device and multiplexing cascade device and method
本发明涉及以太网物理层信息处理,尤其涉及一种以太网物理层 复用、解复用以及复用和解复用装置及方法、 以及以太网物理层复用 级连装置及方法。 背景技术 The present invention relates to Ethernet physical layer information processing, and in particular, to an Ethernet physical layer multiplexing, demultiplexing, multiplexing and demultiplexing apparatus and method, and an Ethernet physical layer multiplexing cascade apparatus and method. Background technique
在目前市场上的物理层接入芯片的规格有 10/100M 自适应、 GE ( Gigabit Ethernet, 千兆以太网)、 和 10GE等。 这类芯片的主要功能 是完成物理层的编解码、 模 /数转换、 时钟恢复、 以及模拟放大等, 将物理层信号转化为 MAC层信号。 以普通 8端口 100M物理层芯片 为例, 其内部结构如下图 1 所示, 包括对物理层的 8 个 FE ( Fast Ethernet, 快速以太网)模拟接口, 对 MAC ( Media Access Control, 媒体存取控制)层的 8个 FE数字接口。 从图 1中可以看出, 该芯片 两侧的接口速率都是匹配的, 即一个 FE的物理层模拟接口对应一个 FE的 MAC层数字接口。 The specifications of the physical layer access chips on the market today are 10/100M adaptive, GE (Gigabit Ethernet, Gigabit Ethernet), and 10GE. The main function of this type of chip is to complete the physical layer codec, analog-to-digital conversion, clock recovery, and analog amplification, etc., to convert the physical layer signal into the MAC layer signal. Take the common 8-port 100M physical layer chip as an example. Its internal structure is shown in Figure 1. It includes 8 FE (Fast Ethernet) analog interfaces to the physical layer. For MAC (Media Access Control), media access control. ) 8 FE digital interfaces of the layer. As can be seen from Figure 1, the interface rates on both sides of the chip are matched, that is, the FE physical layer analog interface corresponds to a FE MAC layer digital interface.
该芯片的内部结构框图如下面的图 2所示, 包括: 8个模拟接口 单元 21、 8个模 /数转换单元 22、 8个时钟和编码解码单元 23、 8个 MAC层接口处理单元 24和 8个数字接口单元 25, 物理层信号从所 述模拟接口 21进入物理层复用 /解复用芯片, 通过模 /数转换单元 22 将模拟信号转换为数字信号, 并经过时钟和编码 /解码单元 23进行时 钟的提取和解码处理, 从物理层的编码信号中提取出 MAC层的数据 信息和时钟信号, 然后通过 MAC层接口处理单元 24将解码后的信 号转换为相同规范的 MAC层信号格式, 最后通过数字接口单元 25 发送到 MAC层。从图 2可以看出,物理层的模拟接口单元 21和 MAC 层的数字接口单元 25数目是——对应的, 内部的原理框图分为 8路 实现。 从 MAC层的数字接口到物理层的模拟接口的流程与从物理层 的模拟接口到 MAC层的数字接口的流程正好相反, MAC层的数字 信号从数字接口单元 25进入以太网物理层芯片, 经过 MAC层接口 处理单元 24得到各物理端口所需的不同规范的物理层信号格式, 通 过时钟和编码 /解码单元 23进行编码, 并通过模 /数转换单元 22变换 为模拟信号, 最后通过模拟接口单元 21发送到物理层。 The internal structure block diagram of the chip is as shown in FIG. 2 below, including: 8 analog interface units 21, 8 analog/digital conversion units 22, 8 clock and code decoding units 23, 8 MAC layer interface processing units 24, and 8 digital interface units 25, physical layer signals enter the physical layer multiplexing/demultiplexing chip from the analog interface 21, and the analog signals are converted into digital signals by the analog/digital conversion unit 22, and pass through the clock and encoding/decoding unit. 23 performing clock extraction and decoding processing, extracting data information and a clock signal of the MAC layer from the encoded signal of the physical layer, and then converting the decoded signal into a MAC layer signal format of the same specification through the MAC layer interface processing unit 24, Finally, it is sent to the MAC layer through the digital interface unit 25. As can be seen from Fig. 2, the number of the analog interface unit 21 of the physical layer and the number of the digital interface unit 25 of the MAC layer is corresponding, and the internal principle block diagram is divided into eight paths. The flow from the digital interface of the MAC layer to the analog interface of the physical layer is exactly the opposite of the flow from the analog interface of the physical layer to the digital interface of the MAC layer. The digital signal of the MAC layer enters the Ethernet physical layer chip from the digital interface unit 25, after The MAC layer interface processing unit 24 obtains the physical layer signal format of different specifications required by each physical port, encodes it by the clock and encoding/decoding unit 23, and converts it into an analog signal through the analog/digital conversion unit 22, and finally passes through the analog interface unit. 21 is sent to the physical layer.
随着以太网交换机芯片技术的不断发展,宽带接入是一个技术发 展趋势, 在宽带接入领域, 每户接入的平均带宽比较低, 比如 10M
的接入带宽可以满足 80%以上的宽带接入应用。但目前的以太网产品 采用的 MAC层芯片偏向企业网市场, 每端口的接入速度都是 100M 或者是 1G/10G, 当该 MAC层芯片与上述物理层芯片应用在宽带接 入上时, 由于每个用户需要一个对应端口, 所以就造成了很大程度上 的带宽浪费。 With the continuous development of Ethernet switch chip technology, broadband access is a technology development trend. In the field of broadband access, the average bandwidth per user access is relatively low, such as 10M. The access bandwidth can meet more than 80% of broadband access applications. However, the MAC layer chip used in the current Ethernet products is biased toward the enterprise network market, and the access speed of each port is 100M or 1G/10G. When the MAC layer chip and the above physical layer chip are applied to the broadband access, Each user needs a corresponding port, which results in a large amount of bandwidth waste.
因此, 为了适应不同网络及速率的接入, 并简化设备线卡设计、 降低网络接入成本等目的, 希望能够提供物理层复用、解复用装置和 方法。 Therefore, in order to adapt to different network and rate access, simplify device line card design, reduce network access cost, etc., it is desirable to provide physical layer multiplexing and demultiplexing devices and methods.
此外,由于物理层芯片的上行接口是数字接口,所以只能与 MAC 层芯片对接, 而不能支持与另外一个物理层芯片的下行接口对接。 例 如, 有两个物理层芯片, 一个是 10Mbps 物理层芯片, 另外一个是 100Mbps物理层芯片。 由于二者的速率不同, 且目前 10Mbps物理层 芯片的上行接口由于是数字接口, 所以并不能直接与 100Mbps物理 层芯片的下行的物理模拟接口级连。 因此, 希望能够提供实现物理层 复用级连的装置和方法。 发明内容 In addition, since the uplink interface of the physical layer chip is a digital interface, it can only be connected to the MAC layer chip, and cannot support the downlink interface of another physical layer chip. For example, there are two physical layer chips, one is a 10 Mbps physical layer chip, and the other is a 100 Mbps physical layer chip. Because the rates of the two are different, and the uplink interface of the current 10 Mbps physical layer chip is a digital interface, it cannot be directly connected to the downlink physical analog interface of the 100 Mbps physical layer chip. Therefore, it is desirable to be able to provide an apparatus and method for implementing physical layer multiplexing cascades. Summary of the invention
本发明解决的问题是提供一种以太网物理层复用和解复用装置 及方法, 以解决现有技术中一个 MAC层端口只能对应一个物理层端 口的缺点。 The problem to be solved by the present invention is to provide an Ethernet physical layer multiplexing and demultiplexing apparatus and method, which solves the disadvantages of a MAC layer port corresponding to only one physical layer port in the prior art.
在此基础上,本发明解决的另一技术问题是提供一种实现以太网 物理层复用级连的装置,以克服现有技术中不同速率的物理层芯片不 能级连的缺点, 简化机架式设备的线卡设计。 On the basis of the above, another technical problem to be solved by the present invention is to provide a device for implementing Ethernet physical layer multiplexing cascade to overcome the disadvantages that the physical layer chips of different rates cannot be cascaded in the prior art, and simplify the rack. Line card design for devices.
本发明解决的又一技术问题是提供一种实现以太网物理层复用 级连的方法,将物理层复用技术及复用的级连技术更好地应用在宽带 接入领域, 减少 MAC层芯片端口数目, 低网络接入成本。 Another technical problem to be solved by the present invention is to provide a method for implementing Ethernet physical layer multiplexing cascade, and the physical layer multiplexing technology and the multiplexing cascade technology are better applied in the broadband access field, and the MAC layer is reduced. Number of chip ports, low network access costs.
为解决上述问题, 本发明提供了一种以太网物理层复用装置, 包 括: To solve the above problems, the present invention provides an Ethernet physical layer multiplexing device, which includes:
物理层信号转换单元, 该转换单元接收一路以上物理层低速信 号, 并将每路低速信号转换为 MAC层低速信号; a physical layer signal conversion unit, the conversion unit receives one or more physical layer low speed signals, and converts each low speed signal into a MAC layer low speed signal;
信号复用单元,所述信号复用单元接收所述物理层信号转换单元 输出的 MAC层低速信号, 并将每路低速信号设置端口标记, 且将设 置端口标记的多路低速信号按时分方式复用输出一路 MAC层高速信 号。 a signal multiplexing unit, the signal multiplexing unit receives a MAC layer low-speed signal output by the physical layer signal conversion unit, and sets a port flag for each low-speed signal, and complexes the multi-channel low-speed signal with the port flag set by time division Use to output a MAC layer high speed signal.
所述信号复用单元进一步包括: 端口标记设置子单元、端口标记
存储子单元和第一随机存储子单元, The signal multiplexing unit further includes: a port tag setting subunit, a port tag a storage subunit and a first random storage subunit,
所述端口标记设置子单元用于为每路低速信号设置端口标记; 所述端口标记存储子单元用于存储每路低速信号设置的端口标 记; The port tag setting subunit is configured to set a port flag for each low speed signal; the port tag storage subunit is configured to store a port tag set by each low speed signal;
所述第一随机存储子单元用于以时隙为单位存储设置端口标记 的低速信号,并在高速时钟信号的驱动下读出一路 MAC层高速信号。 The first random storage sub-unit is configured to store a low-speed signal for setting a port flag in units of time slots, and to read a MAC layer high-speed signal driven by the high-speed clock signal.
所述端口标记根据所述信号复用单元的输入物理端口设置或根 据输入低速信号的业务特征设置。 The port flag is set according to an input physical port of the signal multiplexing unit or according to a service characteristic of the input low speed signal.
所述端口标记按低速信号的数据帧或按低速信号的固定数据长 度设置。 The port flag is set by the data frame of the low speed signal or by the fixed data length of the low speed signal.
所述高速时钟信号由从低速信号中提取的低速时钟倍频得到,或 由时钟产生电路直接得到。 The high speed clock signal is obtained by multiplying a low speed clock extracted from a low speed signal or directly by a clock generating circuit.
本发明还提供了一种以太网物理层解复用装置, 包括: 解复用单元, 接收 MAC层高速信号, 解复用为低速信号, 并根 据低速信号中的端口标记, 确定下行发送端口; The present invention also provides an Ethernet physical layer demultiplexing apparatus, including: a demultiplexing unit, receiving a MAC layer high speed signal, demultiplexing into a low speed signal, and determining a downlink sending port according to a port flag in the low speed signal;
MAC层信号转换单元, 接收所述解复用单元发来的低速信号, 将该信号转换为物理层信号, 并发送到物理层。 The MAC layer signal conversion unit receives the low speed signal sent by the demultiplexing unit, converts the signal into a physical layer signal, and sends the signal to the physical layer.
所述解复用单元进一步包括:端口标记判断子单元和第二随机存 储子单元; The demultiplexing unit further includes: a port tag determining subunit and a second random storing subunit;
所述端口标记判断子单元根据接收高速信号中的端口标记确定 下行信号端口; The port tag determining subunit determines a downlink signal port according to a port flag in the received high speed signal;
所述第二随机存储子单元用于存储高速信号,通过低速时钟信号 的驱动读出至少两路氐速信号, 发送到 MAC层信号转换单元中对应 的下行信号端口。 The second random storage sub-unit is configured to store a high-speed signal, and at least two idle signals are read by driving of the low-speed clock signal, and sent to a corresponding downlink signal port in the signal conversion unit of the MAC layer.
所述低速时钟信号由从物理层发来的低速信号中提取的低速时 钟得到, 或由时钟产生电路直接得到。 The low speed clock signal is derived from a low speed clock extracted from a low speed signal sent from the physical layer, or directly from a clock generation circuit.
本发明还提供一种以太网物理层复用和解复用装置, 包括: 物理 层信号与 MAC层信号相互转换单元、 信号复用解复用单元; The present invention also provides an Ethernet physical layer multiplexing and demultiplexing apparatus, comprising: a physical layer signal and a MAC layer signal mutual conversion unit, and a signal multiplexing demultiplexing unit;
物理层信号与 MAC层信号相互转换单元, 该转换单元接收一路 以上物理层低速信号, 并将每路低速信号转换为 MAC层低速信号; MAC层信号转换单元, 接收所述复用解复用单元发来的低速信号, 将该信号转换为物理层信号, 并发送到物理层; a physical layer signal and a MAC layer signal mutual conversion unit, the conversion unit receives one or more physical layer low speed signals, and converts each low speed signal into a MAC layer low speed signal; the MAC layer signal conversion unit receives the multiplexing demultiplexing unit The low-speed signal sent, converts the signal into a physical layer signal, and sends it to the physical layer;
信号复用解复用单元, 接收所述物理层信号与 MAC层信号相互 转换单元输出的 MAC层低速信号,并将每路低速信号设置端口标记, 且将设置端口标记的多路低速信号按时分复用方式复用输出一路
MAC层高速信号; 并接收 MAC层高速信号, 解复用为低速信号, 并才艮据低速信号中的端口标记, 确定下行发送端口。 The signal multiplexing demultiplexing unit receives the MAC layer low speed signal output by the physical layer signal and the MAC layer signal mutual conversion unit, and sets a port flag for each low speed signal, and sets the multi-channel low speed signal with the port flag set by time. Multiplexing mode multiplexing output The MAC layer high-speed signal; and receives the MAC layer high-speed signal, demultiplexes into a low-speed signal, and determines the downlink transmission port according to the port flag in the low-speed signal.
本发明提供一种以太网物理层复用方法, 包括: The present invention provides an Ethernet physical layer multiplexing method, including:
A、 将至少两条低速率物理层信号转换为对应的低速率 MAC层 信号; A. Converting at least two low-rate physical layer signals into corresponding low-rate MAC layer signals;
B、 将所述低速率 MAC信号设置端口标记, 并存储该端口标记; B. The port is marked with the low rate MAC signal, and the port tag is stored;
C、 将带有端口标记的低速率 MAC层信号以时分方式复用为一 路高速率 MAC层信号; C. multiplexing the low-rate MAC layer signal with the port label into a high-rate MAC layer signal in a time division manner;
步骤 C进一步包括: Step C further includes:
以时隙为单位存储设置端口标记的 MAC层信号低速信号; 用高速时钟信号读出一路 MAC层高速信号。 The MAC layer signal low speed signal for setting the port flag is stored in units of time slots; and the high speed signal of the MAC layer is read by the high speed clock signal.
本发明提供一种以太网物理层解复用方法, 包括: The present invention provides an Ethernet physical layer demultiplexing method, including:
接收 MAC层一路高速信号; Receiving a high-speed signal of the MAC layer;
将 MAC层高速信号解复用为至少两条 MAC层低速信号; 以低速时钟信号读出 MAC层低速信号以及其中的端口标记, 根 据每一端口标记确定对应的下行端口, 进而将 MAC层低速信号从对 应下行端口输出。 Demultiplexing the MAC layer high-speed signal into at least two MAC layer low-speed signals; reading the MAC layer low-speed signal and the port flag therein by using the low-speed clock signal, determining the corresponding downlink port according to each port flag, and further, the MAC layer low-speed signal Output from the corresponding downstream port.
本发明提供一种以太网物理层复用解复用方法, 包括: 在上行方向, The present invention provides an Ethernet physical layer multiplexing demultiplexing method, including: in an uplink direction,
将至少两条低速率物理层信号转换为对应的低速率 MAC 层信 号; Converting at least two low rate physical layer signals into corresponding low rate MAC layer signals;
将所述低速率 MAC信号设置端口标记, 并存储该端口标记; 将带有端口标记的低速率 MAC层信号以时分方式复用为一路高 速率 MAC层信号; Setting the port of the low-rate MAC signal and storing the port tag; multiplexing the low-rate MAC layer signal with the port tag into a high-rate MAC layer signal in a time division manner;
在下行方向, In the down direction,
接收 MAC层一路高速信号; Receiving a high-speed signal of the MAC layer;
将 MAC层高速信号解复用为至少两条 MAC层低速信号; 以低速时钟信号读出 MAC层低速信号以及低速信号中的端口标 记, 根据每一端口标记确定对应的下行端口, 进而将 MAC层低速信 号从对应下 ^"端口输出。 Demultiplexing the MAC layer high-speed signal into at least two MAC layer low-speed signals; reading the MAC layer low-speed signal and the port flag in the low-speed signal with the low-speed clock signal, determining the corresponding downlink port according to each port flag, and further the MAC layer The low speed signal is output from the corresponding lower port.
本发明还提供一种实现以太网物理层复用级连的装置,包括至少 两层物理层复用芯片, 其中, 最上层的物理层复用芯片的上行数字接 口与媒体接入控制层芯片接口相连,最下层的物理层复用芯片的下行 模拟接口与用户端相连, 还包括: The present invention further provides an apparatus for implementing Ethernet physical layer multiplexing cascade, comprising at least two physical layer multiplexing chips, wherein an uplink digital interface of the uppermost physical layer multiplexing chip and a medium access control layer chip interface Connected, the downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and further includes:
与各下层物理层复用芯片对应的数 /模转换模块, 分别与所述下
层物理层复用芯片的上行数字接口及上层物理层复用芯片的下行模 拟接口相连,用于将所述下层物理层复用芯片上行数字接口输出的高 速数字信号转换为模拟信号,并将所述上层物理层复用芯片下行模拟 接口输出的低速模拟信号转换为数字信号。 a digital-to-analog conversion module corresponding to each lower physical layer multiplexing chip, respectively The uplink digital interface of the layer physical layer multiplexing chip and the downlink analog interface of the upper physical layer multiplexing chip are connected, and are used for converting the high-speed digital signal outputted by the lower layer physical layer multiplexing chip uplink digital interface into an analog signal, and The low-speed analog signal outputted by the upper layer physical layer multiplexing chip downlink analog interface is converted into a digital signal.
所述数 /模转换模块包括: The digital/analog conversion module includes:
信号转换电路,用于完成所述上层高速数字信号到模拟信号的转 换, 以及所述下层低速模拟信号到数字信号的转换; a signal conversion circuit, configured to perform conversion of the upper layer high speed digital signal to an analog signal, and conversion of the lower layer low speed analog signal to the digital signal;
时钟电路, 与所述信号转换电路相连, 用于提供信号转换时所需 的时钟信号; a clock circuit coupled to the signal conversion circuit for providing a clock signal required for signal conversion;
编 /解码电路, 与所述信号转换电路相连, 用于提供信号转换时 所需的编码和解码。 An encoding/decoding circuit is coupled to the signal conversion circuit for providing encoding and decoding required for signal conversion.
可选地, 所述时钟电路和所述编 /解码电路由所述下层物理层复 用芯片提供。 Optionally, the clock circuit and the encoding/decoding circuit are provided by the lower physical layer multiplexing chip.
可选地, 所述数 /模转换模块集成在与其对应的下层物理层复用 芯片上。 Optionally, the digital/analog conversion module is integrated on a lower physical layer multiplexing chip corresponding thereto.
可选地, 所述数 /模转换模块及所有级连的物理层复用芯片集成 在同一个芯片上。 Optionally, the digital/analog conversion module and all the cascaded physical layer multiplexing chips are integrated on the same chip.
本发明还提供一种实现以太网物理层复用级连的方法,用于将两 级或多级物理层复用芯片级连, 其中, 最上层的物理层复用芯片的上 行数字接口与媒体接入控制层芯片接口相连,最下层的物理层复用芯 片的下行模拟接口与用户端相连, 所述方法包括步骤: The present invention also provides a method for implementing Ethernet physical layer multiplexing cascade, which is used for cascading two or more levels of physical layer multiplexing chips, wherein the upper layer of the physical layer multiplexing chip uplink digital interface and media The access control layer chip interface is connected, and the downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and the method includes the following steps:
A、接收上行信号时,记录所述上行信号与物理端口的对应关系; A. When receiving an uplink signal, record a correspondence between the uplink signal and a physical port;
B、 将所述下层的物理层复用芯片的上行数字接口输出的数字信 号转换为模拟信号,并输出到与其级连的上层物理层复用芯片的下行 模拟接口; B. Converting the digital signal outputted by the uplink digital interface of the lower layer physical layer multiplexing chip into an analog signal, and outputting it to a downlink analog interface of the upper physical layer multiplexing chip connected thereto;
C、 发送下行信号时, 根据所述记录的上行信号与物理端口的对 应关系查找所述下行信号应分发的物理端口,并将所述下行信号发送 到所述物理端口; C. When the downlink signal is sent, the physical port to which the downlink signal should be distributed is searched according to the corresponding relationship between the recorded uplink signal and the physical port, and the downlink signal is sent to the physical port;
D、 将所述上层的物理层复用芯片的下行模拟接口输出的模拟信 号转换为数字信号,并输出到与其级连的下层物理层复用芯片的上行 数字接口。 D. Convert the analog signal outputted by the downlink analog interface of the upper layer physical layer multiplexing chip into a digital signal, and output it to the uplink digital interface of the lower physical layer multiplexing chip connected thereto.
可选地, 所述步骤 A具体包括: Optionally, the step A specifically includes:
A1、 在最下层的物理层复用芯片的物理端口上直接配置全局物 理端口号; A1. The global physical port number is directly configured on the physical port of the lower layer physical layer multiplexing chip.
A2、 当所述物理层复用芯片接收到上行信号时, 根据所述全局
物理端口号建立源端口路径表。 A2, when the physical layer multiplexing chip receives an uplink signal, according to the global The physical port number establishes the source port path table.
可选地, 所述步骤 A具体包括: Optionally, the step A specifically includes:
ΑΓ、 在各层的物理层复用芯片的物理端口上配置私有物理端口 号 , 配置 Configuring a private physical port number on the physical port of the physical layer multiplexing chip of each layer.
Α2'、 当所述物理层复用芯片接收到上行信号时, 根据所述私有 物理端口号将所述上行信号打上与所述私有物理端口号对应的偏移 标记; Α2', when the physical layer multiplexing chip receives the uplink signal, the uplink signal is marked with an offset flag corresponding to the private physical port number according to the private physical port number;
A3'、 根据所述偏移标记在各层物理层复用芯片上建立源端口路 径表。 A3', establishing a source port path table on each layer physical layer multiplexing chip according to the offset flag.
可选地, 所述步骤 A2'具体为: Optionally, the step A2 ′ is specifically:
将所述偏移标记添加在上行数据帧的 VLAN域; 或者 Adding the offset flag to the VLAN domain of the uplink data frame; or
将所述偏移标记添加在上行数据帧的帧头前。 The offset flag is added before the frame header of the upstream data frame.
所述步骤 C包括: The step C includes:
根据所述下行信号获取其目的地址; Obtaining a destination address thereof according to the downlink signal;
根据所述目的地址查询所述源端口路径表,获取解复用后的各下 行信号应分发的物理端口; Querying the source port path table according to the destination address, and obtaining a physical port to which the demultiplexed downlink signals should be distributed;
剥离各下行信号最外层的偏移标记; Stripping the offset mark of the outermost layer of each downlink signal;
将剥离所述偏移标记后的各下行信号发送到所述物理端口。 本发明还提供一种以太网复用级连装置, 包括: Sending each downlink signal after the offset flag is stripped to the physical port. The invention also provides an Ethernet multiplexing cascade device, comprising:
下层复用装置,用以将来自用户上行方向的至少两路低速的模拟 信号复用为高速的数字信号, 并将记录一个第一层的 VLAN标签; 在下行方向将高速的数字信号解复用为低速的模拟信号,并根据上述 第一层 VLAN标签选择下行端口; a lower layer multiplexing device for multiplexing at least two low-speed analog signals from a user upstream direction into a high-speed digital signal, and recording a first-layer VLAN tag; and demultiplexing the high-speed digital signal in a downlink direction A low-speed analog signal, and selecting a downlink port according to the first layer VLAN tag;
信号转换装置, 其数字接口耦合于下层复用装置; a signal conversion device having a digital interface coupled to the lower layer multiplexing device;
上层复用装置, 其耦合于该信号转换装置的模拟接口, 用以将来 自上行方向的至少两路高速的模拟信号复用为更高速的数字信号,并 记录相应的第二层 VLAN标签; 在下行方向将更高速的数字信号解 复用为高速的模拟信号; 根据上述第二层 VLAN标签选择下行端口。 An upper multiplexing device coupled to the analog interface of the signal conversion device for multiplexing at least two high-speed analog signals from the upstream direction into higher-speed digital signals and recording corresponding second-layer VLAN tags; Downstream direction demultiplexes the higher speed digital signal into a high speed analog signal; selects the downstream port according to the above second layer VLAN tag.
本发明还提供一种以太网复用级连装置,其用以将多个用户连接 到网络, 包括上层复用装置和下层复用装置, 其中上层复用装置分解 下行信号并 居信号内第一层 VLAN标签寻找到正确的下行端口; 而下层复用装置分解来自上层复用装置的下行信号并依据信号内第 二层 VLAN标签寻找正确的下行端口使得信号到达用户。 The present invention also provides an Ethernet multiplexing cascade device for connecting a plurality of users to a network, including an upper layer multiplexing device and a lower layer multiplexing device, wherein the upper layer multiplexing device decomposes the downlink signal and ranks first in the signal. The layer VLAN tag finds the correct downlink port; and the lower layer multiplexing device decomposes the downlink signal from the upper layer multiplexing device and finds the correct downlink port according to the second layer VLAN tag in the signal so that the signal arrives at the user.
与现有技术相比, 本发明具有以下优点: Compared with the prior art, the present invention has the following advantages:
本发明的装置在现有物理层芯片中增加了信号复用、解复用或者
复用和解复用单元, 达到一个或少数几个高速率对上接口, 对应多个 低速率下行物理接口。本发明的方法就是通过对多路物理层输入的复 用, 在上行方向将多路低速率的物理端口输入, 复用到一个高速率的The device of the invention adds signal multiplexing, demultiplexing or the existing physical layer chip The multiplexing and demultiplexing unit reaches one or a few high-speed uplink interfaces, and corresponds to multiple low-rate downlink physical interfaces. The method of the present invention is to input multiple low-rate physical ports in the uplink direction and multiplex them to a high rate by multiplexing the input of multiple physical layers.
MAC层对应接口, 在复用时打上复用标记, 并进行源端口学习。 在 下行方向, 将来自一个高速率的 MAC层对上接口的业务, 通过标记 查找, 发送到对应的下行物理端口, 完成解复用的功能。 从而达到一 个或少数几个高速率对上接口, 对应多个低速率下行物理接口的目 的。 The MAC layer corresponds to the interface, and the multiplexing flag is marked during multiplexing, and source port learning is performed. In the downlink direction, the service from the high-speed MAC layer to the upper interface is sent to the corresponding downlink physical port through tag search, and the demultiplexing function is completed. Thus, one or a few high-speed uplink interfaces are achieved, corresponding to the goals of multiple low-rate downlink physical interfaces.
此外, 本发明针对以太网物理层复用芯片的特点, 在下层物理层 复用芯片的数字接口和上层物理层复用芯片的模拟接口之间增加数 / 模转换模块, 实现多层物理层复用芯片的级连。 利用本发明提供的复 用级连技术,在宽带接入领域将多个低速的物理层接口复用或者级连 复用到高速的 MAC层或者是物理层接口, 可以减少 MAC层使用的 芯片端口数目, 从而降低宽带接入成本。 In addition, the present invention is directed to the characteristics of an Ethernet physical layer multiplexing chip, and a digital/analog conversion module is added between the digital interface of the lower physical layer multiplexing chip and the analog interface of the upper physical layer multiplexing chip to implement a multi-layer physical layer complex. Use the cascade of chips. By using the multiplexing cascading technology provided by the present invention, multiple low-speed physical layer interfaces are multiplexed or cascade-multiplexed to a high-speed MAC layer or a physical layer interface in the broadband access field, and the chip port used by the MAC layer can be reduced. The number, thereby reducing the cost of broadband access.
随着以太网交换机芯片技术的发展, 高密度 10GE转发芯片是一 个技术发展趋势, 如果使用这种高性能多口 10GE转发芯片作机架式 设备的转发引擎, 则通过本发明提供高密度的低速接口板, 将多路 FE/GE物理层接口复用到一个更高速的 MAC层接口, 可大大节省设 备线卡成本。 附图说明 With the development of Ethernet switch chip technology, a high-density 10GE forwarding chip is a technology development trend. If such a high-performance multi-port 10GE forwarding chip is used as a forwarding engine for a rack-mounted device, the present invention provides a high-density low-speed. The interface board multiplexes multiple FE/GE physical layer interfaces to a higher-speed MAC layer interface, which greatly saves equipment line card costs. DRAWINGS
图 1是现有技术以太网物理层复用解复用芯片视图; 1 is a view of a prior art Ethernet physical layer multiplexing demultiplexing chip;
图 2是图 1中以太网物理层复用解复用芯片的内部结构图; 图 3是本发明以太网物理层复用装置的结构图; 2 is an internal structural diagram of an Ethernet physical layer multiplexing demultiplexing chip of FIG. 1; FIG. 3 is a structural diagram of an Ethernet physical layer multiplexing device of the present invention;
图 4是图 3中信号复用单元的内部结构图; Figure 4 is an internal structural diagram of the signal multiplexing unit of Figure 3;
图 5是本发明以太网物理层解复用装置的结构图; 5 is a structural diagram of an Ethernet physical layer demultiplexing apparatus of the present invention;
图 6是图 5中信号解复用单元的内部结构图; Figure 6 is a diagram showing the internal structure of the signal demultiplexing unit of Figure 5;
图 7是本发明以太网物理层复用解复用装置的结构图; 图 8是图 Ί中信号复用解复用单元的内部结构图; 7 is a structural diagram of an Ethernet physical layer multiplexing demultiplexing apparatus of the present invention; and FIG. 8 is an internal structural diagram of a signal multiplexing demultiplexing unit in FIG.
图 9是以太网物理层复用方法的流程图; 9 is a flowchart of a method for multiplexing an Ethernet physical layer;
图 10是以太网物理层解复用方法的流程图。 Figure 10 is a flow chart of the Ethernet physical layer demultiplexing method.
图 11是本发明实现以太网物理层复用级连的装置结构框图; 图 12是本发明实现以太网物理层复用级连的装置中的数 /模转换 模块的结构框图; 11 is a structural block diagram of an apparatus for implementing Ethernet physical layer multiplexing cascade according to the present invention; FIG. 12 is a structural block diagram of a digital/analog conversion module in an apparatus for implementing Ethernet physical layer multiplexing cascade according to the present invention;
图 13是将 10Mbps信号复用为 10GE信号的级连结构框图;
图 14是本发明实现以太网物理层复用级连的方法的第一实施例 实现流程图; Figure 13 is a block diagram showing the cascade structure of multiplexing a 10 Mbps signal into a 10 GE signal; 14 is a flowchart of implementing a first embodiment of a method for implementing Ethernet physical layer multiplexing cascade according to the present invention;
图 15是本发明实现以太网物理层复用级连的方法的第二实施例 实现流程图。 具体实施方式 FIG. 15 is a flowchart of implementing a second embodiment of a method for implementing Ethernet physical layer multiplexing cascade according to the present invention. detailed description
本发明的以太网物理层复用装置如图 3所示, 包括物理层信号转 换单元 31、信号复用单元 32和数字接口单元 33。 所述物理层信号转 换单元 31接收一路以上物理层低速信号, 通过对每路信号进行模数 转换、 时钟提取、 解码及 MAC接口处理, 将每路物理层低速信号转 换为对应的 MAC层低速信号; 所述信号复用单元 32接收所述物理 层信号转换单元 31输出的 MAC层低速信号,并将每路 MAC层低速 信号设置端口标记,且将设置端口标记的多路低速信号按时分复用方 式复用为一路 MAC层高速信号, 通过数字接口单元 33发送到 MAC 层。 The Ethernet physical layer multiplexing device of the present invention, as shown in FIG. 3, includes a physical layer signal conversion unit 31, a signal multiplexing unit 32, and a digital interface unit 33. The physical layer signal conversion unit 31 receives one or more physical layer low-speed signals, and converts each physical layer low-speed signal into a corresponding MAC layer low-speed signal by performing analog-to-digital conversion, clock extraction, decoding, and MAC interface processing on each signal. The signal multiplexing unit 32 receives the MAC layer low-speed signal output by the physical layer signal conversion unit 31, and sets a port flag for each MAC layer low-speed signal, and divides the multi-channel low-speed signal with the port flag set by time division multiplexing. The mode is multiplexed into a MAC layer high speed signal, which is sent to the MAC layer through the digital interface unit 33.
其中, 信号复用单元 32的内部结构如图 4所示, 包括: 端口标 记设置子单元 321、 端口标记存储子单元 322和第一随机存储子单元 323。 所述端口标记设置子单元 321用于为每路 MAC层低速信号设 置端口标记;所述端口标记存储子单元 322用于存储每路低速信号设 置的端口标记;所述第一随机存储子单元 323用于以时隙为单位存储 设置端口标记的 MAC层低速信号, 并在高速时钟信号的驱动下读出 一路 MAC层高速信号。 所述高速时钟信号可以通过从物理层低速信 号中提取的低速时钟倍频得到, 也可以由时钟产生电路直接得到。 The internal structure of the signal multiplexing unit 32 is as shown in FIG. 4, and includes: a port label setting subunit 321, a port label storage subunit 322, and a first random storage subunit 323. The port tag setting sub-unit 321 is configured to set a port flag for each MAC layer low-speed signal; the port tag storage sub-unit 322 is configured to store a port flag set for each low-speed signal; the first random storage sub-unit 323 It is used to store a MAC layer low speed signal for setting a port flag in units of time slots, and to read a MAC layer high speed signal driven by a high speed clock signal. The high speed clock signal can be obtained by multiplying the low speed clock extracted from the low layer signal of the physical layer, or directly by the clock generating circuit.
所述端口标记 居所述信号复用单元 32的输入物理端口设置或 根据输入低速信号的业务特征设置。以太网数据业务帧从上行方向的 物理层信号转换单元 31进入该以太网物理层复用装置后, 才艮据配置 情况, 信号复用单元 32中的端口标记设置子单元 321首先设置与输 入物理端口对应的唯一端口标记。输入端口标记可以是 ■据输入物理 端口设置的私有标记, 也可以是输入以太网数据帧的 VLAN标记、 VPN标记或者是数据帧头部任何可用的标记。 然后端口标记存储子 单元 322对端口标记进行存储,建立标记与物理端口之间的——对应 关系。 例如, 在以太网数据帧中 VLAN域中, 如果输入数据帧没有 携带 VLAN标签, 那么就根据相应输入物理端口的情况设置事先配 置好的 VLAN标签,并记住该 VLAN标签属于哪个下行物理入端口。 针对使用 VLAN标记的情况,如果输入的数据帧本身已经携带 VLAN
标签, 那么可以根据配置重新替换原有的 VLAN标签, 或者是在已 有标记的前面再设置一层 VLAN 标记; 也可以承认其本身携带的 VLAN标签。 The port tag is set by the input physical port of the signal multiplexing unit 32 or according to the traffic characteristics of the input low speed signal. After the Ethernet data service frame enters the Ethernet physical layer multiplexing device from the physical layer signal conversion unit 31 in the uplink direction, the port tag setting sub-unit 321 in the signal multiplexing unit 32 first sets and inputs the physical basis according to the configuration. The unique port tag for the port. The input port tag can be a private tag set according to the input physical port, or a VLAN tag that enters an Ethernet data frame, a VPN tag, or any available tag at the head of the data frame. The port tag storage sub-unit 322 then stores the port tag, establishing a correspondence between the tag and the physical port. For example, in the VLAN domain of the Ethernet data frame, if the input data frame does not carry the VLAN tag, set the pre-configured VLAN tag according to the corresponding input physical port, and remember which downlink physical ingress port the VLAN tag belongs to. . For the case of using VLAN tagging, if the input data frame itself already carries a VLAN Label, then you can replace the original VLAN tag according to the configuration, or set a VLAN tag in front of the existing tag; you can also recognize the VLAN tag carried by itself.
以 8端口物理层复用装置为例, 假设 8个物理层低速信号为 FE 信号, 都是 100M, 而 MAC层高速信号是 1个 GE。 那么从第一个 100M物理端口进来的数据帧, 信号复用单元会在其 VLAN的位置, 打上一个 VLAN = 1 的入物理端口标记, 并记住 VLAN=1 的数据帧 对应到第一个 100M物理端口; 相应的从第二个 100M物理端口进 来的数据帧, 信号复用单元会在其 VLAN的位置, 打上一个 VLAN = 2 的入物理端口标记, 并记住 VLAN=2 的数据帧对应到第二个 100M物理端口; 以此类推。 打完标记以后的数据帧, 按时分复用方 式从 GE端口发送,因为一个 GE端口可以传 10个 FE端口的数据帧, 所以这 8个 FE端口的数据帧, 都可以从一个 GE端口发送。 Taking an 8-port physical layer multiplexing device as an example, it is assumed that the eight physical layer low-speed signals are FE signals, both of which are 100M, and the MAC layer high-speed signal is one GE. Then, from the data frame coming in from the first 100M physical port, the signal multiplexing unit will put a physical port tag with VLAN = 1 in its VLAN location, and remember that the data frame with VLAN=1 corresponds to the first 100M. Physical port; corresponding data frame coming in from the second 100M physical port, the signal multiplexing unit will mark the incoming physical port of VLAN = 2 in its VLAN location, and remember that the data frame of VLAN=2 corresponds to The second 100M physical port; and so on. After the marked data frame is transmitted from the GE port in time division multiplexing mode, since one GE port can transmit data frames of 10 FE ports, the data frames of the eight FE ports can be sent from one GE port.
在复用的过程中,所述端口标记也可以按低速信号的固定数据长 度设置。 只需要在每个固定长度之前带上标记就可以。 比如说一个 1500 字节的以太网数据帧, 正常情况下是整个数据帧的前面设置一 个输入物理端口标记, 但也可以是按照一个固定长度, 如每 500字节 一个标记从一个物理端口分三次发送到上行的复用端口,这种做法的 好处是可以减少复用和解复用模块的存储压力,但很多较长的数据帧 会被分解成多块, 因此端口标记需要能够表示每一块的顺序, 而后续 相应的 MAC层处理也需要支持对数据帧的重组。 In the process of multiplexing, the port flag can also be set according to the fixed data length of the low speed signal. Just mark it before each fixed length. For example, a 1500-byte Ethernet data frame is normally set to an input physical port mark in front of the entire data frame, but it can also be a fixed length, such as one mark per 500 bytes divided from a physical port three times. Sending to the upstream multiplexed port has the advantage of reducing the storage pressure of the multiplexing and demultiplexing module, but many long data frames are broken down into multiple blocks, so the port tag needs to be able to represent the order of each block. The subsequent corresponding MAC layer processing also needs to support the reorganization of the data frame.
虽然以上以 8路物理层低速信号复用为一路 MAC层高速信号为 例说明, 但本发明并不限于此。 可以是 2路、 4路或 16路等多路物 理层低速信号复用为一路 MAC层高速信号, 也可以是多路低速信号 复用为几路高速信号, 从而实现一个或少数几个高速对上接口, 对应 多个低速下行物理接口。 Although the above description uses the 8-way physical layer low-speed signal multiplexing as one MAC layer high-speed signal as an example, the present invention is not limited thereto. It can be a multi-path physical layer low-speed signal multiplexed into one MAC layer high-speed signal, or multiple multi-channel low-speed signals multiplexed into several high-speed signals, thereby realizing one or a few high-speed pairs. The upper interface corresponds to multiple low-speed downlink physical interfaces.
本发明的以太网物理层解复用装置包括: MAC层信号转换单元 41、信号解复 单元 42和数字接口单元 43, 所述信号解复用单元 42 通过所述数字接口单元 43接收来自 MAC层高速信号; 所述信号解 复用单元 42将 MAC层高速信号解复用为 MAC层低速信号,并根据 低速信号中的端口标识, 确定下行发送端口; 所述 MAC层信号转换 单元 41接收所述解复用单元 42发来的低速信号,将该信号转换为物 理层信号, 并发送到物理层。 The Ethernet physical layer demultiplexing apparatus of the present invention comprises: a MAC layer signal converting unit 41, a signal demultiplexing unit 42 and a digital interface unit 43, and the signal demultiplexing unit 42 receives the MAC layer from the digital interface unit 43 through the digital interface unit 43. a high-speed signal; the signal demultiplexing unit 42 demultiplexes the MAC layer high-speed signal into a MAC layer low-speed signal, and determines a downlink transmission port according to the port identifier in the low-speed signal; the MAC layer signal conversion unit 41 receives the The low speed signal sent from the demultiplexing unit 42 converts the signal into a physical layer signal and transmits it to the physical layer.
所述信号解复用单元 42进一步包括: 端口标记判断子单元 421 和第二随机存储子单元 423; 所述第二随机存储子单元 423用于存储
来自数字接口单元 43的 MAC层高速信号, 所述端口标记判断子单 元 421 居接收高速信号中的端口标记,并通过查找所述端口标记存 储子单元 322中的信息确定下行信号端口;并通过低速时钟信号的驱 动读出至少两路氐速信号, 发送到 MAC层信号转换单元 41 中对应 的下行信号端口。所述低速时钟信号由从物理层发来的低速信号中提 取的低速时钟得到, 或由时钟产生电路直接得到。 The signal demultiplexing unit 42 further includes: a port tag determining subunit 421 and a second random storing subunit 423; the second random storing subunit 423 is configured to store From the MAC layer high speed signal from the digital interface unit 43, the port flag determining subunit 421 receives the port flag in the high speed signal, and determines the downlink signal port by looking up the information in the port tag storage subunit 322; and passes the low speed The driving of the clock signal reads out at least two idle signals and sends them to corresponding downlink signal ports in the MAC layer signal converting unit 41. The low speed clock signal is derived from a low speed clock extracted from a low speed signal sent from the physical layer, or directly from a clock generation circuit.
当高速以太网数据业务帧从 MAC层上行端口进入该以太网物理 层解复用装置以后, 居标记确定下行端口后, 从相应的下行物理端 口发送出去。 在发送时, 根据配置情况, 去掉端口标记或者携带端口 标记。 比如根据上行端口进来数据帧的 VLAN标签, 查找出对应的 发送端口后, 可以携带 VLAN标签, 也可以去掉 VLAN标签。 After the high-speed Ethernet data service frame enters the Ethernet physical layer demultiplexing device from the MAC layer uplink port, the downlink port is determined to be sent from the corresponding downlink physical port. When sending, remove the port tag or carry the port tag according to the configuration. For example, according to the VLAN tag of the incoming data frame of the uplink port, after finding the corresponding sending port, the VLAN tag can be carried or the VLAN tag can be removed.
以与上述 8 端口物理层复用装置相对应的物理层解复用装置为 例,从 GE端口下来的 MAC层高速数据帧, 必须是携带端口标记的, 也就是必须携带 VLAN的具体数值。解复用装置根据 VLAN的数值, 将其发送到相应的物理端口, 如 VLAN=1 的数据帧发送到第一个物 理端口, VLAN=2的数据帧发送到第二个物理端口等等。在从具体物 理端口发送出去的过程中, 去掉私有的标记, 如去掉内部私有的 VLAN数值后, 从相应的物理端口发送出去。 从而完成一个 GE端口 到 8个 FE端口的解复用过程。 For example, the physical layer demultiplexing device corresponding to the above-mentioned 8-port physical layer multiplexing device, the MAC layer high-speed data frame from the GE port must carry the port tag, that is, the specific value of the VLAN must be carried. The demultiplexing device sends the data frame to the corresponding physical port according to the value of the VLAN, for example, the data frame of VLAN=1 is sent to the first physical port, the data frame of VLAN=2 is sent to the second physical port, and so on. In the process of sending out from the specific physical port, the private tag is removed, and the internal private VLAN value is removed, and then sent out from the corresponding physical port. Thus, the demultiplexing process from one GE port to eight FE ports is completed.
将上述物理层复用解复用装置集合在一起,可以形成一种以太网 物理层复用和解复用装置, 以两路物理层低速信号与一路 MAC层高 速信号之间的复用解复用为例, 如图 7 所示, 包括: 模拟接口单元 61、模数转换单元 62、数模转换单元 63、解码单元 64、编码单元 65、 MAC接口处理单元 66、信号复用解复用单元 67和数字接口单元 68; 在上行方向, 所述两路物理层低速信号分别经过模拟接口单元 By combining the above physical layer multiplexing demultiplexing devices, an Ethernet physical layer multiplexing and demultiplexing device can be formed, which is demultiplexed by multiplexing between two physical layer low speed signals and one MAC layer high speed signal. For example, as shown in FIG. 7, the method includes: an analog interface unit 61, an analog-to-digital conversion unit 62, a digital-to-analog conversion unit 63, a decoding unit 64, an encoding unit 65, a MAC interface processing unit 66, and a signal multiplexing demultiplexing unit 67. And a digital interface unit 68; in the uplink direction, the two physical layer low speed signals respectively pass through the analog interface unit
61进入以太网物理层复用和解复用装置, 通过模数转换单元 62由低 速模拟信号转换成低速数字信号, 再经过解码单元 64的解码处理, 进入 MAC接口处理单元 66, 形成 MAC层低速数字信号; 所述信号 复用解复用单元 67接收所述 MAC层低速信号,并将所述 MAC层低 速信号设置端口标记, 以时分复用方式将两路 MAC层低速信号复用 为一路 MAC层高速信号, 最后由数字接口单元 68发送到 MAC层。 61 enters the Ethernet physical layer multiplexing and demultiplexing device, converts the low-speed analog signal into a low-speed digital signal through the analog-to-digital conversion unit 62, and then passes through the decoding process of the decoding unit 64, and enters the MAC interface processing unit 66 to form a MAC layer low-speed digital The signal multiplexing demultiplexing unit 67 receives the MAC layer low speed signal, and sets a port flag of the MAC layer low speed signal, and multiplexes two MAC layer low speed signals into one MAC layer in a time division multiplexing manner. The high speed signal is finally sent by the digital interface unit 68 to the MAC layer.
在下行方向, 所述信号复用解复用单元 67通过数字接口单元 68 接收来自一路 MAC层高速信号, 解复用为两路 MAC层低速信号, 并根据端口标识, 确定发送端口; 依次通过对应的 MAC接口处理单 元 66、 编码单元 65、 数模转换单元 63和模拟接口单元 61发送到物
理层。 In the downlink direction, the signal multiplexing and demultiplexing unit 67 receives the high-speed signal from one MAC layer through the digital interface unit 68, demultiplexes it into two MAC layer low-speed signals, and determines the sending port according to the port identifier; The MAC interface processing unit 66, the encoding unit 65, the digital to analog conversion unit 63, and the analog interface unit 61 are sent to the object The management layer.
其中信号复用解复用单元的内部结构如图 8所示,包括端口标记 设置子单元 671、第一随机存储子单元 672、端口标记存储子单元 673、 端口标记判断子单元 674和第二随机存储子单元 675, 所述端口标记 设置子单元 671用于为每路低速信号设置端口标记;所述端口标记存 储子单元 673用于存储每路低速信号设置的端口标记;所述第一随机 存储子单元 672用于以时隙为单位存储设置端口标记的低速信号,并 通过高速时钟信号的驱动下读出一路 MAC层高速信号。 所述端口标 记判断子单元 674根据接收高速信号中的端口标记,并通过查找所述 端口标记存储子单元 673中的信息确定下行信号端口;所述第二随机 存储子单元 675用于存储高速信号,通过低速时钟信号的驱动读出至 少两路低速信号, 发送到 MAC层信号转换单元中对应的下行信号端 α。 The internal structure of the signal multiplexing demultiplexing unit is as shown in FIG. 8, and includes a port tag setting subunit 671, a first random storage subunit 672, a port tag storage subunit 673, a port tag judging subunit 674, and a second random number. a storage subunit 675, the port tag setting subunit 671 is configured to set a port flag for each low speed signal; the port tag storage subunit 673 is configured to store a port flag set for each low speed signal; the first random storage The sub-unit 672 is configured to store the low-speed signal of the port flag set in units of time slots, and read out a MAC layer high-speed signal by driving the high-speed clock signal. The port tag determining sub-unit 674 determines a downlink signal port according to the port flag in the received high-speed signal and by searching for information in the port tag storage sub-unit 673; the second random storage sub-unit 675 is configured to store a high-speed signal At least two low-speed signals are read by driving of the low-speed clock signal, and sent to the corresponding downlink signal end α in the MAC layer signal conversion unit.
其中所述模拟接口单元 61、模数转换单元 62、数模转换单元 63、 解码单元 64、 编码单元 65、 MAC接口处理单元 66、 信号复用解复 用单元 67组成了物理层信号与 MAC层信号转换单元, 也可以是上 述实施例中物理层信号转换单元和 MAC层信号转换单元的集成体。 The analog interface unit 61, the analog-to-digital conversion unit 62, the digital-to-analog conversion unit 63, the decoding unit 64, the encoding unit 65, the MAC interface processing unit 66, and the signal multiplexing demultiplexing unit 67 constitute a physical layer signal and a MAC layer. The signal conversion unit may also be an integrated body of the physical layer signal conversion unit and the MAC layer signal conversion unit in the above embodiment.
本发明的以太网物理层复用解复用装置中的模拟输入端口、数模 转换单元、 编码解码单元及 MAC层数据处理单元——对应, 其中, 数模转换电路和模数转换电路可以集成在一起, 也可以为分离单元; 解码单元与编码单元可以集成在一起, 也可以为分离单元; 信号复用 单元与信号解复用单元可以集成在一起, 也可以为分离单元。 The analog input port, the digital-to-analog conversion unit, the code decoding unit, and the MAC layer data processing unit in the Ethernet physical layer multiplexing demultiplexing device of the present invention correspond to, wherein the digital-to-analog conversion circuit and the analog-to-digital conversion circuit can be integrated. Together, the unit may be a separate unit; the decoding unit and the coding unit may be integrated or may be a separate unit; the signal multiplexing unit and the signal demultiplexing unit may be integrated or may be separate units.
本发明的一种以太网物理层复用方法, 如图 9所示, 包括: sl01、 将至少两条低速率物理层信号转换为对应的低速率 MAC 层信号; An Ethernet physical layer multiplexing method of the present invention, as shown in FIG. 9, includes: sl01, converting at least two low-rate physical layer signals into corresponding low-rate MAC layer signals;
sl02、 将所述低速率 MAC信号设置端口标记, 并存储该端口标 记; Sl02, setting the port flag of the low rate MAC signal, and storing the port tag;
sl03、以时隙为单位存储设置端口标记的 MAC层信号低速信号; sl04、 用高速时钟信号读出一路 MAC层高速信号。 Sl03 stores the MAC layer signal low-speed signal of the port flag in the slot unit; sl04, and reads the MAC layer high-speed signal with the high-speed clock signal.
本发明的一种以太网物理层解复用方法, 如图 10所示, 包括: s201、 接收 MAC层一路高速信号; An Ethernet physical layer demultiplexing method of the present invention, as shown in FIG. 10, includes: s201, receiving a high-speed signal of a MAC layer;
s202、将 MAC层高速信号解复用为至少两条 MAC层低速信号; s203、 以低速时钟信号读出 MAC层低速信号以及其中的端口标 记, 根据每一端口标记确定对应的下行端口, 进而将 MAC层低速信 号从对应下行端口输出。
本发明的一种以太网物理层复用解复用方法, 包括: S202, demultiplexing the MAC layer high-speed signal into at least two MAC layer low-speed signals; s203, reading the MAC layer low-speed signal and the port flag thereof by using the low-speed clock signal, determining a corresponding downlink port according to each port flag, and then The MAC layer low speed signal is output from the corresponding downlink port. An Ethernet physical layer multiplexing demultiplexing method of the present invention includes:
在上行方向, In the up direction,
将至少两条低速率物理层信号转换为对应的低速率 MAC 层信 号; Converting at least two low rate physical layer signals into corresponding low rate MAC layer signals;
将所述低速率 MAC信号设置端口标记, 并存储该端口标记; 将带有端口标记的低速率 MAC层信号以时分方式复用为一路高 速率 MAC层信号; Setting the port of the low-rate MAC signal and storing the port tag; multiplexing the low-rate MAC layer signal with the port tag into a high-rate MAC layer signal in a time division manner;
在下^"方向, In the lower ^" direction,
接收 MAC层一路高速信号; Receiving a high-speed signal of the MAC layer;
将 MAC层高速信号解复用为至少两条 MAC层低速信号; 以低速时钟信号读出 MAC层低速信号以及低速信号中的端口标 记, 根据每一端口标记确定对应的下行端口, 进而将 MAC层低速信 号从对应下行端口输出。 Demultiplexing the MAC layer high-speed signal into at least two MAC layer low-speed signals; reading the MAC layer low-speed signal and the port flag in the low-speed signal with the low-speed clock signal, determining the corresponding downlink port according to each port flag, and further the MAC layer The low speed signal is output from the corresponding downstream port.
在此基础上, 本发明针对以太网物理层复用芯片的特点, 在下层 物理层复用芯片的数字接口和上层物理层复用芯片的模拟接口之间 进一步增加数 /模转换模块, 将复用后输出的数字信号转换为模拟信 号, 输出到上层物理层复用芯片的模拟接口, 同时, 由上层物理层复 用芯片的下行接口支持接收和处理带有私有物理端口路径的数据帧, 以及基于物理端口路径的学习和转发功能,从而实现多层物理层复用 芯片的级连。 On the basis of this, the present invention is directed to the characteristics of the Ethernet physical layer multiplexing chip, and further increases the digital/analog conversion module between the digital interface of the lower physical layer multiplexing chip and the analog interface of the upper physical layer multiplexing chip, which will be further The digital signal outputted after being converted into an analog signal is output to an analog interface of the upper physical layer multiplexing chip, and the downlink interface of the upper physical layer multiplexing chip supports receiving and processing data frames with a private physical port path, and The learning and forwarding functions based on physical port paths enable the cascading of multiple layers of physical layer multiplexing chips.
将增加的数 /模转换模块集成在下层物理层复用芯片上, 使下层 物理层复用芯片同时提供上行数字接口和上行模拟接口。当这种复用 芯片单独应用时, 使用数字接口直接与 MAC层芯片对接, 而级连应 用时, 使用模拟接口与上层芯片的下行模拟接口对接。 The added digital/analog conversion module is integrated on the lower physical layer multiplexing chip, so that the lower physical layer multiplexing chip provides an uplink digital interface and an uplink analog interface. When the multiplexed chip is used alone, the digital interface is directly connected to the MAC layer chip, and when the cascading application is used, the analog interface is used to interface with the downstream analog interface of the upper chip.
或者将所有级连的物理层复用芯片及对应的增加数 /模转换模块 集成在同一芯片上, 应用在用户端, 方便低端用户的接入。 Or all the connected physical layer multiplexing chips and the corresponding increased digital/analog conversion modules are integrated on the same chip, and are applied to the user end to facilitate access of low-end users.
本技术领域人员知道, 为了降低接入成本, 对一些低端用户只需 提供低速的接入端口即可满足其接入需求。 比如 10Mbps的接入带宽 即可满足 80%以上的宽带接入应用。但目前的以太网产品采用的商业 套片由于偏向企业网市场, 每个端口的速率都是 100Mbps 或者是 lGbps, 甚至是 10Gbps。 由于每个用户需要一个端口, 无疑会造成带 宽的浪费。 因此, 本发明在下层物理层复用芯片的数字接口和上层物 理层复用芯片的模拟接口之间进一步增加数 /模转换模块, 通过该模 块实现两层或多层复用芯片的级连。 Those skilled in the art know that in order to reduce the access cost, some low-end users only need to provide a low-speed access port to meet their access requirements. For example, 10Mbps access bandwidth can meet more than 80% of broadband access applications. However, the commercial chips used in current Ethernet products are biased toward the enterprise network market, and the rate of each port is 100 Mbps or lGbps, or even 10 Gbps. Since each user needs a port, there is no doubt that the bandwidth is wasted. Therefore, the present invention further increases a digital/analog conversion module between the digital interface of the lower physical layer multiplexing chip and the analog interface of the upper physical layer multiplexing chip, and the cascade of the two or more multiplexing chips is realized by the module.
参照图 11, 图 11示出了本发明实现以太网物理层复用级连的装
置在两层复用级连时的结构: Referring to FIG. 11, FIG. 11 shows an apparatus for implementing Ethernet physical layer multiplexing cascade according to the present invention. The structure placed when two layers of multiplexing are connected:
其中, 下层物理层复用芯片 Sll、 S12和上层物理层复用芯片 S3 为不同速率等级的普通复用芯片, 上层物理层复用芯片 S3的上行数 字接口与同等速率的 MAC层芯片 S4的接口相连, 下层物理层复用 芯片为用户提供模拟接入端口。上层物理层复用芯片有多少个模拟端 口即可提供多少个下层物理层复用芯片与之级连。 The lower physical layer multiplexing chip S11, S12 and the upper physical layer multiplexing chip S3 are common multiplexing chips of different rate grades, and the upper physical layer multiplexing chip S3 uplink digital interface and the same rate MAC layer chip S4 interface Connected, the lower physical layer multiplexing chip provides the user with an analog access port. How many analog ports of the upper physical layer multiplexing chip can provide the number of lower physical layer multiplexing chips to be connected to them.
每个下层物理层复用芯片对应一个数 /模转换模块, 如图 11中所 示, 数 /模转换模块 S21与下层物理层复用芯片 S11对应, 数 /模转换 模块 S22与下层物理层复用芯片 S12对应。 这些数 /模转换模块分别 与下层物理层复用芯片的上行数字接口及上层物理层复用芯片的下 行模拟接口相连,用于将下层物理层复用芯片上行数字接口输出的高 速数字信号转换为模拟信号,并将上层物理层复用芯片下行模拟接口 输出的低速模拟信号转换为数字信号。 Each lower physical layer multiplexing chip corresponds to a digital/analog conversion module. As shown in FIG. 11, the digital/analog conversion module S21 corresponds to the lower physical layer multiplexing chip S11, and the digital/analog conversion module S22 and the lower physical layer complex Corresponding to the chip S12. The digital/analog conversion modules are respectively connected to the uplink digital interface of the lower physical layer multiplexing chip and the downlink analog interface of the upper physical layer multiplexing chip, and are used for converting the high speed digital signal outputted by the lower physical layer multiplexing chip uplink digital interface into The analog signal is converted into a digital signal by the low-speed analog signal outputted by the upper layer physical layer multiplexing chip downlink analog interface.
与上述两层复用级连时的结构相同,还可以实现多层物理层复用 芯片的级连。其中,最上层的物理层复用芯片的上行数字接口与 MAC 层芯片接口相连,最下层的物理层复用芯片的下行模拟接口与用户端 相连, 最下层及中间层的各物理层复用芯片分别对应一个数 /模转换 模块,实现下层物理层复用芯片上行数字接口与上层物理层复用芯片 下行模拟接口信号的转换。 The same structure as the above two-layer multiplexing cascade can also realize the cascade of multiple layers of physical layer multiplexing chips. The uplink digital interface of the uppermost physical layer multiplexing chip is connected to the MAC layer chip interface, and the downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and the physical layer multiplexing chips of the lowermost layer and the middle layer are connected. Corresponding to a digital-to-analog conversion module, the conversion of the downlink physical interface of the lower physical layer multiplexing chip and the downlink analog interface signal of the upper physical layer multiplexing chip is realized.
最上层的物理层复用芯片支持两种应用模式,一种是单独应用模 式, 即非级连的物理层复用芯片模式, 在这种情况下, 复用芯片根据 数据帧进来的物理端口号打上相应的私有物理层复用端口标记。另外 一种是级连应用模式, 在这种模式下, 复用芯片识别下层复用芯片的 标记, 并 4艮据输入信号的端口在原标记上增加一个偏移标记, 以正确 标识输入信号的传输路径。 The uppermost physical layer multiplexing chip supports two application modes, one is a separate application mode, that is, a non-cascading physical layer multiplexing chip mode, in which case the physical port number of the multiplexing chip according to the data frame Put the corresponding private physical layer multiplexed port tag. The other is a cascade application mode, in which the multiplex chip recognizes the mark of the lower multiplex chip, and adds an offset mark to the original mark according to the port of the input signal to correctly identify the transmission of the input signal. path.
数 /模转换模块的结构如图 12所示: The structure of the digital/analog conversion module is shown in Figure 12:
其中, 信号转换电路 41的数字接口与下层物理层复用芯片的数 字接口相连,模拟接口与上层物理层复用芯片的模拟接口相连, 用于 完成来自上层的相对高速数字信号到模拟信号的转换,以及来自下层 的相对低速模拟信号到数字信号的转换。 分别与信号转换电路 41相 连的时钟电路 42和编 /解码电路 43分别为信号转换电路 41提供信号 转换时所需的时钟信号和编解码。 The digital interface of the signal conversion circuit 41 is connected to the digital interface of the lower physical layer multiplexing chip, and the analog interface is connected to the analog interface of the upper physical layer multiplexing chip for completing the conversion of the relatively high speed digital signal from the upper layer to the analog signal. And the conversion of relatively low-speed analog signals from the lower layer to digital signals. The clock circuit 42 and the encoding/decoding circuit 43 respectively connected to the signal conversion circuit 41 supply the signal conversion circuit 41 with the clock signal and codec required for signal conversion, respectively.
本技术领域人员知道,普通物理层复用芯片均包括时钟和编解码 处理电路, 因此, 该数 /模转换模块所需的时钟电路和编 /解码电路也 可以由与其对应的下层物理层复用芯片提供。
为了方便复用芯片的灵活使用, 还可以将数 /模转换模块集成在 与其对应的下层物理层复用芯片上,使该复用芯片同时提供数字接口 和模拟接口。 在芯片单独应用时, 使用数字接口直接与 MAC层芯片 对接; 在级连应用时, 使用模拟接口与上层芯片的下行模拟接口进行 对接。 Those skilled in the art know that the common physical layer multiplexing chip includes a clock and a codec processing circuit. Therefore, the clock circuit and the encoding/decoding circuit required by the digital-to-analog conversion module can also be multiplexed by the corresponding lower physical layer. The chip is available. In order to facilitate the flexible use of the multiplexing chip, the digital/analog conversion module can also be integrated on the corresponding lower physical layer multiplexing chip, so that the multiplexing chip simultaneously provides a digital interface and an analog interface. When the chip is used alone, the digital interface is directly connected to the MAC layer chip; in the cascade application, the analog interface is used to interface with the downlink analog interface of the upper chip.
当然, 也可以将所有级连方式的芯片及级连所需的数 /模转换模 块同时集成在同一个芯片上, 以满足低端用户的接入需求, 同时减少 MAC层使用的芯片的端口数目, 降低宽带接入成本。 Of course, all the cascaded chips and the digital/analog conversion modules required for the cascade can be simultaneously integrated on the same chip to meet the access requirements of the low-end users, while reducing the number of ports of the chip used by the MAC layer. , reduce the cost of broadband access.
根据端口的速率和需要的端口数目,这种复用芯片可以应用在局 端, 也可以应用在用户端。 Depending on the rate of the port and the number of ports required, this multiplexer can be applied to the local office or to the user.
例如,图 13所示的将 10Mbps信号复用为 10GE信号的级连方式: 采用三层级连方式将 8 x 8 x 8 个 10Mbps物理端口信号复用为一路 10GE信号。 For example, the cascading method of multiplexing 10 Mbps signals into 10GE signals as shown in Figure 13: Multiplex cascading 8 x 8 x 8 10 Mbps physical port signals into one 10GE signal.
一个 GE 复用芯片直接级连 8 个 100Mbps 的复用芯片, 每个 100Mbps复用芯片再直接级连 8个 10Mbps的复用芯片, 这样, 即可 直接输出 8 x 8 x 8个 10Mbps接口。 采用这种级连方式, 可以大大简 化机架式设备的线卡设计、 降低网络接入成本。 A GE multiplex chip directly cascades eight 100 Mbps multiplexed chips, and each 100 Mbps multiplex chip directly cascades eight 10 Mbps multiplexed chips, so that 8 x 8 x 8 10 Mbps interfaces can be directly output. With this cascading method, the line card design of the rack-mounted device can be greatly simplified, and the network access cost can be reduced.
参照图 14, 图 14示出了本发明实现以太网物理层复用级连的方 法的第一实施例的实现流程: Referring to FIG. 14, FIG. 14 shows an implementation flow of a first embodiment of a method for implementing Ethernet physical layer multiplexing cascade according to the present invention:
首先, 在步骤 601 : 在最下层的物理层复用芯片的物理端口上直 接配置全局物理端口号。 First, in step 601: the global physical port number is directly configured on the physical port of the lowermost physical layer multiplexing chip.
例如, 图 13所示的三层级连方式中, 共有 8 x 8 x 8个 10Mbps 物理端口, 则需要对这 8 x 8 x 8个端口进行统一编号,每个端口对应 一个唯一的号码, 即全局物理端口号。 该端口号会穿越中间级及最上 层的物理层复用芯片到达 MAC层芯片的接口, 而保持物理端口的全 局统一。 For example, in the three-layer cascading mode shown in Figure 13, there are 8 x 8 x 8 10 Mbps physical ports. The 8 x 8 x 8 ports need to be numbered uniformly. Each port corresponds to a unique number, that is, global. Physical port number. The port number traverses the intermediate layer and the uppermost physical layer multiplexing chip to reach the interface of the MAC layer chip, while maintaining the global uniformity of the physical port.
步骤 602: 复用芯片接收上行信号, 根据全局物理端口号建立源 端口路径表, 即建立起上行信号与物理端口的对应关系, 以便当接收 到下行信号时, 根据该对应关系获得下行信号应分发的物理端口。 Step 602: The multiplexer receives the uplink signal, and establishes a source port path table according to the global physical port number, that is, establishes a correspondence between the uplink signal and the physical port, so that when the downlink signal is received, the downlink signal should be distributed according to the corresponding relationship. Physical port.
物理层复用芯片接收到上行信号后, 经过对该信号进行模数转 换, 时钟和编解码处理后, 带有全局物理端口标记的数据帧会送到 MAC层处理接口。 MAC层处理接口对该数据帧处理完毕后,发送一 个带有全局物理端口标记的数据帧到上层物理层复用芯片。但该数据 帧并不能直接发送到上层物理层复用芯片的模拟端口,还需要先对其 进行转换, 即将输出的数字信号转换为模拟信号。
步骤 603: 将下层的物理层复用芯片的上行数字接口输出的数字 信号转换为模拟信号,并输出到与其级连的上层物理层复用芯片的下 行模拟接口。 After receiving the uplink signal, the physical layer multiplexing chip performs analog-to-digital conversion on the signal, and after the clock and the codec process, the data frame with the global physical port mark is sent to the MAC layer processing interface. After processing the data frame, the MAC layer processing interface sends a data frame with a global physical port tag to the upper physical layer multiplexing chip. However, the data frame cannot be directly sent to the analog port of the upper physical layer multiplexing chip, and it needs to be converted first, and the output digital signal is converted into an analog signal. Step 603: Convert the digital signal outputted by the uplink digital interface of the lower layer physical layer multiplexing chip into an analog signal, and output it to the downlink analog interface of the upper physical layer multiplexing chip connected thereto.
步骤 604: 当物理层复用芯片接收到下行信号时, 根据其建立的 源端口路径表查找下行信号应分发的物理端口,并将下行信号发送到 该物理端口。 Step 604: When the physical layer multiplexing chip receives the downlink signal, it searches for a physical port to which the downlink signal should be distributed according to the established source port path table, and sends the downlink signal to the physical port.
首先,根据下行信号中的全局端口标志信息查找建立的源端口路 径表, 即可得到该信号应该分发的下行物理端口, 这样就可以通过该 端口将数据帧从正确的下行端口发送出去。 First, the source port path table is searched according to the global port flag information in the downlink signal, so that the downlink physical port that the signal should be distributed can be obtained, so that the data frame can be sent out from the correct downlink port through the port.
步骤 605: 将上层的物理层复用芯片的下行模拟接口输出的模拟 信号转换为数字信号,并输出到与其级连的下层物理层复用芯片的上 行数字接口。 Step 605: Convert the analog signal outputted by the downlink analog interface of the upper layer physical layer multiplexing chip into a digital signal, and output it to the uplink digital interface of the lower physical layer multiplexing chip connected thereto.
参照图 15, 图 15示出了本发明实现以太网物理层复用级连的方 法的第二实施例的实现流程: Referring to FIG. 15, FIG. 15 shows an implementation flow of a second embodiment of a method for implementing Ethernet physical layer multiplexing cascade according to the present invention:
首先, 在步骤 701 : 在各层的物理层复用芯片的物理端口上配置 私有物理端口号。 First, in step 701: a private physical port number is configured on the physical port of the physical layer multiplexing chip of each layer.
例如, 图 13所示的三层级连方式中, 每层的复用芯片都有 8个 物理端口, 各芯片对这 8个端口进行单独配置, 即在各物理层复用芯 片上分别配置其私有物理端口号。比如两个 8口的 10Mbps复用芯片, 都对其从第一个物理端口进来的数据帧打上私有物理端口标记 1。 那 么这两个标记都为 1 的数据帧由于分属两个物理层复用芯片的上行 接口, 所以会送到上层复用芯片的不同下行接口。 然后, 上层复用芯 片再加上一层偏移标记, 比如从第一个上行接口进来的数据帧, 都在 其前面加一个偏移量 10; 从第二个上行进来的数据帧, 都在其前面 加一个偏移量 20。 这样一来, 从不同接口进来的下层物理端口标记 都为 1 的数据帧, 就变成了物理端口标记分别为 11和 21。 这样, 上 层复用芯片就可根据数据帧中的偏移标记知道其对应的下行物理端 π。 For example, in the three-layer cascading mode shown in FIG. 13, each layer of the multiplexed chip has eight physical ports, and each chip separately configures the eight ports, that is, each of the physical layer multiplexed chips is individually configured. Physical port number. For example, two 8-port 10Mbps multiplexers are labeled with a private physical port for the data frame coming in from the first physical port. Then, the data frames whose two flags are all 1 belong to the uplink interface of the two physical layer multiplexing chips, and therefore are sent to different downlink interfaces of the upper multiplexing chip. Then, the upper multiplex chip adds a layer of offset mark, for example, the data frame coming in from the first uplink interface is preceded by an offset of 10; the data frame that travels from the second one is It is preceded by an offset of 20. In this way, the data frames with the lower physical port tags from the different interfaces are 1 and become physical port tags 11 and 21 respectively. In this way, the upper multiplexing chip can know its corresponding downlink physical end π according to the offset flag in the data frame.
步骤 702: 当物理层复用芯片接收到上行信号时, 根据私有物理 端口号将上行信号打上与私有物理端口号对应的偏移标记,即建立起 上行信号与物理端口的对应关系, 以便当接收到下行信号时, 根据该 对应关系获得下行信号应分发的物理端口。 Step 702: When the physical layer multiplexing chip receives the uplink signal, the uplink signal is marked with an offset corresponding to the private physical port number according to the private physical port number, that is, the correspondence between the uplink signal and the physical port is established, so as to receive When the downlink signal is received, the physical port to which the downlink signal should be distributed is obtained according to the correspondence.
各物理端口对应的偏移标记可以与配置的私有物理端口号相同, 也可以不同。 The offset label corresponding to each physical port can be the same as or different from the configured private physical port number.
物理层复用芯片接收到上行信号后, 经过对该信号进行模数转
换, 时钟和编解码处理后, 带有下层偏移标记的数据帧会送到 MAC 层处理接口。 MAC层处理接口将与该层入物理端口对应的偏移标记 添加到数据帧中。 可以将偏移标记添加在上行数据帧的 VLAN域或 者上行数据帧的帧头前。 After receiving the uplink signal, the physical layer multiplexing chip performs analog-to-digital conversion on the signal. After the clock and codec processing, the data frame with the lower offset flag is sent to the MAC layer processing interface. The MAC layer processing interface adds an offset flag corresponding to the layered physical port to the data frame. The offset flag can be added in the VLAN domain of the upstream data frame or in front of the frame header of the upstream data frame.
然后, 将带有多层偏移标记的数据帧发送到上层物理层复用芯 片。 但该数据帧并不能直接发送到上层物理层复用芯片的模拟端口, 还需要先对其进行转换, 即将输出的数字信号转换为模拟信号。 The data frame with the multi-layer offset flag is then sent to the upper physical layer multiplexed chip. However, the data frame cannot be directly sent to the analog port of the upper physical layer multiplexing chip, and it needs to be converted first, and the output digital signal is converted into an analog signal.
步骤 703: 根据偏移标记在各层物理层复用芯片上建立源端口路 径表。 Step 703: Establish a source port path table on each layer physical layer multiplexing chip according to the offset flag.
这样, 每层的物理层复用芯片都各自维护自己的源端口路径表, 各层的物理层复用芯片中的源端口路径表中每个端口只对应一层偏 移标记。 In this way, each layer of the physical layer multiplexing chip maintains its own source port path table, and each port in the source port path table in the physical layer multiplexing chip of each layer only corresponds to one layer of offset flag.
步骤 704: 将下层的物理层复用芯片的上行数字接口输出的数字 信号转换为模拟信号,并输出到与其级连的上层物理层复用芯片的下 行模拟接口。 Step 704: Convert the digital signal outputted by the uplink digital interface of the lower layer physical layer multiplexing chip into an analog signal, and output it to the downlink analog interface of the upper physical layer multiplexing chip connected thereto.
步骤 705: 当物理层复用芯片接收到下行信号时, 根据其建立的 源端口路径表查找下行信号应分发的物理端口,并将下行信号发送到 该物理端口。 Step 705: When the physical layer multiplexing chip receives the downlink signal, it searches for a physical port to which the downlink signal should be distributed according to the established source port path table, and sends the downlink signal to the physical port.
首先, 复用芯片根据接收的下行信号获取其目的地址; 根据该目 的地址查询该复用芯片维护的源端口路径表,获取解复用后的各下行 信号应分发的物理端口; 由 MAC层处理接口剥离下行信号最外层的 偏移标记; 然后将剥离偏移标记后的下行信号发送到对应的物理端 σ。 First, the multiplexed chip acquires its destination address according to the received downlink signal; queries the source port path table maintained by the multiplexed chip according to the destination address, and obtains a physical port to which the downlink signals after demultiplexing should be distributed; The interface strips the offset flag of the outermost layer of the downlink signal; and then sends the downlink signal after the offset offset flag to the corresponding physical end σ.
步骤 706: 将上层的物理层复用芯片的下行模拟接口输出的模拟 信号转换为数字信号,并输出到与其级连的下层物理层复用芯片的上 行数字接口。 Step 706: Convert the analog signal outputted by the downlink analog interface of the upper layer physical layer multiplexing chip into a digital signal, and output the digital signal to the upper digital interface of the lower physical layer multiplexing chip connected thereto.
可见,本发明通过下层物理层复用芯片上行接口同时支持数字接 口和模拟接口的功能,将不同速率等级的复用芯片进行两层或多层级 联。由上层物理层复用芯片的下行接口接收和处理带有私有物理端口 路径的数据帧, 并支持基于物理端口路径的学习和转发查找功能, 使 通过多层级连复用后的数据帧从正确的下行接口发送出去。 It can be seen that the present invention performs the functions of the digital interface and the analog interface through the lower layer physical layer multiplexing chip uplink interface, and performs multiplexing layers of different rate levels in two or more layers. The downlink interface of the upper physical layer multiplexing chip receives and processes the data frame with the private physical port path, and supports the learning and forwarding search function based on the physical port path, so that the data frame through the multi-layer cascade multiplexing is correct. The downlink interface is sent out.
此外,本发明的一种以太网复用级连装置, 包括: 下层复用装置, 用以将来自用户上行方向的至少两路低速的模拟信号复用为高速的 数字信号, 并将记录一个第一层的 VLAN标签; 在下行方向将高速 的数字信号解复用为低速的模拟信号, 并根据上述第一层 VLAN标
签选择下行端口; 信号转换装置, 其数字接口耦合于下层复用装置; 上层复用装置, 其耦合于该信号转换装置的模拟接口, 用以将来自上 行方向的至少两路高速的模拟信号复用为更高速的数字信号,并记录 相应的第二层 VLAN标签; 在下行方向将更高速的数字信号解复用 为高速的模拟信号; 根据上述第二层 VLAN标签选择下行端口。 In addition, an Ethernet multiplexing cascade device of the present invention includes: a lower layer multiplexing device for multiplexing at least two low-speed analog signals from a user upstream direction into a high-speed digital signal, and recording a first a VLAN tag of one layer; demultiplexing the high speed digital signal into a low speed analog signal in the downlink direction, and according to the above first layer VLAN tag Selecting a downlink port; a signal conversion device having a digital interface coupled to the lower layer multiplexing device; an upper multiplexing device coupled to the analog interface of the signal conversion device for multiplexing at least two high-speed analog signals from the upstream direction Use as a higher speed digital signal and record the corresponding Layer 2 VLAN tag; Demultiplex the higher speed digital signal into a high speed analog signal in the downstream direction; Select the downstream port according to the Layer 2 VLAN tag above.
本发明的一种以太网复用级连装置, 用以将多个用户连接到网 络, 包括上层复用装置和下层复用装置, 其中上层复用装置分解下行 信号并根据信号内第一层 VLAN标签寻找到正确的下行端口; 而下 层复用装置分解来自上层复用装置的下行信号并依据信号内第二层 VLAN标签寻找正确的下行端口使得信号到达用户。 An Ethernet multiplexing cascade device for connecting multiple users to a network, including an upper layer multiplexing device and a lower layer multiplexing device, wherein the upper layer multiplexing device decomposes the downlink signal according to the first layer VLAN in the signal The tag finds the correct downstream port; and the lower layer multiplexing device decomposes the downstream signal from the upper multiplexing device and finds the correct downstream port according to the second layer VLAN tag in the signal so that the signal reaches the user.
另外, 本发明并不仅限于此。 对于在其它网络中, 对于本技术领 域的普通技术人员来说, 在不脱离本发明原理的前提下, 采用的方法 也属于本发明的保护范围。
In addition, the invention is not limited thereto. For other networks, the methods employed by those skilled in the art are also within the scope of the present invention without departing from the principles of the present invention.
Claims
1、 一种以太网物理层复用装置, 其特征在于, 包括: An Ethernet physical layer multiplexing device, comprising:
物理层信号转换单元, 该转换单元接收一路以上物理层低速信 号, 并将每路低速信号转换为 MAC层低速信号; a physical layer signal conversion unit, the conversion unit receives one or more physical layer low speed signals, and converts each low speed signal into a MAC layer low speed signal;
信号复用单元,所述信号复用单元接收所述物理层信号转换单元 输出的 MAC层低速信号, 并将每路低速信号设置端口标记, 且将设 置端口标记的多路低速信号按时分方式复用输出一路 MAC层高速信 号。 a signal multiplexing unit, the signal multiplexing unit receives a MAC layer low-speed signal output by the physical layer signal conversion unit, and sets a port flag for each low-speed signal, and complexes the multi-channel low-speed signal with the port flag set by time division Use to output a MAC layer high speed signal.
2、 如权利要求 1所述以太网物理层复用装置, 其特征在于, 所 述信号复用单元进一步包括: 端口标记设置子单元、 端口标记存储子 单元和第一随机存储子单元, 2. The Ethernet physical layer multiplexing device according to claim 1, wherein the signal multiplexing unit further comprises: a port tag setting subunit, a port tag storage subunit, and a first random storage subunit.
所述端口标记设置子单元用于为每路低速信号设置端口标记; 所述端口标记存储子单元用于存储每路低速信号设置的端口标 记; The port tag setting subunit is configured to set a port flag for each low speed signal; the port tag storage subunit is configured to store a port tag set by each low speed signal;
所述第一随机存储子单元用于以时隙为单位存储设置端口标记 的低速信号,并在高速时钟信号的驱动下读出一路 MAC层高速信号。 The first random storage sub-unit is configured to store a low-speed signal for setting a port flag in units of time slots, and to read a MAC layer high-speed signal driven by the high-speed clock signal.
3、 如权利要求 2所述以太网物理层复用装置, 其特征在于: 所 述端口标记根据所述信号复用单元的输入物理端口设置或根据输入 低速信号的业务特征设置。 3. The Ethernet physical layer multiplexing apparatus according to claim 2, wherein: said port flag is set according to an input physical port of said signal multiplexing unit or according to a service characteristic of an input low speed signal.
4、 如权利要求 2所述以太网物理层复用装置, 其特征在于: 所 述端口标记按低速信号的数据帧或按低速信号的固定数据长度设置。 4. The Ethernet physical layer multiplexing apparatus according to claim 2, wherein: said port flag is set according to a data frame of the low speed signal or a fixed data length of the low speed signal.
5、 如权利要求 2所述以太网物理层复用装置, 其特征在于: 所 述高速时钟信号由从低速信号中提取的低速时钟倍频得到,或由时钟 产生电路直接得到。 The Ethernet physical layer multiplexing apparatus according to claim 2, wherein: said high speed clock signal is obtained by multiplying a low speed clock extracted from a low speed signal, or directly obtained by a clock generating circuit.
6、 一种以太网物理层解复用装置, 其特征在于, 包括: 解复用单元, 接收 MAC层高速信号, 解复用为低速信号, 并根 据低速信号中的端口标记, 确定下行发送端口; An Ethernet physical layer demultiplexing device, comprising: a demultiplexing unit, receiving a MAC layer high speed signal, demultiplexing into a low speed signal, and determining a downlink sending port according to a port flag in the low speed signal ;
MAC层信号转换单元, 接收所述解复用单元发来的低速信号, 将该信号转换为物理层信号, 并发送到物理层。 The MAC layer signal conversion unit receives the low speed signal sent by the demultiplexing unit, converts the signal into a physical layer signal, and sends the signal to the physical layer.
7、 如权利要求 6所述以太网物理层解复用装置, 其特征在于, 所述解复用单元进一步包括:端口标记判断子单元和第二随机存储子 单元; The Ethernet physical layer demultiplexing apparatus according to claim 6, wherein the demultiplexing unit further comprises: a port tag determining subunit and a second random storing subunit;
所述端口标记判断子单元根据接收高速信号中的端口标记确定
下行信号端口; The port tag determining subunit determines according to a port flag in the received high speed signal Downstream signal port;
所述第二随机存储子单元用于存储高速信号,通过低速时钟信号 的驱动读出至少两路低速信号, 发送到 MAC层信号转换单元中对应 的下行信号端口。 The second random storage sub-unit is configured to store a high-speed signal, and at least two low-speed signals are read out by driving of the low-speed clock signal, and sent to a corresponding downlink signal port in the signal conversion unit of the MAC layer.
8、 如权利要求 7所述以太网物理层解复用装置, 其特征在于, 所述低速时钟信号由从物理层发来的低速信号中提取的低速时钟得 到, 或由时钟产生电路直接得到。 8. The Ethernet physical layer demultiplexing apparatus according to claim 7, wherein said low speed clock signal is obtained from a low speed clock extracted from a low speed signal sent from a physical layer, or directly obtained by a clock generation circuit.
9、 一种以太网物理层复用和解复用装置, 其特征在于, 包括: 物理层信号与 MAC层信号相互转换单元、 信号复用解复用单元; 该物理层信号与 MAC层信号相互转换单元接收一路以上物理层 低速信号, 并将每路低速信号转换为 MAC层低速信号; 接收所述信 号复用解复用单元发来的低速信号, 将该信号转换为物理层信号, 并 发送到物理层; 9. An Ethernet physical layer multiplexing and demultiplexing apparatus, comprising: a physical layer signal and a MAC layer signal mutual conversion unit, and a signal multiplexing demultiplexing unit; the physical layer signal and the MAC layer signal are mutually converted The unit receives one or more physical layer low speed signals, and converts each low speed signal into a MAC layer low speed signal; receives the low speed signal sent by the signal multiplexing demultiplexing unit, converts the signal into a physical layer signal, and sends the signal to the physical layer signal Physical layer
该信号复用解复用单元接收所述物理层信号与 MAC层信号相互 转换单元输出的 MAC层低速信号,并将每路低速信号设置端口标记, 且将设置端口标记的多路低速信号按时分方式复用输出一路 MAC层 高速信号; 并接收 MAC层高速信号, 解复用为低速信号, 并根据低 速信号中的端口标记, 确定下行发送端口。 The signal multiplexing demultiplexing unit receives the MAC layer low speed signal output by the physical layer signal and the MAC layer signal mutual conversion unit, and sets a port flag for each low speed signal, and sets the multi-channel low speed signal with the port flag set by time. The mode multiplexes and outputs one MAC layer high-speed signal; and receives the MAC layer high-speed signal, demultiplexes it into a low-speed signal, and determines a downlink sending port according to the port flag in the low-speed signal.
10、 一种以太网物理层复用方法, 其特征在于, 包括: 10. An Ethernet physical layer multiplexing method, comprising:
A、 将至少两条低速率物理层信号转换为对应的低速率 MAC层 信号; A. Converting at least two low-rate physical layer signals into corresponding low-rate MAC layer signals;
B、 将所述低速率 MAC信号设置端口标记, 并存储该端口标记; B. The port is marked with the low rate MAC signal, and the port tag is stored;
C、 将带有端口标记的^ ί氏速率 MAC层信号以时分方式复用为一 路高速率 MAC层信号。 C. The MAC layer signal with the port label is multiplexed into a high rate MAC layer signal in a time division manner.
11、 如权利要求 10所述以太网物理层复用方法, 其特征在于, 步骤 C进一步包括: The Ethernet physical layer multiplexing method according to claim 10, wherein the step C further comprises:
以时隙为单位存储设置端口标记的 MAC层低速信号; The MAC layer low speed signal for setting the port flag is stored in units of time slots;
用高速时钟信号读出一路 MAC层高速信号。 Read a high-speed signal of the MAC layer with a high-speed clock signal.
12、 一种以太网物理层解复用方法, 其特征在于, 包括: 接收 MAC层一路高速信号; 12. An Ethernet physical layer demultiplexing method, comprising: receiving a high-speed signal of a MAC layer;
将 MAC层高速信号解复用为至少两条 MAC层低速信号; 以低速时钟信号读出 MAC层低速信号以及其中的端口标记, 根 据每一端口标记确定对应的下行端口, 进而将 MAC层低速信号从对 应下^ "端口输出。 Demultiplexing the MAC layer high-speed signal into at least two MAC layer low-speed signals; reading the MAC layer low-speed signal and the port flag therein by using the low-speed clock signal, determining the corresponding downlink port according to each port flag, and further, the MAC layer low-speed signal Output from the corresponding ^" port.
13、 一种以太网物理层复用解复用方法, 其特征在于, 包括:
在上行方向, 13. An Ethernet physical layer multiplexing demultiplexing method, comprising: In the up direction,
将至少两条低速率物理层信号转换为对应的低速率 MAC 层信 号; Converting at least two low rate physical layer signals into corresponding low rate MAC layer signals;
将所述氏速率 MAC信号设置端口标记, 并存储该端口标记; 将带有端口标记的低速率 MAC层信号以时分方式复用为一路高 速率 MAC层信号; Setting the port rate MAC signal to the port tag and storing the port tag; multiplexing the low rate MAC layer signal with the port tag into a high rate MAC layer signal in a time division manner;
在下 4于方向, In the next 4 directions,
接收 MAC层一路高速信号; Receiving a high-speed signal of the MAC layer;
将 MAC层高速信号解复用为至少两条 MAC层低速信号; 以低速时钟信号读出 MAC层低速信号以及低速信号中的端口标 记, 居每一端口标记确定对应的下行端口, 进而将 MAC层氏速信 号从对应下行端口输出。 Demultiplexing the MAC layer high-speed signal into at least two MAC layer low-speed signals; reading the MAC layer low-speed signal and the port mark in the low-speed signal with the low-speed clock signal, and determining, by each port, the corresponding downlink port, and then the MAC layer The speed signal is output from the corresponding downlink port.
14、 一种实现以太网物理层复用级连的装置, 包括至少两层物理 层复用芯片, 其中, 最上层的物理层复用芯片的上行数字接口与媒体 接入控制层芯片接口相连,最下层的物理层复用芯片的下行模拟接口 与用户端相连, 其特征在于, 还包括: 14. A device for implementing an Ethernet physical layer multiplexing cascade, comprising at least two physical layer multiplexing chips, wherein an uplink digital interface of the uppermost physical layer multiplexing chip is connected to a medium access control layer chip interface, The downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and is characterized by:
与各下层物理层复用芯片对应的数 /模转换模块, 分别与所述下 层物理层复用芯片的上行数字接口及上层物理层复用芯片的下行模 拟接口相连,用于将所述下层物理层复用芯片上行数字接口输出的高 速数字信号转换为模拟信号,并将所述上层物理层复用芯片下行模拟 接口输出的低速模拟信号转换为数字信号。 And a digital-to-analog conversion module corresponding to each of the lower physical layer multiplexing chips, respectively connected to the uplink digital interface of the lower physical layer multiplexing chip and the downlink analog interface of the upper physical layer multiplexing chip, for connecting the lower layer physical The high-speed digital signal outputted by the layer digital multiplexing chip uplink digital interface is converted into an analog signal, and the low-speed analog signal outputted by the upper layer physical layer multiplexing chip downlink analog interface is converted into a digital signal.
15、根据权利要求 14所述的实现以太网物理层复用级连的装置, 其特征在于, 所述数 /模转换模块包括: The device for implementing the Ethernet physical layer multiplexing cascade according to claim 14, wherein the digital/analog conversion module comprises:
信号转换电路,用于完成所述下层高速数字信号到模拟信号的转 换, 以及所述上层低速模拟信号到数字信号的转换; a signal conversion circuit, configured to perform conversion of the lower layer high speed digital signal to an analog signal, and conversion of the upper layer low speed analog signal to the digital signal;
时钟电路, 与所述信号转换电路相连, 用于提供信号转换时所需 的时钟信号; a clock circuit coupled to the signal conversion circuit for providing a clock signal required for signal conversion;
编 /解码电路, 与所述信号转换电路相连, 用于提供信号转换时 所需的编码和解码。 An encoding/decoding circuit is coupled to the signal conversion circuit for providing encoding and decoding required for signal conversion.
16、根据权利要求 15所述的实现以太网物理层复用级连的装置, 其特征在于, 所述时钟电路和所述编 /解码电路由所述下层物理层复 用芯片提供。 The apparatus for implementing Ethernet physical layer multiplexing cascade according to claim 15, wherein said clock circuit and said encoding/decoding circuit are provided by said lower physical layer multiplexing chip.
17、根据权利要求 14所述的实现以太网物理层复用级连的装置, 其特征在于, 所述数 /模转换模块集成在与其对应的下层物理层复用 芯片上。
The apparatus for implementing Ethernet physical layer multiplexing cascade according to claim 14, wherein the digital/analog conversion module is integrated on a lower physical layer multiplexing chip corresponding thereto.
18、根据权利要求 14所述的实现以太网物理层复用级连的装置, 其特征在于, 所述数 /模转换模块及所有级连的物理层复用芯片集成 在同一个芯片上。 18. The apparatus for implementing Ethernet physical layer multiplexing cascade according to claim 14, wherein the digital/analog conversion module and all the cascaded physical layer multiplexing chips are integrated on the same chip.
19、 一种实现以太网物理层复用级连的方法, 用于将两级或多级 物理层复用芯片级连, 其中, 最上层的物理层复用芯片的上行数字接 口与媒体接入控制层芯片接口相连,最下层的物理层复用芯片的下行 模拟接口与用户端相连, 其特征在于, 所述方法包括步骤: 19. A method for implementing Ethernet physical layer multiplexing cascade, which is used for multiplexing two or more levels of physical layer multiplexing chips, wherein an uplink digital interface and media access of the uppermost physical layer multiplexing chip The control layer chip interface is connected, and the downlink analog interface of the lower layer physical layer multiplexing chip is connected to the user end, and the method includes the following steps:
A、接收上行信号时,记录所述上行信号与物理端口的对应关系; A. When receiving an uplink signal, record a correspondence between the uplink signal and a physical port;
B、 将所述下层的物理层复用芯片的上行数字接口输出的数字信 号转换为模拟信号,并输出到与其级连的上层物理层复用芯片的下行 模拟接口; B. Converting the digital signal outputted by the uplink digital interface of the lower layer physical layer multiplexing chip into an analog signal, and outputting it to a downlink analog interface of the upper physical layer multiplexing chip connected thereto;
C、 发送下行信号时, 根据所述记录的上行信号与物理端口的对 应关系查找所述下行信号应分发的物理端口,并将所述下行信号发送 到所述物理端口; C. When the downlink signal is sent, the physical port to which the downlink signal should be distributed is searched according to the corresponding relationship between the recorded uplink signal and the physical port, and the downlink signal is sent to the physical port;
D、 将所述上层的物理层复用芯片的下行模拟接口输出的模拟信 号转换为数字信号,并输出到与其级连的下层物理层复用芯片的上行 数字接口。 D. Convert the analog signal outputted by the downlink analog interface of the upper layer physical layer multiplexing chip into a digital signal, and output it to the uplink digital interface of the lower physical layer multiplexing chip connected thereto.
20、根据权利要求 19所述的实现以太网物理层复用级连的方法, 其特征在于, 所述步骤 A具体包括: The method for implementing the Ethernet physical layer multiplexing cascade according to claim 19, wherein the step A specifically includes:
Al、 在最下层的物理层复用芯片的物理端口上直接配置全局物 理端口号; Al, directly configuring the global physical port number on the physical port of the lower layer physical layer multiplexing chip;
A2、 当所述物理层复用芯片接收到上行信号时, 根据所述全局 物理端口号建立源端口路径表。 A2: When the physical layer multiplexing chip receives the uplink signal, establish a source port path table according to the global physical port number.
21、根据权利要求 19所述的实现以太网物理层复用级连的方法, 其特征在于, 所述步骤 A具体包括: The method for implementing the Ethernet physical layer multiplexing cascade according to claim 19, wherein the step A specifically includes:
ΑΓ、 在各层的物理层复用芯片的物理端口上配置私有物理端口 配置 Configuring a private physical port on the physical port of the physical layer multiplexing chip at each layer
A2'、 当所述物理层复用芯片接收到上行信号时, 根据所述私有 物理端口号将所述上行信号打上与所述私有物理端口号对应的偏移 标记; A2', when the physical layer multiplexing chip receives the uplink signal, the uplink signal is marked with an offset flag corresponding to the private physical port number according to the private physical port number;
A3'、 根据所述偏移标记在各层物理层复用芯片上建立源端口路 径表。 A3', establishing a source port path table on each layer physical layer multiplexing chip according to the offset flag.
22、 居权利要求 21所述的实现以太网物理层复用级连的方法, 其特征在于, 所述步骤 A2'具体为: The method for implementing the Ethernet physical layer multiplexing cascade according to claim 21, wherein the step A2' is specifically:
将所述偏移标记添加在上行数据帧的 VLAN域; 或者
将所述偏移标记添加在上行数据帧的帧头前。 Adding the offset flag to the VLAN domain of the uplink data frame; or The offset flag is added before the frame header of the upstream data frame.
23、根据权利要求 21所述的实现以太网物理层复用级连的方法, 其特征在于, 所述步骤 C包括: The method for implementing the Ethernet physical layer multiplexing cascade according to claim 21, wherein the step C includes:
根据所述下行信号获取其目的地址; Obtaining a destination address thereof according to the downlink signal;
根据所述目的地址查询所述源端口路径表,获取解复用后的各下 行信号应分发的物理端口; Querying the source port path table according to the destination address, and obtaining a physical port to which the demultiplexed downlink signals should be distributed;
剥离各下行信号最外层的偏移标记; Stripping the offset mark of the outermost layer of each downlink signal;
将剥离所述偏移标记后的各下行信号发送到所述物理端口。 Sending each downlink signal after the offset flag is stripped to the physical port.
24、 一种以太网复用级连装置, 包括: 24. An Ethernet multiplexing cascade device, comprising:
下层复用装置,用以将来自用户上行方向的至少两路低速的模拟 信号复用为高速的数字信号, 并将记录一个第一层的 VLAN标签; 在下行方向将高速的数字信号解复用为低速的模拟信号,并根据上述 第一层 VLAN标签选择下行端口; a lower layer multiplexing device for multiplexing at least two low-speed analog signals from a user upstream direction into a high-speed digital signal, and recording a first-layer VLAN tag; and demultiplexing the high-speed digital signal in a downlink direction A low-speed analog signal, and selecting a downlink port according to the first layer VLAN tag;
信号转换装置, 其数字接口耦合于下层复用装置; a signal conversion device having a digital interface coupled to the lower layer multiplexing device;
上层复用装置, 其耦合于该信号转换装置的模拟接口, 用以将来 自上行方向的至少两路高速的模拟信号复用为更高速的数字信号,并 记录相应的第二层 VLAN标签; 在下行方向将更高速的数字信号解 复用为高速的模拟信号; 根据上述第二层 VLAN标签选择下行端口。 An upper multiplexing device coupled to the analog interface of the signal conversion device for multiplexing at least two high-speed analog signals from the upstream direction into higher-speed digital signals and recording corresponding second-layer VLAN tags; Downstream direction demultiplexes the higher speed digital signal into a high speed analog signal; selects the downstream port according to the above second layer VLAN tag.
25、 一种以太网复用级连装置, 其用以将多个用户连接到网络, 包括上层复用装置和下层复用装置,其中上层复用装置分解下行信号 并根据信号内第一层 VLAN标签寻找到正确的下行端口; 而下层复 用装置分解来自上层复用装置的下行信号并依据信号内第二层 VLAN标签寻找正确的下行端口使得信号到达用户。
25. An Ethernet multiplexing cascade device for connecting a plurality of users to a network, comprising an upper layer multiplexing device and a lower layer multiplexing device, wherein the upper layer multiplexing device decomposes the downlink signal and according to the first layer VLAN in the signal The tag finds the correct downstream port; and the lower layer multiplexing device decomposes the downstream signal from the upper multiplexing device and finds the correct downstream port according to the second layer VLAN tag in the signal so that the signal reaches the user.
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200510066285.X | 2005-04-26 | ||
CNB200510066285XA CN100496001C (en) | 2005-04-26 | 2005-04-26 | Device and method for duplexing and deduplexing physical layer of Ethernet |
CN200510073308.X | 2005-05-31 | ||
CN200510073308 | 2005-05-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2006114032A1 true WO2006114032A1 (en) | 2006-11-02 |
Family
ID=37214417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2005/001985 WO2006114032A1 (en) | 2005-04-26 | 2005-11-24 | An appratus for multiplexing, demultiplxing and series multiplexing in the physical layer of the ethernet and the method thereof |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2006114032A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6044087A (en) * | 1997-06-30 | 2000-03-28 | Sun Microsystems, Inc. | Interface for a highly integrated ethernet network element |
US6373848B1 (en) * | 1998-07-28 | 2002-04-16 | International Business Machines Corporation | Architecture for a multi-port adapter with a single media access control (MAC) |
WO2002099979A2 (en) * | 2001-06-01 | 2002-12-12 | Fujitsu Network Communications, Inc. | System and method of multiplexing data from multiple ports |
WO2004023731A1 (en) * | 2002-09-06 | 2004-03-18 | Infineon Technologies Ag | Configurable fast ethernet and gigabit ethernet data port |
-
2005
- 2005-11-24 WO PCT/CN2005/001985 patent/WO2006114032A1/en not_active Application Discontinuation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6044087A (en) * | 1997-06-30 | 2000-03-28 | Sun Microsystems, Inc. | Interface for a highly integrated ethernet network element |
US6373848B1 (en) * | 1998-07-28 | 2002-04-16 | International Business Machines Corporation | Architecture for a multi-port adapter with a single media access control (MAC) |
WO2002099979A2 (en) * | 2001-06-01 | 2002-12-12 | Fujitsu Network Communications, Inc. | System and method of multiplexing data from multiple ports |
WO2004023731A1 (en) * | 2002-09-06 | 2004-03-18 | Infineon Technologies Ag | Configurable fast ethernet and gigabit ethernet data port |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8837492B2 (en) | Multiplexed data stream circuit architecture | |
US20240372622A1 (en) | Data transmission method, sending end, receiving end, and storage medium | |
US7573916B1 (en) | Multi-function high-speed network interface | |
US8289962B2 (en) | Multi-component compatible data architecture | |
US8340101B2 (en) | Multiplexed data stream payload format | |
US7940812B2 (en) | Ethernet access device and Ethernet access method | |
US7961751B2 (en) | Multiplexed data stream timeslot map | |
US8532094B2 (en) | Multi-network compatible data architecture | |
US9264163B2 (en) | Method and apparatus for multiplexing ethernet channels | |
US6768429B2 (en) | Multiplexing an additional bit stream with a primary bit stream with conversion between qB/rB and xB/yB encoded bit streams | |
EP2127216B1 (en) | Bandwidth reuse in multiplexed data stream | |
JP2008543187A5 (en) | ||
CN100568841C (en) | A kind of converging device of Ethernet service and method | |
JP2008160370A (en) | Data transmission system and method, data transmission device, and data reception device | |
WO2010069193A1 (en) | Data communication method and ethernet device | |
US6624763B2 (en) | Multiplexing an additional bit stream with a primary bit stream | |
JP2001119733A (en) | Asymmetrical digital subscriber line(adsl) down high- speed cell bus interface protocol | |
WO2010012143A1 (en) | Method and system of virtual local area network data forwarding | |
CN100596354C (en) | Network access equipment and its data forwarding method | |
JP3097921B2 (en) | Signal receiving and transmitting unit | |
WO2006114032A1 (en) | An appratus for multiplexing, demultiplxing and series multiplexing in the physical layer of the ethernet and the method thereof | |
WO2009086778A1 (en) | Rate adapting method and apparatus, exchange board and line card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWW | Wipo information: withdrawn in national office |
Country of ref document: DE |
|
NENP | Non-entry into the national phase |
Ref country code: RU |
|
WWW | Wipo information: withdrawn in national office |
Country of ref document: RU |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 05811933 Country of ref document: EP Kind code of ref document: A1 |
|
WWW | Wipo information: withdrawn in national office |
Ref document number: 5811933 Country of ref document: EP |