BroadbandForum / obbaa

A reference implementation for standardized, automated Cloud-based Access Services.
https://obbaa.broadband-forum.org
Apache License 2.0
25 stars 12 forks source link

Can't forward OMCI packet from ONU channeltermination.1:1 to vOMCI. No connection #11

Open akhileshkumar7662 opened 3 years ago

akhileshkumar7662 commented 3 years ago

Hi,

tr451_polt_simulator not able to inject OMCI test messages to ONU simulator, its getting failed with below error,

tr451_polt_simulator (vomci) Logs : root@5fa7ed0a25f3:/opt/obbaa-polt-simulator/build/fs# ./tr451_polt_daemon -log debug -f /app/share/vomci.cli -d bcmos_task_create#144> INF: Thread dev_log_save: priority 30 is ignored. Start as root to honor priorities bcmos_task_create#144> INF: Thread dev_log_print: priority 30 is ignored. Start as root to honor priorities 1: /po/au priv_key=/app/share/vomci_privatekey.pem local_cert=/app/share/vomci.cer peer_cert=/app/share/polt.cer

2: /po/set client_server=client enable=yes

3: /po/end client_server=client name=polt1 port=8433 host=172.17.0.2

bcmos_task_create#144> INF: Thread polt_client_server: priority 19 is ignored. Start as root to honor priorities 4: /po/filter client_server=client name=filt1 priority=100 ep_name=polt1 Type=any

5: /po/onu channel_term=channeltermination.1 onu_id=1 serial_vendor_id=BRCM serial_vendor_specific=00000001

[2318131: I default ] bcm_dev_log_task.c 1458| Logging started [2318134: I POLT ] bcm_tr451_polt_common.cc 819| Enabling client subsystem.. [2318134: D POLT ] bcm_tr451_polt_common.cc 1010| Allocated client endpoint polt1 [2318134: D POLT ] bcm_tr451_polt_common.cc 1043| Edded entry to client endpoint polt1: polt1 host-name=172.17.0.2 port=8433 [2318134: I POLT ] bcm_tr451_polt_client.cc 327| Creating client polt1: entry polt1 172.17.0.2:8433 [2318134: D POLT ] bcm_tr451_polt_common.cc 1053| Released client endpoint polt1 [2318135: D POLT ] bcm_tr451_polt_common.cc 401| Added filter filt1 --> polt1 [2318138: I POLT ] bcm_tr451_polt_common.cc 532| pOLT client polt1 started [2318139: I POLT ] bcm_tr451_polt_client.cc 129| client polt1.polt1: establishing ssl connection with the server at 172.17.0.2:8433 [2318164: I POLT ] bcm_tr451_polt_client.cc 173| client polt1.polt1: 'hello' exchange with the server at 172.17.0.2:8433 completed: connected to vomci polt1 bcmos_task_create#144> INF: Thread polt1: priority 9 is ignored. Start as root to honor priorities [2322032: I POLT ] bcm_tr451_polt_client.cc 129| client polt1.polt1: establishing ssl connection with the server at 172.17.0.2:8433 [2322034: I POLT ] bcm_tr451_polt_client.cc 164| client polt1.polt1: 'hello' exchange with server at 172.17.0.2:8433 failed. Re-connecting.. [2323034: I POLT ] bcm_tr451_polt_client.cc 129| client polt1.polt1: establishing ssl connection with the server at 172.17.0.2:8433 [2323051: I POLT ] bcm_tr451_polt_client.cc 173| client polt1.polt1: 'hello' exchange with the server at 172.17.0.2:8433 completed: connected to vomci polt1 bcmos_task_create#144> INF: Thread polt1: priority 9 is ignored. Start as root to honor priorities /po/inject channeltermination.1 1 0054480a01000000040001000000000000000000000000000000000000000000000000000000000000000028 [2434817: D POLT ] sim_tr451_polt_vendor.cc 118| RX from ONU: cterm=channeltermination.1 onu_id=1 length=44 OMCI_HDR=0054480a 01000000 [2434817: E POLT ] bcm_tr451_polt_common.cc 882| Can't forward OMCI packet from ONU channeltermination.1:1 to vOMCI. No connection

pOLT client-server running in same docker container but onu-simulator is running on same VM in different docker container.

tr451_polt_simulator (polt) logs : root@5fa7ed0a25f3:/opt/obbaa-polt-simulator/build/fs# ./tr451_polt_daemon -log debug -f /app/share/polt.cli -d bcmos_task_create#144> INF: Thread dev_log_save: priority 30 is ignored. Start as root to honor priorities bcmos_task_create#144> INF: Thread dev_log_print: priority 30 is ignored. Start as root to honor priorities 1: /po/set client_server=server enable=yes

2: /po/au priv_key=/app/share/polt_privatekey.pem local_cert=/app/share/polt.cer peer_cert=/app/share/vomci.cer

3: /po/en client_server=server name=polt port=8433

bcmos_task_create#144> INF: Thread polt_client_server: priority 19 is ignored. Start as root to honor priorities 4: /polt/filter client_server=server name=filt1 priority=100 ep_name=vomci1 Type=any

5: /po/onu channel_term=channeltermination.1 onu_id=1 serial_vendor_id=BRCM serial_vendor_specific=00000001

6: /po/rx_mode mode=onu_sim onu_sim_ip=172.17.0.3 onu_sim_port=50000 local_udp_port=50100

bcmos_task_create#144> INF: Thread cm_rx: priority 7 is ignored. Start as root to honor priorities [2322800: I default ] bcm_dev_log_task.c 1458| Logging started [2322801: I POLT ] bcm_tr451_polt_common.cc 819| Enabling server subsystem.. [2322802: I POLT ] bcm_tr451_polt_server.cc 201| Creating server polt: any:8433 [2322802: D POLT ] bcm_tr451_polt_common.cc 401| Added filter filt1 --> vomci1 [2322804: I POLT ] bcm_tr451_polt_common.cc 532| pOLT server polt started [2322806: I POLT ] bcm_tr451_polt_server.cc 60| polt: Enabling ssl authentication [2322809: I POLT ] bcm_tr451_polt_server.cc 75| Server polt is listening on 0.0.0.0:8433 [2323051: I POLT ] bcm_tr451_polt_server.cc 122| Server polt: received HelloRequest from vOMCI vomci1 [2323053: I POLT ] bcm_tr451_polt_server.cc 154| polt: Forwarding OMCI messages from pOLT to vOMCI vomci1@ipv4:172.17.0.2:41692 enabled

ONU-SIM logs :

root@8f909806eaf6:/# onusim.py -n channeltermination.1 -i 1 -p 50000 -l 2 DEBUG:onusim:args Namespace(address='0.0.0.0', ctermname='channeltermination.1', dumpfile=None, extended=False, loglevel=2, onuidfirst=1, onuidlast=None, port=50000) DEBUG:onusim:server Endpoint(address=('0.0.0.0', 50000), is_server=True, cterm_name='channeltermination.1', onu_id_range=range(1, 2), tr451=True, dumpfd=None)

Docker network connectivity between polt-sim and onu-sim is working fine.

I have followed the installation instruction using link (https://broadbandforum.github.io/obbaa-onu-simulator/usage/introduction.html#with-tr451_polt_simulator-old-not-using-docker-compose). Any help is very much appreciated.

fandy-genew commented 3 years ago

Please refer to https://github.com/BroadbandForum/obbaa-onu-simulator/issues/1

selvaitech commented 3 years ago

@akhileshkumar7662 @fandy-genew , can you please close this ticket if the issue is fixed by the steps mentioned in the ticket.