Introduction
When a cable company offers Internet access over the cable, Internet information can use the same cables. Putting both upstream and downstream data on the cable television system requires two types of equipment:
- A cable modem on the customer end
- A cable modem termination system (CMTS) at the cable provider's end.
The CMTS takes the traffic coming in from a group of customers on a single channel and routes it to an Internet service provider (ISP) for connection to the Internet. At the head-end, the cable providers will have, or lease space for a third-party ISP to have, servers for accounting and logging, Dynamic Host Configuration Protocol (DHCP) for assigning and administering the IP addresses of all the cable system's users, and control servers.
RDK-B was designed to support any wide area network (WAN) type e.g DOCSIS, EPON. Gateways using RDK-B may provide a DOCSIS interface, but that DOCSIS code is typically tied to a particular piece of silicon and may even be provided by that silicon vendor. And the core philosophy of RDK-B was to be hardware and WAN type independent.
To address this situation, RDK-B does not include DOCSIS. It only includes components that provide an abstraction layer software interface to third party WAN. For the DOCSIS WAN, this component is known as the Cable Modem (CM) Agent. CM Agent provides interfaces for integrating WAN interfaces with RDK-B. RDK-B is not tied to DOCSIS and may be used with any WAN interface. Other RDK-B software components can be created that provide interfaces to other WANs.
eyJleHRTcnZJbnRlZ1R5cGUiOiIiLCJnQ2xpZW50SWQiOiIiLCJjcmVhdG9yTmFtZSI6IlVua25vd24gVXNlciAoeW1haGFyYW5hKSIsIm91dHB1dFR5cGUiOiJibG9jayIsImxhc3RNb2RpZmllck5hbWUiOiJVbmtub3duIFVzZXIgKHltYWhhcmFuYSkiLCJsYW5ndWFnZSI6ImVuIiwidWlDb25maWciOiJ7fSIsImRpYWdyYW1EaXNwbGF5TmFtZSI6IiIsInNGaWxlSWQiOiIiLCJhdHRJZCI6IjE0NDkwMTQ1NiIsImRpYWdyYW1OYW1lIjoiQ00gQWdlbnQuZHJhd2lvIiwiYXNwZWN0IjoiIiwibGlua3MiOiJhdXRvIiwiY2VvTmFtZSI6IkNjc3BDTUFnZW50IiwidGJzdHlsZSI6InRvcCIsImNhbkNvbW1lbnQiOmZhbHNlLCJkaWFncmFtVXJsIjoiIiwiY3N2RmlsZVVybCI6IiIsImJvcmRlciI6dHJ1ZSwibWF4U2NhbGUiOiIxIiwib3duaW5nUGFnZUlkIjoyMTM2NTY2NiwiZWRpdGFibGUiOmZhbHNlLCJjZW9JZCI6MjEzNjU2NjYsInBhZ2VJZCI6IiIsImxib3giOnRydWUsInNlcnZlckNvbmZpZyI6eyJlbWFpbHByZXZpZXciOiIxIn0sIm9kcml2ZUlkIjoiIiwicmV2aXNpb24iOjEsIm1hY3JvSWQiOiJjOWMzMjJkOC1mMWY2LTRiODctOTlmZC05MzdkNmQyZWI0Y2QiLCJwcmV2aWV3TmFtZSI6IkNNIEFnZW50LmRyYXdpby5wbmciLCJsaWNlbnNlU3RhdHVzIjoiT0siLCJzZXJ2aWNlIjoiIiwiaXNUZW1wbGF0ZSI6IiIsIndpZHRoIjoibnVsbCIsInNpbXBsZVZpZXdlciI6ZmFsc2UsImxhc3RNb2RpZmllZCI6MTYxNDY5NDU1MTAwMCwiZXhjZWVkUGFnZVdpZHRoIjpmYWxzZSwib0NsaWVudElkIjoiIn0=
Architecture
- CM Agent is a CCSP component that exposes TR181 parameters related to CM/DOCSIS interface characteristics.
- CM agent provides info like Upstream channels, downstream channels, boot file name, DOCSIS log, etc along with CM interface details.
- Maintains a TR181 data model XML file with dbus object path as /com/cisco/spvtg/ccsp/cm
- Has a layered architecture similar to any other CCSP component
eyJleHRTcnZJbnRlZ1R5cGUiOiIiLCJnQ2xpZW50SWQiOiIiLCJjcmVhdG9yTmFtZSI6IlVua25vd24gVXNlciAoeW1haGFyYW5hKSIsIm91dHB1dFR5cGUiOiJibG9jayIsImxhc3RNb2RpZmllck5hbWUiOiJVbmtub3duIFVzZXIgKHltYWhhcmFuYSkiLCJsYW5ndWFnZSI6ImVuIiwidWlDb25maWciOiJ7fSIsImRpYWdyYW1EaXNwbGF5TmFtZSI6IiIsInNGaWxlSWQiOiIiLCJhdHRJZCI6IjE0NDkwMTQ1MiIsImRpYWdyYW1OYW1lIjoiQ0NTUCBNZXNzYWdlIEJ1cy5kcmF3aW8iLCJhc3BlY3QiOiIiLCJsaW5rcyI6ImF1dG8iLCJjZW9OYW1lIjoiQ2NzcENNQWdlbnQiLCJ0YnN0eWxlIjoidG9wIiwiY2FuQ29tbWVudCI6ZmFsc2UsImRpYWdyYW1VcmwiOiIiLCJjc3ZGaWxlVXJsIjoiIiwiYm9yZGVyIjp0cnVlLCJtYXhTY2FsZSI6IjEiLCJvd25pbmdQYWdlSWQiOjIxMzY1NjY2LCJlZGl0YWJsZSI6ZmFsc2UsImNlb0lkIjoyMTM2NTY2NiwicGFnZUlkIjoiIiwibGJveCI6dHJ1ZSwic2VydmVyQ29uZmlnIjp7ImVtYWlscHJldmlldyI6IjEifSwib2RyaXZlSWQiOiIiLCJyZXZpc2lvbiI6MSwibWFjcm9JZCI6IjkzMDI1YTYyLTliODItNDI4Zi05MjEzLWM4YTkzYzU5ODVmZCIsInByZXZpZXdOYW1lIjoiQ0NTUCBNZXNzYWdlIEJ1cy5kcmF3aW8ucG5nIiwibGljZW5zZVN0YXR1cyI6Ik9LIiwic2VydmljZSI6IiIsImlzVGVtcGxhdGUiOiIiLCJ3aWR0aCI6Im51bGwiLCJzaW1wbGVWaWV3ZXIiOmZhbHNlLCJsYXN0TW9kaWZpZWQiOjE2MTQ2OTQ1NTEwMDAsImV4Y2VlZFBhZ2VXaWR0aCI6ZmFsc2UsIm9DbGllbnRJZCI6IiJ9
Access Layer
- Access Layer interfaces with the CCSP message bus
- Receives any set or get calls and pass them onto the DML layer to manage the data which is in the request.
Data Model Management Layer
- Maintains the parameter list specified in the Data model XML file.
- Data Model Management Layer loads all data model access APIs from the Data model XML file
- The data model implementation in shared library interfaces HAL Integration (backend) Layer by calling backend integration APIs.
CM Agent HAL Integration (backend) Layer, a.k.a, component-specific HAL
- This layer makes calls to underlying HAL functions, Linux system calls/commands, third party modules, open-source modules etc.
- This layer will be more component-specific.
Code Flow
eyJleHRTcnZJbnRlZ1R5cGUiOiIiLCJnQ2xpZW50SWQiOiIiLCJjcmVhdG9yTmFtZSI6IlVua25vd24gVXNlciAoeW1haGFyYW5hKSIsIm91dHB1dFR5cGUiOiJibG9jayIsImxhc3RNb2RpZmllck5hbWUiOiJVbmtub3duIFVzZXIgKHltYWhhcmFuYSkiLCJsYW5ndWFnZSI6ImVuIiwidWlDb25maWciOiJ7fSIsImRpYWdyYW1EaXNwbGF5TmFtZSI6IiIsInNGaWxlSWQiOiIiLCJhdHRJZCI6IjE0NDkwMTQ1NCIsImRpYWdyYW1OYW1lIjoiQ29kZWZsb3cuZHJhd2lvIiwiYXNwZWN0IjoiIiwibGlua3MiOiJhdXRvIiwiY2VvTmFtZSI6IkNjc3BDTUFnZW50IiwidGJzdHlsZSI6InRvcCIsImNhbkNvbW1lbnQiOmZhbHNlLCJkaWFncmFtVXJsIjoiIiwiY3N2RmlsZVVybCI6IiIsImJvcmRlciI6dHJ1ZSwibWF4U2NhbGUiOiIxIiwib3duaW5nUGFnZUlkIjoyMTM2NTY2NiwiZWRpdGFibGUiOmZhbHNlLCJjZW9JZCI6MjEzNjU2NjYsInBhZ2VJZCI6IiIsImxib3giOnRydWUsInNlcnZlckNvbmZpZyI6eyJlbWFpbHByZXZpZXciOiIxIn0sIm9kcml2ZUlkIjoiIiwicmV2aXNpb24iOjEsIm1hY3JvSWQiOiJmZTYyNGJmZi04ZGE2LTRiMWMtYmI1ZS1lYjI4YTRhMWJlNjkiLCJwcmV2aWV3TmFtZSI6IkNvZGVmbG93LmRyYXdpby5wbmciLCJsaWNlbnNlU3RhdHVzIjoiT0siLCJzZXJ2aWNlIjoiIiwiaXNUZW1wbGF0ZSI6IiIsIndpZHRoIjoibnVsbCIsInNpbXBsZVZpZXdlciI6ZmFsc2UsImxhc3RNb2RpZmllZCI6MTYxNDY5NDU1MTAwMCwiZXhjZWVkUGFnZVdpZHRoIjpmYWxzZSwib0NsaWVudElkIjoiIn0=
Objects
CMAgent object in its DML layer:
Device.X_RDKCENTRAL-COM_CableModem.
Retrieving cable modem values using dmcli
$ dmcli eRT getv Device.X_RDKCENTRAL-COM_CableModem.CR component name is:
eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getv from/to component(
eRT.com.cisco.spvtg.ccsp.cm): Device.X_RDKCENTRAL-COM_CableModem.
Execution succeed.
Parameter 1 name: Device.X_RDKCENTRAL-COM_CableModem.DsOfdmChanNumberOfEntries
type: uint, value: 0
Parameter 2 name: Device.X_RDKCENTRAL-COM_CableModem.UsOfdmaChanNumberOfEntries
type: uint, value: 0
Parameter 3 name: Device.X_RDKCENTRAL-COM_CableModem.StatusOfdmaNumberOfEntries
type: uint, value: 0
HAL APIs
This hardware abstraction layer (HAL) concept is used for every interface.
The CM HAL provides a well-defined software interface that cable modem software developers can use to interface to RDK-B.
cm_hal.h provides function call prototypes and structure definitions used for the RDK-Broadband CM HAL.
Git repo: rdkb-halif-cm/include/cm_hal.h at main · rdkcentral/rdkb-halif-cm
Some example APIs are listed below:
APIs |
---|
cm_hal_InitDB |
docsis_InitDS |
docsis_InitUS |
docsis_getCMStatus |
docsis_GetDSChannel |
docsis_GetUsStatus |
docsis_GetUSChannel |
docsis_GetDOCSISInfo |
docsis_GetNumOfActiveTxChannels |
docsis_GetNumOfActiveRxChannels |
docsis_GetErrorCodewords |
docsis_GetMddIpModeOverride |
docsis_SetMddIpModeOverride |
docsis_GetUSChannelId |
docsis_GetDownFreq |
docsis_SetStartFreq |
docsis_GetDocsisEventLogItems |
docsis_ClearDocsisEventLog |
cm_hal_GetDHCPInfo |
cm_hal_GetIPv6DHCPInfo |
cm_hal_GetCPEList |
cm_hal_GetMarket |
cm_hal_Set_HTTP_Download_Url |
cm_hal_Get_HTTP_Download_Url |
cm_hal_Set_HTTP_Download_Interface |
cm_hal_Get_HTTP_Download_Interface |
cm_hal_HTTP_Download |
cm_hal_Get_HTTP_Download_Status |
cm_hal_Reboot_Ready |
cm_hal_HTTP_Download_Reboot_Now |
cm_hal_FWupdateAndFactoryReset |
cm_hal_ReinitMac |
docsis_GetProvIpType |
docsis_GetCert |
docsis_GetCertStatus |
cm_hal_Get_CableModemResetCount |
cm_hal_Get_LocalResetCount |
cm_hal_Get_DocsisResetCount |
cm_hal_Get_ErouterResetCount |
cm_hal_HTTP_LED_Flash |
docsis_GetDsOfdmChanTable |
docsis_GetUsOfdmaChanTable |