Method and system for resolving UNI port information on an external SOC/switch based on a mac-table cache
11811724 · 2023-11-07
Assignee
Inventors
Cpc classification
H04L61/4552
ELECTRICITY
H04L67/568
ELECTRICITY
H04L2101/622
ELECTRICITY
H04L67/565
ELECTRICITY
International classification
H04L61/4552
ELECTRICITY
H04L67/568
ELECTRICITY
Abstract
The present invention provides a method of using a mac-table cache to resolve UNI port information on an external system of chip (SOC) is provide. The method comprises, receiving, by a packet processing chip, a packet with a source address (SA); locating, by the packet processing chip, the SA in a mac-table cache implemented on the packet processing chip; and looking up a SOC mac-table implemented on the external SOC if the SA cannot be found in the mac-table cache.
Claims
1. A method of using a mac-table cache to resolve UNI port information on an external system on chip (SOC), comprising: receiving, by a packet processing chip, a packet with a source address (SA); determining whether the SA is stored in a mac-table cache implemented on the packet processing chip; in response to determining that the SA is not stored in the mac-table cache, determining from a SOC mac-table implemented on the external SOC processing data for the SA stored in the SOC mac-table cache; and updating the mac-table cache implemented on the packet processing chip via the SOC mac-table; wherein the mac-table cache is implemented as an ASIC (application-specific integrated circuit); wherein the method further comprising the steps of: providing a co-location device (CO), the packet processing chip and the external SOC/switch to be connectively cascaded in a series, wherein the co-location device only connects to the packet processing chip; and sending the packet from the external SOC or from a co-location device (CO) connected to the packet processing chip.
2. The method according to claim 1, wherein the packet processing chip processes the packet based on the SA found in the mac-table cache.
3. A system in which a mac-table cache is used to resolve UNI port information, comprising: a packet processing chip with a mac-table cache implemented thereon; an external system on chip (SOC) with a SOC mac-table implemented thereon, electrically connected with the packet processing chip; and a co-location device (CO), electrically connected with the packet processing chip; wherein the packet processing chip is operatively configured to receive a packet with a source address (SA), determine whether the SA is stored in the mac-table cache, and obtain processing data from the SOC mac-table if the SA of the packet is not stored in the mac-table cache; wherein the packet processing chip is further operatively configured, in response to determining that the SA is not stored in the mac-table cache, to determine from the SOC mac-table implemented on the external SOC processing data for the SA stored in the SOC mac-table cache, and updating the mac-table cache implemented on the packet processing chip via the SOC mac-table; wherein the mac-table cache is implemented as an ASIC (application-specific integrated circuit) inside the packet processing chip; wherein the co-location device (CO), the packet processing chip and the external SOC are connectively cascaded in a series, and the co-location device only connects to the packet processing chip, and operatively configured such that the packet processing chip receives the packet from the external SOC or from the co-location device (CO).
4. The system according to claim 3, wherein the packet processing chip is further configured to process the packet based on the SA stored in the mac-table cache.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
DETAILED DESCRIPTION
(4) Unless defined otherwise, all technical and scientific terms used herein have the same meanings as commonly understood by one of skill in the art to which this disclosure belongs. It will be further understood that terms; such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
(5) Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
(6) Reference is made to
(7) For upstream direction, the packet processing chip 101 receives a packet from the external SOC/switch 102. The packet processing chip 101 locates the packet's SA (source address) in a mac-table cache, where such mac-table cache is a software implemented on the packet processing chip 101. If the SA of the packet is not found, the packet processing chip 101 traps the MAC address to a software (i.e., the SOC/switch mactab as shown in
(8) For the upstream rule table, reference is made to table 1 as listed below.
(9) TABLE-US-00001 TABLE 1 If UNI port == 1 IVID 100->1000 If UNI port == 2 IVID 200->1000 If UNI port == 3 IVID 300->3000 If UNI port == 4 IVID 300->4000
(10) Wherein IVID stands for internal VLAN ID, and UNI port is critical for port 3/port 4 upstream processing. Description about IVID is omitted, since it is well known in the technology field the present invention pertain to.
(11) To be more specific, as described in the previous paragraph, the external SOC/switch 102 has four UNI ports, namely UNI port 1, UNI port 2, UNI port 3 and UNI port 4, and each receives packet with different SAs. For example, as shown in
(12) In the upstream scenario, the packet processing chip 101 receives a packet from the external SOC/switch 102. For example, the packet received by the packet processing chip 101 is from UNI port 3, so that the packet is with SA=0:00:00:00:00:0c. The packet processing chip 101 locates the packet SA (SA=0:00:00:00:00:0c) in the mac-table cache.
(13) As can be seen in
(14) The SOC/switch mactab records all the SAs from different UNI ports. As can be seen in
(15) The SOC/switch mactab updates the mac-table cache on the packet processing chip 101, so that SA=0:00:00:00:00:0c from UNI port 3 is therefore written into the mac-table cache. Once the mac-table cache has been updated, the packet processing chip 101 may process the packet based on the UNI port information, and forward the packet to CO.
(16) In the case if the packet received by the packet processing unit 101 is with SA=0:00:00:00:00:0b or SA=0:00:00:00:00:0a, since such source address is already recorded in the mac-table cache, the packet processing chip 101 can process the packet directly, without looking into the SOC/switch mactab. The packet processing chip 101 may forward such packet (packet with SA=0:00:00:00:00:0b or SA=0:00:00:00:00:0a in the present embodiment) to CO directly.
(17) Further, for the upstream rule table, such rule defines how the VLAN ID contained in the packet should be converted from one to another based on the UNI port ID, where the packet comes from (for upstream rules) or goes to (for downstream rules).
(18) In most cases, a packet in the CPE device might have either no VLAN ID, one VLAN ID, or two VLAN ID. For packet with two VLAN ID, the outer one is called OVID, the inner one is called IVID. For packet with one VLAN ID, it is called as IVID from OMCI spec perspective.
(19) Reference is next made to
(20) For downstream direction, the packet processing chip 201 receives a packet from the CO. The packet processing chip 201 locates the packet's SA (source address) in a mac-table cache, where such mac-table cache is a software implemented on the packet processing chip 201. If the SA of the packet is not found, the packet processing chip 201 traps the MAC address to a software (i.e., the SOC/switch mactab as shown in
(21) For the upstream rule table, reference is made to table 2 as listed below.
(22) TABLE-US-00002 TABLE 2 If UNI port == 1 IVID 1000->100 If UNI port == 2 IVID 1000->200 If UNI port == 3 IVID 3000->300 If UNI port == 4 IVID 4000->300
(23) Wherein IVID stands for internal VLAN ID, and UNI port is critical for port 3/port 4 upstream processing. Description about IVID is omitted, since it is well known in the technology field the present invention pertain to.
(24) To be more specific, as described in the previous paragraph, the external SOC/switch 202 has four UNI ports, namely UNI port 1, UNI port 2, UNI port 3 and UNI port 4, and each deals with packet with different SAs. For example, as can be seen in
(25) In the downstream scenario, the packet processing chip 201 receives a packet from the CO (or CO device). For example, the packet received by the packet processing chip 201 is with SA=0:00:00:00:00:0c. The packet processing chip 201 locates the packet SA (SA=0:00:00:00:00:0c) in the mac-table cache.
(26) As shown in
(27) The SOC/switch mactab records all the SAs relate to different UNI ports. As can be seen in
(28) The SOC/switch mactab updates the mac-table cache on the packet processing chip 201, so that SA=0:00:00:00:00:0c related UNI port 3 is thus written into the mac-table cache. Once the mac-table cache has been updated, the packet processing chip 201 may process the packet based on the UNI port information, and forward the packet to the external SOC/switch 202.
(29) In the case if the packet received by the packet processing unit 201 (from CO) is with SA=0:00:00:00:00:0b or SA=0:00:00:00:00:0a, since such source address is already recorded in the mac-table cache, the packet processing chip 201 can process the packet directly, without looking into the SOC/switch mactab. The packet processing chip 101 may forward such packet (packet with SA=0:00:00:00:00:0b or SA=0:00:00:00:00:0a in the present embodiment) to the external SOC/switch 202 directly.
(30) Further, for the downstream rule table, such rule defines how the VLAN ID contained in the packet should be converted from one to another based on the UNI port ID, where the packet comes from (for upstream rules) or goes to (for downstream rules).
(31) In most cases, a packet in the CPE device might have either no VLAN ID, one VLAN ID, or two VLAN ID. For packet with two VLAN ID, the outer one is called OVID, the inner one is called IVID. For packet with one VLAN ID, it is called as IVID from OMCI spec perspective.
(32)
(33) Further referring to
(34) According to the above descriptions, the present invention can be summarized in some aspects. One such aspect is that, for the operation of the present invention, it can be construed that, when a packet processing chip receives a packet but finds the UNI port information is missing on an external SOC/switch, the packet processing chip notifies the software on that external SOC/switch to find the UNI port information and caches it inside the packet processing chip.
(35) According to the above descriptions, the present invention can be summarized in some aspects. One such aspect is that, for the purpose of the present invention, it can be construed that, the present invention provides a method/methodology that enables standalone packet processing chip to work with an external SOC/switch, without changing the software design on that external SOC/switch.
(36) According to the above descriptions, the present invention can be summarized in some aspects. One such aspect is that, for the environment of the present invention, it can be construed that, the present invention may be applied under an environment that when a packet process chip is used with an external SOC/Switch chip and the packet UNI port on external SOC/switch is a critical criteria for packet processing.
(37) As to how conventional problems are solved, it can be construed that the software running on an external SOC/switch is used to maintain the mac-table cache inside a packet processing chip, so that the packet processing chip always knows how to process a packet based on the UNI port on external SOC/switch.
(38) In sum, the present invention provides a method for using a mac-table cache to resolve UNI port information on an external SOC or switch. It can also be construed that the method of the present invention is used by a packet processing chip to resolve a packet UNI port information on an external SOC or switch.
(39) The mac-table cache is implemented as part of the ASIC (application-specific integrated circuit, ASIC) inside the packet processing chip. Further, a mac table access software is running on external SOC/switch to retrieve its mac address table.
(40) When the packet processing chip receives a packet, it looks up to the mac-table cache for UNI port information. If the lookup is missed, the packet processing chip notifies the mac table access software to find out the packet UNI port information, and the software updates the result back to mac-table cache on the packet processing chip. Further, the packet processing chip deals with the packet based on the UNI port found in the mac-table cache.
(41) The present invention may be applied to multiple kinds of potential applications, as well as multiple kinds of potential markets. To be more specific, for all scenarios that to implement a standalone packet processing chip for previous level of SOC/switch is desired. For example, GPON/XGPON router (where standalone GPON/XGPON chips are designed for route chip with only Ethernet uplink), and GPON/XGPON MDU (where standalone GPON/XGPON chips are designed for high port count switch).
(42) In sum, the present invention provides the following advantages, comparing to conventional art. First, no special hardware protocol support is required for traditional level SOC/switch. Second, no need to change the VLAN usage for traditional level SOC/switch. Third, the present invention works for one-to-many downstream VLAN translation. Fourth, it's easy to integrate the standalone chip with existing turnkey solution.
(43) In sum, a software is used to synchronize UNI info from external SOC/switch to packet processing chip. Consequently, there is no need to use chip with hardware based on protocol like G.999.1.
(44) Further, the packet UNI port information is cached on a mac-table cache, therefore, there is no need to waste one VLAN tag for UNI port information carrying. To be more specific, the switch double tag capability may be fully reserved for packet processing, and the existing turnkey solutions may be easily integrated with the packet processing chip without reorganizing the SOC/switch VLAN usage heavily.
(45) Further, the UNI port information is available in the mac-table cache for either upstream or downstream direction. That is, downstream traffic can be processed properly based on different destined UNI port.